vendor: 12,208 bytes, line 1
1var Holder=Holder||{};!function(a,b){function l(a,b,c){b=parseInt(b,10),a=parseInt(a,10);var d=Math.max(b,a),e=Math.min(b,a),f=1/12,g=Math.min(.75*e,.75*d*f);return{height:Math.round(Math.max(c.size,g))}}function n(a){var b=[];for(p in a)a.hasOwnProperty(p)&&b.push(p+":"+a[p]);return b.join(";")}function o(a){var b=a.ctx,c=a.dimensions,d=a.template,e=a.ratio,f=a.holder,g="literal"==f.textmode,h="exact"==f.textmode,i=l(c.width,c.height,d),j=i.height,k=c.width*e,m=c.height*e,n=d.font?d.font:"Arial,Helvetica,sans-serif";canvas.width=k,canvas.height=m,b.textAlign="center",b.textBaseline="middle",b.fillStyle=d.background,b.fillRect(0,0,k,m),b.fillStyle=d.foreground,b.font="bold "+j+"px "+n;var o=d.text?d.text:Math.floor(c.width)+"x"+Math.floor(c.height);if(g){var c=f.dimensions;o=c.width+"x"+c.height}else if(h&&f.exact_dimensions){var c=f.exact_dimensions;o=Math.floor(c.width)+"x"+Math.floor(c.height)}var p=b.measureText(o).width;return p/k>=.75&&(j=Math.floor(.75*j*(k/p))),b.font="bold "+j*e+"px "+n,b.fillText(o,k/2,m/2,k),canvas.toDataURL("image/png")}function q(a){var b=a.dimensions,c=a.template,d=a.holder,e="literal"==d.textmode,f="exact"==d.textmode,g=l(b.width,b.height,c),h=g.height,i=b.width,j=b.height,k=c.font?c.font:"Arial,Helvetica,sans-serif",n=c.text?c.text:Math.floor(b.width)+"x"+Math.floor(b.height);if(e){var b=d.dimensions;n=b.width+"x"+b.height}else if(f&&d.exact_dimensions){var b=d.exact_dimensions;n=Math.floor(b.width)+"x"+Math.floor(b.height)}var o=m({text:n,width:i,height:j,text_height:h,font:k,template:c});return"data:image/svg+xml;base64,"+btoa(o)}function r(a){return d.use_canvas&&!d.use_svg?o(a):q(a)}function s(a,b,c,e){var f=c.dimensions,g=c.theme,k=c.text?decodeURIComponent(c.text):c.text,l=f.width+"x"+f.height;g=k?A(g,{text:k}):g,g=c.font?A(g,{font:c.font}):g,b.setAttribute("data-src",e),c.theme=g,b.holder_data=c,"image"==a?(b.setAttribute("alt",k?k:g.text?g.text+" ["+l+"]":l),(d.use_fallback||!c.auto)&&(b.style.width=f.width+"px",b.style.height=f.height+"px"),d.use_fallback?b.style.backgroundColor=g.background:(b.setAttribute("src",r({ctx:i,dimensions:f,template:g,ratio:j,holder:c})),c.textmode&&"exact"==c.textmode&&(h.push(b),v(b)))):"background"==a?d.use_fallback||(b.style.backgroundImage="url("+r({ctx:i,dimensions:f,template:g,ratio:j,holder:c})+")",b.style.backgroundSize=f.width+"px "+f.height+"px"):"fluid"==a&&(b.setAttribute("alt",k?k:g.text?g.text+" ["+l+"]":l),"%"==f.height.slice(-1)?b.style.height=f.height:null!=c.auto&&c.auto||(b.style.height=f.height+"px"),"%"==f.width.slice(-1)?b.style.width=f.width:null!=c.auto&&c.auto||(b.style.width=f.width+"px"),("inline"==b.style.display||""===b.style.display||"none"==b.style.display)&&(b.style.display="block"),u(b),d.use_fallback?b.style.backgroundColor=g.background:(h.push(b),v(b)))}function t(a,b){var c={height:a.clientHeight,width:a.clientWidth};return c.height||c.width?(a.removeAttribute("data-holder-invisible"),c):(a.setAttribute("data-holder-invisible",!0),b.call(this,a),void 0)}function u(b){if(b.holder_data){var c=t(b,a.invisible_error_fn(u));if(c){var d=b.holder_data;d.initial_dimensions=c,d.fluid_data={fluid_height:"%"==d.dimensions.height.slice(-1),fluid_width:"%"==d.dimensions.width.slice(-1),mode:null},d.fluid_data.fluid_width&&!d.fluid_data.fluid_height?(d.fluid_data.mode="width",d.fluid_data.ratio=d.initial_dimensions.width/parseFloat(d.dimensions.height)):!d.fluid_data.fluid_width&&d.fluid_data.fluid_height&&(d.fluid_data.mode="height",d.fluid_data.ratio=parseFloat(d.dimensions.width)/d.initial_dimensions.height)}}}function v(b){var c;c=null==b.nodeType?h:[b];for(var d in c)if(c.hasOwnProperty(d)){var e=c[d];if(e.holder_data){var f=e.holder_data,g=t(e,a.invisible_error_fn(v));if(g){if(f.fluid){if(f.auto)switch(f.fluid_data.mode){case"width":g.height=g.width/f.fluid_data.ratio;break;case"height":g.width=g.height*f.fluid_data.ratio}e.setAttribute("src",r({ctx:i,dimensions:g,template:f.theme,ratio:j,holder:f}))}f.textmode&&"exact"==f.textmode&&(f.exact_dimensions=g,e.setAttribute("src",r({ctx:i,dimensions:f.dimensions,template:f.theme,ratio:j,holder:f})))}}}}function w(b,c){for(var d={theme:A(k.themes.gray,{})},e=!1,f=b.length,g=0;f>g;g++){var h=b[g];a.flags.dimensions.match(h)?(e=!0,d.dimensions=a.flags.dimensions.output(h)):a.flags.fluid.match(h)?(e=!0,d.dimensions=a.flags.fluid.output(h),d.fluid=!0):a.flags.textmode.match(h)?d.textmode=a.flags.textmode.output(h):a.flags.colors.match(h)?d.theme=a.flags.colors.output(h):c.themes[h]?c.themes.hasOwnProperty(h)&&(d.theme=A(c.themes[h],{})):a.flags.font.match(h)?d.font=a.flags.font.output(h):a.flags.auto.match(h)?d.auto=!0:a.flags.text.match(h)&&(d.text=a.flags.text.output(h))}return e?d:!1}function y(a,b){var c="complete",d="readystatechange",e=!1,f=e,g=!0,h=a.document,i=h.documentElement,j=h.addEventListener?"addEventListener":"attachEvent",k=h.addEventListener?"removeEventListener":"detachEvent",l=h.addEventListener?"":"on",m=function(g){(g.type!=d||h.readyState==c)&&(("load"==g.type?a:h)[k](l+g.type,m,e),!f&&(f=!0)&&b.call(a,null))},n=function(){try{i.doScroll("left")}catch(a){return setTimeout(n,50),void 0}m("poll")};if(h.readyState==c)b.call(a,"lazy");else{if(h.createEventObject&&i.doScroll){try{g=!a.frameElement}catch(o){}g&&n()}h[j](l+"DOMContentLoaded",m,e),h[j](l+d,m,e),a[j](l+"load",m,e)}}function z(a,b){var a=a.match(/^(\W)?(.*)/),b=b||document,c=b["getElement"+(a[1]?"#"==a[1]?"ById":"sByClassName":"sByTagName")],d=c.call(b,a[2]),e=[];return null!==d&&(e=d.length||0===d.length?d:[d]),e}function A(a,b){var c={};for(var d in a)a.hasOwnProperty(d)&&(c[d]=a[d]);for(var d in b)b.hasOwnProperty(d)&&(c[d]=b[d]);return c}var c={use_svg:!1,use_canvas:!1,use_fallback:!1},d={},e=!1;canvas=document.createElement("canvas");var f=1,g=1,h=[];if(canvas.getContext)if(canvas.toDataURL("image/png").indexOf("data:image/png")<0)c.use_fallback=!0;else var i=canvas.getContext("2d");else c.use_fallback=!0;document.createElementNS&&document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect&&(c.use_svg=!0,c.use_canvas=!1),c.use_fallback||(f=window.devicePixelRatio||1,g=i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1);var j=f/g,k={domain:"holder.js",images:"img",bgnodes:".holderjs",themes:{gray:{background:"#eee",foreground:"#aaa",size:12},social:{background:"#3a5a97",foreground:"#fff",size:12},industrial:{background:"#434A52",foreground:"#C2F200",size:12},sky:{background:"#0D8FDB",foreground:"#fff",size:12},vine:{background:"#39DBAC",foreground:"#1E292C",size:12},lava:{background:"#F8591A",foreground:"#1C2846",size:12}},stylesheet:""};a.flags={dimensions:{regex:/^(\d+)x(\d+)$/,output:function(a){var b=this.regex.exec(a);return{width:+b[1],height:+b[2]}}},fluid:{regex:/^([0-9%]+)x([0-9%]+)$/,output:function(a){var b=this.regex.exec(a);return{width:b[1],height:b[2]}}},colors:{regex:/#([0-9a-f]{3,})\:#([0-9a-f]{3,})/i,output:function(a){var b=this.regex.exec(a);return{size:k.themes.gray.size,foreground:"#"+b[2],background:"#"+b[1]}}},text:{regex:/text\:(.*)/,output:function(a){return this.regex.exec(a)[1]}},font:{regex:/font\:(.*)/,output:function(a){return this.regex.exec(a)[1]}},auto:{regex:/^auto$/},textmode:{regex:/textmode\:(.*)/,output:function(a){return this.regex.exec(a)[1]}}};var m=function(){if(window.XMLSerializer){var a=new XMLSerializer,b="http://www.w3.org/2000/svg",c=document.createElementNS(b,"svg");c.webkitMatchesSelector&&c.setAttribute("xmlns","http://www.w3.org/2000/svg");var d=document.createElementNS(b,"rect"),e=document.createElementNS(b,"text"),f=document.createTextNode(null);return e.setAttribute("text-anchor","middle"),e.appendChild(f),c.appendChild(d),c.appendChild(e),function(b){return c.setAttribute("width",b.width),c.setAttribute("height",b.height),d.setAttribute("width",b.width),d.setAttribute("height",b.height),d.setAttribute("fill",b.template.background),e.setAttribute("x",b.width/2),e.setAttribute("y",b.height/2),f.nodeValue=b.text,e.setAttribute("style",n({fill:b.template.foreground,"font-weight":"bold","font-size":b.text_height+"px","font-family":b.font,"dominant-baseline":"central"})),a.serializeToString(c)}}}();for(var x in a.flags)a.flags.hasOwnProperty(x)&&(a.flags[x].match=function(a){return a.match(this.regex)});a.invisible_error_fn=function(){return function(a){if(a.hasAttribute("data-holder-invisible"))throw new Error("Holder: invisible placeholder")}},a.add_theme=function(b,c){return null!=b&&null!=c&&(k.themes[b]=c),a},a.add_image=function(b,c){var d=z(c);if(d.length)for(var e=0,f=d.length;f>e;e++){var g=document.createElement("img");g.setAttribute("data-src",b),d[e].appendChild(g)}return a},a.run=function(b){d=A({},c),e=!0;var f=A(k,b),g=[],h=[],i=[];for(null!=f.use_canvas&&f.use_canvas&&(d.use_canvas=!0,d.use_svg=!1),"string"==typeof f.images?h=z(f.images):window.NodeList&&f.images instanceof window.NodeList?h=f.images:window.Node&&f.images instanceof window.Node?h=[f.images]:window.HTMLCollection&&f.images instanceof window.HTMLCollection&&(h=f.images),"string"==typeof f.bgnodes?i=z(f.bgnodes):window.NodeList&&f.elements instanceof window.NodeList?i=f.bgnodes:window.Node&&f.bgnodes instanceof window.Node&&(i=[f.bgnodes]),n=0,m=h.length;m>n;n++)g.push(h[n]);var j=document.getElementById("holderjs-style");j||(j=document.createElement("style"),j.setAttribute("id","holderjs-style"),j.type="text/css",document.getElementsByTagName("head")[0].appendChild(j)),f.nocss||(j.styleSheet?j.styleSheet.cssText+=f.stylesheet:j.appendChild(document.createTextNode(f.stylesheet)));for(var l=new RegExp(f.domain+'/(.*?)"?\\)'),m=i.length,n=0;m>n;n++){var o=window.getComputedStyle(i[n],null).getPropertyValue("background-image"),p=o.match(l),q=i[n].getAttribute("data-background-src");if(p){var r=w(p[1].split("/"),f);r&&s("background",i[n],r,o)}else if(null!=q){var r=w(q.substr(q.lastIndexOf(f.domain)+f.domain.length+1).split("/"),f);r&&s("background",i[n],r,o)}}for(m=g.length,n=0;m>n;n++){var t,u;u=t=o=null;try{u=g[n].getAttribute("src"),attr_datasrc=g[n].getAttribute("data-src")}catch(v){}if(null==attr_datasrc&&u&&u.indexOf(f.domain)>=0?o=u:attr_datasrc&&attr_datasrc.indexOf(f.domain)>=0&&(o=attr_datasrc),o){var r=w(o.substr(o.lastIndexOf(f.domain)+f.domain.length+1).split("/"),f);r&&(r.fluid?s("fluid",g[n],r,o):s("image",g[n],r,o))}}return a},y(b,function(){window.addEventListener?(window.addEventListener("resize",v,!1),window.addEventListener("orientationchange",v,!1)):window.attachEvent("onresize",v),e||a.run({})}),"function"==typeof define&&define.amd&&define([],function(){return a}),function(){function a(a){this.message=a}var b="undefined"!=typeof exports?exports:this,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a.prototype=Error(),a.prototype.name="InvalidCharacterError",b.btoa||(b.btoa=function(b){for(var d,e,f=0,g=c,h="";b.charAt(0|f)||(g="=",f%1);h+=g.charAt(63&d>>8-8*(f%1))){if(e=b.charCodeAt(f+=.75),e>255)throw new a("'btoa' failed");d=d<<8|e}return h}),b.atob||(b.atob=function(b){if(b=b.replace(/=+$/,""),1==b.length%4)throw new a("'atob' failed");for(var d,e,f=0,g=0,h="";e=b.charAt(g++);~e&&(d=f%4?64*d+e:e,f++%4)?h+=String.fromCharCode(255&d>>(6&-2*f)):0)e=c.indexOf(e);return h})}(),document.getElementsByClassName||(document.getElementsByClassName=function(a){var c,d,e,b=document,f=[];if(b.querySelectorAll)return b.querySelectorAll("."+a);if(b.evaluate)for(d=".//*[contains(concat(' ', @class, ' '), ' "+a+" ')]",c=b.evaluate(d,b,null,0,null);e=c.iterateNext();)f.push(e);else for(c=b.getElementsByTagName("*"),d=new RegExp("(^|\\s)"+a+"(\\s|$)"),e=0;e<c.length;e++)d.test(c[e].className)&&f.push(c[e]);return f}),window.getComputedStyle||(window.getComputedStyle=function(a){return this.el=a,this.getPropertyValue=function(b){var c=/(\-([a-z]){1})/g;return"float"==b&&(b="styleFloat"),c.test(b)&&(b=b.replace(c,function(){return arguments[2].toUpperCase()})),a.currentStyle[b]?a.currentStyle[b]:null},this}),Object.prototype.hasOwnProperty||(Object.prototype.hasOwnProperty=function(a){var b=this.__proto__||this.constructor.prototype;return a in this&&(!(a in b)||b[a]!==this[a])})}(Holder,window);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.