4 !function(a){"use strict";a.matchMedia=a.matchMedia||function(a){var b,c=a.docum
entElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.cre
ateElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top
:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHT
ML='­<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',c.insertBefo
re(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}}(a.document)}
(this),function(a){"use strict";function b(){u(!0)}var c={};a.respond=c,c.update
=function(){};var d=[],e=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c)
{b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}(),f=fun
ction(a,b){var c=e();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==
c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyStat
e&&c.send(null))};if(c.ajax=f,c.queue=d,c.regex={media:/@media[^\{]+\{([^\{\}]*\
{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}
]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,fi
ndStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\
([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\
s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},c.mediaQueriesSupported=a.matchMedia&&nu
ll!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesS
upported){var g,h,i,j=a.document,k=j.documentElement,l=[],m=[],n=[],o={},p=30,q=
j.getElementsByTagName("head")[0]||k,r=j.getElementsByTagName("base")[0],s=q.get
ElementsByTagName("link"),t=function(){var a,b=j.createElement("div"),c=j.body,d
=k.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:ab
solute;font-size:1em;width:1em",c||(c=f=j.createElement("body"),c.style.backgrou
nd="none"),k.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&k
.insertBefore(c,k.firstChild),a=b.offsetWidth,f?k.removeChild(c):c.removeChild(b
),k.style.fontSize=d,e&&(c.style.fontSize=e),a=i=parseFloat(a)},u=function(b){va
r c="clientWidth",d=k[c],e="CSS1Compat"===j.compatMode&&d||j.body[c]||d,f={},o=s
[s.length-1],r=(new Date).getTime();if(b&&g&&p>r-g)return a.clearTimeout(h),h=a.
setTimeout(u,p),void 0;g=r;for(var v in l)if(l.hasOwnProperty(v)){var w=l[v],x=w
.minw,y=w.maxw,z=null===x,A=null===y,B="em";x&&(x=parseFloat(x)*(x.indexOf(B)>-1
?i||t():1)),y&&(y=parseFloat(y)*(y.indexOf(B)>-1?i||t():1)),w.hasquery&&(z&&A||!
(z||e>=x)||!(A||y>=e))||(f[w.media]||(f[w.media]=[]),f[w.media].push(m[w.rules])
)}for(var C in n)n.hasOwnProperty(C)&&n[C]&&n[C].parentNode===q&&q.removeChild(n
[C]);n.length=0;for(var D in f)if(f.hasOwnProperty(D)){var E=j.createElement("st
yle"),F=f[D].join("\n");E.type="text/css",E.media=D,q.insertBefore(E,o.nextSibli
ng),E.styleSheet?E.styleSheet.cssText=F:E.appendChild(j.createTextNode(F)),n.pus
h(E)}},v=function(a,b,d){var e=a.replace(c.regex.keyframes,"").match(c.regex.med
ia),f=e&&e.length||0;b=b.substring(0,b.lastIndexOf("/"));var g=function(a){retur
n a.replace(c.regex.urls,"$1"+b+"$2$3")},h=!f&&d;b.length&&(b+="/"),h&&(f=1);for
(var i=0;f>i;i++){var j,k,n,o;h?(j=d,m.push(g(a))):(j=e[i].match(c.regex.findSty
les)&&RegExp.$1,m.push(RegExp.$2&&g(RegExp.$2))),n=j.split(","),o=n.length;for(v
ar p=0;o>p;p++)k=n[p],l.push({media:k.split("(")[0].match(c.regex.only)&&RegExp.
$2||"all",rules:m.length-1,hasquery:k.indexOf("(")>-1,minw:k.match(c.regex.minw)
&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:k.match(c.regex.maxw)&&parseFloat(R
egExp.$1)+(RegExp.$2||"")})}u()},w=function(){if(d.length){var b=d.shift();f(b.h
ref,function(c){v(c,b.href,b.media),o[b.href]=!0,a.setTimeout(function(){w()},0)
})}},x=function(){for(var b=0;b<s.length;b++){var c=s[b],e=c.href,f=c.media,g=c.
rel&&"stylesheet"===c.rel.toLowerCase();e&&g&&!o[e]&&(c.styleSheet&&c.styleSheet
.rawCssText?(v(c.styleSheet.rawCssText,e,f),o[e]=!0):(!/^([a-zA-Z:]*\/\/)/.test(
e)&&!r||e.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&("//"===e.subs
tring(0,2)&&(e=a.location.protocol+e),d.push({href:e,media:f})))}w()};x(),c.upda
te=x,c.getEmValue=t,a.addEventListener?a.addEventListener("resize",b,!1):a.attac
hEvent&&a.attachEvent("onresize",b)}}(this); | 4 !function(e){"use strict";e.matchMedia=e.matchMedia||function(e){var t,n=e.docum
entElement,a=n.firstElementChild||n.firstChild,s=e.createElement("body"),i=e.cre
ateElement("div");return i.id="mq-test-1",i.style.cssText="position:absolute;top
:-100em",s.style.background="none",s.appendChild(i),function(e){return i.innerHT
ML='­<style media="'+e+'"> #mq-test-1 { width: 42px; }</style>',n.insertBefo
re(s,a),t=42===i.offsetWidth,n.removeChild(s),{matches:t,media:e}}}(e.document)}
(this),function(e){"use strict";function t(){v(!0)}var n={};e.respond=n,n.update
=function(){};var a=[],s=function(){var t=!1;try{t=new e.XMLHttpRequest}catch(n)
{t=new e.ActiveXObject("Microsoft.XMLHTTP")}return function(){return t}}(),i=fun
ction(e,t){var n=s();n&&(n.open("GET",e,!0),n.onreadystatechange=function(){4!==
n.readyState||200!==n.status&&304!==n.status||t(n.responseText)},4!==n.readyStat
e&&n.send(null))};if(n.ajax=i,n.queue=a,n.regex={media:/@media[^\{]+\{([^\{\}]*\
{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}
]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,fi
ndStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\
([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\
s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},n.mediaQueriesSupported=e.matchMedia&&nu
ll!==e.matchMedia("only all")&&e.matchMedia("only all").matches,!n.mediaQueriesS
upported){var r,o,l,m=e.document,d=m.documentElement,h=[],u=[],c=[],f={},p=m.get
ElementsByTagName("head")[0]||d,y=m.getElementsByTagName("base")[0],g=p.getEleme
ntsByTagName("link"),x=function(){var e,t=m.createElement("div"),n=m.body,a=d.st
yle.fontSize,s=n&&n.style.fontSize,i=!1;return t.style.cssText="position:absolut
e;font-size:1em;width:1em",n||(n=i=m.createElement("body"),n.style.background="n
one"),d.style.fontSize="100%",n.style.fontSize="100%",n.appendChild(t),i&&d.inse
rtBefore(n,d.firstChild),e=t.offsetWidth,i?d.removeChild(n):n.removeChild(t),d.s
tyle.fontSize=a,s&&(n.style.fontSize=s),e=l=parseFloat(e)},v=function(t){var n="
clientWidth",a=d[n],s="CSS1Compat"===m.compatMode&&a||m.body[n]||a,i={},f=g[g.le
ngth-1],y=(new Date).getTime();if(t&&r&&30>y-r)return e.clearTimeout(o),void(o=e
.setTimeout(v,30));r=y;for(var E in h)if(h.hasOwnProperty(E)){var w=h[E],S=w.min
w,T=w.maxw,C=null===S,b=null===T;S&&(S=parseFloat(S)*(S.indexOf("em")>-1?l||x():
1)),T&&(T=parseFloat(T)*(T.indexOf("em")>-1?l||x():1)),w.hasquery&&(C&&b||!(C||s
>=S)||!(b||T>=s))||(i[w.media]||(i[w.media]=[]),i[w.media].push(u[w.rules]))}for
(var $ in c)c.hasOwnProperty($)&&c[$]&&c[$].parentNode===p&&p.removeChild(c[$]);
c.length=0;for(var z in i)if(i.hasOwnProperty(z)){var M=m.createElement("style")
,R=i[z].join("\n");M.type="text/css",M.media=z,p.insertBefore(M,f.nextSibling),M
.styleSheet?M.styleSheet.cssText=R:M.appendChild(m.createTextNode(R)),c.push(M)}
},E=function(e,t,a){var s=e.replace(n.regex.keyframes,"").match(n.regex.media),i
=s&&s.length||0;t=t.substring(0,t.lastIndexOf("/"));var r=function(e){return e.r
eplace(n.regex.urls,"$1"+t+"$2$3")},o=!i&&a;t.length&&(t+="/"),o&&(i=1);for(var
l=0;i>l;l++){var m,d,c,f;o?(m=a,u.push(r(e))):(m=s[l].match(n.regex.findStyles)&
&RegExp.$1,u.push(RegExp.$2&&r(RegExp.$2))),c=m.split(","),f=c.length;for(var p=
0;f>p;p++)d=c[p],h.push({media:d.split("(")[0].match(n.regex.only)&&RegExp.$2||"
all",rules:u.length-1,hasquery:d.indexOf("(")>-1,minw:d.match(n.regex.minw)&&par
seFloat(RegExp.$1)+(RegExp.$2||""),maxw:d.match(n.regex.maxw)&&parseFloat(RegExp
.$1)+(RegExp.$2||"")})}v()},w=function(){if(a.length){var t=a.shift();i(t.href,f
unction(n){E(n,t.href,t.media),f[t.href]=!0,e.setTimeout(function(){w()},0)})}},
S=function(){for(var t=0;t<g.length;t++){var n=g[t],s=n.href,i=n.media,r=n.rel&&
"stylesheet"===n.rel.toLowerCase();s&&r&&!f[s]&&(n.styleSheet&&n.styleSheet.rawC
ssText?(E(n.styleSheet.rawCssText,s,i),f[s]=!0):(!/^([a-zA-Z:]*\/\/)/.test(s)&&!
y||s.replace(RegExp.$1,"").split("/")[0]===e.location.host)&&("//"===s.substring
(0,2)&&(s=e.location.protocol+s),a.push({href:s,media:i})))}w()};S(),n.update=S,
n.getEmValue=x,e.addEventListener?e.addEventListener("resize",t,!1):e.attachEven
t&&e.attachEvent("onresize",t)}}(this); |