/* * 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(window,document,undefined){ var h=void 0,j=!0,m=null,n=!1;function q(a){return function(){return this[a]}}var aa=this;function ba(a,b){var c=a.split("."),d=aa;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&b!==h?d[e]=b:d=d[e]?d[e]:d[e]={}}aa.Ha=j;function ca(a,b,c){return a.call.apply(a.bind,arguments)} function da(a,b,c){if(!a)throw Error();if(2w';a.V=/top/.test(b.getElementsByTagName("a")[0].getAttribute("style"))}return a.V}function y(a){var b=a.C.location.protocol;"about:"==b&&(b=a.H.location.protocol);return"https:"==b?"https:":"http:"};function z(a,b,c){this.F=a;this.W=b;this.Ga=c}ba("webfont.BrowserInfo",z);z.prototype.va=q("F");z.prototype.hasWebFontSupport=z.prototype.va;z.prototype.wa=q("W");z.prototype.hasWebKitFallbackBug=z.prototype.wa;z.prototype.xa=q("Ga");z.prototype.hasWebKitMetricsBug=z.prototype.xa;function A(a,b,c,d,e,f,g,k){this.L=a;this.Fa=b;this.Y=c;this.la=d;this.Ea=e;this.Da=f;this.ka=g;this.k=k}ba("webfont.UserAgent",A);A.prototype.getName=q("L");A.prototype.getName=A.prototype.getName;A.prototype.ua=q("Fa");A.prototype.getVersion=A.prototype.ua;A.prototype.qa=q("Y");A.prototype.getEngine=A.prototype.qa;A.prototype.ra=q("la");A.prototype.getEngineVersion=A.prototype.ra;A.prototype.sa=q("Ea");A.prototype.getPlatform=A.prototype.sa;A.prototype.ta=q("Da"); A.prototype.getPlatformVersion=A.prototype.ta;A.prototype.pa=q("ka");A.prototype.getDocumentMode=A.prototype.pa;A.prototype.oa=q("k");A.prototype.getBrowserInfo=A.prototype.oa;function B(a,b){this.a=a;this.q=b}var ia=new A("Unknown","Unknown","Unknown","Unknown","Unknown","Unknown",h,new z(n,n,n)); B.prototype.parse=function(){var a;if(-1!=this.a.indexOf("MSIE")){a=C(this);var b=D(this),c=E(this.a,/(MSIE [\d\w\.]+)/,1);if(""!=c){var d=c.split(" "),c=d[0],d=d[1],e=F(d),f=F(b);a=new A(c,d,c,d,a,b,G(this.q),new z("Windows"==a&&6<=e.e||"Windows Phone"==a&&8<=f.e,n,n))}else a=new A("MSIE","Unknown","MSIE","Unknown",a,b,G(this.q),new z(n,n,n))}else if(-1!=this.a.indexOf("Opera"))a=ja(this);else if(/AppleWeb(K|k)it/.test(this.a)){a=C(this);var b=D(this),c=E(this.a,/AppleWeb(?:K|k)it\/([\d\.\+]+)/, 1),g=n;""==c&&(c="Unknown");d=F(c);g=F(b);e="Unknown";-1!=this.a.indexOf("Chrome")||-1!=this.a.indexOf("CrMo")||-1!=this.a.indexOf("CriOS")?e="Chrome":/Silk\/\d/.test(this.a)?e="Silk":"BlackBerry"==a||"Android"==a?e="BuiltinBrowser":-1!=this.a.indexOf("Safari")?e="Safari":-1!=this.a.indexOf("AdobeAIR")&&(e="AdobeAIR");f="Unknown";"BuiltinBrowser"==e?f="Unknown":/Silk\/\d/.test(this.a)?f=E(this.a,/Silk\/([\d\._]+)/,1):-1!=this.a.indexOf("Version/")?f=E(this.a,/Version\/([\d\.\w]+)/,1):"Chrome"==e? f=E(this.a,/(Chrome|CrMo|CriOS)\/([\d\.]+)/,2):"AdobeAIR"==e&&(f=E(this.a,/AdobeAIR\/([\d\.]+)/,1));"AdobeAIR"==e?(g=F(f),g=2d.e||536==d.e&&11>d.u,"iPhone"==a||"iPad"==a||"iPod"==a||"Macintosh"==a))}else-1!=this.a.indexOf("Gecko")?(b=a="Unknown",c=n,-1!=this.a.indexOf("Firefox")?(a="Firefox",d=E(this.a,/Firefox\/([\d\w\.]+)/,1),""!=d&& (c=F(d),b=d,c=3<=c.e&&5<=c.u)):-1!=this.a.indexOf("Mozilla")&&(a="Mozilla"),d=E(this.a,/rv:([^\)]+)/,1),""==d?d="Unknown":c||(c=F(d),c=1=this.N?this.k.W&&oa(this,a,b)&&(this.da===m||this.da.hasOwnProperty(this.o.getName()))?Q(this,this.I):Q(this,this.aa):pa(this):Q(this,this.I)};function pa(a){setTimeout(r(function(){this.Q()},a),25)}function Q(a,b){a.z.remove();a.A.remove();b(a.o)};function R(a,b,c,d){this.c=b;this.w=c;this.R=0;this.ha=this.ca=n;this.N=d;this.k=a.k}R.prototype.watch=function(a,b,c,d){var e=a.length;if(0===e&&d)K(this.w);else{this.R+=e;d&&(this.ca=d);for(d=0;d=this.N?this.v[a]&&this.v[b]&&va[this.o.getName()]?Q(this,this.I):Q(this,this.aa):pa(this)};function wa(a,b,c){this.O=a?a:b+xa;this.s=[];this.U=[];this.ia=c||""}var xa="//fonts.googleapis.com/css";wa.prototype.f=function(){if(0==this.s.length)throw Error("No fonts to load !");if(-1!=this.O.indexOf("kit="))return this.O;for(var a=this.s.length,b=[],c=0;c