eastprodcdn.azureedge.net Open in urlscan Pro
2606:2800:233:1cb7:261b:1f9c:2074:3c  Public Scan

Submitted URL: https://eastprodcdn.azureedge.net/bundles/velaro.inline.js
Effective URL: https://eastprodcdn.azureedge.net/bundles/legacy/velaro.inline.5e9277fb.js
Submission Tags: falconsandbox
Submission: On November 21 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=28)}([function(e,t,n){"use strict";n.r(t);var r=n(7),o=n.n(r),i=function(){},a={},s=[],l=[];function c(e,t){var n,r,o,c,u=l;for(c=arguments.length;c-- >2;)s.push(arguments[c]);for(t&&null!=t.children&&(s.length||s.push(t.children),delete t.children);s.length;)if((r=s.pop())&&void 0!==r.pop)for(c=r.length;c--;)s.push(r[c]);else"boolean"==typeof r&&(r=null),(o="function"!=typeof e)&&(null==r?r="":"number"==typeof r?r=String(r):"string"!=typeof r&&(o=!1)),o&&n?u[u.length-1]+=r:u===l?u=[r]:u.push(r),n=o;var d=new i;return d.nodeName=e,d.children=u,d.attributes=null==t?void 0:t,d.key=null==t?void 0:t.key,void 0!==a.vnode&&a.vnode(d),d}function u(e,t){for(var n in t)e[n]=t[n];return e}var d="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function p(e,t){return c(e.nodeName,u(u({},e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}var g=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,f=[];function h(e){!e._dirty&&(e._dirty=!0)&&1==f.push(e)&&(a.debounceRendering||d)(m)}function m(){var e,t=f;for(f=[];e=t.pop();)e._dirty&&L(e)}function v(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function y(e){var t=u({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var r in n)void 0===t[r]&&(t[r]=n[r]);return t}function b(e){var t=e.parentNode;t&&t.removeChild(e)}function E(e,t,n,r,o){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),r&&r(e);else if("class"!==t||o)if("style"===t){if(r&&"string"!=typeof r&&"string"!=typeof n||(e.style.cssText=r||""),r&&"object"==typeof r){if("string"!=typeof n)for(var i in n)i in r||(e.style[i]="");for(var i in r)e.style[i]="number"==typeof r[i]&&!1===g.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html||"");else if("o"==t[0]&&"n"==t[1]){var a=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),r?n||e.addEventListener(t,T,a):e.removeEventListener(t,T,a),(e._listeners||(e._listeners={}))[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e){try{e[t]=null==r?"":r}catch(e){}null!=r&&!1!==r||"spellcheck"==t||e.removeAttribute(t)}else{var s=o&&t!==(t=t.replace(/^xlink:?/,""));null==r||!1===r?s?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(s?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r))}else e.className=r||""}function T(e){return this._listeners[e.type](a.event&&a.event(e)||e)}var C=[],x=0,S=!1,w=!1;function V(){for(var e;e=C.pop();)a.afterMount&&a.afterMount(e),e.componentDidMount&&e.componentDidMount()}function I(e,t,n,r,o,i){x++||(S=null!=o&&void 0!==o.ownerSVGElement,w=null!=e&&!("__preactattr_"in e));var a=A(e,t,n,r,i);return o&&a.parentNode!==o&&o.appendChild(a),--x||(w=!1,i||V()),a}function A(e,t,n,r,o){var i=e,a=S;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||o)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),_(e,!0))),i.__preactattr_=!0,i;var s,l,c=t.nodeName;if("function"==typeof c)return function(e,t,n,r){var o=e&&e._component,i=o,a=e,s=o&&e._componentConstructor===t.nodeName,l=s,c=y(t);for(;o&&!l&&(o=o._parentComponent);)l=o.constructor===t.nodeName;o&&l&&(!r||o._component)?(P(o,c,3,n,r),e=o.base):(i&&!s&&(R(i),e=a=null),o=N(t.nodeName,c,n),e&&!o.nextBase&&(o.nextBase=e,a=null),P(o,c,1,n,r),e=o.base,a&&e!==a&&(a._component=null,_(a,!1)));return e}(e,t,n,r);if(S="svg"===c||"foreignObject"!==c&&S,c=String(c),(!e||!v(e,c))&&(s=c,(l=S?document.createElementNS("http://www.w3.org/2000/svg",s):document.createElement(s)).normalizedNodeName=s,i=l,e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),_(e,!0)}var u=i.firstChild,d=i.__preactattr_,p=t.children;if(null==d){d=i.__preactattr_={};for(var g=i.attributes,f=g.length;f--;)d[g[f].name]=g[f].value}return!w&&p&&1===p.length&&"string"==typeof p[0]&&null!=u&&void 0!==u.splitText&&null==u.nextSibling?u.nodeValue!=p[0]&&(u.nodeValue=p[0]):(p&&p.length||null!=u)&&function(e,t,n,r,o){var i,a,s,l,c,u=e.childNodes,d=[],p={},g=0,f=0,h=u.length,m=0,y=t?t.length:0;if(0!==h)for(var E=0;E<h;E++){var T=u[E],C=T.__preactattr_,x=y&&C?T._component?T._component.__key:C.key:null;null!=x?(g++,p[x]=T):(C||(void 0!==T.splitText?!o||T.nodeValue.trim():o))&&(d[m++]=T)}if(0!==y)for(var E=0;E<y;E++){l=t[E],c=null;var x=l.key;if(null!=x)g&&void 0!==p[x]&&(c=p[x],p[x]=void 0,g--);else if(f<m)for(i=f;i<m;i++)if(void 0!==d[i]&&(S=a=d[i],V=o,"string"==typeof(w=l)||"number"==typeof w?void 0!==S.splitText:"string"==typeof w.nodeName?!S._componentConstructor&&v(S,w.nodeName):V||S._componentConstructor===w.nodeName)){c=a,d[i]=void 0,i===m-1&&m--,i===f&&f++;break}c=A(c,l,n,r),s=u[E],c&&c!==e&&c!==s&&(null==s?e.appendChild(c):c===s.nextSibling?b(s):e.insertBefore(c,s))}var S,w,V;if(g)for(var E in p)void 0!==p[E]&&_(p[E],!1);for(;f<=m;)void 0!==(c=d[m--])&&_(c,!1)}(i,p,n,r,w||null!=d.dangerouslySetInnerHTML),function(e,t,n){var r;for(r in n)t&&null!=t[r]||null==n[r]||E(e,r,n[r],n[r]=void 0,S);for(r in t)"children"===r||"innerHTML"===r||r in n&&t[r]===("value"===r||"checked"===r?e[r]:n[r])||E(e,r,n[r],n[r]=t[r],S)}(i,t.attributes,d),S=a,i}function _(e,t){var n=e._component;n?R(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||b(e),D(e))}function D(e){for(e=e.lastChild;e;){var t=e.previousSibling;_(e,!0),e=t}}var k=[];function N(e,t,n){var r,o=k.length;for(e.prototype&&e.prototype.render?(r=new e(t,n),G.call(r,t,n)):((r=new G(t,n)).constructor=e,r.render=O);o--;)if(k[o].constructor===e)return r.nextBase=k[o].nextBase,k.splice(o,1),r;return r}function O(e,t,n){return this.constructor(e,n)}function P(e,t,n,r,o){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||o?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r)),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===a.syncComponentUpdates&&e.base?h(e):L(e,1,o)),e.__ref&&e.__ref(e))}function L(e,t,n,r){if(!e._disable){var o,i,s,l=e.props,c=e.state,d=e.context,p=e.prevProps||l,g=e.prevState||c,f=e.prevContext||d,h=e.base,m=e.nextBase,v=h||m,b=e._component,E=!1,T=f;if(e.constructor.getDerivedStateFromProps&&(c=u(u({},c),e.constructor.getDerivedStateFromProps(l,c)),e.state=c),h&&(e.props=p,e.state=g,e.context=f,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(l,c,d)?E=!0:e.componentWillUpdate&&e.componentWillUpdate(l,c,d),e.props=l,e.state=c,e.context=d),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!E){o=e.render(l,c,d),e.getChildContext&&(d=u(u({},d),e.getChildContext())),h&&e.getSnapshotBeforeUpdate&&(T=e.getSnapshotBeforeUpdate(p,g));var S,w,A=o&&o.nodeName;if("function"==typeof A){var D=y(o);(i=b)&&i.constructor===A&&D.key==i.__key?P(i,D,1,d,!1):(S=i,e._component=i=N(A,D,d),i.nextBase=i.nextBase||m,i._parentComponent=e,P(i,D,0,d,!1),L(i,1,n,!0)),w=i.base}else s=v,(S=b)&&(s=e._component=null),(v||1===t)&&(s&&(s._component=null),w=I(s,o,d,n||!h,v&&v.parentNode,!0));if(v&&w!==v&&i!==b){var k=v.parentNode;k&&w!==k&&(k.replaceChild(w,v),S||(v._component=null,_(v,!1)))}if(S&&R(S),e.base=w,w&&!r){for(var O=e,G=e;G=G._parentComponent;)(O=G).base=w;w._component=O,w._componentConstructor=O.constructor}}for(!h||n?C.unshift(e):E||(e.componentDidUpdate&&e.componentDidUpdate(p,g,T),a.afterUpdate&&a.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);x||r||V()}}function R(e){a.beforeUnmount&&a.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?R(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),e.nextBase=t,b(t),k.push(e),D(t)),e.__ref&&e.__ref(null)}function G(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function j(e,t,n){return I(n,e,{},!1,t,!1)}u(G.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=u(u({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),h(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),L(this,2)},render:function(){}});n.d(t,"version",function(){return U}),n.d(t,"DOM",function(){return se}),n.d(t,"Children",function(){return ie}),n.d(t,"render",function(){return J}),n.d(t,"createClass",function(){return be}),n.d(t,"createPortal",function(){return te}),n.d(t,"createFactory",function(){return ae}),n.d(t,"createElement",function(){return ue}),n.d(t,"cloneElement",function(){return pe}),n.d(t,"isValidElement",function(){return ge}),n.d(t,"findDOMNode",function(){return ve}),n.d(t,"unmountComponentAtNode",function(){return ne}),n.d(t,"Component",function(){return Ve}),n.d(t,"PureComponent",function(){return Ie}),n.d(t,"unstable_renderSubtreeIntoContainer",function(){return Z}),n.d(t,"unstable_batchedUpdates",function(){return Ae}),n.d(t,"__spread",function(){return he}),n.d(t,"PropTypes",function(){return o.a});var U="15.1.0",M="a abbr address area article aside audio b base bdi bdo big blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins kbd keygen label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt ruby s samp script section select small source span strong style sub summary sup table tbody td textarea tfoot th thead time title tr track u ul var video wbr circle clipPath defs ellipse g image line linearGradient mask path pattern polygon polyline radialGradient rect stop svg text tspan".split(" "),H="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,q="undefined"!=typeof Symbol&&Symbol.for?Symbol.for("__preactCompatWrapper"):"__preactCompatWrapper",F={constructor:1,render:1,shouldComponentUpdate:1,componentWillReceiveProps:1,componentWillUpdate:1,componentDidUpdate:1,componentWillMount:1,componentDidMount:1,componentWillUnmount:1,componentDidUnmount:1},B=/^(?:accent|alignment|arabic|baseline|cap|clip|color|fill|flood|font|glyph|horiz|marker|overline|paint|stop|strikethrough|stroke|text|underline|unicode|units|v|vector|vert|word|writing|x)[A-Z]/,Q={},W=!1;try{W=!1}catch(e){}function z(){return null}var K=c("a",null).constructor;K.prototype.$$typeof=H,K.prototype.preactCompatUpgraded=!1,K.prototype.preactCompatNormalized=!1,Object.defineProperty(K.prototype,"type",{get:function(){return this.nodeName},set:function(e){this.nodeName=e},configurable:!0}),Object.defineProperty(K.prototype,"props",{get:function(){return this.attributes},set:function(e){this.attributes=e},configurable:!0});var $=a.event;a.event=function(e){return $&&(e=$(e)),e.persist=Object,e.nativeEvent=e,e};var Y=a.vnode;function J(e,t,n){var r=t&&t._preactCompatRendered&&t._preactCompatRendered.base;r&&r.parentNode!==t&&(r=null),!r&&t&&(r=t.firstElementChild);for(var o=t.childNodes.length;o--;)t.childNodes[o]!==r&&t.removeChild(t.childNodes[o]);var i=j(e,t,r);return t&&(t._preactCompatRendered=i&&(i._component||{base:i})),"function"==typeof n&&n(),i&&i._component||i}a.vnode=function(e){if(!e.preactCompatUpgraded){e.preactCompatUpgraded=!0;var t=e.nodeName,n=e.attributes=null==e.attributes?{}:he({},e.attributes);"function"==typeof t?(!0===t[q]||t.prototype&&"isReactComponent"in t.prototype)&&(e.children&&""===String(e.children)&&(e.children=void 0),e.children&&(n.children=e.children),e.preactCompatNormalized||de(e),function(e){var t=e.nodeName,n=e.attributes;e.attributes={},t.defaultProps&&he(e.attributes,t.defaultProps);n&&he(e.attributes,n)}(e)):(e.children&&""===String(e.children)&&(e.children=void 0),e.children&&(n.children=e.children),n.defaultValue&&(n.value||0===n.value||(n.value=n.defaultValue),delete n.defaultValue),function(e,t){var n,r,o;if(t){for(o in t)if(n=B.test(o))break;if(n)for(o in r=e.attributes={},t)t.hasOwnProperty(o)&&(r[B.test(o)?o.replace(/([A-Z0-9])/,"-$1").toLowerCase():o]=t[o])}}(e,n))}Y&&Y(e)};var X=function(){};function Z(e,t,n,r){var o=J(c(X,{context:e.context},t),n),i=o._component||o.base;return r&&r.call(i,o),i}function ee(e){Z(this,e.vnode,e.container)}function te(e,t){return c(ee,{vnode:e,container:t})}function ne(e){var t=e._preactCompatRendered&&e._preactCompatRendered.base;return!(!t||t.parentNode!==e)&&(j(c(z),e,t),!0)}X.prototype.getChildContext=function(){return this.props.context},X.prototype.render=function(e){return e.children[0]};var re,oe=[],ie={map:function(e,t,n){return null==e?null:(e=ie.toArray(e),n&&n!==e&&(t=t.bind(n)),e.map(t))},forEach:function(e,t,n){if(null==e)return null;e=ie.toArray(e),n&&n!==e&&(t=t.bind(n)),e.forEach(t)},count:function(e){return e&&e.length||0},only:function(e){if(1!==(e=ie.toArray(e)).length)throw new Error("Children.only() expects only one child.");return e[0]},toArray:function(e){return null==e?[]:oe.concat(e)}};function ae(e){return ue.bind(null,e)}for(var se={},le=M.length;le--;)se[M[le]]=ae(M[le]);function ce(e){var t,n=e[q];return n?!0===n?e:n:(n=be({displayName:(t=e).displayName||t.name,render:function(){return t(this.props,this.context)}}),Object.defineProperty(n,q,{configurable:!0,value:!0}),n.displayName=e.displayName,n.propTypes=e.propTypes,n.defaultProps=e.defaultProps,Object.defineProperty(e,q,{configurable:!0,value:n}),n)}function ue(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function e(t,n){for(var r=n||0;r<t.length;r++){var o=t[r];Array.isArray(o)?e(o):o&&"object"==typeof o&&!ge(o)&&(o.props&&o.type||o.attributes&&o.nodeName||o.children)&&(t[r]=ue(o.type||o.nodeName,o.props||o.attributes,o.children))}}(e,2),de(c.apply(void 0,e))}function de(e){var t;e.preactCompatNormalized=!0,function(e){var t=e.attributes||(e.attributes={});fe.enumerable="className"in t,t.className&&(t.class=t.className);Object.defineProperty(t,"className",fe)}(e),"function"!=typeof(t=e.nodeName)||t.prototype&&t.prototype.render||(e.nodeName=ce(e.nodeName));var n,r,o=e.attributes.ref,i=o&&typeof o;return!re||"string"!==i&&"number"!==i||(e.attributes.ref=(n=o,(r=re)._refProxies[n]||(r._refProxies[n]=function(e){r&&r.refs&&(r.refs[n]=e,null===e&&(delete r._refProxies[n],r=null))}))),function(e){var t=e.nodeName,n=e.attributes;if(!n||"string"!=typeof t)return;var r={};for(var o in n)r[o.toLowerCase()]=o;r.ondoubleclick&&(n.ondblclick=n[r.ondoubleclick],delete n[r.ondoubleclick]);if(r.onchange&&("textarea"===t||"input"===t.toLowerCase()&&!/^fil|che|rad/i.test(n.type))){var i=r.oninput||"oninput";n[i]||(n[i]=Te([n[i],n[r.onchange]]),delete n[r.onchange])}}(e),e}function pe(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];if(!ge(e))return e;var o=e.attributes||e.props,i=[c(e.nodeName||e.type,he({},o),e.children||o&&o.children),t];return n&&n.length?i.push(n):t&&t.children&&i.push(t.children),de(p.apply(void 0,i))}function ge(e){return e&&(e instanceof K||e.$$typeof===H)}var fe={configurable:!0,get:function(){return this.class},set:function(e){this.class=e}};function he(e,t){for(var n=arguments,r=1,o=void 0;r<arguments.length;r++)if(o=n[r])for(var i in o)o.hasOwnProperty(i)&&(e[i]=o[i]);return e}function me(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}function ve(e){return e&&(e.base||1===e.nodeType&&e)||null}function ye(){}function be(e){function t(e,t){!function(e){for(var t in e){var n=e[t];"function"!=typeof n||n.__bound||F.hasOwnProperty(t)||((e[t]=n.bind(e)).__bound=!0)}}(this),Ve.call(this,e,t,Q),Ce.call(this,e,t)}return(e=he({constructor:t},e)).mixins&&function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=Te(t[n].concat(e[n]||oe),"getDefaultProps"===n||"getInitialState"===n||"getChildContext"===n))}(e,function(e){for(var t={},n=0;n<e.length;n++){var r=e[n];for(var o in r)r.hasOwnProperty(o)&&"function"==typeof r[o]&&(t[o]||(t[o]=[])).push(r[o])}return t}(e.mixins)),e.statics&&he(t,e.statics),e.propTypes&&(t.propTypes=e.propTypes),e.defaultProps&&(t.defaultProps=e.defaultProps),e.getDefaultProps&&(t.defaultProps=e.getDefaultProps.call(t)),ye.prototype=Ve.prototype,t.prototype=he(new ye,e),t.displayName=e.displayName||"Component",t}function Ee(e,t,n){if("string"==typeof t&&(t=e.constructor.prototype[t]),"function"==typeof t)return t.apply(e,n)}function Te(e,t){return function(){for(var n,r=arguments,o=0;o<e.length;o++){var i=Ee(this,e[o],r);if(t&&null!=i)for(var a in n||(n={}),i)i.hasOwnProperty(a)&&(n[a]=i[a]);else void 0!==i&&(n=i)}return n}}function Ce(e,t){xe.call(this,e,t),this.componentWillReceiveProps=Te([xe,this.componentWillReceiveProps||"componentWillReceiveProps"]),this.render=Te([xe,Se,this.render||"render",we])}function xe(e,t){if(e){var n=e.children;if(n&&Array.isArray(n)&&1===n.length&&("string"==typeof n[0]||"function"==typeof n[0]||n[0]instanceof K)&&(e.children=n[0],e.children&&"object"==typeof e.children&&(e.children.length=1,e.children[0]=e.children)),W){var r="function"==typeof this?this:this.constructor,i=this.propTypes||r.propTypes,a=this.displayName||r.name;i&&o.a.checkPropTypes(i,e,"prop",a)}}}function Se(e){re=this}function we(){re===this&&(re=null)}function Ve(e,t,n){G.call(this,e,t),this.state=this.getInitialState?this.getInitialState():{},this.refs={},this._refProxies={},n!==Q&&Ce.call(this,e,t)}function Ie(e,t){Ve.call(this,e,t)}function Ae(e){e()}he(Ve.prototype=new G,{constructor:Ve,isReactComponent:{},replaceState:function(e,t){for(var n in this.setState(e,t),this.state)n in e||delete this.state[n]},getDOMNode:function(){return this.base},isMounted:function(){return!!this.base}}),ye.prototype=Ve.prototype,Ie.prototype=new ye,Ie.prototype.isPureReactComponent=!0,Ie.prototype.shouldComponentUpdate=function(e,t){return me(this.props,e)||me(this.state,t)};var _e={version:U,DOM:se,PropTypes:o.a,Children:ie,render:J,createClass:be,createPortal:te,createFactory:ae,createElement:ue,cloneElement:pe,isValidElement:ge,findDOMNode:ve,unmountComponentAtNode:ne,Component:Ve,PureComponent:Ie,unstable_renderSubtreeIntoContainer:Z,unstable_batchedUpdates:Ae,__spread:he};t.default=_e},function(e,t,n){var r,o,i;
/*!
 * jQuery JavaScript Library v2.2.4
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2016-05-20T17:23Z
 */
/*!
 * jQuery JavaScript Library v2.2.4
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2016-05-20T17:23Z
 */
o="undefined"!=typeof window?window:this,i=function(n,o){var i=[],a=n.document,s=i.slice,l=i.concat,c=i.push,u=i.indexOf,d={},p=d.toString,g=d.hasOwnProperty,f={},h=function(e,t){return new h.fn.init(e,t)},m=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,v=/^-ms-/,y=/-([\da-z])/gi,b=function(e,t){return t.toUpperCase()};function E(e){var t=!!e&&"length"in e&&e.length,n=h.type(e);return"function"!==n&&!h.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}h.fn=h.prototype={jquery:"2.2.4",constructor:h,selector:"",length:0,toArray:function(){return s.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:s.call(this)},pushStack:function(e){var t=h.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return h.each(this,e)},map:function(e){return this.pushStack(h.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:i.sort,splice:i.splice},h.extend=h.fn.extend=function(){var e,t,n,r,o,i,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||h.isFunction(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],a!==(r=e[t])&&(c&&r&&(h.isPlainObject(r)||(o=h.isArray(r)))?(o?(o=!1,i=n&&h.isArray(n)?n:[]):i=n&&h.isPlainObject(n)?n:{},a[t]=h.extend(c,i,r)):void 0!==r&&(a[t]=r));return a},h.extend({expando:"jQuery"+("2.2.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===h.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!h.isArray(e)&&t-parseFloat(t)+1>=0},isPlainObject:function(e){var t;if("object"!==h.type(e)||e.nodeType||h.isWindow(e))return!1;if(e.constructor&&!g.call(e,"constructor")&&!g.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return void 0===t||g.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[p.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=h.trim(e))&&(1===e.indexOf("use strict")?((t=a.createElement("script")).text=e,a.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(v,"ms-").replace(y,b)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(E(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(m,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(E(Object(e))?h.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,i=e.length,a=!n;o<i;o++)!t(e[o],o)!==a&&r.push(e[o]);return r},map:function(e,t,n){var r,o,i=0,a=[];if(E(e))for(r=e.length;i<r;i++)null!=(o=t(e[i],i,n))&&a.push(o);else for(i in e)null!=(o=t(e[i],i,n))&&a.push(o);return l.apply([],a)},guid:1,proxy:function(e,t){var n,r,o;if("string"==typeof t&&(n=e[t],t=e,e=n),h.isFunction(e))return r=s.call(arguments,2),(o=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||h.guid++,o},now:Date.now,support:f}),"function"==typeof Symbol&&(h.fn[Symbol.iterator]=i[Symbol.iterator]),h.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){d["[object "+t+"]"]=t.toLowerCase()});var T=
/*!
 * Sizzle CSS Selector Engine v2.2.1
 * http://sizzlejs.com/
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2015-10-17
 */
function(e){var t,n,r,o,i,a,s,l,c,u,d,p,g,f,h,m,v,y,b,E="sizzle"+1*new Date,T=e.document,C=0,x=0,S=ie(),w=ie(),V=ie(),I=function(e,t){return e===t&&(d=!0),0},A=1<<31,_={}.hasOwnProperty,D=[],k=D.pop,N=D.push,O=D.push,P=D.slice,L=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",G="[\\x20\\t\\r\\n\\f]",j="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",U="\\["+G+"*("+j+")(?:"+G+"*([*^$|!~]?=)"+G+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+G+"*\\]",M=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+U+")*)|.*)\\)|)",H=new RegExp(G+"+","g"),q=new RegExp("^"+G+"+|((?:^|[^\\\\])(?:\\\\.)*)"+G+"+$","g"),F=new RegExp("^"+G+"*,"+G+"*"),B=new RegExp("^"+G+"*([>+~]|"+G+")"+G+"*"),Q=new RegExp("="+G+"*([^\\]'\"]*?)"+G+"*\\]","g"),W=new RegExp(M),z=new RegExp("^"+j+"$"),K={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+M),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+G+"*(even|odd|(([+-]|)(\\d*)n|)"+G+"*(?:([+-]|)"+G+"*(\\d+)|))"+G+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+G+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+G+"*((?:-\\d)?\\d*)"+G+"*\\)|)(?=[^-]|$)","i")},$=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,ee=/'|\\/g,te=new RegExp("\\\\([\\da-f]{1,6}"+G+"?|("+G+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=function(){p()};try{O.apply(D=P.call(T.childNodes),T.childNodes),D[T.childNodes.length].nodeType}catch(e){O={apply:D.length?function(e,t){N.apply(e,P.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function oe(e,t,r,o){var i,s,c,u,d,f,v,y,C=t&&t.ownerDocument,x=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return r;if(!o&&((t?t.ownerDocument||t:T)!==g&&p(t),t=t||g,h)){if(11!==x&&(f=X.exec(e)))if(i=f[1]){if(9===x){if(!(c=t.getElementById(i)))return r;if(c.id===i)return r.push(c),r}else if(C&&(c=C.getElementById(i))&&b(t,c)&&c.id===i)return r.push(c),r}else{if(f[2])return O.apply(r,t.getElementsByTagName(e)),r;if((i=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return O.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!V[e+" "]&&(!m||!m.test(e))){if(1!==x)C=t,y=e;else if("object"!==t.nodeName.toLowerCase()){for((u=t.getAttribute("id"))?u=u.replace(ee,"\\$&"):t.setAttribute("id",u=E),s=(v=a(e)).length,d=z.test(u)?"#"+u:"[id='"+u+"']";s--;)v[s]=d+" "+he(v[s]);y=v.join(","),C=Z.test(e)&&ge(t.parentNode)||t}if(y)try{return O.apply(r,C.querySelectorAll(y)),r}catch(e){}finally{u===E&&t.removeAttribute("id")}}}return l(e.replace(q,"$1"),t,r,o)}function ie(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function ae(e){return e[E]=!0,e}function se(e){var t=g.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function ce(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||A)-(~e.sourceIndex||A);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ue(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function de(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function pe(e){return ae(function(t){return t=+t,ae(function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=oe.support={},i=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},p=oe.setDocument=function(e){var t,o,a=e?e.ownerDocument||e:T;return a!==g&&9===a.nodeType&&a.documentElement?(f=(g=a).documentElement,h=!i(g),(o=g.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",re,!1):o.attachEvent&&o.attachEvent("onunload",re)),n.attributes=se(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=se(function(e){return e.appendChild(g.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=J.test(g.getElementsByClassName),n.getById=se(function(e){return f.appendChild(e).id=E,!g.getElementsByName||!g.getElementsByName(E).length}),n.getById?(r.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var n=t.getElementById(e);return n?[n]:[]}},r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&h)return t.getElementsByClassName(e)},v=[],m=[],(n.qsa=J.test(g.querySelectorAll))&&(se(function(e){f.appendChild(e).innerHTML="<a id='"+E+"'></a><select id='"+E+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+G+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+G+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+E+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+E+"+*").length||m.push(".#.+[+~]")}),se(function(e){var t=g.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+G+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=J.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&se(function(e){n.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),v.push("!=",M)}),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(f.compareDocumentPosition),b=t||J.test(f.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},I=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===g||e.ownerDocument===T&&b(T,e)?-1:t===g||t.ownerDocument===T&&b(T,t)?1:u?L(u,e)-L(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!o||!i)return e===g?-1:t===g?1:o?-1:i?1:u?L(u,e)-L(u,t):0;if(o===i)return ce(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?ce(a[r],s[r]):a[r]===T?-1:s[r]===T?1:0},g):g},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==g&&p(e),t=t.replace(Q,"='$1']"),n.matchesSelector&&h&&!V[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return oe(t,g,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!==g&&p(e),b(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!==g&&p(e);var o=r.attrHandle[t.toLowerCase()],i=o&&_.call(r.attrHandle,t.toLowerCase())?o(e,t,!h):void 0;return void 0!==i?i:n.attributes||!h?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,r=[],o=0,i=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(I),d){for(;t=e[i++];)t===e[i]&&(o=r.push(i));for(;o--;)e.splice(r[o],1)}return u=null,e},o=oe.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(r=oe.selectors={cacheLength:50,createPseudo:ae,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|"+G+")"+e+"("+G+"|$)"))&&S(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var o=oe.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(H," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,p,g,f,h=i!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(m){if(i){for(;h;){for(p=t;p=p[h];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;f=h="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?m.firstChild:m.lastChild],a&&y){for(b=(g=(c=(u=(d=(p=m)[E]||(p[E]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===C&&c[1])&&c[2],p=g&&m.childNodes[g];p=++g&&p&&p[h]||(b=g=0)||f.pop();)if(1===p.nodeType&&++b&&p===t){u[e]=[C,g,b];break}}else if(y&&(b=g=(c=(u=(d=(p=t)[E]||(p[E]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===C&&c[1]),!1===b)for(;(p=++g&&p&&p[h]||(b=g=0)||f.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++b||(y&&((u=(d=p[E]||(p[E]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]=[C,b]),p!==t)););return(b-=o)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return o[E]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ae(function(e,n){for(var r,i=o(e,t),a=i.length;a--;)e[r=L(e,i[a])]=!(n[r]=i[a])}):function(e){return o(e,0,n)}):o}},pseudos:{not:ae(function(e){var t=[],n=[],r=s(e.replace(q,"$1"));return r[E]?ae(function(e,t,n,o){for(var i,a=r(e,null,o,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))}):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}}),has:ae(function(e){return function(t){return oe(e,t).length>0}}),contains:ae(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:ae(function(e){return z.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===g.activeElement&&(!g.hasFocus||g.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return $.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:pe(function(){return[0]}),last:pe(function(e,t){return[t-1]}),eq:pe(function(e,t,n){return[n<0?n+t:n]}),even:pe(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:pe(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:pe(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:pe(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=ue(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=de(t);function fe(){}function he(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function me(e,t,n){var r=t.dir,o=n&&"parentNode"===r,i=x++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,a){var s,l,c,u=[C,i];if(a){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||o){if((s=(l=(c=t[E]||(t[E]={}))[t.uniqueID]||(c[t.uniqueID]={}))[r])&&s[0]===C&&s[1]===i)return u[2]=s[2];if(l[r]=u,u[2]=e(t,n,a))return!0}}}function ve(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function ye(e,t,n,r,o){for(var i,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(i=e[s])&&(n&&!n(i,r,o)||(a.push(i),c&&t.push(s)));return a}function be(e,t,n,r,o,i){return r&&!r[E]&&(r=be(r)),o&&!o[E]&&(o=be(o,i)),ae(function(i,a,s,l){var c,u,d,p=[],g=[],f=a.length,h=i||function(e,t,n){for(var r=0,o=t.length;r<o;r++)oe(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),m=!e||!i&&t?h:ye(h,p,e,s,l),v=n?o||(i?e:f||r)?[]:a:m;if(n&&n(m,v,s,l),r)for(c=ye(v,g),r(c,[],s,l),u=c.length;u--;)(d=c[u])&&(v[g[u]]=!(m[g[u]]=d));if(i){if(o||e){if(o){for(c=[],u=v.length;u--;)(d=v[u])&&c.push(m[u]=d);o(null,v=[],c,l)}for(u=v.length;u--;)(d=v[u])&&(c=o?L(i,d):p[u])>-1&&(i[c]=!(a[c]=d))}}else v=ye(v===a?v.splice(f,v.length):v),o?o(null,a,v,l):O.apply(a,v)})}function Ee(e){for(var t,n,o,i=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],l=a?1:0,u=me(function(e){return e===t},s,!0),d=me(function(e){return L(t,e)>-1},s,!0),p=[function(e,n,r){var o=!a&&(r||n!==c)||((t=n).nodeType?u(e,n,r):d(e,n,r));return t=null,o}];l<i;l++)if(n=r.relative[e[l].type])p=[me(ve(p),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[E]){for(o=++l;o<i&&!r.relative[e[o].type];o++);return be(l>1&&ve(p),l>1&&he(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(q,"$1"),n,l<o&&Ee(e.slice(l,o)),o<i&&Ee(e=e.slice(o)),o<i&&he(e))}p.push(n)}return ve(p)}return fe.prototype=r.filters=r.pseudos,r.setFilters=new fe,a=oe.tokenize=function(e,t){var n,o,i,a,s,l,c,u=w[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=r.preFilter;s;){for(a in n&&!(o=F.exec(s))||(o&&(s=s.slice(o[0].length)||s),l.push(i=[])),n=!1,(o=B.exec(s))&&(n=o.shift(),i.push({value:n,type:o[0].replace(q," ")}),s=s.slice(n.length)),r.filter)!(o=K[a].exec(s))||c[a]&&!(o=c[a](o))||(n=o.shift(),i.push({value:n,type:a,matches:o}),s=s.slice(n.length));if(!n)break}return t?s.length:s?oe.error(e):w(e,l).slice(0)},s=oe.compile=function(e,t){var n,o=[],i=[],s=V[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=Ee(t[n]))[E]?o.push(s):i.push(s);(s=V(e,function(e,t){var n=t.length>0,o=e.length>0,i=function(i,a,s,l,u){var d,f,m,v=0,y="0",b=i&&[],E=[],T=c,x=i||o&&r.find.TAG("*",u),S=C+=null==T?1:Math.random()||.1,w=x.length;for(u&&(c=a===g||a||u);y!==w&&null!=(d=x[y]);y++){if(o&&d){for(f=0,a||d.ownerDocument===g||(p(d),s=!h);m=e[f++];)if(m(d,a||g,s)){l.push(d);break}u&&(C=S)}n&&((d=!m&&d)&&v--,i&&b.push(d))}if(v+=y,n&&y!==v){for(f=0;m=t[f++];)m(b,E,a,s);if(i){if(v>0)for(;y--;)b[y]||E[y]||(E[y]=k.call(l));E=ye(E)}O.apply(l,E),u&&!i&&E.length>0&&v+t.length>1&&oe.uniqueSort(l)}return u&&(C=S,c=T),b};return n?ae(i):i}(i,o))).selector=e}return s},l=oe.select=function(e,t,o,i){var l,c,u,d,p,g="function"==typeof e&&e,f=!i&&a(e=g.selector||e);if(o=o||[],1===f.length){if((c=f[0]=f[0].slice(0)).length>2&&"ID"===(u=c[0]).type&&n.getById&&9===t.nodeType&&h&&r.relative[c[1].type]){if(!(t=(r.find.ID(u.matches[0].replace(te,ne),t)||[])[0]))return o;g&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(l=K.needsContext.test(e)?0:c.length;l--&&(u=c[l],!r.relative[d=u.type]);)if((p=r.find[d])&&(i=p(u.matches[0].replace(te,ne),Z.test(c[0].type)&&ge(t.parentNode)||t))){if(c.splice(l,1),!(e=i.length&&he(c)))return O.apply(o,i),o;break}}return(g||s(e,f))(i,t,!h,o,!t||Z.test(e)&&ge(t.parentNode)||t),o},n.sortStable=E.split("").sort(I).join("")===E,n.detectDuplicates=!!d,p(),n.sortDetached=se(function(e){return 1&e.compareDocumentPosition(g.createElement("div"))}),se(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||le("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&se(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||le("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),se(function(e){return null==e.getAttribute("disabled")})||le(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),oe}(n);h.find=T,h.expr=T.selectors,h.expr[":"]=h.expr.pseudos,h.uniqueSort=h.unique=T.uniqueSort,h.text=T.getText,h.isXMLDoc=T.isXML,h.contains=T.contains;var C=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&h(e).is(n))break;r.push(e)}return r},x=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},S=h.expr.match.needsContext,w=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,V=/^.[^:#\[\.,]*$/;function I(e,t,n){if(h.isFunction(t))return h.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return h.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(V.test(t))return h.filter(t,e,n);t=h.filter(t,e)}return h.grep(e,function(e){return u.call(t,e)>-1!==n})}h.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?h.find.matchesSelector(r,e)?[r]:[]:h.find.matches(e,h.grep(t,function(e){return 1===e.nodeType}))},h.fn.extend({find:function(e){var t,n=this.length,r=[],o=this;if("string"!=typeof e)return this.pushStack(h(e).filter(function(){for(t=0;t<n;t++)if(h.contains(o[t],this))return!0}));for(t=0;t<n;t++)h.find(e,o[t],r);return(r=this.pushStack(n>1?h.unique(r):r)).selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(I(this,e||[],!1))},not:function(e){return this.pushStack(I(this,e||[],!0))},is:function(e){return!!I(this,"string"==typeof e&&S.test(e)?h(e):e||[],!1).length}});var A,_=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(h.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||A,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:_.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof h?t[0]:t,h.merge(this,h.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:a,!0)),w.test(r[1])&&h.isPlainObject(t))for(r in t)h.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=a.getElementById(r[2]))&&o.parentNode&&(this.length=1,this[0]=o),this.context=a,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):h.isFunction(e)?void 0!==n.ready?n.ready(e):e(h):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),h.makeArray(e,this))}).prototype=h.fn,A=h(a);var D=/^(?:parents|prev(?:Until|All))/,k={children:!0,contents:!0,next:!0,prev:!0};function N(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}h.fn.extend({has:function(e){var t=h(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(h.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,r=0,o=this.length,i=[],a=S.test(e)||"string"!=typeof e?h(e,t||this.context):0;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&h.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?h.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?u.call(h(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(h.uniqueSort(h.merge(this.get(),h(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),h.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return C(e,"parentNode")},parentsUntil:function(e,t,n){return C(e,"parentNode",n)},next:function(e){return N(e,"nextSibling")},prev:function(e){return N(e,"previousSibling")},nextAll:function(e){return C(e,"nextSibling")},prevAll:function(e){return C(e,"previousSibling")},nextUntil:function(e,t,n){return C(e,"nextSibling",n)},prevUntil:function(e,t,n){return C(e,"previousSibling",n)},siblings:function(e){return x((e.parentNode||{}).firstChild,e)},children:function(e){return x(e.firstChild)},contents:function(e){return e.contentDocument||h.merge([],e.childNodes)}},function(e,t){h.fn[e]=function(n,r){var o=h.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=h.filter(r,o)),this.length>1&&(k[e]||h.uniqueSort(o),D.test(e)&&o.reverse()),this.pushStack(o)}});var O,P=/\S+/g;function L(){a.removeEventListener("DOMContentLoaded",L),n.removeEventListener("load",L),h.ready()}h.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return h.each(e.match(P)||[],function(e,n){t[n]=!0}),t}(e):h.extend({},e);var t,n,r,o,i=[],a=[],s=-1,l=function(){for(o=e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<i.length;)!1===i[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=i.length,n=!1);e.memory||(n=!1),t=!1,o&&(i=n?[]:"")},c={add:function(){return i&&(n&&!t&&(s=i.length-1,a.push(n)),function t(n){h.each(n,function(n,r){h.isFunction(r)?e.unique&&c.has(r)||i.push(r):r&&r.length&&"string"!==h.type(r)&&t(r)})}(arguments),n&&!t&&l()),this},remove:function(){return h.each(arguments,function(e,t){for(var n;(n=h.inArray(t,i,n))>-1;)i.splice(n,1),n<=s&&s--}),this},has:function(e){return e?h.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=a=[],n||(i=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},h.extend({Deferred:function(e){var t=[["resolve","done",h.Callbacks("once memory"),"resolved"],["reject","fail",h.Callbacks("once memory"),"rejected"],["notify","progress",h.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var e=arguments;return h.Deferred(function(n){h.each(t,function(t,i){var a=h.isFunction(e[t])&&e[t];o[i[1]](function(){var e=a&&a.apply(this,arguments);e&&h.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?h.extend(e,r):r}},o={};return r.pipe=r.then,h.each(t,function(e,i){var a=i[2],s=i[3];r[i[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),o[i[0]]=function(){return o[i[0]+"With"](this===o?r:this,arguments),this},o[i[0]+"With"]=a.fireWith}),r.promise(o),e&&e.call(o,o),o},when:function(e){var t,n,r,o=0,i=s.call(arguments),a=i.length,l=1!==a||e&&h.isFunction(e.promise)?a:0,c=1===l?e:h.Deferred(),u=function(e,n,r){return function(o){n[e]=this,r[e]=arguments.length>1?s.call(arguments):o,r===t?c.notifyWith(n,r):--l||c.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);o<a;o++)i[o]&&h.isFunction(i[o].promise)?i[o].promise().progress(u(o,n,t)).done(u(o,r,i)).fail(c.reject):--l;return l||c.resolveWith(r,i),c.promise()}}),h.fn.ready=function(e){return h.ready.promise().done(e),this},h.extend({isReady:!1,readyWait:1,holdReady:function(e){e?h.readyWait++:h.ready(!0)},ready:function(e){(!0===e?--h.readyWait:h.isReady)||(h.isReady=!0,!0!==e&&--h.readyWait>0||(O.resolveWith(a,[h]),h.fn.triggerHandler&&(h(a).triggerHandler("ready"),h(a).off("ready"))))}}),h.ready.promise=function(e){return O||(O=h.Deferred(),"complete"===a.readyState||"loading"!==a.readyState&&!a.documentElement.doScroll?n.setTimeout(h.ready):(a.addEventListener("DOMContentLoaded",L),n.addEventListener("load",L))),O.promise(e)},h.ready.promise();var R=function(e,t,n,r,o,i,a){var s=0,l=e.length,c=null==n;if("object"===h.type(n))for(s in o=!0,n)R(e,t,s,n[s],!0,i,a);else if(void 0!==r&&(o=!0,h.isFunction(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(h(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return o?e:c?t.call(e):l?t(e[0],n):i},G=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function j(){this.expando=h.expando+j.uid++}j.uid=1,j.prototype={register:function(e,t){var n=t||{};return e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!G(e))return{};var t=e[this.expando];return t||(t={},G(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if("string"==typeof t)o[t]=n;else for(r in t)o[r]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,n){var r;return void 0===t||t&&"string"==typeof t&&void 0===n?void 0!==(r=this.get(e,t))?r:this.get(e,h.camelCase(t)):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r,o,i=e[this.expando];if(void 0!==i){if(void 0===t)this.register(e);else{h.isArray(t)?r=t.concat(t.map(h.camelCase)):(o=h.camelCase(t),r=t in i?[t,o]:(r=o)in i?[r]:r.match(P)||[]),n=r.length;for(;n--;)delete i[r[n]]}(void 0===t||h.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!h.isEmptyObject(t)}};var U=new j,M=new j,H=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,q=/[A-Z]/g;function F(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(q,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:H.test(n)?h.parseJSON(n):n)}catch(e){}M.set(e,t,n)}else n=void 0;return n}h.extend({hasData:function(e){return M.hasData(e)||U.hasData(e)},data:function(e,t,n){return M.access(e,t,n)},removeData:function(e,t){M.remove(e,t)},_data:function(e,t,n){return U.access(e,t,n)},_removeData:function(e,t){U.remove(e,t)}}),h.fn.extend({data:function(e,t){var n,r,o,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(o=M.get(i),1===i.nodeType&&!U.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=h.camelCase(r.slice(5)),F(i,r,o[r]));U.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){M.set(this,e)}):R(this,function(t){var n,r;if(i&&void 0===t)return void 0!==(n=M.get(i,e)||M.get(i,e.replace(q,"-$&").toLowerCase()))?n:(r=h.camelCase(e),void 0!==(n=M.get(i,r))?n:void 0!==(n=F(i,r,void 0))?n:void 0);r=h.camelCase(e),this.each(function(){var n=M.get(this,r);M.set(this,r,t),e.indexOf("-")>-1&&void 0!==n&&M.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){M.remove(this,e)})}}),h.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=U.get(e,t),n&&(!r||h.isArray(n)?r=U.access(e,t,h.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=h.queue(e,t),r=n.length,o=n.shift(),i=h._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,function(){h.dequeue(e,t)},i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return U.get(e,n)||U.access(e,n,{empty:h.Callbacks("once memory").add(function(){U.remove(e,[t+"queue",n])})})}}),h.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?h.queue(this[0],e):void 0===t?this:this.each(function(){var n=h.queue(this,e,t);h._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&h.dequeue(this,e)})},dequeue:function(e){return this.each(function(){h.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=h.Deferred(),i=this,a=this.length,s=function(){--r||o.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=U.get(i[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),o.promise(t)}});var B=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Q=new RegExp("^(?:([+-])=|)("+B+")([a-z%]*)$","i"),W=["Top","Right","Bottom","Left"],z=function(e,t){return e=t||e,"none"===h.css(e,"display")||!h.contains(e.ownerDocument,e)};function K(e,t,n,r){var o,i=1,a=20,s=r?function(){return r.cur()}:function(){return h.css(e,t,"")},l=s(),c=n&&n[3]||(h.cssNumber[t]?"":"px"),u=(h.cssNumber[t]||"px"!==c&&+l)&&Q.exec(h.css(e,t));if(u&&u[3]!==c){c=c||u[3],n=n||[],u=+l||1;do{u/=i=i||".5",h.style(e,t,u+c)}while(i!==(i=s()/l)&&1!==i&&--a)}return n&&(u=+u||+l||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=o)),o}var $=/^(?:checkbox|radio)$/i,Y=/<([\w:-]+)/,J=/^$|\/(?:java|ecma)script/i,X={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Z(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&h.nodeName(e,t)?h.merge([e],n):n}function ee(e,t){for(var n=0,r=e.length;n<r;n++)U.set(e[n],"globalEval",!t||U.get(t[n],"globalEval"))}X.optgroup=X.option,X.tbody=X.tfoot=X.colgroup=X.caption=X.thead,X.th=X.td;var te,ne,re=/<|&#?\w+;/;function oe(e,t,n,r,o){for(var i,a,s,l,c,u,d=t.createDocumentFragment(),p=[],g=0,f=e.length;g<f;g++)if((i=e[g])||0===i)if("object"===h.type(i))h.merge(p,i.nodeType?[i]:i);else if(re.test(i)){for(a=a||d.appendChild(t.createElement("div")),s=(Y.exec(i)||["",""])[1].toLowerCase(),l=X[s]||X._default,a.innerHTML=l[1]+h.htmlPrefilter(i)+l[2],u=l[0];u--;)a=a.lastChild;h.merge(p,a.childNodes),(a=d.firstChild).textContent=""}else p.push(t.createTextNode(i));for(d.textContent="",g=0;i=p[g++];)if(r&&h.inArray(i,r)>-1)o&&o.push(i);else if(c=h.contains(i.ownerDocument,i),a=Z(d.appendChild(i),"script"),c&&ee(a),n)for(u=0;i=a[u++];)J.test(i.type||"")&&n.push(i);return d}te=a.createDocumentFragment().appendChild(a.createElement("div")),(ne=a.createElement("input")).setAttribute("type","radio"),ne.setAttribute("checked","checked"),ne.setAttribute("name","t"),te.appendChild(ne),f.checkClone=te.cloneNode(!0).cloneNode(!0).lastChild.checked,te.innerHTML="<textarea>x</textarea>",f.noCloneChecked=!!te.cloneNode(!0).lastChild.defaultValue;var ie=/^key/,ae=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,se=/^([^.]*)(?:\.(.+)|)/;function le(){return!0}function ce(){return!1}function ue(){try{return a.activeElement}catch(e){}}function de(e,t,n,r,o,i){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)de(e,s,n,r,t[s],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=ce;else if(!o)return e;return 1===i&&(a=o,(o=function(e){return h().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=h.guid++)),e.each(function(){h.event.add(this,t,o,r,n)})}h.event={global:{},add:function(e,t,n,r,o){var i,a,s,l,c,u,d,p,g,f,m,v=U.get(e);if(v)for(n.handler&&(n=(i=n).handler,o=i.selector),n.guid||(n.guid=h.guid++),(l=v.events)||(l=v.events={}),(a=v.handle)||(a=v.handle=function(t){return void 0!==h&&h.event.triggered!==t.type?h.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(P)||[""]).length;c--;)g=m=(s=se.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),g&&(d=h.event.special[g]||{},g=(o?d.delegateType:d.bindType)||g,d=h.event.special[g]||{},u=h.extend({type:g,origType:m,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&h.expr.match.needsContext.test(o),namespace:f.join(".")},i),(p=l[g])||((p=l[g]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,f,a)||e.addEventListener&&e.addEventListener(g,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,u):p.push(u),h.event.global[g]=!0)},remove:function(e,t,n,r,o){var i,a,s,l,c,u,d,p,g,f,m,v=U.hasData(e)&&U.get(e);if(v&&(l=v.events)){for(c=(t=(t||"").match(P)||[""]).length;c--;)if(g=m=(s=se.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),g){for(d=h.event.special[g]||{},p=l[g=(r?d.delegateType:d.bindType)||g]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=p.length;i--;)u=p[i],!o&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(p.splice(i,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,f,v.handle)||h.removeEvent(e,g,v.handle),delete l[g])}else for(g in l)h.event.remove(e,g+t[c],n,r,!0);h.isEmptyObject(l)&&U.remove(e,"handle events")}},dispatch:function(e){e=h.event.fix(e);var t,n,r,o,i,a,l=s.call(arguments),c=(U.get(this,"events")||{})[e.type]||[],u=h.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(a=h.event.handlers.call(this,e,c),t=0;(o=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(i.namespace)||(e.handleObj=i,e.data=i.data,void 0!==(r=((h.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,l))&&!1===(e.result=r)&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,o,i,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(r=[],n=0;n<s;n++)void 0===r[o=(i=t[n]).selector+" "]&&(r[o]=i.needsContext?h(o,this).index(l)>-1:h.find(o,this,null,[l]).length),r[o]&&r.push(i);r.length&&a.push({elem:l,handlers:r})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},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(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,o,i=t.button;return null==e.pageX&&null!=t.clientX&&(r=(n=e.target.ownerDocument||a).documentElement,o=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)),e.which||void 0===i||(e.which=1&i?1:2&i?3:4&i?2:0),e}},fix:function(e){if(e[h.expando])return e;var t,n,r,o=e.type,i=e,s=this.fixHooks[o];for(s||(this.fixHooks[o]=s=ae.test(o)?this.mouseHooks:ie.test(o)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new h.Event(i),t=r.length;t--;)e[n=r[t]]=i[n];return e.target||(e.target=a),3===e.target.nodeType&&(e.target=e.target.parentNode),s.filter?s.filter(e,i):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ue()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===ue()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&h.nodeName(this,"input"))return this.click(),!1},_default:function(e){return h.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},h.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},h.Event=function(e,t){if(!(this instanceof h.Event))return new h.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?le:ce):this.type=e,t&&h.extend(this,t),this.timeStamp=e&&e.timeStamp||h.now(),this[h.expando]=!0},h.Event.prototype={constructor:h.Event,isDefaultPrevented:ce,isPropagationStopped:ce,isImmediatePropagationStopped:ce,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=le,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=le,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=le,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},h.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){h.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,o=e.handleObj;return r&&(r===this||h.contains(this,r))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),h.fn.extend({on:function(e,t,n,r){return de(this,e,t,n,r)},one:function(e,t,n,r){return de(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,h(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=ce),this.each(function(){h.event.remove(this,e,n,t)})}});var pe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ge=/<script|<style|<link/i,fe=/checked\s*(?:[^=]|=\s*.checked.)/i,he=/^true\/(.*)/,me=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function ve(e,t){return h.nodeName(e,"table")&&h.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ye(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function be(e){var t=he.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Ee(e,t){var n,r,o,i,a,s,l,c;if(1===t.nodeType){if(U.hasData(e)&&(i=U.access(e),a=U.set(t,i),c=i.events))for(o in delete a.handle,a.events={},c)for(n=0,r=c[o].length;n<r;n++)h.event.add(t,o,c[o][n]);M.hasData(e)&&(s=M.access(e),l=h.extend({},s),M.set(t,l))}}function Te(e,t,n,r){t=l.apply([],t);var o,i,a,s,c,u,d=0,p=e.length,g=p-1,m=t[0],v=h.isFunction(m);if(v||p>1&&"string"==typeof m&&!f.checkClone&&fe.test(m))return e.each(function(o){var i=e.eq(o);v&&(t[0]=m.call(this,o,i.html())),Te(i,t,n,r)});if(p&&(i=(o=oe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=i),i||r)){for(s=(a=h.map(Z(o,"script"),ye)).length;d<p;d++)c=o,d!==g&&(c=h.clone(c,!0,!0),s&&h.merge(a,Z(c,"script"))),n.call(e[d],c,d);if(s)for(u=a[a.length-1].ownerDocument,h.map(a,be),d=0;d<s;d++)c=a[d],J.test(c.type||"")&&!U.access(c,"globalEval")&&h.contains(u,c)&&(c.src?h._evalUrl&&h._evalUrl(c.src):h.globalEval(c.textContent.replace(me,"")))}return e}function Ce(e,t,n){for(var r,o=t?h.filter(t,e):e,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||h.cleanData(Z(r)),r.parentNode&&(n&&h.contains(r.ownerDocument,r)&&ee(Z(r,"script")),r.parentNode.removeChild(r));return e}h.extend({htmlPrefilter:function(e){return e.replace(pe,"<$1></$2>")},clone:function(e,t,n){var r,o,i,a,s,l,c,u=e.cloneNode(!0),d=h.contains(e.ownerDocument,e);if(!(f.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||h.isXMLDoc(e)))for(a=Z(u),r=0,o=(i=Z(e)).length;r<o;r++)s=i[r],l=a[r],c=void 0,"input"===(c=l.nodeName.toLowerCase())&&$.test(s.type)?l.checked=s.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=s.defaultValue);if(t)if(n)for(i=i||Z(e),a=a||Z(u),r=0,o=i.length;r<o;r++)Ee(i[r],a[r]);else Ee(e,u);return(a=Z(u,"script")).length>0&&ee(a,!d&&Z(e,"script")),u},cleanData:function(e){for(var t,n,r,o=h.event.special,i=0;void 0!==(n=e[i]);i++)if(G(n)){if(t=n[U.expando]){if(t.events)for(r in t.events)o[r]?h.event.remove(n,r):h.removeEvent(n,r,t.handle);n[U.expando]=void 0}n[M.expando]&&(n[M.expando]=void 0)}}}),h.fn.extend({domManip:Te,detach:function(e){return Ce(this,e,!0)},remove:function(e){return Ce(this,e)},text:function(e){return R(this,function(e){return void 0===e?h.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Te(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ve(this,e).appendChild(e)})},prepend:function(){return Te(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ve(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Te(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Te(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(h.cleanData(Z(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return h.clone(this,e,t)})},html:function(e){return R(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ge.test(e)&&!X[(Y.exec(e)||["",""])[1].toLowerCase()]){e=h.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(h.cleanData(Z(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Te(this,arguments,function(t){var n=this.parentNode;h.inArray(this,e)<0&&(h.cleanData(Z(this)),n&&n.replaceChild(t,this))},e)}}),h.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){h.fn[e]=function(e){for(var n,r=[],o=h(e),i=o.length-1,a=0;a<=i;a++)n=a===i?this:this.clone(!0),h(o[a])[t](n),c.apply(r,n.get());return this.pushStack(r)}});var xe,Se={HTML:"block",BODY:"block"};function we(e,t){var n=h(t.createElement(e)).appendTo(t.body),r=h.css(n[0],"display");return n.detach(),r}function Ve(e){var t=a,n=Se[e];return n||("none"!==(n=we(e,t))&&n||((t=(xe=(xe||h("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=we(e,t),xe.detach()),Se[e]=n),n}var Ie=/^margin/,Ae=new RegExp("^("+B+")(?!px)[a-z%]+$","i"),_e=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},De=function(e,t,n,r){var o,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];for(i in o=n.apply(e,r||[]),t)e.style[i]=a[i];return o},ke=a.documentElement;function Ne(e,t,n){var r,o,i,a,s=e.style;return""!==(a=(n=n||_e(e))?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==a||h.contains(e.ownerDocument,e)||(a=h.style(e,t)),n&&!f.pixelMarginRight()&&Ae.test(a)&&Ie.test(t)&&(r=s.width,o=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=o,s.maxWidth=i),void 0!==a?a+"":a}function Oe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){var e,t,r,o,i=a.createElement("div"),s=a.createElement("div");function l(){s.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",s.innerHTML="",ke.appendChild(i);var a=n.getComputedStyle(s);e="1%"!==a.top,o="2px"===a.marginLeft,t="4px"===a.width,s.style.marginRight="50%",r="4px"===a.marginRight,ke.removeChild(i)}s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===s.style.backgroundClip,i.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",i.appendChild(s),h.extend(f,{pixelPosition:function(){return l(),e},boxSizingReliable:function(){return null==t&&l(),t},pixelMarginRight:function(){return null==t&&l(),r},reliableMarginLeft:function(){return null==t&&l(),o},reliableMarginRight:function(){var e,t=s.appendChild(a.createElement("div"));return t.style.cssText=s.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",s.style.width="1px",ke.appendChild(i),e=!parseFloat(n.getComputedStyle(t).marginRight),ke.removeChild(i),s.removeChild(t),e}}))}();var Pe=/^(none|table(?!-c[ea]).+)/,Le={position:"absolute",visibility:"hidden",display:"block"},Re={letterSpacing:"0",fontWeight:"400"},Ge=["Webkit","O","Moz","ms"],je=a.createElement("div").style;function Ue(e){if(e in je)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Ge.length;n--;)if((e=Ge[n]+t)in je)return e}function Me(e,t,n){var r=Q.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function He(e,t,n,r,o){for(var i=n===(r?"border":"content")?4:"width"===t?1:0,a=0;i<4;i+=2)"margin"===n&&(a+=h.css(e,n+W[i],!0,o)),r?("content"===n&&(a-=h.css(e,"padding"+W[i],!0,o)),"margin"!==n&&(a-=h.css(e,"border"+W[i]+"Width",!0,o))):(a+=h.css(e,"padding"+W[i],!0,o),"padding"!==n&&(a+=h.css(e,"border"+W[i]+"Width",!0,o)));return a}function qe(e,t,n){var r=!0,o="width"===t?e.offsetWidth:e.offsetHeight,i=_e(e),a="border-box"===h.css(e,"boxSizing",!1,i);if(o<=0||null==o){if(((o=Ne(e,t,i))<0||null==o)&&(o=e.style[t]),Ae.test(o))return o;r=a&&(f.boxSizingReliable()||o===e.style[t]),o=parseFloat(o)||0}return o+He(e,t,n||(a?"border":"content"),r,i)+"px"}function Fe(e,t){for(var n,r,o,i=[],a=0,s=e.length;a<s;a++)(r=e[a]).style&&(i[a]=U.get(r,"olddisplay"),n=r.style.display,t?(i[a]||"none"!==n||(r.style.display=""),""===r.style.display&&z(r)&&(i[a]=U.access(r,"olddisplay",Ve(r.nodeName)))):(o=z(r),"none"===n&&o||U.set(r,"olddisplay",o?n:h.css(r,"display"))));for(a=0;a<s;a++)(r=e[a]).style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?i[a]||"":"none"));return e}function Be(e,t,n,r,o){return new Be.prototype.init(e,t,n,r,o)}h.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ne(e,"opacity");return""===n?"1":n}}}},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:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,a,s=h.camelCase(t),l=e.style;if(t=h.cssProps[s]||(h.cssProps[s]=Ue(s)||s),a=h.cssHooks[t]||h.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(e,!1,r))?o:l[t];"string"===(i=typeof n)&&(o=Q.exec(n))&&o[1]&&(n=K(e,t,o),i="number"),null!=n&&n==n&&("number"===i&&(n+=o&&o[3]||(h.cssNumber[s]?"":"px")),f.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l[t]=n))}},css:function(e,t,n,r){var o,i,a,s=h.camelCase(t);return t=h.cssProps[s]||(h.cssProps[s]=Ue(s)||s),(a=h.cssHooks[t]||h.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=Ne(e,t,r)),"normal"===o&&t in Re&&(o=Re[t]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),h.each(["height","width"],function(e,t){h.cssHooks[t]={get:function(e,n,r){if(n)return Pe.test(h.css(e,"display"))&&0===e.offsetWidth?De(e,Le,function(){return qe(e,t,r)}):qe(e,t,r)},set:function(e,n,r){var o,i=r&&_e(e),a=r&&He(e,t,r,"border-box"===h.css(e,"boxSizing",!1,i),i);return a&&(o=Q.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=h.css(e,t)),Me(0,n,a)}}}),h.cssHooks.marginLeft=Oe(f.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ne(e,"marginLeft"))||e.getBoundingClientRect().left-De(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),h.cssHooks.marginRight=Oe(f.reliableMarginRight,function(e,t){if(t)return De(e,{display:"inline-block"},Ne,[e,"marginRight"])}),h.each({margin:"",padding:"",border:"Width"},function(e,t){h.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];r<4;r++)o[e+W[r]+t]=i[r]||i[r-2]||i[0];return o}},Ie.test(e)||(h.cssHooks[e+t].set=Me)}),h.fn.extend({css:function(e,t){return R(this,function(e,t,n){var r,o,i={},a=0;if(h.isArray(t)){for(r=_e(e),o=t.length;a<o;a++)i[t[a]]=h.css(e,t[a],!1,r);return i}return void 0!==n?h.style(e,t,n):h.css(e,t)},e,t,arguments.length>1)},show:function(){return Fe(this,!0)},hide:function(){return Fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){z(this)?h(this).show():h(this).hide()})}}),h.Tween=Be,Be.prototype={constructor:Be,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||h.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(h.cssNumber[n]?"":"px")},cur:function(){var e=Be.propHooks[this.prop];return e&&e.get?e.get(this):Be.propHooks._default.get(this)},run:function(e){var t,n=Be.propHooks[this.prop];return this.options.duration?this.pos=t=h.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Be.propHooks._default.set(this),this}},Be.prototype.init.prototype=Be.prototype,Be.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=h.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){h.fx.step[e.prop]?h.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[h.cssProps[e.prop]]&&!h.cssHooks[e.prop]?e.elem[e.prop]=e.now:h.style(e.elem,e.prop,e.now+e.unit)}}},Be.propHooks.scrollTop=Be.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},h.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},h.fx=Be.prototype.init,h.fx.step={};var Qe,We,ze=/^(?:toggle|show|hide)$/,Ke=/queueHooks$/;function $e(){return n.setTimeout(function(){Qe=void 0}),Qe=h.now()}function Ye(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(n=W[r])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function Je(e,t,n){for(var r,o=(Xe.tweeners[t]||[]).concat(Xe.tweeners["*"]),i=0,a=o.length;i<a;i++)if(r=o[i].call(n,t,e))return r}function Xe(e,t,n){var r,o,i=0,a=Xe.prefilters.length,s=h.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var t=Qe||$e(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),i=0,a=c.tweens.length;i<a;i++)c.tweens[i].run(r);return s.notifyWith(e,[c,r,n]),r<1&&a?n:(s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:h.extend({},t),opts:h.extend(!0,{specialEasing:{},easing:h.easing._default},n),originalProperties:t,originalOptions:n,startTime:Qe||$e(),duration:n.duration,tweens:[],createTween:function(t,n){var r=h.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,r,o,i,a;for(n in e)if(o=t[r=h.camelCase(n)],i=e[n],h.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(a=h.cssHooks[r])&&"expand"in a)for(n in i=a.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=o);else t[r]=o}(u,c.opts.specialEasing);i<a;i++)if(r=Xe.prefilters[i].call(c,e,u,c.opts))return h.isFunction(r.stop)&&(h._queueHooks(c.elem,c.opts.queue).stop=h.proxy(r.stop,r)),r;return h.map(u,Je,c),h.isFunction(c.opts.start)&&c.opts.start.call(e,c),h.fx.timer(h.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}h.Animation=h.extend(Xe,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return K(n.elem,e,Q.exec(t),n),n}]},tweener:function(e,t){h.isFunction(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,o=e.length;r<o;r++)n=e[r],Xe.tweeners[n]=Xe.tweeners[n]||[],Xe.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,o,i,a,s,l,c,u=this,d={},p=e.style,g=e.nodeType&&z(e),f=U.get(e,"fxshow");for(r in n.queue||(null==(s=h._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,h.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===("none"===(c=h.css(e,"display"))?U.get(e,"olddisplay")||Ve(e.nodeName):c)&&"none"===h.css(e,"float")&&(p.display="inline-block")),n.overflow&&(p.overflow="hidden",u.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),t)if(o=t[r],ze.exec(o)){if(delete t[r],i=i||"toggle"===o,o===(g?"hide":"show")){if("show"!==o||!f||void 0===f[r])continue;g=!0}d[r]=f&&f[r]||h.style(e,r)}else c=void 0;if(h.isEmptyObject(d))"inline"===("none"===c?Ve(e.nodeName):c)&&(p.display=c);else for(r in f?"hidden"in f&&(g=f.hidden):f=U.access(e,"fxshow",{}),i&&(f.hidden=!g),g?h(e).show():u.done(function(){h(e).hide()}),u.done(function(){var t;for(t in U.remove(e,"fxshow"),d)h.style(e,t,d[t])}),d)a=Je(g?f[r]:0,r,u),r in f||(f[r]=a.start,g&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}],prefilter:function(e,t){t?Xe.prefilters.unshift(e):Xe.prefilters.push(e)}}),h.speed=function(e,t,n){var r=e&&"object"==typeof e?h.extend({},e):{complete:n||!n&&t||h.isFunction(e)&&e,duration:e,easing:n&&t||t&&!h.isFunction(t)&&t};return r.duration=h.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in h.fx.speeds?h.fx.speeds[r.duration]:h.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){h.isFunction(r.old)&&r.old.call(this),r.queue&&h.dequeue(this,r.queue)},r},h.fn.extend({fadeTo:function(e,t,n,r){return this.filter(z).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=h.isEmptyObject(e),i=h.speed(t,n,r),a=function(){var t=Xe(this,h.extend({},e),i);(o||U.get(this,"finish"))&&t.stop(!0)};return a.finish=a,o||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",i=h.timers,a=U.get(this);if(o)a[o]&&a[o].stop&&r(a[o]);else for(o in a)a[o]&&a[o].stop&&Ke.test(o)&&r(a[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(n),t=!1,i.splice(o,1));!t&&n||h.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=U.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],i=h.timers,a=r?r.length:0;for(n.finish=!0,h.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),h.each(["toggle","show","hide"],function(e,t){var n=h.fn[t];h.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(Ye(t,!0),e,r,o)}}),h.each({slideDown:Ye("show"),slideUp:Ye("hide"),slideToggle:Ye("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){h.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),h.timers=[],h.fx.tick=function(){var e,t=0,n=h.timers;for(Qe=h.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||h.fx.stop(),Qe=void 0},h.fx.timer=function(e){h.timers.push(e),e()?h.fx.start():h.timers.pop()},h.fx.interval=13,h.fx.start=function(){We||(We=n.setInterval(h.fx.tick,h.fx.interval))},h.fx.stop=function(){n.clearInterval(We),We=null},h.fx.speeds={slow:600,fast:200,_default:400},h.fn.delay=function(e,t){return e=h.fx&&h.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,r){var o=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(o)}})},function(){var e=a.createElement("input"),t=a.createElement("select"),n=t.appendChild(a.createElement("option"));e.type="checkbox",f.checkOn=""!==e.value,f.optSelected=n.selected,t.disabled=!0,f.optDisabled=!n.disabled,(e=a.createElement("input")).value="t",e.type="radio",f.radioValue="t"===e.value}();var Ze,et=h.expr.attrHandle;h.fn.extend({attr:function(e,t){return R(this,h.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){h.removeAttr(this,e)})}}),h.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?h.prop(e,t,n):(1===i&&h.isXMLDoc(e)||(t=t.toLowerCase(),o=h.attrHooks[t]||(h.expr.match.bool.test(t)?Ze:void 0)),void 0!==n?null===n?void h.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:null==(r=h.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!f.radioValue&&"radio"===t&&h.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r,o=0,i=t&&t.match(P);if(i&&1===e.nodeType)for(;n=i[o++];)r=h.propFix[n]||n,h.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)}}),Ze={set:function(e,t,n){return!1===t?h.removeAttr(e,n):e.setAttribute(n,n),n}},h.each(h.expr.match.bool.source.match(/\w+/g),function(e,t){var n=et[t]||h.find.attr;et[t]=function(e,t,r){var o,i;return r||(i=et[t],et[t]=o,o=null!=n(e,t,r)?t.toLowerCase():null,et[t]=i),o}});var tt=/^(?:input|select|textarea|button)$/i,nt=/^(?:a|area)$/i;h.fn.extend({prop:function(e,t){return R(this,h.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[h.propFix[e]||e]})}}),h.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&h.isXMLDoc(e)||(t=h.propFix[t]||t,o=h.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=h.find.attr(e,"tabindex");return t?parseInt(t,10):tt.test(e.nodeName)||nt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),f.optSelected||(h.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),h.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){h.propFix[this.toLowerCase()]=this});var rt=/[\t\r\n\f]/g;function ot(e){return e.getAttribute&&e.getAttribute("class")||""}h.fn.extend({addClass:function(e){var t,n,r,o,i,a,s,l=0;if(h.isFunction(e))return this.each(function(t){h(this).addClass(e.call(this,t,ot(this)))});if("string"==typeof e&&e)for(t=e.match(P)||[];n=this[l++];)if(o=ot(n),r=1===n.nodeType&&(" "+o+" ").replace(rt," ")){for(a=0;i=t[a++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");o!==(s=h.trim(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,o,i,a,s,l=0;if(h.isFunction(e))return this.each(function(t){h(this).removeClass(e.call(this,t,ot(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(P)||[];n=this[l++];)if(o=ot(n),r=1===n.nodeType&&(" "+o+" ").replace(rt," ")){for(a=0;i=t[a++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");o!==(s=h.trim(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):h.isFunction(e)?this.each(function(n){h(this).toggleClass(e.call(this,n,ot(this),t),t)}):this.each(function(){var t,r,o,i;if("string"===n)for(r=0,o=h(this),i=e.match(P)||[];t=i[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=ot(this))&&U.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":U.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+ot(n)+" ").replace(rt," ").indexOf(t)>-1)return!0;return!1}});var it=/\r/g,at=/[\x20\t\r\n\f]+/g;h.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=h.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(null==(o=r?e.call(this,n,h(this).val()):e)?o="":"number"==typeof o?o+="":h.isArray(o)&&(o=h.map(o,function(e){return null==e?"":e+""})),(t=h.valHooks[this.type]||h.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})):o?(t=h.valHooks[o.type]||h.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(it,""):null==n?"":n:void 0}}),h.extend({valHooks:{option:{get:function(e){var t=h.find.attr(e,"value");return null!=t?t:h.trim(h.text(e)).replace(at," ")}},select:{get:function(e){for(var t,n,r=e.options,o=e.selectedIndex,i="select-one"===e.type||o<0,a=i?null:[],s=i?o+1:r.length,l=o<0?s:i?o:0;l<s;l++)if(((n=r[l]).selected||l===o)&&(f.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!h.nodeName(n.parentNode,"optgroup"))){if(t=h(n).val(),i)return t;a.push(t)}return a},set:function(e,t){for(var n,r,o=e.options,i=h.makeArray(t),a=o.length;a--;)((r=o[a]).selected=h.inArray(h.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),h.each(["radio","checkbox"],function(){h.valHooks[this]={set:function(e,t){if(h.isArray(t))return e.checked=h.inArray(h(e).val(),t)>-1}},f.checkOn||(h.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var st=/^(?:focusinfocus|focusoutblur)$/;h.extend(h.event,{trigger:function(e,t,r,o){var i,s,l,c,u,d,p,f=[r||a],m=g.call(e,"type")?e.type:e,v=g.call(e,"namespace")?e.namespace.split("."):[];if(s=l=r=r||a,3!==r.nodeType&&8!==r.nodeType&&!st.test(m+h.event.triggered)&&(m.indexOf(".")>-1&&(v=m.split("."),m=v.shift(),v.sort()),u=m.indexOf(":")<0&&"on"+m,(e=e[h.expando]?e:new h.Event(m,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:h.makeArray(t,[e]),p=h.event.special[m]||{},o||!p.trigger||!1!==p.trigger.apply(r,t))){if(!o&&!p.noBubble&&!h.isWindow(r)){for(c=p.delegateType||m,st.test(c+m)||(s=s.parentNode);s;s=s.parentNode)f.push(s),l=s;l===(r.ownerDocument||a)&&f.push(l.defaultView||l.parentWindow||n)}for(i=0;(s=f[i++])&&!e.isPropagationStopped();)e.type=i>1?c:p.bindType||m,(d=(U.get(s,"events")||{})[e.type]&&U.get(s,"handle"))&&d.apply(s,t),(d=u&&s[u])&&d.apply&&G(s)&&(e.result=d.apply(s,t),!1===e.result&&e.preventDefault());return e.type=m,o||e.isDefaultPrevented()||p._default&&!1!==p._default.apply(f.pop(),t)||!G(r)||u&&h.isFunction(r[m])&&!h.isWindow(r)&&((l=r[u])&&(r[u]=null),h.event.triggered=m,r[m](),h.event.triggered=void 0,l&&(r[u]=l)),e.result}},simulate:function(e,t,n){var r=h.extend(new h.Event,n,{type:e,isSimulated:!0});h.event.trigger(r,null,t)}}),h.fn.extend({trigger:function(e,t){return this.each(function(){h.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return h.event.trigger(e,t,n,!0)}}),h.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(e,t){h.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),h.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),f.focusin="onfocusin"in n,f.focusin||h.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){h.event.simulate(t,e.target,h.event.fix(e))};h.event.special[t]={setup:function(){var r=this.ownerDocument||this,o=U.access(r,t);o||r.addEventListener(e,n,!0),U.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this,o=U.access(r,t)-1;o?U.access(r,t,o):(r.removeEventListener(e,n,!0),U.remove(r,t))}}});var lt=n.location,ct=h.now(),ut=/\?/;h.parseJSON=function(e){return JSON.parse(e+"")},h.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||h.error("Invalid XML: "+e),t};var dt=/#.*$/,pt=/([?&])_=[^&]*/,gt=/^(.*?):[ \t]*([^\r\n]*)$/gm,ft=/^(?:GET|HEAD)$/,ht=/^\/\//,mt={},vt={},yt="*/".concat("*"),bt=a.createElement("a");function Et(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(P)||[];if(h.isFunction(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Tt(e,t,n,r){var o={},i=e===vt;function a(s){var l;return o[s]=!0,h.each(e[s]||[],function(e,s){var c=s(t,n,r);return"string"!=typeof c||i||o[c]?i?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)}),l}return a(t.dataTypes[0])||!o["*"]&&a("*")}function Ct(e,t){var n,r,o=h.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&h.extend(!0,e,r),e}bt.href=lt.href,h.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:lt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(lt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":yt,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":h.parseJSON,"text xml":h.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ct(Ct(e,h.ajaxSettings),t):Ct(h.ajaxSettings,e)},ajaxPrefilter:Et(mt),ajaxTransport:Et(vt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,o,i,s,l,c,u,d,p=h.ajaxSetup({},t),g=p.context||p,f=p.context&&(g.nodeType||g.jquery)?h(g):h.event,m=h.Deferred(),v=h.Callbacks("once memory"),y=p.statusCode||{},b={},E={},T=0,C="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(2===T){if(!s)for(s={};t=gt.exec(i);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===T?i:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return T||(e=E[n]=E[n]||e,b[e]=t),this},overrideMimeType:function(e){return T||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(T<2)for(t in e)y[t]=[y[t],e[t]];else x.always(e[x.status]);return this},abort:function(e){var t=e||C;return r&&r.abort(t),S(0,t),this}};if(m.promise(x).complete=v.add,x.success=x.done,x.error=x.fail,p.url=((e||p.url||lt.href)+"").replace(dt,"").replace(ht,lt.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=h.trim(p.dataType||"*").toLowerCase().match(P)||[""],null==p.crossDomain){c=a.createElement("a");try{c.href=p.url,c.href=c.href,p.crossDomain=bt.protocol+"//"+bt.host!=c.protocol+"//"+c.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=h.param(p.data,p.traditional)),Tt(mt,p,t,x),2===T)return x;for(d in(u=h.event&&p.global)&&0==h.active++&&h.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!ft.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(ut.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=pt.test(o)?o.replace(pt,"$1_="+ct++):o+(ut.test(o)?"&":"?")+"_="+ct++)),p.ifModified&&(h.lastModified[o]&&x.setRequestHeader("If-Modified-Since",h.lastModified[o]),h.etag[o]&&x.setRequestHeader("If-None-Match",h.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&x.setRequestHeader("Content-Type",p.contentType),x.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+yt+"; q=0.01":""):p.accepts["*"]),p.headers)x.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(g,x,p)||2===T))return x.abort();for(d in C="abort",{success:1,error:1,complete:1})x[d](p[d]);if(r=Tt(vt,p,t,x)){if(x.readyState=1,u&&f.trigger("ajaxSend",[x,p]),2===T)return x;p.async&&p.timeout>0&&(l=n.setTimeout(function(){x.abort("timeout")},p.timeout));try{T=1,r.send(b,S)}catch(e){if(!(T<2))throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,a,s){var c,d,b,E,C,S=t;2!==T&&(T=2,l&&n.clearTimeout(l),r=void 0,i=s||"",x.readyState=e>0?4:0,c=e>=200&&e<300||304===e,a&&(E=function(e,t,n){for(var r,o,i,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){l.unshift(o);break}if(l[0]in n)i=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==l[0]&&l.unshift(i),n[i]}(p,x,a)),E=function(e,t,n,r){var o,i,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(i=u.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=u.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(a=c[l+" "+i]||c["* "+i]))for(o in c)if((s=o.split(" "))[1]===i&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[o]:!0!==c[o]&&(i=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}}(p,E,x,c),c?(p.ifModified&&((C=x.getResponseHeader("Last-Modified"))&&(h.lastModified[o]=C),(C=x.getResponseHeader("etag"))&&(h.etag[o]=C)),204===e||"HEAD"===p.type?S="nocontent":304===e?S="notmodified":(S=E.state,d=E.data,c=!(b=E.error))):(b=S,!e&&S||(S="error",e<0&&(e=0))),x.status=e,x.statusText=(t||S)+"",c?m.resolveWith(g,[d,S,x]):m.rejectWith(g,[x,S,b]),x.statusCode(y),y=void 0,u&&f.trigger(c?"ajaxSuccess":"ajaxError",[x,p,c?d:b]),v.fireWith(g,[x,S]),u&&(f.trigger("ajaxComplete",[x,p]),--h.active||h.event.trigger("ajaxStop")))}return x},getJSON:function(e,t,n){return h.get(e,t,n,"json")},getScript:function(e,t){return h.get(e,void 0,t,"script")}}),h.each(["get","post"],function(e,t){h[t]=function(e,n,r,o){return h.isFunction(n)&&(o=o||r,r=n,n=void 0),h.ajax(h.extend({url:e,type:t,dataType:o,data:n,success:r},h.isPlainObject(e)&&e))}}),h._evalUrl=function(e){return h.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},h.fn.extend({wrapAll:function(e){var t;return h.isFunction(e)?this.each(function(t){h(this).wrapAll(e.call(this,t))}):(this[0]&&(t=h(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return h.isFunction(e)?this.each(function(t){h(this).wrapInner(e.call(this,t))}):this.each(function(){var t=h(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=h.isFunction(e);return this.each(function(n){h(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){h.nodeName(this,"body")||h(this).replaceWith(this.childNodes)}).end()}}),h.expr.filters.hidden=function(e){return!h.expr.filters.visible(e)},h.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var xt=/%20/g,St=/\[\]$/,wt=/\r?\n/g,Vt=/^(?:submit|button|image|reset|file)$/i,It=/^(?:input|select|textarea|keygen)/i;function At(e,t,n,r){var o;if(h.isArray(t))h.each(t,function(t,o){n||St.test(e)?r(e,o):At(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,r)});else if(n||"object"!==h.type(t))r(e,t);else for(o in t)At(e+"["+o+"]",t[o],n,r)}h.param=function(e,t){var n,r=[],o=function(e,t){t=h.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=h.ajaxSettings&&h.ajaxSettings.traditional),h.isArray(e)||e.jquery&&!h.isPlainObject(e))h.each(e,function(){o(this.name,this.value)});else for(n in e)At(n,e[n],t,o);return r.join("&").replace(xt,"+")},h.fn.extend({serialize:function(){return h.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=h.prop(this,"elements");return e?h.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!h(this).is(":disabled")&&It.test(this.nodeName)&&!Vt.test(e)&&(this.checked||!$.test(e))}).map(function(e,t){var n=h(this).val();return null==n?null:h.isArray(n)?h.map(n,function(e){return{name:t.name,value:e.replace(wt,"\r\n")}}):{name:t.name,value:n.replace(wt,"\r\n")}}).get()}}),h.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var _t={0:200,1223:204},Dt=h.ajaxSettings.xhr();f.cors=!!Dt&&"withCredentials"in Dt,f.ajax=Dt=!!Dt,h.ajaxTransport(function(e){var t,r;if(f.cors||Dt&&!e.crossDomain)return{send:function(o,i){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(a,o[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(_t[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){t&&r()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),h.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return h.globalEval(e),e}}}),h.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),h.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(r,o){t=h("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),a.head.appendChild(t[0])},abort:function(){n&&n()}}});var kt=[],Nt=/(=)\?(?=&|$)|\?\?/;h.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=kt.pop()||h.expando+"_"+ct++;return this[e]=!0,e}}),h.ajaxPrefilter("json jsonp",function(e,t,r){var o,i,a,s=!1!==e.jsonp&&(Nt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Nt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=h.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Nt,"$1"+o):!1!==e.jsonp&&(e.url+=(ut.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return a||h.error(o+" was not called"),a[0]},e.dataTypes[0]="json",i=n[o],n[o]=function(){a=arguments},r.always(function(){void 0===i?h(n).removeProp(o):n[o]=i,e[o]&&(e.jsonpCallback=t.jsonpCallback,kt.push(o)),a&&h.isFunction(i)&&i(a[0]),a=i=void 0}),"script"}),h.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||a;var r=w.exec(e),o=!n&&[];return r?[t.createElement(r[1])]:(r=oe([e],t,o),o&&o.length&&h(o).remove(),h.merge([],r.childNodes))};var Ot=h.fn.load;function Pt(e){return h.isWindow(e)?e:9===e.nodeType&&e.defaultView}h.fn.load=function(e,t,n){if("string"!=typeof e&&Ot)return Ot.apply(this,arguments);var r,o,i,a=this,s=e.indexOf(" ");return s>-1&&(r=h.trim(e.slice(s)),e=e.slice(0,s)),h.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&h.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){i=arguments,a.html(r?h("<div>").append(h.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},h.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){h.fn[t]=function(e){return this.on(t,e)}}),h.expr.filters.animated=function(e){return h.grep(h.timers,function(t){return e===t.elem}).length},h.offset={setOffset:function(e,t,n){var r,o,i,a,s,l,c=h.css(e,"position"),u=h(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),i=h.css(e,"top"),l=h.css(e,"left"),("absolute"===c||"fixed"===c)&&(i+l).indexOf("auto")>-1?(a=(r=u.position()).top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(l)||0),h.isFunction(t)&&(t=t.call(e,n,h.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+o),"using"in t?t.using.call(e,d):u.css(d)}},h.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){h.offset.setOffset(this,e,t)});var t,n,r=this[0],o={top:0,left:0},i=r&&r.ownerDocument;return i?(t=i.documentElement,h.contains(t,r)?(o=r.getBoundingClientRect(),n=Pt(i),{top:o.top+n.pageYOffset-t.clientTop,left:o.left+n.pageXOffset-t.clientLeft}):o):void 0},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===h.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),h.nodeName(e[0],"html")||(r=e.offset()),r.top+=h.css(e[0],"borderTopWidth",!0),r.left+=h.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-h.css(n,"marginTop",!0),left:t.left-r.left-h.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===h.css(e,"position");)e=e.offsetParent;return e||ke})}}),h.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;h.fn[e]=function(r){return R(this,function(e,r,o){var i=Pt(e);if(void 0===o)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o},e,r,arguments.length)}}),h.each(["top","left"],function(e,t){h.cssHooks[t]=Oe(f.pixelPosition,function(e,n){if(n)return n=Ne(e,t),Ae.test(n)?h(e).position()[t]+"px":n})}),h.each({Height:"height",Width:"width"},function(e,t){h.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){h.fn[r]=function(r,o){var i=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===o?"margin":"border");return R(this,function(t,n,r){var o;return h.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?h.css(t,n,a):h.style(t,n,r,a)},t,i?r:void 0,i,null)}})}),h.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),h.fn.andSelf=h.fn.addBack,void 0===(r=function(){return h}.apply(t,[]))||(e.exports=r);var Lt=n.jQuery,Rt=n.$;return h.noConflict=function(e){return n.$===h&&(n.$=Rt),e&&n.jQuery===h&&(n.jQuery=Lt),h},o||(n.jQuery=n.$=h),h},"object"==typeof e.exports?e.exports=o.document?i(o,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return i(e)}:i(o)},function(e,t,n){"use strict";var r=n(0),o=r.createElement;e.exports=r.createClass({renderAsterisk:function(){return this.props.question.Required?o("span",{className:"velaro-survey-error"},"* "):null},render:function(){return o("div",{className:"velaro-survey-questiontext"},this.renderAsterisk(),this.props.question.QuestionText)}})},function(e,t,n){"use strict";var r=n(0),o=r.createElement;e.exports=r.createClass({render:function(){return this.props.error?o("label",{className:"error velaro-survey-error"},this.props.error):null}})},function(e,t,n){var r,o;
/*!
 * JavaScript Cookie v2.2.1
 * https://github.com/js-cookie/js-cookie
 *
 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
 * Released under the MIT license
 */!function(i){if(void 0===(o="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o),!0,e.exports=i(),!!0){var a=window.Cookies,s=window.Cookies=i();s.noConflict=function(){return window.Cookies=a,s}}}(function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var l in i)i[l]&&(s+="; "+l,!0!==i[l]&&(s+="="+i[l].split(";")[0]));return document.cookie=t+"="+n+s}}function a(e,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],a=0;a<i.length;a++){var s=i[a].split("="),l=s.slice(1).join("=");n||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var c=t(s[0]);if(l=(r.read||r)(l,c)||t(l),n)try{l=JSON.parse(l)}catch(e){}if(o[c]=l,e===c)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return a(e,!1)},o.getJSON=function(e){return a(e,!0)},o.remove=function(t,n){i(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}(function(){})})},function(e,t,n){"use strict";e.exports=function(e,t,n){if(Velaro.Storage&&Velaro.Engagement&&e){var r=JSON.parse(Velaro.Storage.get("velaro_visitor_events"));r||(r=[]),r.length>20&&r.shift();var o={Date:new Date,Message:e,Level:t||"info",VisitorId:Velaro.Engagement.GetVisitorID(),EngagementId:Velaro.Engagement.GetEngagementID(),PreEngagementId:Velaro.Engagement.GetPreEngagementID(),ActiveGroupId:Velaro.Engagement.GroupID};if(r.push(o),Velaro.Storage.set("velaro_visitor_events",JSON.stringify(r)),"error"===t||n);}}},function(e,t,n){"use strict";e.exports=function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");return t>0?parseInt(e.substring(t+5,e.indexOf(".",t))):9e3}},function(e,t,n){e.exports=n(90)()},function(e,t,n){"use strict";t.__esModule=!0,t.inherits=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object.create(e.prototype);for(var o in n)r[o]=n[o];return r.constructor=t,t.prototype=r,t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.get=function(e){var t=localStorage.getItem("velaro_"+e);if(null!=t)try{return JSON.parse(t)}catch(e){return}},e.set=function(e,t,n){null!=t?localStorage.setItem("velaro_"+e,JSON.stringify(t)):this.clear(e,n)},e.clear=function(e,t){localStorage.removeItem("velaro_"+e)},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o,i=r(n(9));!function(e){e[e.PageHit=1]="PageHit",e[e.EngagementRequest=2]="EngagementRequest"}(o||(o={}));var a=function(){function e(){}return e.addEngagement=function(e,t){var n=this.getEngagements();n[e]||(n[e]={agentName:t,startedAt:new Date},i.default.set("engagements",n))},e.addPageHit=function(){var e=this.getPageHits(),t=window.parent.window.location.toString().substr(0,150);e.length>20&&e.shift(),e.push({url:t,viewedAt:new Date}),i.default.set("pageHits",e)},e.getActions=function(){var e=[],t=this.getPageHits(),n=this.getEngagements();return t.forEach(function(t){e.push({ActionType:o.PageHit,When:t.viewedAt,Value:t.url})}),Object.keys(n).forEach(function(t){e.push({ActionType:o.EngagementRequest,When:n[t].startedAt,Value:n[t].agentName})}),e},e.getPageHits=function(){return i.default.get("pageHits")||[]},e.getEngagements=function(){return i.default.get("engagements")||{}},e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.AMPERSAND=t.CLOSEPAREN=t.CLOSEANGLEBRACKET=t.CLOSEBRACKET=t.CLOSEBRACE=t.OPENPAREN=t.OPENANGLEBRACKET=t.OPENBRACKET=t.OPENBRACE=t.WS=t.TLD=t.SYM=t.UNDERSCORE=t.SLASH=t.MAILTO=t.PROTOCOL=t.QUERY=t.POUND=t.PLUS=t.NUM=t.NL=t.LOCALHOST=t.PUNCTUATION=t.DOT=t.COLON=t.AT=t.DOMAIN=t.Base=void 0;var r=n(24),o=n(8),i=(0,r.createTokenClass)();function a(e){var t=e?{v:e}:{};return(0,o.inherits)(i,(0,r.createTokenClass)(),t)}i.prototype={toString:function(){return this.v+""}};var s=a(),l=a("@"),c=a(":"),u=a("."),d=a(),p=a(),g=a("\n"),f=a(),h=a("+"),m=a("#"),v=a(),y=a("mailto:"),b=a("?"),E=a("/"),T=a("_"),C=a(),x=a(),S=a(),w=a("{"),V=a("["),I=a("<"),A=a("("),_=a("}"),D=a("]"),k=a(">"),N=a(")"),O=a("&");t.Base=i,t.DOMAIN=s,t.AT=l,t.COLON=c,t.DOT=u,t.PUNCTUATION=d,t.LOCALHOST=p,t.NL=g,t.NUM=f,t.PLUS=h,t.POUND=m,t.QUERY=b,t.PROTOCOL=v,t.MAILTO=y,t.SLASH=E,t.UNDERSCORE=T,t.SYM=C,t.TLD=x,t.WS=S,t.OPENBRACE=w,t.OPENBRACKET=V,t.OPENANGLEBRACKET=I,t.OPENPAREN=A,t.CLOSEBRACE=_,t.CLOSEBRACKET=D,t.CLOSEANGLEBRACKET=k,t.CLOSEPAREN=N,t.AMPERSAND=O},function(e,t,n){"use strict";Velaro.Storage={enabled:!0,set:function(e,t){if(Velaro.Storage.enabled)try{return void localStorage.setItem(e,t)}catch(e){Velaro.Storage.enabled=!1}window[e]=t},get:function(e){if(Velaro.Storage.enabled)try{return localStorage.getItem(e)}catch(e){Velaro.Storage.enabled=!1}return window[e]},remove:function(e){Velaro.Storage.enabled?localStorage.removeItem(e):window[e]=null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!e||-1!==t.indexOf(e)}},function(e,t,n){"use strict";e.exports={TEXT:1,RADIO:2,CHECKBOX:3,DROPDOWN:4,NAME:5,EMAIL:6,GROUP:7,SOCIAL:8,NPS:9,GROUPRADIO:10,HTML:11,LANGUAGE:12,STARRATING:13,TEXTAREA:14,TAGS:15,MULTISELECT:16,PAGEBREAK:17,SECTION:18,VISITORPHONE:19,CLICKTOCALL:20}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){(function(t,n){
/*!
 * @overview es6-promise - a tiny implementation of Promises/A+.
 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
 * @license   Licensed under MIT license
 *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
 * @version   v4.2.5+7f2b526d
 */var r;r=function(){"use strict";function e(e){return"function"==typeof e}var r=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=0,i=void 0,a=void 0,s=function(e,t){f[o]=e,f[o+1]=t,2===(o+=2)&&(a?a(h):E())},l="undefined"!=typeof window?window:void 0,c=l||{},u=c.MutationObserver||c.WebKitMutationObserver,d="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),p="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function g(){var e=setTimeout;return function(){return e(h,1)}}var f=new Array(1e3);function h(){for(var e=0;e<o;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}o=0}var m,v,y,b,E=void 0;function T(e,t){var n=this,r=new this.constructor(S);void 0===r[x]&&U(r);var o=n._state;if(o){var i=arguments[o-1];s(function(){return G(o,r,i,n._result)})}else L(n,r,e,t);return r}function C(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(S);return k(t,e),t}d?E=function(){return t.nextTick(h)}:u?(v=0,y=new u(h),b=document.createTextNode(""),y.observe(b,{characterData:!0}),E=function(){b.data=v=++v%2}):p?((m=new MessageChannel).port1.onmessage=h,E=function(){return m.port2.postMessage(0)}):E=void 0===l?function(){try{var e=Function("return this")().require("vertx");return void 0!==(i=e.runOnLoop||e.runOnContext)?function(){i(h)}:g()}catch(e){return g()}}():g();var x=Math.random().toString(36).substring(2);function S(){}var w=void 0,V=1,I=2,A={error:null};function _(e){try{return e.then}catch(e){return A.error=e,A}}function D(t,n,r){n.constructor===t.constructor&&r===T&&n.constructor.resolve===C?function(e,t){t._state===V?O(e,t._result):t._state===I?P(e,t._result):L(t,void 0,function(t){return k(e,t)},function(t){return P(e,t)})}(t,n):r===A?(P(t,A.error),A.error=null):void 0===r?O(t,n):e(r)?function(e,t,n){s(function(e){var r=!1,o=function(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}(n,t,function(n){r||(r=!0,t!==n?k(e,n):O(e,n))},function(t){r||(r=!0,P(e,t))},e._label);!r&&o&&(r=!0,P(e,o))},e)}(t,n,r):O(t,n)}function k(e,t){var n,r;e===t?P(e,new TypeError("You cannot resolve a promise with itself")):(r=typeof(n=t),null===n||"object"!==r&&"function"!==r?O(e,t):D(e,t,_(t)))}function N(e){e._onerror&&e._onerror(e._result),R(e)}function O(e,t){e._state===w&&(e._result=t,e._state=V,0!==e._subscribers.length&&s(R,e))}function P(e,t){e._state===w&&(e._state=I,e._result=t,s(N,e))}function L(e,t,n,r){var o=e._subscribers,i=o.length;e._onerror=null,o[i]=t,o[i+V]=n,o[i+I]=r,0===i&&e._state&&s(R,e)}function R(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,o=void 0,i=e._result,a=0;a<t.length;a+=3)r=t[a],o=t[a+n],r?G(n,r,o,i):o(i);e._subscribers.length=0}}function G(t,n,r,o){var i=e(r),a=void 0,s=void 0,l=void 0,c=void 0;if(i){if((a=function(e,t){try{return e(t)}catch(e){return A.error=e,A}}(r,o))===A?(c=!0,s=a.error,a.error=null):l=!0,n===a)return void P(n,new TypeError("A promises callback cannot return that same promise."))}else a=o,l=!0;n._state!==w||(i&&l?k(n,a):c?P(n,s):t===V?O(n,a):t===I&&P(n,a))}var j=0;function U(e){e[x]=j++,e._state=void 0,e._result=void 0,e._subscribers=[]}var M=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(S),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?O(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&O(this.promise,this._result))):P(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;this._state===w&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===C){var o=_(e);if(o===T&&e._state!==w)this._settledAt(e._state,t,e._result);else if("function"!=typeof o)this._remaining--,this._result[t]=e;else if(n===H){var i=new n(S);D(i,e,o),this._willSettleAt(i,t)}else this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===w&&(this._remaining--,e===I?P(r,n):this._result[t]=n),0===this._remaining&&O(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;L(e,void 0,function(e){return n._settledAt(V,t,e)},function(e){return n._settledAt(I,t,e)})},e}(),H=function(){function t(e){this[x]=j++,this._result=this._state=void 0,this._subscribers=[],S!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t(function(t){k(e,t)},function(t){P(e,t)})}catch(t){P(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var n=this.constructor;return e(t)?this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){throw e})}):this.then(t,t)},t}();return H.prototype.then=T,H.all=function(e){return new M(this,e).promise},H.race=function(e){var t=this;return r(e)?new t(function(n,r){for(var o=e.length,i=0;i<o;i++)t.resolve(e[i]).then(n,r)}):new t(function(e,t){return t(new TypeError("You must pass an array to race."))})},H.resolve=C,H.reject=function(e){var t=new this(S);return P(t,e),t},H._setScheduler=function(e){a=e},H._setAsap=function(e){s=e},H._asap=s,H.polyfill=function(){var e=void 0;if(void 0!==n)e=n;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=H},H.Promise=H,H},e.exports=r()}).call(this,n(29),n(17))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(9)),i=function(){function e(){}return e.recordHit=function(){this.recordHitCount(),this.recordPageUrl()},e.getCount=function(){return o.default.get("hitCount")||0},e.getPreviousPages=function(){var e=this.getViewedUrls();return e.pop(),e},e.recordPageUrl=function(){var e=this.getViewedUrls(),t=window.parent.window.location.toString().substr(0,150);e.push(t),e.length>10&&e.shift(),o.default.set("viewedPages",e)},e.getViewedUrls=function(){return o.default.get("viewedPages")||[]},e.recordHitCount=function(){var e=this.getCount();o.default.set("hitCount",e+1)},e}();t.default=i},function(e,t,n){"use strict";t.__esModule=!0;t.default={nbsp:" "}},function(e,t,n){"use strict";function r(e){this.named=e}t.__esModule=!0;var o=/^#[xX]([A-Fa-f0-9]+)$/,i=/^#([0-9]+)$/,a=/^([A-Za-z0-9]+)$/;r.prototype.parse=function(e){if(e){var t=e.match(o);return t?"&#x"+t[1]+";":(t=e.match(i))?"&#"+t[1]+";":(t=e.match(a))?this.named[t[1]]||"&"+t[1]+";":void 0}},t.default=r},function(e,t,n){"use strict";t.__esModule=!0;var r=n(34);function o(e,t){this.delegate=e,this.entityParser=t,this.state=null,this.input=null,this.index=-1,this.line=-1,this.column=-1,this.tagLine=-1,this.tagColumn=-1,this.reset()}o.prototype={reset:function(){this.state="beforeData",this.input="",this.index=0,this.line=1,this.column=0,this.tagLine=-1,this.tagColumn=-1,this.delegate.reset()},tokenize:function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},tokenizePart:function(e){for(this.input+=(0,r.preprocessInput)(e);this.index<this.input.length;)this.states[this.state].call(this)},tokenizeEOF:function(){this.flushData()},flushData:function(){"data"===this.state&&(this.delegate.finishData(),this.state="beforeData")},peek:function(){return this.input.charAt(this.index)},consume:function(){var e=this.peek();return this.index++,"\n"===e?(this.line++,this.column=0):this.column++,e},consumeCharRef:function(){var e=this.input.indexOf(";",this.index);if(-1!==e){var t=this.input.slice(this.index,e),n=this.entityParser.parse(t);if(n){for(var r=t.length;r;)this.consume(),r--;return this.consume(),n}}},markTagStart:function(){this.tagLine=this.line,this.tagColumn=this.column,this.delegate.tagOpen&&this.delegate.tagOpen()},states:{beforeData:function(){"<"===this.peek()?(this.state="tagOpen",this.markTagStart(),this.consume()):(this.state="data",this.delegate.beginData())},data:function(){var e=this.peek();"<"===e?(this.delegate.finishData(),this.state="tagOpen",this.markTagStart(),this.consume()):"&"===e?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e))},tagOpen:function(){var e=this.consume();"!"===e?this.state="markupDeclaration":"/"===e?this.state="endTagOpen":(0,r.isAlpha)(e)&&(this.state="tagName",this.delegate.beginStartTag(),this.delegate.appendToTagName(e.toLowerCase()))},markupDeclaration:function(){"-"===this.consume()&&"-"===this.input.charAt(this.index)&&(this.consume(),this.state="commentStart",this.delegate.beginComment())},commentStart:function(){var e=this.consume();"-"===e?this.state="commentStartDash":">"===e?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData(e),this.state="comment")},commentStartDash:function(){var e=this.consume();"-"===e?this.state="commentEnd":">"===e?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData("-"),this.state="comment")},comment:function(){var e=this.consume();"-"===e?this.state="commentEndDash":this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e?this.state="commentEnd":(this.delegate.appendToCommentData("-"+e),this.state="comment")},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData("--"+e),this.state="comment")},tagName:function(){var e=this.consume();(0,r.isSpace)(e)?this.state="beforeAttributeName":"/"===e?this.state="selfClosingStartTag":">"===e?(this.delegate.finishTag(),this.state="beforeData"):this.delegate.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();(0,r.isSpace)(e)?this.consume():"/"===e?(this.state="selfClosingStartTag",this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.state="attributeName",this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},attributeName:function(){var e=this.peek();(0,r.isSpace)(e)?(this.state="afterAttributeName",this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="selfClosingStartTag"):"="===e?(this.state="beforeAttributeValue",this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();(0,r.isSpace)(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="selfClosingStartTag"):"="===e?(this.consume(),this.state="beforeAttributeValue"):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="attributeName",this.delegate.beginAttribute(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();(0,r.isSpace)(e)?this.consume():'"'===e?(this.state="attributeValueDoubleQuoted",this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.state="attributeValueSingleQuoted",this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.state="attributeValueUnquoted",this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.state="afterAttributeValueQuoted"):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef('"')||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.state="afterAttributeValueQuoted"):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef("'")||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();(0,r.isSpace)(e)?(this.delegate.finishAttributeValue(),this.consume(),this.state="beforeAttributeName"):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef(">")||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();(0,r.isSpace)(e)?(this.consume(),this.state="beforeAttributeName"):"/"===e?(this.consume(),this.state="selfClosingStartTag"):">"===e?(this.consume(),this.delegate.finishTag(),this.state="beforeData"):this.state="beforeAttributeName"},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.state="beforeData"):this.state="beforeAttributeName"},endTagOpen:function(){var e=this.consume();(0,r.isAlpha)(e)&&(this.state="tagName",this.delegate.beginEndTag(),this.delegate.appendToTagName(e.toLowerCase()))}}},t.default=o},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(21),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){this.token=null,this.startLine=1,this.startColumn=0,this.options=t||{},this.tokenizer=new i.default(this,e)}a.prototype={tokenize:function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},tokenizePart:function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},tokenizeEOF:function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},reset:function(){this.token=null,this.startLine=1,this.startColumn=0},addLocInfo:function(){this.options.loc&&(this.token.loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},beginData:function(){this.token={type:"Chars",chars:""},this.tokens.push(this.token)},appendToData:function(e){this.token.chars+=e},finishData:function(){this.addLocInfo()},beginComment:function(){this.token={type:"Comment",chars:""},this.tokens.push(this.token)},appendToCommentData:function(e){this.token.chars+=e},finishComment:function(){this.addLocInfo()},beginStartTag:function(){this.token={type:"StartTag",tagName:"",attributes:[],selfClosing:!1},this.tokens.push(this.token)},beginEndTag:function(){this.token={type:"EndTag",tagName:""},this.tokens.push(this.token)},finishTag:function(){this.addLocInfo()},markTagAsSelfClosing:function(){this.token.selfClosing=!0},appendToTagName:function(e){this.token.tagName+=e},beginAttribute:function(){this._currentAttribute=["","",null],this.token.attributes.push(this._currentAttribute)},appendToAttributeName:function(e){this._currentAttribute[0]+=e},beginAttributeValue:function(e){this._currentAttribute[2]=e},appendToAttributeValue:function(e){this._currentAttribute[1]=this._currentAttribute[1]||"",this._currentAttribute[1]+=e},finishAttributeValue:function(){}},t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.stateify=t.TokenState=t.CharacterState=void 0;var r=n(8);var o=function(e){this.j=[],this.T=e||null};o.prototype={defaultTransition:!1,on:function(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)this.j.push([e[n],t]);return this}return this.j.push([e,t]),this},next:function(e){for(var t=0;t<this.j.length;t++){var n=this.j[t],r=n[0],o=n[1];if(this.test(e,r))return o}return this.defaultTransition},accepts:function(){return!!this.T},test:function(e,t){return e===t},emit:function(){return this.T}};var i=(0,r.inherits)(o,function(e){this.j=[],this.T=e||null},{test:function(e,t){return e===t||t instanceof RegExp&&t.test(e)}}),a=(0,r.inherits)(o,function(e){this.j=[],this.T=e||null},{jump:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.next(new e(""));return n===this.defaultTransition?(n=new this.constructor(t),this.on(e,n)):t&&(n.T=t),n},test:function(e,t){return e instanceof t}});t.CharacterState=i,t.TokenState=a,t.stateify=function(e,t,n,r){for(var o=0,a=e.length,s=t,l=[],c=void 0;o<a&&(c=s.next(e[o]));)s=c,o++;if(o>=a)return[];for(;o<a-1;)c=new i(r),l.push(c),s.on(e[o],c),s=c,o++;return c=new i(n),l.push(c),s.on(e[a-1],c),l}},function(e,t,n){"use strict";t.__esModule=!0,t.createTokenClass=function(){return function(e){e&&(this.v=e)}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(9)),i=function(){function e(){}return e.wasInviteFired=function(){var e=o.default.get("inviteFired");return(!0===e||!1===e)&&e},e.getInviteViews=function(){return o.default.get("inviteViews")||{}},e.persistInviteView=function(e){var t=this.getInviteViews();t[e]?t[e]+=1:t[e]=1,o.default.set("inviteViews",t),o.default.set("inviteFired",!0)},e}();t.default=i},function(e,t,n){var r=n(121),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){var r=n(26).Symbol;e.exports=r},function(module,exports,__webpack_require__){"use strict";(function(Promise){var __awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,s)}l((r=r.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),__webpack_require__(30);var PageHitStore_1=__importDefault(__webpack_require__(18)),VisitorActionStore_1=__importDefault(__webpack_require__(10)),$=__webpack_require__(1),linkifyStr=__webpack_require__(31),getDomain=__webpack_require__(41),recordEvent=__webpack_require__(5);__webpack_require__(42),__webpack_require__(43),__webpack_require__(44),__webpack_require__(45),__webpack_require__(64),__webpack_require__(80),__webpack_require__(81),__webpack_require__(83),__webpack_require__(85),__webpack_require__(88),__webpack_require__(89),__webpack_require__(111),__webpack_require__(116),__webpack_require__(117),__webpack_require__(12),$(function(){return __awaiter(this,void 0,void 0,function(){var endpoints,cdnurl,loadInlineChat,loadPopoutChat,initPopoutChat,loadChatScripts,loadVisitorMonitoringScripts,loadCss;return __generator(this,function(_a){switch(_a.label){case 0:return[4,$.get(Velaro.Globals.GetMainUrl("Endpoints"))];case 1:return endpoints=_a.sent(),Velaro.Globals.UrlVisitor=endpoints.VisitorApiUrl,Velaro.Globals.UrlEngagement=endpoints.EngagementApiUrl,Velaro.Globals.UrlEngagementSignalR=endpoints.EngagementSignalRUrl,Velaro.Globals.UrlContentDelivery=endpoints.ContentDeliveryUrl,Velaro.Globals.UrlStorage=endpoints.AzureStorageEndpoint,PageHitStore_1.default.recordHit(),VisitorActionStore_1.default.addPageHit(),cdnurl=Velaro.Globals.UrlContentDelivery,loadInlineChat=function(){loadCss(cdnurl+"css/inlinechat.min.css"),loadCss(Velaro.Globals.UrlStorage+"css/"+Velaro.Globals.ActiveSite+"/"+Velaro.Engagement.GetSettingsGroupID()+"/inlinechat.css"),Velaro.Engagement.LoadInlineChat()},loadPopoutChat=function(){return __awaiter(this,void 0,void 0,function(){var e,t,n,r,o;return __generator(this,function(i){switch(i.label){case 0:e=Velaro.Globals.ActiveSite,t=Velaro.Engagement.GetSettingsGroupID(),n=Velaro.Globals.UrlStorage+"html/"+e+"/"+t+"/popout-template.js",r=Velaro.Globals.UrlStorage+"css/"+e+"/"+t+"/popoutchat.css",loadCss(cdnurl+"css/popoutchat.min.css"),loadCss(r),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,$.getScript(n)];case 2:return i.sent(),initPopoutChat(),[3,4];case 3:return o=i.sent(),console.error("failed to load popout chat",o),[3,4];case 4:return[2]}})})},initPopoutChat=function(){window.outerWidth?window.resizeTo(parseInt(Velaro.Template.PopOutWindowWidth,10)+(window.outerWidth-window.innerWidth),parseInt(Velaro.Template.PopOutWindowHeight,10)+(window.outerHeight-window.innerHeight)):window.resizeTo(parseInt(Velaro.Template.PopOutWindowWidth,10),parseInt(Velaro.Template.PopOutWindowHeight,10));var onSettingsAndAvailabilityLoaded=function(){var containerTemplate=document.createElement("div");containerTemplate.className="velaro-popout-chat";var containerHtml=Velaro.Template.Container;containerHtml=containerHtml.replace("{ChatWithAnAgentText}",Velaro.Engagement.Settings.ChatWithAnAgentText),containerTemplate.innerHTML=containerHtml,window.loadingDiv&&document.body.removeChild(window.loadingDiv),document.body.appendChild(containerTemplate);try{Velaro.Template.Script&&eval(Velaro.Template.Script)}catch(e){console.error(e)}Velaro.Engagement.DisplayLoadingContent(),window.focus(),document.title=Velaro.Engagement.IsChatAvailable()?Velaro.Engagement.Settings.TitleAvailableText:Velaro.Engagement.Settings.TitleUnavailableText,window.vEngagementID||Velaro.Globals.SkipPrechat?Velaro.Engagement.RequestEngagement(null,Velaro.Engagement.HandleEngagementResponse):Velaro.Engagement.RequestEngagementId(),Velaro.Engagement.LoadFooter(),window.addEventListener("beforeunload",Velaro.Engagement.OnPopoutBeforeUnload)};Velaro.Engagement.GetNewSettings(function(){Velaro.Engagement.GetAvailability(onSettingsAndAvailabilityLoaded)})},loadChatScripts=function(){recordEvent("Loading chat"),window.addEventListener("focus",function(){recordEvent("Gained focus")}),Velaro.Engagement.SetSettingsGroupID(Velaro.Globals.ActiveGroup),Velaro.Engagement.GroupID=Velaro.Engagement.GetSettingsGroupID(),Velaro.Globals.InlineEnabled?loadInlineChat():Velaro.Globals.PopoutChat&&loadPopoutChat()},loadVisitorMonitoringScripts=function(){Velaro.Globals.VisitorMonitoringEnabled?Velaro.Visitor.Monitoring.Start(loadChatScripts):Velaro.Visitor.Create(loadChatScripts)},loadCss=function(e){var t=document.createElement("link");t.rel="stylesheet",t.href=e,document.head.appendChild(t)},Velaro.Globals.DomainScope||(Velaro.Globals.DomainScope=getDomain()),loadCss(cdnurl+"content/velaro.inline.min.css"),Velaro.Globals.ActiveSite?loadVisitorMonitoringScripts():(console.log("Warning! We're loading chat before the Globals have been set: "),console.log(Velaro.Globals),setTimeout(function(){loadVisitorMonitoringScripts()},2e3)),Velaro.linkifyStr=linkifyStr,[2]}})})})}).call(this,__webpack_require__(16))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],u=!1,d=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&g())}function g(){if(!u){var e=s(p);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||u||s(g)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";window.console&&console.log||(console={log:function(){},debug:function(){},info:function(){},warn:function(){},error:function(){}})},function(e,t,n){e.exports=n(32).default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.default.tokenize(e),o=[],a=[];for(n=new l(n),t=0;t<r.length;t++){var v=r[t];if(v.type!==c)if(v.type===d){var y=g(v.chars,n);o.push.apply(o,y)}else o.push(v);else{o.push(v);var b=v.tagName.toUpperCase(),E="A"===b||s.contains(n.ignoreTags,b);if(!E)continue;var T=o.length;f(b,r,++t,o),t+=o.length-T-1}}for(t=0;t<o.length;t++){var C=o[t];switch(C.type){case c:var x="<"+C.tagName;if(C.attributes.length>0){var S=m(C.attributes);x+=" "+S.join(" ")}x+=">",a.push(x);break;case u:a.push("</"+C.tagName+">");break;case d:a.push(h(C.chars));break;case p:a.push("\x3c!--"+h(C.chars)+"--\x3e")}}return a.join("")};var r,o=n(33),i=(r=o)&&r.__esModule?r:{default:r},a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(36));var s=a.options,l=s.Options,c="StartTag",u="EndTag",d="Chars",p="Comment";function g(e,t){for(var n=a.tokenize(e),r=[],o=0;o<n.length;o++){var i=n[o];if("nl"===i.type&&t.nl2br)r.push({type:c,tagName:"br",attributes:[],selfClosing:!0});else if(i.isLink&&t.check(i)){var s=t.resolve(i),l=s.formatted,p=s.formattedHref,g=s.tagName,f=s.className,h=s.target,m=s.attributes,v=[["href",p]];for(var y in f&&v.push(["class",f]),h&&v.push(["target",h]),m)v.push([y,m[y]]);r.push({type:c,tagName:g,attributes:v,selfClosing:!1}),r.push({type:d,chars:l}),r.push({type:u,tagName:g})}else r.push({type:d,chars:i.toString()})}return r}function f(e,t,n,r){for(var o=1;n<t.length&&o>0;){var i=t[n];i.type===c&&i.tagName.toUpperCase()===e?o++:i.type===u&&i.tagName.toUpperCase()===e&&o--,r.push(i),n++}return r}function h(e){return e}function m(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],o=r[0],i=r[1];t.push(o+'="'+i.replace(/"/g,"&quot;")+'"')}return t}},function(e,t,n){"use strict";t.__esModule=!0;var r=l(n(19)),o=l(n(20)),i=l(n(21)),a=l(n(22)),s=l(n(35));function l(e){return e&&e.__esModule?e:{default:e}}var c={HTML5NamedCharRefs:r.default,EntityParser:o.default,EventedTokenizer:i.default,Tokenizer:a.default,tokenize:s.default};t.default=c},function(e,t,n){"use strict";t.__esModule=!0,t.isSpace=function(e){return r.test(e)},t.isAlpha=function(e){return o.test(e)},t.preprocessInput=function(e){return e.replace(i,"\n")};var r=/[\t\n\f ]/,o=/[A-Za-z]/,i=/\r\n?/g},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return new r.default(new o.default(i.default),t).tokenize(e)};var r=a(n(22)),o=a(n(20)),i=a(n(19));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";t.__esModule=!0,t.tokenize=t.test=t.scanner=t.parser=t.options=t.inherits=t.find=void 0;var r=n(8),o=s(n(37)),i=s(n(38)),a=s(n(39));function s(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var l=function(e){return a.run(i.run(e))};t.find=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=l(e),r=[],o=0;o<n.length;o++){var i=n[o];!i.isLink||t&&i.type!==t||r.push(i.toObject())}return r},t.inherits=r.inherits,t.options=o,t.parser=a,t.scanner=i,t.test=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=l(e);return 1===n.length&&n[0].isLink&&(!t||n[0].type===t)},t.tokenize=l},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o={defaultProtocol:"http",events:null,format:a,formatHref:a,nl2br:!1,tagName:"a",target:function(e,t){return"url"===t?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function i(e){e=e||{},this.defaultProtocol=e.hasOwnProperty("defaultProtocol")?e.defaultProtocol:o.defaultProtocol,this.events=e.hasOwnProperty("events")?e.events:o.events,this.format=e.hasOwnProperty("format")?e.format:o.format,this.formatHref=e.hasOwnProperty("formatHref")?e.formatHref:o.formatHref,this.nl2br=e.hasOwnProperty("nl2br")?e.nl2br:o.nl2br,this.tagName=e.hasOwnProperty("tagName")?e.tagName:o.tagName,this.target=e.hasOwnProperty("target")?e.target:o.target,this.validate=e.hasOwnProperty("validate")?e.validate:o.validate,this.ignoreTags=[],this.attributes=e.attributes||e.linkAttributes||o.attributes,this.className=e.hasOwnProperty("className")?e.className:e.linkClass||o.className;for(var t=e.hasOwnProperty("ignoreTags")?e.ignoreTags:o.ignoreTags,n=0;n<t.length;n++)this.ignoreTags.push(t[n].toUpperCase())}function a(e){return e}t.defaults=o,t.Options=i,t.contains=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},i.prototype={resolve:function(e){var t=e.toHref(this.defaultProtocol);return{formatted:this.get("format",e.toString(),e),formattedHref:this.get("formatHref",t,e),tagName:this.get("tagName",t,e),className:this.get("className",t,e),target:this.get("target",t,e),events:this.getObject("events",t,e),attributes:this.getObject("attributes",t,e)}},check:function(e){return this.get("validate",e.toString(),e)},get:function(e,t,n){var i=void 0,a=this[e];if(!a)return a;switch(void 0===a?"undefined":r(a)){case"function":return a(t,n.type);case"object":return"function"==typeof(i=a.hasOwnProperty(n.type)?a[n.type]:o[e])?i(t,n.type):i}return a},getObject:function(e,t,n){var r=this[e];return"function"==typeof r?r(t,n.type):r}}},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(23),o=n(11),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(o);var a="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),s="0123456789".split(""),l="0123456789abcdefghijklmnopqrstuvwxyz".split(""),c=[" ","\f","\r","\t","\v"," "," ","᠎"],u=[],d=function(e){return new r.CharacterState(e)},p=d(),g=d(o.NUM),f=d(o.DOMAIN),h=d(),m=d(o.WS);p.on("@",d(o.AT)).on(".",d(o.DOT)).on("+",d(o.PLUS)).on("#",d(o.POUND)).on("?",d(o.QUERY)).on("/",d(o.SLASH)).on("_",d(o.UNDERSCORE)).on(":",d(o.COLON)).on("{",d(o.OPENBRACE)).on("[",d(o.OPENBRACKET)).on("<",d(o.OPENANGLEBRACKET)).on("(",d(o.OPENPAREN)).on("}",d(o.CLOSEBRACE)).on("]",d(o.CLOSEBRACKET)).on(">",d(o.CLOSEANGLEBRACKET)).on(")",d(o.CLOSEPAREN)).on("&",d(o.AMPERSAND)).on([",",";","!",'"',"'"],d(o.PUNCTUATION)),p.on("\n",d(o.NL)).on(c,m),m.on(c,m);for(var v=0;v<a.length;v++){var y=(0,r.stateify)(a[v],p,o.TLD,o.DOMAIN);u.push.apply(u,y)}var b=(0,r.stateify)("file",p,o.DOMAIN,o.DOMAIN),E=(0,r.stateify)("ftp",p,o.DOMAIN,o.DOMAIN),T=(0,r.stateify)("http",p,o.DOMAIN,o.DOMAIN),C=(0,r.stateify)("mailto",p,o.DOMAIN,o.DOMAIN);u.push.apply(u,b),u.push.apply(u,E),u.push.apply(u,T),u.push.apply(u,C);var x=b.pop(),S=E.pop(),w=T.pop(),V=C.pop(),I=d(o.DOMAIN),A=d(o.PROTOCOL),_=d(o.MAILTO);S.on("s",I).on(":",A),w.on("s",I).on(":",A),u.push(I),x.on(":",A),I.on(":",A),V.on(":",_);var D=(0,r.stateify)("localhost",p,o.LOCALHOST,o.DOMAIN);u.push.apply(u,D),p.on(s,g),g.on("-",h).on(s,g).on(l,f),f.on("-",h).on(l,f);for(var k=0;k<u.length;k++)u[k].on("-",h).on(l,f);h.on("-",h).on(s,f).on(l,f),p.defaultTransition=d(o.SYM);var N=p;t.State=r.CharacterState,t.TOKENS=i,t.run=function(e){for(var t=e.replace(/[A-Z]/g,function(e){return e.toLowerCase()}),n=e.length,r=[],o=0;o<n;){for(var i=p,a=null,s=0,l=null,c=-1;o<n&&(a=i.next(t[o]));)(i=a).accepts()?(c=0,l=i):c>=0&&c++,s++,o++;if(!(c<0)){o-=c,s-=c;var u=l.emit();r.push(new u(e.substr(o-s,s)))}}return r},t.start=N},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(23),o=n(40),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(o),a=n(11);var s=function(e){return new r.TokenState(e)},l=s(),c=s(),u=s(),d=s(),p=s(),g=s(),f=s(),h=s(o.URL),m=s(),v=s(o.URL),y=s(o.URL),b=s(),E=s(),T=s(),C=s(),x=s(),S=s(o.URL),w=s(o.URL),V=s(o.URL),I=s(o.URL),A=s(),_=s(),D=s(),k=s(),N=s(),O=s(),P=s(o.EMAIL),L=s(),R=s(o.EMAIL),G=s(o.MAILTOEMAIL),j=s(),U=s(),M=s(),H=s(),q=s(o.NL);l.on(a.NL,q).on(a.PROTOCOL,c).on(a.MAILTO,u).on(a.SLASH,d),c.on(a.SLASH,d),d.on(a.SLASH,p),l.on(a.TLD,g).on(a.DOMAIN,g).on(a.LOCALHOST,h).on(a.NUM,g),p.on(a.TLD,y).on(a.DOMAIN,y).on(a.NUM,y).on(a.LOCALHOST,y),g.on(a.DOT,f),N.on(a.DOT,O),f.on(a.TLD,h).on(a.DOMAIN,g).on(a.NUM,g).on(a.LOCALHOST,g),O.on(a.TLD,P).on(a.DOMAIN,N).on(a.NUM,N).on(a.LOCALHOST,N),h.on(a.DOT,f),P.on(a.DOT,O),h.on(a.COLON,m).on(a.SLASH,y),m.on(a.NUM,v),v.on(a.SLASH,y),P.on(a.COLON,L),L.on(a.NUM,R);var F=[a.DOMAIN,a.AT,a.LOCALHOST,a.NUM,a.PLUS,a.POUND,a.PROTOCOL,a.SLASH,a.TLD,a.UNDERSCORE,a.SYM,a.AMPERSAND],B=[a.COLON,a.DOT,a.QUERY,a.PUNCTUATION,a.CLOSEBRACE,a.CLOSEBRACKET,a.CLOSEANGLEBRACKET,a.CLOSEPAREN,a.OPENBRACE,a.OPENBRACKET,a.OPENANGLEBRACKET,a.OPENPAREN];y.on(a.OPENBRACE,E).on(a.OPENBRACKET,T).on(a.OPENANGLEBRACKET,C).on(a.OPENPAREN,x),b.on(a.OPENBRACE,E).on(a.OPENBRACKET,T).on(a.OPENANGLEBRACKET,C).on(a.OPENPAREN,x),E.on(a.CLOSEBRACE,y),T.on(a.CLOSEBRACKET,y),C.on(a.CLOSEANGLEBRACKET,y),x.on(a.CLOSEPAREN,y),S.on(a.CLOSEBRACE,y),w.on(a.CLOSEBRACKET,y),V.on(a.CLOSEANGLEBRACKET,y),I.on(a.CLOSEPAREN,y),A.on(a.CLOSEBRACE,y),_.on(a.CLOSEBRACKET,y),D.on(a.CLOSEANGLEBRACKET,y),k.on(a.CLOSEPAREN,y),E.on(F,S),T.on(F,w),C.on(F,V),x.on(F,I),E.on(B,A),T.on(B,_),C.on(B,D),x.on(B,k),S.on(F,S),w.on(F,w),V.on(F,V),I.on(F,I),S.on(B,S),w.on(B,w),V.on(B,V),I.on(B,I),A.on(F,S),_.on(F,w),D.on(F,V),k.on(F,I),A.on(B,A),_.on(B,_),D.on(B,D),k.on(B,k),y.on(F,y),b.on(F,y),y.on(B,b),b.on(B,b),u.on(a.TLD,G).on(a.DOMAIN,G).on(a.NUM,G).on(a.LOCALHOST,G),G.on(F,G).on(B,j),j.on(F,G).on(B,j);var Q=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];g.on(Q,U).on(a.AT,M),h.on(Q,U).on(a.AT,M),f.on(Q,U),U.on(Q,U).on(a.AT,M).on(a.DOT,H),H.on(Q,U),M.on(a.TLD,N).on(a.DOMAIN,N).on(a.LOCALHOST,P);t.State=r.TokenState,t.TOKENS=i,t.run=function(e){for(var t=e.length,n=0,r=[],i=[];n<t;){for(var a=l,s=null,c=null,u=0,d=null,p=-1;n<t&&!(s=a.next(e[n]));)i.push(e[n++]);for(;n<t&&(c=s||a.next(e[n]));)s=null,(a=c).accepts()?(p=0,d=a):p>=0&&p++,n++,u++;if(p<0)for(var g=n-u;g<n;g++)i.push(e[g]);else{i.length>0&&(r.push(new o.TEXT(i)),i=[]),n-=p,u-=p;var f=d.emit();r.push(new f(e.slice(n-u,n)))}}return i.length>0&&r.push(new o.TEXT(i)),r},t.start=l},function(e,t,n){"use strict";t.__esModule=!0,t.URL=t.TEXT=t.NL=t.EMAIL=t.MAILTOEMAIL=t.Base=void 0;var r=n(24),o=n(8),i=n(11);var a=(0,r.createTokenClass)();a.prototype={type:"token",isLink:!1,toString:function(){for(var e=[],t=0;t<this.v.length;t++)e.push(this.v[t].toString());return e.join("")},toHref:function(){return this.toString()},toObject:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(e)}}};var s=(0,o.inherits)(a,(0,r.createTokenClass)(),{type:"email",isLink:!0}),l=(0,o.inherits)(a,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),c=(0,o.inherits)(a,(0,r.createTokenClass)(),{type:"text"}),u=(0,o.inherits)(a,(0,r.createTokenClass)(),{type:"nl"}),d=(0,o.inherits)(a,(0,r.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",n=!1,r=!1,o=this.v,a=[],s=0;o[s]instanceof i.PROTOCOL;)n=!0,a.push(o[s].toString().toLowerCase()),s++;for(;o[s]instanceof i.SLASH;)r=!0,a.push(o[s].toString()),s++;for(;(e=o[s])instanceof i.DOMAIN||e instanceof i.TLD;)a.push(o[s].toString().toLowerCase()),s++;for(;s<o.length;s++)a.push(o[s].toString());return a=a.join(""),n||r||(a=t+"://"+a),a},hasProtocol:function(){return this.v[0]instanceof i.PROTOCOL}});t.Base=a,t.MAILTOEMAIL=s,t.EMAIL=l,t.NL=u,t.TEXT=c,t.URL=d},function(e,t,n){"use strict";e.exports=function(){var e,t,n="get_top_level_domain=cookie",r=document.location.hostname.split(".");for(e=r.length-1;e>=0;e--)if(t=r.slice(e).join("."),document.cookie=n+";domain=."+t+";",document.cookie.indexOf(n)>-1)return document.cookie=n.split("=")[0]+"=;domain=."+t+";expires=Thu, 01 Jan 1970 00:00:01 GMT;",t}},function(e,t,n){"use strict";if(Array.prototype.toJSON&&'{"a":"[]"}'===JSON.stringify({a:[]})){delete Object.prototype.toJSON,delete Array.prototype.toJSON,delete Hash.prototype.toJSON,delete String.prototype.toJSON;console.warn("Array.prototype.toJSON has been implemented incorrectly.\nThis problem is commonly related to Prototype.js versions < 1.7.\nIn this case the modification has been overrode so that chat can continue to work.\nFor more information, see https://stackoverflow.com/questions/710586 ")}},function(e,t,n){"use strict";(function(e){
/*!
 * ASP.NET SignalR JavaScript Library 2.4.3
 * http://signalr.net/
 *
 * Copyright (c) .NET Foundation. All rights reserved.
 * Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
 *
 */
!function(e,t,n){var r={nojQuery:"jQuery was not found. Please ensure jQuery is referenced before the SignalR client JavaScript file.",noTransportOnInit:"No transport could be initialized successfully. Try specifying a different transport or none at all for auto initialization.",errorOnNegotiate:"Error during negotiation request.",stoppedWhileLoading:"The connection was stopped during page load.",stoppedWhileNegotiating:"The connection was stopped during the negotiate request.",errorParsingNegotiateResponse:"Error parsing negotiate response.",errorRedirectionExceedsLimit:"Negotiate redirection limit exceeded.",errorDuringStartRequest:"Error during start request. Stopping the connection.",errorFromServer:"Error message received from the server: '{0}'.",stoppedDuringStartRequest:"The connection was stopped during the start request.",errorParsingStartResponse:"Error parsing start response: '{0}'. Stopping the connection.",invalidStartResponse:"Invalid start response: '{0}'. Stopping the connection.",protocolIncompatible:"You are using a version of the client that isn't compatible with the server. Client version {0}, server version {1}.",aspnetCoreSignalrServer:"Detected a connection attempt to an ASP.NET Core SignalR Server. This client only supports connecting to an ASP.NET SignalR Server. See https://aka.ms/signalr-core-differences for details.",sendFailed:"Send failed.",parseFailed:"Failed at parsing response: {0}",longPollFailed:"Long polling request failed.",eventSourceFailedToConnect:"EventSource failed to connect.",eventSourceError:"Error raised by EventSource",webSocketClosed:"WebSocket closed.",pingServerFailedInvalidResponse:"Invalid ping response when pinging server: '{0}'.",pingServerFailed:"Failed to ping server.",pingServerFailedStatusCode:"Failed to ping server.  Server responded with status code {0}, stopping the connection.",pingServerFailedParse:"Failed to parse ping server response, stopping the connection.",noConnectionTransport:"Connection is in an invalid state, there is no transport active.",webSocketsInvalidState:"The Web Socket transport is in an invalid state, transitioning into reconnecting.",reconnectTimeout:"Couldn't reconnect within the configured timeout of {0} ms, disconnecting.",reconnectWindowTimeout:"The client has been inactive since {0} and it has exceeded the inactivity timeout of {1} ms. Stopping the connection.",jsonpNotSupportedWithAccessToken:"The JSONP protocol does not support connections that require a Bearer token to connect, such as the Azure SignalR Service."};if("function"!=typeof e)throw new Error(r.nojQuery);var o,i,a,s,l="complete"===t.document.readyState,c=e(t),u={onStart:"onStart",onStarting:"onStarting",onReceived:"onReceived",onError:"onError",onConnectionSlow:"onConnectionSlow",onReconnecting:"onReconnecting",onReconnect:"onReconnect",onStateChanged:"onStateChanged",onDisconnect:"onDisconnect"},d=function(t,n,r){return n===t.state&&(t.state=r,e(t).triggerHandler(u.onStateChanged,[{oldState:n,newState:r}]),!0)},p=function(e){return e._.keepAliveData.activated&&e.transport.supportsKeepAlive(e)};function g(e,t){return t.match(/:\d+$/)?t:t+":"+function(e){return"http:"===e?80:"https:"===e?443:void 0}(e)}function f(t,n){var r=[];this.tryBuffer=function(n){return t.state===e.signalR.connectionState.connecting&&(r.push(n),!0)},this.drain=function(){if(t.state===e.signalR.connectionState.connected)for(;r.length>0;)n(r.shift())},this.clear=function(){r=[]}}(o=function(e,t,n){return new o.fn.init(e,t,n)})._={defaultContentType:"application/x-www-form-urlencoded; charset=UTF-8",ieVersion:("Microsoft Internet Explorer"===t.navigator.appName&&(s=/MSIE ([0-9]+\.[0-9]+)/.exec(t.navigator.userAgent))&&(a=t.parseFloat(s[1])),a),error:function(e,t,n){var r=new Error(e);return r.source=t,void 0!==n&&(r.context=n),r},transportError:function(e,t,n,r){var o=this.error(e,n,r);return o.transport=t?t.name:void 0,o},format:function(){for(var e=arguments[0],t=0;t<arguments.length-1;t++)e=e.replace("{"+t+"}",arguments[t+1]);return e},firefoxMajorVersion:function(e){var t=e.match(/Firefox\/(\d+)/);return!t||!t.length||t.length<2?0:parseInt(t[1],10)},configurePingInterval:function(n){var r=n._.config,i=function(t){e(n).triggerHandler(u.onError,[t])};r&&!n._.pingIntervalId&&r.pingInterval&&(n._.pingIntervalId=t.setInterval(function(){o.transports._logic.pingServer(n).fail(i)},r.pingInterval))}},o.events=u,o.resources=r,o.ajaxDefaults={processData:!0,timeout:null,async:!0,global:!1,cache:!1},o.changeState=d,o.isDisconnecting=function(e){return e.state===o.connectionState.disconnected},o.connectionState={connecting:0,connected:1,reconnecting:2,disconnected:4},o.hub={start:function(){throw new Error("SignalR: Error loading hubs. Ensure your hubs reference is correct, e.g. <script src='/signalr/js'><\/script>.")}},"function"==typeof c.on?c.on("load",function(){l=!0}):c.load(function(){l=!0}),o.fn=o.prototype={init:function(t,n,r){var o=e(this);this.url=t,this.qs=n,this.lastError=null,this._={keepAliveData:{},connectingMessageBuffer:new f(this,function(e){o.triggerHandler(u.onReceived,[e])}),lastMessageAt:(new Date).getTime(),lastActiveAt:(new Date).getTime(),beatInterval:5e3,beatHandle:null,totalTransportConnectTimeout:0,redirectQs:null},"boolean"==typeof r&&(this.logging=r)},_parseResponse:function(e){return e&&"string"==typeof e?this.json.parse(e):e},_originalJson:t.JSON,json:t.JSON,isCrossDomain:function(n,r){var o;return n=e.trim(n),r=r||t.location,0===n.indexOf("http")&&((o=t.document.createElement("a")).href=n,o.protocol+g(o.protocol,o.host)!==r.protocol+g(r.protocol,r.host))},ajaxDataType:"text",contentType:"application/json; charset=UTF-8",logging:!1,state:o.connectionState.disconnected,clientProtocol:"2.1",supportedProtocols:["1.5","2.0","2.1"],negotiateRedirectSupportedProtocols:["2.0","2.1"],reconnectDelay:2e3,transportConnectTimeout:0,disconnectTimeout:3e4,reconnectWindow:3e4,keepAliveWarnAt:2/3,start:function(n,i){var a,s=this,g={pingInterval:3e5,waitForPageLoad:!0,transport:"auto",jsonp:!1},f=s._deferral||e.Deferred(),h=t.document.createElement("a"),m=function(n,r){n.url===r&&n.baseUrl||(n.url=r,h.href=n.url,h.protocol&&":"!==h.protocol?(n.protocol=h.protocol,n.host=h.host):(n.protocol=t.document.location.protocol,n.host=h.host||t.document.location.host),n.baseUrl=n.protocol+"//"+n.host,n.wsProtocol="https:"===n.protocol?"wss://":"ws://",0===n.url.indexOf("//")&&(n.url=t.location.protocol+n.url,n.log("Protocol relative URL detected, normalizing it to '"+n.url+"'.")),n.isCrossDomain(n.url)&&(n.log("Auto detected cross domain url."),"auto"===g.transport&&(g.transport=["webSockets","serverSentEvents","longPolling"]),void 0===n.withCredentials&&(n.withCredentials=!0),e.support.cors||(n.ajaxDataType="jsonp",n.log("Using jsonp because this browser doesn't support CORS.")),n.contentType=o._.defaultContentType))};if(s.lastError=null,s._deferral=f,!s.json)throw new Error("SignalR: No JSON parser found. Please ensure json2.js is referenced before the SignalR.js file if you need to support clients without native JSON parsing support, e.g. IE<8.");if("function"===e.type(n)?i=n:"object"===e.type(n)&&(e.extend(g,n),"function"===e.type(g.callback)&&(i=g.callback)),g.transport=function(t,n){if(e.isArray(t)){for(var r=t.length-1;r>=0;r--){var i=t[r];"string"===e.type(i)&&o.transports[i]||(n.log("Invalid transport: "+i+", removing it from the transports list."),t.splice(r,1))}0===t.length&&(n.log("No transports remain within the specified transport array."),t=null)}else if(o.transports[t]||"auto"===t){if("auto"===t&&o._.ieVersion<=8)return["longPolling"]}else n.log("Invalid transport: "+t.toString()+"."),t=null;return t}(g.transport,s),!g.transport)throw new Error("SignalR: Invalid transport(s) specified, aborting start.");if(s._.config=g,!l&&!0===g.waitForPageLoad)return s._.deferredStartHandler=function(){s.start(n,i)},c.bind("load",s._.deferredStartHandler),f.promise();if(s.state===o.connectionState.connecting)return f.promise();if(!1===d(s,o.connectionState.disconnected,o.connectionState.connecting))return f.resolve(s),f.promise();!function(n){var r,i;n._.configuredStopReconnectingTimeout||(i=function(t){var n=o._.format(o.resources.reconnectTimeout,t.disconnectTimeout);t.log(n),e(t).triggerHandler(u.onError,[o._.error(n,"TimeoutException")]),t.stop(!1,!1)},n.reconnecting(function(){var e=this;e.state===o.connectionState.reconnecting&&(r=t.setTimeout(function(){i(e)},e.disconnectTimeout))}),n.stateChanged(function(e){e.oldState===o.connectionState.reconnecting&&t.clearTimeout(r)}),n._.configuredStopReconnectingTimeout=!0)}(s),"auto"===g.transport&&!0===g.jsonp&&(g.transport="longPolling"),s.withCredentials=g.withCredentials,s._originalUrl=s.url,s.ajaxDataType=g.jsonp?"jsonp":"text",m(s,s.url),e(s).bind(u.onStart,function(t,n){"function"===e.type(i)&&i.call(s),f.resolve(s)}),s._.initHandler=o.transports._logic.initHandler(s),a=function(n,i){var l=o._.error(r.noTransportOnInit);if((i=i||0)>=n.length)return 0===i?s.log("No transports supported by the server were selected."):1===i?s.log("No fallback transports were selected."):s.log("Fallback transports exhausted."),e(s).triggerHandler(u.onError,[l]),f.reject(l),void s.stop();if(s.state!==o.connectionState.disconnected){var g=n[i],h=o.transports[g],m=function(){a(n,i+1)};s.transport=h;try{s._.initHandler.start(h,function(){var n=o._.firefoxMajorVersion(t.navigator.userAgent)>=11;s.log("The start request succeeded. Transitioning to the connected state."),p(s)&&o.transports._logic.monitorKeepAlive(s),s._.keepAliveData.activated&&o.transports._logic.startHeartbeat(s),o._.configurePingInterval(s),d(s,o.connectionState.connecting,o.connectionState.connected)||s.log("WARNING! The connection was not in the connecting state."),s._.connectingMessageBuffer.drain(),e(s).triggerHandler(u.onStart),c.bind("unload",function(){s.log("Window unloading, stopping the connection."),s.stop(!0)}),n&&c.bind("beforeunload",function(){t.setTimeout(function(){s.stop(!0)},0)})},m)}catch(e){s.log(h.name+" transport threw '"+e.message+"' when attempting to start."),m()}}};var v=s.url+"/negotiate",y=function(t,n){var i=o._.error(r.errorOnNegotiate,t,n._.negotiateRequest);e(n).triggerHandler(u.onError,i),f.reject(i),n.stop()};return e(s).triggerHandler(u.onStarting),v=o.transports._logic.prepareQueryString(s,v),s.log("Negotiating with '"+v+"'."),s._.negotiateRequest=function(){var t,n,i,l=0,c=[],d=[],p=function(e,t){var n=o.transports._logic.prepareQueryString(e,e.url+"/negotiate");e.log("Negotiating with '"+n+"'.");var i={url:n,error:function(t,n){"__Negotiate Aborted__"!==n?y(t,e):f.reject(o._.error(r.stoppedWhileNegotiating,null,e._.negotiateRequest))},success:t};return e.accessToken&&(i.headers={Authorization:"Bearer "+e.accessToken}),o.transports._logic.ajax(e,i)},h=function(v){try{t=s._parseResponse(v)}catch(e){return void y(o._.error(r.errorParsingNegotiateResponse,e),s)}if(t.availableTransports)return i=o._.error(r.aspnetCoreSignalrServer),e(s).triggerHandler(u.onError,[i]),void f.reject(i);if(!t.ProtocolVersion||-1===s.supportedProtocols.indexOf(t.ProtocolVersion))return i=o._.error(o._.format(r.protocolIncompatible,s.clientProtocol,t.ProtocolVersion)),e(s).triggerHandler(u.onError,[i]),void f.reject(i);if(-1!==s.negotiateRedirectSupportedProtocols.indexOf(t.ProtocolVersion)){if(t.Error)return i=o._.error(o._.format(r.errorFromServer,t.Error)),e(s).triggerHandler(u.onError,[i]),void f.reject(i);if(t.RedirectUrl){if(100===l)return void y(o._.error(r.errorRedirectionExceedsLimit),s);"auto"===g.transport&&(g.transport=["webSockets","serverSentEvents","longPolling"]),s.log("Received redirect to: "+t.RedirectUrl),s.accessToken=t.AccessToken;var b=t.RedirectUrl.split("?",2);return m(s,b[0]),s._.redirectQs=2===b.length?b[1]:null,"jsonp"===s.ajaxDataType&&s.accessToken?void y(o._.error(r.jsonpNotSupportedWithAccessToken),s):(l++,void p(s,h))}}n=s._.keepAliveData,s.appRelativeUrl=t.Url,s.id=t.ConnectionId,s.token=t.ConnectionToken,s.webSocketServerUrl=t.WebSocketServerUrl,s._.pollTimeout=1e3*t.ConnectionTimeout+1e4,s.disconnectTimeout=1e3*t.DisconnectTimeout,s._.totalTransportConnectTimeout=s.transportConnectTimeout+1e3*t.TransportConnectTimeout,t.KeepAliveTimeout?(n.activated=!0,n.timeout=1e3*t.KeepAliveTimeout,n.timeoutWarning=n.timeout*s.keepAliveWarnAt,s._.beatInterval=(n.timeout-n.timeoutWarning)/3):n.activated=!1,s.reconnectWindow=s.disconnectTimeout+(n.timeout||0),e.each(o.transports,function(e){if(0===e.indexOf("_")||"webSockets"===e&&!t.TryWebSockets)return!0;d.push(e)}),e.isArray(g.transport)?e.each(g.transport,function(t,n){e.inArray(n,d)>=0&&c.push(n)}):"auto"===g.transport?c=d:e.inArray(g.transport,d)>=0&&c.push(g.transport),a(c)};return p(s,h)}(),f.promise()},starting:function(t){var n=this;return e(n).bind(u.onStarting,function(e,r){t.call(n)}),n},send:function(e){if(this.state===o.connectionState.disconnected)throw new Error("SignalR: Connection must be started before data can be sent. Call .start() before .send()");if(this.state===o.connectionState.connecting)throw new Error("SignalR: Connection has not been fully initialized. Use .start().done() or .start().fail() to run logic after the connection has started.");return this.transport.send(this,e),this},received:function(t){var n=this;return e(n).bind(u.onReceived,function(e,r){t.call(n,r)}),n},stateChanged:function(t){var n=this;return e(n).bind(u.onStateChanged,function(e,r){t.call(n,r)}),n},error:function(t){var n=this;return e(n).bind(u.onError,function(e,r,o){n.lastError=r,t.call(n,r,o)}),n},disconnected:function(t){var n=this;return e(n).bind(u.onDisconnect,function(e,r){t.call(n)}),n},connectionSlow:function(t){var n=this;return e(n).bind(u.onConnectionSlow,function(e,r){t.call(n)}),n},reconnecting:function(t){var n=this;return e(n).bind(u.onReconnecting,function(e,r){t.call(n)}),n},reconnected:function(t){var n=this;return e(n).bind(u.onReconnect,function(e,r){t.call(n)}),n},stop:function(n,i){var a=this._deferral;return this._.deferredStartHandler&&c.unbind("load",this._.deferredStartHandler),delete this._.config,delete this._.deferredStartHandler,l||this._.config&&!0!==this._.config.waitForPageLoad?this.state!==o.connectionState.disconnected?(this.log("Stopping connection."),t.clearTimeout(this._.beatHandle),t.clearInterval(this._.pingIntervalId),this.transport&&(this.transport.stop(this),!1!==i&&this.transport.abort(this,n),p(this)&&o.transports._logic.stopMonitoringKeepAlive(this),this.transport=null),this._.negotiateRequest&&(this._.negotiateRequest.abort("__Negotiate Aborted__"),delete this._.negotiateRequest),this._.initHandler&&this._.initHandler.stop(),delete this._deferral,delete this.messageId,delete this.groupsToken,delete this.id,delete this._.pingIntervalId,delete this._.lastMessageAt,delete this._.lastActiveAt,this._.connectingMessageBuffer.clear(),e(this).unbind(u.onStart),delete this.accessToken,delete this.protocol,delete this.host,delete this.baseUrl,delete this.wsProtocol,delete this.contentType,this.url=this._originalUrl,this._.redirectQs=null,d(this,this.state,o.connectionState.disconnected),e(this).triggerHandler(u.onDisconnect),this):void 0:(this.log("Stopping connection prior to negotiate."),void(a&&a.reject(o._.error(r.stoppedWhileLoading))))},log:function(e){!function(e,n){var r;!1!==n&&void 0!==t.console&&(r="["+(new Date).toTimeString()+"] SignalR: "+e,t.console.debug?t.console.debug(r):t.console.log&&t.console.log(r))}(e,this.logging)}},o.fn.init.prototype=o.fn,o.noConflict=function(){return e.connection===o&&(e.connection=i),o},e.connection&&(i=e.connection),e.connection=e.signalR=o}(e,window),function(e,t,n){var r,o=e.signalR,i=e.signalR.events,a=e.signalR.changeState;function s(n){n._.keepAliveData.monitoring&&function(t){var n,r=t._.keepAliveData;t.state===o.connectionState.connected&&((n=(new Date).getTime()-t._.lastMessageAt)>=r.timeout?(t.log("Keep alive timed out.  Notifying transport that connection has been lost."),t.transport.lostConnection(t)):n>=r.timeoutWarning?r.userNotified||(t.log("Keep alive has been missed, connection may be dead/slow."),e(t).triggerHandler(i.onConnectionSlow),r.userNotified=!0):r.userNotified=!1)}(n),r.markActive(n)&&(n._.beatHandle=t.setTimeout(function(){s(n)},n._.beatInterval))}function l(e,t){var n=e.url+t;return e.transport&&(n+="?transport="+e.transport.name),r.prepareQueryString(e,n)}function c(e){this.connection=e,this.startRequested=!1,this.startCompleted=!1,this.connectionStopped=!1}o.transports={},c.prototype={start:function(e,n,r){var o=this,i=o.connection,a=!1;o.startRequested||o.connectionStopped?i.log("WARNING! "+e.name+" transport cannot be started. Initialization ongoing or completed."):(i.log(e.name+" transport starting."),e.start(i,function(){a||o.initReceived(e,n)},function(t){return a||(a=!0,o.transportFailed(e,t,r)),!o.startCompleted||o.connectionStopped}),o.transportTimeoutHandle=t.setTimeout(function(){a||(a=!0,i.log(e.name+" transport timed out when trying to connect."),o.transportFailed(e,void 0,r))},i._.totalTransportConnectTimeout))},stop:function(){this.connectionStopped=!0,t.clearTimeout(this.transportTimeoutHandle),o.transports._logic.tryAbortStartRequest(this.connection)},initReceived:function(e,n){var r=this,i=r.connection;r.startRequested?i.log("WARNING! The client received multiple init messages."):r.connectionStopped||(r.startRequested=!0,t.clearTimeout(r.transportTimeoutHandle),i.log(e.name+" transport connected. Initiating start request."),o.transports._logic.ajaxStart(i,function(){r.startCompleted=!0,n()}))},transportFailed:function(n,r,a){var s,l=this.connection,c=l._deferral;this.connectionStopped||(t.clearTimeout(this.transportTimeoutHandle),this.startRequested?this.startCompleted||(s=o._.error(o.resources.errorDuringStartRequest,r),l.log(n.name+" transport failed during the start request. Stopping the connection."),e(l).triggerHandler(i.onError,[s]),c&&c.reject(s),l.stop()):(n.stop(l),l.log(n.name+" transport failed to connect. Attempting to fall back."),a()))}},r=o.transports._logic={ajax:function(t,n){return e.ajax(e.extend(!0,{},e.signalR.ajaxDefaults,{type:"GET",data:{},xhrFields:{withCredentials:t.withCredentials},contentType:t.contentType,dataType:t.ajaxDataType},n))},pingServer:function(t){var n,i,a=e.Deferred();return t.transport?(n=t.url+"/ping",n=r.addQs(n,t.qs),i=r.ajax(t,{url:n,headers:t.accessToken?{Authorization:"Bearer "+t.accessToken}:{},success:function(e){var n;try{n=t._parseResponse(e)}catch(e){return a.reject(o._.transportError(o.resources.pingServerFailedParse,t.transport,e,i)),void t.stop()}"pong"===n.Response?a.resolve():a.reject(o._.transportError(o._.format(o.resources.pingServerFailedInvalidResponse,e),t.transport,null,i))},error:function(e){401===e.status||403===e.status?(a.reject(o._.transportError(o._.format(o.resources.pingServerFailedStatusCode,e.status),t.transport,e,i)),t.stop()):a.reject(o._.transportError(o.resources.pingServerFailed,t.transport,e,i))}})):a.reject(o._.transportError(o.resources.noConnectionTransport,t.transport)),a.promise()},prepareQueryString:function(e,n){var o;return o=r.addQs(n,"clientProtocol="+e.clientProtocol),o="string"==typeof e._.redirectQs?r.addQs(o,e._.redirectQs):r.addQs(o,e.qs),e.token&&(o+="&connectionToken="+t.encodeURIComponent(e.token)),e.data&&(o+="&connectionData="+t.encodeURIComponent(e.data)),o},addQs:function(t,n){var r,o=-1!==t.indexOf("?")?"&":"?";if(!n)return t;if("object"==typeof n)return t+o+e.param(n);if("string"==typeof n)return"?"!==(r=n.charAt(0))&&"&"!==r||(o=""),t+o+n;throw new Error("Query string property must be either a string or object.")},getUrl:function(e,n,o,i,a){var s=("webSockets"===n?"":e.baseUrl)+e.appRelativeUrl,l="transport="+n;return!a&&e.groupsToken&&(l+="&groupsToken="+t.encodeURIComponent(e.groupsToken)),o?(s+=i?"/poll":"/reconnect",!a&&e.messageId&&(l+="&messageId="+t.encodeURIComponent(e.messageId))):s+="/connect",s+="?"+l,s=r.prepareQueryString(e,s),e.transport&&e.accessToken&&("serverSentEvents"!==e.transport.name&&"webSockets"!==e.transport.name||(s+="&access_token="+t.encodeURIComponent(e.accessToken))),a||(s+="&tid="+Math.floor(11*Math.random())),s},maximizePersistentResponse:function(e){return{MessageId:e.C,Messages:e.M,Initialized:void 0!==e.S,ShouldReconnect:void 0!==e.T,LongPollDelay:e.L,GroupsToken:e.G,Error:e.E}},updateGroups:function(e,t){t&&(e.groupsToken=t)},stringifySend:function(e,t){return"string"==typeof t||null==t?t:e.json.stringify(t)},ajaxSend:function(t,n){var a,s=r.stringifySend(t,n),c=l(t,"/send"),u=function(t,r){e(r).triggerHandler(i.onError,[o._.transportError(o.resources.sendFailed,r.transport,t,a),n])};return a=r.ajax(t,{url:c,type:"jsonp"===t.ajaxDataType?"GET":"POST",contentType:o._.defaultContentType,headers:t.accessToken?{Authorization:"Bearer "+t.accessToken}:{},data:{data:s},success:function(e){var n;if(e){try{n=t._parseResponse(e)}catch(e){return u(e,t),void t.stop()}r.triggerReceived(t,n)}},error:function(e,n){"abort"!==n&&"parsererror"!==n&&u(e,t)}})},ajaxAbort:function(e,n){if(void 0!==e.transport){n=void 0===n||n;var o=l(e,"/abort"),i=e.accessToken?{Authorization:"Bearer "+e.accessToken}:{};t.fetch?t.fetch(o,{method:"POST",keepalive:!0,headers:i,credentials:!0===e.withCredentials?"include":"same-origin"}):r.ajax(e,{url:o,async:n,timeout:1e3,type:"POST",headers:i,dataType:"text"}),e.log("Fired ajax abort async = "+n+".")}},ajaxStart:function(t,n){var a=function(e){var n=t._deferral;n&&n.reject(e)},s=function(n){t.log("The start request failed. Stopping the connection."),e(t).triggerHandler(i.onError,[n]),a(n),t.stop()};t._.startRequest=r.ajax(t,{url:l(t,"/start"),headers:t.accessToken?{Authorization:"Bearer "+t.accessToken}:{},success:function(e,r,i){var a;try{a=t._parseResponse(e)}catch(t){return void s(o._.error(o._.format(o.resources.errorParsingStartResponse,e),t,i))}"started"===a.Response?n():s(o._.error(o._.format(o.resources.invalidStartResponse,e),null,i))},error:function(e,n,r){"__Start Aborted__"!==n?s(o._.error(o.resources.errorDuringStartRequest,r,e)):(t.log("The start request aborted because connection.stop() was called."),a(o._.error(o.resources.stoppedDuringStartRequest,null,e)))}})},tryAbortStartRequest:function(e){e._.startRequest&&(e._.startRequest.abort("__Start Aborted__"),delete e._.startRequest)},tryInitialize:function(e,t,n){t.Initialized&&n?n():t.Initialized&&e.log("WARNING! The client received an init message after reconnecting.")},triggerReceived:function(t,n){t._.connectingMessageBuffer.tryBuffer(n)||e(t).triggerHandler(i.onReceived,[n])},processMessages:function(t,n,i){var a;if(n&&void 0!==n.I)r.triggerReceived(t,n);else if(r.markLastMessage(t),n){if((a=r.maximizePersistentResponse(n)).Error)return t.log("Received an error message from the server: "+n.E),e(t).triggerHandler(o.events.onError,[o._.error(n.E,"ServerError")]),void t.stop(!1,!1);r.updateGroups(t,a.GroupsToken),a.MessageId&&(t.messageId=a.MessageId),a.Messages&&(e.each(a.Messages,function(e,n){r.triggerReceived(t,n)}),r.tryInitialize(t,a,i))}},monitorKeepAlive:function(t){var n=t._.keepAliveData;n.monitoring?t.log("Tried to monitor keep alive but it's already being monitored."):(n.monitoring=!0,r.markLastMessage(t),t._.keepAliveData.reconnectKeepAliveUpdate=function(){r.markLastMessage(t)},e(t).bind(i.onReconnect,t._.keepAliveData.reconnectKeepAliveUpdate),t.log("Now monitoring keep alive with a warning timeout of "+n.timeoutWarning+", keep alive timeout of "+n.timeout+" and disconnecting timeout of "+t.disconnectTimeout))},stopMonitoringKeepAlive:function(t){var n=t._.keepAliveData;n.monitoring&&(n.monitoring=!1,e(t).unbind(i.onReconnect,t._.keepAliveData.reconnectKeepAliveUpdate),t._.keepAliveData={},t.log("Stopping the monitoring of the keep alive."))},startHeartbeat:function(e){e._.lastActiveAt=(new Date).getTime(),s(e)},markLastMessage:function(e){e._.lastMessageAt=(new Date).getTime(),e._.lastActiveAt=e._.lastMessageAt},markActive:function(e){return!!r.verifyLastActive(e)&&(e._.lastActiveAt=(new Date).getTime(),!0)},isConnectedOrReconnecting:function(e){return e.state===o.connectionState.connected||e.state===o.connectionState.reconnecting},ensureReconnectingState:function(t){return!0===a(t,o.connectionState.connected,o.connectionState.reconnecting)&&e(t).triggerHandler(i.onReconnecting),t.state===o.connectionState.reconnecting},clearReconnectTimeout:function(e){e&&e._.reconnectTimeout&&(t.clearTimeout(e._.reconnectTimeout),delete e._.reconnectTimeout)},verifyLastActive:function(t){if(!t._.keepAliveData.activated||(new Date).getTime()-t._.lastActiveAt<t.reconnectWindow)return!0;var n=o._.format(o.resources.reconnectWindowTimeout,new Date(t._.lastActiveAt),t.reconnectWindow);return t.log(n),e(t).triggerHandler(i.onError,[o._.error(n,"TimeoutException")]),t.stop(!1,!1),!1},reconnect:function(e,n){var i=o.transports[n];if(r.isConnectedOrReconnecting(e)&&!e._.reconnectTimeout){if(!r.verifyLastActive(e))return;e._.reconnectTimeout=t.setTimeout(function(){r.verifyLastActive(e)&&(i.stop(e),r.ensureReconnectingState(e)&&(e.log(n+" reconnecting."),i.start(e)))},e.reconnectDelay)}},handleParseFailure:function(t,n,r,a,s){var l=o._.transportError(o._.format(o.resources.parseFailed,n),t.transport,r,s);a&&a(l)?t.log("Failed to parse server response while attempting to connect."):(e(t).triggerHandler(i.onError,[l]),t.stop())},initHandler:function(e){return new c(e)},foreverFrame:{count:0,connections:{}}}}(e,window),function(e,t,n){var r=e.signalR,o=e.signalR.events,i=e.signalR.changeState,a=r.transports._logic;r.transports.webSockets={name:"webSockets",supportsKeepAlive:function(){return!0},send:function(t,n){var i=a.stringifySend(t,n);try{t.socket.send(i)}catch(i){e(t).triggerHandler(o.onError,[r._.transportError(r.resources.webSocketsInvalidState,t.transport,i,t.socket),n])}},start:function(n,s,l){var c,u=!1,d=this,p=!s,g=e(n);t.WebSocket?n.socket||(c=n.webSocketServerUrl?n.webSocketServerUrl:n.wsProtocol+n.host,c+=a.getUrl(n,this.name,p),n.log("Connecting to websocket endpoint '"+c+"'."),n.socket=new t.WebSocket(c),n.socket.onopen=function(){u=!0,n.log("Websocket opened."),a.clearReconnectTimeout(n),!0===i(n,r.connectionState.reconnecting,r.connectionState.connected)&&g.triggerHandler(o.onReconnect)},n.socket.onclose=function(t){var i;this===n.socket&&(u&&void 0!==t.wasClean&&!1===t.wasClean?(i=r._.transportError(r.resources.webSocketClosed,n.transport,t),n.log("Unclean disconnect from websocket: "+(t.reason||"[no reason given]."))):n.log("Websocket closed."),l&&l(i)||(i&&e(n).triggerHandler(o.onError,[i]),d.reconnect(n)))},n.socket.onmessage=function(e){var t;try{t=n._parseResponse(e.data)}catch(t){return void a.handleParseFailure(n,e.data,t,l,e)}t&&a.processMessages(n,t,s)}):l()},reconnect:function(e){a.reconnect(e,this.name)},lostConnection:function(e){this.reconnect(e)},stop:function(e){a.clearReconnectTimeout(e),e.socket&&(e.log("Closing the Websocket."),e.socket.close(),e.socket=null)},abort:function(e,t){a.ajaxAbort(e,t)}}}(e,window),function(e,t,n){var r=e.signalR,o=e.signalR.events,i=e.signalR.changeState,a=r.transports._logic,s=function(e){t.clearTimeout(e._.reconnectAttemptTimeoutHandle),delete e._.reconnectAttemptTimeoutHandle};r.transports.serverSentEvents={name:"serverSentEvents",supportsKeepAlive:function(){return!0},timeOut:3e3,start:function(n,l,c){var u,d=this,p=!1,g=e(n),f=!l;if(n.eventSource&&(n.log("The connection already has an event source. Stopping it."),n.stop()),t.EventSource){u=a.getUrl(n,this.name,f);try{n.log("Attempting to connect to SSE endpoint '"+u+"'."),n.eventSource=new t.EventSource(u,{withCredentials:n.withCredentials})}catch(e){return n.log("EventSource failed trying to connect with error "+e.Message+"."),void(c?c():(g.triggerHandler(o.onError,[r._.transportError(r.resources.eventSourceFailedToConnect,n.transport,e)]),f&&d.reconnect(n)))}f&&(n._.reconnectAttemptTimeoutHandle=t.setTimeout(function(){!1===p&&n.eventSource.readyState!==t.EventSource.OPEN&&d.reconnect(n)},d.timeOut)),n.eventSource.addEventListener("open",function(e){n.log("EventSource connected."),s(n),a.clearReconnectTimeout(n),!1===p&&(p=!0,!0===i(n,r.connectionState.reconnecting,r.connectionState.connected)&&g.triggerHandler(o.onReconnect))},!1),n.eventSource.addEventListener("message",function(e){var t;if("initialized"!==e.data){try{t=n._parseResponse(e.data)}catch(t){return void a.handleParseFailure(n,e.data,t,c,e)}a.processMessages(n,t,l)}},!1),n.eventSource.addEventListener("error",function(e){var i=r._.transportError(r.resources.eventSourceError,n.transport,e);this===n.eventSource&&(c&&c(i)||(n.log("EventSource readyState: "+n.eventSource.readyState+"."),e.eventPhase===t.EventSource.CLOSED?(n.log("EventSource reconnecting due to the server connection ending."),d.reconnect(n)):(n.log("EventSource error."),g.triggerHandler(o.onError,[i]))))},!1)}else c&&(n.log("This browser doesn't support SSE."),c())},reconnect:function(e){a.reconnect(e,this.name)},lostConnection:function(e){this.reconnect(e)},send:function(e,t){a.ajaxSend(e,t)},stop:function(e){s(e),a.clearReconnectTimeout(e),e&&e.eventSource&&(e.log("EventSource calling close()."),e.eventSource.close(),e.eventSource=null,delete e.eventSource)},abort:function(e,t){a.ajaxAbort(e,t)}}}(e,window),function(e,t,n){var r,o,i=e.signalR,a=e.signalR.events,s=e.signalR.changeState,l=i.transports._logic,c=function(){var e=t.document.createElement("iframe");return e.setAttribute("style","position:absolute;top:0;left:0;width:0;height:0;visibility:hidden;"),e},u=(r=null,o=0,{prevent:function(){i._.ieVersion<=8&&(0===o&&(r=t.setInterval(function(){var e=c();t.document.body.appendChild(e),t.document.body.removeChild(e),e=null},1e3)),o++)},cancel:function(){1===o&&t.clearInterval(r),o>0&&o--}});i.transports.foreverFrame={name:"foreverFrame",supportsKeepAlive:function(){return!0},iframeClearThreshold:50,start:function(e,n,r){if(e.accessToken)r&&(e.log("Forever Frame does not support connections that require a Bearer token to connect, such as the Azure SignalR Service."),r());else{var o,i=this,a=l.foreverFrame.count+=1,s=c(),d=function(){e.log("Forever frame iframe finished loading and is no longer receiving messages."),r&&r()||i.reconnect(e)};t.EventSource?r&&(e.log("Forever Frame is not supported by SignalR on browsers with SSE support."),r()):(s.setAttribute("data-signalr-connection-id",e.id),u.prevent(),o=l.getUrl(e,this.name),o+="&frameId="+a,t.document.documentElement.appendChild(s),e.log("Binding to iframe's load event."),s.addEventListener?s.addEventListener("load",d,!1):s.attachEvent&&s.attachEvent("onload",d),s.src=o,l.foreverFrame.connections[a]=e,e.frame=s,e.frameId=a,n&&(e.onSuccess=function(){e.log("Iframe transport started."),n()}))}},reconnect:function(e){var n=this;l.isConnectedOrReconnecting(e)&&l.verifyLastActive(e)&&t.setTimeout(function(){if(l.verifyLastActive(e)&&e.frame&&l.ensureReconnectingState(e)){var t=e.frame,r=l.getUrl(e,n.name,!0)+"&frameId="+e.frameId;e.log("Updating iframe src to '"+r+"'."),t.src=r}},e.reconnectDelay)},lostConnection:function(e){this.reconnect(e)},send:function(e,t){l.ajaxSend(e,t)},receive:function(t,n){var r,o,a;if(t.json!==t._originalJson&&(n=t._originalJson.stringify(n)),a=t._parseResponse(n),l.processMessages(t,a,t.onSuccess),t.state===e.signalR.connectionState.connected&&(t.frameMessageCount=(t.frameMessageCount||0)+1,t.frameMessageCount>i.transports.foreverFrame.iframeClearThreshold&&(t.frameMessageCount=0,(r=t.frame.contentWindow||t.frame.contentDocument)&&r.document&&r.document.body)))for(o=r.document.body;o.firstChild;)o.removeChild(o.firstChild)},stop:function(e){var n=null;if(u.cancel(),e.frame){if(e.frame.stop)e.frame.stop();else try{(n=e.frame.contentWindow||e.frame.contentDocument).document&&n.document.execCommand&&n.document.execCommand("Stop")}catch(t){e.log("Error occurred when stopping foreverFrame transport. Message = "+t.message+".")}e.frame.parentNode===t.document.documentElement&&t.document.documentElement.removeChild(e.frame),delete l.foreverFrame.connections[e.frameId],e.frame=null,e.frameId=null,delete e.frame,delete e.frameId,delete e.onSuccess,delete e.frameMessageCount,e.log("Stopping forever frame.")}},abort:function(e,t){l.ajaxAbort(e,t)},getConnection:function(e){return l.foreverFrame.connections[e]},started:function(t){!0===s(t,i.connectionState.reconnecting,i.connectionState.connected)&&e(t).triggerHandler(a.onReconnect)}}}(e,window),function(e,t,n){var r=e.signalR,o=e.signalR.events,i=e.signalR.changeState,a=e.signalR.isDisconnecting,s=r.transports._logic;r.transports.longPolling={name:"longPolling",supportsKeepAlive:function(){return!1},reconnectDelay:3e3,start:function(n,l,c){var u=this,d=function(){d=e.noop,n.log("LongPolling connected."),l?l():n.log("WARNING! The client received an init message after reconnecting.")},p=function(e){return!!c(e)&&(n.log("LongPolling failed to connect."),!0)},g=n._,f=0,h=function(n){t.clearTimeout(g.reconnectTimeoutId),g.reconnectTimeoutId=null,!0===i(n,r.connectionState.reconnecting,r.connectionState.connected)&&(n.log("Raising the reconnect event"),e(n).triggerHandler(o.onReconnect))};n.pollXhr&&(n.log("Polling xhr requests already exists, aborting."),n.stop()),n.messageId=null,g.reconnectTimeoutId=null,g.pollTimeoutId=t.setTimeout(function(){!function i(l,c){var m=!(null===l.messageId),v=!c,y=s.getUrl(l,u.name,m,v,!0),b={};l.messageId&&(b.messageId=l.messageId),l.groupsToken&&(b.groupsToken=l.groupsToken),!0!==a(l)&&(n.log("Opening long polling request to '"+y+"'."),l.pollXhr=s.ajax(n,{xhrFields:{onprogress:function(){s.markLastMessage(n)}},url:y,type:"POST",contentType:r._.defaultContentType,data:b,timeout:n._.pollTimeout,headers:n.accessToken?{Authorization:"Bearer "+n.accessToken}:{},success:function(r){var o,c,u,m=0;n.log("Long poll complete."),f=0;try{o=n._parseResponse(r)}catch(e){return void s.handleParseFailure(l,r,e,p,l.pollXhr)}null!==g.reconnectTimeoutId&&h(l),o&&(c=s.maximizePersistentResponse(o)),s.processMessages(l,o,d),c&&"number"===e.type(c.LongPollDelay)&&(m=c.LongPollDelay),!0!==a(l)&&((u=c&&c.ShouldReconnect)&&!s.ensureReconnectingState(l)||(m>0?g.pollTimeoutId=t.setTimeout(function(){i(l,u)},m):i(l,u)))},error:function(a,c){var d=r._.transportError(r.resources.longPollFailed,n.transport,a,l.pollXhr);if(t.clearTimeout(g.reconnectTimeoutId),g.reconnectTimeoutId=null,"abort"!==c){if(!p(d)){if(f++,n.state!==r.connectionState.reconnecting&&(n.log("An error occurred using longPolling. Status = "+c+".  Response = "+a.responseText+"."),e(l).triggerHandler(o.onError,[d])),(n.state===r.connectionState.connected||n.state===r.connectionState.reconnecting)&&!s.verifyLastActive(n))return;if(!s.ensureReconnectingState(l))return;g.pollTimeoutId=t.setTimeout(function(){i(l,!0)},u.reconnectDelay)}}else n.log("Aborted xhr request.")}}),m&&!0===c&&(g.reconnectTimeoutId=t.setTimeout(function(){h(l)},Math.min(1e3*(Math.pow(2,f)-1),36e5))))}(n)},250)},lostConnection:function(e){e.pollXhr&&e.pollXhr.abort("lostConnection")},send:function(e,t){s.ajaxSend(e,t)},stop:function(e){t.clearTimeout(e._.pollTimeoutId),t.clearTimeout(e._.reconnectTimeoutId),delete e._.pollTimeoutId,delete e._.reconnectTimeoutId,e.pollXhr&&(e.pollXhr.abort(),e.pollXhr=null,delete e.pollXhr)},abort:function(e,t){s.ajaxAbort(e,t)}}}(e,window),function(e,t,n){var r=0,o=".hubProxy",i=e.signalR;function a(e){return e+o}function s(t){return e.isFunction(t)?null:"undefined"===e.type(t)?null:t}function l(e){for(var t in e)if(e.hasOwnProperty(t))return!0;return!1}function c(e,t){var n,r=e._.invocationCallbacks;for(var o in l(r)&&e.log("Clearing hub invocation callbacks with error: "+t+"."),e._.invocationCallbackId=0,delete e._.invocationCallbacks,e._.invocationCallbacks={},r)(n=r[o]).method.call(n.scope,{E:t})}function u(t){return e.isFunction(t)&&t.toString().slice(0,256).indexOf("// Call the client hub method")>=0}function d(e,t){return new d.fn.init(e,t)}function p(t,n){var r={qs:null,logging:!1,useDefaultPath:!0};return e.extend(r,n),t&&!r.useDefaultPath||(t=(t||"")+"/signalr"),new p.fn.init(t,r)}d.fn=d.prototype={init:function(e,t){this.state={},this.connection=e,this.hubName=t,this._={callbackMap:{}}},constructor:d,hasSubscriptions:function(){return l(this._.callbackMap)},on:function(t,n,o){var i=this,s=i._.callbackMap,l=!o&&u(n);(o=o||n)._signalRGuid||(o._signalRGuid=r++);var c,d=s[t=t.toLowerCase()];d||(d=[],s[t]=d);for(var p=0;p<d.length;p++)(d[p].guid===o._signalRGuid||l&&d[p].isFromOldGeneratedHubProxy)&&(c=d[p]);c||(c={guid:o._signalRGuid,eventHandlers:[],isFromOldGeneratedHubProxy:l},s[t].push(c));var g=function(e,t){n.apply(i,t)};return c.eventHandlers.push(g),e(i).bind(a(t),g),i},off:function(t,n,r){var o,i=this._.callbackMap,s=!r&&u(n);if(r=r||n,o=i[t=t.toLowerCase()])if(n){for(var l,c=0;c<o.length;c++)(o[c].guid===r._signalRGuid||s&&o[c].isFromOldGeneratedHubProxy)&&(c,l=o[c]);if(l){for(var d=0;d<l.eventHandlers.length;d++)e(this).unbind(a(t),l.eventHandlers[d]);o.splice(c,1),0===o.length&&delete i[t]}}else n||(e(this).unbind(a(t)),delete i[t]);return this},invoke:function(t){var n=this,r=n.connection,o=function(e,t,n){var r,o=e.length,i=[];for(r=0;r<o;r+=1)e.hasOwnProperty(r)&&(i[r]=t.call(n,e[r],r,e));return i}(e.makeArray(arguments).slice(1),s),a={H:n.hubName,M:t,A:o,I:r._.invocationCallbackId},l=e.Deferred();return r._.invocationCallbacks[r._.invocationCallbackId.toString()]={scope:n,method:function(o){var a,s,c=n._maximizeHubResponse(o);e.extend(n.state,c.State),c.Progress?l.notifyWith?l.notifyWith(n,[c.Progress.Data]):r._.progressjQueryVersionLogged||(r.log("A hub method invocation progress update was received but the version of jQuery in use ("+e.prototype.jquery+") does not support progress updates. Upgrade to jQuery 1.7+ to receive progress notifications."),r._.progressjQueryVersionLogged=!0):c.Error?(c.StackTrace&&r.log(c.Error+"\n"+c.StackTrace+"."),a=c.IsHubException?"HubException":"Exception",(s=i._.error(c.Error,a)).data=c.ErrorData,r.log(n.hubName+"."+t+" failed to execute. Error: "+s.message),l.rejectWith(n,[s])):(r.log("Invoked "+n.hubName+"."+t),l.resolveWith(n,[c.Result]))}},r._.invocationCallbackId+=1,e.isEmptyObject(n.state)||(a.S=n.state),r.log("Invoking "+n.hubName+"."+t),r.send(a),l.promise()},_maximizeHubResponse:function(e){return{State:e.S,Result:e.R,Progress:e.P?{Id:e.P.I,Data:e.P.D}:null,Id:e.I,IsHubException:e.H,Error:e.E,StackTrace:e.T,ErrorData:e.D}}},d.fn.init.prototype=d.fn,p.fn=p.prototype=e.connection(),p.fn.init=function(t,n){var r={qs:null,logging:!1,useDefaultPath:!0},o=this;e.extend(r,n),e.signalR.fn.init.call(o,t,r.qs,r.logging),o.proxies={},o._.invocationCallbackId=0,o._.invocationCallbacks={},o.received(function(t){var n,r,i,s,l,c;t&&(void 0!==t.P?(i=t.P.I.toString(),(s=o._.invocationCallbacks[i])&&s.method.call(s.scope,t)):void 0!==t.I?(i=t.I.toString(),(s=o._.invocationCallbacks[i])&&(o._.invocationCallbacks[i]=null,delete o._.invocationCallbacks[i],s.method.call(s.scope,t))):(n=this._maximizeClientHubInvocation(t),o.log("Triggering client hub event '"+n.Method+"' on hub '"+n.Hub+"'."),l=n.Hub.toLowerCase(),c=n.Method.toLowerCase(),r=this.proxies[l],e.extend(r.state,n.State),e(r).triggerHandler(a(c),[n.Args])))}),o.error(function(e,t){var n,r;t&&(n=t.I,(r=o._.invocationCallbacks[n])&&(o._.invocationCallbacks[n]=null,delete o._.invocationCallbacks[n],r.method.call(r.scope,{E:e})))}),o.reconnecting(function(){o.transport&&"webSockets"===o.transport.name&&c(o,"Connection started reconnecting before invocation result was received.")}),o.disconnected(function(){c(o,"Connection was disconnected before invocation result was received.")})},p.fn._maximizeClientHubInvocation=function(e){return{Hub:e.H,Method:e.M,Args:e.A,State:e.S}},p.fn._registerSubscribedHubs=function(){var t=this;t._subscribedToHubs||(t._subscribedToHubs=!0,t.starting(function(){var n=[];e.each(t.proxies,function(e){this.hasSubscriptions()&&(n.push({name:e}),t.log("Client subscribed to hub '"+e+"'."))}),0===n.length&&t.log("No hubs have been subscribed to.  The client will not receive data from hubs.  To fix, declare at least one client side function prior to connection start for each hub you wish to subscribe to."),t.data=t.json.stringify(n)}))},p.fn.createHubProxy=function(e){e=e.toLowerCase();var t=this.proxies[e];return t||(t=d(this,e),this.proxies[e]=t),this._registerSubscribedHubs(),t},p.fn.init.prototype=p.fn,e.hubConnection=p}(e,window),e.signalR.version="2.4.3"}).call(this,n(1))},function(e,t,n){"use strict";(function(e){
/*! RateIt | v1.0.22 / 05/27/2014 | https://rateit.codeplex.com/license
    http://rateit.codeplex.com | Twitter: @gjunge
*/
!function(e){function t(e){var t=e.originalEvent.changedTouches[0],n="";switch(e.type){case"touchmove":n="mousemove";break;case"touchend":n="mouseup";break;default:return}var r=document.createEvent("MouseEvent");r.initMouseEvent(n,!0,!0,window,1,t.screenX,t.screenY,t.clientX,t.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(r),e.preventDefault()}e.rateit={aria:{resetLabel:"reset rating",ratingLabel:"rating"}},e.fn.rateit=function(n,r){var o=1,i={},a="init",s=function(e){return e.charAt(0).toUpperCase()+e.substr(1)};if(0===this.length)return this;var l=e.type(n);if("object"==l||null==n)i=e.extend({},e.fn.rateit.defaults,n);else{if("string"==l&&"reset"!==n&&void 0===r)return this.data("rateit"+s(n));"string"==l&&(a="setvalue")}return this.each(function(){var l=e(this),c=function(e,t){if(null!=t){var n="aria-value"+("value"==e?"now":e),r=l.find(".rateit-range");null!=r.attr(n)&&r.attr(n,t)}return arguments[0]="rateit"+s(e),l.data.apply(l,arguments)};if("reset"==n){var u=c("init");for(var d in u)l.data(d,u[d]);if(c("backingfld"))(g=e(c("backingfld"))).val(c("value")),g.trigger("change"),g[0].min&&(g[0].min=c("min")),g[0].max&&(g[0].max=c("max")),g[0].step&&(g[0].step=c("step"));l.trigger("reset")}l.hasClass("rateit")||l.addClass("rateit");var p="rtl"!=l.css("direction");if("setvalue"==a){if(!c("init"))throw"Can't set value before init";if("readonly"!=n||1!=r||c("readonly")||(l.find(".rateit-range").unbind(),c("wired",!1)),"value"==n&&(r=null==r?c("min"):Math.max(c("min"),Math.min(c("max"),r))),c("backingfld")){var g=e(c("backingfld"));"value"==n&&g.val(r),"min"==n&&g[0].min&&(g[0].min=r),"max"==n&&g[0].max&&(g[0].max=r),"step"==n&&g[0].step&&(g[0].step=r)}c(n,r)}if(!c("init")){if(c("min",isNaN(c("min"))?i.min:c("min")),c("max",isNaN(c("max"))?i.max:c("max")),c("step",c("step")||i.step),c("readonly",void 0!==c("readonly")?c("readonly"):i.readonly),c("resetable",void 0!==c("resetable")?c("resetable"):i.resetable),c("backingfld",c("backingfld")||i.backingfld),c("starwidth",c("starwidth")||i.starwidth),c("starheight",c("starheight")||i.starheight),c("value",Math.max(c("min"),Math.min(c("max"),isNaN(c("value"))?isNaN(i.value)?i.min:i.value:c("value")))),c("ispreset",void 0!==c("ispreset")?c("ispreset"):i.ispreset),c("backingfld"))if(((g=e(c("backingfld")).hide()).attr("disabled")||g.attr("readonly"))&&c("readonly",!0),"INPUT"==g[0].nodeName&&("range"!=g[0].type&&"text"!=g[0].type||(c("min",parseInt(g.attr("min"))||c("min")),c("max",parseInt(g.attr("max"))||c("max")),c("step",parseInt(g.attr("step"))||c("step")))),"SELECT"==g[0].nodeName&&g[0].options.length>1){c("min",isNaN(c("min"))?Number(g[0].options[0].value):c("min")),c("max",Number(g[0].options[g[0].length-1].value)),c("step",Number(g[0].options[1].value)-Number(g[0].options[0].value));var f=g.find("option[selected]");1==f.length&&c("value",f.val())}else c("value",g.val());var h="DIV"==l[0].nodeName?"div":"span";o++;var m='<button id="rateit-reset-{{index}}" type="button" data-role="none" class="rateit-reset" aria-label="'+e.rateit.aria.resetLabel+'" aria-controls="rateit-range-{{index}}"></button><{{element}} id="rateit-range-{{index}}" class="rateit-range" tabindex="0" role="slider" aria-label="'+e.rateit.aria.ratingLabel+'" aria-owns="rateit-reset-{{index}}" aria-valuemin="'+c("min")+'" aria-valuemax="'+c("max")+'" aria-valuenow="'+c("value")+'"><{{element}} class="rateit-selected" style="height:'+c("starheight")+'px"></{{element}}><{{element}} class="rateit-hover" style="height:'+c("starheight")+'px"></{{element}}></{{element}}>';l.append(m.replace(/{{index}}/gi,o).replace(/{{element}}/gi,h)),p||(l.find(".rateit-reset").css("float","right"),l.find(".rateit-selected").addClass("rateit-selected-rtl"),l.find(".rateit-hover").addClass("rateit-hover-rtl")),c("init",JSON.parse(JSON.stringify(l.data())))}l.find(".rateit-selected, .rateit-hover").height(c("starheight"));var v=l.find(".rateit-range");v.width(c("starwidth")*(c("max")-c("min"))).height(c("starheight"));var y="rateit-preset"+(p?"":"-rtl");if(c("ispreset")?l.find(".rateit-selected").addClass(y):l.find(".rateit-selected").removeClass(y),null!=c("value")){var b=(c("value")-c("min"))*c("starwidth");l.find(".rateit-selected").width(b)}var E=l.find(".rateit-reset");!0!==E.data("wired")&&E.bind("click",function(t){t.preventDefault(),E.blur();var n=e.Event("beforereset");if(l.trigger(n),n.isDefaultPrevented())return!1;l.rateit("value",null),l.trigger("reset")}).data("wired",!0);var T=function(t,n){var r=(n.changedTouches?n.changedTouches[0].pageX:n.pageX)-e(t).offset().left;return p||(r=v.width()-r),r>v.width()&&(r=v.width()),r<0&&(r=0),b=Math.ceil(r/c("starwidth")*(1/c("step")))},C=function(t){var n=e.Event("beforerated");return l.trigger(n,[t]),!n.isDefaultPrevented()&&(c("value",t),c("backingfld")&&e(c("backingfld")).val(t).trigger("change"),c("ispreset")&&(v.find(".rateit-selected").removeClass(y),c("ispreset",!1)),v.find(".rateit-hover").hide(),v.find(".rateit-selected").width(t*c("starwidth")-c("min")*c("starwidth")).show(),l.trigger("hover",[null]).trigger("over",[null]).trigger("rated",[t]),!0)};c("readonly")?E.hide():(c("resetable")||E.hide(),c("wired")||(v.bind("touchmove touchend",t),v.mousemove(function(e){!function(e){var t=e*c("starwidth")*c("step"),n=v.find(".rateit-hover");if(n.data("width")!=t){v.find(".rateit-selected").hide(),n.width(t).show().data("width",t);var r=[e*c("step")+c("min")];l.trigger("hover",r).trigger("over",r)}}(T(this,e))}),v.mouseleave(function(e){v.find(".rateit-hover").hide().width(0).data("width",""),l.trigger("hover",[null]).trigger("over",[null]),v.find(".rateit-selected").show()}),v.mouseup(function(e){var t=T(this,e)*c("step")+c("min");C(t),v.blur()}),v.keyup(function(e){38!=e.which&&e.which!=(p?39:37)||C(Math.min(c("value")+c("step"),c("max"))),40!=e.which&&e.which!=(p?37:39)||C(Math.max(c("value")-c("step"),c("min")))}),c("wired",!0)),c("resetable")&&E.show()),v.attr("aria-readonly",c("readonly"))})},e.fn.rateit.defaults={min:0,max:5,step:.5,starwidth:16,starheight:16,readonly:!1,resetable:!0,ispreset:!1},e(function(){e("div.rateit, span.rateit").rateit()})}(e)}).call(this,n(1))},function(e,t,n){"use strict";Velaro.Template={Survey:n(46),SurveyQuestion:n(47),InlineInvite:n(48),ProactiveInlineInvite:n(49),InlineInvitePreview:n(50),KnowledgeBaseSearch:n(51),Conversation:n(52),ChatHeader:n(53),IntroductionHeader:n(54),QueueHeader:n(55),AgentLine:n(56),SystemLine:n(57),VisitorLine:n(58),KnowledgeBaseLine:n(59),Text:n(60),Footer:n(61),Call:n(62),CallWaiting:n(63)}},function(e,t){e.exports='<div class="velaro-survey">\r\n  <div class="velaro-survey-header widget-area" data-widget-area="SurveyArea">\r\n    {HeaderText}\r\n  </div>\r\n  <div class="velaro-survey-questions"></div>\r\n  <div class="velaro-survey-submit">\r\n    <button\r\n      class="survey-submit widget-area"\r\n      data-widget-area="SurveyArea"\r\n      type="submit"\r\n    >\r\n      {Submit}\r\n    </button>\r\n  </div>\r\n</div>\r\n'},function(e,t){e.exports='<div class="velaro-survey-question">\r\n  <div class="velaro-survey-questionnumber"></div>\r\n  <div class="velaro-survey-questiontext"></div>\r\n  <div class="velaro-survey-choices"></div>\r\n</div>\r\n'},function(e,t){e.exports='<div\r\n  id="inlineInvite"\r\n  style="width: inherit; height: auto; max-height: 100%; overflow:auto; bottom: 0; right: 3px; position: fixed; z-Index: 2147483647 !important; cursor:pointer;"\r\n>\r\n  <span\r\n    id="close-inline-chat-invite"\r\n    style="font-size:25px; position: absolute;right: 15px;color:#fff"\r\n    >&times;</span\r\n  >\r\n  <img id="inlineInviteImg" src="{InlineInviteImage}" style="width:100%" />\r\n</div>\r\n'},function(e,t){e.exports='<div class="chatheader">\r\n  <div class="operator-info">\r\n    <div>\r\n      <img\r\n        src="{ChatImage}"\r\n        class="avatar widget-area"\r\n        data-widget-area="Operator"\r\n      />\r\n      <div style="float:left">\r\n        <div class="widget-area" data-widget-area="Operator">\r\n          <div class="operator-name">{AgentName}</div>\r\n        </div>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</div>\r\n<div class="chatbody">\r\n  <div id="widget-area-01" class="widget-area" data-widget-area="ChatWindow">\r\n    <div id="chatwindow-11" class="body-inner">\r\n      <div id="view-chat" class="view">\r\n        <style>\r\n          @media print {\r\n            .noprint {\r\n              display: none !important;\r\n            }\r\n          }\r\n        </style>\r\n        <p class="operator">\r\n          <span class="meta">\r\n            <span id="author_operator" class="author_operator chatwindow-08"\r\n              >{AgentName}</span\r\n            >\r\n          </span>\r\n          <span class="msg-text chatwindow-10" id="lbl-welcome">{Message}</span>\r\n        </p>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</div>\r\n<div id="accept-inline-invite" class="velaro-survey-submit">\r\n  <button\r\n    class="survey-submit widget-area"\r\n    data-widget-area="SurveyArea"\r\n    type="submit"\r\n  >\r\n    Start Chat\r\n  </button>\r\n</div>\r\n'},function(e,t){e.exports='<div\r\n  id="inlineInvite"\r\n  style="width: inherit; height: auto; max-height: 100%; overflow:auto; bottom: 0; right: 3px; z-Index: 2147483647 !important; cursor:pointer;"\r\n>\r\n  <span\r\n    id="close-inline-chat-invite"\r\n    style="font-size:25px; position: absolute;right: 15px;color:#fff"\r\n    >&times;</span\r\n  >\r\n  <img id="inlineInviteImg" src="{InlineInviteImage}" style="width:100%" />\r\n</div>\r\n'},function(e,t){e.exports='<div class="kb-header widget-area" data-widget-area="KBHeader">\r\n  <span class="kb-header-text">{KBHeaderText}</span>\r\n</div>\r\n<div class="kb-chatbody">\r\n  <div id="widget-area-01">\r\n    <div id="chatwindow-11" class="body-inner">\r\n      <div id="view-chat" class="view">\r\n        <style>\r\n          @media print {\r\n            .noprint {\r\n              display: none !important;\r\n            }\r\n          }\r\n        </style>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</div>\r\n<div class="velaro-kb-submit">\r\n  <button\r\n    class="kb-submit widget-area"\r\n    data-widget-area="KBButton"\r\n    type="submit"\r\n  >\r\n    {KBButtonText}\r\n  </button>\r\n</div>\r\n'},function(e,t){e.exports='<div class="chatbody">\r\n  <div id="widget-area-01" class="widget-area" data-widget-area="ChatWindow">\r\n    <div id="chatwindow-11" class="body-inner">\r\n      <div id="view-chat" class="view">\r\n        <style>\r\n          @media print {\r\n            .noprint {\r\n              display: none !important;\r\n            }\r\n          }\r\n        </style>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</div>\r\n<div\r\n  id="widget-area-08"\r\n  class="widget-area chatfooter"\r\n  data-widget-area="TextArea"\r\n>\r\n  <div id="textarea-wrapper" class="textarea-wrapper">\r\n    <div class="textarea-inner" id="textarea-inner">\r\n      <textarea\r\n        maxlength="3000"\r\n        class="textarea"\r\n        id="velaro-chat-text"\r\n        name="message"\r\n      ></textarea>\r\n      <button\r\n        type="submit"\r\n        id="velaro-send-text"\r\n        name="submit"\r\n        class="submit"\r\n        value="Submit"\r\n      >\r\n        <img src="{UrlContentDelivery}Content/Images/icon_submit.png" />\r\n      </button>\r\n    </div>\r\n  </div>\r\n</div>\r\n<div id="widget-area-10" class="widget-area" data-widget-area="TypingIndicator">\r\n  <div id="chatwindow-16" class="typing-indicator">\r\n    <span class="typing-author" id="lbl-typing">{AgentTyping}</span>\r\n  </div>\r\n</div>\r\n'},function(e,t){e.exports='<div class="chatheader">\r\n  <div class="operator-info">\r\n    <div class="operator-info-inner">\r\n      <img\r\n        src="{ChatImage}"\r\n        class="avatar widget-area"\r\n        data-widget-area="Operator"\r\n      />\r\n      <div class="operator-details" style="float: left">\r\n        <div class="widget-area operator-title" data-widget-area="Operator">\r\n          <div class="operator-name">{AgentName}</div>\r\n          <div class="operator-role">{AgentRole}</div>\r\n        </div>\r\n        <div\r\n          class="operator-role widget-area header-actions"\r\n          data-widget-area="ChatOptions"\r\n        >\r\n          <a href="#" id="print-chat" title="Print"\r\n            ><i class="toolbar-icon fa-velaro fa-velaro-print"></i\r\n          ></a>\r\n          <a href="#" id="email-chat" title="Email"\r\n            ><i class="toolbar-icon fa-velaro fa-velaro-envelope-o"></i\r\n          ></a>\r\n          <a href="#" id="upload-chat" title="Upload File"\r\n            ><i class="toolbar-icon fa-velaro fa-velaro-upload"></i\r\n          ></a>\r\n        </div>\r\n      </div>\r\n    </div>\r\n  </div>\r\n  <div class="widget-area header-rating" data-widget-area="Rating">\r\n    <span id="velaro-rating-text">{RatingText}</span>\r\n    <div\r\n      class="rateit velarostars"\r\n      data-rateit-starwidth="16"\r\n      data-rateit-resetable="false"\r\n      data-rateit-starheight="16"\r\n      data-rateit-step="1"\r\n    ></div>\r\n  </div>\r\n</div>\r\n'},function(e,t){e.exports='<div class="introductionheader">\r\n  <div class="operator-info">\r\n    <div class="widget-area">\r\n      <img src="{IntroductionImage}" class="avatar" />\r\n      <span class="introduction-text">{IntroductionText}</span>\r\n    </div>\r\n  </div>\r\n</div>\r\n'},function(e,t){e.exports='<div class="queueheader">\r\n  <div class="operator-info">\r\n    <div id="quequeInfo" class="widget-area" data-widget-area="QueueArea">\r\n      <img src="{QueueImage}" class="avatar" />\r\n      <span class="connecting-text">{ConnectingText}</span>\r\n      <span class="position-text">{PositionText}</span>\r\n      <br />\r\n      <span class="wait-text">{EstimatedWaitTimeText}</span>\r\n      <br />\r\n      <span class="time-text">{TimeInQueue}</span>\r\n    </div>\r\n  </div>\r\n</div>\r\n'},function(e,t){e.exports='<div class="operator">\r\n  <div class="meta">\r\n    <span id="{timestamp_ID}" class="time_operator chatwindow-08"\r\n      >{Timestamp}</span\r\n    >\r\n    <span id="author_operator" class="author_operator chatwindow-08"\r\n      >{DisplayName}</span\r\n    >\r\n  </div>\r\n  <div class="msg-text chatwindow-10" id="lbl-welcome">{Text}</div>\r\n  <span id="line-rating" class="uploaded noprint">\r\n    <span id="{thumbsup_contentID}" class="thumbsup-button">\r\n      <img\r\n        style="cursor: pointer;"\r\n        class="fade"\r\n        src="{UrlContentDelivery}Content/Images/icon_thumbsup.png"\r\n      />\r\n    </span>\r\n    <span id="{thumbsdown_contentID}" class="thumbsdown-button">\r\n      <img\r\n        style="cursor: pointer;"\r\n        class="fade"\r\n        src="{UrlContentDelivery}Content/Images/icon_thumbsdown.png"\r\n      />\r\n    </span>\r\n  </span>\r\n</div>\r\n'},function(e,t){e.exports='\x3c!-- the `client` class only exists on this template for backward compatibility purposes. --\x3e\r\n\r\n<div class="client system">\r\n  <div class="meta">\r\n    <span id="{timestamp_ID}" class="velaro_time_client chatwindow-09"\r\n      >{Timestamp}</span\r\n    >\r\n    <span id="author_client" class="author_client chatwindow-09"\r\n      >{DisplayName}</span\r\n    >\r\n  </div>\r\n  <div class="msg-text chatwindow-10">{Text}</div>\r\n</div>\r\n'},function(e,t){e.exports='<div class="client">\r\n  <div class="meta">\r\n    <span id="{timestamp_ID}" class="velaro_time_client chatwindow-09"\r\n      >{Timestamp}</span\r\n    >\r\n    <span id="author_client" class="author_client chatwindow-09"\r\n      >{DisplayName}</span\r\n    >\r\n  </div>\r\n  <div class="msg-text chatwindow-10">{Text}</div>\r\n</div>\r\n'},function(e,t){e.exports='<p class="operator">\r\n  <a class="kb-link" href="{KB_URL}" target="_blank">{KB_Name}</a>\r\n</p>\r\n'},function(e,t){e.exports='<div class="velaro-text"></div>\r\n'},function(e,t){e.exports='<div id="velaro-social-links" class="widget-area" data-widget-area="Social">\r\n  <a id="velaro-facebook-link" href="{FacebookLink}" target="_blank"\r\n    ><img src="{UrlContentDelivery}Content/Images/facebook.png"\r\n  /></a>\r\n  <a id="velaro-twitter-link" href="{TwitterLink}" target="_blank"\r\n    ><img src="{UrlContentDelivery}Content/Images/twitter.png"\r\n  /></a>\r\n  <a id="velaro-google-link" href="{GoogleLink}" target="_blank"\r\n    ><img src="{UrlContentDelivery}Content/Images/google.png"\r\n  /></a>\r\n  <a id="velaro-linkedin-link" href="{LinkedInLink}" target="_blank"\r\n    ><img src="{UrlContentDelivery}Content/Images/linkedin.png"\r\n  /></a>\r\n</div>\r\n<div id="powered-by-velaro">\r\n  Powered by\r\n  <a id="powered-by-velaro-link" href="http://www.velaro.com" target="_blank"\r\n    >Velaro Live Chat</a\r\n  >\r\n</div>\r\n'},function(e,t){e.exports='<div id="velaro-callbody">\r\n  <div class="operator-info widget-area" data-widget-area="Operator">\r\n    <div class="operator-info-inner">\r\n      <img src="{ChatImage}" class="avatar" />\r\n      <div class="operator-details" style="float:left">\r\n        <div class="operator-title">\r\n          <div class="operator-name">{AgentName}</div>\r\n          <div class="operator-role">{AgentRole}</div>\r\n        </div>\r\n      </div>\r\n    </div>\r\n    <div class="clearfix" />\r\n  </div>\r\n  <div class="clearfix" />\r\n  <div class="widget-area" data-widget-area="Call">\r\n    <div id="velaro-call-oncallfor">\r\n      {OnCallForText}\r\n    </div>\r\n    <button id="velaro-end-call-button">{EndCallText}</button>\r\n    <div class="clearfix" />\r\n  </div>\r\n  <div class="clearfix" />\r\n</div>\r\n'},function(e,t){e.exports='<div id="velaro-callwaitingbody">\r\n  <div class="clearfix" />\r\n  <div class="widget-area" data-widget-area="CallWaiting">\r\n    <div id="velaro-call-waiting">\r\n      {CallWaitingText}\r\n    </div>\r\n    <button id="velaro-end-call-waiting-button">{EndCallWaitingText}</button>\r\n    <div class="clearfix" />\r\n  </div>\r\n  <div class="clearfix" />\r\n</div>\r\n'},function(e,t,n){"use strict";Velaro.DefaultPopoutTemplate={PopOutWindowWidth:"365px",PopOutWindowHeight:"455px",KnowledgeBaseLine:n(65),KnowledgeBaseSearch:n(66),Container:n(67),Conversation:n(68),ChatHeader:n(69),IntroductionHeader:n(70),QueueHeader:n(71),AgentLine:n(72),VisitorLine:n(73),Text:n(74),Footer:n(75),Call:n(76),CallWaiting:n(77),Survey:n(78),SurveyQuestion:n(79)}},function(e,t){e.exports='<p class="operator">\r\n  <a class="kb-link" href="{KB_URL}" target="_blank">{KB_Name}</a>\r\n</p>\r\n'},function(e,t){e.exports='<div class="kb-header widget-area" data-widget-area="KBHeader">\r\n  <span class="kb-header-text">{KBHeaderText}</span>\r\n</div>\r\n<div class="kb-chatbody">\r\n  <div id="widget-area-01">\r\n    <div id="chatwindow-11" class="body-inner">\r\n      <div id="view-chat" class="view">\r\n        <style>\r\n          @media print {\r\n            .noprint {\r\n              display: none !important;\r\n            }\r\n          }\r\n        </style>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</div>\r\n<div class="velaro-kb-submit">\r\n  <button\r\n    class="kb-submit widget-area"\r\n    data-widget-area="KBButton"\r\n    type="submit"\r\n  >\r\n    {KBButtonText}\r\n  </button>\r\n</div>\r\n'},function(e,t){e.exports='<div id="velaro-container-template">\r\n  <div id="velaro-header" />\r\n  <div id="velarochat">\r\n    <div id="velaro-content" class="chatwrapper" />\r\n  </div>\r\n  <div id="velaro-footer" />\r\n</div>\r\n'},function(e,t){e.exports='<div class="chatbody">\r\n  <div id="widget-area-07" class="widget-area" data-widget-area="ChatWindow">\r\n    <div id="chatwindow-11" class="body-inner">\r\n      <div id="view-chat" class="view" />\r\n    </div>\r\n  </div>\r\n</div>\r\n<div\r\n  id="widget-area-08"\r\n  class="widget-area chatfooter"\r\n  data-widget-area="TextArea"\r\n>\r\n  <div id="textarea-wrapper" class="textarea-wrapper">\r\n    <div class="textarea-inner" id="textarea-inner">\r\n      <textarea\r\n        maxlength="3000"\r\n        class="textarea"\r\n        id="velaro-chat-text"\r\n        name="message"\r\n      ></textarea>\r\n      <button\r\n        type="submit"\r\n        id="velaro-send-text"\r\n        name="submit"\r\n        class="submit"\r\n        value="Submit"\r\n      >\r\n        <img src="{UrlContentDelivery}Content/Images/icon_submit.png" />\r\n      </button>\r\n    </div>\r\n  </div>\r\n</div>\r\n<div id="widget-area-10" class="widget-area" data-widget-area="TypingIndicator">\r\n  <div id="chatwindow-16" class="typing-indicator">\r\n    <span class="typing-author" id="lbl-typing">{AgentTyping}</span>\r\n  </div>\r\n</div>\r\n'},function(e,t){e.exports='<div class="chatheader">\r\n  <div class="operator-info">\r\n    <div>\r\n      <img\r\n        src="{ChatImage}"\r\n        class="avatar widget-area"\r\n        data-widget-area="Operator"\r\n      />\r\n      <div style="float:left">\r\n        <div class="widget-area" data-widget-area="Operator">\r\n          <div class="operator-name">{AgentName}</div>\r\n          <div class="operator-role">{AgentRole}</div>\r\n        </div>\r\n        <div class="widget-area" data-widget-area="ChatOptions">\r\n          <a id="print-chat" title="Print">\r\n            <i class="toolbar-icon fa-velaro fa-velaro-print"></i>\r\n          </a>\r\n          <a id="email-chat" title="Email">\r\n            <i class="toolbar-icon fa-velaro fa-velaro-envelope-o"></i>\r\n          </a>\r\n          <a id="upload-chat" title="Upload File">\r\n            <i class="toolbar-icon fa-velaro fa-velaro-upload"></i>\r\n          </a>\r\n          <a id="end-chat" title="End Chat">\r\n            <i class="toolbar-icon fa-velaro fa-velaro-times"></i>\r\n          </a>\r\n        </div>\r\n      </div>\r\n    </div>\r\n  </div>\r\n  <div class="widget-area header-rating" data-widget-area="Rating">\r\n    <span id="velaro-rating-text">{RatingText}</span>\r\n    <div\r\n      class="rateit velarostars"\r\n      data-rateit-starwidth="16"\r\n      data-rateit-resetable="false"\r\n      data-rateit-starheight="16"\r\n    ></div>\r\n  </div>\r\n</div>\r\n'},function(e,t){e.exports='<div class="introductionheader">\r\n  <div class="operator-info">\r\n    <div class="widget-area">\r\n      <img src="{IntroductionImage}" class="avatar" />\r\n      <span class="introduction-text">{IntroductionText}</span>\r\n    </div>\r\n  </div>\r\n</div>\r\n'},function(e,t){e.exports='<div class="queueheader">\r\n  <div class="operator-info">\r\n    <div id="quequeInfo" class="widget-area">\r\n      <img src="{QueueImage}" class="avatar" />\r\n      <span class="connecting-text">{ConnectingText}</span>\r\n      <span class="position-text">{PositionText}</span>\r\n      <br />\r\n      <span class="time-text">{TimeInQueue}</span>\r\n    </div>\r\n  </div>\r\n</div>\r\n'},function(e,t){e.exports='<div class="operator">\r\n  <div class="meta">\r\n    <span class="time_operator chatwindow-08">{Timestamp}</span>\r\n    <span id="author_operator" class="author_operator chatwindow-08"\r\n      >{DisplayName}</span\r\n    >\r\n  </div>\r\n  <div class="msg-text chatwindow-10" id="lbl-welcome">{Text}</div>\r\n  <span id="line-rating" class="uploaded noprint">\r\n    <span id="{thumbsup_contentID}" class="thumbs-up">\r\n      <img src="{UrlContentDelivery}Content/Images/icon_thumbsup.png" />\r\n    </span>\r\n    <span id="{thumbsdown_contentID}" class="thumbs-down">\r\n      <img src="{UrlContentDelivery}Content/Images/icon_thumbsdown.png" />\r\n    </span>\r\n  </span>\r\n</div>\r\n'},function(e,t){e.exports='<div class="client">\r\n  <div class="meta">\r\n    <span class="time_client chatwindow-09">{Timestamp}</span>\r\n    <span id="author_client" class="author_client chatwindow-09"\r\n      >{DisplayName}</span\r\n    >\r\n  </div>\r\n  <div class="msg-text chatwindow-10">{Text}</div>\r\n</div>\r\n'},function(e,t){e.exports='<div class="velaro-text"></div>\r\n'},function(e,t){e.exports='<div id="velaro-social-links" class="widget-area" data-widget-area="Social">\r\n  <a id="velaro-facebook-link" href="{FacebookLink}" target="_blank">\r\n    <img src="{UrlContentDelivery}Content/Images/facebook.png" />\r\n  </a>\r\n  <a id="velaro-twitter-link" href="{TwitterLink}" target="_blank">\r\n    <img src="{UrlContentDelivery}Content/Images/twitter.png" />\r\n  </a>\r\n  <a id="velaro-google-link" href="{GoogleLink}" target="_blank">\r\n    <img src="{UrlContentDelivery}Content/Images/google.png" />\r\n  </a>\r\n  <a id="velaro-linkedin-link" href="{LinkedInLink}" target="_blank">\r\n    <img src="{UrlContentDelivery}Content/Images/linkedin.png" />\r\n  </a>\r\n</div>\r\n'},function(e,t){e.exports='<div id="velaro-callbody">\r\n  <div class="operator-info widget-area" data-widget-area="Operator">\r\n    <div class="operator-info-inner">\r\n      <img src="{ChatImage}" class="avatar" />\r\n      <div class="operator-details" style="float:left">\r\n        <div class="operator-title">\r\n          <div class="operator-name">{AgentName}</div>\r\n          <div class="operator-role">{AgentRole}</div>\r\n        </div>\r\n      </div>\r\n    </div>\r\n    <div class="clearfix" />\r\n  </div>\r\n  <div class="clearfix" />\r\n  <div class="widget-area" data-widget-area="Call">\r\n    <div id="velaro-call-oncallfor">\r\n      {OnCallForText}\r\n    </div>\r\n    <button id="velaro-end-call-button">{EndCallText}</button>\r\n    <div class="clearfix" />\r\n  </div>\r\n  <div class="clearfix" />\r\n</div>\r\n'},function(e,t){e.exports='<div id="velaro-callwaitingbody">\r\n  <div class="clearfix" />\r\n  <div class="widget-area" data-widget-area="CallWaiting">\r\n    <div id="velaro-call-waiting">\r\n      {CallWaitingText}\r\n    </div>\r\n    <button id="velaro-end-call-waiting-button">{EndCallWaitingText}</button>\r\n    <div class="clearfix" />\r\n  </div>\r\n  <div class="clearfix" />\r\n</div>\r\n'},function(e,t){e.exports='<div class="velaro-survey">\r\n  <div class="velaro-survey-header">{HeaderText}</div>\r\n  <div class="velaro-survey-questions"></div>\r\n  <div class="velaro-survey-submit">\r\n    <button type="button">{Submit}</button>\r\n  </div>\r\n</div>\r\n'},function(e,t){e.exports='<div class="velaro-survey-question">\r\n  <div class="velaro-survey-questionnumber"></div>\r\n  <div class="velaro-survey-questiontext"></div>\r\n  <div class="velaro-survey-choices"></div>\r\n</div>\r\n'},function(e,t,n){"use strict";!function(){function e(t,n){var r=e.OPTION_NAME,o=e.OPTION_VALUE,i=e.DEFAULT_VALUE,a=e.EVENT,s=document.getElementById(t),l=[],c=[],u="",d="",p="",g="",f=100,h=1,m={},v=this,y=function(){if(1==l.length){var e=y,t=l[0],n=0==v.getOptionValue(r.SPACE)?100-v.getOptionValue(r.PERCENT):0;v.setOptionValue(r.SPACE,n,t[r.ITEM_ID]),_initialModeTimer=setTimeout(function(){e()},700)}},b=function(e){if(e&&e==p)return g;if(1!=l.length)if(0==l.length)v.createItem({itemID:e});else if(1<l.length){if(!e)return 0;for(var t=0,n=l.length;t<n;t++)if(l[t][r.ITEM_ID]==e)return p=e,g=t}return 0},E=function(e,t){if(0>e)return 0;var n=l[t],i=0,c=0;switch(n[r.POSITION]){case o.POSITION.RELATIVE:c=0;for(var u=l.length;c<u;c++)c!=t&&l[c][r.POSITION]==o.POSITION.RELATIVE&&(i+=l[c][r.PERCENT]);e>=(c=100-i)&&setTimeout(function(){s.dispatchEvent(new CustomEvent(a.COMPLETED,{detail:{itemID:n.itemID,me:v}}))},500);break;case o.POSITION.ABSOLUTE:c=100-n[r.SPACE]}return e<=c?e:c};this.getElement=function(){return s},this.getWidth=function(){return u},this.setWidth=function(e){return u=s.style.width=e,!0},this.getHeight=function(){return d},this.setHeight=function(e){return d=s.style.height=e,!0},this.createItem=function(e){if("string"==typeof e){var t=e;(e={})[r.ITEM_ID]=t}e=e||{};var n=s.appendChild(document.createElement("div"));t=e[r.ITEM_ID]=e[r.ITEM_ID]||"";if(0<l.length&&""==t)return!1;switch(e[r.TYPE]=e[r.TYPE]||i.TYPE,e[r.PERCENT]=e[r.PERCENT]||i.PERCENT,e[r.ALIGN]=e[r.ALIGN]||i.ALIGN,e[r.SPACE]?e[r.POSITION]=o.POSITION.ABSOLUTE:(e[r.SPACE]=i.SPACE,e[r.POSITION]=e[r.POSITION]||o.POSITION.RELATIVE),e[r.TYPE]){case o.TYPE.BAR:e[r.COLOR_ID]=e[r.COLOR_ID]||i.COLOR_ID,e[r.OPACITY]=e[r.OPACITY]||i.OPACITY;break;case o.TYPE.LINE:e[r.COLOR_ID]=e[r.COLOR_ID]||i.LINE_COLOR_ID,e[r.OPACITY]=e[r.OPACITY]||i.LINE_OPACITY,e[r.POSITION]=o.POSITION.ABSOLUTE,e[r.SPACE]=e[r.PERCENT]}return l.push(e),c.push(n),n.style.opacity=0,n.classList.add("item-"+e[r.TYPE]),this.setOptionValue(r.COLOR_ID,e[r.COLOR_ID],t),this.setOptionValue(r.ALIGN,e[r.ALIGN],t),this.setOptionValue(r.POSITION,e[r.POSITION],t),this.setOptionValue(r.PERCENT,e[r.PERCENT],t),!0},this.removeItem=function(e){e=b(e);var t=c[e];return null!=t&&(t.parentNode.removeChild(t),l.splice(e,1),c.splice(e,1),!0)},this.removeAll=function(){return!!s&&(s.innerHTML="",l=[],c=[],!0)},this.getMaxValue=function(){return f},this.setMaxValue=function(e){return f!=e&&e&&(h=100/e,f=e),h},this.getExValue=function(e){return m[e||"first"]||0},this.getPercentByValue=function(e,t,n){return n&&n!=this.getMaxValue()&&this.setMaxValue(n),0>e&&(e=0),e>this.getMaxValue()&&(e=this.getMaxValue()),m[t||"first"]=e,e=n?e*this.getMaxValue(n):e*h,parseInt(e)},this.getOptionValue=function(e,t){var n=b(t);return l[n][e]},this.setOptionValue=function(e,t,n){var i=b(n),u=c[i],d=l[i];switch(e){case r.ITEM_ID:case r.TYPE:return!1;case r.PERCENT:var p=this;setTimeout(function(){switch(t=parseInt(t)||0,d[r.TYPE]){case o.TYPE.BAR:t=E(t,i),u.style.width=t+"%",d[r.PERCENT]=t;break;case o.TYPE.LINE:p.setOptionValue(r.SPACE,t,n)}u.style.opacity=0==t?0:d[r.OPACITY],setTimeout(function(){switch(s.dispatchEvent(new CustomEvent(a.CHANGED,{detail:{itemID:n,me:p}})),t){case 0:s.dispatchEvent(new CustomEvent(a.STARTING,{detail:{itemID:n,me:p}}));break;case 100:s.dispatchEvent(new CustomEvent(a.COMPLETED,{detail:{itemID:n,me:p}}))}},240)},10);break;case r.COLOR_ID:u.classList.remove(d[r.COLOR_ID]),u.classList.add(t),d[r.COLOR_ID]=t;break;case r.OPACITY:d[r.PERCENT]&&(u.style.opacity=t),d[r.OPACITY]=t;break;case r.ALIGN:u.style.cssFloat=t,d[r.ALIGN]=t,d[r.POSITION]==o.POSITION.ABSOLUTE&&this.setOptionValue(r.SPACE,d[r.SPACE],n);break;case r.SPACE:d[r.TYPE]==o.TYPE.LINE&&(0>t&&(t=0),100<t&&(t=100),d[r.PERCENT]=t),d[r.POSITION]!=o.POSITION.ABSOLUTE&&this.setOptionValue(r.POSITION,o.POSITION.ABSOLUTE,n),u.style.left="",u.style.right="",u.style[d[r.ALIGN]]=t+"%",d[r.SPACE]=t,d[r.TYPE]==o.TYPE.BAR&&this.setOptionValue(r.PERCENT,d[r.PERCENT],n);break;case r.POSITION:switch(d[r.TYPE]){case o.TYPE.BAR:t==o.POSITION.RELATIVE&&(u.style.left="",u.style.right="",d[r.SPACE]=0),u.style.position=t,d[r.POSITION]=t;break;case o.TYPE.LINE:t=o.POSITION.ABSOLUTE,u.style.position=t,d[r.POSITION]=t}}return!0},this.getPercent=function(e){return this.getOptionValue(r.PERCENT,e)},this.setPercent=function(e,t){return this.setOptionValue(r.PERCENT,e,t)},this.initialMode=function(e){e?(this.removeAll(),this.setPercent(25),this.setOptionValue(r.COLOR_ID,o.COLOR_ID.WHITE),setTimeout(function(){y()},50)):(clearTimeout(_initialModeTimer),this.removeAll())},n=n||{},t&&(v.setWidth(n.width||i.WIDTH),v.setHeight(n.height||i.HEIGHT),s.innerHTML="",s.setAttribute("class","progressbar-control"))}window.ProgressBar=e||{},(e=window.ProgressBar).OPTION_NAME={},e.OPTION_NAME.ITEM_ID="itemID",e.OPTION_NAME.TYPE="type",e.OPTION_NAME.PERCENT="percent",e.OPTION_NAME.COLOR_ID="colorID",e.OPTION_NAME.OPACITY="opacity",e.OPTION_NAME.ALIGN="align",e.OPTION_NAME.SPACE="space",e.OPTION_NAME.POSITION="position",e.OPTION_VALUE={},e.OPTION_VALUE.COLOR_ID={},e.OPTION_VALUE.COLOR_ID.BLUE="blue",e.OPTION_VALUE.COLOR_ID.GREEN="green",e.OPTION_VALUE.COLOR_ID.YELLOW="yellow",e.OPTION_VALUE.COLOR_ID.ORANGE="orange",e.OPTION_VALUE.COLOR_ID.RED="red",e.OPTION_VALUE.COLOR_ID.WHITE="white",e.OPTION_VALUE.COLOR_ID.BLACK="black",e.OPTION_VALUE.TYPE={},e.OPTION_VALUE.TYPE.BAR="bar",e.OPTION_VALUE.TYPE.LINE="line",e.OPTION_VALUE.TYPE.TEXT="text",e.OPTION_VALUE.ALIGN={},e.OPTION_VALUE.ALIGN.LEFT="left",e.OPTION_VALUE.ALIGN.RIGHT="right",e.OPTION_VALUE.POSITION={},e.OPTION_VALUE.POSITION.ABSOLUTE="absolute",e.OPTION_VALUE.POSITION.RELATIVE="relative",e.DEFAULT_VALUE={},e.DEFAULT_VALUE.WIDTH="100px",e.DEFAULT_VALUE.HEIGHT="6px",e.DEFAULT_VALUE.TYPE=e.OPTION_VALUE.TYPE.BAR,e.DEFAULT_VALUE.PERCENT=0,e.DEFAULT_VALUE.COLOR_ID=e.OPTION_VALUE.COLOR_ID.BLUE,e.DEFAULT_VALUE.OPACITY=1,e.DEFAULT_VALUE.ALIGN="left",e.DEFAULT_VALUE.SPACE=0,e.DEFAULT_VALUE.POSITION="relative",e.DEFAULT_VALUE.LINE_COLOR_ID=e.OPTION_VALUE.COLOR_ID.RED,e.DEFAULT_VALUE.LINE_OPACITY=.5,e.EVENT={},e.EVENT.STARTING="starting",e.EVENT.CHANGED="changed",e.EVENT.COMPLETED="completed",e.getVersion=function(){return"1.2"}}()},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(4)),i=r(n(25)),a=n(1),s=n(6),l=n(5);function c(e){return new RegExp("\\{(\\s*)"+e+"(\\s*)\\}","ig")}function u(e){if(e.invite.Contents){a("#velarochat-full").slideToggle(),o.default.set("vInlineExpanded",!0,{expires:2/24,path:"/",domain:Velaro.Globals.DomainScope,sameSite:"lax"}),a("#velarochat").addClass("expanded");var t=Velaro.Template.ProactiveInlineInvite;t=t.replace(c("chatimage"),e.agentHeadshotURL).replace(c("agentname"),e.agentName).replace(c("message"),e.invite.Contents),a("#velaro-content").html(t),i.default.persistInviteView(e.invite.InvitationID),a(document).on("click","#accept-inline-invite",function(t){t.preventDefault(),Velaro.Visitor.Monitoring.InviteActive=!1,Velaro.Visitor.AcceptInvite(e.invite.InvitationID),Velaro.Engagement.DisplayLoadingContent(),o.default.set("vInlineExpanded",!1,{expires:2/24,path:"/",domain:Velaro.Globals.DomainScope,sameSite:"lax"}),Velaro.Engagement.ToggleInline()}),Velaro.Visitor.Monitoring.InviteActive=!0}}function d(e){var t=Velaro.Globals.UrlStorage+"invitations/"+e.UniqueGalleryItemID+"/";!function(e,t){a('head link[data-info="popout_css"]').remove();var n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("type","text/css"),n.setAttribute("href",e),n.setAttribute("data-info","popout_css"),document.getElementsByTagName("head")[0].appendChild(n),n.readyState?n.onreadystatechange=function(){"loaded"!=n.readyState&&"complete"!=n.readyState||(n.onreadystatechange=null,null!=t&&t())}:n.onload=function(){null!=t&&t()}}(t+"invitation.css",function(){!function(e,t){a('head script[data-info="popout_script"]').remove();var n=document.createElement("script");n.type="text/javascript",n.src=e,n.setAttribute("data-info","popout_script"),document.getElementsByTagName("head")[0].appendChild(n),n.readyState?n.onreadystatechange=function(){"loaded"!=n.readyState&&"complete"!=n.readyState||(n.onreadystatechange=null,null!=t&&t())}:n.onload=function(){null!=t&&t()}}(t+"invitation-template.js",function(){!function(e){var t="invite_"+e.InvitationID+"_close",n="invite_"+e.InvitationID+"_chat",r="<div id='velaro-invite-popup'>"+Velaro.InvitationTemplate.Invitation+"</div>";r=(r=(r=(r=(r=r.replace(c("close"),"<div id='"+t+"'>")).replace(c("endclose"),"</div>")).replace(c("chat"),"<div id='"+n+"'>")).replace(c("endchat"),"</div>")).replace(c("message"),e.Contents);var o=a(r);o.css({"z-index":"999",position:"fixed",display:"none"}),o.appendTo("body"),Velaro.Visitor.Monitoring.InviteActive=!0,setTimeout(function(){o.show(),e.ShouldFloat?function(e,t,n){p(e,n,10);var r=a(e).position(),o=r.left,i=r.top;p(e,t,10),a(e).css("left",function(){return a(this).offset().left}),a(e).css("top",function(){return a(this).offset().top}),a(e).animate({left:o+"px",top:i+"px"},2e3),a(e).css("right","auto")}(o,e.StartingAnimationPosition,e.EndingAnimationPosition):9==e.PopUpPosition&&null!=e.AnchorTo&&""!=e.AnchorTo&&a("#"+e.AnchorTo).length>0?function(e,t){var n=a("#"+t).position();a(e).css({left:n.left,top:n.top})}(o,e.AnchorTo):p(o,e.PopUpPosition,"10")},25),e.SecondsToDisplay>0&&setTimeout(function(){a("#velaro-invite-popup").length>0&&(Velaro.Visitor.Monitoring.InviteActive=!1),a("#velaro-invite-popup").remove()},1e3*e.SecondsToDisplay);a("#"+t).click(function(){Velaro.Visitor.Monitoring.InviteActive=!1,a("#velaro-invite-popup").remove(),Velaro.Visitor.Monitoring.DenyInvite(e)}),a("#"+n).click(function(){var t=a("#velaro-invite-popup").find("input[type=text],textarea,select").filter(":visible:first");t.length>0&&(Velaro.Globals.InviteAcceptedMessage=a(t[0]).val()),Velaro.Visitor.Monitoring.InviteActive=!1,a("#velaro-invite-popup").remove(),Velaro.Globals.InlineEnabled&&(e.RedirectToGroup=-1),Velaro.Visitor.AcceptInvite(e.InvitationID,e.RedirectToGroup),Velaro.Globals.InlineEnabled&&!Velaro.Engagement.IsMobile()?Velaro.Engagement.ToggleInline():Velaro.Engagement.LoadPopoutChat(null,e.RedirectToGroup>=0?e.RedirectToGroup:null)})}(e),i.default.persistInviteView(e.InvitationID)})})}function p(e,t,n){var r,o=a(window).width()/2-a(e).width()/2,i=a(window).height()/2-a(e).height()/2;switch(a(e).css({left:"",right:"",top:"",bottom:""}),t){case 0:r={left:n+"px",top:n+"px"};break;case 1:r={left:o+"px",top:n+"px"};break;case 2:r={right:n+"px",top:n+"px"};break;case 3:r={left:n+"px",top:i+"px"};break;case 4:default:r={left:o+"px",top:i+"px"};break;case 5:r={right:n+"px",top:i+"px"};break;case 6:r={left:n+"px",bottom:n+"px"};break;case 7:r={left:o+"px",bottom:n+"px"};break;case 8:r={right:n+"px",bottom:n+"px"}}a(e).css(r)}n(82),Velaro.Visitor.Monitoring={PingInterval:3e5,PingRetryInterval:6e4,PingTimerRef:null,ManualInvitePingInterval:6e4,ManualInvitePingTimerRef:null,Start:function(e){Velaro.Visitor.Create(function(){Velaro.Visitor.Monitoring.StartPing(),e&&e()})},StartPing:function(){var e=this;e.Ping(),window.addEventListener("focus",function(){console.log("Focus regained. Restarting ping."),clearTimeout(e.PingTimerRef),e.Ping()})},Ping:function(){var e={VisitorId:Velaro.Engagement.GetVisitorID()};s()>9?a.ajax(Velaro.Globals.GetVisitorUrl("visitor","ping"),{type:"POST",data:JSON.stringify(e),contentType:"application/json; charset=utf-8",success:function(){Velaro.Visitor.Monitoring.OnPingSuccess()},error:function(){Velaro.Visitor.Monitoring.OnPingFail()}}):a.ajax(Velaro.Globals.GetVisitorUrl("visitor","ping/jsonp"),{type:"GET",dataType:"jsonp",data:e,contentType:"application/json; charset=utf-8",success:function(){Velaro.Visitor.Monitoring.OnPingSuccess()},error:function(){Velaro.Visitor.Monitoring.OnPingFail()}})},OnPingSuccess:function(){Velaro.Visitor.Monitoring.PingTimerRef=setTimeout(Velaro.Visitor.Monitoring.Ping,Velaro.Visitor.Monitoring.PingInterval)},OnPingFail:function(){Velaro.Visitor.Monitoring.PingTimerRef=setTimeout(Velaro.Visitor.Monitoring.Ping,Velaro.Visitor.Monitoring.PingRetryInterval)},StartManualInvitePing:function(){var e=this;e.ManualInvitePing(),window.addEventListener("focus",function(){console.log("Focus regained. Restarting manual ping."),clearTimeout(e.ManualInvitePingTimerRef),e.ManualInvitePing()})},ManualInvitePing:function(){a.ajax(Velaro.Globals.GetVisitorUrl("invite","CheckManual/"+Velaro.Engagement.GroupID+"/"+Velaro.Engagement.GetVisitorID()),{type:"GET",success:function(e){e&&Velaro.Visitor.Monitoring.ManualInviteReceived(e)}}),Velaro.Visitor.Monitoring.ManualInvitePingTimerRef=setTimeout(Velaro.Visitor.Monitoring.ManualInvitePing,Velaro.Visitor.Monitoring.ManualInvitePingInterval)},ManualInviteReceived:function(e){3!=e.invite.InvitationType&&(Velaro.Visitor.Monitoring.InviteActive||("true"!==o.default.get("vInlineExpanded")&&!Velaro.Engagement.GetEngagementID()||e.AllowDuringChat)&&(l("Manual invite received"),Velaro.Globals.InlineEnabled&&1==e.invite.InvitationType?u(e):e.invite.GalleryItemID>0&&d(e.invite)))},InviteReceived:function(e){if(3!=e.invite.InvitationType&&("true"!==o.default.get("vInlineExpanded")&&!Velaro.Engagement.GetEngagementID()||e.invite.AllowDuringChat))if(l("Invite received"),Velaro.Globals.InlineEnabled&&1===e.invite.InvitationType)switch(e.invite.InlineContentType){case 1:u(e);break;case 2:!function(e){Velaro.Visitor.Monitoring.HideInlineBar();var t=Velaro.Template.InlineInvite;t=t.replace(c("inlineinviteimage"),e.Contents),a("#velarochat").append(t),i.default.persistInviteView(e.InvitationID),a("#inlineInviteImg").on("click",function(){a("#inlineInvite").remove(),Velaro.Visitor.Monitoring.InviteActive=!1,Velaro.Visitor.AcceptInvite(e.InvitationID),Velaro.Visitor.Monitoring.ShowInlineBar(),Velaro.Engagement.ToggleInline()}),a("#close-inline-chat-invite").on("click",function(){Velaro.Visitor.Monitoring.DenyInvite(e),Velaro.Visitor.Monitoring.InviteActive=!1,a("#inlineInvite").remove(),Velaro.Visitor.Monitoring.ShowInlineBar()}),e.SecondsToDisplay>0&&setTimeout(function(){"false"===o.default.get("vInlineExpanded")&&(Velaro.Visitor.Monitoring.InviteActive=!1,a("#inlineInvite").remove(),Velaro.Visitor.Monitoring.ShowInlineBar(),Velaro.Engagement.DisplayLoadingContent())},1e3*e.SecondsToDisplay);Velaro.Visitor.Monitoring.InviteActive=!0}(e.invite)}else e.invite.GalleryItemID>0&&d(e.invite)},HideInlineBar:function(){a("#velarochat-container-dynamic").hide()},ShowInlineBar:function(){a("#velarochat-container-dynamic").show()},InviteActive:!1,DenyInvite:function(e){Velaro.Visitor.RejectInvite(e.InvitationID)}}},function(module,exports,__webpack_require__){"use strict";(function(Promise){var __awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,s)}l((r=r.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});var js_cookie_1=__importDefault(__webpack_require__(4)),PageHitStore_1=__importDefault(__webpack_require__(18)),InviteStore_1=__importDefault(__webpack_require__(25)),VisitorActionStore_1=__importDefault(__webpack_require__(10)),$=__webpack_require__(1),ieVersion=__webpack_require__(6),recordEvent=__webpack_require__(5);Velaro.Visitor={Create:function(e){return __awaiter(this,void 0,void 0,function(){var t,n,r,o,i,a,s,l;return __generator(this,function(c){switch(c.label){case 0:return t=Velaro.Storage.get("velarofirstvisit"),n=Velaro.Storage.get("velarolastagent"),r=Velaro.Storage.get("velarovisitcount"),(o=Velaro.Storage.get("velaroendofday"))&&(o=JSON.parse(o)),i=""==js_cookie_1.default.get("velarovisitor")?Velaro.Visitor.ID:js_cookie_1.default.get("velarovisitor"),a={GroupID:Velaro.Globals.ActiveGroup,VisitorID:i,HasCookieSupport:navigator.cookieEnabled,ScreenSize:screen.width.toString()+"x"+screen.height.toString(),TimezoneOffset:(new Date).getTimezoneOffset().toString(),Referrer:document.referrer,CurrentUrl:document.URL,DynamicProperties:Velaro.Globals.CustomChatValues,FirstVisit:t?new Date(t):new Date,LastAgentChattedWith:n||"",VisitCount:r||0,HasVisitedToday:o&&new Date(o.when)>new Date,IgnoreInvites:!0,IgnoreGroupSelection:!0,HubspotId:js_cookie_1.default.get("hubspotutk"),FromPopout:Velaro.Globals.PopoutChat,EngagementId:js_cookie_1.default.get("vEngagementID"),FrameVersion:1},[4,$.ajax(Velaro.Globals.GetVisitorUrl("visitor"),{type:"POST",data:JSON.stringify(a),contentType:"application/json; charset=utf-8"})];case 1:return s=c.sent(),this.visitorResponseData=s,console.log("visitorResponseData set"),[4,$.ajax(Velaro.Globals.GetVisitorUrl("GroupSelection"),{type:"POST",data:JSON.stringify({VisitorId:s.VisitorID,GroupId:s.GroupID,DisplayName:s.DisplayName||"",City:s.City||"",ISP:s.ISP||"",Region:s.Region||"",PostalCode:s.PostalCode||"",PageHitCount:PageHitStore_1.default.getCount(),WasInviteFired:InviteStore_1.default.wasInviteFired(),CustomVars:Velaro.Globals.CustomChatValues,InviteViews:InviteStore_1.default.getInviteViews(),PreviousPages:PageHitStore_1.default.getPreviousPages(),CurrentUrl:s.CurrentPage||"",Host:location.host,Referrer:document.referrer,Country:s.Country||""}),contentType:"application/json; charset=utf-8"})];case 2:return(l=c.sent())&&l.GroupChanged&&(Velaro.Globals.ActiveGroup=l.NewGroupId,console.log("%c Group changed from "+l.OldGroupId+" to "+l.NewGroupId+" by rule "+l.ChangeSyntax,"background: #00388d; color: #ffffff")),Velaro.Visitor.HandleCreateSuccess(s,e),[4,$.ajax(Velaro.Globals.GetVisitorUrl("VisitorSession"),{type:"POST",contentType:"application/json; charset=utf-8",data:JSON.stringify({VisitorId:s.VisitorID,GroupId:s.GroupID})})];case 3:return c.sent(),[2]}})})},GetVisitorInfo:function(){var e=this.visitorResponseData;return{AreaCode:e.AreaCode,MostRecentPageHit:e.MostRecentPageHit,City:e.City,Country:e.Country,DisplayName:e.DisplayName,DomainName:e.DomainName,EmailAddress:e.EmailAddress,FirstVisit:new Date(e.FirstVisit),HeadshotUrl:e.HeadshotUrl,IPAddress:e.IPAddress,ISP:e.ISP,IntegrationConnections:e.IntegrationConnections,Keywords:e.Keywords,Language:e.Language,Latitude:e.Latitude,Location:e.Location,Longitude:e.Longitude,Platform:e.Platform,PostalCode:e.PostalCode,ReferredBy:e.ReferredBy,VisitorID:e.VisitorID,CountryCode:e.CountryCode,BrowserName:e.BrowserName,BrowserVersion:e.BrowserVersion,CustomVars:Velaro.Globals.CustomChatValues,Actions:VisitorActionStore_1.default.getActions()}},Update:function(e){Velaro.Visitor.Create(function(){$.connection.visitorHub.server.evaluateInvites(),e&&e()})},HandleCreateSuccess:function(e,t){Velaro.Visitor.SetVisitorID(e.VisitorID);var n=js_cookie_1.default.get("_ga");n&&!e.GoogleAnalyticsId&&Velaro.Visitor.ID&&$.ajax(Velaro.Globals.GetVisitorUrl("visitor","googleanalyticsid"),{type:"POST",data:JSON.stringify({GoogleAnalyticsId:n,VisitorId:Velaro.Visitor.ID}),contentType:"application/json; charset=utf-8"});var r=js_cookie_1.default.get("hubspotutk");r&&!e.HubspotId&&Velaro.Visitor.ID&&$.ajax(Velaro.Globals.GetVisitorUrl("visitor","hubspotId"),{type:"POST",data:JSON.stringify({HubspotId:r,VisitorId:Velaro.Visitor.ID}),contentType:"application/json; charset=utf-8"});var o={visitorId:e.VisitorID,when:e.EndOfDay};Velaro.Storage.set("velarofirstvisit",e.FirstVisit),Velaro.Storage.set("velarovisitcount",e.VisitCount),Velaro.Storage.set("velaroendofday",JSON.stringify(o)),"function"==typeof t&&t()},RunInvites:function(){return __awaiter(this,void 0,void 0,function(){var e,t,n;return __generator(this,function(r){switch(r.label){case 0:return[4,$.ajax(Velaro.Globals.GetVisitorUrl("invites"),{type:"POST",data:JSON.stringify({GroupId:Velaro.Globals.ActiveGroup,DisplayName:this.visitorResponseData.DisplayName||"",City:this.visitorResponseData.City||"",ISP:this.visitorResponseData.ISP||"",Region:this.visitorResponseData.Region||"",PostalCode:this.visitorResponseData.PostalCode||"",PageHitCount:PageHitStore_1.default.getCount(),WasInviteFired:InviteStore_1.default.wasInviteFired(),CustomVars:Velaro.Globals.CustomChatValues,InviteViews:InviteStore_1.default.getInviteViews(),PreviousPages:PageHitStore_1.default.getPreviousPages(),CurrentUrl:location.href,Host:location.host,Referrer:document.referrer,Country:this.visitorResponseData.Country||"",VisitorId:this.visitorResponseData.visitorId}),contentType:"application/json; charset=utf-8"})];case 1:return(e=r.sent())&&e.Invites?(t=e.Invites,t.filter(function(e){return e.TimeOnPageRule}).forEach(function(e){Velaro.Visitor.CreateInviteTimerExpression(e.TimeOnPageRule,e.InviteId,Velaro.Visitor.Monitoring.InviteReceived)}),(n=t.filter(function(e){return!e.TimeOnPageRule}))&&n.length&&Velaro.Visitor.GetInvite(n[0].InviteId,Velaro.Visitor.Monitoring.InviteReceived),[2]):[2]}})})},SetVisitorID:function(e){Velaro.Visitor.ID=e,navigator.cookieEnabled&&js_cookie_1.default.set("velarovisitor",e,{expires:365,path:"/",domain:Velaro.Globals.DomainScope,sameSite:"lax"})},CreateInviteTimerExpression:function(expression,inviteID,callback){var time=0,expressionTimer=setInterval(function(){var timeExpression=expression.replace("{Page.Time}",time);try{if(eval(timeExpression)){if(clearInterval(expressionTimer),Velaro.Visitor.Monitoring.InviteActive)return;Velaro.Visitor.GetInvite(inviteID,callback)}}catch(e){clearInterval(expressionTimer)}time++},1e3)},GetInvite:function(e,t){$.ajax(Velaro.Globals.GetVisitorUrl("invite",e)+"?groupID="+Velaro.Globals.ActiveGroup+"&visitorID="+Velaro.Visitor.ID,{type:"GET",dataType:ieVersion()>9?"json":"jsonp",contentType:"application/json; charset=utf-8",success:function(e){"function"==typeof t&&t(e)},error:function(e,t,n){}})},GetManualInvite:function(e,t,n,r){$.ajax(Velaro.Globals.GetVisitorUrl("invite","manual/"+e)+"?visitorID="+Velaro.Visitor.ID+"&message="+t+"&agentID="+n+"&groupID="+Velaro.Globals.ActiveGroup,{type:"GET",dataType:ieVersion()>9?"json":"jsonp",contentType:"application/json; charset=utf-8",success:function(e){"function"==typeof r&&r(e)},error:function(e,t,n){}})},RejectInvite:function(e,t){recordEvent("Rejected invite"),$.ajax(Velaro.Globals.GetVisitorUrl("invite","reject/"+e)+"?visitorID="+Velaro.Visitor.ID,{type:"GET",dataType:ieVersion()>9?"json":"jsonp",contentType:"application/json; charset=utf-8",success:function(e){"function"==typeof t&&t(e)},error:function(e,t,n){}})},AcceptInvite:function(e,t,n){recordEvent("Accepted invite");var r={InviteID:e,VisitorID:Velaro.Visitor.ID,GroupID:t};$.ajax(Velaro.Globals.GetVisitorUrl("invite","accept"),{type:"POST",dataType:ieVersion()>9?"json":"jsonp",data:JSON.stringify(r),contentType:"application/json; charset=utf-8",success:function(e){Velaro.Globals.InviteConversionID=e,"function"==typeof n&&n(e)},error:function(e,t,n){}})},ID:js_cookie_1.default.get("velarovisitor")||"",AddConversion:function(e,t,n,r){recordEvent("Adding conversion");var o={ConversionID:e,GroupID:Velaro.Globals.ActiveGroup,VisitorID:this.ID,DollarAmount:n,CustomData:JSON.stringify(t)},i=$.ajax(Velaro.Globals.GetVisitorUrl("visitor","conversion"),{type:"POST",data:JSON.stringify(o),dataType:ieVersion()>9?"json":"jsonp",contentType:"application/json; charset=utf-8"});i.fail(function(e){console.error(e)}),i.done(function(){r&&r()})}}}).call(this,__webpack_require__(16))},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(84)),i=r(n(4)),a=r(n(10)),s=n(1),l=n(6),c=n(5);s.ajaxSetup({beforeSend:function(e,t){if(!(t.url.indexOf("windows.net")>-1)){var n=localStorage.getItem("token");if(n){var r=JSON.parse(n);e.setRequestHeader("Authorization","Bearer "+r.access_token)}}}}),Velaro.Engagement={Controller:"Engagement",VisitorID:"",canCloseInline:!1,isDisabledFromConnection:!1,currentText:"",quickRepliesKey:"velaro-quick-replies",GetSettingsGroupID:function(){return i.default.get("velaro_engagement_groupId")||window.velaro_engagement_groupId||Velaro.Globals.ActiveGroup},SetSettingsGroupID:function(e){window.velaro_engagement_groupId=e,i.default.set("velaro_engagement_groupId",e,{expires:2/24,path:"/",domain:Velaro.Globals.DomainScope,sameSite:"lax"})},GetEngagementID:function(){return i.default.get("vEngagementID")||window.vEngagementID||""},GetPreEngagementID:function(){return i.default.get("vPreEngagementID")||window.vPreEngagementID||""},GetSiteId:function(){return i.default.get("vSiteId")||window.vSiteId||""},GetVisitorID:function(){return Velaro.Engagement.VisitorID||window.vVisitorId||Velaro.Visitor&&Velaro.Visitor.ID||""},GetMaxFileSizeBytes:function(){var e=Velaro.Engagement.Settings.MaxUploadFileSize;return e||(e=20),1e6*e},SetEngagementID:function(e){window.vEngagementID=e,i.default.set("vEngagementID",e,{expires:2/24,path:"/",domain:Velaro.Globals.DomainScope,sameSite:"lax"})},SetPreEngagementID:function(e){if(e){window.vPreEngagementID=e;var t=new Date;t.setTime(t.getTime()+12e5),i.default.set("vPreEngagementID",e,{expires:t,path:"/",domain:Velaro.Globals.DomainScope,sameSite:"lax"}),setTimeout(Velaro.Engagement.SetPreEngagementID,12e5)}else delete window.vPreEngagementID,i.default.remove("vPreEngagementID",{path:"/",domain:Velaro.Globals.DomainScope,sameSite:"lax"})},SetSiteId:function(e){window.vSiteId=e,i.default.set("vSiteId",e,{expires:2/24,path:"/",domain:Velaro.Globals.DomainScope,sameSite:"lax"})},SetCurrentContentType:function(e){window.vContentType=e,i.default.set("vContentType",e,{expires:2/24,path:"/",domain:Velaro.Globals.DomainScope,sameSite:"lax"})},GetCurrentContentType:function(){return parseInt(i.default.get("vContentType"))||window.vContentType||""},SetEnteredQueue:function(e){window.vEnteredQueue=e,i.default.set("vEnteredQueue",e,{expires:2/24,path:"/",domain:Velaro.Globals.DomainScope,sameSite:"lax"})},HasEnteredQueue:function(){return i.default.get("vEnteredQueue")||window.vEnteredQueue||""},ToggleInline:function(){s("#chatwindow-01").click()},ShowPrechatContent:function(){this.SetContentTemplate(this.GetPrechatContent())},GetPrechatContent:function(){return this.IsChatAvailable()?this.GetAvailablePrechatContent():this.GetUnavailablePrechatContent()},GetAvailablePrechatContent:function(){var e=this.Settings;return e.EnablePrechatSurvey?{Content:{Survey:e.PrechatSurvey,HeaderText:e.PrechatHeaderText,ButtonText:e.PrechatSubmitText},ContentType:f.PRECHAT}:{Content:e.CompanyLogo,ContentType:f.INTRODUCTION}},GetUnavailablePrechatContent:function(){var e=this.Settings,t=this.GetRelevantUnavailableText();switch(e.UnavailableAction){case v.Survey:return{Content:{Survey:e.UnavailableSurvey,HeaderText:t.SurveyText,ButtonText:e.UnavailableSubmitText,ConfirmationText:e.UnavailableSurveySubmissionConfirmationText},ContentType:f.UNAVAILABLE_SURVEY};case v.JustText:return{Content:t.CustomText,ContentType:f.UNAVAILABLE_TEXT};case v.Html:return{Content:t.CustomHtml,ContentType:f.UNAVAILABLE_TEXT};case v.RedirectPage:return{Content:e.UnavailableRedirectUrl,ContentType:f.UNAVAILABLE_REDIRECT}}},GetRelevantUnavailableText:function(){var e=this.Settings;switch(this.GroupAvailabilityStatus){case m.OutOfSchedule:return{SurveyText:e.OutOfScheduleSurveyText,CustomText:e.OutOfScheduleCustomText,CustomHtml:e.OutOfScheduleCustomHtml};case m.AgentsBusy:return{SurveyText:e.AgentsBusySurveyText,CustomText:e.AgentsBusyCustomText,CustomHtml:e.AgentsBusyCustomHtml};default:return{SurveyText:e.UnavailableSurveyText,CustomText:e.UnavailableCustomText,CustomHtml:e.UnavailableCustomHtml}}},RequestEngagementId:function(){var e=this;if(!Velaro.Globals.ClickToCall){var t={SiteID:Velaro.Globals.ActiveSite,GroupID:Velaro.Engagement.GroupID,GroupAvailabilityStatus:Velaro.Engagement.GroupAvailabilityStatus,VisitorInfo:Velaro.Visitor.GetVisitorInfo()},n=e.GetPreEngagementID()?s.when(e.GetPreEngagementID()):s.ajax(Velaro.Globals.GetEngagementUrl("engagement","requestengagementid"),{type:"POST",dataType:l()>9?"json":"jsonp",data:JSON.stringify(t),contentType:"application/json; charset=utf-8"});return n.done(function(t){e.SetPreEngagementID(t),e.ShowPrechatContent()}),n}e.ShowPrechatContent()},RequestEngagement:function(e,t,n){e=e||new Object,Velaro.Engagement.VisitorID=e.VisitorID||this.GetVisitorID();var r="";try{r=window.opener.location.href}catch(e){}var o={SiteID:Velaro.Globals.ActiveSite,GroupID:Velaro.Engagement.GroupID,VisitorID:Velaro.Engagement.VisitorID,Name:e.Name||"",Email:e.Email||"",CustomData:e.CustomChatValues||Velaro.Globals.CustomChatValues||{},EngagementID:Velaro.Engagement.GetEngagementID(),InviteAcceptedMessage:Velaro.Globals.InviteAcceptedMessage,InviteConversionID:Velaro.Globals.InviteConversionID,RequestedFrom:r,GroupAvailabilityStatus:Velaro.Engagement.GroupAvailabilityStatus,PreEngagementId:Velaro.Engagement.GetPreEngagementID(),SurveyResults:e.SurveyResults,IntroMessage:e.IntroMessage,VisitorInfo:Velaro.Visitor.GetVisitorInfo()};this.SetPreEngagementID(""),l()>9?s.ajax(Velaro.Globals.GetEngagementUrl("engagement","requestengagement"),{type:"POST",contentType:"application/json; charset=utf-8",data:JSON.stringify(o),success:function(e){console.log(e),"function"==typeof t&&t(e)},statusCode:{404:function(){Velaro.Engagement.Destroy()},500:function(){Velaro.Engagement.Destroy()}},error:function(e){"function"==typeof n&&n(e)}}):s.ajax(Velaro.Globals.GetEngagementUrl("engagement","requestengagement/jsonp"),{type:"GET",contentType:"application/json; charset=utf-8",dataType:"jsonp",data:o,success:function(e){"function"==typeof t&&t(e)},statusCode:{404:function(){Velaro.Engagement.Destroy()},500:function(){Velaro.Engagement.Destroy()}},error:function(e){"function"==typeof n&&n(e)}}),Velaro.Engagement.StopBlinking()},RequestEngagementWithAgent:function(e,t,n){s.ajax({type:"GET",url:Velaro.Globals.GetEngagementUrl("engagement","requestEngagementWithAgent/"+e),success:function(e){"function"==typeof t&&t(e)},error:function(e){"function"==typeof n&&n(e)}})},GetAll:function(e,t,n){s.ajax({url:Velaro.Globals.GetEngagementUrl(Velaro.Engagement.Controller)+(n?"?forPolling=true":""),type:"GET",contentType:"application/json",success:function(t){"function"==typeof e&&e(t)}})},Get:function(e,t,n){s.ajax({type:"GET",url:Velaro.Globals.GetEngagementUrl("engagement",e),success:function(e){"function"==typeof t&&t(e)},error:function(e){"function"==typeof n&&n(e)}})},GetForVisitor:function(e,t){s.ajax({type:"GET",url:Velaro.Globals.GetEngagementUrl("engagement/GetForVisitor",e),success:function(e){"function"==typeof t&&t(e)},error:function(e){"function"==typeof error&&error(e)}})},AssignAgent:function(e,t,n,r,o,i){siteiD;s.ajax(Velaro.Globals.GetEngagementUrl("engagement","assignagent"),{type:"POST",contentType:"application/json; charset=utf-8",data:JSON.stringify(engagementViewModel),success:function(e){"function"==typeof o&&o(e)},error:function(e){"function"==typeof i&&i(e)}})},KeepVisitorAlive:function(){s.ajax(Velaro.Globals.GetEngagementUrl("engagement","keepvisitoralive/"+Velaro.Engagement.GetVisitorID()),{type:"GET"})},GetChatCount:function(e,t){s.ajax(Velaro.Globals.GetEngagementUrl("engagement","getchatcount"),{type:"GET",success:function(t){"function"==typeof e&&e(t)},error:function(e){"function"==typeof t&&t(e)}})},GetChatCountForGroup:function(e,t,n){s.ajax(Velaro.Globals.GetEngagementUrl("engagement","getchatcount/"+e),{type:"GET",success:function(e){"function"==typeof t&&t(e)},error:function(e){"function"==typeof n&&n(e)}})},GetNewLines:function(e,t,n){var r={LastUpdate:e};s.ajax({url:Velaro.Globals.GetEngagementUrl("engagement","getnewlines"),data:r,type:"GET",contentType:"application/json",success:function(e){"function"==typeof t&&t(e)},error:function(e){"function"==typeof n&&n(e)}})},GetAllLines:function(e,t,n){s.ajax(Velaro.Globals.GetEngagementUrl("engagement","getchatlines/"+e),{type:"GET",success:function(e){"function"==typeof t&&t(e)},error:function(e){"function"==typeof n&&n(e)}})},GetContentRatingByAgent:function(e){s.ajax({url:Velaro.Globals.GetEngagementUrl("engagement","getcontentratingsbyagent"),type:"POST",contentType:"application/json",success:function(t){"function"==typeof e&&e(t)},error:function(e){"function"==typeof error&&error(e)}})},GetTypingVisitorsByAgent:function(e){s.ajax({url:Velaro.Globals.GetEngagementUrl("engagement","gettypingvisitorsbyagent"),type:"POST",contentType:"application/json",success:function(t){"function"==typeof e&&e(t)},error:function(e){"function"==typeof error&&error(e)}})},SendVisitorText:function(e,t){var n=this.GetEngagementID();if(n){var r={VisitorID:Velaro.Engagement.VisitorID,EngagementID:n,Text:e,SiteID:Velaro.Globals.ActiveSite};Velaro.Engagement.postVisitor(Velaro.Engagement.getVisitorChatUrl("visitorchat","sendtext"),r,t)}else c("Missing engagement id when sending visitor text","error")},GetFile:function(e,t,n){s.ajax(Velaro.Globals.GetEngagementUrl("engagement","getfile/"+e+"/"+t)+"?id="+n,{type:"GET",contentType:"application/json; charset=utf-8",data:engagementContent,dataType:"jsonp",success:function(r){window.location=Velaro.Globals.GetEngagementUrl("engagement","getfile/"+e+"/"+t)+"?id="+n,"function"==typeof callback&&callback(r)},error:function(e){"function"==typeof error&&error(e)}})},UploadFile:function(e,t,n,r,o){var i=0,a=Math.min(1048576,e.size),l=Math.ceil(e.size/1048576),c=1,u=function(){var t=new FormData;if(t.append("engagementid",n),t.append("currentblock",c),t.append("totalblocks",l),t.append("filename",e.name),e.slice)t.append("slice",e.slice(i,a));else if(e.webkitSlice)t.append("slice",e.webkitSlice(i,a));else{if(!e.mozSlice)return;t.append("slice",e.mozSlice(i,a))}s.ajax({async:!0,url:Velaro.Globals.GetEngagementUrl("engagement","uploadfileagent"),data:t,cache:!1,contentType:!1,processData:!1,type:"POST"}).done(function(t){var n=Math.round(c/l*100);i=1048576*(++c-1),a=Math.min(1048576*c,e.size),n<=100&&"function"==typeof r&&r(n),c<=l&&u()}).fail(function(e){"function"==typeof o&&o("File upload failed. "+(e.responseText||"Your file is too large or the wrong type."))})};u()},UploadVisitorFile:function(){var e=s("#velaro-file")[0].files[0];if(e)if(e.size>this.GetMaxFileSizeBytes()){var t="<span>"+this.Settings.FileUploadSizeErrorMessage+'</span><br/><button class="velaro-action-overlay-button" type="button" onclick="Velaro.Engagement.RemoveChatOverlay()">OK</button>';Velaro.Engagement.CreateChatOverlay(t,!0)}else{s("<div id='velaro-upload-progress'></div>").insertAfter(".chatbody");new ProgressBar("velaro-upload-progress",{height:"3px",width:s("#widget-area-08").width()});var n=new FormData;n.append("file",e),n.append("engagementId",this.GetEngagementID()),n.append("visitorId",Velaro.Engagement.VisitorID),s.ajax({url:Velaro.Globals.GetEngagementUrl("engagement","uploadfile"),data:n,contentType:!1,processData:!1,type:"POST"}).done(function(e){s("#velaro-upload-progress").fadeOut(1500,function(){s("#velaro-upload-progress").remove()})}).fail(function(e){var t=(t=e&&e.responseJSON&&e.responseJSON.Message?e.responseJSON.Message:null)||"Your file is too large or the wrong type.";Velaro.Engagement.AppendMessage({DateCreated:new Date,FromDisplay:Velaro.Engagement.Settings.NoticeFromText,Text:t,ID:-Number(new Date),LineCreator:h.Notice}),s("#velaro-upload-progress").remove()}),Velaro.Engagement.RemoveChatOverlay()}},GetNewVisitorLines:function(e,t,n){Velaro.Engagement.RefreshingLines=!0;var r=this.GetEngagementID();if(r){var o={VisitorID:Velaro.Engagement.VisitorID,EngagementID:r,MaxLineID:e};s.ajax(Velaro.Globals.GetEngagementUrl("engagement","getnewvisitorlines"),{type:"GET",contentType:"application/json; charset=utf-8",data:o,dataType:l()>9?"json":"jsonp",success:function(r){if(Velaro.Engagement.RefreshingLines=!1,r)return Velaro.Engagement.RetryGetNewVisitorLines?(Velaro.Engagement.RetryGetNewVisitorLines=!1,void Velaro.Engagement.GetNewVisitorLines(e,t,n)):void("function"==typeof t&&t(r));Velaro.Engagement.Destroy()},error:function(e){"function"==typeof n&&n(e)}})}},IsAgentTyping:function(e){var t={VisitorID:Velaro.Engagement.VisitorID,EngagementID:this.GetEngagementID()};s.ajax(Velaro.Globals.GetEngagementUrl("engagement","isagenttyping"),{type:"GET",contentType:"application/json; charset=utf-8",data:t,dataType:l()>9?"json":"jsonp",success:function(t){"function"==typeof e&&e(t)}})},RateEngagement:function(e){var t={Rating:e,EngagementId:Velaro.Engagement.GetEngagementID(),VisitorId:Velaro.Engagement.GetVisitorID()};Velaro.Engagement.postVisitor(Velaro.Engagement.getVisitorChatUrl("visitorchat","setrating"),t)},GetNewSettings:function(e){var t="";return 2135==Velaro.Globals.ActiveSite&&(t+="/"),l()<=9&&(t+="/jsonp"),s.ajax(Velaro.Globals.GetEngagementUrl("settings",t),{type:"GET",data:{groupID:Velaro.Globals.ActiveGroup},dataType:l()>9?"json":"jsonp",success:function(t){Velaro.Engagement.Settings=t,"function"==typeof e&&e(t)}})},GetSettings:function(e){var t="getsettings";l()<=9&&(t+="/jsonp"),s.ajax(Velaro.Globals.GetEngagementUrl("engagement",t),{type:"GET",data:{groupID:Velaro.Engagement.GetSettingsGroupID()},dataType:l()>9?"json":"jsonp",success:function(t){"function"==typeof e&&e(t)}})},GetAvailability:function(e){if(Velaro.Engagement.Settings&&Velaro.Engagement.Settings.IsExpired)return Velaro.Engagement.GroupAvailabilityStatus=m.AgentsOffline,void e();var t="";l()<=9&&(t+="/jsonp"),s.ajax(Velaro.Globals.GetEngagementUrl("availability",t),{type:"GET",data:{groupID:Velaro.Globals.ActiveGroup},dataType:l()>9?"json":"jsonp",success:function(t){Velaro.Engagement.GroupAvailabilityStatus=t.StatusValue,Velaro.Engagement.Settings.IsAvailable=Velaro.Engagement.IsChatAvailable(),"function"==typeof e&&e()}})},setAvailability:function(e,t,n){s.ajax(Velaro.Globals.GetEngagementUrl("engagement","changeavailability")+"?available="+e,{type:"GET",success:function(e){"function"==typeof t&&t(e)},error:function(e){"function"==typeof n&&n(e)}})},GetSocialData:function(e){var t=this.GetEngagementID()||this.GetPreEngagementID();s.ajax(Velaro.Globals.GetEngagementUrl("engagement","socialdata")+t,{type:"GET",success:function(t){"function"==typeof e&&e(t)}})},EmailTranscript:function(e,t,n,r){if(t){var o=Velaro.Globals.GetEngagementUrl("engagement","EmailTranscript")+e;s.ajax({url:o+"?"+s.param({emailAddress:t}),type:"GET",success:function(e){"function"==typeof n&&n(e)},error:function(e){"function"==typeof r&&r(e)}})}},EmailVisitorTranscriptOnChatEnd:function(e){if(e){var t={engagementId:this.GetEngagementID(),emailAddress:e};l()>9?s.ajax({url:Velaro.Globals.GetEngagementUrl("engagement","EmailVisitorTranscriptOnChatEnd"),type:"POST",data:JSON.stringify(t),dataType:"json",contentType:"application/json"}):s.ajax({url:Velaro.Globals.GetEngagementUrl("engagement","EmailVisitorTranscriptOnChatEnd")+"jsonp",type:"GET",data:t,dataType:"jsonp"})}},getAvailability:function(e,t){s.ajax({type:"GET",url:Velaro.Globals.GetEngagementUrl("engagement","GetAvailability"),success:function(t){"function"==typeof e&&e(t)},error:function(e){"function"==typeof t&&t(e)}})},LoadClickToCall:function(){Velaro.Engagement.LoadPopoutChat(Velaro.Globals.CustomChatValues,Velaro.Globals.ActiveGroup,!0)},OnPopoutBeforeUnload:function(e){return e.returnValue="Are you sure you want to close the chat?"},LoadPopoutChat:function(e,t,n){s(document).trigger("velaro:load:popoutchat");var r=function(){if(Velaro.Globals.CustomChatValues=e||Velaro.Globals.CustomChatValues||{},Velaro.Visitor.Create(),Velaro.Engagement.IsChatAvailable()||3!==Velaro.Engagement.Settings.UnavailableAction){var r=window.open("","_blank","status=0,resizable=no,toolbar=0,location=0,menubar=0,scrollbars=1"&Velaro.Engagement.IsMobile()?"":",height="+Velaro.Template.PopOutWindowHeight+",width="+Velaro.Template.PopOutWindowWidth);if(r){var o;Velaro.Engagement.PopoutWindow=r,r.loadingDiv=r.document.createElement("div"),r.document.body.appendChild(r.loadingDiv),Velaro.Engagement.DisplayLoadingContent(r.loadingDiv);var i=r.document.createElement("style");if(i.type="text/css",r.addEventListener("beforeunload",function(){Velaro.Chat.ReloadEngagement()}),Velaro.Engagement.IsMobile()){var a=r.document.createElement("meta");a.name="viewport",a.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no",r.document.getElementsByTagName("HEAD")[0].appendChild(a)}o="body{background:#F4F4F4;}",i.styleSheet?i.styleSheet.cssText=o:i.appendChild(r.document.createTextNode(o)),r.document.getElementsByTagName("HEAD")[0].appendChild(i);var s=function(e,t,n){var r=e.document.createElement("script");r.type="text/javascript",r.src=t,r.readyState?r.onreadystatechange=function(){"loaded"!=r.readyState&&"complete"!=r.readyState||(r.onreadystatechange=null,null!=n&&n(e))}:r.onload=function(){null!=n&&n(e)},e.document.getElementsByTagName("head")[0].appendChild(r)},l=Velaro.Globals.UrlStorage+"velaroscripts/"+Velaro.Globals.ActiveSite+"/globals.js";s(r,l,function(e){e.Velaro.Globals.ActiveSite=Velaro.Globals.ActiveSite,e.Velaro.Globals.ActiveGroup=t||Velaro.Globals.ActiveGroup,e.Velaro.Globals.PopoutChat=!0,e.Velaro.Globals.InviteAcceptedMessage=Velaro.Globals.InviteAcceptedMessage,e.Velaro.Globals.InviteConversionID=Velaro.Globals.InviteConversionID,e.Velaro.Globals.DomainScope=Velaro.Globals.DomainScope,e.Velaro.Globals.ClickToCall=n||Velaro.Globals.ClickToCall,e.Velaro.Globals.CustomChatValues=Velaro.Globals.CustomChatValues,e.vEngagementID=Velaro.Engagement.GetEngagementID(),e.vVisitorId=Velaro.Visitor.ID;s(e,Velaro.Globals.UrlContentDelivery+"bundles/velaro.inline.js")})}}else window.location.href=Velaro.Engagement.Settings.UnavailableRedirectUrl};!Velaro.Engagement.PopoutWindow||Velaro.Engagement.PopoutWindow.closed?Velaro.Engagement.Settings?r():Velaro.Engagement.GetNewSettings(r):Velaro.Engagement.PopoutWindow.focus()},LoadFooter:function(){s(Velaro.Template.Footer.replace(/{UrlContentDelivery}/g,Velaro.Globals.UrlContentDelivery).replace(/{FacebookLink}/g,Velaro.Engagement.Settings.Facebook).replace(/{TwitterLink}/g,Velaro.Engagement.Settings.Twitter).replace(/{LinkedInLink}/g,Velaro.Engagement.Settings.LinkedIn).replace(/{GoogleLink}/g,Velaro.Engagement.Settings.Google)).insertAfter(s("#velaro-content")),this.ApplySocialSettings()},InitSiteId:function(){var e=Velaro.Engagement.GetSiteId();e&&e!==Velaro.Globals.ActiveSite.toString()&&i.default.remove("vEngagementID",{path:"/",domain:Velaro.Globals.DomainScope,sameSite:"lax"});var t=Velaro.Engagement.GetCurrentContentType();!t||t!=f.UNAVAILABLE_REDIRECT&&t!=f.UNAVAILABLE_SURVEY&&t!=f.UNAVAILABLE_TEXT||i.default.remove("vEngagementID",{path:"/",domain:Velaro.Globals.DomainScope,sameSite:"lax"}),Velaro.Engagement.SetSiteId(Velaro.Globals.ActiveSite)},IsChatAvailable:function(){return Velaro.Engagement.GroupAvailabilityStatus===m.Available},LoadInlineChat:function(){var e=this;this.InitSiteId();var t=function(){var t=Velaro.Engagement.Settings,n=Velaro.Engagement.IsChatAvailable();if(!t.HideWhenUnavailable||n){var r=n?"chatwindow-top-available":"chatwindow-top-unavailable",o=n?t.TitleAvailableText:t.TitleUnavailableText,a=i.default.get("vEyeCatcherHidden")||!1,l=t.InlineWindowEyeCatcherEnabled&&t.InlineWindowEyeCatcherOnlineSource&&!a,u=l&&t.InlineWindowEyeCatcherOfflineEnabled&&t.InlineWindowEyeCatcherOfflineSource,d="";if(Velaro.Engagement.IsMobile()){s('<div id="velarochat"><span id="chatwindow-01" class="'+r+'"></span></div> ').hide().appendTo("body");var p=s("."+r),g=p.css("background-color"),h=p.css("color");p.remove(),d+='<div id="velaro-mobile-inline" tabindex="0" class="velaro-mobile-inline" style="background:'+g+";color:"+h+';"><img src="'+Velaro.Globals.UrlContentDelivery+'Content/Images/chat-icon.png" /><div class="velaro-mobile-chattext">'+o+"</div></div>"}else{d+=' <div id="velarochat">                                                                                        ',d+='<div id="velarochat-container-dynamic" tabindex="0">',l&&n&&(d+='<div id="online-eye-catcher" style="color:transparent;" onmouseover="this.style.color=\'black\'" onmouseout="this.style.color=\'transparent\'"><img id="online-eye-image" style="cursor:pointer;" src="{{onlineEyeCatcherSource}}" /><span id="dismiss-eyecatcher" href="#" style="position:absolute;top:-5px;right:5px;font-size:20px;cursor:pointer">&times;</span></div>'),u&&!n&&(d+='<div id="offline-eye-catcher" style="color:transparent;" onmouseover="this.style.color=\'black\'" onmouseout="this.style.color=\'transparent\'"><img id="offline-eye-image" style="cursor:pointer;" src="{{offlineEyeCatcherSource}}" /><span id="dismiss-eyecatcher" href="#" style="position:absolute;top:-5px;right:5px;font-size:20px;cursor:pointer">&times;</span></div>'),d+='         <div id="widget-area-01" style="display: block; position: relative;" class="widget-area">            ',d+='             <span id="chatwindow-01" class="{{chatHeaderCss}}">                                              ',d+="                 {{chatHeaderText}}                                                                           ",d+='                 <span id="chat-header-actions">                                                              ',d+='                     <i id="show-chat" title="Expand" class="fa-velaro fa-velaro-plus"></i>',d+='                     <i id="hide-chat" title="Minimize" class="fa-velaro fa-velaro-minus"></i>',d+='                     <i id="pop-out-chat" style="display:none" title="Popout" class="fa-velaro fa-velaro-external-link"></i>',d+='                     <i id="end-chat" style="display: none;" title="Close Chat" class="fa-velaro fa-velaro-times"></i>',d+="                 </span>                                                                                      ",d+="             </span>                                                                                          ",d+="         </div>                                                                                               ",d+='         <div id="velarochat-full">                                                                           ',d+='         <div id="velaro-content" class="chatwrapper velaro-content"></div>                                   ',d+="         </div>                                                                                               ",d+="     </div>                                                                                                   ",d=(d=(d+=" </div>                                                                                                       ").replace(/{{chatHeaderCss}}/g,r)).replace(/{{chatHeaderText}}/g,o),l&&n&&(d=d.replace(/{{onlineEyeCatcherSource}}/g,t.InlineWindowEyeCatcherOnlineSource)),u&&!n&&(d=d.replace(/{{offlineEyeCatcherSource}}/g,t.InlineWindowEyeCatcherOfflineSource));var m=function(e){s("#velarochat").toggleClass("expanded",e),e?(s("#online-eye-catcher").hide(),s("#offline-eye-catcher").hide()):(l&&n&&!i.default.get("vEyeCatcherHidden")&&s("#online-eye-catcher").show(),!u||n||i.default.get("vEyeCatcherHidden")||s("#offline-eye-catcher").show())}}s("body").append(d),Velaro.Engagement.LoadFooter(),Velaro.Engagement.DisplayLoadingContent();var v="true"===i.default.get("vInlineExpanded")&&(""!=e.GetEngagementID()||Velaro.Call.GetCallId());console.log(v),v||(s("#velarochat-full").hide(),s("#velarochat").removeClass("expanded"),i.default.set("vInlineExpanded",!1,{expires:2/24,path:"/",domain:Velaro.Globals.DomainScope,sameSite:"lax"})),e.GetEngagementID()?Velaro.Engagement.RequestEngagement(null,function(e){Velaro.Engagement.HandleEngagementResponse(e),e.ContentType!=f.ASSIGNED&&e.ContentType!=f.QUEUED||Velaro.Engagement.GetNewVisitorLines(0,function(e){s.each(e,function(e,t){Velaro.Engagement.AppendMessage(t)})}),s(document).trigger("velaro:chatLoaded")}):Velaro.Call.GetCallId()?Velaro.Engagement.OpenCall():s(document).trigger("velaro:chatLoaded"),Velaro.Engagement.IsMobile()||m(v),!l&&!u||Velaro.Engagement.IsMobile()||s("#dismiss-eyecatcher").on("click",function(e){e.stopPropagation(),s("#online-eye-catcher").hide(),s("#offline-eye-catcher").hide(),i.default.set("vEyeCatcherHidden",!0,{expires:1/24,path:"/",domain:Velaro.Globals.DomainScope,sameSite:"lax"})});var y=function(t){if(c("Clicked inline tab"),!s(t.target).is("#end-chat")){var n=e.GetCurrentContentType(),r=3==n||4==n||5==n,o="true"===i.default.get("vInlineExpanded"),a=""!=e.GetEngagementID();if(Velaro.Engagement.StopBlinking(),!s(t.target).is("#pop-out-chat")||(Velaro.Engagement.LoadPopoutChat(),o)){s(document).trigger("velaro:inline:click"),o&&a?(s(t.target).is("#pop-out-chat")||n==f.ASSIGNED&&Velaro.Engagement.NotifyInlineMinimized(),s("#end-chat").hide(),s("#pop-out-chat").hide()):!o&&a&&e.canCloseInline&&!r&&(s("#end-chat").show(),s("#pop-out-chat").show()),o=!o,"function"==typeof Velaro.OnToggleChatWindow&&Velaro.OnToggleChatWindow(o),!o||a&&!r||(Velaro.Engagement.GetPreEngagementID()||Velaro.Engagement.ClearEngagementInfo(),Velaro.Engagement.RequestEngagementId()),Velaro.Engagement.IsMobile()||i.default.set("vInlineExpanded",o,{expires:2/24,path:"/",domain:Velaro.Globals.DomainScope,sameSite:"lax"});var l=s("#velarochat-full").css("display");("none"==l&&o||"block"==l&&!o)&&s("#velarochat-full").slideToggle(),m(o)}}};Velaro.Engagement.IsMobile()&&s("#velaro-mobile-inline").on("click",function(){Velaro.Engagement.LoadPopoutChat()}),s("#chatwindow-01").on("click",y),s("#online-eye-catcher").on("click",y),s("#offline-eye-catcher").on("click",y),Velaro.Engagement.Settings.HasInvites?(Velaro.Visitor.RunInvites(),Velaro.Engagement.Settings.ManualInvitesEnabled&&Velaro.Visitor.Monitoring.StartManualInvitePing()):console.log("skipping invite calls - site has no invites")}};Velaro.Engagement.GetNewSettings(function(){Velaro.Engagement.GetAvailability(t),Velaro.Engagement.Settings.HasEventTracking&&Velaro.Engagement.SetupEventTracking()})},PostTrackedEvent:function(e){var t={Type:e,VisitorId:Velaro.Engagement.GetVisitorID()};Velaro.Engagement.postVisitor(Velaro.Globals.GetEngagementUrl("eventtracking","postevent"),t)},SetupEventTracking:function(){Velaro.Events.onClickedInline(function(){Velaro.Engagement.PostTrackedEvent(y.VisitorClickedInline)}),Velaro.Events.onLoadPopoutChat(function(){Velaro.Engagement.PostTrackedEvent(y.VisitorClickedPopoutButton)}),Velaro.Events.onShowPrechatSurvey(function(){Velaro.Engagement.PostTrackedEvent(y.VisitorShownPrechatSurvey)}),Velaro.Events.onShownPostchatSurvey(function(){Velaro.Engagement.PostTrackedEvent(y.VisitorShownPostchatSurvey)}),Velaro.Events.onShownUnavailableSurvey(function(){Velaro.Engagement.PostTrackedEvent(y.VisitorShownMissedchatSurvey)}),Velaro.Events.onQueueEntered(function(){Velaro.Engagement.PostTrackedEvent(y.VisitorEnteredQueue)}),Velaro.Events.onQueueExited(function(){Velaro.Engagement.PostTrackedEvent(y.VisitorExitedQueue)})},IsMobile:function(){return window.screen.availWidth<600||window.screen.availHeight<600},HandleEngagementResponse:function(e,t){if(Velaro.Visitor.SetVisitorID(e.VisitorID),Velaro.Engagement.VisitorID=e.VisitorID,Velaro.Engagement.GroupID=e.GroupID,Velaro.Visitor.DisplayName=e.VisitorDisplayName,Velaro.Engagement.SetSettingsGroupID(e.GroupID),""===Velaro.Engagement.GetEngagementID()&&e.EngagementID&&Velaro.Engagement.SetEngagementID(e.EngagementID),!t&&(e.ContentType===f.ASSIGNED&&a.default.addEngagement(e.EngagementID,e.Content.AgentName),Velaro.Engagement.SetContentTemplate(e),e.ContentType===f.QUEUED||e.ContentType===f.ASSIGNED)){var n=Velaro.Chat.Connect(e.VisitorID);if(!n)return;n.done(function(){console.log("realtime connection established."),console.log("synchronizing engagement data."),Velaro.Engagement.RequestEngagement(null,Velaro.Engagement.HandleEngagementResponse)}).fail(function(e){console.error("realtime connection failure."),console.error(e)})}},SelectedTemplate:0,OpenCall:function(e){Velaro.Engagement.SetContentTemplate({ContentType:f.CALL}),Velaro.Call.RequestCall({surveyResults:e,cdnUrl:Velaro.Globals.UrlContentDelivery,getEngagementUrl:Velaro.Globals.GetEngagementUrl,callWaitingText:Velaro.Engagement.Settings.CallWaitingText,endCallText:Velaro.Engagement.Settings.EndCallText,endCallWaitingText:Velaro.Engagement.Settings.EndCallWaitingText,onCallForText:Velaro.Engagement.Settings.OnCallForText})},SetContentTemplate:function(e){var t=null,n=this.GetCurrentContentType();this.SetCurrentContentType(e.ContentType);var r="",i="",a=!1;switch(this.canCloseInline=!1,p(e),e.ContentType){case f.CLOSED:c("Template set to closed"),Velaro.Engagement.Destroy();break;case f.CALL:c("Template set to call"),r+='<div id="velaro-call"></div>';break;case f.PRECHAT:c("Template set to prechat"),r+='<div id="velaro-survey"></div>';var d=function(e){c("Submitted prechat survey"),Velaro.Engagement.PreChatAnswers=e;var t=[];for(var n in e){var r=e[n];r.KBSearchQuestion&&t.push(r.Answer)}var o={GroupID:Velaro.Engagement.GroupID,SiteID:Velaro.Globals.ActiveSite,VisitorID:Velaro.Engagement.GetVisitorID(),EngagementID:Velaro.Engagement.GetEngagementID(),SurveyID:Velaro.Survey.CurrentSurveyId,SurveyType:g.PRECHAT,Answers:e,ClickToCall:Velaro.Globals.ClickToCall,CallId:Velaro.Call.GetCallId()},i=function(){Velaro.Globals.ClickToCall?Velaro.Engagement.OpenCall(o):(Velaro.Engagement.SetContentTemplate({ContentType:f.QUEUED,Content:{QueueImage:"",ConnectingText:Velaro.Engagement.Settings.QueueSystemMessage,Position:"",EstimatedWaitTimeText:""}}),Velaro.Engagement.RequestEngagement({SurveyResults:o},Velaro.Engagement.HandleEngagementResponse))};t.length?Velaro.Engagement.PerformKBLookup(t,i):i()};t=function(){return Velaro.Survey.renderSurvey({survey:e.Content.Survey,headerText:e.Content.HeaderText,submitButtonText:e.Content.ButtonText,onSubmit:d})};break;case f.KBSEARCH:c("Template set to kb search"),r=(r=(r+=Velaro.Template.KnowledgeBaseSearch).replace("{KBHeaderText}",Velaro.Engagement.Settings.KBHeaderText)).replace("{KBButtonText}",Velaro.Engagement.Settings.KBButtonText),s(document).off("click",".kb-submit"),s(document).on("click",".kb-submit",function(e){e.preventDefault(),Velaro.Engagement.SetContentTemplate({ContentType:f.QUEUED,Content:{QueueImage:"",ConnectingText:Velaro.Engagement.Settings.QueueSystemMessage,Position:"",EstimatedWaitTimeText:""}}),Velaro.Engagement.RequestEngagement(null,Velaro.Engagement.HandleEngagementResponse)});break;case f.INTRODUCTION:if(c("Template set to introduction"),y=(y=(y=Velaro.Template.IntroductionHeader).replace("{IntroductionImage}",e.Content)).replace("{IntroductionText}",Velaro.Engagement.Settings.IntroductionText),""==e.Content)(C=s(y)).find(".avatar").remove(),y=C[0].outerHTML;r+=y,r+=Velaro.Engagement.GetConversationHTML(),Velaro.Engagement.BindButtons();break;case f.UNAVAILABLE_SURVEY:c("Template set to unavailable survey"),r+='<div id="velaro-survey"></div>';var m=function(t){c("Submitted unavailable survey"),Velaro.Engagement.DisplayLoadingContent(),Velaro.Engagement.SubmitSurveyResults(g.UNAVAILABLE,t,function(){Velaro.Engagement.DisplaySurveyConfirmation(e.Content.ConfirmationText)})};t=function(){return Velaro.Survey.renderSurvey({survey:e.Content.Survey,headerText:e.Content.HeaderText,submitButtonText:e.Content.ButtonText,onSubmit:m})};break;case f.UNAVAILABLE_TEXT:c("Template set to unavailable text");var v=document.createElement("div");v.innerHTML=Velaro.Template.Text,s(v).find(".velaro-text").html(e.Content),r+=v.innerHTML;break;case f.UNAVAILABLE_REDIRECT:c("Template set to unavailable redirect"),window.location.href=e.Content;break;case f.ASSIGNED:c("Template set to assigned"),this.canCloseInline=!0;var y=Velaro.Template.ChatHeader;if(Velaro.Engagement.AgentID=e.Content.AgentID,Velaro.Storage.set("velarolastagent",e.Content.AgentID),Velaro.Engagement.AgentInternalID=e.Content.AgentInternalID,Velaro.Engagement.EngagementID=e.EngagementID,y=(y=(y=(y=(y=(y=(y=y.split("{ChattingWithText}").join(Velaro.Engagement.Settings.ChattingWithText)).replace("{ChatImage}",e.Content.ChatImageUrl)).replace("{AgentName}",e.Content.AgentName)).replace("{AgentRole}",e.Content.AgentRole)).split("{ChatEmailTranscriptText}").join(Velaro.Engagement.Settings.ChatEmailTranscriptText)).split("{ChatUploadFileText}").join(Velaro.Engagement.Settings.ChatUploadFileText)).split("{CloseChatText}").join(Velaro.Engagement.Settings.CloseChatText),Velaro.Engagement.Settings.InlineWindowChatRatingEnabled)Velaro.Engagement.CurrentChatRating=e.Content.Rating,y=y.replace("{RatingText}",Velaro.Engagement.Settings.InlineWindowChatRatingText);else{var b=s(y);b.find(".header-rating").remove(),y=b[0].outerHTML}if(""==e.Content.ChatImageUrl)(C=s(y)).find(".avatar").remove(),y=C[0].outerHTML;r+=y,r=(r+=Velaro.Engagement.GetConversationHTML()).replace("@AgentName",e.Content.AgentName),Velaro.Engagement.BindButtons(),Velaro.Engagement.GetNewVisitorLines(0,Velaro.Engagement.RefreshLines),n!=e.ContentType&&"function"==typeof Velaro.OnEnterChat&&Velaro.OnEnterChat(e.Content.AgentID,e.Content.AgentInternalID,e.EngagementID,e.GroupID,e.VisitorID);var E=s("#velaro-chat-text");i=E.val(),a=E.length&&E[0]==document.activeElement,Velaro.Engagement.Settings.ShowRelativeLineDates&&setInterval(function(){s.each(Velaro.Engagement.TrackedLines,function(e,t){s("#timestamp_"+t.ID).text(o.default(t.DateCreated))})},6e4);break;case f.QUEUED:c("Template set to queued"),this.canCloseInline=!0;y=Velaro.Template.QueueHeader;Velaro.Engagement.EstimatedWaitTime=e.Content.EstimatedWaitTime;var T="";e.Content.Position&&(T=Velaro.Engagement.Settings.QueuePositionText.replace("@QueuePosition",e.Content.Position).replace("@QueueEstimatedWait",e.Content.EstimatedWaitTime)),y=(y=(y=(y=(y=(y=(y=(y=y.replace("{QueueImage}",e.Content.QueueImage)).replace("{ConnectingText}",e.Content.ConnectingText)).replace("{PositionText}",T)).replace("{EstimatedWaitTimeText}",e.Content.EstimatedWaitTimeText)).split("{ChatEmailTranscriptText}").join(Velaro.Engagement.Settings.ChatEmailTranscriptText)).split("{ChatUploadFileText}").join(Velaro.Engagement.Settings.ChatUploadFileText)).split("{CloseChatText}").join(Velaro.Engagement.Settings.CloseChatText)).split("{ChattingWithText}").join(Velaro.Engagement.Settings.ChattingWithText),s("#velaro-content .position-text").text(T),s("#velaro-content .wait-text").text(e.Content.EstimatedWaitTimeText);var C,x=isNaN(e.Content.TimeInQueue),S="";if(Velaro.Engagement.Settings.QueueTimeEnabled&&(Velaro.Engagement.QueuedTimerRunning?S=Velaro.Engagement.Settings.WaitTimeText+Velaro.Engagement.FormatSeconds(Velaro.Engagement.CurrentQueueWaitTime):x?S="Reserving position in queue...":(Velaro.Engagement.CurrentQueueWaitTime=e.Content.TimeInQueue,S=Velaro.Engagement.Settings.WaitTimeText+Velaro.Engagement.FormatSeconds(Velaro.Engagement.CurrentQueueWaitTime))),y=y.replace("{TimeInQueue}",S),""==e.Content.QueueImage)(C=s(y)).find(".avatar").remove(),y=C[0].outerHTML;r+=y,r+=Velaro.Engagement.GetConversationHTML(),Velaro.Engagement.BindButtons(),Velaro.Engagement.QueuedTimerRunning||!Velaro.Engagement.Settings.QueueTimeEnabled||x||(Velaro.Engagement.StartQueueTimer(""),Velaro.Engagement.QueuedTimerRunning=!0),!this.HasEnteredQueue()&&Velaro.Engagement.Settings.QueueIncomingRequests&&(this.SetEnteredQueue(!0),"function"==typeof Velaro.OnEnterQueue&&Velaro.OnEnterQueue());break;case f.POSTCHAT:if(c("Template set to postchat"),this.canCloseInline=!0,!e.Content||!e.Content.Survey||0===e.Content.Survey.SurveyQuestions.length)return void Velaro.Engagement.Destroy();r+='<div id="velaro-survey"></div>';var w=function(t){c("Submitted postchat survey"),Velaro.Engagement.DisplayLoadingContent(),Velaro.Engagement.SubmitSurveyResults(g.POSTCHAT,t,function(){Velaro.Engagement.DisplaySurveyConfirmation(e.Content.ConfirmationText)})};t=function(){return Velaro.Survey.renderSurvey({survey:e.Content.Survey,headerText:e.Content.HeaderText,submitButtonText:e.Content.ButtonText,onSubmit:w})}}var V=Velaro.Engagement.PreviousTemplate&&Velaro.Engagement.PreviousTemplate==f.PRECHAT&&e.ContentType===f.PRECHAT||Velaro.Engagement.PreviousTemplate==f.QUEUED&&e.ContentType===f.PRECHAT||Velaro.Engagement.PreviousTemplate==f.QUEUED&&e.ContentType===f.QUEUED;!V&&Velaro.Engagement.PreviousTemplate&&Velaro.Engagement.PreviousTemplate==f.QUEUED&&e.ContentType!=f.QUEUED&&(window.clearInterval(Velaro.Engagement.QueueTimerId),Velaro.Engagement.QueuedTimerRunning=!1),Velaro.Engagement.PreviousTemplate=e.ContentType;var I=new RegExp("{UrlContentDelivery}","g");if(r=r.replace(I,Velaro.Globals.UrlContentDelivery),V||e.ContentType!=f.QUEUED||Velaro.Engagement.SelectedTemplate!=f.QUEUED){if(!(e.ContentType!=f.ASSIGNED&&e.ContentType!=f.QUEUED||Velaro.Engagement.SelectedTemplate!=f.ASSIGNED&&Velaro.Engagement.SelectedTemplate!=f.QUEUED&&Velaro.Engagement.SelectedTemplate!=f.INTRODUCTION)){var A=document.createElement("div");A.innerHTML=r,s(A).find(".chatbody").html(s("#velaro-content").find(".chatbody").html()),r=A.innerHTML}V||(s("#velaro-content").html(r),s(document).trigger("velaro:content:update")),s("#velaro-chat-text").val(i),a&&s("#velaro-chat-text").focus(),t&&(t(),t=null),e.ContentType==f.ASSIGNED&&s(".velarostars").rateit({step:1}),e.ContentType==f.QUEUED&&(s("#velaro-chat-text").attr("disabled","disabled"),s("#velaro-send-text").attr("disabled","disabled")),Velaro.Engagement.ToggleTypingIndicator(!1)}else s("#velaro-content").html(r),s(document).trigger("velaro:content:update"),s(".queueheader").html(s(A).find(".queueheader").html());e.ContentType==f.QUEUED&&Velaro.Engagement.SelectedTemplate<=f.INTRODUCTION&&Velaro.Engagement.AppendMessage({DateCreated:new Date,FromDisplay:Velaro.Engagement.Settings.NoticeFromText,Text:e.Content.ConnectingText,LineCreator:h.Notice}),Velaro.Engagement.SelectedTemplate=e.ContentType,l()<10&&s("#upload-chat").hide(),u()},TrackedLines:new Array,UpdateQueuePosition:function(e){s("#velaro-content .position-text").text(Velaro.Engagement.Settings.QueuePositionText.replace("@QueuePosition",e).replace("@QueueEstimatedWait",Velaro.Engagement.EstimatedWaitTime))},RemoveLine:function(e){s("[data-velarolineid="+e+"]").closest(".client").remove()},AppendMessage:function(e,t){if(t)return s("[data-velarolineid="+t+"]").parent().text(new Date(e.DateCreated).toLocaleTimeString()),void Velaro.Engagement.TrackedLines.push(e);if(Velaro.Engagement.RefreshingLines&&(Velaro.Engagement.RetryGetNewVisitorLines=!0),e){if(e.ID){var n=Velaro.Engagement.TrackedLines.map(function(e){return e.ID});if(-1!==s.inArray(e.ID,n))return;Velaro.Engagement.TrackedLines.push(e)}var r;switch(e.LineCreator){case 1:r=Velaro.Template.AgentLine;break;case 2:case 3:r=Velaro.Template.SystemLine||Velaro.Template.VisitorLine;break;case 4:r=Velaro.Template.VisitorLine;break;case 5:r=Velaro.Template.SystemLine||Velaro.Template.VisitorLine;break;default:console.warn("message.LineCreator",e.LineCreator,"unhandled")}var a='<i class="fa-velaro fa-velaro-circle-o-notch fa-velaro-spin" data-velarolineid="'+e.ID+'" title="Sending..."></i>',l=e.Unsent?a:new Date(e.DateCreated).toLocaleTimeString();Velaro.Engagement.Settings.ShowRelativeLineDates&&(l=o.default(e.DateCreated)),r=(r=(r=(r=(r=(r=r.replace("{timestamp_ID}","timestamp_"+e.ID)).replace("{Timestamp}",l)).replace("{DisplayName}",e.FromDisplay)).replace("{Text}",Velaro.linkifyStr(e.Text))).replace("{thumbsup_contentID}","thumbsup_"+e.ID)).replace("{thumbsdown_contentID}","thumbsdown_"+e.ID);var c=new RegExp("{UrlContentDelivery}","g");r=r.replace(c,Velaro.Globals.UrlContentDelivery);var u=s("<div>").html(r);u.find("a").prop("target","blank"),r=u.html(),s("#view-chat").append(r),this.HookUpExitChatLink(),s("#quick-replies").remove();var d=e.QuickReplies;if(d&&d.length?(Velaro.Storage.set(Velaro.Engagement.quickRepliesKey,JSON.stringify(d)),Velaro.Engagement.LoadQuickReplies(d)):(d=Velaro.Storage.get(Velaro.Engagement.quickRepliesKey))&&Velaro.Engagement.LoadQuickReplies(JSON.parse(d)),s("#thumbsup_"+e.ID).click({id:e.ID,rating:2},Velaro.Engagement.ContentRatingClick),s("#thumbsdown_"+e.ID).click({id:e.ID,rating:1},Velaro.Engagement.ContentRatingClick),Velaro.Engagement.Settings.AllowChatLineRating&&Velaro.Engagement.Settings.InlineWindowLineRatingEnabled){s("[id^=line-rating]").show();var p=s("#thumbsup_"+e.ID+" img"),g=s("#thumbsdown_"+e.ID+" img");1===e.Rating?Velaro.Engagement.UpdateLineRatingImage(g,p):2===e.Rating&&Velaro.Engagement.UpdateLineRatingImage(p,g)}else s("[id^=line-rating]").hide();s("#chatwindow-11").length?(s("#chatwindow-11").scrollTop(s("#chatwindow-11")[0].scrollHeight),s("#chatbody").length&&s("#chatbody").scrollTop(s("#chatwindow-11")[0].scrollHeight)):s("#chatwindow-01").length&&s("#chatwindow-01").scrollTop(s("#chatwindow-01")[0].scrollHeight);var f="true"===i.default.get("vInlineExpanded"),h=Velaro.Engagement.GetEngagementID();window.blinkChat||f||!h||(window.blinkChat=setInterval(function(){s("#velarochat-container-dynamic").fadeTo("slow",.5),s("#velarochat-container-dynamic").fadeTo("slow",1)},2e3)),s(document).trigger("velaro:receiveMessage",e)}},HookUpExitChatLink:function(){var e=s("#velaro-exit-chat-lnk");e&&e.on("click",this.OnClickEndChat)},LoadQuickReplies:function(e){s("#view-chat").append('<div id="quick-replies" class="client"></div>');var t=s("#quick-replies");for(var n in e)t.append('<button class="quick-reply"> '+e[n]+"</button>");s("#view-chat .quick-reply").click(Velaro.Engagement.ApplyQuickReply),Velaro.Engagement.QuickRepliesActive=!0},ApplyQuickReply:function(e){var t=e.target.textContent,n=Velaro.Engagement.QueueVisitorMessage.bind(this,t);Object.keys(Velaro.Engagement.VisitorMessageQueue).length>0?n():(Velaro.Chat.SendText(t,function(e){Velaro.Engagement.AppendMessage(e)},n),Velaro.Engagement.RemoveQuickReplies())},RemoveQuickReplies:function(){Velaro.Engagement.QuickRepliesActive&&(Velaro.Engagement.QuickRepliesActive=!1,Velaro.Storage.remove(Velaro.Engagement.quickRepliesKey))},StopBlinking:function(){window.blinkChat&&(s("#velarochat-container-dynamic").fadeTo("fast",1),clearInterval(window.blinkChat),window.blinkChat=null)},RefreshLines:function(e){Velaro.Engagement.TrackedLines=new Array,s("#view-chat").empty();var t=Object.keys(Velaro.Engagement.VisitorMessageQueue).map(function(e){return Velaro.Engagement.VisitorMessageQueue[e]});(e=e.concat(t)).sort(function(e,t){return new Date(e.DateCreated.toString())-new Date(t.DateCreated.toString())}),s.each(e,function(e,t){Velaro.Engagement.AppendMessage(t),4===t.LineType&&Velaro.Chat.PushPage(t.Message)})},ContentRatingClick:function(e){var t=e.data.id,n=e.data.rating,r=s("#thumbsup_"+t),o=s("#thumbsdown_"+t),i=s(r.children()[0]),a=s(o.children()[0]);(s(e.currentTarget).attr("id")===r.attr("id")?Velaro.Engagement.UpdateLineRatingImage(i,a):Velaro.Engagement.UpdateLineRatingImage(a,i))&&(n=0),Velaro.Engagement.SetContentRating(t,n)},SetContentRating:function(e,t){var n={engagementId:Velaro.Engagement.GetEngagementID(),id:e,rating:t};Velaro.Engagement.postVisitor(Velaro.Engagement.getVisitorChatUrl("visitorchat","setcontentrating"),n)},UpdateLineRatingImage:function(e,t){return t.hasClass("fade")||(t.addClass("fade"),t.parent().removeClass("selected")),e.hasClass("fade")?(e.removeClass("fade"),e.parent().addClass("selected"),!1):(e.addClass("fade"),e.parent().removeClass("selected"),!0)},AgentsCurrentlyTyping:new Array,ToggleTypingIndicator:function(e){e?s(".typing-indicator").css("visibility","visible"):(this.AgentsCurrentlyTyping=new Array,s(".typing-indicator").css("visibility","hidden"))},SetTypingAgent:function(e){var t=Velaro.Engagement.Settings.InlineWindowTypingIndicatorText.replace("@AgentName","@AgentTypingDisplayName");this.AgentsCurrentlyTyping.push(e),this.AgentsCurrentlyTyping=s.unique(this.AgentsCurrentlyTyping),t=t.replace("@AgentTypingDisplayName",this.AgentsCurrentlyTyping.join(" and ")),s("#lbl-typing").html(t),s(document).trigger("velaro:agentTyping",e)},StartQueueTimer:function(){Velaro.Engagement.QueueTimerId=window.setInterval(function(){Velaro.Engagement.CurrentQueueWaitTime+=1,s(".time-text").text(Velaro.Engagement.Settings.WaitTimeText+Velaro.Engagement.FormatSeconds(Velaro.Engagement.CurrentQueueWaitTime))},1e3)},FormatSeconds:function(e){var t=Math.floor(e/3600);e-=3600*t;var n=Math.floor(e/60);return(t<10?"0"+t:t)+":"+(n<10?"0"+n:n)+":"+((e-=60*n)<10?"0"+e:e)},ToSeconds:function(e){var t=-1!=e.indexOf("."),n=t?e.split(".")[0]:0;e=t?e.split(".")[1]:e;var r=parseInt(e.split(":")[0]||0),o=parseInt(e.split(":")[1]||0),i=parseInt(e.split(":")[2]||0);return parseInt(24*n*3600+3600*r+60*o+i)},BindButtons:function(){Velaro.Engagement.Settings.EnableVisitorsToCopyTranscriptsToClipboard||s(document).on("copy",".chatbody",function(e){e.preventDefault()}),s(document).off("click","#velaro-send-text"),s(document).on("click","#velaro-send-text",function(){var e=s("#velaro-chat-text").val();if(e){if(Velaro.Engagement.SelectedTemplate==f.INTRODUCTION)Velaro.Engagement.SetContentTemplate({ContentType:f.QUEUED,Content:{QueueImage:"",ConnectingText:Velaro.Engagement.Settings.QueueSystemMessage,Position:"",EstimatedWaitTimeText:""}}),Velaro.Engagement.RequestEngagement({IntroMessage:e},Velaro.Engagement.HandleEngagementResponse);else{var t=Velaro.Engagement.QueueVisitorMessage.bind(this,e);Object.keys(Velaro.Engagement.VisitorMessageQueue).length>0?t():Velaro.Chat.SendText(e,function(e){Velaro.Engagement.AppendMessage(e)},t),Velaro.Engagement.RemoveQuickReplies()}s("#velaro-chat-text").val(""),s("#velaro-chat-text").focus()}}),s(document).off("keydown","#velaro-chat-text"),s(document).on("keydown","#velaro-chat-text",function(e){if("13"==e.which&&!e.shiftKey)return s("#velaro-send-text").click(),!1;Velaro.Engagement.SelectedTemplate==f.ASSIGNED&&Velaro.Engagement.SetVisitorTyping()}),s(document).off("click","#upload-chat"),s(document).on("click","#upload-chat",function(e){e.preventDefault(),Velaro.Engagement.CreateChatOverlay('<form id="velaro-upload" enctype="multipart/form-data"><input name="file" id="velaro-file" type="file" /></form><br/><button class="velaro-action-overlay-button" type="button" onclick="Velaro.Engagement.UploadVisitorFile();">'+Velaro.Engagement.Settings.InlineWindowUploadText+"</button>")}),s(document).off("click","#end-chat"),s(document).on("click","#end-chat",function(e){e.preventDefault(),Velaro.Engagement.OnClickEndChat()}),s(document).off("click","#btnExitChat"),s(document).on("click","#btnExitChat",function(e){e.preventDefault(),Velaro.Engagement.ExitChat()}),s(document).off("click","#print-chat"),s(document).on("click","#print-chat",function(e){e.preventDefault();var t=s("#view-chat").clone();t.find("#line-rating").remove();var n=window.open();n.document.write("<link rel='stylesheet' href='"+Velaro.Globals.UrlContentDelivery+"css/printchat.css'>"+t[0].outerHTML);var r=0,o=setInterval(function(){var e=n.document.querySelector("body").innerHTML;console.log(e.length),e.length>0&&e.length===r?(clearInterval(o),n.document.close(),n.focus(),n.print(),n.close()):r=e.length},300)}),s(document).off("click","#email-chat"),s(document).on("click","#email-chat",function(e){e.preventDefault(),Velaro.Engagement.CreateChatOverlay('<label id="email-text">'+Velaro.Engagement.Settings.EmailPopupText+'</label><input name="transcript-email" id="velaro-transcript-email" type="text" /><br/><button class="velaro-action-overlay-button" id="velaro-transcript-email-button" type="button">'+Velaro.Engagement.Settings.InlineWindowEmailText+"</button>"),s(document).on("click","#velaro-transcript-email-button",function(){var e=s("#velaro-transcript-email").val();if(!/^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i.test(e))return s("#email-text").text(Velaro.Engagement.Settings.InvalidEmailText),void s("#email-text").css("color","red");Velaro.Engagement.EmailVisitorTranscriptOnChatEnd(e),Velaro.Engagement.RemoveChatOverlay()})}),s(document).off("rated",".rateit"),s(document).on("rated",".rateit",function(e){e.preventDefault();var t=s(this).rateit("value");Velaro.Engagement.RateEngagement(t),Velaro.Engagement.CurrentChatRating=t})},OnClickEndChat:function(){Velaro.Engagement.SelectedTemplate!==f.UNAVAILABLE_SURVEY&&Velaro.Engagement.SelectedTemplate!==f.UNAVAILABLE_TEXT?Velaro.Engagement.CreateChatOverlay('<span class="end-chat-text">'+Velaro.Engagement.Settings.EndChatPopupText+'</span><br/><button id="btnExitChat" class="velaro-action-overlay-button" type="button" onclick="">'+Velaro.Engagement.Settings.InlineWindowEndChatText+"</button>"):Velaro.Engagement.ExitChat()},SetVisitorTyping:function(){if(!Velaro.Engagement.visitorTypingTimeout){Velaro.Engagement.visitorTypingTimeout=setTimeout(function(){Velaro.Engagement.visitorTypingTimeout=null},3e3);var e={engagementId:Velaro.Engagement.GetEngagementID()};Velaro.Engagement.postVisitor(Velaro.Engagement.getVisitorChatUrl("visitorchat","settyping"),e)}},NotifyInlineMinimized:function(){var e={engagementId:Velaro.Engagement.GetEngagementID()};Velaro.Engagement.postVisitor(Velaro.Engagement.getVisitorChatUrl("visitorchat","inlineminimized"),e)},getVisitorChatUrl:function(e,t){return Velaro.Globals.UrlEngagementSignalR+"v1/"+Velaro.Globals.ActiveSite+"/"+e+"/"+(t||"")},getEngagementUrl:function(e,t){return Velaro.Globals.UrlEngagement+"v1/"+Velaro.Globals.ActiveSite+"/"+e+"/"+(t||"")},postVisitor:function(e,t,n){var r={type:"POST",data:JSON.stringify(t),contentType:"application/json; charset=utf-8",success:function(e){n&&n(e)},error:function(e){n&&n(null,e)},url:e};l()<=9&&(r.type="GET",r.url+="/jsonp",r.dataType="jsonp",r.data=t,r.contentType="application/json; charset=utf-8"),s.ajax(r)},ExitVisitor:function(e){var t=Velaro.Engagement.GetEngagementID();if(t){var n=!!Velaro.Engagement.TrackedLines.filter(function(e){return e.LineCreator===h.Visitor}).length,r={engagementId:t,visitorId:Velaro.Engagement.GetVisitorID(),groupId:Velaro.Engagement.GroupID,wasChatting:Velaro.Engagement.SelectedTemplate===f.ASSIGNED&&n};Velaro.Engagement.postVisitor(this.getVisitorChatUrl("visitorchat","exitvisitor"),r,e)}else c("Missing engagement id when exiting visitor","error")},ExitChat:function(){c("Clicked end chat");var e=Velaro.Engagement.SelectedTemplate===f.POSTCHAT;window.removeEventListener("beforeunload",Velaro.Engagement.OnPopoutBeforeUnload),Velaro.Engagement.DisplayLoadingContent(),Velaro.Engagement.ExitVisitor(function(t){e||"function"!=typeof Velaro.OnExitChat||Velaro.OnExitChat(Velaro.Engagement.AgentID,Velaro.Engagement.AgentInternalID,Velaro.Engagement.EngagementID,Velaro.Engagement.GroupID,Velaro.Engagement.VisitorID),Velaro.Chat.Disconnect(),t?Velaro.Engagement.HandleEngagementResponse(t):Velaro.Engagement.Destroy()}),Velaro.Engagement.RemoveChatOverlay()},VisitorMessageQueue:{},QueueVisitorMessage:function(e){var t={DateCreated:new Date,FromDisplay:Velaro.Visitor.DisplayName,Text:e,ID:-Number(new Date),LineCreator:h.Visitor,Unsent:!0};Velaro.Engagement.VisitorMessageQueue[t.ID]=t,Velaro.Engagement.AppendMessage(t);var n=function(){Velaro.Engagement.RunningVisitorQueue=!0;var e=new s.Deferred;Object.keys(Velaro.Engagement.VisitorMessageQueue).map(function(e){return Velaro.Engagement.VisitorMessageQueue[e]}).map(function(e){return function(){var t=new s.Deferred;return Velaro.Chat.SendText(e.Text,function(e,t,n){delete Velaro.Engagement.VisitorMessageQueue[e.ID],Velaro.Engagement.AppendMessage(n,e.ID),t.resolve()}.bind(this,e,t),function(e,t,n){400===n.status?(delete Velaro.Engagement.VisitorMessageQueue[t.ID],Velaro.Engagement.RemoveLine(t.ID),e.resolve()):e.reject()}.bind(this,t,e)),t}}).reduce(function(e,t){return e.then(t)},(new s.Deferred).resolve()).then(function(){e.resolve()}).fail(function(){e.resolve()}),e.done(function(){var e=Object.keys(Velaro.Engagement.VisitorMessageQueue),t=!!Velaro.Engagement.GetEngagementID();e.length&&t?setTimeout(n.bind(this),5e3):(Velaro.Engagement.RunningVisitorQueue=!1,t||c("Missing engagement id when sending queued visitor text","error"))})};!Velaro.Engagement.RunningVisitorQueue&&Velaro.Engagement.GetEngagementID()&&(Velaro.Engagement.RunningVisitorQueue=!0,setTimeout(n.bind(this),5e3))},DisplayLoadingContent:function(e){e||(e="#velaro-content"),s(e).html("<img style='height: 15%; margin: auto; position: absolute; top: 0; left: 0; right: 0; bottom: 0;' src='"+Velaro.Globals.UrlContentDelivery+"Content/Images/loading.gif'/>"),s(document).trigger("velaro:content:update")},GetConversationHTML:function(){var e=Velaro.Template.Conversation,t=Velaro.Engagement.Settings.InlineWindowTypingIndicatorText.replace("@AgentName","@AgentTypingDisplayName");return e=(e=(e=(e=(e=(e=(e=e.replace("{Print}",Velaro.Engagement.Settings.InlineWindowPrintText)).replace("{Email}",Velaro.Engagement.Settings.InlineWindowEmailText)).replace("{}",Velaro.Engagement.Settings.InlineWindowEndChatText)).replace("{UploadText}",Velaro.Engagement.Settings.InlineWindowUploadText)).replace("{AgentTyping}",t)).replace("{ChatTypeHerePlaceholder}",Velaro.Engagement.Settings.ChatTypeHerePlaceholder)).replace("{ChatSubmitButtonText}",Velaro.Engagement.Settings.ChatSubmitButtonText)},Settings:{},CreateChatOverlay:function(e,t){Velaro.Engagement.RemoveChatOverlay();var n=s("#widget-area-07").length?s("#widget-area-07"):s("#widget-area-01"),r=n.offset(),o="";t||(o='<div id="velaro-action-cancel"><button id="velaro-action-cancel-button" type="button" onclick="Velaro.Engagement.RemoveChatOverlay();">'+Velaro.Engagement.Settings.PromptCancelText+"</button></div>");var i=s('<div id="velaro-chat-overlay" class="velaro-content"><div id="velaro-action-container"><div id="velaro-action-inner">'+e+o+"</div></div>");Velaro.Globals.PopoutChat?(s(i).css({top:r.top,left:r.left,zIndex:1e4,position:"absolute",height:n.height(),width:n.width(),background:"#eee"}),s("body").append(i)):(s(i).css({top:0,zIndex:1e4,position:"absolute",height:n.height(),width:n.width(),background:"#eee"}),s("#velarochat-container-dynamic").length?s("#velarochat-container-dynamic").append(i):s("#velaro-content").append(i))},RemoveChatOverlay:function(){s("#velaro-chat-overlay").remove()},ApplySocialSettings:function(){this.Settings.InLineChatFacebookVisible||this.Settings.InLineChatTwitterVisible||this.Settings.InLineChatGooglePlusVisible||this.Settings.InLineChatLinkedInVisible?(this.Settings.InLineChatFacebookVisible||s("#velaro-facebook-link").hide(),this.Settings.InLineChatTwitterVisible||s("#velaro-twitter-link").hide(),this.Settings.InLineChatGooglePlusVisible||s("#velaro-google-link").hide(),this.Settings.InLineChatLinkedInVisible||s("#velaro-linkedin-link").hide()):s("#velaro-social-links").hide()},CurrentChatRating:0,SubmitSurveyResults:function(e,t,n){var r={GroupID:Velaro.Engagement.GroupID,SiteID:Velaro.Globals.ActiveSite,VisitorID:Velaro.Engagement.GetVisitorID(),EngagementID:Velaro.Engagement.GetEngagementID()||Velaro.Engagement.GetPreEngagementID(),SurveyID:Velaro.Survey.CurrentSurveyId,SurveyType:e,Answers:t,CallId:Velaro.Call.GetCallId(),ClickToCall:Velaro.Globals.ClickToCall,GroupAvailabilityStatus:Velaro.Engagement.GroupAvailabilityStatus};l()>9?s.ajax(Velaro.Globals.GetEngagementUrl("engagement","submitsurvey"),{type:"POST",data:JSON.stringify(r),contentType:"application/json; charset=utf-8",success:function(){null!=n&&n()},error:Velaro.Engagement.Destroy}):s.ajax(Velaro.Globals.GetEngagementUrl("engagement","submitsurvey/jsonp"),{type:"GET",dataType:"jsonp",data:r,contentType:"application/json; charset=utf-8",success:function(){null!=n&&n()},error:Velaro.Engagement.Destroy})},ReceivedEngagementClosed:function(){Velaro.Engagement.SelectedTemplate===f.ASSIGNED&&s(document).trigger("velaro:chatClosed")},Destroy:function(e){Velaro.Engagement.ClearEngagementInfo(),e||Velaro.Engagement.HideChat(),s(document).trigger("velaro:engagement:destroy")},HideChat:function(){Velaro.Globals.PopoutChat||Velaro.Engagement.IsMobile()?window.close():(s("#velarochat-full").hide(),s("#velarochat").removeClass("expanded"),s("#end-chat").hide(),s("#pop-out-chat").hide(),i.default.remove("vInlineExpanded",{path:"/",domain:Velaro.Globals.DomainScope,sameSite:"lax"}),Velaro.Engagement.DisplayLoadingContent())},ClearEngagementInfo:function(){c("Clearing engagement info"),Velaro.Globals.InviteConversionID=null,Velaro.Engagement.TrackedLines=new Array,Velaro.Engagement.GroupID=Velaro.Globals.ActiveGroup,window.velaro_engagement_groupId=null,i.default.remove("velaro_engagement_groupId",{path:"/",domain:Velaro.Globals.DomainScope,sameSite:"lax"}),window.vEngagementID=null,i.default.remove("vEngagementID",{path:"/",domain:Velaro.Globals.DomainScope,sameSite:"lax"}),window.vContentType=null,i.default.remove("vContentType",{path:"/",domain:Velaro.Globals.DomainScope,sameSite:"lax"}),window.vEnteredQueue=null,i.default.remove("vEnteredQueue",{path:"/",domain:Velaro.Globals.DomainScope,sameSite:"lax"}),Velaro.Engagement.SetPreEngagementID(null),Velaro.Engagement.PreviousTemplate=null,Velaro.Engagement.SelectedTemplate=0,window.clearInterval(Velaro.Engagement.QueueTimerId),Velaro.Engagement.QueuedTimerRunning=!1,Velaro.Storage.remove(Velaro.Engagement.quickRepliesKey),Velaro.Chat.Disconnect(),Velaro.Call.ClearCallInfo()},DisplaySurveyConfirmation:function(e){s("#velarochat #end-chat").hide(),s("#velarochat #pop-out-chat").hide(),Velaro.Engagement.Destroy(!0),s("#velaro-content").html("<div class=survey-confirmation-text style='text-align:center'>"+e+"</div><button class='velaro-action-container-button' type='button' onclick='Velaro.Engagement.HideChat()'>"+Velaro.Engagement.Settings.CloseConfirmationText+"</button></div>"),s(document).trigger("velaro:content:update")},PerformKBLookup:function(e,t){s.ajax(Velaro.Globals.GetMainUrl("KBSearch","Search"),{type:"POST",data:JSON.stringify({SearchQuery:e}),dataType:"json",contentType:"application/json",complete:function(e){if(e){var n=JSON.parse(e.responseText),r=[];for(var o in n){var i=n[o];i&&i.Articles&&i.Articles.length&&(r=r.concat(i.Articles))}if(r.length)for(var o in Velaro.Engagement.SetContentTemplate({ContentType:f.KBSEARCH}),r){var a=r[o],l=Velaro.Template.KnowledgeBaseLine.replace("{KB_URL}",a.Url).replace("{KB_Name}",a.Name);s("#view-chat").append(l)}else t()}else t()}})}};var u=function(){Velaro.Engagement.Settings.InlineWindowPrintEnabled||s("#print-chat").hide(),Velaro.Engagement.Settings.InlineWindowUploadEnabled||s("#upload-chat").hide(),Velaro.Engagement.Settings.InlineWindowEmailEnabled||s("#email-chat").hide()},d=null;function p(e){d&&d!==f.QUEUED&&e.ContentType===f.QUEUED&&s(document).trigger("velaro:queueEntered"),d===f.QUEUED&&e.ContentType!==f.QUEUED&&s(document).trigger("velaro:queueExited"),d!==f.ASSIGNED&&e.ContentType===f.ASSIGNED&&s(document).trigger("velaro:agentAssigned"),d!==f.PRECHAT&&e.ContentType===f.PRECHAT&&s(document).trigger("velaro:prechat:shown"),d!==f.POSTCHAT&&e.ContentType===f.POSTCHAT&&e.Content&&e.Content.Survey&&s(document).trigger("velaro:postchat:shown"),d!==f.UNAVAILABLE_SURVEY&&e.ContentType===f.UNAVAILABLE_SURVEY&&s(document).trigger("velaro:unavailable:shown"),d=e.ContentType}var g={PRECHAT:1,POSTCHAT:2,UNAVAILABLE:3},f={CLOSED:0,PRECHAT:1,INTRODUCTION:2,UNAVAILABLE_SURVEY:3,UNAVAILABLE_TEXT:4,UNAVAILABLE_REDIRECT:5,ASSIGNED:6,QUEUED:7,POSTCHAT:8,KBSEARCH:9,CALL:10},h={Agent:1,System:2,Notice:3,Visitor:4,Bot:5};Velaro.Engagement.LineCreatorEnum=h;var m={AgentsOffline:0,AgentsUnavailable:1,AgentsBusy:2,OutOfSchedule:3,Available:4},v={Survey:1,JustText:2,RedirectPage:3,Html:4},y={TestEvent:0,VisitorClickedInline:1,VisitorClickedPopoutButton:2,VisitorShownPrechatSurvey:3,VisitorShownPostchatSurvey:4,VisitorShownMissedchatSurvey:5,VisitorSubmittedPrechatSurvey:6,VisitorSubmittedPostchatSurvey:7,VisitorSubmittedMissedchatSurvey:8,VisitorEnteredQueue:9,VisitorExitedQueue:10,VisitorEnteredChat:11,VisitorSentChatLine:12,VisitorExitedChat:13,ChatWasTransferred:14,AgentExitedChat:15,AgentLoggedIn:16,AgentLoggedOut:17,AgentChangedAvailabilityToAvailable:18,AgentChangedAvailabilityToUnavailable:19,AgentSurveySubmitted:20};Velaro.Engagement.TemplateTypeMap=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=864e5;t.default=function(e){var t=new Date(e),n=function(e){var t=(new Date).valueOf()-e.valueOf();return t<=r?"Today":t<=2*r?"Yesterday":null}(t);return n||(n=t.toLocaleDateString()),n+" at "+t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o,i=r(n(4)),a=n(5),s=n(1),l=!1,c=!0;function u(){return n(86)}window.Velaro.Chat={IsPolling:!1,VisitorID:null,InitialConnectionComplete:!1,OnFocus:function(){var e=Velaro.Chat.VisitorID;e&&o.connect(e)},Connect:function(e){if(this.VisitorID=e,!l){(o=u()).initialize(),"true"===i.default.get("vInlineExpanded")&&(s("#end-chat").show(),s("#pop-out-chat").show()),o.onReceiveEngagementContent(function(e){Velaro.Engagement.HandleEngagementResponse(e)}),o.onReceiveLine(function(e){Velaro.Chat.AgentTypingTimer=null,Velaro.Engagement.ToggleTypingIndicator(!1),Velaro.Engagement.AppendMessage(e),4==e.LineType&&Velaro.Chat.PushPage(e.Text),5==e.LineType&&(a("Received chat closed message"),s("#velaro-chat-text").attr("disabled",!0),o.disconnect())}),o.onReceiveTyping(function(e){Velaro.Chat.DisplayTypingIndicator(e)}),o.onStateChanged(function(e){1===e.newState&&Velaro.Chat.OnConnected()}),o.onReconnecting(function(){a("Reconnecting to signalR. IsPolling is now true"),Velaro.Chat.IsPolling=!0}),o.onReceiveLanguageUpdate(function(){Velaro.Engagement.GetNewVisitorLines(0,Velaro.Engagement.RefreshLines)}),o.onReceiveEngagementClosed(function(){a("Received engagement closed event"),Velaro.Engagement.ReceivedEngagementClosed()}),o.onUpdateQueuePosition(function(e){Velaro.Engagement.UpdateQueuePosition(e)});var t=o.connect(e);setInterval(function(){if(Velaro.Chat.IsPolling&&Velaro.Engagement.GetEngagementID()&&Velaro.Engagement.SelectedTemplate==Velaro.Engagement.TemplateTypeMap.ASSIGNED){for(var e=0,t=0;t<Velaro.Engagement.TrackedLines.length;t++){var n=Velaro.Engagement.TrackedLines[t];n.ID>e&&4!==n.LineCreator&&(e=n.ID)}Velaro.Engagement.GetNewVisitorLines(e,function(e){s.each(e,function(e,t){Velaro.Engagement.AppendMessage(t),4==t.LineType&&Velaro.Chat.PushPage(t.Text)})},function(e){console.log(e)})}},15e3),setInterval(function(){Velaro.Chat.IsPolling&&Velaro.Engagement.SelectedTemplate==Velaro.Engagement.TemplateTypeMap.QUEUED&&Velaro.Engagement.RequestEngagement({VisitorID:e},Velaro.Engagement.HandleEngagementResponse)},15e3);return setInterval(function(){Velaro.Chat&&Velaro.Chat.IsPolling&&Velaro.Engagement.KeepVisitorAlive()},2e4),c&&window.addEventListener("focus",this.OnFocus),c=!1,l=!0,t}},Disconnect:function(){a("Disconnecting from sigR"),s("#end-chat").hide(),u().disconnect(),Velaro.Chat.IsPolling=!1,Velaro.Chat.InitialConnectionComplete=!1,l=!1,window.removeEventListener("focus",this.OnFocus)},OnConnected:function(){a("Connected to sigR"),Velaro.Chat.IsPolling=!1,Velaro.Chat.InitialConnectionComplete&&Velaro.Chat.OnReconnected(),Velaro.Chat.InitialConnectionComplete=!0},OnReconnected:function(){a("Reconnected to sigR"),Velaro.Chat.ReloadEngagement()},ReloadEngagement:function(){Velaro.Engagement.GetEngagementID()&&(a("Reloading engagement from reconnect to sigR"),console.log("reconnected: refreshing engagement"),Velaro.Engagement.RequestEngagement(null,Velaro.Engagement.HandleEngagementResponse))},AgentTypingTimer:null,DisplayTypingIndicator:function(e){Velaro.Engagement.SetTypingAgent(e),Velaro.Engagement.ToggleTypingIndicator(!0),null!=Velaro.Chat.AgentTypingTimer&&clearTimeout(Velaro.Chat.AgentTypingTimer),Velaro.Chat.AgentTypingTimer=setTimeout(function(){Velaro.Engagement.ToggleTypingIndicator(!1)},3e3)},SendText:function(e,t,n){Velaro.Engagement.SendVisitorText(e,function(e,r){r&&n?n(r):t&&t(e)})},SendCobrowsingRequest:function(e){var t=Velaro.Engagement.getVisitorChatUrl("VisitorChat","SendCobrowsingRequestToAgent");Velaro.Engagement.postVisitor(t,{engagementId:Velaro.Engagement.EngagementID,visitorId:Velaro.Visitor.ID,link:e})},PushPage:function(e){var t=e.substring(e.indexOf(":")+1);0==!(t=t.replace(/^\s+|\s+$/g,"")).indexOf("http")&&(t="http://"+t);var n=t.match(/:\/\/(.[^/]+)/)[1];window.location.href.match(/:\/\/(.[^/]+)/)[1]==n&&(Velaro.Globals.PopoutChat?window.opener&&(window.opener.location.href=t):window.location.href=t)}}},function(e,t,n){"use strict";n(4);var r,o,i=n(1),a=n(87),s=!1,l={},c=!1;window.Velaro.testDisconnect=function(){c=!0,l.onReconnecting(),r.stop()},window.Velaro.testReconnect=function(){c=!1,r.start().done(function(){l.onReconnected&&l.onReconnected(),a.start()})},e.exports={initialize:function(){(r=i.hubConnection(Velaro.Globals.UrlEngagementSignalR+"signalr")).logging=!0,r.disconnected(function(){a.stop(),s?c?console.log("testingDisconnect is true, blocking reconnect"):(console.log("connection lost. reconnecting in 5 seconds."),setTimeout(function(){r.start().done(function(){a.start(),console.log("reconnected"),s=!1,l.onReconnected&&l.onReconnected()})},5e3)):console.log("connection stopped.")}),r.reconnecting(function(){console.log("reconnecting"),s=!0,a.stop()}),r.reconnected(function(){console.log("reconnected"),s=!1,a.start()}),o=r.createHubProxy("EngagementHub")},connect:function(e){if(c)console.log("testingDisconnect is true, blocking connect");else{var t=Velaro.Engagement.GetEngagementID();if(t)return r.qs={visitorId:e,engagementId:t,siteId:Velaro.Globals.ActiveSite},r.start({waitForPageLoad:!1}).done(function(){a.start()})}},disconnect:function(){r&&r.stop()},onReceiveEngagementContent:function(e){o.on("receiveEngagementContent",e)},onReceiveLine:function(e){o.on("receiveLine",e)},onReceiveTyping:function(e){o.on("receiveAgentTyping",e)},onReceiveLanguageUpdate:function(e){o.on("receiveLanguageUpdate",e)},onReceiveEngagementClosed:function(e){o.on("receiveEngagementClosed",e)},onUpdateQueuePosition:function(e){o.on("updateQueuePosition",e)},onStateChanged:function(e){r.stateChanged(e)},onReconnecting:function(e){l.onReconnecting=e,r.reconnecting(e)},onReconnected:function(e){l.onReconnected=e,r.reconnected(e),s=!1}}},function(e,t,n){"use strict";var r,o=n(1),i=n(6);function a(){var e=Velaro.Engagement.GetEngagementID();if(!e)return console.log("ping interval cleared due to missing engagementId"),void clearInterval(r);var t={visitorId:Velaro.Visitor.ID,engagementId:e},n=Velaro.Engagement.getVisitorChatUrl("VisitorChat","Ping");i()>9?o.ajax({url:n,method:"post",dataType:"json",data:JSON.stringify(t),contentType:"application/json"}):o.ajax({url:n,method:"get",dataType:"jsonp",data:t})}e.exports={start:function(){console.log("ping.start called"),clearInterval(r),a(),r=setInterval(function(){a()},3e4)},stop:function(){console.log("ping.stop called"),clearInterval(r)}}},function(e,t,n){"use strict";var r=n(1);window.Velaro.Events={onQueueEntered:function(e){r(document).on("velaro:queueEntered",function(){e()})},onQueueExited:function(e){r(document).on("velaro:queueExited",function(){e()})},onAgentAssigned:function(e){r(document).on("velaro:agentAssigned",function(){e()})},onReceiveMessage:function(e){r(document).on("velaro:receiveMessage",function(t,n){e(n)})},onAgentTyping:function(e){r(document).on("velaro:agentTyping",function(t,n){e(n)})},onChatClosed:function(e){r(document).on("velaro:chatClosed",function(){e()})},onChatLoaded:function(e){r(document).on("velaro:chatLoaded",function(){e()})},onEngagementDestroyed:function(e){r(document).on("velaro:engagement:destroy",function(){e()})},onClickedInline:function(e){r(document).on("velaro:inline:click",function(){e()})},onLoadPopoutChat:function(e){r(document).on("velaro:load:popoutchat",function(){e()})},onShowPrechatSurvey:function(e){r(document).on("velaro:prechat:shown",function(){e()})},onShownPostchatSurvey:function(e){r(document).on("velaro:postchat:shown",function(){e()})},onShownUnavailableSurvey:function(e){r(document).on("velaro:unavailable:shown",function(){e()})}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(4));n(12);var i=n(1),a=n(0),s=n(0),l=s.createElement,c=n(92),u=n(2),d=n(3);Velaro.Survey={renderSurvey:function(e,t){if(t=t||document.getElementById("velaro-survey")){if(e.plugins={},e.plug){var n={QuestionLabel:u,QuestionError:d};e.plugins=e.plug(s,a,n)}Velaro.Survey.CurrentSurveyId=e.survey.SurveyID;var r=l(c,e);a.render(r,t)}},ConnectSocial:function(e){if(e){var t=["v1","Social",e,Velaro.Globals.ActiveSite,Velaro.Visitor.ID,o.default.get("vPreEngagementID")],n=Velaro.Globals.UrlEngagement+t.join("/");window.open(n,"_new","width=500, height=500");var r=function(t){try{var n=JSON.parse(t.data);if("velaro:social:callback"!==n.type)return;var o={socialType:e,data:{DisplayName:n.payload.displayName,Email:n.payload.email,HeadshotUrl:n.payload.headshotUrl}};Velaro.Storage.set("social_data",JSON.stringify(o)),i(document).trigger("velaro:social:login",o),window.removeEventListener("message",r)}catch(e){console.error(e)}};window.addEventListener("message",r,!1)}else console.warn("socialType is undefined.")}}},function(e,t,n){"use strict";var r=n(91);function o(){}e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("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");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=o,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";(function(t){var r=n(0),o=n(13).default,i=n(14),a=n(93),s=r.createElement;e.exports=r.createClass({getInitialState:function(){var e=this,t={},n=this.getSocialData();this.props.survey.SurveyQuestions.forEach(function(r){if(r.QuestionType===i.LANGUAGE&&(t[r.QuestionID]="English"),r.QuestionType===i.STARRATING){var o=Velaro.Engagement.CurrentChatRating;t[r.QuestionID]=null===o?null:o}if(r.VariableName||r.QuestionType!==i.NAME||(r.VariableName="Name"),r.VariableName||r.QuestionType!==i.EMAIL||(r.VariableName="Email"),r.VariableName){var a=Velaro.Globals.CustomChatValues;if(a){var s=a[r.VariableName];s&&(t[r.QuestionID]=s)}}e.setSocialValues(n,r,t)});var r=1,o={},a={},s={};this.props.survey.SurveyQuestions.forEach(function(e,t){e.QuestionType===i.PAGEBREAK?r++:(o[r]=o[r]||[],o[r].push(e)),e.QuestionType===i.SECTION&&(a[e.QuestionID]=0,e.SectionID&&e.SurveyQuestionChoices.forEach(function(t){s[t.ChoiceID]=e.SectionID}))}),this.sectionHash=a,this.sectionParents=s,r=0;var l={};return Object.keys(o).forEach(function(e){l[++r]=o[e]}),{currentPage:1,totalPages:r,answers:t,errors:{},pagedQuestions:o=l,submittingSurvey:!1,visibleSections:[]}},formatSocialAnswer:function(e){if(!e||!e.data)return"";var t=e.data;return"DisplayName="+t.DisplayName+"|Email="+t.Email+"|HeadshotUrl="+t.HeadshotUrl},setSocialValues:function(e,t,n){t.QuestionType===i.NAME&&e&&(n[t.QuestionID]=e.data.DisplayName),t.QuestionType===i.EMAIL&&e&&(n[t.QuestionID]=e.data.Email),t.QuestionType===i.SOCIAL&&e&&(n[t.QuestionID]=this.formatSocialAnswer(e))},componentDidMount:function(){var e=this;t(document).on("velaro:social:login",function(t,n){var r=e.state.answers,o=e.getSocialData();e.props.survey.SurveyQuestions.forEach(function(t){e.setSocialValues(o,t,r)}),e.setState({answers:r})})},onChangeSection:function(e,t){var n=this,r=n.sectionHash;r[e]=t;var o=Object.keys(r).map(function(e){var t=r[e];return t||null}),i=o.map(function(e){return e&&n.isSectionVisible(o,e)?e:null});this.setState({visibleSections:i})},isSectionVisible:function(e,t){return-1!==e.indexOf(t)&&(!this.sectionParents.hasOwnProperty(t)||this.isSectionVisible(e,this.sectionParents[t]))},getSocialData:function(){var e=Velaro.Storage.get("social_data");return e?JSON.parse(e):null},onPage:function(e){this.setState({currentPage:this.state.currentPage+e})},onChange:function(e,t){var n=this.state.answers;n[e.QuestionID]=t,this.setState({answers:n})},onSubmit:function(){this.setState({submittingSurvey:!0});var e=this.props.survey,t=this.state,n=function(t){return e.SurveyQuestions.filter(function(e){return e.QuestionID===t})[0]},r=[];for(var i in t.answers)if(t.answers.hasOwnProperty(i)){var a=Number(i),s=n(a);if(0==o(s.sectionID,t.visibleSections))continue;var l=t.answers[a];null==l&&(l=""),l.hasOwnProperty("answer")&&(l=l.answer),l=String(l),r.push({Priority:s.Priority,QuestionID:a,Question:s.QuestionText,QuestionType:s.QuestionType,KBSearchQuestion:s.KBSearchQuestion,Answer:l})}var c=this.props.onSubmit(r.sort(function(e,t){return e.Priority-t.Priority}));c?c.done(function(){this.setState({submittingSurvey:!1})}.bind(this)):this.setState({submittingSurvey:!1})},onValidationError:function(e){this.setState({errors:e})},renderHeader:function(){var e=this.props.headerText;return e?s("div",{className:"velaro-survey-header"},e):null},render:function(){return s("div",{},this.renderHeader(),s(a,{currentPage:this.state.currentPage,totalPages:this.state.totalPages,visibleSections:this.state.visibleSections,submitButtonText:this.props.submitButtonText,survey:this.props.survey,answers:this.state.answers,errors:this.state.errors,onChange:this.onChange,onChangeSection:this.onChangeSection,onSubmit:this.onSubmit,onValidationError:this.onValidationError,plugins:this.props.plugins,pagedQuestions:this.state.pagedQuestions,onPage:this.onPage,submittingSurvey:this.state.submittingSurvey}))}})}).call(this,n(1))},function(e,t,n){"use strict";var r=n(0),o=n(14),i=n(94),a=n(95),s=n(13).default,l=r.createElement;e.exports=r.createClass({getQuestionsForCurrentPage:function(){return this.props.pagedQuestions[this.props.currentPage]||[]},getAnswer:function(e){return this.props.answers[e.QuestionID]||null},renderQuestions:function(){return this.getQuestionsForCurrentPage().map(function(e){return l(a,{key:e.QuestionID,question:e,answer:this.getAnswer(e),onChange:this.props.onChange,error:this.props.errors[e.QuestionID],plugins:this.props.plugins,onChangeSection:this.props.onChangeSection,visibleSections:this.props.visibleSections})}.bind(this))},validateEmail:function(e){var t=this.props.answers[e.QuestionID];return!t||i.test(t)},isValid:function(){var e=this,t=this.props.answers,n=!0,r={};e=this;return this.getQuestionsForCurrentPage().forEach(function(i){if(!1===s(i.SectionID,e.props.visibleSections))return!0;var a=function(n){if(n.QuestionType===o.EMAIL&&0==e.validateEmail(n))return{success:!1,message:Velaro.Engagement.Settings.InvalidEmailText};if(Velaro.Globals&&Velaro.Globals.ClickToCall&&n.QuestionType===o.VISITORPHONE&&(n.Required=!0),!n.Required)return{success:!0};var r=t[n.QuestionID];return r&&r.hasOwnProperty("answer")&&(r=r.answer),null==r||""===r?{success:!1,message:n.ValidationFailedMessage||"Field required"}:{success:!0}}(i);a.success||(n=!1,r[i.QuestionID]=a.message)}),this.props.onValidationError(r),n},onSubmit:function(e){e.preventDefault(),0!=this.isValid()&&this.props.onSubmit()},renderPrevButton:function(){if(this.props.currentPage<2)return null;var e=function(){this.props.onPage(-1)}.bind(this);return l("button",{className:"velaro-survey-prev",type:"button",onClick:e},"Back")},renderNextButton:function(){if(this.props.currentPage>=this.props.totalPages)return null;var e=function(e){e.preventDefault(),this.isValid()&&this.props.onPage(1)}.bind(this);return l("button",{className:"velaro-survey-next",type:"button",onClick:e},"Continue")},renderSubmitButton:function(){return this.props.currentPage<this.props.totalPages?null:l("button",{type:"submit",className:"survey-submit",disabled:this.props.submittingSurvey},this.getSubmitButtonText())},getSubmitButtonText:function(){return this.props.submittingSurvey?"Submitting...":this.props.submitButtonText||"Submit"},renderButtons:function(){var e=null;return this.props.totalPages>1&&(e=[this.renderPrevButton(),this.renderNextButton()]),l("div",{className:"velaro-survey-submit"},e,this.renderSubmitButton())},render:function(){return l("form",{id:"velaro-survey-form",onSubmit:this.onSubmit,noValidate:!0},l("div",{className:"velaro-survey-questions"},this.renderQuestions()),this.renderButtons())}})},function(e,t,n){"use strict";e.exports=/(^[-!#$%&'*+/=?^_`{}|~0-9A-Z]+(\.[-!#$%&'*+/=?^_`{}|~0-9A-Z]+)*|^"([\001-\010\013\014\016-\037!#-\[\]-\177]|\\[\001-\011\013\014\016-\177])*")@((?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}\.?)$)|\[(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}\]$/i},function(e,t,n){"use strict";var r=n(0),o=n(14),i=n(96),a=n(97),s=(n(2),n(3),n(98)),l=n(99),c=n(100),u=n(102),d=n(103),p=n(104),g=n(105),f=n(106),h=n(107),m=n(108),v=n(109),y=n(110),b=n(13).default,E=r.createElement;e.exports=r.createClass({renderQuestionType:function(){var e=this.props.question,t=this.props.answer,n=this.props.onChange,r=this.props.error,b=this.props.onChangeSection,T=function(o){return E(o,{question:e,answer:t,onChange:n,error:r,onChangeSection:b})},C=this.props.plugins[e.QuestionType];if(C)return T(C.component);switch(e.QuestionType){case o.HTML:return E(i,{question:e});case o.TEXT:case o.NAME:case o.VISITORPHONE:return T(s);case o.CLICKTOCALL:return T(y);case o.EMAIL:return T(l);case o.RADIO:case o.GROUPRADIO:return T(p);case o.CHECKBOX:return T(m);case o.DROPDOWN:case o.GROUP:return T(g);case o.TEXTAREA:return T(d);case o.LANGUAGE:return T(h);case o.MULTISELECT:return T(f);case o.STARRATING:return T(c);case o.NPS:return T(u);case o.SOCIAL:return T(a);case o.PAGEBREAK:return null;case o.SECTION:return T(v);default:return console.warn("No component exists for QuestionType:",e.QuestionType),null}},render:function(){var e=this.renderQuestionType();return e&&!1!==b(this.props.question.SectionID,this.props.visibleSections)?E("div",{className:"velaro-survey-question"},e):null}})},function(e,t,n){"use strict";var r=n(0),o=r.createElement;e.exports=r.createClass({render:function(){return o("div",{dangerouslySetInnerHTML:{__html:this.props.question.Html}})}})},function(e,t,n){"use strict";var r=n(1),o=n(0),i=o.createElement;e.exports=o.createClass({getSocialData:function(){var e=Velaro.Storage.get("social_data");return e?JSON.parse(e):{socialType:null}},getInitialState:function(){return{socialType:this.getSocialData().socialType}},componentDidMount:function(){var e=this;r(document).on("velaro:social:login",function(t,n){e.setState({socialType:n.socialType})})},renderButton:function(e){var t=e.ChoiceText;if(this.state.socialType&&this.state.socialType!=t)return null;var n=!1,r={facebook:"Facebook",google:"Google+",twitter:"Twitter",linkedin:"LinkedIn"}[t];return this.state.socialType&&(r="Connected",n=!0),i("button",{className:"velaro-social velaro-"+t,type:"button",disabled:n,onClick:function(){Velaro.Survey.ConnectSocial(t)}},i("img",{src:Velaro.Globals.UrlContentDelivery+"Content/Images/"+t+"-icon.png"}),i("span",{},r))},renderButtons:function(){return this.props.question.SurveyQuestionChoices.map(function(e){return this.renderButton(e)}.bind(this))},render:function(){return i("div",{},this.renderButtons())}})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(3),a=r.createElement;e.exports=r.createClass({onChange:function(e){this.props.onChange(this.props.question,e.target.value)},render:function(){return a("div",{},a(o,{question:this.props.question}),a("input",{type:"text",className:"velaro-survey-textbox",placeholder:this.props.question.PlaceholderText,value:this.props.answer,onInput:this.onChange,onChange:this.onChange}),a(i,{error:this.props.error}))}})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(3),a=r.createElement;e.exports=r.createClass({onChange:function(e){this.props.onChange(this.props.question,e.target.value)},render:function(){return a("div",{},a(o,{question:this.props.question}),a("input",{type:"email",className:"velaro-survey-textbox",placeholder:this.props.question.PlaceholderText,value:this.props.answer,onInput:this.onChange,onChange:this.onChange}),a(i,{error:this.props.error}))}})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(3),a=n(101),s=r.createElement;e.exports=r.createClass({render:function(){return s("div",{},s(o,{question:this.props.question}),s(a,{question:this.props.question,onChange:this.props.onChange,value:this.props.answer}),s(i,{error:this.props.error}))}})},function(e,t,n){"use strict";(function(t){var r=n(0),o=n(0),i=o.createElement;e.exports=o.createClass({componentDidMount:function(){var e=t(r.findDOMNode(this));e.rateit({starwidth:16,starheight:16,resetable:!1,step:1}),e.rateit("value",this.props.value),e.on("rated",function(t){var n=e.rateit("value");this.props.onChange(this.props.question,n)}.bind(this))},componentWillUnmount:function(){t(r.findDOMNode(this)).remove()},shouldComponentUpdate:function(){return!1},render:function(){return i("div")}})}).call(this,n(1))},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(3),a=r.createElement;e.exports=r.createClass({getInitialState:function(){return{answer:this.props.answer}},arr:function(e){for(var t=[],n=0;n<=e;n++)t.push(n);return t},onChange:function(e){var t=Number(e.target.value);this.props.onChange(this.props.question,t),this.setState({answer:t})},renderInputs:function(){var e="velaro-answer-"+this.props.question.QuestionID;return this.arr(10).map(function(t){return a("td",{},a("input",{type:"radio",name:e,onChange:this.onChange,value:t,checked:this.state.answer===t},t))}.bind(this))},renderLabels:function(){return this.arr(10).map(function(e){return a("td",{},e)})},render:function(){return a("div",{},a(o,{question:this.props.question}),a("table",{className:"net-promoter-score-table"},a("tbody",{},a("tr",{},this.renderInputs()),a("tr",{},this.renderLabels()),a("tr",{},a("td",{colspan:5,className:"text-left"},"Not likely"),a("td",{colspan:6,className:"text-right"},"Very likely")))),a(i,{error:this.props.error}))}})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(3),a=r.createElement;e.exports=r.createClass({onChange:function(e){this.props.onChange(this.props.question,e.target.value)},render:function(){return a("div",{},a(o,{question:this.props.question}),a("textarea",{className:"velaro-survey-textbox",placeholder:this.props.question.PlaceholderText,value:this.props.answer,rows:2,cols:20,onInput:this.onChange,onChange:this.onChange}),a(i,{error:this.props.error}))}})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(3),a=r.createElement;e.exports=r.createClass({onChange:function(e){this.props.onChange(this.props.question,e.target.value)},render:function(){var e="velaro-answer-"+this.props.question.QuestionID;return a("div",{},a(o,{question:this.props.question}),this.props.question.SurveyQuestionChoices.map(function(t){return a("div",{className:"velaro-survey-radio"},a("label",{className:"velaro-survey-radio-label"},a("input",{type:"radio",name:e,value:t.ChoiceText,onChange:this.onChange}),t.ChoiceText))}.bind(this)),a(i,{error:this.props.error}))}})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(3),a=r.createElement;e.exports=r.createClass({onChange:function(e){this.props.onChange(this.props.question,e.target.value)},render:function(){return a("div",{},a(o,{question:this.props.question}),a("select",{className:"velaro-survey-select",value:this.props.answer,onChange:this.onChange},a("option",{value:""},this.props.question.DefaultSelectText),this.props.question.SurveyQuestionChoices.map(function(e){return a("option",{value:e.ChoiceText},e.ChoiceText)})),a(i,{error:this.props.error}))}})},function(e,t,n){"use strict";var r=n(0),o=n(0),i=n(2),a=n(3),s=n(1),l=o.createElement;e.exports=o.createClass({onChange:function(e){var t=s(e.target).val()||[];this.props.onChange(this.props.question,t.join(","))},shouldComponentUpdate:function(e){return e.error&&!e.answer},componentDidUpdate:function(e,t){var n=s(r.findDOMNode(this));(this.props.answer||"").split(",").forEach(function(e){n.find('option[value="'+e+'"]').prop("selected",!0)})},render:function(){return l("div",{},l(i,{question:this.props.question}),l("select",{className:"velaro-survey-select",multiple:!0,onChange:this.onChange},this.props.question.SurveyQuestionChoices.map(function(e){return l("option",{value:e.ChoiceText},e.ChoiceText)})),l(a,{error:this.props.error}))}})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(3),a=r.createElement;e.exports=r.createClass({onChange:function(e){this.props.onChange(this.props.question,e.target.value)},render:function(){return a("div",{},a(o,{question:this.props.question}),a("select",{className:"velaro-survey-select",value:this.props.answer,onChange:this.onChange},this.props.question.SurveyQuestionChoices.map(function(e){return a("option",{value:e.ChoiceText},e.ChoiceText)})),a(i,{error:this.props.error}))}})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(3),a=n(1),s=r.createElement;e.exports=r.createClass({isSingleCheckbox:function(e){return!e.currentTarget.form[e.currentTarget.name].length},handleMultipleCheckboxes:function(e){var t=[];a.each(e.currentTarget.form[e.currentTarget.name],function(e,n){n.checked&&t.push(n.value)}),this.props.onChange(this.props.question,t.join(", "))},handleSingleCheckbox:function(e){var t=e.currentTarget.form[e.currentTarget.name];t.checked?this.props.onChange(this.props.question,t.value):this.props.onChange(this.props.question,"")},onChange:function(e){this.isSingleCheckbox(e)?this.handleSingleCheckbox(e):this.handleMultipleCheckboxes(e)},render:function(){var e="velaro-answer-"+this.props.question.QuestionID;return s("div",{},s(o,{question:this.props.question}),this.props.question.SurveyQuestionChoices.map(function(t){return s("div",{className:"velaro-survey-checkbox"},s("label",{className:"velaro-survey-checkbox-label"},s("input",{type:"checkbox",name:e,value:t.ChoiceText,onChange:this.onChange}),t.ChoiceText))}.bind(this)),s(i,{error:this.props.error}))}})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(3),a=r.createElement;e.exports=r.createClass({onChange:function(e){var t=parseInt(e.target.value),n="";t>0&&this.props.question.SurveyQuestionChoices.forEach(function(e){e.ChoiceID===t&&(n=e.ChoiceText)}),this.props.onChangeSection(this.props.question.QuestionID,t);var r={answer:n,answerID:t};this.props.onChange(this.props.question,r)},render:function(){return a("div",{},a(o,{question:this.props.question}),a("select",{className:"velaro-survey-select",value:this.props.answer&&this.props.answer.answerID||0,onChange:this.onChange},a("option",{value:0},this.props.question.DefaultSelectText),this.props.question.SurveyQuestionChoices.map(function(e){return a("option",{value:e.ChoiceID},e.ChoiceText)})),a(i,{error:this.props.error}))}})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=r.createElement;e.exports=r.createClass({onChange:function(e){Velaro.Globals.ClickToCall="Call"===e.target.value,this.props.onChange(this.props.question,e.target.value)},render:function(){return i("div",{},i(o,{question:this.props.question}),i("select",{className:"velaro-survey-select",value:this.props.answer,onChange:this.onChange},i("option",{value:""},""),i("option",{value:"Chat"},"Chat"),i("option",{value:"Call"},"Call")))}})},function(e,t,n){"use strict";n(12);n(1);var r=n(0),o=n(0).createElement,i=n(112);Velaro.Call={renderCall:function(e,t){if(t=t||document.getElementById("velaro-call")){var n=o(i,e);r.render(n,t)}},RequestCall:function(e){this.renderCall(e)},ClearCallInfo:function(){Velaro.Storage.remove(this.storageField)},storageField:"vCallIdentifier",GetCallId:function(){return Velaro.Storage.get(this.storageField)},SetCallId:function(e){Velaro.Storage.set(this.storageField,e)}}},function(e,t,n){"use strict";(function(t){var r=n(0),o=n(113),i=n(114),a=n(115),s=n(6),l=r.createElement;e.exports=r.createClass({getInitialState:function(){return{callId:this.getCallId()}},componentDidMount:function(){var e=this;(e.getCallId()?e.connectToCall():e.requestCall()).done(function(){e.state.call&&e.connectToSignalr()})},handleDisconnection:function(){var e=this;setTimeout(function(){null!=e.connection&&e.connection.start({waitForPageLoad:!1})},5e3)},connectToSignalr:function(){var e=this;return e.connection=t.hubConnection(Velaro.Globals.UrlEngagementSignalR),e.signalrProxy=e.connection.createHubProxy("engagementHub"),e.signalrProxy.connection.disconnected(this.handleDisconnection),e.signalrProxy.on("recieveCall",function(t){e.setState({call:t})}),e.signalrProxy.on("endCall",function(t){e.onEndCall(t)}),e.connection.qs={VisitorID:e.state.call.VisitorId,CallId:e.getCallId(),SiteID:e.state.call.SiteId},e.connection.logging=!0,e.connection.start({waitForPageLoad:!1}).fail(e.handleDisconnection)},onEndCall:function(e){this.connection.stop(),this.connection=null,Velaro.Engagement.SetContentTemplate(e)},endCall:function(){this.signalrProxy.invoke("VisitorLeaveCall")},requestCall:function(){var e=this,t={surveyResults:e.props.surveyResults,VisitorInfo:Velaro.Visitor.GetVisitorInfo()},n=e.makeRequest(this.props.getEngagementUrl("call","requestcall"),this.props.getEngagementUrl("call","requestcalljsonp"),t);return n.done(function(t){t.IsUnavailable?Velaro.Engagement.SetContentTemplate(t.Result):(e.setCallId(t.Call.CallId),e.setState({call:t.Call}))}),n.error(function(e){Velaro.Engagement.Destroy()}),n},connectToCall:function(){var e=this,t={callId:e.getCallId()},n=e.makeRequest(this.props.getEngagementUrl("call","connectcall"),this.props.getEngagementUrl("call","connectcalljsonp"),t);return n.done(function(t){e.setState({call:t})}),n.error(function(){Velaro.Engagement.Destroy()}),n},makeRequest:function(e,n,r){var o={type:"POST",contentType:"application/json; charset=utf-8",data:JSON.stringify(r)},i=s()<9;i&&(o.type="GET",o.data=r,o.dataType="jsonp");e=i?n:e;return t.ajax(e,o)},getCallId:function(){return Velaro.Call.GetCallId()},setCallId:function(e){Velaro.Call.SetCallId(e)},renderState:function(){return this.state.call?this.state.call.Answered?l(o,{call:this.state.call,endCallText:this.props.endCallText,onCallForText:this.props.onCallForText,endCall:this.endCall}):l(i,{callId:this.getCallId(),callWaitingText:this.props.callWaitingText,endCallWaitingText:this.props.endCallWaitingText,callStart:this.state.call.CallStart,queueSeconds:this.state.call.QueueSeconds,endCall:this.endCall}):l(a,{cdnUrl:this.props.cdnUrl})},render:function(){return l("div",{},this.renderState())}})}).call(this,n(1))},function(e,t,n){"use strict";var r=n(0),o=r.createElement;e.exports=r.createClass({render:function(){return o("div",{id:"velaro-callbody"},o("div",{className:"operator-info"},o("div",{className:"operator-info-inner"},o("img",{src:this.props.call.AgentHeadshotUrl,className:"avatar"}),o("div",{className:"operator-details",style:{float:"left"}},o("div",{className:"operator-name"},this.props.call.AgentDisplayName),o("div",{className:"operator-role"},this.props.call.AgentRole))),o("div",{className:"clearfix"})),o("div",{className:"clearfix"}),o("div",{className:"widget-area"},o("div",{id:"velaro-call-oncallfor"},this.props.onCallForText),o("button",{id:"velaro-end-call-button",onClick:this.props.endCall},this.props.endCallText),o("div",{className:"clearfix"})),o("div",{className:"clearfix"}))}})},function(e,t,n){"use strict";var r=n(0),o=r.createElement;e.exports=r.createClass({render:function(){return o("div",{id:"velaro-callwaitingbody"},o("div",{className:"clearfix"}),o("div",{className:"widget-area"},o("div",{id:"velaro-call-waiting"},this.props.callWaitingText),o("button",{id:"velaro-end-call-waiting-button",onClick:this.props.endCall},this.props.endCallWaitingText),o("div",{className:"clearfix"})),o("div",{className:"clearfix"}))}})},function(e,t,n){"use strict";var r=n(0),o=r.createElement;e.exports=r.createClass({render:function(){return o("img",{style:{margin:"auto",maxHeight:"15%",top:0,left:0,bottom:0,right:0,position:"absolute"},src:this.props.cdnUrl+"Content/Images/loading.gif"})}})},function(e,t,n){"use strict";
/*!
 * ASP.NET SignalR JavaScript Library v2.2.0
 * http://signalr.net/
 *
 * Copyright Microsoft Open Technologies, Inc. All rights reserved.
 * Licensed under the Apache 2.0
 * https://github.com/SignalR/SignalR/blob/master/LICENSE.md
 *
 */var r=n(1);if("function"!=typeof r.signalR)throw new Error("SignalR: SignalR is not loaded. Please ensure jquery.signalR-x.js is referenced before ~/signalr/js.");var o=r.signalR;function i(e,t){return function(){t.apply(e,r.makeArray(arguments))}}function a(e,t){var n,o,a,s,l;for(n in e)if(e.hasOwnProperty(n)){if(!(o=e[n]).hubName)continue;for(a in l=t?o.on:o.off,o.client)if(o.client.hasOwnProperty(a)){if(s=o.client[a],!r.isFunction(s))continue;l.call(o,a,i(o,s))}}}r.hubConnection.prototype.createHubProxies=function(){var e={};return this.starting(function(){a(e,!0),this._registerSubscribedHubs()}).disconnected(function(){a(e,!1)}),e.engagementHub=this.createHubProxy("engagementHub"),e.engagementHub.client={},e.engagementHub.server={ping:function(){return e.engagementHub.invoke.apply(e.engagementHub,r.merge(["Ping"],r.makeArray(arguments)))}},e},o.hub=r.hubConnection("/ApiSignalR/signalr",{useDefaultPath:!1}),r.extend(o,o.hub.createHubProxies())},function(e,t,n){"use strict";var r=n(1),o=n(118)(function(e){if(Velaro.Engagement.Settings.VisitorTypeaheadEnabled){var t=Velaro.Engagement.GetEngagementID();if(t){var n=Velaro.Engagement.getVisitorChatUrl("VisitorChat","ReceiveVisitorTypeahead");Velaro.Engagement.postVisitor(n,{engagementId:t,text:e})}}},1e3);r(document).on("keyup","#velaro-chat-text",function(e){o(e.target.value)}),r(document).on("mouseup","#velaro-send-text",function(){o(null)})},function(e,t,n){var r=n(119),o=n(15),i="Expected a function";e.exports=function(e,t,n){var a=!0,s=!0;if("function"!=typeof e)throw new TypeError(i);return o(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:a,maxWait:t,trailing:s})}},function(e,t,n){var r=n(15),o=n(120),i=n(122),a="Expected a function",s=Math.max,l=Math.min;e.exports=function(e,t,n){var c,u,d,p,g,f,h=0,m=!1,v=!1,y=!0;if("function"!=typeof e)throw new TypeError(a);function b(t){var n=c,r=u;return c=u=void 0,h=t,p=e.apply(r,n)}function E(e){var n=e-f;return void 0===f||n>=t||n<0||v&&e-h>=d}function T(){var e=o();if(E(e))return C(e);g=setTimeout(T,function(e){var n=t-(e-f);return v?l(n,d-(e-h)):n}(e))}function C(e){return g=void 0,y&&c?b(e):(c=u=void 0,p)}function x(){var e=o(),n=E(e);if(c=arguments,u=this,f=e,n){if(void 0===g)return function(e){return h=e,g=setTimeout(T,t),m?b(e):p}(f);if(v)return g=setTimeout(T,t),b(f)}return void 0===g&&(g=setTimeout(T,t)),p}return t=i(t)||0,r(n)&&(m=!!n.leading,d=(v="maxWait"in n)?s(i(n.maxWait)||0,t):d,y="trailing"in n?!!n.trailing:y),x.cancel=function(){void 0!==g&&clearTimeout(g),h=0,c=f=u=g=void 0},x.flush=function(){return void 0===g?p:C(o())},x}},function(e,t,n){var r=n(26);e.exports=function(){return r.Date.now()}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(17))},function(e,t,n){var r=n(15),o=n(123),i=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return i;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=l.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):s.test(e)?i:+e}},function(e,t,n){var r=n(124),o=n(127),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==i}},function(e,t,n){var r=n(27),o=n(125),i=n(126),a="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:l&&l in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(27),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}}]);
//# sourceMappingURL=velaro.inline.5e9277fb.js.map