/*
SPF 21 (v2.1.2)
(c) 2012-2014 Google, Inc.
License: MIT
*/
(function(){function l(a,b,c){var d=Array.prototype.slice.call(arguments,2);return function(){var c=d.slice();c.push.apply(c,arguments);return a.apply(b,c)}}function aa(a,b){if(a){var c=Array.prototype.slice.call(arguments,1);try{return a.apply(null,c)}catch(d){return d}}}function m(a,b){if(document.createEvent){var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!0,!0,b);return document.dispatchEvent(c)}return!0}function n(){return(new Date).getTime()}function ba(){};function q(a,b){return r[a]=b}var r=window._spf_state||{};window._spf_state=r;var ca={"animation-class":"spf-animate","animation-duration":425,"cache-lifetime":6E5,"cache-max":50,"cache-unified":!1,"link-class":"spf-link","nolink-class":"spf-nolink","navigate-limit":20,"navigate-lifetime":864E5,"reload-identifier":null,"request-timeout":0,"url-identifier":"?spf=__type__"},s={};"config"in r||q("config",s);s=r.config;function da(a,b){var c=b||document;return c.querySelectorAll?c.querySelectorAll(a):[]}function ea(a){var b,c=a.parentNode;if(c&&11!=c.nodeType)if(a.removeNode)a.removeNode(!1);else{for(;b=a.firstChild;)c.insertBefore(b,a);c.removeChild(a)}}function fa(a,b,c){for(;a;){if(b(a))return a;if(c&&a==c)break;a=a.parentNode}return null}
function ga(a,b,c){a=a||"";b=b||document;var d=b.createElement("iframe");d.id=a;d.src='javascript:""';d.style.display="none";c&&(d.onload=l(c,null,d));b.body.appendChild(d);return d};function ha(a,b,c,d){var e=window.history.state;d&&e&&(b=b||e);ia(!0,a,b,c)}function ia(a,b,c,d){if(b||c){b=b||window.location.href;c=c||{};var e=n();q("history-timestamp",e);c["spf-timestamp"]=e;if(a)ja(c,b);else if(a=ka().contentWindow.history.pushState,"function"==typeof a)a.call(window.history,c,"",b);else throw Error("history.pushState is not a function.");q("history-url",b);d&&(d=r["history-callback"])&&d(b,c)}}
function la(a){var b=window.location.href;if(r["history-ignore-pop"])q("history-ignore-pop",!1);else if(a.state){a=a.state;var c=a["spf-timestamp"];b==r["history-url"]?(q("history-timestamp",c),ja(a,b)):(a["spf-back"]=c<parseInt(r["history-timestamp"],10),a["spf-current"]=r["history-url"],q("history-timestamp",c),q("history-url",b),(c=r["history-callback"])&&c(b,a))}}
function ja(a,b){var c=ka().contentWindow.history.replaceState;if("function"==typeof c)c.call(window.history,a,"",b);else throw Error("history.replaceState is not a function");}function ka(){var a=document.getElementById("history-iframe");a||(a=ga("history-iframe"));return a};function t(a,b){if(a.forEach)a.forEach(b,void 0);else for(var c=0,d=a.length;c<d;c++)c in a&&b.call(void 0,a[c],c,a)}function ma(a,b){if(a.every)return a.every(b,void 0);for(var c=0,d=a.length;c<d;c++)if(c in a&&!b.call(void 0,a[c],c,a))return!1;return!0}function na(a,b){if(a.filter)return a.filter(b,void 0);var c=[];t(a,function(a,e,f){b.call(void 0,a,e,f)&&c.push(a)});return c}
function oa(a,b){if(a.map)return a.map(b,void 0);var c=[];c.length=a.length;t(a,function(a,e,f){c[e]=b.call(void 0,a,e,f)});return c}function u(a){return"[object Array]"==Object.prototype.toString.call(a)?a:[a]};function pa(a){var b=v();a in b&&delete b[a]}function qa(){var a=v(),b;for(b in a)ra(a[b])||delete a[b];a=v();b=parseInt(s["cache-max"],10);b=isNaN(b)?Infinity:b;b=Object.keys(a).length-b;if(!(0>=b))for(var c=0;c<b;c++){var d=Infinity,e,f;for(f in a)a[f].count<d&&(e=f,d=a[f].count);delete a[e]}}function ra(a){if(!(a&&"data"in a))return!1;var b=a.life,b=isNaN(b)?Infinity:b;return n()-a.time<b}function sa(a){var b=parseInt(r["cache-counter"],10)||0;b++;q("cache-counter",b);a.count=b}
function v(a){return!a&&"cache-storage"in r?r["cache-storage"]:q("cache-storage",a||{})};function ta(a){return a.classList?a.classList:a.className&&a.className.match(/\S+/g)||[]}function ua(a,b){if(a.classList)return a.classList.contains(b);for(var c=ta(a),d=0,e=c.length;d<e;d++)if(c[d]==b)return!0;return!1}function va(a,b){a.classList?a.classList.add(b):ua(a,b)||(a.className+=" "+b)}function wa(a,b){if(a.classList)a.classList.remove(b);else{for(var c=ta(a),d=[],e=0,f=c.length;e<f;e++)c[e]!=b&&d.push(c[e]);a.className=d.join(" ")}};function xa(a,b){a&&b&&(a in w||(w[a]=[]),w[a].push(b))}function ya(a,b){a in w&&b&&ma(w[a],function(a,d,e){return a==b?(e[d]=null,!1):!0})}function za(a){a in w&&t(w[a],function(a,c,d){d[c]=null;a&&a()})}var w={};"ps-s"in r||q("ps-s",w);w=r["ps-s"];function x(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}var Aa=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s+|\s+$/g,"")};function z(a,b){var c=a.split(b),d=1==c.length;return[c[0],d?"":b,d?"":c.slice(1).join(b)]};function A(a,b,c){var d=B[a];return a&&b?(d||(d=B[a]={items:[],k:0,h:0,n:1}),d.items.push({s:b,o:c||0})):d&&d.items.length||0}function C(a,b){var c=B[a];if(c){var d=!!c.k||!!c.h;0<c.n&&(b||!d)&&Ba(a,b)}}function D(a){(a=B[a])&&a.n--}function E(a,b){var c=B[a];c&&(c.n++,C(a,b))}function Ca(a){var b=B[a];b&&(Da(b),delete B[a])}function Ea(a){var b=parseInt(r.uid,10)||0;b++;return a["spf-key"]||(a["spf-key"]=""+q("uid",b))}
function Ba(a,b){var c=B[a];if(c&&(Da(c),0<c.n&&c.items.length)){var d=c.items[0];if(d){var e=l(function(a,b){b();a()},null,l(Ba,null,a,b));b?(c.items.shift(),e(d.s)):Fa(c,d,e)}}}function Fa(a,b,c){b.o?(c=l(c,null,ba),a.h=setTimeout(c,b.o),b.o=0):(a.items.shift(),c=l(c,null,b.s),(b=(b=s["advanced-task-scheduler"])&&b.addTask)?a.k=b(c):a.h=setTimeout(c,0))}function Da(a){if(a.k){var b=s["advanced-task-scheduler"];(b=b&&b.cancelTask)&&b(a.k);a.k=0}a.h&&(clearTimeout(a.h),a.h=0)}var B={};function F(a){var b=document.createElement("a");b.href=a;b.href=b.href;a={href:b.href,protocol:b.protocol,host:b.host,hostname:b.hostname,port:b.port,pathname:b.pathname,search:b.search,hash:b.hash,H:b.H,F:b.F};a.origin=a.protocol+"//"+a.host;a.pathname&&"/"==a.pathname[0]||(a.pathname="/"+a.pathname);return a}function G(a,b){var c=F(a);return b?c.href:z(c.href,"#")[0]}
function Ga(a,b){var c=z(a,"#");a=c[0];for(var d=0;d<b.length;d++)a=a.replace(new RegExp("([?&])"+b[d]+"(?:=[^&]*)?(?:(?=[&])|$)","g"),function(a,b){return"?"==b?b:""});x(a,"?")&&(a=a.slice(0,-1));return a+c[1]+c[2]}function Ha(a){var b=s["advanced-persistent-parameters"]||"",c=z(a,"#");a=c[0];var d=-1!=a.indexOf("?")?"&":"?";return a+(b?d+b:"")+c[1]+c[2]};function Ia(a,b,c,d){var e=a==H;b=I(a,b);var f=c||"^"+b,g=J(a,f),h;c&&(h=K(a,c))&&b!=h&&(m(e?"spfjsbeforeunload":"spfcssbeforeunload",{name:c,url:h}),Ja(a,c,h),xa(g,l(Ka,null,a,c,h)));e=J(a,b);if((e=L[e])&&f!=e){var k=J(a,e);delete M[k];k=J(a,b);delete L[k];(k=J(a,e))&&g&&k in w&&(w[g]=(w[g]||[]).concat(w[k]),delete w[k])}k=J(a,b);L[k]=f;La(a,f,b);xa(g,d);d=l(Ma,null,a);N(a,b)?(e&&f!=e&&(a=Na(a,b))&&a.setAttribute("name",c||""),d()):(a=Oa(a,b,d,void 0,void 0,h))&&c&&a.setAttribute("name",c)}
function Pa(a,b){var c=K(a,b);Ja(a,b,c);Ka(a,b,c)}function Ja(a,b,c){var d=J(a,b);delete M[d];c&&(c=J(a,c),delete L[c]);a=J(a,b);delete w[a]}function Ka(a,b,c){var d=a==H;c&&(m(d?"spfjsunload":"spfcssunload",{name:b,url:c}),Qa(a,c))}function Ma(a){var b=J(a,""),c;for(c in w)0==c.indexOf(b)&&ma(c.substring(b.length).split("|"),l(Ra,null,a))&&za(c)}
function Oa(a,b,c,d,e,f){function g(){N(a,b,e)&&Sa(Ta,a,b,e);h&&p&&p.parentNode&&k==document&&p.parentNode.removeChild(p);c&&setTimeout(c,0);return null}var h=a==H;b=I(a,b);Sa(Ua,a,b,e);var k=d||document,p=k.createElement(h?"script":"link");if(!b)return g();var y=O(b);p.className=J(a,y);"onload"in p?p.onerror=p.onload=g:p.onreadystatechange=function(){/^c|loade/.test(p.readyState)&&g()};y=k.getElementsByTagName("head")[0];h?(p.async=!0,p.src=b,y.insertBefore(p,y.firstChild)):(p.rel="stylesheet",p.href=
b,(d=f&&Na(a,f,d))?y.insertBefore(p,d):y.appendChild(p));return p}function Qa(a,b){b=I(a,b);var c=Na(a,b,void 0);c&&c.parentNode&&c.parentNode.removeChild(c);c=J(a,b);delete P[c]}function Na(a,b,c){b=O(b);a=J(a,b);return da("."+a,c)[0]}function Va(a){var b=a==H,c=[];t(da(b?"script[src]":'link[rel~="stylesheet"]'),function(d){var e=b?d.src:d.href,e=I(a,e);if(!N(a,e)){Sa(Ta,a,e);var f=O(e),f=J(a,f);va(d,f);if(f=d.getAttribute("name")){var g=J(a,e);L[g]=f;La(a,f,e)}c.push(d)}})}
function Wa(a,b){if(b&&(b=I(a,b),!N(a,b))){var c=O(b),d=J(a,c),e=J(a,"prefetch"),c=document.getElementById(e);if(!c)c=ga(e,null,function(a){a.title=e;C(e,!0)});else if(c.contentWindow.document.getElementById(d))return;d=l(Xa,null,c,a,b,d,e);c.title?d():A(e,d)}}
function Xa(a,b,c,d,e){var f=b==Q;a=a.contentWindow.document;b==H?(b=a.createElement("object"),Ya?a.createElement("script").src=c:b.data=c,b.id=d,a.body.appendChild(b)):f?(b=Oa(b,c,null,a,e),b.id=d):(b=a.createElement("img"),b.src=c,b.id=d,a.body.appendChild(b))}
function Za(a,b,c){for(var d=a==H,e=K(a,c),f=b.replace(/\s/g,""),f=f||"",g=0,h=0,k=f.length;h<k;++h)g=31*g+f.charCodeAt(h),g%=4294967296;f="hash-"+g;La(a,c,f);!$a(a,f)&&(b=ab(a,b))&&(Sa(Ta,a,f),b&&!d&&(d=O(f),d=J(a,d),b.className=d,b.setAttribute("name",c)),(e=e&&e[0])&&Qa(a,e))}
function ab(a,b){b=Aa(b);if(!b)return null;var c=document.getElementsByTagName("head")[0]||document.body,d;a==H?(d=document.createElement("script"),d.text=b,c.appendChild(d),c.removeChild(d)):(d=document.createElement("style"),c.appendChild(d),"styleSheet"in d?d.styleSheet.cssText=b:d.appendChild(document.createTextNode(b)));return d}
function I(a,b){var c="rsrc-p-"+a;if(b){var d=b.indexOf("//");if(0>d){if(0==b.lastIndexOf("hash-",0))return b;c=r[c]||"";if("[object String]"==Object.prototype.toString.call(c))b=c+b;else for(var e in c)b=b.replace(e,c[e]);b=0>b.indexOf("."+a)?b+"."+a:b;b=G(b)}else 0==d&&(b=G(b))}return b}function J(a,b,c){return a+"-"+b+(c?"-"+c:"")}function O(a){return a?String(a).replace(/[^\w]/g,""):""}function Sa(a,b,c,d){b=J(b,c,d);P[b]=a}function N(a,b,c){a=J(a,b,c);return P[a]}
function $a(a,b){var c=N(a,b);return""==b||c==Ta}function La(a,b,c){a=J(a,b);M[a]=c}function K(a,b){var c=J(a,b);return M[c]}function Ra(a,b){var c=K(a,b);return void 0!=c&&$a(a,c)}var P={},L={},M={},Ya=-1!=navigator.userAgent.indexOf(" Trident/"),Ua=1,Ta=2,Q="css",H="js";"rsrc-s"in r||q("rsrc-s",P);P=r["rsrc-s"];"rsrc-n"in r||q("rsrc-n",L);L=r["rsrc-n"];"rsrc-u"in r||q("rsrc-u",M);M=r["rsrc-u"];function bb(a){a=u(a);t(a,function(a){Wa("img",a)})};function cb(a,b,c){Ia(H,a,b,c)}function db(a){Pa(H,a)}function eb(a,b){Oa(H,a,b)}function fb(a){a=u(a);t(a,function(a){Wa(H,a)})}function gb(a,b,c){a=u(a);a=na(a,function(a){return!!a});var d=[];t(a,function(a){void 0==K(H,a)&&d.push(a)});var e=!d.length;if(b){var f=ma(a,l(Ra,null,H));e&&f?b():(a=J(H,a.sort().join("|")),xa(a,b))}c&&!e&&c(d)}function hb(a,b){a=u(a);t(a,function(a){if(a){var b=R[a]||a,b=I(H,b),e=K(H,a);e&&b!=e&&ib(a)}});gb(a,b,jb)}
function jb(a){t(a,function(a){function c(){cb(e,a)}var d=S[a],e=R[a]||a;d?hb(d,c):c()})}function ib(a){a=u(a);t(a,function(a){var c=[],d;for(d in S){var e=S[d],e=u(e);t(e,function(e){e==a&&c.push(d)})}t(c,function(a){ib(a)});db(a)})}function kb(a,b){Za(H,a,b)}function lb(a){ab(H,a)}var S={};"js-d"in r||q("js-d",S);var S=r["js-d"],R={};"js-u"in r||q("js-u",R);R=r["js-u"];function mb(a,b,c){Ia(Q,a,b,c)}function nb(a,b){Oa(Q,a,b)}function ob(a){a=u(a);t(a,function(a){Wa(Q,a)})};function pb(a,b,c){if(b){b=[];var d,e=0;c&&(a+="\r\n");var f=a.indexOf(qb,e);for(-1<f&&(e=f+qb.length);-1<(f=a.indexOf(rb,e));)d=Aa(a.substring(e,f)),e=f+rb.length,d&&b.push(JSON.parse(d));f=a.indexOf(sb,e);-1<f&&(d=Aa(a.substring(e,f)),e=f+sb.length,d&&b.push(JSON.parse(d)));d="";a.length>e&&(d=a.substring(e),c&&x(d,"\r\n")&&(d=d.substring(0,d.length-2)));return{j:b,a:d}}a=JSON.parse(a);b="number"==typeof a.length?a:[a];return{j:b,a:""}}
function T(a,b,c,d,e){var f="process "+G(a),g=!s["experimental-process-async"],h;h=0;b.timing||(b.timing={});b.title&&(document.title=b.title);d&&b.url&&G(b.url)!=G(window.location.href)&&ha(b.url+window.location.hash,null,!1,!0);b.head&&(h=l(function(a,b){var c=U(a);tb(c);ub(c);D(f);vb(c,function(){b.spfProcessHead=n();E(f,g)})},null,b.head,b.timing),h=A(f,h));b.attr&&(h=l(function(a,b){for(var c in a){var d=document.getElementById(c);if(d){var e=a[c],f=void 0;for(f in e){var g=e[f];"class"==f?d.className=
g:"style"==f?d.style.cssText=g:d.setAttribute(f,g)}}}b.spfProcessAttr=n()},null,b.attr,b.timing),h=A(f,h));d=b.body||{};var k=h,p;for(p in d)h=l(function(a,b){var c=document.getElementById(a);if(c){var d=U(b),h=s["animation-class"];if(wb&&ua(c,h)){D(f);var k=Ea(c);C(k,!0);h={p:d,reverse:!!e,d:null,g:null,f:c,D:h+"-old",G:h+"-new",B:e?h+"-reverse-start":h+"-forward-start",r:e?h+"-reverse-end":h+"-forward-end"};c=l(function(a){ub(a.p);va(a.f,a.B);a.d=document.createElement("div");a.d.className=a.D;
var b=a.f,c=a.d;if(c){for(var d;d=b.firstChild;)c.appendChild(d);b.appendChild(c)}a.g=document.createElement("div");a.g.className=a.G;a.g.innerHTML=a.p.i;a.reverse?(b=a.d,b.parentNode.insertBefore(a.g,b)):(b=a.d,b.parentNode.insertBefore(a.g,b.nextSibling))},null,h);A(k,c,0);c=l(function(a){wa(a.f,a.B);va(a.f,a.r)},null,h);A(k,c,0);c=l(function(a){a.f.removeChild(a.d);wa(a.f,a.r);ea(a.g);D(k);vb(a.p,function(){E(k)})},null,h);A(k,c,parseInt(s["animation-duration"],10));c=l(function(a,b){E(b)},null,
h,f);A(k,c);C(k)}else{ub(d);var p=function(){D(f);vb(d,function(){E(f,g)})};(h=s["experimental-html-handler"])?(D(f),h(d.i,c,function(){p();E(f,g)})):(c.innerHTML=d.i,p())}}},null,p,d[p],b.timing),h=A(f,h);p=h-k;b.foot?(h=l(function(a,b,c){c&&(b.spfProcessBody=n());a=U(a);ub(a);D(f);vb(a,function(){b.spfProcessFoot=n();E(f,g)})},null,b.foot,b.timing,p),h=A(f,h)):p&&(h=l(function(a){a.spfProcessBody=n()},null,b.timing),h=A(f,h));c&&(h=A(f,l(c,null,a,b)));C(f,g)}
function xb(a,b,c){var d="preprocess "+G(a),e;b.head&&(e=l(function(a){a=U(a);tb(a);yb(a);zb(a)},null,b.head),A(d,e));var f=b.body||{},g;for(g in f)f[g]&&(e=l(function(a,b){var c=U(b);yb(c);zb(c)},null,g,f[g]),A(d,e));b.foot&&(e=l(function(a){a=U(a);yb(a);zb(a)},null,b.foot),A(d,e));c&&A(d,l(c,null,a,b));C(d)}
function U(a){var b=new Ab;if(!a)return b;if("[object String]"!=Object.prototype.toString.call(a))return a.scripts&&t(a.scripts,function(a){b.scripts.push({url:a.url||"",text:a.text||"",name:a.name||"",async:a.async||!1})}),a.styles&&t(a.styles,function(a){b.c.push({url:a.url||"",text:a.text||"",name:a.name||""})}),a.links&&s["experimental-preconnect"]&&t(a.links,function(a){"spf-preconnect"==a.rel&&b.links.push({url:a.url||"",rel:a.rel||""})}),b.i=a.html||"",b;a=a.replace(Bb,function(a,d,e,f){return"script"==
d?(a=(a=e.match(Cb))?a[1]:"",d=(d=e.match(Db))?d[1]:"",e=Eb.test(e),b.scripts.push({url:d,text:f,name:a,async:e}),""):"style"==d?(a=(a=e.match(Cb))?a[1]:"",b.c.push({url:"",text:f,name:a}),""):a});a=a.replace(Fb,function(a,d){var e=d.match(Gb),e=e?e[1]:"";if("stylesheet"==e){var e=(e=d.match(Cb))?e[1]:"",f=d.match(Hb),f=f?f[1]:"";b.c.push({url:f,text:"",name:e});return""}return"spf-preconnect"==e&&s["experimental-preconnect"]?(f=(f=d.match(Hb))?f[1]:"",b.links.push({url:f,rel:e}),""):a});b.i=a;return b}
function vb(a,b){if(0>=a.scripts.length)b&&b();else{var c=-1,d=function(){c++;if(c<a.scripts.length){var e=a.scripts[c],f=function(){};e.url?f=e.name?l(cb,null,e.url,e.name):l(eb,null,e.url):e.text&&(f=e.name?l(kb,null,e.text,e.name):l(lb,null,e.text));e.url&&!e.async?f(d):(f(),d())}else b&&b()};d()}}function zb(a){0>=a.scripts.length||(a=oa(a.scripts,function(a){return a.url}),fb(a))}
function ub(a){if(!(0>=a.c.length))for(var b=0,c=a.c.length;b<c;b++){var d=a.c[b];d.url?d.name?mb(d.url,d.name):nb(d.url):d.text&&(d.name?Za(Q,d.text,d.name):ab(Q,d.text))}}function yb(a){0>=a.c.length||(a=oa(a.c,function(a){return a.url}),ob(a))}function tb(a){0>=a.links.length||(a=oa(a.links,function(a){return"spf-preconnect"==a.rel?a.url:""}),bb(a))}function Ab(){this.i="";this.scripts=[];this.c=[];this.links=[]}
var wb=function(){var a=document.createElement("div");if("transition"in a.style)return!0;for(var b=["webkit","Moz","Ms","O","Khtml"],c=0,d=b.length;c<d;c++)if(b[c]+"Transition"in a.style)return!0;return!1}(),Fb=/\x3clink([\s\S]*?)\x3e/ig,Bb=/\x3c(script|style)([\s\S]*?)\x3e([\s\S]*?)\x3c\/\1\x3e/ig,Eb=/(?:\s|^)async(?:\s|=|$)/i,Hb=/(?:\s|^)href\s*=\s*["']?([^\s"']+)/i,Cb=/(?:\s|^)name\s*=\s*["']?([^\s"']+)/i,Gb=/(?:\s|^)rel\s*=\s*["']?([^\s"']+)/i,Db=/(?:\s|^)src\s*=\s*["']?([^\s"']+)/i,qb="[\r\n",
rb=",\r\n",sb="]\r\n";function Ib(a,b,c,d){var e=d||{},f=!1,g=0,h,k=new XMLHttpRequest;k.open(a,b,!0);k.timing={};var p=k.abort;k.abort=function(){clearTimeout(h);k.onreadystatechange=null;p.call(k)};k.onreadystatechange=function(){var a=k.timing;if(k.readyState==Jb){a.responseStart=a.responseStart||n();f=-1<(k.getResponseHeader("Transfer-Encoding")||"").toLowerCase().indexOf("chunked");if(!f){var a=k.getResponseHeader("X-Firefox-Spdy"),c=window.chrome&&chrome.loadTimes&&chrome.loadTimes(),c=c&&c.wasFetchedViaSpdy;f=!(!a&&
!c)}e.v&&e.v(k)}else k.readyState==Kb?f&&e.l&&(a=k.responseText.substring(g),g=k.responseText.length,e.l(k,a)):k.readyState==Lb&&(a.responseEnd=a.responseEnd||n(),window.performance&&window.performance.getEntriesByName&&(k.resourceTiming=window.performance.getEntriesByName(b).pop()),f&&e.l&&k.responseText.length>g&&(a=k.responseText.substring(g),g=k.responseText.length,e.l(k,a)),clearTimeout(h),e.u&&e.u(k))};a="POST"==a;if(e.headers)for(var y in e.headers)k.setRequestHeader(y,e.headers[y]),"content-type"==
y.toLowerCase()&&(a=!1);a&&k.setRequestHeader("Content-Type","application/x-www-form-urlencoded");0<e.C&&(h=setTimeout(function(){k.abort();e.w&&e.w(k)},e.C));k.timing.fetchStart=n();k.send(c);return k}var Jb=2,Kb=3,Lb=4;function Mb(a,b){var c=b||{};c.method=((c.method||"GET")+"").toUpperCase();c.type=c.type||"request";var d=a,e=s["url-identifier"]||"";if(e){var e=e.replace("__type__",c.type||""),f=z(d,"#"),g=z(f[0],"?"),d=g[0],h=g[1],g=g[2],k=f[1],f=f[2];if(0==e.lastIndexOf("?",0))h&&(e=e.replace("?","&")),g+=e;else{if(0==e.lastIndexOf(".",0))if(x(d,"/"))e="index"+e;else{var p=d.lastIndexOf(".");-1<p&&(d=d.substring(0,p))}else x(d,"/")&&0==e.lastIndexOf("/",0)&&(e=e.substring(1));d+=e}d=d+h+g+k+f}e=G(d);d={};d.spfUrl=
e;d.startTime=n();d.fetchStart=d.startTime;a:{g=Nb(a,c.current,null,c.type,!1);k=c.current;h=[];k&&(h.push(g+" previous "+k),h.push(g+" previous "+F(k).pathname));h.push(g);g=0;for(k=h.length;g<k;g++){b:{f=h[g];p=v();if(f in p){p=p[f];if(ra(p)){sa(p);f=p.data;break b}pa(f)}f=void 0}if(f){h={key:h[g],response:f.response,type:f.type};break a}}h=null}d.spfPrefetched=!!h&&"prefetch"==h.type;d.spfCached=!!h;if(h)return setTimeout(l(Ob,null,a,c,d,h.key,h.response),0),null;h={};void 0!=c.A&&(h["X-SPF-Referer"]=
c.A);c.current&&(h["X-SPF-Previous"]=c.current);if(g=s["advanced-header-identifier"])h["X-SPF-Request"]=g.replace("__type__",c.type),h.Accept="application/json";g={t:!1,a:"",complete:[]};d=l(Pb,null,a,c,d,g);d={headers:h,C:s["request-timeout"],v:l(Qb,null,a,g),l:l(Rb,null,a,c,g),u:d,w:d};return"POST"==c.method?Ib("POST",e,c.q,d):Ib("GET",e,null,d)}
function Ob(a,b,c,d,e){var f=!1;c.responseStart=c.responseEnd=n();b.type&&0==b.type.lastIndexOf("navigate",0)&&(c.navigationStart=c.startTime,s["cache-unified"]||(pa(d),f=!0));if(b.b&&"multipart"==e.type){d=e.parts;for(var g=0;g<d.length;g++)b.b(a,d[g])}Sb(a,b,c,e,f)}function Qb(a,b,c){a=-1!=(c.getResponseHeader("X-SPF-Response-Type")||"").toLowerCase().indexOf("multipart");b.t=a}
function Rb(a,b,c,d,e,f){if(c.t){e=c.a+e;var g;try{g=pb(e,!0,f)}catch(h){d.abort();b.e&&b.e(a,h);return}if(b.b)for(d=0;d<g.j.length;d++)b.b(a,g.j[d]);c.complete=c.complete.concat(g.j);c.a=g.a}}
function Pb(a,b,c,d,e){if(e.timing)for(var f in e.timing)c[f]=e.timing[f];if(e.resourceTiming)if("load"==b.type)for(var g in e.resourceTiming)c[g]=e.resourceTiming[g];else if(window.performance&&window.performance.timing&&(f=window.performance.timing.navigationStart,f+e.resourceTiming.startTime>=c.startTime))for(var h in e.resourceTiming)g=e.resourceTiming[h],void 0!==g&&(x(h,"Start")||x(h,"End")||"startTime"==h)&&(c[h]=f+Math.round(g));"load"!=b.type&&(c.navigationStart=c.startTime);d.complete.length&&
(d.a=Aa(d.a),d.a&&Rb(a,b,d,e,"",!0));var k;try{k=pb(e.responseText).j}catch(p){b.e&&b.e(a,p);return}if(b.b&&1<k.length)for(d=d.complete.length;d<k.length;d++)b.b(a,k[d]);if(1<k.length){var y;d=0;for(e=k.length;d<e;d++)h=k[d],h.cacheType&&(y=h.cacheType);k={parts:k,type:"multipart"};y&&(k.cacheType=y)}else k=1==k.length?k[0]:{};Sb(a,b,c,k,!0)}
function Sb(a,b,c,d,e){if(e&&"POST"!=b.method&&(e=Nb(a,b.current,d.cacheType,b.type,!0))){d.cacheKey=e;var f={response:d,type:b.type||""},g=parseInt(s["cache-lifetime"],10),h=parseInt(s["cache-max"],10);0>=g||0>=h||(h=v(),f={data:f,life:g,time:n(),count:0},sa(f),h[e]=f,setTimeout(qa,1E3))}d.timing=c;b.m&&b.m(a,d)}
function Nb(a,b,c,d,e){a=G(a);var f;s["cache-unified"]?f=a:"navigate-back"==d||"navigate-forward"==d?f="history "+a:"navigate"==d?f=(e?"history ":"prefetch ")+a:"prefetch"==d&&(f=e?"prefetch "+a:"");b&&"url"==c?f+=" previous "+b:b&&"path"==c&&(f+=" previous "+F(b).pathname);return f||""};function Tb(a){return fa(a,function(a){return ua(a,s["link-class"])})}function Ub(a){return fa(a,function(a){return ua(a,s["nolink-class"])})}function Vb(a,b){return fa(a,function(a){return a.href&&"img"!=a.tagName.toLowerCase()},b)}function Wb(a){if(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey||0<a.button)return null;var b=Tb(a.target);return!b||s["nolink-class"]&&Ub(a.target)?null:(a=Vb(a.target,b))?a.href:null}function Xb(a){return F(a).origin!=F(window.location.href).origin?!1:!0}
function Yb(){if(!r["nav-init"])return!1;var a=parseInt(r["nav-counter"],10)||0;a++;var b=parseInt(s["navigate-limit"],10),b=isNaN(b)?Infinity:b;if(a>b)return!1;a=parseInt(r["nav-init-time"],10);a--;a=n()-a;b=parseInt(s["navigate-lifetime"],10);b=isNaN(b)?Infinity:b;return a>b?!1:!0}function Zb(a){if(!a.defaultPrevented){var b=Wb(a);b&&(b=Ha(b),Xb(b)&&Yb()&&m("spfclick",{url:b,target:a.target})&&($b(b),a.preventDefault()))}}function ac(a){var b=Wb(a);b&&setTimeout(function(){bc(b)},0)}
function cc(a,b){var c=!(!b||!b["spf-back"]),d=b&&b["spf-referer"],e=b&&b["spf-current"],f=s["reload-identifier"];f&&(a=Ga(a,[f]));Xb(a)?Yb()?m("spfhistory",{url:a,referer:d,previous:e})&&$b(a,null,e,d,!0,c):V(a,dc):V(a,ec)}
function $b(a,b,c,d,e,f){W();b=b||{};d=void 0==d?window.location.href:d;c=e?c:window.location.href;var g;a:{if(-1!=a.indexOf("#")&&(g=G(a),z(c||window.location.href,"#")[0]==g)){g=!1;break a}g=!0}if(g)if(fc(a,d,c,b)){q("nav-counter",(parseInt(r["nav-counter"],10)||0)+1);gc(a);g=G(a);var h="preprocess "+G(g),k;for(k in B)h!=k&&0==k.lastIndexOf("preprocess",0)&&Ca(k);k=hc()[g];q("nav-request",k);q("nav-promote",null);q("nav-promote-time",null);k&&4!=k.readyState?(c=!!e,f="preprocess "+G(a),e="promote "+
G(a),q("nav-promote",a),q("nav-promote-time",n()),Ca(f),C(e,!0),c||ic(a,d,l(X,null,b))):(e=!!e,k=!!f,f=l(X,null,b),g=l(jc,null,b,k),h=l(kc,null,b,k,""),s["advanced-navigate-persist-timing"]||lc(),b=Mb(a,{method:b.method,b:g,e:f,m:h,q:b.postData,type:"navigate"+(e?k?"-back":"-forward":""),current:c,A:d}),q("nav-request",b),e||ic(a,d,f))}else V(a,mc);else nc(a),e||ic(a,d,l(X,null,b))}function nc(a){a=z(a,"#");a[1]&&(a[2]?(a=document.getElementById(a[2]))&&a.scrollIntoView():window.scroll(0,0))}
function ic(a,b,c){try{b={"spf-referer":b},G(a,!0)==window.location.href?ha(a,null,!1,!0):ia(!1,a,b,void 0)}catch(d){W(),c(a,d)}}function X(a,b,c){q("nav-request",null);oc(b,c,a)&&V(b,pc,c)}function jc(a,b,c,d){if(qc(c,d,a))if(d.reload)V(c,rc);else if(d.redirect)sc(a,d.redirect);else try{T(c,d,function(){tc(c,d,a)},!0,b)}catch(e){X(a,c,e)}else V(c,uc)}
function kc(a,b,c,d,e){q("nav-request",null);r["nav-promote"]==c&&(c=e.timing||{},c.navigationStart=r["nav-promote-time"],c.spfPrefetched=!0);c="multipart"==e.type;if(!c){if(!vc(d,e,a)){V(d,wc);return}if(e.reload){V(d,rc);return}if(e.redirect){sc(a,e.redirect);return}}try{T(d,c?{}:e,function(){nc(d);xc(d,e,a)},!0,b)}catch(f){X(a,d,f)}}function sc(a,b){try{b+=window.location.hash,ha(b,null,!0,!0)}catch(c){W(),X(a,b,c)}}function W(){var a=r["nav-request"];a&&(a.abort(),q("nav-request",null))}
function Y(a,b){var c;a&&(c=Array.prototype.slice.call(arguments),c[0]=a,c=aa.apply(null,c));return!1!==c}
function V(a,b,c){c=c?c.message:"";W();gc();var d=b;c&&(d+=" Message: "+c);m("spfreload",{url:a,reason:d});s["experimental-remove-history"]&&window.location.href==a&&(q("history-ignore-pop",!0),window.history.back());setTimeout(function(){var c=s["reload-identifier"];if(c){var d={};d[c]=encodeURIComponent(b);var c=a,g=z(c,"#"),c=g[0],h=-1!=c.indexOf("?")?"&":"?",k;for(k in d)c+=h+k,d[k]&&(c+="="+d[k]),h="&";a=c+g[1]+g[2]}window.location.href=a},0)}
function yc(a,b,c){b=b||{};c=c||a;fc(a,void 0,void 0,b,!0)&&Mb(a,{method:b.method,b:l(zc,null,!1,b,c),e:l(Ac,null,!1,b,c),m:l(Bc,null,!1,b,c),q:b.postData,type:"load"})}function bc(a,b){a=Ha(a);Cc(a,b)}function Cc(a,b,c){b=b||{};c=c||a;var d=window.location.href;fc(a,void 0,void 0,b,!0)&&(b=Mb(a,{method:b.method,b:l(zc,null,!0,b,c),e:l(Ac,null,!0,b,c),m:l(Bc,null,!0,b,c),q:b.postData,type:"prefetch",current:d}),a=G(a),hc()[a]=b)}
function Ac(a,b,c,d,e){a&&Dc(d);a&&r["nav-promote"]==c?X(b,d,e):oc(d,e,b,!0)}function zc(a,b,c,d,e){if(qc(d,e,b,!0)){if(e.reload){if(!a)return;if(r["nav-promote"]==c){V(d,rc);return}}if(e.redirect)Ec(a,b,c,e.redirect);else{if(a){var f=l(jc,null,b,!1,d,e),g="promote "+G(c);A(g,f);if(r["nav-promote"]==c){C(g,!0);return}}(a?xb:T)(d,e,function(){tc(d,e,b,!0)})}}}
function Bc(a,b,c,d,e){var f="multipart"==e.type;if(!f){if(!vc(d,e,b,!0)){V(d,wc);return}if(e.reload){if(!a)return;if(r["nav-promote"]==c){V(d,rc);return}}if(e.redirect){Ec(a,b,c,e.redirect);return}}var g="promote "+G(c);if(a){Dc(d);if(r["nav-promote"]==c){A(g,l(kc,null,b,!1,c,d,e));C(g,!0);return}Ca(g)}g=a?xb:T;try{g(d,f?{}:e,function(){xc(d,e,b,!0)})}catch(h){Ac(a,b,c,d,h)}}function Ec(a,b,c,d){a=a?Cc:yc;var e={};t([Fc,Gc,Hc,Ic,Jc,Kc],function(a){e[a]=b[a]});a(d,e,c)}
function oc(a,b,c,d){a={url:a,err:b};(c=Y((c||{})[Fc],a))&&!d&&(c=m("spferror",a));return c}function fc(a,b,c,d,e){a={url:a,referer:b,previous:c};(d=Y((d||{})[Gc],a))&&!e&&(d=m("spfrequest",a));return d}function qc(a,b,c,d){a={url:a,part:b};(c=Y((c||{})[Hc],a))&&!d&&(c=m("spfpartprocess",a));return c}function tc(a,b,c,d){a={url:a,part:b};Y((c||{})[Ic],a)&&!d&&m("spfpartdone",a)}function vc(a,b,c,d){a={url:a,response:b};(c=Y((c||{})[Jc],a))&&!d&&(c=m("spfprocess",a));return c}
function xc(a,b,c,d){a={url:a,response:b};Y((c||{})[Kc],a)&&!d&&m("spfdone",a)}function Dc(a){a=G(a);var b=hc(),c=b[a];c&&c.abort();delete b[a]}function gc(a){var b=hc();a=a&&G(a);for(var c in b)a!=c&&Dc(c)}var lc,Lc=window.performance&&(window.performance.clearResourceTimings||window.performance.webkitClearResourceTimings||window.performance.mozClearResourceTimings||window.performance.msClearResourceTimings||window.performance.oClearResourceTimings);lc=Lc?l(Lc,window.performance):ba;
function hc(){return"nav-prefetches"in r?r["nav-prefetches"]:q("nav-prefetches",{})}var Fc="onError",Gc="onRequest",Hc="onPartProcess",Ic="onPartDone",Jc="onProcess",Kc="onDone",dc="1",mc="2",uc="3",wc="4",rc="5",ec="9",pc="10";function Z(){Va(H);Va(Q);"complete"==document.readyState&&(document.removeEventListener?document.removeEventListener("DOMContentLoaded",Z,!1):document.detachEvent&&document.detachEvent("onreadystatechange",Z))}document.addEventListener?document.addEventListener("DOMContentLoaded",Z,!1):document.attachEvent&&document.attachEvent("onreadystatechange",Z);Z();
var Mc={init:function(a){var b=!("function"!=typeof window.history.pushState&&!ka().contentWindow.history.pushState);a=a||{};for(var c in ca)s[c]=c in a?a[c]:ca[c];for(c in a)c in ca||(s[c]=a[c]);if(b){c=oc;if(!r["history-init"]&&window.addEventListener){a=window.location.href;window.addEventListener("popstate",la,!1);q("history-init",!0);q("history-callback",cc);q("history-error-callback",c);q("history-listener",la);q("history-url",a);q("history-timestamp",n());var d={"spf-referer":document.referrer};
try{ha(a,d)}catch(e){c&&c(a,e)}}!r["nav-init"]&&document.addEventListener&&(document.addEventListener("click",Zb,!1),!s["experimental-prefetch-mousedown"]||"ontouchstart"in window||0<window.navigator.maxTouchPoints||0<window.navigator.msMaxTouchPoints||(document.addEventListener("mousedown",ac,!1),q("prefetch-listener",ac)),q("nav-init",!0),q("nav-init-time",n()),q("nav-counter",0),q("nav-listener",Zb))}return b},dispose:function(){"undefined"!=typeof History&&History.prototype.pushState&&(W(),r["nav-init"]&&
(document.removeEventListener&&(document.removeEventListener("click",r["nav-listener"],!1),s["experimental-prefetch-mousedown"]&&document.removeEventListener("mousedown",r["prefetch-listener"],!1)),q("nav-init",!1),q("nav-init-time",null),q("nav-counter",null),q("nav-listener",null)),r["history-init"]&&(window.removeEventListener&&window.removeEventListener("popstate",r["history-listener"],!1),q("history-init",!1),q("history-callback",null),q("history-error-callback",null),q("history-listener",null),
q("history-url",null),q("history-timestamp",0)));for(var a in s)delete s[a]},navigate:function(a,b){a&&(a=Ha(a),Xb(a)?Yb()?$b(a,b):V(a,dc):V(a,ec))},load:function(a,b){a=Ha(a);yc(a,b)},prefetch:bc,process:function(a,b){function c(a,c,d,e){a==c&&b&&b(e)}var d=window.location.href;if("multipart"==a.type)for(var e=a.parts,f=0;f<e.length;f++){var g=l(c,null,f,e.length-1);T(d,e[f],g)}else g=l(c,null,0,0),T(d,a,g)}},Nc={cache:{remove:pa,clear:function(){v({})}},script:{load:cb,get:eb,ready:gb,done:function(a){La(H,
a,"");Ma(H)},require:hb,declare:function(a,b){if(a){for(var c in a)S[c]=a[c];if(b)for(c in b)R[c]=b[c]}},path:function(a){q("rsrc-p-"+H,a)},unload:db,ignore:function(a,b){a=u(a);var c=J(H,a.sort().join("|"));ya(c,b)},unrequire:ib,prefetch:fb},style:{load:mb,get:nb,unload:function(a){Pa(Q,a)},path:function(a){q("rsrc-p-"+Q,a)},prefetch:ob}},Oc=this.spf=this.spf||{},Pc;for(Pc in Mc)Oc[Pc]=Mc[Pc];for(var $ in Nc)for(var Qc in Nc[$])Oc[$]=Oc[$]||{},Oc[$][Qc]=Nc[$][Qc];m("spfready");if(typeof define=='function'&&define.amd)define(spf);else if(typeof exports=='object')for(var f in spf)exports[f]=spf[f];})();


