PageSourceSearch

https://www.josephkahn.com/js/imgix.min.js

js josephkahn.com collected 2026-10-02 11:08:23 UTC 37,074 bytes, 4 lines download raw bytes

1/*! http://www.imgix.com imgix.js - v1.1.2 - 2015-06-11 */
2
3(function(){function a(){Object.freeze||(Object.freeze=function(a){return a}),function(a){for(var b,c,d={},e=function(){},f="memory".split(","),g="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");b=f.pop();)a[b]=a[b]||d;for(;c=g.pop();)a[c]=a[c]||e}(window.console||{}),Function.prototype.bind||(Function.prototype.bind=function(a){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var b=Array.prototype.slice.call(arguments,1),c=this,d=function(){},e=function(){return c.apply(this instanceof d&&a?this:a,b.concat(Array.prototype.slice.call(arguments)))};return d.prototype=this.prototype,e.prototype=new d,e}),Array.prototype.filter||(Array.prototype.filter=function(a){if(void 0===this||null===this)throw new TypeError;var b=Object(this),c=b.length>>>0;if("function"!=typeof a)throw new TypeError;for(var d=[],e=arguments.length>=2?arguments[1]:void 0,f=0;c>f;f++)if(f in b){var g=b[f];a.call(e,g,f,b)&&d.push(g)}return d}),Array.prototype.map||(Array.prototype.map=function(a,b){var c,d,e;if(null==this)throw new TypeError(" this is null or not defined");var f=Object(this),g=f.length>>>0;if("function"!=typeof a)throw new TypeError(a+" is not a function");for(arguments.length>1&&(c=b),d=new Array(g),e=0;g>e;){var h,i;e in f&&(h=f[e],i=a.call(c,h,e,f),d[e]=i),e++}return d}),document.querySelectorAll||(document.querySelectorAll=function(a){var b,c=document.createElement("style"),d=[];for(document.documentElement.firstChild.appendChild(c),document._qsa=[],c.styleSheet.cssText=a+"{x-qsa:expression(document._qsa && document._qsa.push(this))}",window.scrollBy(0,0),c.parentNode.removeChild(c);document._qsa.length;)b=document._qsa.shift(),b.style.removeAttribute("x-qsa"),d.push(b);return document._qsa=null,d}),document.querySelector||(document.querySelector=function(a){var b=document.querySelectorAll(a);return b.length?b[0]:null}),Array.prototype.indexOf||(Array.prototype.indexOf=function(a){for(var b=0;b<this.length;b++)if(this[b]===a)return b;return-1}),Array.isArray||(Array.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)}),Object.keys||(Object.keys=function(){var a=Object.prototype.hasOwnProperty,b=!{toString:null}.propertyIsEnumerable("toString"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=c.length;return function(e){if("object"!=typeof e&&("function"!=typeof e||null===e))throw new TypeError("Object.keys called on non-object");var f,g,h=[];for(f in e)a.call(e,f)&&h.push(f);if(b)for(g=0;d>g;g++)a.call(e,c[g])&&h.push(c[g]);return h}}()),!("getComputedStyle"in window)&&(window.getComputedStyle=function(){function a(b,c,d,e){var f,g=c[d],h=parseFloat(g),i=g.split(/\d/)[0];return e=null!=e?e:/%|em/.test(i)&&b.parentElement?a(b.parentElement,b.parentElement.currentStyle,"fontSize",null):16,f="fontSize"==d?e:/width/i.test(d)?b.clientWidth:b.clientHeight,"em"==i?h*e:"in"==i?96*h:"pt"==i?96*h/72:"%"==i?h/100*f:h}function b(a,b){var c="border"==b?"Width":"",d=b+"Top"+c,e=b+"Right"+c,f=b+"Bottom"+c,g=b+"Left"+c;a[b]=(a[d]==a[e]==a[f]==a[g]?[a[d]]:a[d]==a[f]&&a[g]==a[e]?[a[d],a[e]]:a[g]==a[e]?[a[d],a[e],a[f]]:[a[d],a[e],a[f],a[g]]).join(" ")}function c(c){var d=c.currentStyle,e=this,f=a(c,d,"fontSize",null);for(property in d)/width|height|margin.|padding.|border.+W/.test(property)&&"auto"!==e[property]?e[property]=a(c,d,property,f)+"px":"styleFloat"===property?e["float"]=d[property]:e[property]=d[property];return b(e,"margin"),b(e,"padding"),b(e,"border"),e.fontSize=f+"px",e}function d(a){return new c(a)}return c.prototype={constructor:c,getPropertyPriority:function(){},getPropertyValue:function(a){return this[a]||""},item:function(){},removeProperty:function(){},setProperty:function(){},getPropertyCSSValue:function(){}},d}(window)),function(){function a(a,b){return function(){a.apply(b,arguments)}}function b(b){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof b)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],h(b,a(d,this),a(e,this))}function c(a){var b=this;return null===this._state?void this._deferreds.push(a):void j(function(){var c=b._state?a.onFulfilled:a.onRejected;if(null===c)return void(b._state?a.resolve:a.reject)(b._value);var d;try{d=c(b._value)}catch(e){return void a.reject(e)}
3a.resolve(d)})}function d(b){try{if(b===this)throw new TypeError("A promise cannot be resolved with itself.");if(b&&("object"==typeof b||"function"==typeof b)){var c=b.then;if("function"==typeof c)return void h(a(c,b),a(d,this),a(e,this))}this._state=!0,this._value=b,f.call(this)}catch(g){e.call(this,g)}}function e(a){this._state=!1,this._value=a,f.call(this)}function f(){for(var a=0,b=this._deferreds.length;b>a;a++)c.call(this,this._deferreds[a]);this._deferreds=null}function g(a,b,c,d){this.onFulfilled="function"==typeof a?a:null,this.onRejected="function"==typeof b?b:null,this.resolve=c,this.reject=d}function h(a,b,c){var d=!1;try{a(function(a){d||(d=!0,b(a))},function(a){d||(d=!0,c(a))})}catch(e){if(d)return;d=!0,c(e)}}var i;i="object"==typeof window&&window?window:global,"undefined"!=typeof module&&module.exports?module.exports=i.Promise?i.Promise:b:i.Promise||(i.Promise=b);var j=i.setImmediate||function(a){setTimeout(a,1)},k=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};b.prototype["catch"]=function(a){return this.then(null,a)},b.prototype.then=function(a,d){var e=this;return new b(function(b,f){c.call(e,new g(a,d,b,f))})},b.all=function(){var a=Array.prototype.slice.call(1===arguments.length&&k(arguments[0])?arguments[0]:arguments);return new b(function(b,c){function d(f,g){try{if(g&&("object"==typeof g||"function"==typeof g)){var h=g.then;if("function"==typeof h)return void h.call(g,function(a){d(f,a)},c)}a[f]=g,0===--e&&b(a)}catch(i){c(i)}}if(0===a.length)return b([]);for(var e=a.length,f=0;f<a.length;f++)d(f,a[f])})},b.resolve=function(a){return a&&"object"==typeof a&&a.constructor===b?a:new b(function(b){b(a)})},b.reject=function(a){return new b(function(b,c){c(a)})},b.race=function(a){return new b(function(b,c){for(var d=0,e=a.length;e>d;d++)a[d].then(b,c)})}}()}function b(){return h}"undefined"!=typeof window&&a();var c=this,d={version:"1.1.2"};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=d),exports.imgix=d):c.imgix=d;var e="imgix-usable";d.helpers={debouncer:function(a,b){var c;return function(){var d=this,e=arguments,f=function(){c=null,a.apply(d,e)};window.clearTimeout(c),c=window.setTimeout(f,b)}},throttler:function(a,b){var c;return function(){var d,e=this,f=arguments;c||(d=function(){c=null,a.apply(e,f)},c=window.setTimeout(d,b))}},urlParser:function(){function a(a){return!isNaN(parseFloat(a))&&isFinite(a)}return function(b,c){var d=c||window.location.toString();if(!b)return d;b=b.toString(),"//"===d.substring(0,2)?d="http:"+d:1===d.split("://").length&&(d="http://"+d),c=d.split("/");var e={auth:""},f=c[2].split("@");1===f.length?f=f[0].split(":"):(e.auth=f[0],f=f[1].split(":")),e.protocol=c[0],e.hostname=f[0],e.port=f[1]||("https"===e.protocol.split(":")[0].toLowerCase()?"443":"80"),e.pathname=(c.length>3?"/":"")+c.slice(3,c.length).join("/").split("?")[0].split("#")[0];var g=e.pathname;"/"===g.charAt(g.length-1)&&(g=g.substring(0,g.length-1));var h=e.hostname,i=h.split("."),j=g.split("/");if("hostname"===b)return h;if("domain"===b)return/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/.test(h)?h:i.slice(-2).join(".");if("sub"===b)return i.slice(0,i.length-2).join(".");if("port"===b)return e.port;if("protocol"===b)return e.protocol.split(":")[0];if("auth"===b)return e.auth;if("user"===b)return e.auth.split(":")[0];if("pass"===b)return e.auth.split(":")[1]||"";if("path"===b)return e.pathname;if("."===b.charAt(0)){if(b=b.substring(1),a(b))return b=parseInt(b,10),i[0>b?i.length+b:b-1]||""}else{if(a(b))return b=parseInt(b,10),j[0>b?j.length+b:b]||"";if("file"===b)return j.slice(-1)[0];if("filename"===b)return j.slice(-1)[0].split(".")[0];if("fileext"===b)return j.slice(-1)[0].split(".")[1]||"";if("?"===b.charAt(0)||"#"===b.charAt(0)){var k=d,l=null;if("?"===b.charAt(0)?k=(k.split("?")[1]||"").split("#")[0]:"#"===b.charAt(0)&&(k=k.split("#")[1]||""),!b.charAt(1))return k;b=b.substring(1),k=k.split("&");for(var m=0,n=k.length;n>m;m++)if(l=k[m].split("="),l[0]===b)return l[1]||"";return null}}return""}}(),mergeObject:function(){for(var a,b={},c=0,d=arguments.length;d>c;c++)for(a in arguments[c])arguments[c].hasOwnProperty(a)&&(b[a]=arguments[c][a]);return b},pixelRound:function(a,b){return Math.ceil(a/b)*b},isNumber:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},getZoom:function(){var a,b="http://www.w3.org/2000/svg",c=1;return document.createElementNS&&(a=document.createElementNS(b,"svg"),a.setAttribute("xmlns",b),a.setAttribute("version","1.1"),document.body.appendChild(a),c=a.currentScale||1,document.body.removeChild(a)),c},getDPR:function(){var a=window.devicePixelRatio?window.devicePixelRatio:1;if(a%1!==0){var b=a.toString();b=b.split(".")[1],a=b.length>1&&"0"!==b.slice(1,2)?a.toFixed(2):a.toFixed(1)}return a},getWindowWidth:function(){return Math.max(document.documentElement.clientWidth,window.innerWidth||0)||1024},getWindowHeight:function(){return Math.max(document.documentElement.clientHeight,window.innerHeight||0)||768},getImgSrc:function(a){return a.getAttribute("data-src")||a.getAttribute("src")},calculateElementSize:function(a){var b={width:a.offsetWidth,height:a.offsetHeight};if(null===a.parentNode||a===document.body)return b.width=this.getWindowWidth(),b.height=this.getWindowHeight(),b;if(0!==b.width||0!==b.height)return a.alt&&!a.fluid?(a.fluid=!0,this.calculateElementSize(a.parentNode)):b;var c,d,e={},f={position:"absolute",visibility:"hidden",display:"block"};
3for(d in f)f.hasOwnProperty(d)&&(e[d]=a.style[d],a.style[d]=f[d]);c={width:a.offsetWidth,height:a.offsetHeight};for(d in f)f.hasOwnProperty(d)&&(a.style[d]=e[d]);return 0===c.width||0===c.height?this.calculateElementSize(a.parentNode):c},isReallyObject:function(a){return a&&"object"==typeof a&&"[object Object]"===a.toString()},isFluidSet:function(a){return a&&"object"==typeof a&&"[object FluidSet]"===a.toString()},extractInt:function(a){return void 0===a?0:"number"==typeof a?a:parseInt(a.replace(/\D/g,""),10)||0},camelize:function(a){return a.replace(/[-_\s]+(.)?/g,function(a,b){return b?b.toUpperCase():""})},getElementCssProperty:function(a,b){return window.getComputedStyle?window.getComputedStyle(a,null).getPropertyValue(b):a&&a.style&&b?a.style[this.camelize(b)]:""},matchesSelector:function(a,b){var c=(a.parentNode||document).querySelectorAll(b);return Array.prototype.slice.call(c).indexOf(a)>-1}},d.getElementByXPathClassName=function(a){return document.querySelector("."+d.getXPathClass(a))},d.getElementImageByXPathClassName=function(a){return d.getElementImage(d.getElementByXPathClassName(a))},d.isImageElement=function(a){return a&&a.tagName&&"img"===a.tagName.toLowerCase()},d.setElementImageAfterLoad=function(a,b,c){var e=new Image;e.onload=function(){d.setElementImage(a,b),"function"==typeof c&&c(a,b)},e.src=b},d.setElementImage=function(a,b){if(!a)return!1;if(d.isImageElement(a))return a.src!==b&&(a.src=b),!0;var c=d.getBackgroundImage(a);return c!==b?c?(a.style.cssText=a.style.cssText.replace(c,b),!0):(document.addEventListener?a.style.backgroundImage="url("+b+")":a.style.cssText="background-image:url("+b+")",!0):!1},d.getEmptyImage=function(){return d.versionifyUrl("https://assets.imgix.net/pixel.gif")},d.getElementImage=function(a){return d.isImageElement(a)?a.src:d.getBackgroundImage(a)},d.getRawBackgroundImage=function(a){return a.style.cssText.match(/url\(([^\)]+)/)},d.getBackgroundImage=function(a){var b=d.getRawBackgroundImage(a);return b&&2===b.length?b[1]:""},d.getColorBrightness=function(a){if(!a)return 0;"#"===a.slice(0,1)&&(a=d.hexToRGB(a));var b=a.replace(/[^0-9,]+/g,"").split(","),c=parseInt(b[0],10),e=parseInt(b[1],10),f=parseInt(b[2],10);return Math.sqrt(c*c*.241+e*e*.691+f*f*.068)},d.applyAlphaToRGB=function(a,b){var c="rgba"!==a.slice(0,4),d=a.split(",");return d=d.map(function(a){return parseInt(a.replace(/\D/g,""),10)}),c?d.push(b):4===d.length&&(d[3]=b),"rgba("+d.join(", ")+")"},d.hexToRGB=function(a){function b(a){return(a+a).toString()}if(a)if("#"===a.slice(0,1))a=a.slice(1,a.length);else if("rgb"===a.slice(0,3))return a;var c=0,d=0,e=0;return 3===a.length?(c=parseInt(b(a.slice(0,1)),16),d=parseInt(b(a.slice(1,2)),16),e=parseInt(b(a.slice(2,3)),16)):6===a.length?(c=parseInt(a.slice(0,2),16),d=parseInt(a.slice(2,4),16),e=parseInt(a.slice(4,6),16)):console.warn("invalid hex color:",a),"rgb("+c+", "+d+", "+e+")"},d.getElementsWithImages=function(){return d.markElementsWithImages(),document.querySelectorAll("."+e)},d.hasImage=function(a){var b=a.style.cssText?a.style.cssText.toLowerCase():a.style.cssText;return a&&(d.isImageElement(a)||-1!==b.indexOf("background-image"))},d.markElementsWithImages=function(){for(var a=document.getElementsByTagName("*"),b=0,c=a.length;c>b;b++)d.hasImage(a[b])&&d.setImgixClass(a[b])},d.hasClass=function(a,b){return(" "+a.className+" ").indexOf(" "+b+" ")>-1},d.setImgixClass=function(a){if(d.hasClass(a,e))return d.getImgixClass(a);var b=d.getXPathClass(d.getElementTreeXPath(a));return a.classList.add(b),a.classList.add(e),d.getImgixClass(a)},d.getImgixClass=function(a){return d.hasClass(a,e)?a.className.match(/imgix-el-[^\s]+/)[0]:void 0},d.getXPathClass=function(a){var b;return b=a?d.hashCode(a):(new Date).getTime().toString(36),"imgix-el-"+b},d.rgbToHex=function(a){var b=a.split(",");return b=b.map(function(a){return d.componentToHex(parseInt(a.replace(/\D/g,"")))}),b.join("")},d.componentToHex=function(a){var b=a.toString(16);return 1===b.length?"0"+b:b},d.getElementTreeXPath=function(a){for(var b=[];a&&a.nodeType===Node.ELEMENT_NODE;a=a.parentNode){for(var c=0,d=a.previousSibling;d;d=d.previousSibling)d.nodeType!==Node.DOCUMENT_TYPE_NODE&&d.nodeName===a.nodeName&&++c;var e=(a.prefix?a.prefix+":":"")+a.localName,f=c?"["+(c+1)+"]":"";b.splice(0,0,e+f)}return b.length?"/"+b.join("/"):null},d.getFontLookup=function(){return{"American Typewriter":"American Typewriter","American Typewriter Bold":"American Typewriter,bold","American Typewriter Condensed":"American Typewriter Condensed","American Typewriter Condensed Bold":"American Typewriter Condensed,bold","American Typewriter Condensed Light":"American Typewriter Condensed Light","American Typewriter Light":"American Typewriter Light","Andale Mono":"Andale Mono",Arial:"Arial","Arial Black":"Arial Black","Arial Bold":"Arial,bold","Arial Bold Italic":"Arial,bold,italic","Arial Italic":"Arial,italic",Baskerville:"Baskerville","Big Caslon":"Big Caslon","Brush Script MT":"Brush Script MT",Cochin:"Cochin",Copperplate:"Copperplate",Courier:"Courier","Courier Bold":"Courier,bold","Courier Oblique":"Courier Oblique",Didot:"Didot",Futura:"Futura","Futura Condensed":"Futura Condensed Medium","Futura Italic":"Futura Medium,italic",Georgia:"Georgia","Georgia Bold":"Georgia,bold","Georgia Bold Italic":"Georgia,bold,italic","Georgia Italic":"Georgia,italic","Gill Sans":"Gill Sans","Gill Sans Bold":"Gill Sans,bold","Gill Sans Bold Italic":"Gill Sans,bold,italic","Gill Sans Italic":"Gill Sans,italic","Gill Sans Light":"Gill Sans Light","Gill Sans Light Ital
3ic":"Gill Sans Light,italic",Helvetica:"Helvetica","Helvetica Bold":"Helvetica,bold","Helvetica Light":"Helvetica Light","Helvetica Light Oblique":"Helvetica Light Oblique","Helvetica Neue":"Helvetica Neue","Helvetica Neue Bold":"Helvetica Neue,bold","Helvetica Neue Bold Italic":"Helvetica Neue,bold,italic","Helvetica Neue Condensed Black":"Helvetica Neue Condensed Black","Helvetica Neue Condensed Bold":"Helvetica Neue Condensed,bold","Helvetica Neue Light":"Helvetica Neue Light","Helvetica Neue Light Italic":"Helvetica Neue Light,italic","Helvetica Neue Medium":"Helvetica Neue Medium","Helvetica Neue UltraLight":"Helvetica Neue UltraLight","Helvetica Neue UltraLight Italic":"Helvetica Neue UltraLight,italic","Helvetica Oblique":"Helvetica Oblique",Herculanum:"Herculanum",Impact:"Impact","Marker Felt Thin":"Marker Felt Thin","Marker Felt Wide":"Marker Felt Wide",Optima:"Optima","Optima Bold":"Optima,bold","Optima Bold Italic":"Optima,bold,italic","Optima ExtraBlack":"Optima ExtraBlack","Optima Italic":"Optima,italic",Papyrus:"Papyrus","Papyrus Condensed":"Papyrus Condensed",Times:"Times","Times Bold":"Times,bold","Times Bold Italic":"Times,bold,italic","Times Italic":"Times,italic","Times New Roman":"Times New Roman","Times New Roman Bold":"Times New Roman,bold","Times New Roman Bold Italic":"Times New Roman,bold,italic","Times New Roman Italic":"Times New Roman,italic","Trebuchet MS":"Trebuchet MS","Trebuchet MS Bold":"Trebuchet MS,bold","Trebuchet MS Bold Italic":"Trebuchet MS,bold,italic","Trebuchet MS Italic":"Trebuchet MS,italic",Verdana:"Verdana","Verdana Bold":"Verdana,bold","Verdana Bold Italic":"Verdana,bold,italic","Verdana Italic":"Verdana,italic",Zapfino:"Zapfino"}},d.getFonts=function(){return Object.keys(d.getFontLookup())},d.searchFonts=function(a){return a=a.toLowerCase(),d.getFonts().filter(function(b){return-1!==b.toLowerCase().indexOf(a)})},d.isFontAvailable=function(a){return d.isDef(d.getFontLookup()[a])},d.getAllParams=function(){return["bri","con","exp","gam","high","hue","invert","int","sat","shad","sharp","usm","usmrad","vib","auto","bg","ba","balph","bc","bf","bh","blend","bm","bp","bs","bw","border","pad","dl","fm","q","mask","nr","nrs","class","colors","prefix","palette","page","dpr","flip","or","rot","crop","fit","h","rect","w","blur","htn","mono","px","sepia","txt","txtalign","txtclip","txtclr","txtfit","txtfont","txtline","txtlineclr","txtpad","txtshad","txtsize","trim","trimcolor","trimmd","mark","markalign","markalpha","markfit","markh","markpad","markscale","markw"]},d.getParamAliases=function(){return{t:"txt",tf:"txtfont",tsz:"txtsize",tl:"txtline",tsh:"txtshad",tp:"txtpad",txtlinecolor:"txtlineclr",ta:"txtalign",intensity:"int",monochrome:"mono",f:"fit",orient:"or",m:"watermark",mf:"markfit",ms:"markscale",ma:"markalign",mp:"markpad"}},d.getDefaultParamValues=function(){return{bri:0,con:0,exp:0,gam:0,high:0,hue:0,sat:0,shad:0,sharp:0,usm:0,usmrad:2.5,vib:0,ba:"middle,center",balph:100,bf:"clip",bp:0,pad:0,q:75,nr:20,nrs:20,c
3olors:6,prefix:"image",palette:"",page:1,dpr:1,rot:0,fit:"clip",blur:0,htn:0,px:0,sepia:0,txtalign:"bottom,right",txtclip:"end",txtclr:"000",txtfont:"Helvetica",txtline:0,txtlineclr:"FFF",txtpad:10,txtsize:12,trimmd:11,markalign:"bottom,right",markalpha:100,markfit:"clip",markpad:10}},d.getDefaultParamValue=function(a){return d.getDefaultParamValues()[a]},d.getDefaultParams=function(){return Object.keys(d.getDefaultParamValues())},d.makeCssClass=function(a){return"tmp_"+d.hashCode(a)},d.injectStyleSheet=function(a){var b=document.createElement("link");b.type="text/css",b.rel="stylesheet",b.href=a,document.getElementsByTagName("head")[0].appendChild(b)},d.findInjectedStyleSheet=function(a){if(document.styleSheets)for(var b=0;b<document.styleSheets.length;b++)if(document.styleSheets[b].href===a)return!0;return!1},d.getElementImageSize=function(a){var b=0,c=0;return d.isImageElement(a)?(b=a.naturalWidth,c=a.naturalHeight):(b=d.helpers.extractInt(d.getCssProperty(a,"width")),c=d.helpers.extractInt(d.getCssProperty(a,"height"))),{width:b,height:c}},d.getCssPropertyById=function(a,b){var c=document.getElementById(a);return d.helpers.getElementCssProperty(c,b)},d.getCssProperty=function(a,b){return d.helpers.getElementCssProperty(a,b)},d.getCssPropertyBySelector=function(a,b){var c=document.querySelector(a);return d.helpers.getElementCssProperty(c,b)},d.instanceOfImgixURL=function(a){return a&&"[object imgixURL]"===a.toString()},d.setGradientOnElement=function(a,b,c){var e=[];if("undefined"==typeof c)e=["transparent","transparent"];else{var f=d.hexToRGB(c);"rgba"===f.slice(0,4)?(e.push(f),e.push(d.applyAlphaToRGB(f,0))):(e.push(d.applyAlphaToRGB(f,.5)),e.push(d.applyAlphaToRGB(f,0)))}for(var g=["-ms-linear-gradient(top, "+e[0]+" 0%, "+e[1]+" 100%),-ms-linear-gradient(bottom left, "+b[2]+" 0%,"+b[4]+" 25%, "+b[6]+" 50%, "+b[8]+" 75%,"+b[10]+" 100%)","-webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, "+e[1]+"), color-stop(100%, "+e[0]+")),-webkit-gradient(linear, 0% 100%, 100% 0%, color-stop(0%, "+b[2]+"), color-stop(25%, "+b[4]+"), color-stop(50%, "+b[6]+"), color-stop(75%, "+b[7]+"), color-stop(100%, "+b[10]+"))","-webkit-linear-gradient(top, "+e[0]+", "+e[1]+" 100%),-webkit-linear-gradient(bottom left, "+b[2]+", "+b[4]+", "+b[6]+","+b[8]+")","-moz-linear-gradient(top, "+e[0]+", "+e[1]+" ),-moz-linear-gradient(bottom left, "+b[2]+", "+b[4]+", "+b[6]+","+b[8]+")","-o-linear-gradient(top, "+e[0]+","+e[1]+"),-o-linear-gradient(bottom left, "+b[2]+", "+b[4]+", "+b[6]+","+b[8]+")","linear-gradient(top, "+e[0]+","+e[1]+"),linear-gradient(bottom left, "+b[2]+", "+b[4]+", "+b[6]+","+b[8]+")"],h=0;h<g.length;h++)a.style.backgroundImage=g[h]},d.URL=function(a,b){this._autoUpdateSel=null,this._autoUpdateCallback=null,a&&"//"===a.slice(0,2)&&window&&window.location&&(a=window.location.protocol+a),this.setUrl(a),"object"==typeof b&&this.setParams(b),this.paramAliases={}},d.URL.prototype.attachGradientTo=function(a,b,c){this.getColors(16,function(e){if(e&&e.length<9)return console.warn("not enough colors to create a gradient"),void(c&&"function"==typeof c&&c(!1));if("string"==typeof a){var f=document.querySelectorAll(a);if(f&&f.length>0)for(var g=0;g<f.length;g++)d.setGradientOnElement(f[g],e,b)}else d.setGradientOnElement(a,e,b);c&&"function"==typeof c&&c(!0)})},d.URL.prototype.attachImageTo=function(a,b){if("string"==typeof a){var c=document.querySelectorAll(a);if(c&&c.length>0)for(var e=0;e<c.length;e++)d.setElementImageAfterLoad(c[e],this.getUrl(),b)}else d.setElementImageAfterLoad(a,this.getUrl(),b)},d.createParamString=function(){return new d.URL("")},d.updateVersion={};var f={};d.URL.prototype.getColors=function(a,b){var c=new d.URL(this.getUrl()),e=d.makeCssClass(this.getUrl());if("function"==typeof a)if("number"==typeof b){var g=b;b=a,a=g}else b=a,a=10;c.setPaletteColorNumber(a),c.setPalette("css"),c.setPaletteClass(e);var h=c.getUrl();d.injectStyleSheet(h);var i=function(){if(d.findInjectedStyleSheet(h)){var c=null;setTimeout(function(){for(var g=[],i=100,j=1;a>=j;j++)!function(a){var b=document.createElement("span");b.id=e+"-"+a,b.className=e+"-fg-"+a,document.body.appendChild(b),g.push(new Promise(function(e,f){var g,h=0;g=function(){var f=d.getCssPropertyById(b.id,"color");
3f!==c?(document.body.removeChild(b),e({num:a,color:f}),c=f):++h<i?setTimeout(g,50):(document.body.removeChild(b),e({num:a,color:"rgb(255, 255, 255)"}))},setTimeout(g,300)}))}(j);Promise.all(g).then(function(a){var c=[];a=a.sort(function(a,b){return a.num-b.num});for(var e=0;e<a.length;e++)c.push(d.hexToRGB(a[e].color));c&&c.length>1&&d.getColorBrightness(c[c.length-1])<d.getColorBrightness(c[0])&&c.reverse(),f[h]=c,b&&b(c)})},10)}else setTimeout(i,100)};f.hasOwnProperty(h)?b&&b(f[h]):i()},d.URL.prototype._handleAutoUpdate=function(){function a(a){return h===e._autoUpdateSel&&a===d.updateVersion[h]}function b(b,c){c in i||(i[c]=[],function(){var b=document.createElement("img"),j=d.updateVersion[h],k=(new Date).getTime();b.src=c,b.onload=b.onerror=function(){if(a(j))for(var b=0;b<i[c].length;b++)if(d.setElementImage(i[c][b],c),g++,"function"==typeof e._autoUpdateCallback){var h={element:i[c][b],isComplete:g===f,percentComplete:g/f*100,totalComplete:g,loadTime:(new Date).getTime()-k,total:f};e._autoUpdateCallback(h)}}}()),i[c].push(b)}function c(a){var c=d.getElementImage(a),f=c;c&&-1!==c.indexOf("?")&&(f=c.split("?")[0]),e.getBaseUrl()?b(a,e.getUrl()):f&&e.getQueryString()?b(a,f+"?"+e.getQueryString()):g++}var e=this,f=0,g=0,h=this._autoUpdateSel,i={};if(d.isDef(d.updateVersion[h])?d.updateVersion[h]++:d.updateVersion[h]=1,null!==this._autoUpdateSel){var j=document.querySelectorAll(this._autoUpdateSel);if(f=j.length,j&&1===f)c(j[0]);else for(var k=0;f>k;k++)c(j[k])}},d.URL.prototype.autoUpdateImg=function(a,b){this._autoUpdateSel=a,this._autoUpdateCallback=b,this._handleAutoUpdate()},d.URL.prototype.setUrl=function(a){a&&"string"==typeof a&&0!==a.length||(a=d.getEmptyImage()),this.urlParts=d.parseUrl(a)},d.URL.prototype.setURL=function(a){return this.setUrl(a)},d.URL.prototype.getURL=function(){return this.getUrl()},d.URL.prototype.toString=function(){return"[object imgixURL]"},d.URL.prototype.getUrl=function(){var a=d.buildUrl(this.urlParts);return a&&0!==a.length?a=d.versionifyUrl(a):d.getEmptyImage()},d.URL.prototype.removeParam=function(a){this.urlParts.paramValues.hasOwnProperty(a)&&(delete this.urlParts.paramValues[a],this.urlParts.params=Object.keys(this.urlParts.paramValues))},d.URL.prototype.clearThenSetParams=function(a){this.clearParams(!1),this.setParams(a)},d.URL.prototype.clearParams=function(a){a=d.isDef(a)?a:!0;for(var b in this.urlParts.paramValues)this.urlParts.paramValues.hasOwnProperty(b)&&this.removeParam(b);a&&this._handleAutoUpdate()},d.URL.prototype.setParams=function(a,b){if(d.instanceOfImgixURL(a))return void console.warn("setParams warning: dictionary of imgix params expectd. imgix URL instance passed instead");for(var c in a)a.hasOwnProperty(c)&&this.setParam(c,a[c],b,!0);this._handleAutoUpdate()},d.URL.prototype.setParam=function(a,b,c,e){if(a=a.toLowerCase(),c=d.isDef(c)?c:!0,e=d.isDef(e)?e:!1,("col"===a||"colorize"===a||"blend"===a||"mono"===a||"monochrome"===a)&&"rgb"===b.slice(0,3)&&(b=d.rgbToHex(b)),-1===d.getAllParams().indexOf(a))return console.warn("'"+a+"' is an invalid imgix param"),this;if(!c&&this.urlParts.paramValues[a])return this;if("txtfont"===a&&d.isFontAvailable(b)){var f=d.getFontLookup()[b];f&&(b=f)}return d.getDefaultParamValue(a)!==b&&d.isDef(b)&&null!==b&&0!==b.length?(-1===this.urlParts.params.indexOf(a)&&this.urlParts.params.push(a),decodeURIComponent(b)===b&&(b=encodeURIComponent(b)),this.urlParts.paramValues[a]=String(b),e||this._handleAutoUpdate(),this):(this.removeParam(a),this)},d.URL.prototype.getParam=function(a){if("mark"===a||"mask"===a){var b=this.urlParts.paramValues[a];return decodeURIComponent(b)!==b?decodeURIComponent(b):b}return this.urlParts.paramValues[a]},d.URL.prototype.getParams=function(){return this.urlParts.paramValues?this.urlParts.paramValues:{}},d.URL.prototype.getBaseUrl=function(){var a=this.getUrl();return-1!==a.indexOf("?")&&(a=this.getUrl().split("?")[0]),a!==window.location.href?a:""},d.URL.prototype.getQueryString=function(){var a=this.getUrl();return-1!==a.indexOf("?")?this.getUrl().split("?")[1]:""},d.URL.theGetSetFuncs=Object.freeze({bri:"Brightness",con:"Contrast",exp:"Exposure",gam:"Gamma",high:"Highlight",hue:"Hue",invert:"Invert",sat:"Saturation",shad:"Shadow",sharp:"Sharpness",usm:"UnsharpMask",usmrad:"UnsharpMaskRadius",vib:"Vibrance",auto:"Auto",bg
3:"Background",ba:"BlendAlign",balph:"BlendAlpha",bc:"BlendCrop",bf:"BlendFit",bh:"BlendHeight",blend:"Blend",bm:"BlendMode",bp:"BlendPadding",bs:"BlendSize",bw:"BlendWidth",border:"Border",pad:"Pad",dl:"Download",fm:"Format",q:"Quality",mask:"Mask",nr:"NoiseReduction",nrs:"NoiseReductionSharpen",palette:"Palette","class":"PaletteClass",prefix:"PalettePrefix",colors:"PaletteColorNumber",page:"Page",dpr:"DPR",flip:"Flip",or:"Orient",rot:"Rotate",crop:"Crop",fit:"Fit",h:"Height",rect:"Rectangle",w:"Width",blur:"Blur",htn:"Halftone",mono:"Monochrome",px:"Pixelate",sepia:"Sepia",txt:"Text",txtalign:"TextAlign",txtclip:"TextClip",txtclr:"TextColor",txtfit:"TextFit",txtfont:"TextFont",txtline:"TextLine",txtlineclr:"TextLineColor",txtpad:"TextPad",txtsize:"TextSize",txtshad:"TextShadow",trim:"Trim",trimcolor:"TrimColor",trimmd:"TrimMeanDifference",mark:"Watermark",markalign:"WatermarkAlign",markalpha:"WatermarkAlpha",markfit:"WatermarkFit",markh:"WatermarkHeight",markpad:"WatermarkPadding",markscale:"WatermarkScale",markw:"WatermarkWidth"});for(var g in d.URL.theGetSetFuncs)d.URL.theGetSetFuncs.hasOwnProperty(g)&&!function(a){d.URL.prototype["set"+d.URL.theGetSetFuncs[a]]=function(b,c){return this.setParam(a,b,c)},d.URL.prototype["get"+d.URL.theGetSetFuncs[a]]=function(){return this.getParam(a)}}(g);d.parseUrl=function(a){for(var b=["protocol","hostname","port","path","?","#","hostname"],c=["protocol","hostname","port","pathname","search","hash","host"],e={},f=0;f<c.length;f++)e[c[f]]=d.helpers.urlParser(b[f],a);var g=e.search;if(e.paramValues={},e.params=[],e.baseUrl=a.split("?")[0],g&&g.length>0){"?"===g[0]&&(g=g.substr(1,g.length));for(var h=g.split("&"),i=0;i<h.length;i++){var j=h[i].split("=");j[0]&&j[0].length&&"s"!==j[0]&&(e.paramValues[j[0]]=2===j.length?j[1]:"",-1===e.params.indexOf(j[0])&&e.params.push(j[0]))}}return e},d.buildUrl=function(a){var b=a.protocol+"://"+a.host+a.pathname;if(a.params.length>0){a.params=a.params.map(function(a){return a.toLowerCase()}),a.params=a.params.filter(function(a,b,c){return c.indexOf(a)===b}),a.params=a.params.sort(function(a,b){return b>a?-1:a>b?1:0});for(var c=[],d=0;d<a.params.length;d++)a.paramValues[a.params[d]].length>0&&c.push(a.params[d]+"="+a.paramValues[a.params[d]]);-1!==b.indexOf("?")&&(b=b.split("?")[0]),b+="?"+c.join("&")}return b},d.versionifyUrl=function(a){var b=d.parseUrl(a),c="ixjsv";return b.params.push(c),b.paramValues[c]=d.version,d.buildUrl(b)},d.isDef=function(a){return"undefined"!=typeof a},d.hashCode=function(a){var b,c,d=2166136261;for(b=0,c=a.length;c>b;b++)d^=a.charCodeAt(b),d+=(d<<1)+(d<<4)+(d<<7)+(d<<8)+(d<<24);return("0000000"+(d>>>0).toString(16)).substr(-8)};var h={fluidClass:"imgix-fluid",updateOnResize:!0,updateOnResizeDown:!1,updateOnPinchZoom:!1,highDPRAutoScaleQuality:!0,onChangeParamOverride:null,autoInsertCSSBestPractices:!1,fitImgTagToContainerWidth:!0,fitImgTagToContainerHeight:!1,ignoreDPR:!1,pixelStep:10,debounce:200,lazyLoad:!1,lazyLoadColor:null,lazyLoadOffsetVertical:20,lazyLoadOffsetHorizontal:20,throttle:200,maxHeight:5e3,maxWidth:5e3,onLoad:null};d.FluidSet=function(a){d.helpers.isReallyObject(a)?this.options=d.helpers.mergeObject(b(),a):this.options=d.helpers.mergeObject(b(),{}),this.lazyLoadOffsets={t:Math.max(this.options.lazyLoadOffsetVertical,0),b:Math.max(this.options.lazyLoadOffsetVertical,0),l:Math.max(this.options.lazyLoadOffsetHorizontal,0),r:Math.max(this.options.lazyLoadOffsetHorizontal,0)},this.namespace=Math.random().toString(36).substring(7),this.windowResizeEventBound=!1,this.windowScrollEventBound=!1,this.windowLastWidth=0,this.windowLastHeight=0},d.FluidSet.prototype.updateSrc=function(a,b){if(a.hasAttribute("src")&&""===a.getAttribute("src")&&a.setAttribute("src",d.getEmptyImage()),a.offsetWidth||a.offsetHeight||a.getClientRects().length){var c=this.getImgDetails(a,b||1),e=c.url,f=c.width,g=c.height;if(this.options.lazyLoad){var h=a.getBoundingClientRect(),i={left:0-this.lazyLoadOffsets.l,top:0-this.lazyLoadOffsets.t,bottom:(window.innerHeight||document.documentElement.clientHeight)+this.lazyLoadOffsets.b,right:(window.innerWidth||document.documentElement.clientWidth)+this.lazyLoadOffsets.r};if(h.top>i.bottom||h.left>
3i.right||h.top+g<i.top||h.left+f<i.left){if(!a.fluidLazyColored&&this.options.lazyLoadColor){a.fluidLazyColored=1;var j=this,k=typeof this.options.lazyLoadColor,l=new d.URL(d.helpers.getImgSrc(a));l.getColors(16,function(b){if(!b)return void console.warn("No colors found for",l.getURL(),"for element",a);var c=null;"boolean"===k?c=b[0]:"number"===k&&j.options.lazyLoadColor<b.length?c=b[j.options.lazyLoadColor]:"function"===k&&(c=j.options.lazyLoadColor(a,b)),null!==c&&(d.isImageElement(a)&&a.parentNode&&"body"!==a.parentNode.tagName.toLowerCase()?a.parentNode.style.backgroundColor=c:a.style.backgroundColor=c);
4})}return}}if(a.lastWidth=a.lastWidth||0,a.lastHeight=a.lastHeight||0,!(this.options.updateOnResizeDown===!1&&a.lastWidth>=f&&a.lastHeight>=g)){a.fluidUpdateCount||(a.fluidUpdateCount=0);var m=function(){};this.options.onLoad&&"function"==typeof this.options.onLoad&&(m=this.options.onLoad);var n=function(a,b){a.fluidUpdateCount=parseInt(a.fluidUpdateCount,10)+1,m(a,b)};d.setElementImageAfterLoad(a,e,n),a.lastWidth=f,a.lastHeight=g}}},d.FluidSet.prototype.getImgDetails=function(a,b){if(a){var c=d.helpers.getDPR(a),e=this.options.pixelStep,f=d.helpers.calculateElementSize(d.isImageElement(a)?a.parentNode:a),g=d.helpers.pixelRound(f.width*b,e),h=d.helpers.pixelRound(f.height*b,e),i=new d.URL(d.helpers.getImgSrc(a));i.setHeight(""),i.setWidth(""),g=Math.min(g,this.options.maxWidth),h=Math.min(h,this.options.maxHeight),1===c||this.options.ignoreDPR||i.setDPR(c),this.options.highDPRAutoScaleQuality&&c>1&&i.setQuality(Math.min(Math.max(parseInt(100/c,10),30),75)),this.options.fitImgTagToContainerHeight&&this.options.fitImgTagToContainerWidth&&i.setFit("crop"),"crop"===i.getFit()?(h>0&&(!d.isImageElement(a)||d.isImageElement(a)&&this.options.fitImgTagToContainerHeight)&&i.setHeight(h),g>0&&(!d.isImageElement(a)||d.isImageElement(a)&&this.options.fitImgTagToContainerWidth)&&i.setWidth(g)):g>=h?i.setWidth(g):i.setHeight(h),!d.isImageElement(a)&&this.options.autoInsertCSSBestPractices&&a.style&&(a.style.backgroundRepeat="no-repeat",a.style.backgroundSize="cover",a.style.backgroundPosition="50% 50%");var j={};null!==this.options.onChangeParamOverride&&"function"==typeof this.options.onChangeParamOverride&&(j=this.options.onChangeParamOverride(g,h,i.getParams(),a));for(var k in j)j.hasOwnProperty(k)&&i.setParam(k,j[k]);return{url:i.getURL(),width:g,height:h}}},d.FluidSet.prototype.toString=function(){return"[object FluidSet]"},d.FluidSet.prototype.reload=function(){d.fluid(this),this.windowLastWidth=d.helpers.getWindowWidth(),this.windowLastHeight=d.helpers.getWindowHeight()},d.FluidSet.prototype.attachGestureEvent=function(a){var b=this;a.addEventListener&&!a.listenerAttached&&(a.addEventListener("gestureend",function(a){b.updateSrc(this,a.scale)},!1),a.addEventListener("gesturechange",function(){b.updateSrc(this)},!1),a.listenerAttached=!0)};var i={},j={};d.FluidSet.prototype.attachScrollListener=function(){i[this.namespace]=d.helpers.throttler(function(){this.reload()}.bind(this),this.options.throttle),document.addEventListener?window.addEventListener("scroll",i[this.namespace],!1):window.attachEvent("onscroll",i[this.namespace]),this.windowScrollEventBound=!0},d.FluidSet.prototype.attachWindowResizer=function(){j[this.namespace]=d.helpers.debouncer(function(){(this.windowLastWidth!==d.helpers.getWindowWidth()||this.windowLastHeight!==d.helpers.getWindowHeight())&&this.reload()}.bind(this),this.options.debounce),window.addEventListener?window.addEventListener("resize",j[this.namespace],!1):window.attachEvent&&window.attachEvent("onresize",j[this.namespace]),this.windowResizeEventBound=!0},d.fluid=function(){var a,c;if(arguments.length>0&&1===arguments[0].nodeType?(c=arguments[0],a=arguments[1]):a=arguments[0],null!==a){var e,f;if(d.helpers.isReallyObject(a)){for(var g=Object.keys(a),h=Object.keys(b()),i=0;i<g.length;i++)-1===h.indexOf(g[i])&&console.warn("'"+g[i]+"' is not a valid imgix.fluid config option. See https://github.com/imgix/imgix.js/blob/master/docs/api.md#imgix.fluid for a list of valid options.");e=d.helpers.mergeObject(b(),a),f=new d.FluidSet(e),a=null}else d.helpers.isFluidSet(a)?(f=a,e=f.options):(e=d.helpers.mergeObject(b(),{}),f=new d.FluidSet(e));var j;if(a&&!d.helpers.isFluidSet(a))j=Array.isArray(a)?a:[a];else{var k=e.fluidClass.toString();k="."===k.slice(0,1)?k:"."+k,j=(c||document).querySelectorAll(k),c&&d.helpers.matchesSelector(c,k)&&(j=Array.prototype.slice.call(j),j.unshift(c))}for(var l=0;l<j.length;
4l++)null!==j[l]&&(e.updateOnPinchZoom&&f.attachGestureEvent(j[l]),f.updateSrc(j[l]));return e.lazyLoad&&!f.windowScrollEventBound&&f.attachScrollListener(),e.updateOnResize&&!f.windowResizeEventBound&&f.attachWindowResizer(),f}},"undefined"!=typeof window&&(d.onready=function(){function a(){var a;for(g=!0;a=d.shift();)a()}var b,c,d=[],e=document.documentElement.doScroll,f=e?/^loaded|^c/:/^loaded|c/,g=f.test(document.readyState);return document.addEventListener?(c=function(){document.removeEventListener("DOMContentLoaded",c,!1),a()},document.addEventListener("DOMContentLoaded",c,!1)):document.attachEvent&&(c=function(){/^c/.test(document.readyState)&&(document.detachEvent("onreadystatechange",c),a())},document.attachEvent("onreadystatechange",c)),b=e?function(a){window.self!=window.top?g?a():d.push(a):!function(){try{document.documentElement.doScroll("left")}catch(c){return setTimeout(function(){b(a)},50)}a()}()}:function(a){g?a():d.push(a)}}()),"function"==typeof define&&define.amd&&define("imgix",[],function(){return d})}).call(this);

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.