/*
 * Copyright 2013 Small Batch, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */(function(e,t,n){function o(e){return function(){return this[e]}}function a(e,t){var n=e.split("."),r=u;!(n[0]in r)&&r.execScript&&r.execScript("var "+n[0]);for(var i;n.length&&(i=n.shift());)!n.length&&void 0!==t?r[i]=t:r=r[i]?r[i]:r[i]={}}function f(e,t,n){return e.call.apply(e.bind,arguments)}function l(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function c(e,t,n){return c=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?f:l,c.apply(i,arguments)}function p(e,t){this.G=e,this.u=t||e,this.z=this.u.document}function d(e,n,r){e=e.z.getElementsByTagName(n)[0],e||(e=t.documentElement),e&&e.lastChild&&e.insertBefore(r,e.lastChild)}function v(e,t){for(var n=e.className.split(/\s+/),r=0,i=n.length;r<i;r++)if(n[r]==t)return;n.push(t),e.className=n.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function m(e,t){for(var n=e.className.split(/\s+/),r=[],i=0,s=n.length;i<s;i++)n[i]!=t&&r.push(n[i]);e.className=r.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function g(e,t){for(var n=e.className.split(/\s+/),i=0,o=n.length;i<o;i++)if(n[i]==t)return r;return s}function y(e){var t=e.u.location.protocol;return"about:"==t&&(t=e.G.location.protocol),"https:"==t?"https:":"http:"}function b(e,t){var n=e.createElement("link",{rel:"stylesheet",href:t}),i=s;n.onload=function(){i||(i=r)},n.onerror=function(){i||(i=r)},d(e,"head",n)}function w(t,n,o,u){var a=t.z.getElementsByTagName("head")[0];if(a){var f=t.createElement("script",{src:n}),l=s;return f.onload=f.onreadystatechange=function(){!l&&(!this.readyState||"loaded"==this.readyState||"complete"==this.readyState)&&(l=r,o&&o(i),f.onload=f.onreadystatechange=i,"HEAD"==f.parentNode.tagName&&a.removeChild(f))},a.appendChild(f),e.setTimeout(function(){l||(l=r,o&&o(Error("Script load timeout")))},u||5e3),f}return i}function E(e,t,n){this.w=e,this.S=t,this.za=n}function S(e,t,n,r){this.e=e!=i?e:i,this.o=t!=i?t:i,this.aa=n!=i?n:i,this.f=r!=i?r:i}function T(e){e=x.exec(e);var t=i,n=i,r=i,s=i;return e&&(e[1]!==i&&e[1]&&(t=parseInt(e[1],10)),e[2]!==i&&e[2]&&(n=parseInt(e[2],10)),e[3]!==i&&e[3]&&(r=parseInt(e[3],10)),e[4]!==i&&e[4]&&(s=/^[0-9]+$/.test(e[4])?parseInt(e[4],10):e[4])),new S(t,n,r,s)}function N(e,t,n,r,i,s,o,u,a,f,l){this.J=e,this.Fa=t,this.ya=n,this.fa=r,this.Da=i,this.ea=s,this.wa=o,this.Ea=u,this.va=a,this.da=f,this.k=l}function C(e,t){this.a=e,this.H=t}function L(e){var t=M(e.a,/(iPod|iPad|iPhone|Android|Windows Phone|BB\d{2}|BlackBerry)/,1);return""!=t?(/BB\d{2}/.test(t)&&(t="BlackBerry"),t):(e=M(e.a,/(Linux|Mac_PowerPC|Macintosh|Windows|CrOS)/,1),""!=e?("Mac_PowerPC"==e&&(e="Macintosh"),e):"Unknown")}function A(e){var t=M(e.a,/(OS X|Windows NT|Android) ([^;)]+)/,2);if(t||(t=M(e.a,/Windows Phone( OS)? ([^;)]+)/,2))||(t=M(e.a,/(iPhone )?OS ([\d_]+)/,2)))return t;if(t=M(e.a,/(?:Linux|CrOS) ([^;)]+)/,1))for(var t=t.split(/\s/),n=0;n<t.length;n+=1)if(/^[\d\._]+$/.test(t[n]))return t[n];return(e=M(e.a,/(BB\d{2}|BlackBerry).*?Version\/([^\s]*)/,2))?e:"Unknown"}function O(e){var t=L(e),n=A(e),r=T(n),i=M(e.a,/AppleWeb(?:K|k)it\/([\d\.\+]+)/,1),o=T(i),u="Unknown",a=new S,f="Unknown",l=s;return/OPR\/[\d.]+/.test(e.a)?u="Opera":-1!=e.a.indexOf("Chrome")||-1!=e.a.indexOf("CrMo")||-1!=e.a.indexOf("CriOS")?u="Chrome":/Silk\/\d/.test(e.a)?u="Silk":"BlackBerry"==t||"Android"==t?u="BuiltinBrowser":-1!=e.a.indexOf("PhantomJS")?u="PhantomJS":-1!=e.a.indexOf("Safari")?u="Safari":-1!=e.a.indexOf("AdobeAIR")&&(u="AdobeAIR"),"BuiltinBrowser"==u?f="Unknown":"Silk"==u?f=M(e.a,/Silk\/([\d\._]+)/,1):"Chrome"==u?f=M(e.a,/(Chrome|CrMo|CriOS)\/([\d\.]+)/,2):-1!=e.a.indexOf("Version/")?f=M(e.a,/Version\/([\d\.\w]+)/,1):"AdobeAIR"==u?f=M(e.a,/AdobeAIR\/([\d\.]+)/,1):"Opera"==u?f=M(e.a,/OPR\/([\d.]+)/,1):"PhantomJS"==u&&(f=M(e.a,/PhantomJS\/([\d.]+)/,1)),a=T(f),l="AdobeAIR"==u?2<a.e||2==a.e&&5<=a.o:"BlackBerry"==t?10<=r.e:"Android"==t?2<r.e||2==r.e&&1<r.o:526<=o.e||525<=o.e&&13<=o.o,new N(u,a,f,"AppleWebKit",o,i,t,r,n,_(e.H),new E(l,536>o.e||536==o.e&&11>o.o,"iPhone"==t||"iPad"==t||"iPod"==t||"Macintosh"==t))}function M(e,t,n){return(e=e.match(t))&&e[n]?e[n]:""}function _(e){if(e.documentMode)return e.documentMode}function D(e){this.ua=e||"-"}function P(e,t){this.J=e,this.T=4,this.K="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.K=n[1],this.T=parseInt(n[2],10))}function H(e){return e.K+e.T}function B(e){var t=4,n="n",r=i;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function j(e,t,n){this.c=e,this.h=t,this.M=n,this.j="wf",this.g=new D("-")}function F(e){v(e.h,e.g.f(e.j,"loading")),q(e,"loading")}function I(e){m(e.h,e.g.f(e.j,"loading")),g(e.h,e.g.f(e.j,"active"))||v(e.h,e.g.f(e.j,"inactive")),q(e,"inactive")}function q(e,t,n){e.M[t]&&(n?e.M[t](n.getName(),H(n)):e.M[t]())}function R(e,t){this.c=e,this.C=t,this.s=this.c.createElement("span",{"aria-hidden":"true"},this.C)}function U(e,t){var n;n=[];for(var r=t.J.split(/,\s*/),i=0;i<r.length;i++){var s=r[i].replace(/['"]/g,"");-1==s.indexOf(" ")?n.push(s):n.push("'"+s+"'")}n=n.join(","),r="normal",i=t.T+"00","o"===t.K?r="oblique":"i"===t.K&&(r="italic"),e.s.style.cssText="position:absolute;top:-999px;left:-999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+n+";"+("font-style:"+r+";font-weight:"+i+";")}function z(e){d(e.c,"body",e.s)}function W(e,t,n,r,s,o,u,a){this.U=e,this.sa=t,this.c=n,this.q=r,this.C=a||"BESbswy",this.k=s,this.F={},this.R=o||5e3,this.Y=u||i,this.B=this.A=i,e=new R(this.c,this.C),z(e);for(var f in X)X.hasOwnProperty(f)&&(U(e,new P(X[f],H(this.q))),this.F[X[f]]=e.s.offsetWidth);e.remove()}function V(e,t,n){for(var i in X)if(X.hasOwnProperty(i)&&t===e.F[X[i]]&&n===e.F[X[i]])return r;return s}function $(e){var t=e.A.s.offsetWidth,n=e.B.s.offsetWidth;t===e.F.serif&&n===e.F["sans-serif"]||e.k.S&&V(e,t,n)?h()-e.xa>=e.R?e.k.S&&V(e,t,n)&&(e.Y===i||e.Y.hasOwnProperty(e.q.getName()))?J(e,e.U):J(e,e.sa):setTimeout(c(function(){$(this)},e),25):J(e,e.U)}function J(e,t){e.A.remove(),e.B.remove(),t(e.q)}function K(e,t,n,r){this.c=t,this.t=n,this.N=0,this.ba=this.X=s,this.R=r,this.k=e.k}function Q(e,t,n,r,i){if(0===t.length&&i)I(e.t);else{e.N+=t.length,i&&(e.X=i);for(i=0;i<t.length;i++){var s=t[i],o=n[s.getName()],u=e.t,a=s;v(u.h,u.g.f(u.j,a.getName(),H(a).toString(),"loading")),q(u,"fontloading",a),(new W(c(e.ga,e),c(e.ha,e),e.c,s,e.k,e.R,r,o)).start()}}}function G(e){0==--e.N&&e.X&&(e.ba?(e=e.t,m(e.h,e.g.f(e.j,"loading")),m(e.h,e.g.f(e.j,"inactive")),v(e.h,e.g.f(e.j,"active")),q(e,"active")):I(e.t))}function Y(e,t,n){this.G=e,this.V=t,this.a=n,this.O=this.P=0}function Z(e,t){nt.V.Z[e]=t}function rt(e,t){this.c=e,this.d=t}function it(e,t){this.c=e,this.d=t,this.m=[]}function st(e,t,n){this.L=e?e:t+ot,this.p=[],this.Q=[],this.ca=n||""}function ut(e){this.p=e,this.$=[],this.I={}}function ht(e,t,n){this.a=e,this.c=t,this.d=n}function dt(e,t){this.c=e,this.d=t}function mt(e){var t=e.split(":");e=t[0];if(t[1]){for(var n=t[1].split(","),t=[],r=0,i=n.length;r<i;r++){var s=n[r];if(s){var o=vt[s];t.push(o?o:s)}}n=[];for(r=0;r<t.length;r+=1)n.push(new P(e,t[r]));return n}return[new P(e)]}function gt(e,t,n){this.a=e,this.c=t,this.d=n,this.m=[]}function yt(e,t){this.c=e,this.d=t,this.m=[]}var r=!0,i=null,s=!1,u=this,h=Date.now||function(){return+(new Date)};p.prototype.createElement=function(e,t,n){e=this.z.createElement(e);if(t)for(var r in t)t.hasOwnProperty(r)&&("style"==r?e.style.cssText=t[r]:e.setAttribute(r,t[r]));return n&&e.appendChild(this.z.createTextNode(n)),e},a("webfont.BrowserInfo",E),E.prototype.pa=o("w"),E.prototype.hasWebFontSupport=E.prototype.pa,E.prototype.qa=o("S"),E.prototype.hasWebKitFallbackBug=E.prototype.qa,E.prototype.ra=o("za"),E.prototype.hasWebKitMetricsBug=E.prototype.ra;var x=/^([0-9]+)(?:[\._-]([0-9]+))?(?:[\._-]([0-9]+))?(?:[\._+-]?(.*))?$/;S.prototype.toString=function(){return[this.e,this.o||"",this.aa||"",this.f||""].join("")},a("webfont.UserAgent",N),N.prototype.getName=o("J"),N.prototype.getName=N.prototype.getName,N.prototype.oa=o("ya"),N.prototype.getVersion=N.prototype.oa,N.prototype.ka=o("fa"),N.prototype.getEngine=N.prototype.ka,N.prototype.la=o("ea"),N.prototype.getEngineVersion=N.prototype.la,N.prototype.ma=o("wa"),N.prototype.getPlatform=N.prototype.ma,N.prototype.na=o("va"),N.prototype.getPlatformVersion=N.prototype.na,N.prototype.ja=o("da"),N.prototype.getDocumentMode=N.prototype.ja,N.prototype.ia=o("k"),N.prototype.getBrowserInfo=N.prototype.ia;var k=new N("Unknown",new S,"Unknown","Unknown",new S,"Unknown","Unknown",new S,"Unknown",void 0,new E(s,s,s));C.prototype.parse=function(){var e;if(-1!=this.a.indexOf("MSIE")){e=L(this);var t=A(this),n=T(t),r=M(this.a,/MSIE ([\d\w\.]+)/,1),o=T(r);e=new N("MSIE",o,r,"MSIE",o,r,e,n,t,_(this.H),new E("Windows"==e&&6<=o.e||"Windows Phone"==e&&8<=n.e,s,s))}else if(-1!=this.a.indexOf("Opera"))e:{e="Unknown";var t=M(this.a,/Presto\/([\d\w\.]+)/,1),n=T(t),r=A(this),o=T(r),u=_(this.H);n.e!==i?e="Presto":(-1!=this.a.indexOf("Gecko")&&(e="Gecko"),t=M(this.a,/rv:([^\)]+)/,1),n=T(t));if(-1!=this.a.indexOf("Opera Mini/")){var a=M(this.a,/Opera Mini\/([\d\.]+)/,1),f=T(a);e=new N("OperaMini",f,a,e,n,t,L(this),o,r,u,new E(s,s,s))}else{if(-1!=this.a.indexOf("Version/")&&(a=M(this.a,/Version\/([\d\.]+)/,1),f=T(a),f.e!==i)){e=new N("Opera",f,a,e,n,t,L(this),o,r,u,new E(10<=f.e,s,s));break e}a=M(this.a,/Opera[\/ ]([\d\.]+)/,1),f=T(a),e=f.e!==i?new N("Opera",f,a,e,n,t,L(this),o,r,u,new E(10<=f.e,s,s)):new N("Opera",new S,"Unknown",e,n,t,L(this),o,r,u,new E(s,s,s))}}else/OPR\/[\d.]+/.test(this.a)?e=O(this):/AppleWeb(K|k)it/.test(this.a)?e=O(this):-1!=this.a.indexOf("Gecko")?(e="Unknown",t=new S,n="Unknown",r=A(this),o=T(r),u=s,-1!=this.a.indexOf("Firefox")?(e="Firefox",n=M(this.a,/Firefox\/([\d\w\.]+)/,1),t=T(n),u=3<=t.e&&5<=t.o):-1!=this.a.indexOf("Mozilla")&&(e="Mozilla"),a=M(this.a,/rv:([^\)]+)/,1),f=T(a),u||(u=1<f.e||1==f.e&&9<f.o||1==f.e&&9==f.o&&2<=f.aa||a.match(/1\.9\.1b[123]/)!=i||a.match(/1\.9\.1\.[\d\.]+/)!=i),e=new N(e,t,n,"Gecko",f,a,L(this),o,r,_(this.H),new E(u,s,s))):e=k;return e},D.prototype.f=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.ua)},P.prototype.getName=o("J"),R.prototype.remove=function(){var e=this.s;e.parentNode&&e.parentNode.removeChild(e)};var X={Ca:"serif",Ba:"sans-serif",Aa:"monospace"};W.prototype.start=function(){this.A=new R(this.c,this.C),z(this.A),this.B=new R(this.c,this.C),z(this.B),this.xa=h(),U(this.A,new P(this.q.getName()+",serif",H(this.q))),U(this.B,new P(this.q.getName()+",sans-serif",H(this.q))),$(this)},K.prototype.ga=function(e){var t=this.t;m(t.h,t.g.f(t.j,e.getName(),H(e).toString(),"loading")),m(t.h,t.g.f(t.j,e.getName(),H(e).toString(),"inactive")),v(t.h,t.g.f(t.j,e.getName(),H(e).toString(),"active")),q(t,"fontactive",e),this.ba=r,G(this)},K.prototype.ha=function(e){var t=this.t;m(t.h,t.g.f(t.j,e.getName(),H(e).toString(),"loading")),g(t.h,t.g.f(t.j,e.getName(),H(e).toString(),"active"))||v(t.h,t.g.f(t.j,e.getName(),H(e).toString(),"inactive")),q(t,"fontinactive",e),G(this)},Y.prototype.load=function(e){var t=e.context||this.G;this.c=new p(this.G,t),t=new j(this.c,t.document.documentElement,e);if(this.a.k.w){var n=this.V,r=this.c,i=[],s;for(s in e)if(e.hasOwnProperty(s)){var o=n.Z[s];o&&i.push(o(e[s],r))}e=e.timeout,this.O=this.P=i.length,e=new K(this.a,this.c,t,e),s=0;for(n=i.length;s<n;s++)r=i[s],r.v(this.a,c(this.ta,this,r,t,e))}else I(t)},Y.prototype.ta=function(e,t,n,r){var s=this;r?e.load(function(e,r,o){var u=0==--s.P;u&&F(t),setTimeout(function(){Q(n,e,r||{},o||i,u)},0)}):(e=0==--this.P,this.O--,e&&(0==this.O?I(t):F(t)),Q(n,[],{},i,e))};var et=e,tt=(new C(navigator.userAgent,t)).parse(),nt=et.WebFont=new Y(e,new function(){this.Z={}},tt);nt.load=nt.load,rt.prototype.load=function(e){var t,n,r=this.d.urls||[],i=this.d.families||[];t=0;for(n=r.length;t<n;t++)b(this.c,r[t]);r=[],t=0;for(n=i.length;t<n;t++){var s=i[t].split(":");if(s[1])for(var o=s[1].split(","),u=0;u<o.length;u+=1)r.push(new P(s[0],o[u]));else r.push(new P(s[0]))}e(r)},rt.prototype.v=function(e,t){return t(e.k.w)},Z("custom",function(e,t){return new rt(t,e)}),it.prototype.D=function(e){return y(this.c)+(this.d.api||"//f.fontdeck.com/s/css/js/")+(this.c.u.location.hostname||this.c.G.location.hostname)+"/"+e+".js"},it.prototype.v=function(e,t){var n=this.d.id,r=this.c.u,i=this;n?(r.__webfontfontdeckmodule__||(r.__webfontfontdeckmodule__={}),r.__webfontfontdeckmodule__[n]=function(e,n){for(var r=0,s=n.fonts.length;r<s;++r){var o=n.fonts[r];i.m.push(new P(o.name,B("font-weight:"+o.weight+";font-style:"+o.style)))}t(e)},w(this.c,this.D(n),function(e){e&&t(s)})):t(s)},it.prototype.load=function(e){e(this.m)},Z("fontdeck",function(e,t){return new it(t,e)});var ot="//fonts.googleapis.com/css";st.prototype.f=function(){if(0==this.p.length)throw Error("No fonts to load !");if(-1!=this.L.indexOf("kit="))return this.L;for(var e=this.p.length,t=[],n=0;n<e;n++)t.push(this.p[n].replace(/ /g,"+"));return e=this.L+"?family="+t.join("%7C"),0<this.Q.length&&(e+="&subset="+this.Q.join(",")),0<this.ca.length&&(e+="&text="+encodeURIComponent(this.ca)),e};var at={latin:"BESbswy",cyrillic:"&#1081;&#1103;&#1046;",greek:"&#945;&#946;&#931;",khmer:"&#x1780;&#x1781;&#x1782;",Hanuman:"&#x1780;&#x1781;&#x1782;"},ft={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},lt={i:"i",italic:"i",n:"n",normal:"n"},ct=RegExp("^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$");ut.prototype.parse=function(){for(var e=this.p.length,t=0;t<e;t++){var n=this.p[t].split(":"),r=n[0].replace(/\+/g," "),s=["n4"];if(2<=n.length){var o,u=n[1];o=[];if(u)for(var u=u.split(","),a=u.length,f=0;f<a;f++){var l;l=u[f];if(l.match(/^[\w]+$/)){l=ct.exec(l.toLowerCase());var c=void 0;if(l==i)c="";else{c=void 0,c=l[1];if(c==i||""==c)c="4";else var h=ft[c],c=h?h:isNaN(c)?"4":c.substr(0,1);c=[l[2]==i||""==l[2]?"n":lt[l[2]],c].join("")}l=c}else l="";l&&o.push(l)}0<o.length&&(s=o),3==n.length&&(n=n[2],o=[],n=n?n.split(","):o,0<n.length&&(n=at[n[0]])&&(this.I[r]=n))}this.I[r]||(n=at[r])&&(this.I[r]=n);for(n=0;n<s.length;n+=1)this.$.push(new P(r,s[n]))}};var pt={Arimo:r,Cousine:r,Tinos:r};ht.prototype.v=function(e,t){t(e.k.w)},ht.prototype.load=function(e){var t=this.c;if("MSIE"==this.a.getName()&&this.d.blocking!=r){var n=c(this.W,this,e),i=function(){t.z.body?n():setTimeout(i,0)};i()}else this.W(e)},ht.prototype.W=function(e){for(var t=this.c,n=new st(this.d.api,y(t),this.d.text),r=this.d.families,i=r.length,s=0;s<i;s++){var o=r[s].split(":");3==o.length&&n.Q.push(o.pop());var u="";2==o.length&&""!=o[1]&&(u=":"),n.p.push(o.join(u))}r=new ut(r),r.parse(),b(t,n.f()),e(r.$,r.I,pt)},Z("google",function(e,n){var r=(new C(navigator.userAgent,t)).parse();return new ht(r,n,e)});var vt={regular:"n4",bold:"n7",italic:"i4",bolditalic:"i7",r:"n4",b:"n7",i:"i4",bi:"i7"};dt.prototype.v=function(e,t){return t(e.k.w)},dt.prototype.load=function(e){b(this.c,y(this.c)+"//webfonts.fontslive.com/css/"+this.d.key+".css");for(var t=this.d.families,n=[],r=0,i=t.length;r<i;r++)n.push.apply(n,mt(t[r]));e(n)},Z("ascender",function(e,t){return new dt(t,e)}),gt.prototype.v=function(e,t){var n=this,r=n.d.projectId,i=n.d.version;if(r){var o=n.c.u;w(this.c,n.D(r,i),function(i){if(i)t(s);else{if(o["__mti_fntLst"+r]&&(i=o["__mti_fntLst"+r]()))for(var u=0;u<i.length;u++)n.m.push(new P(i[u].fontfamily));t(e.k.w)}}).id="__MonotypeAPIScript__"+r}else t(s)},gt.prototype.D=function(e,t){var n=y(this.c),r=(this.d.api||"fast.fonts.com/jsapi").replace(/^.*http(s?):(\/\/)?/,"");return n+"//"+r+"/"+e+".js"+(t?"?v="+t:"")},gt.prototype.load=function(e){e(this.m)},Z("monotype",function(e,n){var r=(new C(navigator.userAgent,t)).parse();return new gt(r,n,e)}),yt.prototype.D=function(e){var t=y(this.c);return(this.d.api||t+"//use.typekit.net")+"/"+e+".js"},yt.prototype.v=function(e,t){var n=this.d.id,r=this.d,i=this.c.u,o=this;n?(i.__webfonttypekitmodule__||(i.__webfonttypekitmodule__={}),i.__webfonttypekitmodule__[n]=function(n){n(e,r,function(e,n,r){for(var i=0;i<n.length;i+=1){var s=r[n[i]];if(s)for(var u=0;u<s.length;u+=1)o.m.push(new P(n[i],s[u]));else o.m.push(new P(n[i]))}t(e)})},w(this.c,this.D(n),function(e){e&&t(s)},2e3)):t(s)},yt.prototype.load=function(e){e(this.m)},Z("typekit",function(e,t){return new yt(t,e)}),e.WebFontConfig&&nt.load(e.WebFontConfig)})(this,document);