function FastClick(n,t){"use strict";function o(n,t){return function(){return n.apply(t,arguments)}}var f,r,u,i,e;if(t=t||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=t.touchBoundary||10,this.layer=n,this.tapDelay=t.tapDelay||200,!FastClick.notNeeded(n)){for(r=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],u=this,i=0,e=r.length;i<e;i++)u[r[i]]=o(u[r[i]],u);deviceIsAndroid&&(n.addEventListener("mouseover",this.onMouse,!0),n.addEventListener("mousedown",this.onMouse,!0),n.addEventListener("mouseup",this.onMouse,!0));n.addEventListener("click",this.onClick,!0);n.addEventListener("touchstart",this.onTouchStart,!1);n.addEventListener("touchmove",this.onTouchMove,!1);n.addEventListener("touchend",this.onTouchEnd,!1);n.addEventListener("touchcancel",this.onTouchCancel,!1);Event.prototype.stopImmediatePropagation||(n.removeEventListener=function(t,i,r){var u=Node.prototype.removeEventListener;t==="click"?u.call(n,t,i.hijacked||i,r):u.call(n,t,i,r)},n.addEventListener=function(t,i,r){var u=Node.prototype.addEventListener;t==="click"?u.call(n,t,i.hijacked||(i.hijacked=function(n){n.propagationStopped||i(n)}),r):u.call(n,t,i,r)});typeof n.onclick=="function"&&(f=n.onclick,n.addEventListener("click",function(n){f(n)},!1),n.onclick=null)}}function preload(n){$(n).each(function(){$("<img/>")[0].src=this})}function toTitleCase(n){return n.replace(/\w\S*/g,function(n){return n.charAt(0).toUpperCase()+n.substr(1).toLowerCase()})}var dataLayer,trustpilot_jsonp_callback,wng,vars,hash,hashSplit,Nomads;window.Modernizr=function(n,t,i){function y(n){c.cssText=n}function lt(n,t){return y(k.join(n+";")+(t||""))}function s(n,t){return typeof n===t}function it(n,t){return!!~(""+n).indexOf(t)}function ht(n,t){var u,r;for(u in n)if(r=n[u],!it(r,"-")&&c[r]!==i)return t=="pfx"?r:!0;return!1}function at(n,t,r){var f,u;for(f in n)if(u=t[n[f]],u!==i)return r===!1?n[f]:s(u,"function")?u.bind(r||t):u;return!1}function h(n,t,i){var r=n.charAt(0).toUpperCase()+n.slice(1),u=(n+" "+ft.join(r+" ")+r).split(" ");return s(t,"string")||s(t,"undefined")?ht(u,t):(u=(n+" "+et.join(r+" ")+r).split(" "),at(u,t,i))}function vt(){r.input=function(i){for(var r=0,u=i.length;r<u;r++)l[i[r]]=!!(i[r]in f);return l.list&&(l.list=!!(t.createElement("datalist")&&n.HTMLDataListElement)),l}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));r.inputtypes=function(n){for(var u=0,r,e,s,h=n.length;u<h;u++)f.setAttribute("type",e=n[u]),r=f.type!=="text",r&&(f.value=b,f.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(e)&&f.style.WebkitAppearance!==i?(o.appendChild(f),s=t.defaultView,r=s.getComputedStyle&&s.getComputedStyle(f,null).WebkitAppearance!=="textfield"&&f.offsetHeight!==0,o.removeChild(f)):/^(search|tel)$/.test(e)||(r=/^(url|email)$/.test(e)?f.checkValidity&&f.checkValidity()===!1:f.value!=b)),ot[n[u]]=!!r;return ot}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var r={},w=!0,o=t.documentElement,e="modernizr",rt=t.createElement(e),c=rt.style,f=t.createElement("input"),b=":)",yt={}.toString,k=" -webkit- -moz- -o- -ms- ".split(" "),ut="Webkit Moz O ms",ft=ut.split(" "),et=ut.toLowerCase().split(" "),u={},ot={},l={},d=[],g=d.slice,a,v=function(n,i,r,u){var l,a,c,v,f=t.createElement("div"),h=t.body,s=h||t.createElement("body");if(parseInt(r,10))while(r--)c=t.createElement("div"),c.id=u?u[r]:e+(r+1),f.appendChild(c);return l=["&#173;",'<style id="s',e,'">',n,"<\/style>"].join(""),f.id=e,(h?f:s).innerHTML+=l,s.appendChild(f),h||(s.style.background="",s.style.overflow="hidden",v=o.style.overflow,o.style.overflow="hidden",o.appendChild(s)),a=i(f,n),h?f.parentNode.removeChild(f):(s.parentNode.removeChild(s),o.style.overflow=v),!!a},ct=function(t){var i=n.matchMedia||n.msMatchMedia,r;return i?i(t).matches:(v("@media "+t+" { #"+e+" { position: absolute; } }",function(t){r=(n.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position=="absolute"}),r)},st=function(){function r(r,u){u=u||t.createElement(n[r]||"div");r="on"+r;var f=r in u;return f||(u.setAttribute||(u=t.createElement("div")),u.setAttribute&&u.removeAttribute&&(u.setAttribute(r,""),f=s(u[r],"function"),s(u[r],"undefined")||(u[r]=i),u.removeAttribute(r))),u=null,f}var n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return r}(),nt={}.hasOwnProperty,tt,p;tt=s(nt,"undefined")||s(nt.call,"undefined")?function(n,t){return t in n&&s(n.constructor.prototype[t],"undefined")}:function(n,t){return nt.call(n,t)};Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if(typeof t!="function")throw new TypeError;return i=g.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(g.call(arguments))),Object(u)===u)?u:e:t.apply(n,i.concat(g.call(arguments)))},r});u.hashchange=function(){return st("hashchange",n)&&(t.documentMode===i||t.documentMode>7)};u.history=function(){return!!(n.history&&history.pushState)};u.rgba=function(){return y("background-color:rgba(150,255,150,.5)"),it(c.backgroundColor,"rgba")};u.backgroundsize=function(){return h("backgroundSize")};u.borderimage=function(){return h("borderImage")};u.borderradius=function(){return h("borderRadius")};u.boxshadow=function(){return h("boxShadow")};u.textshadow=function(){return t.createElement("div").style.textShadow===""};u.opacity=function(){return lt("opacity:.55"),/^0.55$/.test(c.opacity)};u.csscolumns=function(){return h("columnCount")};u.cssgradients=function(){var n="background-image:";return y((n+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+n)+k.join("linear-gradient(left top,#9f9, white);"+n)).slice(0,-n.length)),it(c.backgroundImage,"gradient")};u.csstransforms=function(){return!!h("transform")};u.csstransitions=function(){return h("transition")};u.fontface=function(){var n;return v('@font-face {font-family:"font";src:url("https://")}',function(i,r){var f=t.getElementById("smodernizr"),u=f.sheet||f.styleSheet,e=u?u.cssRules&&u.cssRules[0]?u.cssRules[0].cssText:u.cssText||"":"";n=/src/i.test(e)&&e.indexOf(r.split(" ")[0])===0}),n};u.generatedcontent=function(){var n;return v(["#",e,"{font:0/0 a}#",e,':after{content:"',b,'";visibility:hidden;font:3px/1 a}'].join(""),function(t){n=t.offsetHeight>=3}),n};u.localstorage=function(){try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(n){return!1}};u.sessionstorage=function(){try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(n){return!1}};for(p in u)tt(u,p)&&(a=p.toLowerCase(),r[a]=u[p](),d.push((r[a]?"":"no-")+a));return r.input||vt(),r.addTest=function(n,t){if(typeof n=="object")for(var u in n)tt(n,u)&&r.addTest(u,n[u]);else{if(n=n.toLowerCase(),r[n]!==i)return r;t=typeof t=="function"?t():t;typeof w!="undefined"&&w&&(o.className+=" "+(t?"":"no-")+n);r[n]=t}return r},y(""),rt=f=null,function(n,t){function p(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x<style>"+t+"<\/style>",r.insertBefore(i.lastChild,r.firstChild)}function c(){var n=r.elements;return typeof n=="string"?n.split(" "):n}function o(n){var t=h[n[s]];return t||(t={},e++,n[s]=e,h[e]=t),t}function l(n,r,u){if(r||(r=t),i)return r.createElement(n);u||(u=o(r));var f;return f=u.cache[n]?u.cache[n].cloneNode():y.test(n)?(u.cache[n]=u.createElem(n)).cloneNode():u.createElem(n),f.canHaveChildren&&!v.test(n)&&!f.tagUrn?u.frag.appendChild(f):f}function w(n,r){if(n||(n=t),i)return n.createDocumentFragment();r=r||o(n);for(var f=r.frag.cloneNode(),u=0,e=c(),s=e.length;u<s;u++)f.createElement(e[u]);return f}function b(n,t){t.cache||(t.cache={},t.createElem=n.createElement,t.createFrag=n.createDocumentFragment,t.frag=t.createFrag());n.createElement=function(i){return r.shivMethods?l(i,n,t):t.createElem(i)};n.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+c().join().replace(/[\w\-]+/g,function(n){return t.createElem(n),t.frag.createElement(n),'c("'+n+'")'})+");return n}")(r,t.frag)}function a(n){n||(n=t);var u=o(n);return!r.shivCSS||f||u.hasCSS||(u.hasCSS=!!p(n,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),i||b(n,u),n}var u=n.html5||{},v=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,y=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,s="_html5shiv",e=0,h={},i,r;(function(){try{var n=t.createElement("a");n.innerHTML="<xyz><\/xyz>";f="hidden"in n;i=n.childNodes.length==1||function(){t.createElement("a");var n=t.createDocumentFragment();return typeof n.cloneNode=="undefined"||typeof n.createDocumentFragment=="undefined"||typeof n.createElement=="undefined"}()}catch(r){f=!0;i=!0}})();r={elements:u.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:u.shivCSS!==!1,supportsUnknownElements:i,shivMethods:u.shivMethods!==!1,type:"default",shivDocument:a,createElement:l,createDocumentFragment:w};n.html5=r;a(t)}(this,t),r._version="2.7.1",r._prefixes=k,r._domPrefixes=et,r._cssomPrefixes=ft,r.mq=ct,r.hasEvent=st,r.testProp=function(n){return ht([n])},r.testAllProps=h,r.testStyles=v,o.className=o.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(w?" js "+d.join(" "):""),r}(this,this.document),function(n,t,i){function h(n){return"[object Function]"==y.call(n)}function c(n){return"string"==typeof n}function l(){}function w(n){return!n||"loaded"==n||"complete"==n||"uninitialized"==n}function e(){var n=a.shift();v=1;n?n.t?s(function(){("c"==n.t?u.injectCss:u.injectJs)(n.s,0,n.a,n.x,n.e,1)},0):(n(),e()):v=0}function ut(n,i,f,h,c,l,y){function k(t){if(!nt&&w(p.readyState)&&(tt.r=nt=1,!v&&e(),p.onload=p.onreadystatechange=null,t)){"img"!=n&&s(function(){g.removeChild(p)},50);for(var u in r[i])r[i].hasOwnProperty(u)&&r[i][u].onload()}}var y=y||u.errorTimeout,p=t.createElement(n),nt=0,b=0,tt={t:f,s:i,e:c,a:l,x:y};1===r[i]&&(b=1,r[i]=[]);"object"==n?p.data=i:(p.src=i,p.type=n);p.width=p.height="0";p.onerror=p.onload=p.onreadystatechange=function(){k.call(this,b)};a.splice(h,0,tt);"img"!=n&&(b||2===r[i]?(g.insertBefore(p,d?null:o),s(k,y)):r[i].push(p))}function ft(n,t,i,r,u){return v=0,t=t||"j",c(n)?ut("c"==t?et:nt,n,t,this.i++,i,r,u):(a.splice(this.i++,0,n),1==a.length&&e()),this}function b(){var n=u;return n.loader={load:ft,i:0},n}var f=t.documentElement,s=n.setTimeout,o=t.getElementsByTagName("script")[0],y={}.toString,a=[],v=0,k="MozAppearance"in f.style,d=k&&!!t.createRange().compareNode,g=d?f:o.parentNode,f=n.opera&&"[object Opera]"==y.call(n.opera),f=!!t.attachEvent&&!f,nt=k?"object":f?"script":"img",et=f?"script":nt,tt=Array.isArray||function(n){return"[object Array]"==y.call(n)},p=[],r={},it={timeout:function(n,t){return t.length&&(n.timeout=t[0]),n}},rt,u;u=function(n){function a(n){for(var n=n.split("!"),f=p.length,t=n.pop(),e=n.length,t={url:t,origUrl:t,prefixes:n},u,r,i=0;i<e;i++)r=n[i].split("="),(u=it[r.shift()])&&(t=u(t,r));for(i=0;i<f;i++)t=p[i](t);return t}function f(n,t,u,f,e){var o=a(n),s=o.autoCallback;o.url.split(".").pop().split("?").shift();o.bypass||(t&&(t=h(t)?t:t[n]||t[f]||t[n.split("/").pop().split("?")[0]]),o.instead?o.instead(n,t,u,f,e):(r[o.url]?o.noexec=!0:r[o.url]=1,u.load(o.url,o.forceCSS||!o.forceJS&&"css"==o.url.split(".").pop().split("?").shift()?"c":i,o.noexec,o.attrs,o.timeout),(h(t)||h(s))&&u.load(function(){b();t&&t(o.origUrl,e,f);s&&s(o.origUrl,e,f);r[o.url]=2})))}function s(n,t){function a(n,o){if(n){if(c(n))o||(i=function(){var n=[].slice.call(arguments);s.apply(this,n);u()}),f(n,i,t,0,e);else if(Object(n)===n)for(r in v=function(){var t=0,i;for(i in n)n.hasOwnProperty(i)&&t++;return t}(),n)n.hasOwnProperty(r)&&(!o&&!--v&&(h(i)?i=function(){var n=[].slice.call(arguments);s.apply(this,n);u()}:i[r]=function(n){return function(){var t=[].slice.call(arguments);n&&n.apply(this,t);u()}}(s[r])),f(n[r],i,t,r,e))}else o||u()}var e=!!n.test,o=n.load||n.both,i=n.callback||l,s=i,u=n.complete||l,v,r;a(e?n.yep:n.nope,!!o);o&&a(o)}var e,t,o=this.yepnope.loader;if(c(n))f(n,0,o,0);else if(tt(n))for(e=0;e<n.length;e++)t=n[e],c(t)?f(t,0,o,0):tt(t)?u(t):Object(t)===t&&s(t,o);else Object(n)===n&&s(n,o)};u.addPrefix=function(n,t){it[n]=t};u.addFilter=function(n){p.push(n)};u.errorTimeout=1e4;null==t.readyState&&t.addEventListener&&(t.readyState="loading",t.addEventListener("DOMContentLoaded",rt=function(){t.removeEventListener("DOMContentLoaded",rt,0);t.readyState="complete"},0));n.yepnope=b();n.yepnope.executeStack=e;n.yepnope.injectJs=function(n,i,r,f,h,c){var a=t.createElement("script"),v,y,f=f||u.errorTimeout;a.src=n;for(y in r)a.setAttribute(y,r[y]);i=c?e:i||l;a.onreadystatechange=a.onload=function(){!v&&w(a.readyState)&&(v=1,i(),a.onload=a.onreadystatechange=null)};s(function(){v||(v=1,i(1))},f);h?a.onload():o.parentNode.insertBefore(a,o)};n.yepnope.injectCss=function(n,i,r,u,f,h){var u=t.createElement("link"),c,i=h?e:i||l;u.href=n;u.rel="stylesheet";u.type="text/css";for(c in r)u.setAttribute(c,r[c]);f||(o.parentNode.insertBefore(u,o),s(i,0))}}(this,document);Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};var deviceIsAndroid=navigator.userAgent.indexOf("Android")>0,deviceIsIOS=/iP(ad|hone|od)/.test(navigator.userAgent),deviceIsIOS4=deviceIsIOS&&/OS 4_\d(_\d)?/.test(navigator.userAgent),deviceIsIOSWithBadTarget=deviceIsIOS&&/OS ([6-9]|\d{2})_\d/.test(navigator.userAgent);FastClick.prototype.needsClick=function(n){"use strict";switch(n.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(n.disabled)return!0;break;case"input":if(deviceIsIOS&&n.type==="file"||n.disabled)return!0;break;case"label":case"video":return!0}return/\bneedsclick\b/.test(n.className)};FastClick.prototype.needsFocus=function(n){"use strict";switch(n.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!deviceIsAndroid;case"input":switch(n.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!n.disabled&&!n.readOnly;default:return/\bneedsfocus\b/.test(n.className)}};FastClick.prototype.sendClick=function(n,t){"use strict";var r,i;document.activeElement&&document.activeElement!==n&&document.activeElement.blur();i=t.changedTouches[0];r=document.createEvent("MouseEvents");r.initMouseEvent(this.determineEventType(n),!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null);r.forwardedTouchEvent=!0;n.dispatchEvent(r)};FastClick.prototype.determineEventType=function(n){"use strict";return deviceIsAndroid&&n.tagName.toLowerCase()==="select"?"mousedown":"click"};FastClick.prototype.focus=function(n){"use strict";var t;deviceIsIOS&&n.setSelectionRange&&n.type.indexOf("date")!==0&&n.type!=="time"?(t=n.value.length,n.setSelectionRange(t,t)):n.focus()};FastClick.prototype.updateScrollParent=function(n){"use strict";var i,t;if(i=n.fastClickScrollParent,!i||!i.contains(n)){t=n;do{if(t.scrollHeight>t.offsetHeight){i=t;n.fastClickScrollParent=t;break}t=t.parentElement}while(t)}i&&(i.fastClickLastScrollTop=i.scrollTop)};FastClick.prototype.getTargetElementFromEventTarget=function(n){"use strict";return n.nodeType===Node.TEXT_NODE?n.parentNode:n};FastClick.prototype.onTouchStart=function(n){"use strict";var i,t,r;if(n.targetTouches.length>1)return!0;if(i=this.getTargetElementFromEventTarget(n.target),t=n.targetTouches[0],deviceIsIOS){if(r=window.getSelection(),r.rangeCount&&!r.isCollapsed)return!0;if(!deviceIsIOS4){if(t.identifier===this.lastTouchIdentifier)return n.preventDefault(),!1;this.lastTouchIdentifier=t.identifier;this.updateScrollParent(i)}}return this.trackingClick=!0,this.trackingClickStart=n.timeStamp,this.targetElement=i,this.touchStartX=t.pageX,this.touchStartY=t.pageY,n.timeStamp-this.lastClickTime<this.tapDelay&&n.preventDefault(),!0};FastClick.prototype.touchHasMoved=function(n){"use strict";var t=n.changedTouches[0],i=this.touchBoundary;return Math.abs(t.pageX-this.touchStartX)>i||Math.abs(t.pageY-this.touchStartY)>i?!0:!1};FastClick.prototype.onTouchMove=function(n){"use strict";return this.trackingClick?((this.targetElement!==this.getTargetElementFromEventTarget(n.target)||this.touchHasMoved(n))&&(this.trackingClick=!1,this.targetElement=null),!0):!0};FastClick.prototype.findControl=function(n){"use strict";return n.control!==undefined?n.control:n.htmlFor?document.getElementById(n.htmlFor):n.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")};FastClick.prototype.onTouchEnd=function(n){"use strict";var u,e,i,r,f,t=this.targetElement;if(!this.trackingClick)return!0;if(n.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(this.cancelNextClick=!1,this.lastClickTime=n.timeStamp,e=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,deviceIsIOSWithBadTarget&&(f=n.changedTouches[0],t=document.elementFromPoint(f.pageX-window.pageXOffset,f.pageY-window.pageYOffset)||t,t.fastClickScrollParent=this.targetElement.fastClickScrollParent),i=t.tagName.toLowerCase(),i==="label"){if(u=this.findControl(t),u){if(this.focus(t),deviceIsAndroid)return!1;t=u}}else if(this.needsFocus(t))return n.timeStamp-e>100||deviceIsIOS&&window.top!==window&&i==="input"?(this.targetElement=null,!1):(this.focus(t),this.sendClick(t,n),deviceIsIOS&&i==="select"||(this.targetElement=null,n.preventDefault()),!1);return deviceIsIOS&&!deviceIsIOS4&&(r=t.fastClickScrollParent,r&&r.fastClickLastScrollTop!==r.scrollTop)?!0:(this.needsClick(t)||(n.preventDefault(),this.sendClick(t,n)),!1)};FastClick.prototype.onTouchCancel=function(){"use strict";this.trackingClick=!1;this.targetElement=null};FastClick.prototype.onMouse=function(n){"use strict";return this.targetElement?n.forwardedTouchEvent?!0:n.cancelable?!this.needsClick(this.targetElement)||this.cancelNextClick?(n.stopImmediatePropagation?n.stopImmediatePropagation():n.propagationStopped=!0,n.stopPropagation(),n.preventDefault(),!1):!0:!0:!0};FastClick.prototype.onClick=function(n){"use strict";var t;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):n.target.type==="submit"&&n.detail===0?!0:(t=this.onMouse(n),t||(this.targetElement=null),t)};FastClick.prototype.destroy=function(){"use strict";var n=this.layer;deviceIsAndroid&&(n.removeEventListener("mouseover",this.onMouse,!0),n.removeEventListener("mousedown",this.onMouse,!0),n.removeEventListener("mouseup",this.onMouse,!0));n.removeEventListener("click",this.onClick,!0);n.removeEventListener("touchstart",this.onTouchStart,!1);n.removeEventListener("touchmove",this.onTouchMove,!1);n.removeEventListener("touchend",this.onTouchEnd,!1);n.removeEventListener("touchcancel",this.onTouchCancel,!1)};FastClick.notNeeded=function(n){"use strict";var t,i;if(typeof window.ontouchstart=="undefined")return!0;if(i=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],i)if(deviceIsAndroid){if(t=document.querySelector("meta[name=viewport]"),t&&(t.content.indexOf("user-scalable=no")!==-1||i>31&&document.documentElement.scrollWidth<=window.outerWidth))return!0}else return!0;return n.style.msTouchAction==="none"?!0:!1};FastClick.attach=function(n,t){"use strict";return new FastClick(n,t)};typeof define!="undefined"&&define.amd?define(function(){"use strict";return FastClick}):typeof module!="undefined"&&module.exports?(module.exports=FastClick.attach,module.exports.FastClick=FastClick):window.FastClick=FastClick;+function(n){"use strict";var t=function(n,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null;this.init("tooltip",n,t)},i;t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1};t.prototype.init=function(t,i,r){var f,e,u,o,s;for(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],u=="click")this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else if(u!="manual"){o=u=="hover"?"mouseenter":"focusin";s=u=="hover"?"mouseleave":"focusout";this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this));this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this))}this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){i.hoverState=="in"&&i.show()},i.options.delay.show)};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){i.hoverState=="out"&&i.hide()},i.options.delay.hide)};t.prototype.show=function(){var h=n.Event("show.bs."+this.type),u,i,v,s;if(this.hasContent()&&this.enabled){if(this.$element.trigger(h),h.isDefaultPrevented())return;u=this;i=this.tip();this.setContent();this.options.animation&&i.addClass("fade");var t=typeof this.options.placement=="function"?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,c=/\s?auto?\s?/i,l=c.test(t);l&&(t=t.replace(c,"")||"top");i.detach().css({top:0,left:0,display:"block"}).addClass(t);this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element);var r=this.getPosition(),f=i[0].offsetWidth,e=i[0].offsetHeight;if(l){var o=this.$element.parent(),y=t,a=document.documentElement.scrollTop||document.body.scrollTop,p=this.options.container=="body"?window.innerWidth:o.outerWidth(),w=this.options.container=="body"?window.innerHeight:o.outerHeight(),b=this.options.container=="body"?0:o.offset().left;t=t=="bottom"&&r.top+r.height+e-a>w?"top":t=="top"&&r.top-a-e<0?"bottom":t=="right"&&r.right+f>p?"left":t=="left"&&r.left-f<b?"right":t;i.removeClass(y).addClass(t)}v=this.getCalculatedOffset(t,r,f,e);this.applyPlacement(v,t);this.hoverState=null;s=function(){u.$element.trigger("shown.bs."+u.type)};n.support.transition&&this.$tip.hasClass("fade")?i.one(n.support.transition.end,s).emulateTransitionEnd(150):s()}};t.prototype.applyPlacement=function(t,i){var c,r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),f,u,h;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top=t.top+o;t.left=t.left+s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0);r.addClass("in");f=r[0].offsetWidth;u=r[0].offsetHeight;i=="top"&&u!=e&&(c=!0,t.top=t.top+e-u);/bottom|top/.test(i)?(h=0,t.left<0&&(h=t.left*-2,t.left=0,r.offset(t),f=r[0].offsetWidth,u=r[0].offsetHeight),this.replaceArrow(h-l+f,f,"left")):this.replaceArrow(u-e,u,"top");c&&r.offset(t)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i,n?50*(1-n/t)+"%":"")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(){function u(){t.hoverState!="in"&&i.detach();t.$element.trigger("hidden.bs."+t.type)}var t=this,i=this.tip(),r=n.Event("hide.bs."+this.type);if(this.$element.trigger(r),!r.isDefaultPrevented())return i.removeClass("in"),n.support.transition&&this.$tip.hasClass("fade")?i.one(n.support.transition.end,u).emulateTransitionEnd(150):u(),this.hoverState=null,this};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||typeof n.attr("data-original-title")!="string")&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(){var t=this.$element[0];return n.extend({},typeof t.getBoundingClientRect=="function"?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())};t.prototype.getCalculatedOffset=function(n,t,i,r){return n=="bottom"?{top:t.top+t.height,left:t.left+t.width/2-i/2}:n=="top"?{top:t.top-r,left:t.left+t.width/2-i/2}:n=="left"?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title)};t.prototype.tip=function(){return this.$tip=this.$tip||n(this.options.template)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=t?n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){clearTimeout(this.timeout);this.hide().$element.off("."+this.type).removeData("bs."+this.type)};i=n.fn.tooltip;n.fn.tooltip=function(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f=typeof i=="object"&&i;(r||i!="destroy")&&(r||u.data("bs.tooltip",r=new t(this,f)),typeof i=="string"&&r[i]())})};n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i);n.find(".popover-content")[this.options.html?typeof t=="string"?"html":"append":"text"](t);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||(typeof n.content=="function"?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};t.prototype.tip=function(){return this.$tip||(this.$tip=n(this.options.template)),this.$tip};i=n.fn.popover;n.fn.popover=function(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f=typeof i=="object"&&i;(r||i!="destroy")&&(r||u.data("bs.popover",r=new t(this,f)),typeof i=="string"&&r[i]())})};n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery),function(){function c(n,t,i){i=(i||0)-1;for(var r=n?n.length:0;++i<r;)if(n[i]===t)return i;return-1}function nt(n,t){var i=typeof t,r;return(n=n.l,"boolean"==i||null==t)?n[t]?0:-1:("number"!=i&&"string"!=i&&(i="object"),r="number"==i?t:at+t,n=(n=n[i])&&n[r],"object"==i?n&&-1<c(n,t)?0:-1:n?0:-1)}function ti(n){var t=this.l,i=typeof n,r;"boolean"==i||null==n?t[n]=!0:("number"!=i&&"string"!=i&&(i="object"),r="number"==i?n:at+n,t=t[i]||(t[i]={}),"object"==i?(t[r]||(t[r]=[])).push(n):t[r]=!0)}function pt(n){return n.charCodeAt(0)}function ii(n,t){for(var i,r,f=n.m,e=t.m,u=-1,o=f.length;++u<o;)if(i=f[u],r=e[u],i!==r){if(i>r||typeof i=="undefined")return 1;if(i<r||typeof r=="undefined")return-1}return n.n-t.n}function ot(n){var u=-1,r=n.length,t=n[0],i=n[r/2|0],f=n[r-1];if(t&&typeof t=="object"&&i&&typeof i=="object"&&f&&typeof f=="object")return!1;for(t=st(),t["false"]=t["null"]=t["true"]=t.undefined=!1,i=st(),i.k=n,i.l=t,i.push=ti;++u<r;)i.push(n[u]);return i}function ri(n){return"\\"+pi[n]}function r(){return ct.pop()||[]}function st(){return lt.pop()||{k:null,l:null,m:null,"false":!1,n:0,"null":!1,number:null,object:null,push:null,string:null,"true":!1,undefined:!1,o:null}}function tt(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}function i(n){n.length=0;ct.length<wt&&ct.push(n)}function g(n){var t=n.l;t&&g(t);n.k=n.l=n.m=n.object=n.number=n.string=n.o=null;lt.length<wt&&lt.push(n)}function n(n,t,i){var r,u;for(t||(t=0),typeof i=="undefined"&&(i=n?n.length:0),r=-1,i=i-t||0,u=Array(0>i?0:i);++r<i;)u[r]=n[t+r];return u}function ht(d){function ft(n){return n&&typeof n=="object"&&!ct(n)&&ti.call(n,"__wrapped__")?n:new cr(n)}function cr(n,t){this.__chain__=!!t;this.__wrapped__=n}function fo(t){function i(){var e,t;return(u&&(t=n(u),fu.apply(t,arguments)),this instanceof i)?(e=dr(r.prototype),t=r.apply(e,t||arguments),bi(t)?t:e):r.apply(f,t||arguments)}var r=t[0],u=t[2],f=t[4];return bu(i,t),i}function gu(t,u,e,o,s){var c,l,a,k,b;if(e&&(c=e(t),typeof c!="undefined"))return c;if(!bi(t)||(l=wt.call(t),!f[l]||!et.nodeClass&&tt(t)))return t;a=sr[l];switch(l){case v:case y:return new a(+t);case p:case h:return new a(t);case w:return c=a(t.source,ci.exec(t)),c.lastIndex=t.lastIndex,c}if(l=ct(t),u){for(k=!o,o||(o=r()),s||(s=r()),b=o.length;b--;)if(o[b]==t)return s[b];c=l?a(t.length):{}}else c=l?n(t):du({},t);return l&&(ti.call(t,"index")&&(c.index=t.index),ti.call(t,"input")&&(c.input=t.input)),u?(o.push(t),s.push(c),(l?pi:hr)(t,function(n,t){c[t]=gu(n,u,e,o,s)}),k&&(i(o),i(s)),c):c}function dr(n){return bi(n)?pu(n):{}}function tr(n,t,i){var r,u;if(typeof n!="function")return sf;if(typeof t=="undefined"||!("prototype"in n)||(r=n.__bindData__,typeof r!="undefined"||(et.funcNames&&(r=!n.name),r=r||!et.funcDecomp,r)||(u=po.call(n),et.funcNames||(r=!li.test(u)),r||(r=dt.test(u),bu(n,r))),!1===r||!0!==r&&1&r[1]))return n;switch(i){case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)};case 4:return function(i,r,u,f){return n.call(t,i,r,u,f)}}return pe(n,t)}function df(t){function u(){var y=c?o:this,t;return e&&(t=n(e),fu.apply(t,arguments)),(f||h)&&(t||(t=n(arguments)),f&&fu.apply(t,f),h&&t.length<s)?(i|=16,df([r,a?i:-4&i,t,null,o,s])):(t||(t=arguments),l&&(r=y[v]),this instanceof u?(y=dr(r.prototype),t=r.apply(y,t),bi(t)?t:y):r.apply(y,t))}var r=t[0],i=t[1],e=t[2],f=t[3],o=t[4],s=t[5],c=1&i,l=2&i,h=4&i,a=8&i,v=r;return bu(u,t),u}function gr(n,t){var f=-1,r=su(),e=n?n.length:0,u=e>=vt&&r===c,o=[],i;for(u&&(i=ot(t),i?(r=nt,t=i):u=!1);++f<e;)i=n[f],0>r(t,i)&&o.push(i);return u&&g(t),o}function lr(n,t,i,r){var e,f,u;for(r=(r||0)-1,e=n?n.length:0,f=[];++r<e;)if(u=n[r],u&&typeof u=="object"&&typeof u.length=="number"&&(ct(u)||gi(u))){t||(u=lr(u,t,i));var o=-1,s=u.length,h=f.length;for(f.length+=s;++o<s;)f[h++]=u[o]}else i||f.push(u);return f}function wr(n,t,f,o,s,c){var k,g,b,it,nt,d;if(f&&(d=f(n,t),typeof d!="undefined"))return!!d;if(n===t)return 0!==n||1/n==1/t;if(n===n&&!(n&&e[typeof n]||t&&e[typeof t]))return!1;if(null==n||null==t)return n===t;if(k=wt.call(n),g=wt.call(t),k==l&&(k=u),g==l&&(g=u),k!=g)return!1;switch(k){case v:case y:return+n==+t;case p:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case w:case h:return n==er(t)}if(g=k==a,!g){if(b=ti.call(n,"__wrapped__"),it=ti.call(t,"__wrapped__"),b||it)return wr(b?n.__wrapped__:n,it?t.__wrapped__:t,f,o,s,c);if(k!=u||!et.nodeClass&&(tt(n)||tt(t))||(k=!et.argsObject&&gi(n)?ur:n.constructor,b=!et.argsObject&&gi(t)?ur:t.constructor,k!=b&&!(lt(k)&&k instanceof k&&lt(b)&&b instanceof b)&&"constructor"in n&&"constructor"in t))return!1}for(k=!s,s||(s=r()),c||(c=r()),b=s.length;b--;)if(s[b]==n)return c[b]==t;if(nt=0,d=!0,s.push(n),c.push(t),g){if(b=n.length,nt=t.length,(d=nt==b)||o)for(;nt--;)if(g=b,it=t[nt],o)for(;g--&&!(d=wr(n[g],it,f,o,s,c)););else if(!(d=wr(n[nt],it,f,o,s,c)))break}else fr(t,function(t,i,r){if(ti.call(r,i))return(nt++,d=ti.call(n,i)&&wr(n[i],t,f,o,s,c))}),d&&!o&&fr(n,function(n,t,i){if(ti.call(i,t))return d=-1<--nt});return s.pop(),c.pop(),k&&(i(s),i(c)),d}function gf(n,t,i,r,u){(ct(t)?yr:hr)(t,function(t,f){var h,c,o=t,e=n[f],s;if(t&&((c=ct(t))||bf(t))){for(o=r.length;o--;)if(h=r[o]==t){e=u[o];break}h||(i&&(o=i(e,t),s=typeof o!="undefined")&&(e=o),s||(e=c?ct(e)?e:[]:bf(e)?e:{}),r.push(t),u.push(e),s||gf(e,t,i,r,u))}else i&&(o=i(e,t),typeof o=="undefined"&&(o=t)),typeof o!="undefined"&&(e=o);n[f]=e})}function nf(n,t){return n+yo(to()*(t-n+1))}function tf(n,t,u){var e=-1,l=su(),v=n?n.length:0,a=[],o=!t&&v>=vt&&l===c,f=u||o?r():a,s,h;for(o&&(f=ot(f),l=nt);++e<v;)s=n[e],h=u?u(s,e,n):s,(t?!e||f[f.length-1]!==h:0>l(f,h))&&((u||o)&&f.push(h),a.push(s));return o?(i(f.k),g(f)):u&&i(f),a}function rf(n){return function(t,i,r){var u={},e,f;if(i=ft.createCallback(i,r,3),ct(t))for(r=-1,e=t.length;++r<e;)f=t[r],n(u,f,i(f,r,t),t);else pi(t,function(t,r,f){n(u,t,i(t,r,f),f)});return u}}function ir(t,i,r,u,f,e){var c=1&i,l=4&i,s=16&i,h=32&i,o;if(!(2&i||lt(t)))throw new or;return s&&!r.length&&(i&=-17,s=r=!1),h&&!u.length&&(i&=-33,h=u=!1),o=t&&t.__bindData__,o&&!0!==o?(o=n(o),o[2]&&(o[2]=n(o[2])),o[3]&&(o[3]=n(o[3])),!c||1&o[1]||(o[4]=f),!c&&1&o[1]&&(i|=8),!l||4&o[1]||(o[5]=e),s&&fu.apply(o[2]||(o[2]=[]),r),h&&wo.apply(o[3]||(o[3]=[]),u),o[1]|=i,ir.apply(null,o)):(1==i||17===i?fo:df)([t,i,r,u,f,e])}function br(){var f,u,i,n,r;for(t.h=yt,t.b=t.c=t.g=t.i="",t.e="t",t.j=!0,u=0;f=arguments[u];u++)for(i in f)t[i]=f[i];if(u=t.a,t.d=/^[^,]+/.exec(u)[0],f=iu,u="return function("+u+"){",i=t,n="var n,t="+i.d+",E="+i.e+";if(!t)return E;"+i.i+";",i.b?(n+="var u=t.length;n=-1;if("+i.b+"){",et.unindexedChars&&(n+="if(s(t)){t=t.split('')}"),n+="while(++n<u){"+i.g+";}}else{"):et.nonEnumArgs&&(n+="var u=t.length;n=-1;if(u&&p(t)){while(++n<u){n+='';"+i.g+";}}else{"),et.enumPrototypes&&(n+="var G=typeof t=='function';"),et.enumErrorProps&&(n+="var F=t===k||t instanceof Error;"),r=[],et.enumPrototypes&&r.push('!(G&&n=="prototype")'),et.enumErrorProps&&r.push('!(F&&(n=="message"||n=="name"))'),i.j&&i.f)n+="var C=-1,D=B[typeof t]&&v(t),u=D?D.length:0;while(++C<u){n=D[C];",r.length&&(n+="if("+r.join("&&")+"){"),n+=i.g+";",r.length&&(n+="}"),n+="}";else if(n+="for(n in t){",i.j&&r.push("m.call(t, n)"),r.length&&(n+="if("+r.join("&&")+"){"),n+=i.g+";",r.length&&(n+="}"),n+="}",et.nonEnumShadows){for(n+="if(t!==A){var i=t.constructor,r=t===(i&&i.prototype),f=t===J?I:t===k?j:L.call(t),x=y[f];",k=0;7>k;k++)n+="n='"+i.h[k]+"';if((!(r&&x[n])&&m.call(t,n))",i.j||(n+="||(!x[n]&&t[n]!==A[n])"),n+="){"+i.g+"}";n+="}"}return(i.b||et.nonEnumArgs)&&(n+="}"),n+=i.c+";return E",f("d,j,k,m,o,p,q,s,v,A,B,y,I,J,L",u+n+"}")(tr,gt,lf,ti,fi,gi,ct,rr,t.f,au,e,wi,h,co,wt)}function eo(n){return pf[n]}function su(){var n=(n=ft.indexOf)===ce?c:n;return n}function ar(n){return typeof n=="function"&&ao.test(n)}function ne(n){var i,t;return!n||wt.call(n)!=u||(i=n.constructor,lt(i)&&!(i instanceof i))||!et.argsClass&&gi(n)||!et.nodeClass&&tt(n)?!1:et.ownLast?(fr(n,function(n,i,r){return t=ti.call(r,i),!1}),!1!==t):(fr(n,function(n,i){t=i}),typeof t=="undefined"||ti.call(n,t))}function oo(n){return uo[n]}function gi(n){return n&&typeof n=="object"&&typeof n.length=="number"&&wt.call(n)==l||!1}function te(n,t,i){var r=di(n),u=r.length;for(t=tr(t,i,3);u--&&(i=r[u],!1!==t(n[i],i,n)););return n}function nu(n){var t=[];return fr(n,function(n,i){lt(n)&&t.push(i)}),t.sort()}function ie(n){for(var t,i=-1,r=di(n),f=r.length,u={};++i<f;)t=r[i],u[n[t]]=t;return u}function lt(n){return typeof n=="function"}function bi(n){return!(!n||!e[typeof n])}function re(n){return typeof n=="number"||n&&typeof n=="object"&&wt.call(n)==p||!1}function rr(n){return typeof n=="string"||n&&typeof n=="object"&&wt.call(n)==h||!1}function hu(n){for(var t=-1,i=di(n),r=i.length,u=ki(r);++t<r;)u[t]=n[i[t]];return u}function ue(n,t,i){var e=-1,u=su(),f=n?n.length:0,r=!1;return i=(0>i?nr(0,f+i):i)||0,ct(n)?r=-1<u(n,t,i):typeof f=="number"?r=-1<(rr(n)?n.indexOf(t,i):u(n,t,i)):pi(n,function(n){if(!(++e<i))return!(r=n===t)}),r}function fe(n,t,i){var r=!0,u;if(t=ft.createCallback(t,i,3),ct(n))for(i=-1,u=n.length;++i<u&&(r=!!t(n[i],i,n)););else pi(n,function(n,i,u){return r=!!t(n,i,u)});return r}function cu(n,t,i){var r=[],f,u;if(t=ft.createCallback(t,i,3),ct(n))for(i=-1,f=n.length;++i<f;)u=n[i],t(u,i,n)&&r.push(u);else pi(n,function(n,i,u){t(n,i,u)&&r.push(n)});return r}function uf(n,t,i){var u,f,r;if(t=ft.createCallback(t,i,3),!ct(n))return pi(n,function(n,i,r){if(t(n,i,r))return(u=n,!1)}),u;for(i=-1,f=n.length;++i<f;)if(r=n[i],t(r,i,n))return r}function yr(n,t,i){if(t&&typeof i=="undefined"&&ct(n)){i=-1;for(var r=n.length;++i<r&&!1!==t(n[i],i,n););}else pi(n,t,i);return n}function lu(n,t,i){var f=n,r=n?n.length:0,u;if(t=t&&typeof i=="undefined"?t:tr(t,i,3),ct(n))for(;r--&&!1!==t(n[r],r,n););else typeof r!="number"?(u=di(n),r=u.length):et.unindexedChars&&rr(n)&&(f=n.split("")),pi(n,function(n,i,e){return i=u?u[--r]:--r,t(f[i],i,e)});return n}function tu(n,t,i){var r=-1,u=n?n.length:0,f=ki(typeof u=="number"?u:0);if(t=ft.createCallback(t,i,3),ct(n))for(;++r<u;)f[r]=t(n[r],r,n);else pi(n,function(n,i,u){f[++r]=t(n,i,u)});return f}function ee(n,t,i){var u=-1/0,r=u,e,f;if(typeof t!="function"&&i&&i[t]===n&&(t=null),null==t&&ct(n))for(i=-1,e=n.length;++i<e;)f=n[i],f>r&&(r=f);else t=null==t&&rr(n)?pt:ft.createCallback(t,i,3),pi(n,function(n,i,f){i=t(n,i,f);i>u&&(u=i,r=n)});return r}function ff(n,t,i,r){var f=3>arguments.length,u,e;if(t=ft.createCallback(t,r,4),ct(n))for(u=-1,e=n.length,f&&(i=n[++u]);++u<e;)i=t(i,n[u],u,n);else pi(n,function(n,r,u){i=f?(f=!1,n):t(i,n,r,u)});return i}function oe(n,t,i,r){var u=3>arguments.length;return t=ft.createCallback(t,r,4),lu(n,function(n,r,f){i=u?(u=!1,n):t(i,n,r,f)}),i}function se(n){var i=-1,r=n?n.length:0,t=ki(typeof r=="number"?r:0);return yr(n,function(n){var r=nf(0,++i);t[i]=t[r];t[r]=n}),t}function he(n,t,i){var r,u;if(t=ft.createCallback(t,i,3),ct(n))for(i=-1,u=n.length;++i<u&&!(r=t(n[i],i,n)););else pi(n,function(n,i,u){return!(r=t(n,i,u))});return!!r}function ef(t,i,r){var u=0,e=t?t.length:0,f;if(typeof i!="number"&&null!=i)for(f=-1,i=ft.createCallback(i,r,3);++f<e&&i(t[f],f,t);)u++;else if(u=i,null==u||r)return t?t[0]:s;return n(t,0,ou(nr(0,u),e))}function ce(n,t,i){if(typeof i=="number"){var r=n?n.length:0;i=0>i?nr(0,r+i):i||0}else if(i)return i=le(n,t),n[i]===t?i:-1;return c(n,t,i)}function of(t,i,r){if(typeof i!="number"&&null!=i){var u=0,f=-1,e=t?t.length:0;for(i=ft.createCallback(i,r,3);++f<e&&i(t[f],f,t);)u++}else u=null==i||r?1:nr(0,i);return n(t,u)}function le(n,t,i,r){var u=0,f=n?n.length:u;for(i=i?ft.createCallback(i,r,1):sf,t=i(t);u<f;)r=u+f>>>1,i(n[r])<t?u=r+1:f=r;return u}function ae(n,t,i,r){return typeof t!="boolean"&&null!=t&&(r=i,i=typeof t!="function"&&r&&r[t]===n?null:t,t=!1),null!=i&&(i=ft.createCallback(i,r,3)),tf(n,t,i)}function ve(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,i=n?ee(kf(n,"length")):0,r=ki(0>i?0:i);++t<i;)r[t]=kf(n,t);return r}function ye(n,t){var r=-1,f=n?n.length:0,u={},i;for(t||!f||ct(n[0])||(t=[]);++r<f;)i=n[r],t?u[i]=t[r]:i&&(u[i[0]]=i[1]);return u}function pe(t,i){return 2<arguments.length?ir(t,17,n(arguments,2),null,i):ir(t,1,null,null,i)}function we(n,t,i){var f,u,h,c,e,r,y,l=0,a=!1,o=!0,v,p,w;if(!lt(n))throw new or;return(t=nr(0,t)||0,!0===i)?(v=!0,o=!1):bi(i)&&(v=i.leading,a="maxWait"in i&&(nr(t,i.maxWait)||0),o="trailing"in i?i.trailing:o),p=function(){var i=t-(pr()-c);0<i?r=eu(p,i):(u&&vu(u),i=y,u=r=y=s,i&&(l=pr(),h=n.apply(e,f),r||u||(f=e=null)))},w=function(){r&&vu(r);u=r=y=s;(o||a!==t)&&(l=pr(),h=n.apply(e,f),r||u||(f=e=null))},function(){var b,s,i;return(f=arguments,c=pr(),e=this,y=o&&(r||!v),!1===a)?b=v&&!r:(u||v||(l=c),s=a-(c-l),i=0>=s,i?(u&&(u=vu(u)),l=c,h=n.apply(e,f)):u||(u=eu(w,s))),i&&r?r=vu(r):r||t===a||(r=eu(p,t)),b&&(i=!0,h=n.apply(e,f)),!i||r||u||(f=e=null),h}}function sf(n){return n}function hf(n,t,i){var u=!0,f=t&&nu(t),r,e;t&&(i||f.length)||(null==i&&(i=t),r=cr,t=n,n=ft,f=nu(t));!1===i?u=!1:bi(i)&&"chain"in i&&(u=i.chain);r=n;e=lt(r);yr(f,function(i){var f=n[i]=t[i];e&&(r.prototype[i]=function(){var i=this.__chain__,e=this.__wrapped__,t=[e];if(fu.apply(t,arguments),t=f.apply(n,t),u||i){if(e===t&&bi(t))return this;t=new r(t);t.__chain__=i}return t})})}function be(){}function ke(n){return function(t){return t[n]}}function de(){return this.__wrapped__}var wi,et,bu;d=d?o.defaults(b.Object(),d,o.pick(b,yi)):b;var ki=d.Array,so=d.Boolean,cf=d.Date,iu=d.Function,ru=d.Math,ho=d.Number,ur=d.Object,uu=d.RegExp,er=d.String,or=d.TypeError,vr=[],lf=d.Error.prototype,au=ur.prototype,co=er.prototype,lo=d._,wt=au.toString,ao=uu("^"+er(wt).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),vo=ru.ceil,vu=d.clearTimeout,yo=ru.floor,po=iu.prototype.toString,kr=ar(kr=ur.getPrototypeOf)&&kr,ti=au.hasOwnProperty,fu=vr.push,yu=au.propertyIsEnumerable,eu=d.setTimeout,ge=vr.splice,wo=vr.unshift,no=function(){try{var t={},n=ar(n=ur.defineProperty)&&n,i=n(t,t,t)&&n}catch(r){}return i}(),pu=ar(pu=ur.create)&&pu,af=ar(af=ki.isArray)&&af,bo=d.isFinite,ko=d.isNaN,wu=ar(wu=ur.keys)&&wu,nr=ru.max,ou=ru.min,vf=d.parseInt,to=ru.random,sr={};sr[a]=ki;sr[v]=so;sr[y]=cf;sr[rt]=iu;sr[u]=ur;sr[p]=ho;sr[w]=uu;sr[h]=er;wi={};wi[a]=wi[y]=wi[p]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0};wi[v]=wi[h]={constructor:!0,toString:!0,valueOf:!0};wi[gt]=wi[rt]=wi[w]={constructor:!0,toString:!0};wi[u]={constructor:!0},function(){for(var n,i,t=yt.length;t--;){i=yt[t];for(n in wi)ti.call(wi,n)&&!ti.call(wi[n],i)&&(wi[n][i]=!1)}}();cr.prototype=ft.prototype;et=ft.support={};!function(){var t=function(){this.x=1},r={0:1,length:1},i=[],n;t.prototype={valueOf:1,y:1};for(n in new t)i.push(n);for(n in arguments);et.argsClass=wt.call(arguments)==l;et.argsObject=arguments.constructor==ur&&!(arguments instanceof ki);et.enumErrorProps=yu.call(lf,"message")||yu.call(lf,"name");et.enumPrototypes=yu.call(t,"prototype");et.funcDecomp=!ar(d.WinRTError)&&dt.test(ht);et.funcNames=typeof iu.name=="string";et.nonEnumArgs=0!=n;et.nonEnumShadows=!/valueOf/.test(i);et.ownLast="x"!=i[0];et.spliceObjects=(vr.splice.call(r,0,1),!r[0]);et.unindexedChars="xx"!="x"[0]+ur("x")[0];try{et.nodeClass=!(wt.call(document)==u&&!({toString:0}+""))}catch(f){et.nodeClass=!0}}(1);ft.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:kt,variable:"",imports:{_:ft}};pu||(dr=function(){function n(){}return function(t){if(bi(t)){n.prototype=t;var i=new n;n.prototype=null}return i||d.Object()}}());bu=no?function(n,t){ni.value=t;no(n,"__bindData__",ni)}:be;et.argsClass||(gi=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&ti.call(n,"callee")&&!yu.call(n,"callee")||!1});var ct=af||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&wt.call(n)==a||!1},io=br({a:"z",e:"[]",i:"if(!(B[typeof z]))return E",g:"E.push(n)"}),di=wu?function(n){return bi(n)?et.enumPrototypes&&typeof n=="function"||et.nonEnumArgs&&n.length&&gi(n)?io(n):wu(n):[]}:io,ku={a:"g,e,K",i:"e=e&&typeof K=='undefined'?e:d(e,K,3)",b:"typeof u=='number'",v:di,g:"if(e(t[n],n,g)===false)return E"},yf={a:"z,H,l",i:"var a=arguments,b=0,c=typeof l=='number'?2:a.length;while(++b<c){t=a[b];if(t&&B[typeof t]){",v:di,g:"if(typeof E[n]=='undefined')E[n]=t[n]",c:"}}"},ro={i:"if(!B[typeof t])return E;"+ku.i,b:!1},pf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},uo=ie(pf),go=uu("("+di(uo).join("|")+")","g"),ns=uu("["+di(pf).join("")+"]","g"),pi=br(ku),du=br(yf,{i:yf.i.replace(";",";if(c>3&&typeof a[c-2]=='function'){var e=d(a[--c-1],a[c--],2)}else if(c>2&&typeof a[c-1]=='function'){e=a[--c]}"),g:"E[n]=e?e(E[n],t[n]):t[n]"}),wf=br(yf),fr=br(ku,ro,{j:!1}),hr=br(ku,ro);lt(/x/)&&(lt=function(n){return typeof n=="function"&&wt.call(n)==rt});var bf=kr?function(n){if(!n||wt.call(n)!=u||!et.argsClass&&gi(n))return!1;var i=n.valueOf,t=ar(i)&&(t=kr(i))&&kr(t);return t?n==t||kr(n)==t:ne(n)}:ne,ts=rf(function(n,t,i){ti.call(n,i)?n[i]++:n[i]=1}),is=rf(function(n,t,i){(ti.call(n,i)?n[i]:n[i]=[]).push(t)}),rs=rf(function(n,t,i){n[i]=t}),kf=tu,pr=ar(pr=cf.now)&&pr||function(){return(new cf).getTime()},us=8==vf(bt+"08")?vf:function(n,t){return vf(rr(n)?n.replace(ai,""):n,t||0)};return ft.after=function(n,t){if(!lt(t))throw new or;return function(){if(1>--n)return t.apply(this,arguments)}},ft.assign=du,ft.at=function(n){var t=arguments,i=-1,r=lr(t,!0,!1,1),t=t[2]&&t[2][t[1]]===n?1:r.length,u=ki(t);for(et.unindexedChars&&rr(n)&&(n=n.split(""));++i<t;)u[i]=n[r[i]];return u},ft.bind=pe,ft.bindAll=function(n){for(var t,i=1<arguments.length?lr(arguments,!0,!1,1):nu(n),r=-1,u=i.length;++r<u;)t=i[r],n[t]=ir(n[t],1,null,null,n);return n},ft.bindKey=function(t,i){return 2<arguments.length?ir(i,19,n(arguments,2),null,t):ir(i,3,null,null,t)},ft.chain=function(n){return n=new cr(n),n.__chain__=!0,n},ft.compact=function(n){for(var t,i=-1,u=n?n.length:0,r=[];++i<u;)t=n[i],t&&r.push(t);return r},ft.compose=function(){for(var n=arguments,t=n.length;t--;)if(!lt(n[t]))throw new or;return function(){for(var t=arguments,i=n.length;i--;)t=[n[i].apply(this,t)];return t[0]}},ft.constant=function(n){return function(){return n}},ft.countBy=ts,ft.create=function(n,t){var i=dr(n);return t?du(i,t):i},ft.createCallback=function(n,t,i){var f=typeof n;if(null==n||"function"==f)return tr(n,t,i);if("object"!=f)return ke(n);var u=di(n),e=u[0],r=n[e];return 1!=u.length||r!==r||bi(r)?function(t){for(var i=u.length,r=!1;i--&&(r=wr(t[u[i]],n[u[i]],null,!0)););return r}:function(n){return n=n[e],r===n&&(0!==r||1/r==1/n)}},ft.curry=function(n,t){return t=typeof t=="number"?t:+t||n.length,ir(n,4,null,null,null,t)},ft.debounce=we,ft.defaults=wf,ft.defer=function(t){if(!lt(t))throw new or;var i=n(arguments,1);return eu(function(){t.apply(s,i)},1)},ft.delay=function(t,i){if(!lt(t))throw new or;var r=n(arguments,2);return eu(function(){t.apply(s,r)},i)},ft.difference=function(n){return gr(n,lr(arguments,!0,!0,1))},ft.filter=cu,ft.flatten=function(n,t,i,r){return typeof t!="boolean"&&null!=t&&(r=i,i=typeof t!="function"&&r&&r[t]===n?null:t,t=!1),null!=i&&(n=tu(n,i,r)),lr(n,t)},ft.forEach=yr,ft.forEachRight=lu,ft.forIn=fr,ft.forInRight=function(n,t,i){var r=[],u;for(fr(n,function(n,t){r.push(t,n)}),u=r.length,t=tr(t,i,3);u--&&!1!==t(r[u--],r[u],n););return n},ft.forOwn=hr,ft.forOwnRight=te,ft.functions=nu,ft.groupBy=is,ft.indexBy=rs,ft.initial=function(t,i,r){var u=0,e=t?t.length:0,f;if(typeof i!="number"&&null!=i)for(f=e,i=ft.createCallback(i,r,3);f--&&i(t[f],f,t);)u++;else u=null==i||r?1:i||u;return n(t,0,ou(nr(0,e-u),e))},ft.intersection=function(){for(var t,n,o=[],u=-1,s=arguments.length,f=r(),l=su(),e=l===c,h=r();++u<s;)n=arguments[u],(ct(n)||gi(n))&&(o.push(n),f.push(e&&n.length>=vt&&ot(u?o[u]:h)));var e=o[0],a=-1,y=e?e.length:0,v=[];n:for(;++a<y;)if(t=f[0],n=e[a],0>(t?nt(t,n):l(h,n))){for(u=s,(t||h).push(n);--u;)if(t=f[u],0>(t?nt(t,n):l(o[u],n)))continue n;v.push(n)}for(;s--;)(t=f[s])&&g(t);return i(f),i(h),v},ft.invert=ie,ft.invoke=function(t,i){var f=n(arguments,2),e=-1,o=typeof i=="function",r=t?t.length:0,u=ki(typeof r=="number"?r:0);return yr(t,function(n){u[++e]=(o?i:n[i]).apply(n,f)}),u},ft.keys=di,ft.map=tu,ft.mapValues=function(n,t,i){var r={};return t=ft.createCallback(t,i,3),hr(n,function(n,i,u){r[i]=t(n,i,u)}),r},ft.max=ee,ft.memoize=function(n,t){if(!lt(n))throw new or;var i=function(){var r=i.cache,u=t?t.apply(this,arguments):at+arguments[0];return ti.call(r,u)?r[u]:r[u]=n.apply(this,arguments)};return i.cache={},i},ft.merge=function(t){var f=arguments,u=2,e;if(!bi(t))return t;("number"!=typeof f[2]&&(u=f.length),3<u&&"function"==typeof f[u-2])?e=tr(f[--u-1],f[u--],2):2<u&&"function"==typeof f[u-1]&&(e=f[--u]);for(var f=n(arguments,1,u),o=-1,s=r(),h=r();++o<u;)gf(t,f[o],e,s,h);return i(s),i(h),t},ft.min=function(n,t,i){var u=1/0,r=u,e,f;if(typeof t!="function"&&i&&i[t]===n&&(t=null),null==t&&ct(n))for(i=-1,e=n.length;++i<e;)f=n[i],f<r&&(r=f);else t=null==t&&rr(n)?pt:ft.createCallback(t,i,3),pi(n,function(n,i,f){i=t(n,i,f);i<u&&(u=i,r=n)});return r},ft.omit=function(n,t,i){var u={},r,f;if(typeof t!="function"){r=[];fr(n,function(n,t){r.push(t)});for(var r=gr(r,lr(arguments,!0,!1,1)),e=-1,o=r.length;++e<o;)f=r[e],u[f]=n[f]}else t=ft.createCallback(t,i,3),fr(n,function(n,i,r){t(n,i,r)||(u[i]=n)});return u},ft.once=function(n){var i,t;if(!lt(n))throw new or;return function(){return i?t:(i=!0,t=n.apply(this,arguments),n=null,t)}},ft.pairs=function(n){for(var i,t=-1,r=di(n),u=r.length,f=ki(u);++t<u;)i=r[t],f[t]=[i,n[i]];return f},ft.partial=function(t){return ir(t,16,n(arguments,1))},ft.partialRight=function(t){return ir(t,32,null,n(arguments,1))},ft.pick=function(n,t,i){var u={},r;if(typeof t!="function")for(var f=-1,e=lr(arguments,!0,!1,1),o=bi(n)?e.length:0;++f<o;)r=e[f],r in n&&(u[r]=n[r]);else t=ft.createCallback(t,i,3),fr(n,function(n,i,r){t(n,i,r)&&(u[i]=n)});return u},ft.pluck=kf,ft.property=ke,ft.pull=function(n){for(var t,f,i=arguments,r=0,e=i.length,u=n?n.length:0;++r<e;)for(t=-1,f=i[r];++t<u;)n[t]===f&&(ge.call(n,t--,1),u--);return n},ft.range=function(n,t,i){var r,u;for(n=+n||0,i=typeof i=="number"?i:+i||1,null==t&&(t=n,n=0),r=-1,t=nr(0,vo((t-n)/(i||1))),u=ki(t);++r<t;)u[r]=n,n+=i;return u},ft.reject=function(n,t,i){return t=ft.createCallback(t,i,3),cu(n,function(n,i,r){return!t(n,i,r)})},ft.remove=function(n,t,i){var r=-1,u=n?n.length:0,f=[];for(t=ft.createCallback(t,i,3);++r<u;)i=n[r],t(i,r,n)&&(f.push(i),ge.call(n,r--,1),u--);return f},ft.rest=of,ft.shuffle=se,ft.sortBy=function(n,t,u){var s=-1,o=ct(t),f=n?n.length:0,e=ki(typeof f=="number"?f:0);for(o||(t=ft.createCallback(t,u,3)),yr(n,function(n,i,u){var f=e[++s]=st();o?f.m=tu(t,function(t){return n[t]}):(f.m=r())[0]=t(n,i,u);f.n=s;f.o=n}),f=e.length,e.sort(ii);f--;)n=e[f],e[f]=n.o,o||i(n.m),g(n);return e},ft.tap=function(n,t){return t(n),n},ft.throttle=function(n,t,i){var r=!0,u=!0;if(!lt(n))throw new or;return!1===i?r=!1:bi(i)&&(r="leading"in i?i.leading:r,u="trailing"in i?i.trailing:u),ut.leading=r,ut.maxWait=t,ut.trailing=u,we(n,t,ut)},ft.times=function(n,t,i){n=-1<(n=+n)?n:0;var r=-1,u=ki(n);for(t=tr(t,i,1);++r<n;)u[r]=t(r);return u},ft.toArray=function(t){return t&&typeof t.length=="number"?et.unindexedChars&&rr(t)?t.split(""):n(t):hu(t)},ft.transform=function(n,t,i,r){var f=ct(n),u;return null==i&&(f?i=[]:(u=n&&n.constructor,i=dr(u&&u.prototype))),t&&(t=ft.createCallback(t,r,4),(f?pi:hr)(n,function(n,r,u){return t(i,n,r,u)})),i},ft.union=function(){return tf(lr(arguments,!0,!0))},ft.uniq=ae,ft.values=hu,ft.where=cu,ft.without=function(t){return gr(t,n(arguments,1))},ft.wrap=function(n,t){return ir(t,16,[n])},ft.xor=function(){for(var n,t,i=-1,r=arguments.length;++i<r;)n=arguments[i],(ct(n)||gi(n))&&(t=t?tf(gr(t,n).concat(gr(n,t))):n);return t||[]},ft.zip=ve,ft.zipObject=ye,ft.collect=tu,ft.drop=of,ft.each=yr,ft.eachRight=lu,ft.extend=du,ft.methods=nu,ft.object=ye,ft.select=cu,ft.tail=of,ft.unique=ae,ft.unzip=ve,hf(ft),ft.clone=function(n,t,i,r){return typeof t!="boolean"&&null!=t&&(r=i,i=t,t=!1),gu(n,t,typeof i=="function"&&tr(i,r,1))},ft.cloneDeep=function(n,t,i){return gu(n,!0,typeof t=="function"&&tr(t,i,1))},ft.contains=ue,ft.escape=function(n){return null==n?"":er(n).replace(ns,eo)},ft.every=fe,ft.find=uf,ft.findIndex=function(n,t,i){var r=-1,u=n?n.length:0;for(t=ft.createCallback(t,i,3);++r<u;)if(t(n[r],r,n))return r;return-1},ft.findKey=function(n,t,i){var r;return t=ft.createCallback(t,i,3),hr(n,function(n,i,u){if(t(n,i,u))return(r=i,!1)}),r},ft.findLast=function(n,t,i){var r;return t=ft.createCallback(t,i,3),lu(n,function(n,i,u){if(t(n,i,u))return(r=n,!1)}),r},ft.findLastIndex=function(n,t,i){var r=n?n.length:0;for(t=ft.createCallback(t,i,3);r--;)if(t(n[r],r,n))return r;return-1},ft.findLastKey=function(n,t,i){var r;return t=ft.createCallback(t,i,3),te(n,function(n,i,u){if(t(n,i,u))return(r=i,!1)}),r},ft.has=function(n,t){return n?ti.call(n,t):!1},ft.identity=sf,ft.indexOf=ce,ft.isArguments=gi,ft.isArray=ct,ft.isBoolean=function(n){return!0===n||!1===n||n&&typeof n=="object"&&wt.call(n)==v||!1},ft.isDate=function(n){return n&&typeof n=="object"&&wt.call(n)==y||!1},ft.isElement=function(n){return n&&1===n.nodeType||!1},ft.isEmpty=function(n){var i=!0,t,r;return n?(t=wt.call(n),r=n.length,t==a||t==h||(et.argsClass?t==l:gi(n))||t==u&&typeof r=="number"&&lt(n.splice)?!r:(hr(n,function(){return i=!1}),i)):i},ft.isEqual=function(n,t,i,r){return wr(n,t,typeof i=="function"&&tr(i,r,2))},ft.isFinite=function(n){return bo(n)&&!ko(parseFloat(n))},ft.isFunction=lt,ft.isNaN=function(n){return re(n)&&n!=+n},ft.isNull=function(n){return null===n},ft.isNumber=re,ft.isObject=bi,ft.isPlainObject=bf,ft.isRegExp=function(n){return n&&e[typeof n]&&wt.call(n)==w||!1},ft.isString=rr,ft.isUndefined=function(n){return typeof n=="undefined"},ft.lastIndexOf=function(n,t,i){var r=n?n.length:0;for(typeof i=="number"&&(r=(0>i?nr(0,r+i):ou(i,r-1))+1);r--;)if(n[r]===t)return r;return-1},ft.mixin=hf,ft.noConflict=function(){return d._=lo,this},ft.noop=be,ft.now=pr,ft.parseInt=us,ft.random=function(n,t,i){var u=null==n,r=null==t;return null==i&&(typeof n=="boolean"&&r?(i=n,n=1):r||typeof t!="boolean"||(i=t,r=!0)),u&&r&&(t=1),n=+n||0,r?(t=n,n=0):t=+t||0,i||n%1||t%1?(i=to(),ou(n+i*(t-n+parseFloat("1e-"+((i+"").length-1))),t)):nf(n,t)},ft.reduce=ff,ft.reduceRight=oe,ft.result=function(n,t){if(n){var i=n[t];return lt(i)?n[t]():i}},ft.runInContext=ht,ft.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:di(n).length},ft.some=he,ft.sortedIndex=le,ft.template=function(n,t,i){var f=ft.templateSettings,o;n=er(n||"");i=wf({},i,f);var h,e=wf({},i.imports,f.imports),f=di(e),e=hu(e),c=0,u=i.interpolate||it,r="__p+='",u=uu((i.escape||it).source+"|"+u.source+"|"+(u===kt?hi:it).source+"|"+(i.evaluate||it).source+"|$","g");n.replace(u,function(t,i,u,f,e,o){return u||(u=f),r+=n.slice(c,o).replace(vi,ri),i&&(r+="'+__e("+i+")+'"),e&&(h=!0,r+="';"+e+";\n__p+='"),u&&(r+="'+((__t=("+u+"))==null?'':__t)+'"),c=o+t.length,t});r+="';";u=i=i.variable;u||(i="obj",r="with("+i+"){"+r+"}");r=(h?r.replace(ei,""):r).replace(oi,"$1").replace(si,"$1;");r="function("+i+"){"+(u?"":i+"||("+i+"={});")+"var __t,__p='',__e=_.escape"+(h?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+r+"return __p}";try{o=iu(f,"return "+r).apply(s,e)}catch(l){throw l.source=r,l;}return t?o(t):(o.source=r,o)},ft.unescape=function(n){return null==n?"":er(n).replace(go,oo)},ft.uniqueId=function(n){var t=++ui;return er(null==n?"":n)+t},ft.all=fe,ft.any=he,ft.detect=uf,ft.findWhere=uf,ft.foldl=ff,ft.foldr=oe,ft.include=ue,ft.inject=ff,hf(function(){var n={};return hr(ft,function(t,i){ft.prototype[i]||(n[i]=t)}),n}(),!1),ft.first=ef,ft.last=function(t,i,r){var u=0,e=t?t.length:0,f;if(typeof i!="number"&&null!=i)for(f=e,i=ft.createCallback(i,r,3);f--&&i(t[f],f,t);)u++;else if(u=i,null==u||r)return t?t[e-1]:s;return n(t,nr(0,e-u))},ft.sample=function(n,t,i){return n&&typeof n.length!="number"?n=hu(n):et.unindexedChars&&rr(n)&&(n=n.split("")),null==t||i?n?n[nf(0,n.length-1)]:s:(n=se(n),n.length=ou(nr(0,t),n.length),n)},ft.take=ef,ft.head=ef,hr(ft,function(n,t){var i="sample"!==t;ft.prototype[t]||(ft.prototype[t]=function(t,r){var u=this.__chain__,f=n(this.__wrapped__,t,r);return u||null!=t&&(!r||i&&typeof t=="function")?new cr(f,u):f})}),ft.VERSION="2.4.1",ft.prototype.chain=function(){return this.__chain__=!0,this},ft.prototype.toString=function(){return er(this.__wrapped__)},ft.prototype.value=de,ft.prototype.valueOf=de,pi(["join","pop","shift"],function(n){var t=vr[n];ft.prototype[n]=function(){var n=this.__chain__,i=t.apply(this.__wrapped__,arguments);return n?new cr(i,n):i}}),pi(["push","reverse","sort","unshift"],function(n){var t=vr[n];ft.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),pi(["concat","slice","splice"],function(n){var t=vr[n];ft.prototype[n]=function(){return new cr(t.apply(this.__wrapped__,arguments),this.__chain__)}}),et.spliceObjects||pi(["pop","shift","splice"],function(n){var t=vr[n],i="splice"==n;ft.prototype[n]=function(){var r=this.__chain__,n=this.__wrapped__,u=t.apply(n,arguments);return 0===n.length&&delete n[0],r||i?new cr(u,r):u}}),ft}var s,ct=[],lt=[],ui=0,fi={},at=+new Date+"",vt=75,wt=40,bt=" \t\x0b\f ﻿\n\r\u2028\u2029 ᠎             　",ei=/\b__p\+='';/g,oi=/\b(__p\+=)''\+/g,si=/(__e\(.*?\)|\b__t\))\+'';/g,hi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ci=/\w*$/,li=/^\s*function[ \n\r\t]+\w/,kt=/<%=([\s\S]+?)%>/g,ai=RegExp("^["+bt+"]*0+(?=.$)"),it=/($^)/,dt=/\bthis\b/,vi=/['\n\r\t\u2028\u2029\\]/g,yi="Array Boolean Date Error Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setTimeout".split(" "),yt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),l="[object Arguments]",a="[object Array]",v="[object Boolean]",y="[object Date]",gt="[object Error]",rt="[object Function]",p="[object Number]",u="[object Object]",w="[object RegExp]",h="[object String]",f={},o;f[rt]=!1;f[l]=f[a]=f[v]=f[y]=f[p]=f[u]=f[w]=f[h]=!0;var ut={leading:!1,maxWait:0,trailing:!1},ni={configurable:!1,enumerable:!1,value:null,writable:!1},t={a:"",b:null,c:"",d:"",e:"",v:null,g:"",h:null,support:null,i:"",j:!1},e={boolean:!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},pi={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},b=e[typeof window]&&window||this,ft=e[typeof exports]&&exports&&!exports.nodeType&&exports,et=e[typeof module]&&module&&!module.nodeType&&module,wi=et&&et.exports===ft&&ft,d=e[typeof global]&&global;d&&(d.global===d||d.window===d)&&(b=d);o=ht();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(b._=o,define(function(){return o})):ft&&et?wi?(et.exports=o)._=o:ft._=o:b._=o}.call(this);!function(n,t){"use strict";var s=t.prototype.trim,h=t.prototype.trimRight,c=t.prototype.trimLeft,l=function(n){return n*1||0},r=function(n,t){if(t<1)return"";for(var i="";t>0;)t&1&&(i+=n),t>>=1,n+=n;return i},a=[].slice,f=function(n){return n==null?"\\s":n.source?n.source:"["+i.escapeRegExp(n)+"]"},e={lt:"<",gt:">",quot:'"',apos:"'",amp:"&"},v={},o,u,i;for(o in e)v[e[o]]=o;u=function(){function i(n){return Object.prototype.toString.call(n).slice(8,-1).toLowerCase()}var f=r,n=function(){return n.cache.hasOwnProperty(arguments[0])||(n.cache[arguments[0]]=n.parse(arguments[0])),n.format.call(null,n.cache[arguments[0]],arguments)};return n.format=function(n,r){for(var v=1,w=n.length,c="",e,l=[],h,o,a,y,p,s=0;s<w;s++)if(c=i(n[s]),c==="string")l.push(n[s]);else if(c==="array"){if(o=n[s],o[2])for(e=r[v],h=0;h<o[2].length;h++){if(!e.hasOwnProperty(o[2][h]))throw new Error(u('[_.sprintf] property "%s" does not exist',o[2][h]));e=e[o[2][h]]}else e=o[1]?r[o[1]]:r[v++];if(/[^s]/.test(o[8])&&i(e)!="number")throw new Error(u("[_.sprintf] expecting number but found %s",i(e)));switch(o[8]){case"b":e=e.toString(2);break;case"c":e=t.fromCharCode(e);break;case"d":e=parseInt(e,10);break;case"e":e=o[7]?e.toExponential(o[7]):e.toExponential();break;case"f":e=o[7]?parseFloat(e).toFixed(o[7]):parseFloat(e);break;case"o":e=e.toString(8);break;case"s":e=(e=t(e))&&o[7]?e.substring(0,o[7]):e;break;case"u":e=Math.abs(e);break;case"x":e=e.toString(16);break;case"X":e=e.toString(16).toUpperCase()}e=/[def]/.test(o[8])&&o[3]&&e>=0?"+"+e:e;y=o[4]?o[4]=="0"?"0":o[4].charAt(1):" ";p=o[6]-t(e).length;a=o[6]?f(y,p):"";l.push(o[5]?e+a:a+e)}return l.join("")},n.cache={},n.parse=function(n){for(var r=n,t=[],f=[],o=0;r;){if((t=/^[^\x25]+/.exec(r))!==null)f.push(t[0]);else if((t=/^\x25{2}/.exec(r))!==null)f.push("%");else{if((t=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(r))===null)throw new Error("[_.sprintf] huh?");if(t[2]){o|=1;var e=[],u=t[2],i=[];if((i=/^([a-z_][a-z_\d]*)/i.exec(u))===null)throw new Error("[_.sprintf] huh?");for(e.push(i[1]);(u=u.substring(i[0].length))!=="";)if((i=/^\.([a-z_][a-z_\d]*)/i.exec(u))!==null)e.push(i[1]);else{if((i=/^\[(\d+)\]/.exec(u))===null)throw new Error("[_.sprintf] huh?");e.push(i[1])}t[2]=e}else o|=2;if(o===3)throw new Error("[_.sprintf] mixing positional and named placeholders is not (yet) supported");f.push(t)}r=r.substring(t[0].length)}return f},n}();i={VERSION:"2.3.0",isBlank:function(n){return n==null&&(n=""),/^\s*$/.test(n)},stripTags:function(n){return n==null?"":t(n).replace(/<\/?[^>]+>/g,"")},capitalize:function(n){return n=n==null?"":t(n),n.charAt(0).toUpperCase()+n.slice(1)},chop:function(n,i){return n==null?[]:(n=t(n),i=~~i,i>0?n.match(new RegExp(".{1,"+i+"}","g")):[n])},clean:function(n){return i.strip(n).replace(/\s+/g," ")},count:function(n,i){return n==null||i==null?0:t(n).split(i).length-1},chars:function(n){return n==null?[]:t(n).split("")},swapCase:function(n){return n==null?"":t(n).replace(/\S/g,function(n){return n===n.toUpperCase()?n.toLowerCase():n.toUpperCase()})},escapeHTML:function(n){return n==null?"":t(n).replace(/[&<>"']/g,function(n){return"&"+v[n]+";"})},unescapeHTML:function(n){return n==null?"":t(n).replace(/\&([^;]+);/g,function(n,i){var r;return i in e?e[i]:(r=i.match(/^#x([\da-fA-F]+)$/))?t.fromCharCode(parseInt(r[1],16)):(r=i.match(/^#(\d+)$/))?t.fromCharCode(~~r[1]):n})},escapeRegExp:function(n){return n==null?"":t(n).replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")},splice:function(n,t,r,u){var f=i.chars(n);return f.splice(~~t,~~r,u),f.join("")},insert:function(n,t,r){return i.splice(n,t,0,r)},include:function(n,i){return i===""?!0:n==null?!1:t(n).indexOf(i)!==-1},join:function(){var t=a.call(arguments),n=t.shift();return n==null&&(n=""),t.join(n)},lines:function(n){return n==null?[]:t(n).split("\n")},reverse:function(n){return i.chars(n).reverse().join("")},startsWith:function(n,i){return i===""?!0:n==null||i==null?!1:(n=t(n),i=t(i),n.length>=i.length&&n.slice(0,i.length)===i)},endsWith:function(n,i){return i===""?!0:n==null||i==null?!1:(n=t(n),i=t(i),n.length>=i.length&&n.slice(n.length-i.length)===i)},succ:function(n){return n==null?"":(n=t(n),n.slice(0,-1)+t.fromCharCode(n.charCodeAt(n.length-1)+1))},titleize:function(n){return n==null?"":t(n).replace(/(?:^|\s)\S/g,function(n){return n.toUpperCase()})},camelize:function(n){return i.trim(n).replace(/[-_\s]+(.)?/g,function(n,t){return t.toUpperCase()})},underscored:function(n){return i.trim(n).replace(/([a-z\d])([A-Z]+)/g,"$1_$2").replace(/[-\s]+/g,"_").toLowerCase()},dasherize:function(n){return i.trim(n).replace(/([A-Z])/g,"-$1").replace(/[-_\s]+/g,"-").toLowerCase()},classify:function(n){return i.titleize(t(n).replace(/_/g," ")).replace(/\s/g,"")},humanize:function(n){return i.capitalize(i.underscored(n).replace(/_id$/,"").replace(/_/g," "))},trim:function(n,i){return n==null?"":!i&&s?s.call(n):(i=f(i),t(n).replace(new RegExp("^"+i+"+|"+i+"+$","g"),""))},ltrim:function(n,i){return n==null?"":!i&&c?c.call(n):(i=f(i),t(n).replace(new RegExp("^"+i+"+"),""))},rtrim:function(n,i){return n==null?"":!i&&h?h.call(n):(i=f(i),t(n).replace(new RegExp(i+"+$"),""))},truncate:function(n,i,r){return n==null?"":(n=t(n),r=r||"...",i=~~i,n.length>i?n.slice(0,i)+r:n)},prune:function(n,r,u){if(n==null)return"";if(n=t(n),r=~~r,u=u!=null?t(u):"...",n.length<=r)return n;var e=function(n){return n.toUpperCase()!==n.toLowerCase()?"A":" "},f=n.slice(0,r+1).replace(/.(?=\W*\w*$)/g,e);return f=f.slice(f.length-2).match(/\w\w/)?f.replace(/\s*\S+$/,""):i.rtrim(f.slice(0,f.length-1)),(f+u).length>n.length?n:n.slice(0,f.length)+u},words:function(n,t){return i.isBlank(n)?[]:i.trim(n,t).split(t||/\s+/)},pad:function(n,i,u,f){n=n==null?"":t(n);i=~~i;var e=0;u?u.length>1&&(u=u.charAt(0)):u=" ";switch(f){case"right":return e=i-n.length,n+r(u,e);case"both":return e=i-n.length,r(u,Math.ceil(e/2))+n+r(u,Math.floor(e/2));default:return e=i-n.length,r(u,e)+n}},lpad:function(n,t,r){return i.pad(n,t,r)},rpad:function(n,t,r){return i.pad(n,t,r,"right")},lrpad:function(n,t,r){return i.pad(n,t,r,"both")},sprintf:u,vsprintf:function(n,t){return t.unshift(n),u.apply(null,t)},toNumber:function(n,i){if(n==null||n=="")return 0;n=t(n);var r=l(l(n).toFixed(~~i));return r===0&&!n.match(/^0+$/)?Number.NaN:r},numberFormat:function(n,t,i,r){if(isNaN(n)||n==null)return"";n=n.toFixed(~~t);r=r||",";var u=n.split("."),f=u[0],e=u[1]?(i||".")+u[1]:"";return f.replace(/(\d)(?=(?:\d{3})+$)/g,"$1"+r)+e},strRight:function(n,i){if(n==null)return"";n=t(n);i=i!=null?t(i):i;var r=i?n.indexOf(i):-1;return~r?n.slice(r+i.length,n.length):n},strRightBack:function(n,i){if(n==null)return"";n=t(n);i=i!=null?t(i):i;var r=i?n.lastIndexOf(i):-1;return~r?n.slice(r+i.length,n.length):n},strLeft:function(n,i){if(n==null)return"";n=t(n);i=i!=null?t(i):i;var r=i?n.indexOf(i):-1;return~r?n.slice(0,r):n},strLeftBack:function(n,t){if(n==null)return"";n+="";t=t!=null?""+t:t;var i=n.lastIndexOf(t);return~i?n.slice(0,i):n},toSentence:function(n,t,r,u){t=t||", ";r=r||" and ";var f=n.slice(),e=f.pop();return n.length>2&&u&&(r=i.rtrim(t)+r),f.length?f.join(t)+r+e:e},toSentenceSerial:function(){var n=a.call(arguments);return n[3]=!0,i.toSentence.apply(i,n)},slugify:function(n){if(n==null)return"";var r="ąàáäâãåæćęèéëêìíïîłńòóöôõøùúüûñçżź",u="aaaaaaaaceeeeeiiiilnoooooouuuunczz",e=new RegExp(f(r),"g");return n=t(n).toLowerCase().replace(e,function(n){var t=r.indexOf(n);return u.charAt(t)||"-"}),i.dasherize(n.replace(/[^\w\s-]/g,""))},surround:function(n,t){return[t,n,t].join("")},quote:function(n){return i.surround(n,'"')},exports:function(){var t={},n;for(n in this)this.hasOwnProperty(n)&&!n.match(/^(?:include|contains|reverse)$/)&&(t[n]=this[n]);return t},repeat:function(n,i,u){if(n==null)return"";if(i=~~i,u==null)return r(t(n),i);for(var f=[];i>0;f[--i]=n);return f.join(u)},levenshtein:function(n,i){var u,e,o,f,r;if(n==null&&i==null)return 0;if(n==null)return t(i).length;if(i==null)return t(n).length;for(n=t(n),i=t(i),u=[],f=0;f<=i.length;f++)for(r=0;r<=n.length;r++)o=f&&r?n.charAt(r-1)===i.charAt(f-1)?e:Math.min(u[r],u[r-1],e)+1:f+r,e=u[r],u[r]=o;return u.pop()}};i.strip=i.trim;i.lstrip=i.ltrim;i.rstrip=i.rtrim;i.center=i.lrpad;i.rjust=i.lpad;i.ljust=i.rpad;i.contains=i.include;i.q=i.quote;typeof exports!="undefined"?(typeof module!="undefined"&&module.exports&&(module.exports=i),exports._s=i):typeof define=="function"&&define.amd?define("underscore.string",[],function(){return i}):(n._=n._||{},n._.string=n._.str=i)}(this,String),function(n){function c(n,t,i,r){var u=i.lang();return u[n].call?u[n](i,r):u[n][t]}function g(n,t){return function(i){return u(n.call(this,i),t)}}function yt(n){return function(t){var i=n.call(this,t);return i+this.lang().ordinal(i)}}function h(n,t,i){this._d=n;this._isUTC=!!t;this._a=n._a||null;this._lang=i||!1}function a(n){var t=this._data={},s=n.years||n.y||0,r=n.months||n.M||0,c=n.weeks||n.w||0,i=n.days||n.d||0,u=n.hours||n.h||0,e=n.minutes||n.m||0,o=n.seconds||n.s||0,h=n.milliseconds||n.ms||0;this._milliseconds=h+o*1e3+e*6e4+u*36e5;this._days=i+c*7;this._months=r+s*12;t.milliseconds=h%1e3;o+=f(h/1e3);t.seconds=o%60;e+=f(o/60);t.minutes=e%60;u+=f(e/60);t.hours=u%24;i+=f(u/24);i+=c*7;t.days=i%30;r+=f(i/30);t.months=r%12;s+=f(r/12);t.years=s;this._lang=!1}function f(n){return n<0?Math.ceil(n):Math.floor(n)}function u(n,t){for(var i=n+"";i.length<t;)i="0"+i;return i}function nt(n,t,i){var r=t._milliseconds,u=t._days,f=t._months,e;r&&n._d.setTime(+n+r*i);u&&n.date(n.date()+u*i);f&&(e=n.date(),n.date(1).month(n.month()+f*i).date(Math.min(e,n.daysInMonth())))}function v(n){return Object.prototype.toString.call(n)==="[object Array]"}function tt(n,t){for(var u=Math.min(n.length,t.length),f=Math.abs(n.length-t.length),r=0,i=0;i<u;i++)~~n[i]!=~~t[i]&&r++;return r+f}function y(n,t,i,r){for(var f,e=[],u=0;u<7;u++)e[u]=n[u]=n[u]==null?u===2?1:0:n[u];return n[7]=e[7]=t,n[8]!=null&&(e[8]=n[8]),n[3]+=i||0,n[4]+=r||0,f=new Date(0),t?(f.setUTCFullYear(n[0],n[1],n[2]),f.setUTCHours(n[3],n[4],n[5],n[6])):(f.setFullYear(n[0],n[1],n[2]),f.setHours(n[3],n[4],n[5],n[6])),f._a=e,f}function it(n,i){var r,u,f=[];for(!i&&ot&&(i=require("./lang/"+n)),r=0;r<s.length;r++)i[s[r]]=i[s[r]]||o.en[s[r]];for(r=0;r<12;r++)u=t([2e3,r]),f[r]=new RegExp("^"+(i.months[r]||i.months(u,""))+"|^"+(i.monthsShort[r]||i.monthsShort(u,"")).replace(".",""),"i");return i.monthsParse=i.monthsParse||f,o[n]=i,i}function p(n){var i=typeof n=="string"&&n||n&&n._lang||null;return i?o[i]||it(i):t}function pt(n){return n.match(/\[.*\]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function wt(n){for(var i=n.match(st),t=0,u=i.length;t<u;t++)i[t]=r[i[t]]?r[i[t]]:pt(i[t]);return function(r){var f="";for(t=0;t<u;t++)f+=typeof i[t].call=="function"?i[t].call(r,n):i[t];return f}}function rt(n,t){function i(t){return n.lang().longDateFormat[t]||t}for(var r=5;r--&&ht.test(t);)t=t.replace(ht,i);return d[t]||(d[t]=wt(t)),d[t](n)}function bt(n){switch(n){case"DDDD":return ei;case"YYYY":return oi;case"S":case"SS":case"SSS":case"DDD":return fi;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":case"a":case"A":return si;case"Z":case"ZZ":return w;case"T":return hi;case"MM":case"DD":case"YY":case"HH":case"hh":case"mm":case"ss":case"M":case"D":case"d":case"H":case"h":case"m":case"s":return ui;default:return new RegExp(n.replace("\\",""))}}function kt(n,t,i,r){var u,f;switch(n){case"M":case"MM":i[1]=t==null?0:~~t-1;break;case"MMM":case"MMMM":for(u=0;u<12;u++)if(p().monthsParse[u].test(t)){i[1]=u;f=!0;break}f||(i[8]=!1);break;case"D":case"DD":case"DDD":case"DDDD":t!=null&&(i[2]=~~t);break;case"YY":i[0]=~~t+(~~t>70?1900:2e3);break;case"YYYY":i[0]=~~Math.abs(t);break;case"a":case"A":r.isPm=(t+"").toLowerCase()==="pm";break;case"H":case"HH":case"h":case"hh":i[3]=~~t;break;case"m":case"mm":i[4]=~~t;break;case"s":case"ss":i[5]=~~t;break;case"S":case"SS":case"SSS":i[6]=~~(("0."+t)*1e3);break;case"Z":case"ZZ":r.isUTC=!0;u=(t+"").match(li);u&&u[1]&&(r.tzh=~~u[1]);u&&u[2]&&(r.tzm=~~u[2]);u&&u[0]==="+"&&(r.tzh=-r.tzh,r.tzm=-r.tzm)}t==null&&(i[8]=!1)}function l(n,t){for(var i=[0,0,1,0,0,0,0],u={tzh:0,tzm:0},o=t.match(st),e,f=0;f<o.length;f++)e=(bt(o[f]).exec(n)||[])[0],e&&(n=n.slice(n.indexOf(e)+e.length)),r[o[f]]&&kt(o[f],e,i,u);return u.isPm&&i[3]<12&&(i[3]+=12),u.isPm===!1&&i[3]===12&&(i[3]=0),y(i,u.isUTC,u.tzh,u.tzm)}function dt(n,t){for(var f,s=n.match(ct)||[],e,o=99,r,u,i=0;i<t.length;i++)r=l(n,t[i]),e=rt(new h(r),t[i]).match(ct)||[],u=tt(s,e),u<o&&(o=u,f=r);return f}function gt(n){var i="YYYY-MM-DDT",t;if(ci.exec(n)){for(t=0;t<4;t++)if(lt[t][1].exec(n)){i+=lt[t][0];break}return w.exec(n)?l(n,i+" Z"):l(n,i)}return new Date(n)}function ni(n,t,i,r,u){var f=u.relativeTime[n];return typeof f=="function"?f(t||1,!!i,n,r):f.replace(/%d/i,t||1)}function ti(n,t,i){var s=e(Math.abs(n)/1e3),u=e(s/60),f=e(u/60),r=e(f/24),h=e(r/365),o=s<45&&["s",s]||u===1&&["m"]||u<45&&["mm",u]||f===1&&["h"]||f<22&&["hh",f]||r===1&&["d"]||r<=25&&["dd",r]||r<=45&&["M"]||r<345&&["MM",e(r/30)]||h===1&&["y"]||["yy",h];return o[2]=t,o[3]=n>0,o[4]=i,ni.apply({},o)}function ut(n,i){t.fn[n]=function(n){var t=this._isUTC?"UTC":"";return n!=null?(this._d["set"+t+i](n),this):this._d["get"+t+i]()}}function ii(n){t.duration.fn[n]=function(){return this._data[n]}}function ft(n,i){t.duration.fn["as"+n]=function(){return+this/i}}for(var t,e=Math.round,i,o={},et="en",ot=typeof module!="undefined"&&module.exports,s="months|monthsShort|weekdays|weekdaysShort|weekdaysMin|longDateFormat|calendar|relativeTime|ordinal|meridiem".split("|"),ri=/^\/?Date\((\-?\d+)/i,st=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|YYYY|YY|a|A|hh?|HH?|mm?|ss?|SS?S?|zz?|ZZ?|.)/g,ht=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?)/g,ct=/([0-9a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)/gi,ui=/\d\d?/,fi=/\d{1,3}/,ei=/\d{3}/,oi=/\d{1,4}/,si=/[0-9a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+/i,w=/Z|[\+\-]\d\d:?\d\d/i,hi=/T/i,ci=/^\s*\d{4}-\d\d-\d\d(T(\d\d(:\d\d(:\d\d(\.\d\d?\d?)?)?)?)?([\+\-]\d\d:?\d\d)?)?/,lt=[["HH:mm:ss.S",/T\d\d:\d\d:\d\d\.\d{1,3}/],["HH:mm:ss",/T\d\d:\d\d:\d\d/],["HH:mm",/T\d\d:\d\d/],["HH",/T\d\d/]],li=/([\+\-]|\d\d)/gi,b="Month|Date|Hours|Minutes|Seconds|Milliseconds".split("|"),k={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6},d={},at="DDD w M D d".split(" "),vt="M D H h m s w".split(" "),r={M:function(){return this.month()+1},MMM:function(n){return c("monthsShort",this.month(),this,n)},MMMM:function(n){return c("months",this.month(),this,n)},D:function(){return this.date()},DDD:function(){var n=new Date(this.year(),this.month(),this.date()),t=new Date(this.year(),0,1);return~~((n-t)/864e5+1.5)},d:function(){return this.day()},dd:function(n){return c("weekdaysMin",this.day(),this,n)},ddd:function(n){return c("weekdaysShort",this.day(),this,n)},dddd:function(n){return c("weekdays",this.day(),this,n)},w:function(){var n=new Date(this.year(),this.month(),this.date()-this.day()+5),t=new Date(n.getFullYear(),0,4);return~~((n-t)/6048e5+1.5)},YY:function(){return u(this.year()%100,2)},YYYY:function(){return u(this.year(),4)},a:function(){return this.lang().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.lang().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return~~(this.milliseconds()/100)},SS:function(){return u(~~(this.milliseconds()/10),2)},SSS:function(){return u(this.milliseconds(),3)},Z:function(){var n=-this.zone(),t="+";return n<0&&(n=-n,t="-"),t+u(~~(n/60),2)+":"+u(~~n%60,2)},ZZ:function(){var n=-this.zone(),t="+";return n<0&&(n=-n,t="-"),t+u(~~(10*n/6),4)}};at.length;)i=at.pop(),r[i+"o"]=yt(r[i]);while(vt.length)i=vt.pop(),r[i+i]=g(r[i],2);for(r.DDDD=g(r.DDD,3),t=function(i,r){if(i===null||i==="")return null;var u,f;return t.isMoment(i)?new h(new Date(+i._d),i._isUTC,i._lang):(r?u=v(r)?dt(i,r):l(i,r):(f=ri.exec(i),u=i===n?new Date:f?new Date(+f[1]):i instanceof Date?i:v(i)?y(i):typeof i=="string"?gt(i):new Date(i)),new h(u))},t.utc=function(n,i){return v(n)?new h(y(n,!0),!0):(typeof n=="string"&&!w.exec(n)&&(n+=" +0000",i&&(i+=" Z")),t(n,i).utc())},t.unix=function(n){return t(n*1e3)},t.duration=function(n,i){var f=t.isDuration(n),e=typeof n=="number",r=f?n._data:e?{}:n,u;return e&&(i?r[i]=n:r.milliseconds=n),u=new a(r),f&&(u._lang=n._lang),u},t.humanizeDuration=function(n,i,r){return t.duration(n,i===!0?null:i).humanize(i===!0?!0:r)},t.version="1.7.2",t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.lang=function(n,i){var r;if(!n)return et;if((i||!o[n])&&it(n,i),o[n]){for(r=0;r<s.length;r++)t[s[r]]=o[n][s[r]];t.monthsParse=o[n].monthsParse;et=n}},t.langData=p,t.isMoment=function(n){return n instanceof h},t.isDuration=function(n){return n instanceof a},t.lang("en",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D YYYY",LLL:"MMMM D YYYY LT",LLLL:"dddd, MMMM D YYYY LT"},meridiem:function(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinal:function(n){var t=n%10;return~~(n%100/10)==1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th"}}),t.fn=h.prototype={clone:function(){return t(this)},valueOf:function(){return+this._d},unix:function(){return Math.floor(+this._d/1e3)},toString:function(){return this._d.toString()},toDate:function(){return this._d},toArray:function(){var n=this;return[n.year(),n.month(),n.date(),n.hours(),n.minutes(),n.seconds(),n.milliseconds(),!!this._isUTC]},isValid:function(){return this._a?this._a[8]!=null?!!this._a[8]:!tt(this._a,(this._a[7]?t.utc(this._a):t(this._a)).toArray()):!isNaN(this._d.getTime())},utc:function(){return this._isUTC=!0,this},local:function(){return this._isUTC=!1,this},format:function(n){return rt(this,n?n:t.defaultFormat)},add:function(n,i){var r=i?t.duration(+i,n):t.duration(n);return nt(this,r,1),this},subtract:function(n,i){var r=i?t.duration(+i,n):t.duration(n);return nt(this,r,-1),this},diff:function(n,i,r){var f=this._isUTC?t(n).utc():t(n).local(),l=(this.zone()-f.zone())*6e4,u=this._d-f._d-l,s=this.year()-f.year(),h=this.month()-f.month(),c=this.date()-f.date(),o;return o=i==="months"?s*12+h+c/30:i==="years"?s+(h+c/30)/12:i==="seconds"?u/1e3:i==="minutes"?u/6e4:i==="hours"?u/36e5:i==="days"?u/864e5:i==="weeks"?u/6048e5:u,r?o:e(o)},from:function(n,i){return t.duration(this.diff(n)).lang(this._lang).humanize(!i)},fromNow:function(n){return this.from(t(),n)},calendar:function(){var n=this.diff(t().sod(),"days",!0),i=this.lang().calendar,u=i.sameElse,r=n<-6?u:n<-1?i.lastWeek:n<0?i.lastDay:n<1?i.sameDay:n<2?i.nextDay:n<7?i.nextWeek:u;return this.format(typeof r=="function"?r.apply(this):r)},isLeapYear:function(){var n=this.year();return n%4==0&&n%100!=0||n%400==0},isDST:function(){return this.zone()<t([this.year()]).zone()||this.zone()<t([this.year(),5]).zone()},day:function(n){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return n==null?t:this.add({d:n-t})},startOf:function(n){switch(n.replace(/s$/,"")){case"year":this.month(0);case"month":this.date(1);case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return this},endOf:function(n){return this.startOf(n).add(n.replace(/s?$/,"s"),1).subtract("ms",1)},sod:function(){return this.clone().startOf("day")},eod:function(){return this.clone().endOf("day")},zone:function(){return this._isUTC?0:this._d.getTimezoneOffset()},daysInMonth:function(){return t.utc([this.year(),this.month()+1,0]).date()},lang:function(t){return t===n?p(this):(this._lang=t,this)}},i=0;i<b.length;i++)ut(b[i].toLowerCase(),b[i]);ut("year","FullYear");t.duration.fn=a.prototype={weeks:function(){return f(this.days()/7)},valueOf:function(){return this._milliseconds+this._days*864e5+this._months*2592e6},humanize:function(n){var r=+this,u=this.lang().relativeTime,t=ti(r,!n,this.lang()),i=r<=0?u.past:u.future;return n&&(t=typeof i=="function"?i(t):i.replace(/%s/i,t)),t},lang:t.fn.lang};for(i in k)k.hasOwnProperty(i)&&(ft(i,k[i]),ii(i.toLowerCase()));ft("Weeks",6048e5);ot&&(module.exports=t);typeof ender=="undefined"&&(this.moment=t);typeof define=="function"&&define.amd&&define("moment",[],function(){return t})}.call(this),function(n,t){typeof exports=="object"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.Spinner=t()}(this,function(){"use strict";function i(n,t){var r=document.createElement(n||"div"),i;for(i in t)r[i]=t[i];return r}function t(n){for(var t=1,i=arguments.length;t<i;t++)n.appendChild(arguments[t]);return n}function a(n,t,i,r){var f=["opacity",t,~~(n*100),i,r].join("-"),o=.01+i/r*100,s=Math.max(1-(1-n)/t*(100-o),n),c=u.substring(0,u.indexOf("Animation")).toLowerCase(),l=c&&"-"+c+"-"||"";return h[f]||(e.insertRule("@"+l+"keyframes "+f+"{0%{opacity:"+s+"}"+o+"%{opacity:"+n+"}"+(o+.01)+"%{opacity:1}"+(o+t)%100+"%{opacity:"+n+"}100%{opacity:"+s+"}}",e.cssRules.length),h[f]=1),f}function o(n,t){var u=n.style,r,i;for(t=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<s.length;i++)if(r=s[i]+t,u[r]!==undefined)return r;if(u[t]!==undefined)return t}function n(n,t){for(var i in t)n.style[o(n,i)||i]=t[i];return n}function c(n){for(var r,i,t=1;t<arguments.length;t++){r=arguments[t];for(i in r)n[i]===undefined&&(n[i]=r[i])}return n}function l(n,t){return typeof n=="string"?n:n[t%n.length]}function r(n){this.opts=c(n||{},r.defaults,v)}function y(){function u(n,t){return i("<"+n+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',t)}e.addRule(".spin-vml","behavior:url(#default#VML)");r.prototype.lines=function(i,r){function s(){return n(u("group",{coordsize:o+" "+o,coordorigin:-e+" "+-e}),{width:o,height:o})}function a(i,f,o){t(c,t(n(s(),{rotation:360/r.lines*i+"deg",left:~~f}),t(n(u("roundrect",{arcsize:r.corners}),{width:e,height:r.width,left:r.radius,top:-r.width>>1,filter:o}),u("fill",{color:l(r.color,i),opacity:r.opacity}),u("stroke",{opacity:0}))))}var e=r.length+r.width,o=2*e,h=-(r.width+r.length)*2+"px",c=n(s(),{position:"absolute",top:h,left:h}),f;if(r.shadow)for(f=1;f<=r.lines;f++)a(f,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(f=1;f<=r.lines;f++)a(f);return t(i,c)};r.prototype.opacity=function(n,t,i,r){var u=n.firstChild;r=r.shadow&&r.lines||0;u&&t+r<u.childNodes.length&&(u=u.childNodes[t+r],u=u&&u.firstChild,u=u&&u.firstChild,u&&(u.opacity=i))}}var s=["webkit","Moz","ms","O"],h={},u,e=function(){var n=i("style",{type:"text/css"});return t(document.getElementsByTagName("head")[0],n),n.sheet||n.styleSheet}(),v={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:100,opacity:1/4,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",position:"absolute"},f;return r.defaults={},c(r.prototype,{spin:function(t){this.stop();var f=this,r=f.opts,e=f.el=n(i(0,{className:r.className}),{position:r.position,width:0,zIndex:r.zIndex}),p=r.radius+r.length+r.width;if(r.bottom?n(e,{left:r.left,bottom:r.bottom}):n(e,{left:r.left,top:r.top}),t&&t.insertBefore(e,t.firstChild||null),e.setAttribute("role","progressbar"),f.lines(e,f.opts),!u){var s=0,l=(r.lines-1)*(1-r.direction)/2,h,c=r.fps,o=c/r.speed,a=(1-r.opacity)/(o*r.trail/100),v=o/r.lines;(function y(){s++;for(var n=0;n<r.lines;n++)h=Math.max(1-(s+(r.lines-n)*v)%o*a,r.opacity),f.opacity(e,n*r.direction+l,h,r);f.timeout=f.el&&setTimeout(y,~~(1e3/c))})()}return f},stop:function(){var n=this.el;return n&&(clearTimeout(this.timeout),n.parentNode&&n.parentNode.removeChild(n),this.el=undefined),this},lines:function(r,f){function s(t,r){return n(i(),{position:"absolute",width:f.length+f.width+"px",height:f.width+"px",background:t,boxShadow:r,transformOrigin:"left",transform:"rotate("+~~(360/f.lines*e+f.rotate)+"deg) translate("+f.radius+"px,0)",borderRadius:(f.corners*f.width>>1)+"px"})}for(var e=0,h=(f.lines-1)*(1-f.direction)/2,o;e<f.lines;e++)o=n(i(),{position:"absolute",top:1+~(f.width/2)+"px",transform:f.hwaccel?"translate3d(0,0,0)":"",opacity:f.opacity,animation:u&&a(f.opacity,f.trail,h+e*f.direction,f.lines)+" "+1/f.speed+"s linear infinite"}),f.shadow&&t(o,n(s("#000","0 0 4px #000"),{top:"2px"})),t(r,t(o,s(l(f.color,e),"0 0 1px rgba(0,0,0,.1)")));return r},opacity:function(n,t,i){t<n.childNodes.length&&(n.childNodes[t].style.opacity=i)}}),f=n(i("group"),{behavior:"url(#default#VML)"}),!o(f,"transform")&&f.adj?y():u=o(f,"animation"),r});wng=wng||{};wng.version=function(){return"1.0.0"}();dataLayer=dataLayer||[];wng=function(n){var r="trackPageOnNextLoad",f="trackEventOnNextLoad",i={quotePlan:"dimension1",quoteDestinations:"dimension2",quoteGroupedDuration:"dimension3",quoteAges:"dimension4",quoteGroupedAges:"dimension5",quoteCampaignCode:"dimension6",countryOfResidence:"dimension7",quoteUnderwriter:"dimension8",brand:"dimension9",signedIn:"dimension10"},u={quoteDurationDays:"metric1",quoteCampaignCodeDiscount:"metric2"},t;return n.googleAnalytics=function(e,o,s){var h=s||{},c,y,p,w,b,k,d,l,a,v,g;n.googleAnalytics.options=h,function(n,t,i,r,u,f,e){n.GoogleAnalyticsObject=u;n[u]=n[u]||function(){(n[u].q=n[u].q||[]).push(arguments)};n[u].l=1*new Date;f=t.createElement(i);e=t.getElementsByTagName(i)[0];f.async=1;f.src=r;e.parentNode.insertBefore(f,e)}(window,document,"script","//www.google-analytics.com/analytics.js","ga");ga("create",e,{cookieDomain:t.cookieDomainForHostname(document.location.hostname),siteSpeedSampleRate:20,allowLinker:!0});ga("require","displayfeatures");h.url&&ga("set","page",h.url);h.brand&&ga("set",i.brand,h.brand);h.country_of_residence&&ga("set",i.countryOfResidence,h.country_of_residence);ga("set",i.signedIn,h.signed_in||"Unknown");h.quote&&(c=h.quote,c.plan&&ga("set",i.quotePlan,c.plan),c.countries&&(y=t.orderCountries(c.countries),p=t.limitCountries(y),ga("set",i.quoteDestinations,p)),c.region&&ga("set",i.quoteDestinations,c.region),c.duration&&(typeof c.duration=="number"?(w=t.groupDuration(c.duration),ga("set",u.quoteDurationDays,Number(c.duration)),ga("set",i.quoteGroupedDuration,w)):typeof c.duration=="string"&&ga("set",i.quoteGroupedDuration,c.duration)),c.ages&&(b=t.groupAges(c.ages),k=t.sortNumericArray(c.ages),ga("set",i.quoteAges,k.join(", ")),ga("set",i.quoteGroupedAges,b)),c.type&&ga("set",i.quoteAges,c.type),c.campaign_code?ga("set",i.quoteCampaignCode,c.campaign_code):ga("set",i.quoteCampaignCode,"None"),c.campaign_code_discount?(d=String(c.campaign_code_discount).replace("%",""),ga("set",u.quoteCampaignCodeDiscount,Number(d))):ga("set",u.quoteCampaignCodeDiscount,0),c.underwriter&&ga("set",i.quoteUnderwriter,c.underwriter));wng.googleAnalytics.addSiteSpecificCustomDimensionsOrMetrics&&wng.googleAnalytics.addSiteSpecificCustomDimensionsOrMetrics(h,t);l=t.getCookie(r);l&&(ga("send","pageview",{page:l}),t.deleteCookie(r));h.preliminaryUrl&&ga("send","pageview",{page:h.preliminaryUrl});ga("send","pageview");a=t.findCookies(new RegExp("^"+f));for(v in a)g=t.decodeEvent(a[v]),wng.googleAnalytics.trackEvent.apply(this,g),t.deleteCookie(v);window.fbAsyncInit=function(){wng.googleAnalytics.listenForFacebookSocialEvents()};t.fireOnWindowLoad(function(){wng.googleAnalytics.listenForTwitterSocialEvents()});dataLayer.push({"Custom Tracking URL":h.url});h.preliminaryUrl&&dataLayer.push({"Preliminary URL":h.preliminaryUrl});h.country_of_residence&&dataLayer.push({"Country of Residence":h.country_of_residence});h.quote&&(h.quote.countries&&dataLayer.push({"Destination Countries":t.limitCountries(t.orderCountries(h.quote.countries))}),h.quote.price&&dataLayer.push({"Quote Price":Number(h.quote.price)}),h.quote.underwriter&&dataLayer.push({Underwriter:h.quote.underwriter})),function(n,t,i,r,u){n[r]=n[r]||[];n[r].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var e=t.getElementsByTagName(i)[0],f=t.createElement(i),o=r!="dataLayer"?"&l="+r:"";f.async=!0;f.src="//www.googletagmanager.com/gtm.js?id="+u+o;e.parentNode.insertBefore(f,e)}(window,document,"script","dataLayer",o)},n.googleAnalytics.trackVirtualPage=function(n){ga("send","pageview",{page:n})},n.googleAnalytics.trackVirtualPageOnNextLoad=function(n){t.setCookie(r,n)},n.googleAnalytics.trackEvent=function(n,t,i){var r={};i&&(i.label&&(r.eventLabel=i.label),i.value&&(r.eventValue=i.value));ga("send","event",n,t,r)},function(){var i=1;n.googleAnalytics.trackEventOnNextLoad=function(n,r,u){var e=t.encodeEvent(n,r,u),o=f+i;t.setCookie(o,e);i++}}(),function(){var t=!1,i=function(n,t){var r=t?"Amendment":"Base policy",i=t?"Amendment":"Options";return{addBasePolicy:function(i){var u=t?"Base policy amendment":"Base policy";ga("ecommerce:addItem",{id:String(n),name:u,sku:u,category:r,price:String(i),quantity:1})},addPolicyExcessReduction:function(t,r){ga("ecommerce:addItem",{id:String(n),name:"Policy excess reduction",sku:"$"+t+" policy excess",category:i,price:String(r),quantity:1})},addCarRentalExcessIncrease:function(t,r){ga("ecommerce:addItem",{id:String(n),name:"Car excess cover increased",sku:"$"+t+" car excess",category:i,price:String(r),quantity:1})},addBusinessBenefitCover:function(t){ga("ecommerce:addItem",{id:String(n),name:"Business benefit cover",sku:"Business premium",category:i,price:String(t),quantity:1})},addSnowSportsCover:function(t){ga("ecommerce:addItem",{id:String(n),name:"Snow sports cover",sku:"Snow sports premium",category:i,price:String(t),quantity:1})},addAdditionalItem:function(t,r,u){ga("ecommerce:addItem",{id:String(n),name:"Additional item",sku:"$"+t+" "+r,category:i,price:String(u),quantity:1})},addFootprints:function(t,r){ga("ecommerce:addItem",{id:String(n),name:"Footprints donation",sku:t,category:i,price:String(r),quantity:1})},addPreEx:function(t){ga("ecommerce:addItem",{id:String(n),name:"Pre-Ex cover",sku:"Medial premium",category:i,price:String(t),quantity:1})},addAdventureCover:function(t,r){ga("ecommerce:addItem",{id:String(n),name:"Adventure cover",sku:"Level "+t,category:i,price:String(r),quantity:1})}}};n.googleAnalytics.createTransaction=function(n,r,u,f){f=f||{};t||(ga("require","ecommerce","ecommerce.js"),t=!0);var o=f.amendment?" (Amendment)":"",e={id:String(n)+o,revenue:String(r)};f.currency&&(e.currency=f.currency);ga("ecommerce:addTransaction",e);u(i(n,f.amendment));ga("ecommerce:send")}}(),n.googleAnalytics.listenForFacebookSocialEvents=function(){try{FB&&FB.Event&&FB.Event.subscribe&&(FB.Event.subscribe("edge.create",function(n){ga("send","social","Facebook","Like",n)}),FB.Event.subscribe("edge.remove",function(n){ga("send","social","Facebook","Unlike",n)}),FB.Event.subscribe("message.send",function(n){ga("send","social","Facebook","Send",n)}))}catch(n){}},n.googleAnalytics.listenForTwitterSocialEvents=function(){try{twttr&&twttr.ready&&twttr.ready(function(){twttr.events.bind("tweet",function(n){var i=null;n.target&&n.target.nodeName=="IFRAME"&&(i=t.paramsFromUrl(n.target.src,!0).url);ga("send","social","Twitter","Tweet",i)})})}catch(n){}},n.googleAnalytics.loadScriptOnLoad=function(n){t.fireOnWindowLoad(function(){t.loadScript(n)})},n.googleAnalytics.decorateCrossDomainLinkOrForm=function(n){ga(function(t){var i=new window.gaplugins.Linker(t);i.decorate(n)})},n.googleAnalytics.crossDomainLinkParameter=function(){var n="";return ga(function(t){n=t.get("linkerParam")}),n},t=n.googleAnalytics.utils={groupDuration:function(n){var t=365/12;return n<28?n+(n==1?" day":" days"):n<Math.round(3*t)?Math.floor(n/7)+" weeks":Math.floor((n+1)/t)+" months"},weekDuration:function(n){var t=Math.floor(n/7);return t+(t==1?" week":" weeks")},groupAges:function(n){for(var f=[],e=t.sortNumericArray(n),i,r,u=0;u<e.length;u++)r=e[u],r<18?i="Under 18":r<25?i="18 - 24":r<35?i="25 - 34":r<45?i="35 - 44":r>=45&&(i="45+"),f.push(i);return f.join(", ")},orderCountries:function(n){var t=n.split("|");return t.sort(),t.join("|")},limitCountries:function(n){var t=n.match(/^(.{0,100})(?:\|.*)?$/);return t[1]},setCookie:function(n,i,r){var u,f;return r=r||{},u=encodeURIComponent(n)+"="+encodeURIComponent(i),r.expires&&(typeof r.expires=="number"?(f=new Date,f.setDate(f.getDate()+r.expires)):f=r.expires,u+="; expires="+f.toUTCString()),u+="; path="+(r.path||"/"),u+="; domain="+(r.domain||t.cookieDomainForHostname(document.location.hostname)),r.secure&&(u+="; secure"),document.cookie=u,u},getCookie:function(n){var r=t.getCookies(),i;for(i in r)if(i==n)return r[i];return null},findCookies:function(n){var r=t.getCookies(),u={},i;for(i in r)i.match(n)&&(u[i]=r[i]);return u},getCookies:function(){for(var i=document.cookie.split("; "),r={},t,n=0;n<i.length;n++)t=i[n].split("="),r[decodeURIComponent(t[0])]=decodeURIComponent(t[1]||"");return r},deleteCookie:function(n,i){i=i||{};i.expires=-1;t.setCookie(n,"",i)},encodeEvent:function(n,t,i){i=i||{};var r="category:"+encodeURIComponent(n),u="action:"+encodeURIComponent(t),f="label:"+encodeURIComponent(i.label||""),e="value:"+(i.value||"");return[r,u,f,e].join(";")},decodeEvent:function(n){var t=n.match(/^category:(.+);action:(.+);label:(.+)?;value:(.+)?$/),i={};return t[3]&&(i.label=decodeURIComponent(t[3])),t[4]&&(i.value=Number(t[4])),[decodeURIComponent(t[1]),decodeURIComponent(t[2]),i]},fireOnWindowLoad:function(n){window.addEventListener?window.addEventListener("load",n,!1):window.attachEvent&&window.attachEvent("onload",n)},loadScript:function(n){var t=document.createElement("script"),i;t.type="text/javascript";t.async=!0;t.src=n;i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(t,i)},sortNumericArray:function(n){return n.slice(0).sort(function(n,t){return n-t})},cookieDomainForHostname:function(n){for(var r=["travelinsurancedirect.com.au","worldnomads.com"],i,u,t=0;t<r.length;t++)if(i=r[t],u=n.length-i.length,n.indexOf(i,u)!==-1)return"."+i;return n.replace(/^(www|service)/,"")},paramsFromUrl:function(n,t){var i=t?"#":"?",r=function(n,t){var e=t[0],u=e.split("="),i=decodeURIComponent(u[0]),f=decodeURIComponent(u.slice(1).join("="));return n[i]=typeof n[i]=="undefined"?f:[].concat(n[i],f),t.length==1?n:r(n,t.slice(1))},u=n.split(i).slice(1).join(i);return u.length==0?{}:r({},u.split("&"))}},n}(wng||{});window.googleAnalytics=wng.googleAnalytics;wng.googleAnalytics.tracking=function(){var n={},t;return n.quote=function(n){var t=$.extend({selectorForContentAjax:"#content"},n)},n.quoteOptions=function(n){var t=$.extend({selectorForContentAjax:"#content"},n)},n.policyDetails=function(n){var t=$.extend({selectorForContentAjax:"#detailsForm"},n)},n.reviewAndPay=function(n){var t=$.extend({},n)},t=function(t,i){if(n[t])n[t](i);else throw new Error("Tracking is not defined for the identifier "+t);},{setup:t}}();wng.googleAnalytics.addSiteSpecificCustomDimensionsOrMetrics=function(n,t){var f={firstTouch:"dimension15",lastTouch:"dimension16",firstBlogAuthor:"dimension17",lastBlogAuthor:"dimension18"},r={domainFromUrl:function(n){var t=n.replace(/^[a-z]+:\/\//,"");return t.split("/")[0]},stripW3FromDomain:function(n){return n.replace(/^www\./,"").toLowerCase()},stripWorldNomadsFromDomain:function(n){return n.replace(/\.?worldnomads\.com/,"").toLowerCase()},first100Characters:function(n){return n.substr(0,100)}},a=r.stripW3FromDomain(window.location.host),u=r.stripWorldNomadsFromDomain(window.location.host),e,s,o,h,i;if(u=="journals"&&(e="blogauthor",s=t.getCookie(e),s||(i=r.first100Characters(u+window.location.pathname),t.setCookie(e,i,{expires:365}),ga("set",f.firstBlogAuthor,i))),(u=="journals"||u=="answers")&&(i=r.first100Characters(u+window.location.pathname),ga("set",f.lastBlogAuthor,i)),o="firsttouch",h=t.getCookie(o),h||(i=r.first100Characters(n.url?n.url:window.location.host+window.location.pathname+window.location.search),t.setCookie(o,i,{expires:183}),ga("set",f.firstTouch,i)),document.referrer){var c=r.stripW3FromDomain(r.domainFromUrl(document.referrer)),l="worldnomads.com",v=a==l,y=c==l;!y&&v&&ga("set",f.firstTouch,c)}};wng=wng||{};wng.animations=function(){"use strict";var u,n,f,t,e="loading-overlay",v="loading-spinner",y="inline-spinner",r="inline-spinner-wrapper",i,o=30,s="body",h="original-html-content",c="data-inline-loading-indication",p="data-button-arrow",w=function(t,f,e){var s,a={lines:17,length:0,width:2,radius:10,corners:1,rotate:0,direction:1,color:"#000",speed:1.2,trail:64,shadow:!1,hwaccel:!1,className:y,zIndex:2e9,bottom:"10%",left:"90%"};i?i.spin():i=new Spinner(a).spin();s=$("<div />").addClass(r).append(i.el);$("."+r).length<1&&(t.after(s),e&&(t.attr(c,""),t.data(h,t.html()),t.html(e)),f&&(n=t.closest("div").find("["+p+"]"),n.length>0&&n.css("visibility","hidden")));u=setTimeout(l,o*1e3)},l=function(){i&&i.stop();$("."+r).remove();$("["+c+"]").each(function(){var n=$(this),t=n.data(h);n.html(t)});n&&n.length>0&&(n.css("visibility","visible"),n=null);clearTimeout(u)},b=function(){var n,i,r={lines:17,length:0,width:5,radius:25,corners:1,rotate:0,direction:1,color:"#000",speed:1.2,trail:64,shadow:!1,hwaccel:!1,className:v,zIndex:2e9,top:"50%",left:"50%"};t?t.spin():t=new Spinner(r).spin();n=$("<div />").addClass(e).append(t.el);i=$(s);i.append(n);f=setTimeout(a,o*1e3)},a=function(){var n=$(s);t&&t.stop();$("."+e,n).remove();clearTimeout(f)},k=function(n){$(".content").on("mouseover","[data-hint-target]",function(){var i=$(this),t=i.closest("[data-hint-container]").find("[data-hint-content]").first();t.data("hint-shown")||(t.data("hint-shown",!0),t.show(),n&&setTimeout(function(){t.data("hint-shown",!1);t.fadeOut()},1e4))})};return{showInlineLoadingIndicator:w,removeInlineLoadingIndicator:l,showWhitewashLoadingIndicator:b,removeWhitewashLoadingIndicator:a,initInlineHints:k}}();wng.utils=function(n){"use strict";var t=function(n){$(n).each(function(){$("<img/>")[0].src=this})},i=function(n,t,i){t.change(function(){i()?n.show():n.hide()})},r=function(n){window.location.replace(n)},u=function(t,i){i===n&&(i=window.location.search);var u=new RegExp("[?|&]"+t+"=(.*?)&"),r=u.exec(i+"&");return!r||r.length<2?"":decodeURIComponent(r[1].replace("+"," "))},f=function(){var t=RegExp("(?:\\?|^|&)campaign=(.+?)(?:&|$)"),n=decodeURI((t.exec(location.search.toLowerCase())||[,null])[1]);return n=="null"?"":"campaign="+n},e=function(t,i){var u,f,l="",r=[],s,e,h,c,o;if((u=t.split("?"),u===n||u===null||u.length<1)||(f=u[0],f.charAt(f.length-1)!="/"&&(f=f+"/"),u.length>1&&(l=u[1],r=l.split("&")),e=i.split("="),e===n||e===null||e.length<2))return t;if(h=e[0],c=e[1],r.length==0)return f+"?"+h+"="+c;for(o=r.length;o--;)if(s=r[o].split("="),s[0]==h){s[1]=c;r[o]=s.join("=");break}return o<0&&(r[r.length]=[h,c].join("=")),f+"?"+r.join("&")},o=function(){var n="trustpilot-display",t="https://s.trustpilot.com/tpelements/949327/f.jsonp?callback=?";trustpilot_jsonp_callback=function(t){var u,i,f,e,o,s,r,h;u=t.TrustScore.Score;i=[];i.push(u/10);i.push("/");i.push(10);f=t.TrustScore.Human;e=t.TrustScore.Stars;o=$("<div/>").addClass("tp-stars stars-"+e);s=$("<span/>").html(f).addClass("tp-human");r=$("<div/>").addClass("tp-rating");$.each(i,function(n,t){r.append($("<span/>").html(t))});h=$("."+n);h.append(o).append(s).append(r)};$(function(){$("."+n).length>0&&$.getJSON(t)})},s=function(){if($.browser.msie&&$.browser.version<=8)$("form").bind("keypress",function(n){if(n.keyCode==13)return!1})};return{preload:t,navigate:r,setupElementVisilibity:i,getUrlParamValue:u,initTrustPilotStats:o,getPromoParamFromUrl:f,addParamToUrl:e,disableEnterSubmittingFormsInIE:s}}();wng=wng||{};wng.responsive=function(){"use strict";var n=function(){FastClick.attach(document.body)},t=function(){$(".nav-toggle").on("click",function(){$(".content > .nav").toggleClass("open")})},i=function(){var n=$(".side-nav"),t=$(".side-nav, .side-nav-arrow"),i=$(".side-nav-sign-in"),o=$(".side-nav-sign-in-form"),s=$(".side-nav-toggle"),h=$(".side-nav-close-panel"),u=i.find(".existing-member, .login"),c=$("[data-is-ssl-redirect-required]").length>0,l=$(".side-nav-toggle, .side-nav-inner-toggle, .side-nav-close-panel"),f=function(){return c&&u.length>0?(window.location.href=u.attr("href"),!1):(o.addClass("open"),!0)},r,e;u.on("click",function(n){c||n.preventDefault()});$("body").on("click","[data-loading-indicator-onclick]",function(){wng.animations.showWhitewashLoadingIndicator()});r=function(r,u){var o=u?0:200,e;t.css({opacity:0,display:"block"});e=!0;r&&(e=f());e&&t.animate({opacity:1},o,function(){n.addClass("open");n.removeClass("closed");s.addClass("open");i.addClass("open");h.addClass("open")})};e=function(){t.animate({opacity:0},200,function(){t.css("display","none");n.addClass("closed");n.removeClass("open");s.removeClass("open");i.removeClass("open");h.removeClass("open");o.removeClass("open")})};l.on("click",function(){n.hasClass("closed")?r():n.hasClass("open")&&e()});i.on("click",function(){n.hasClass("closed")?r(!0):f()});$(window).on("load resize scroll",function(){var i,u,t,o;n.hasClass("open")&&(i=$(".side-nav .side-nav-list").filter(":visible").eq(0).height(),u=$(this).scrollTop(),u>i&&e(),t=window.matchMedia||window.msMatchMedia,t&&!t("(max-width: 660px)").matches&&(o=$("body").css("height"),n.css("height",o)));n.hasClass("start-with-sign-in-open")&&$.trim($(".global-message").text()).length==0&&(n.removeClass("start-with-sign-in-open"),r(!1,!0),f())})},r=function(){var n=$(".benefits-list-widget"),i=n.find(".benefits-list"),r=n.find(".tab-nav"),u=r.find("li"),t=n.find(".name, .benefit-toggle"),s=$(".sub-benefit, .benefit .description"),f=n.find(".sub-benefit"),h=n.find(".expand-all-toggle"),e=function(n,t,i){n.addClass("open");t.find(".description").show();f.each(function(){var n=$(this),t=n.data("benefit-group");t===i&&n.show()})},o=function(n,t,i){n.removeClass("open");t.find(".description").hide();f.each(function(){var n=$(this),t=n.data("benefit-group");t===i&&n.hide()})};t.on("click",function(){var n=$(this).parent(".summary").children(".name"),t=n.parents(".benefit"),i=t.data("benefit-group");n.hasClass("open")?o(n,t,i):e(n,t,i)});h.on("click",function(n){var i=$(this);n.preventDefault();i.hasClass("open")?(i.removeClass("open"),i.html("Expand all"),t.each(function(){var n=$(this),t=n.parents(".benefit"),i=t.data("benefit-group");n.hasClass("open")&&o(n,t,i)})):(i.addClass("open"),i.html("Collapse all"),t.each(function(){var n=$(this),t=n.parents(".benefit"),i=t.data("benefit-group");n.hasClass("open")||e(n,t,i)}))});$(window).on("resize load",function(){var t=r.find(".active"),f,u;t.removeClass("active");f=t.attr("class");$("body").data("active-benefit-tab-plan-on-mobile",f);t.addClass("active");u=t.data("from-quote");n.attr("id","active-plan-"+u);i.attr("id","active-plan-"+u)});u.on("click",function(t){var r=$(this),e,f;t.preventDefault();u.removeClass("active");e=r.attr("class");$("body").data("active-benefit-tab-plan-on-mobile",e);r.addClass("active");f=r.data("from-quote");n.attr("id","active-plan-"+f);i.attr("id","active-plan-"+f)});s.hide();t.eq(0).click()};return{menuToggle:t,initCallout:i,initBenefitsWidget:r,initFastClick:n}}();$(function(){var n=parseInt((/msie (\d+)/.exec(navigator.userAgent.toString().toLowerCase())||[])[1],10);wng.responsive.menuToggle();!n||n>7?wng.responsive.initCallout():$(".side-nav-sign-in .login").attr("href","/Member/OpenSignIn");wng.responsive.initBenefitsWidget()});vars=[];hashSplit=function(){for(var t=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),n=0;n<t.length;n++)hash=t[n].split("="),vars.push(hash[0]),vars[hash[0]]=hash[1]}(vars);$.inArray("baseline",vars)>-1&&$("body").addClass("baseline");Modernizr.addTest("box-sizing",function(){var n=document.createElement("div"),t=document.documentElement.appendChild(document.createElement("body")),i;return n.style.cssText="-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;padding:0 10px;margin:0;border:0;position:absolute;top:0;left:0;width:100px",t.appendChild(n),i=n.offsetWidth===100,t.removeChild(n),document.documentElement.removeChild(t),i});jQuery.removeRequestFlag=function(n){n.attr("requesting","false")};preload(["/Content/styles/i/spinner.gif"]);$(document).on("focusout",".capitalize",function(){if($(this).val()!=""){$(this).removeClass("capitalize").unbind("focusout");var n=$(this).val(),t=toTitleCase(n);$(this).val(t)}});$(function(){var n=$("#dropdown-travel-insurance");n.append('<div id="dropdown-container" class="inactive"><div class="arrow"><\/div><ul id="menu"><li><a href="/what-we-cover">What we cover<\/a><\/li><li><a href="/what-we-dont-cover">What we don\'t cover<\/a><\/li><li><a href="/how-to-make-a-claim">How to Claim<\/a><\/li><li><a href="/frequently-asked-questions">Questions & Answers<\/a><\/li><li><a href="/about-travel-insurance-direct">About WNG<\/a><\/li><li><a href="/travel-insurance-guide">Travel Insurance Guide<\/a><\/li><\/ul><\/div>');n.mouseover(function(){$(this).children("#dropdown-container").addClass("active").removeClass("inactive")});$("#menu, #dropdown-travel-insurance").mouseout(function(){$("#dropdown-container").removeClass("active").addClass("inactive")})});globalButtonClicked=!1;Nomads={addSpinner:function(n,t){setTimeout(function(){var i=$("<span/>").addClass("spinner");t&&i.html(t);globalButtonClicked||n.attr("disabled","disabled").after(i);globalButtonClicked=!0},5)},handleManualUpdates:function(){$manualUpdateTriggers=$(".manual-update-trigger");$manualUpdateTriggers.each(function(){$manualUpdateTrigger=$(this);$container=$manualUpdateTrigger.closest(".manual-update-container");$manualUpdateBlock=$container.find(".manual-update");$manualUpdateBlock.length>0&&$manualUpdateBlock.hide();$manualUpdateTrigger.attr("type")=="text"?($manualUpdateTrigger.unbind("blur"),$manualUpdateTrigger.blur(Nomads.clickNearestSubmit)):($manualUpdateTrigger.unbind("change"),$manualUpdateTrigger.change(Nomads.clickNearestSubmit))})},clickNearestSubmit:function(){$this=$(this);$container=$this.closest(".manual-update-container");$manualUpdateSubmit=$container.find('input[type="submit"]');$manualUpdateSubmit.length>0&&$($manualUpdateSubmit[0]).click()},ajaxPost:function(n,t,i,r,u){(u==undefined||u==null)&&(u="json");Nomads.doAjax("POST",n,t,i,r,u)},ajaxGet:function(n,t,i,r){(r==undefined||r==null)&&(r="json");Nomads.doAjax("GET",undefined,n,t,i,r)},doAjax:function(n,t,i,r,u,f){(f==undefined||f==null)&&(f="json");r===undefined&&(r=Nomads.replaceContent);u===undefined&&(u=Nomads.showUnknownError);$.ajax({type:n,url:i,cache:!1,data:t,dataType:f,success:r,error:u})},getFormData:function(n,t){var i=t.serialize();return i+"&"+n.attr("name")+"="+n.attr("value")},replaceContent:function(n){var u=$("#global-messages"),t,i,r,f,e;for(u.length>0&&u.empty(),$(".spinner").remove(),i=0;i<n.parts.length;i++){if(n.parts[i].hideId!=undefined&&(t=$("#"+n.parts[i].hideId),t.length>0)){t.css("display","none");continue}if(n.parts[i].hideClass!=undefined&&(t=$("."+n.parts[i].hideClass),t.length>0)){t.css("display","none");return}if(n.parts[i].showId!=undefined&&(t=$("#"+n.parts[i].showId),t.length>0)){t.css("display","block");continue}if(n.parts[i].showClass!=undefined&&(t=$("."+n.parts[i].showClass),t.length>0)){t.css("display","block");return}if(r=$($.trim(n.parts[i].content.html)),n.parts[i].withinId!==undefined&&(t=$("#"+n.parts[i].withinId),t.length>0)){f=t.height();t.html(r);e=t.height();t.css("height",f+"px");t.animate({height:e+"px"},800,function(){$(this).css("height","auto")});continue}if(n.parts[i].replaceId!==undefined&&(t=$("#"+n.parts[i].replaceId),t.length>0)){t.replaceWith(r);continue}if(n.parts[i].afterId!==undefined&&(t=$("#"+n.parts[i].afterId),t.length>0)){t.after(r);continue}if(n.parts[i].beforeId!==undefined&&(t=$("#"+n.parts[i].beforeId),t.length>0)){t.before(r);continue}if(n.parts[i].withinClass!==undefined&&(t=$("."+n.parts[i].withinClass),t.length>0)){t.html(r);continue}if(n.parts[i].replaceClass!==undefined&&(t=$("."+n.parts[i].replaceClass),t.length>0)){r.replaceAll("."+n.parts[i].replaceClass);continue}if(n.parts[i].afterClass!==undefined&&(t=$("."+n.parts[i].afterClass),t.length>0)){t.after(r);continue}if(n.parts[i].beforeClass!==undefined&&(t=$("."+n.parts[i].beforeClass),t.length>0)){t.before(r);continue}}Nomads.updateUrlSessionTokens()},updateUrlSessionTokens:function(){$sessionTokenDivs=$(".session-tokens");$sessionTokenDivs.length>0&&($sessionTokenHiddens=$($sessionTokenDivs[0]).children('input[type="hidden"]'),$sessionTokenHiddens.each(function(){$this=$(this);var n=$this.attr("name"),t=$this.attr("value");$("a[href*="+n+"]").each(function(){$this=$(this);var i=$this.attr("href"),r=Nomads.getUrlParamValue(n,i);i=i.replace(r,t);$this.attr("href",i)})}))},showUnknownError:function(){var n='<div id="global-messages"><div class="messages error"><h3>Oops!<\/h3><ul><li>Something went wrong. Please try again.<\/li><\/ul><\/div><\/div>',t=$("#global-messages");t.length>0?t.replaceWith(n):$("#masthead").after(n)},onAjaxStart:function(n){return $(".spinner").length<1&&n.after("<span class='spinner'><\/span>"),n},getUrlParamValue:function(n,t){t===undefined&&(t=window.location.search);var r=new RegExp("[?|&]"+n+"=(.*?)&"),i=r.exec(t+"&");return!i||i.length<2?"":decodeURIComponent(i[1].replace("+"," "))}}