!function(e){function t(n){if(r)return r.exports;var o=r={exports:{},id:n,loaded:!1};return e.call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p=“”,t(0)}([function(e,t,r){“use strict”;function n(e){return e&&e.__esModule?e:{“default”:e}}var o=r(1),i=n(o),a=r(2),u=n(a),s=r(3),l=n(s);document.addEventListener(“DOMContentLoaded”,function(){u.render(i.createElement(l,window.APP_PROPS),document.getElementById(“react-root”))})},function(e,t){e.exports=React},function(e,t){e.exports=ReactDOM},function(e,t,r){“use strict”;function n(e){return e&&e.__esModule?e:{“default”:e}}function o(e){var t=e.pageTitle,r=e.generatedAt,n=e.diffImages,o=e.newImages,i=e.triggeredByUrl;return a.createElement(“div”,null,a.createElement(“header”,{className:“HappoDiffs__header”},a.createElement(“h1”,{className:“HappoDiffs__headerTitle”},t),a.createElement(“div”,null,“Generated: ”,r),i&&a.createElement(“div”,null,“Triggered by:”,“ ”,a.createElement(“a”,{href:i},i))),a.createElement(“main”,{className:“HappoDiffs__main”},a.createElement(s,{images:n}),a.createElement(f,{images:o})))}Object.defineProperty(t,“__esModule”,{value:!0}),t=o;var i=r(1),a=n(i),u=r(4),s=n(u),l=r(23),f=n(l),c=r(8),p=n©;o.propTypes={pageTitle:i.PropTypes.string.isRequired,diffImages:i.PropTypes.arrayOf(p).isRequired,newImages:i.PropTypes.arrayOf(p).isRequired,generatedAt:i.PropTypes.string.isRequired,triggeredByUrl:i.PropTypes.string}},function(e,t,r){“use strict”;function n(e){return e&&e.__esModule?e:{“default”:e}}function o(e){var t=e.images;return t.length?a.createElement(“div”,null,a.createElement(“h2”,{id:“diffs”},a.createElement(l,{to:“diffs”},“Diffs (”,t.length,“)”)),t.map(function(e){return a.createElement(u.DiffController,{key:e.current,image:e})})):null}Object.defineProperty(t,“__esModule”,{value:!0}),t=o;var i=r(1),a=n(i),u=r(5),s=r(7),l=n(s),f=r(8),c=n(f);o.propTypes={images:i.PropTypes.arrayOf(i.PropTypes.shape(c)).isRequired}},function(e,t,r){“use strict”;function n(e){return e&&e.__esModule?e:{“default”:e}}function o(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}function i(e,t){if(!e)throw new ReferenceError(“this hasn't been initialised - super() hasn't been called”);return!t||“object”!=typeof t&&“function”!=typeof t?e:t}function a(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e){var t=e.image,r=e.selectedView,n=e.onClick,o=t.height+t.height/10;return f.createElement(“div”,null,f.createElement(p,{image:t}),f.createElement(“div”,{className:“Diff__buttons”},Object.keys(y).map(function(e){return y[e]}).map(function(e,t){var o=;return 0===t?o.push(“Diff__button–first”):t===Object.keys(y).length-1&&o.push(“Diff__button–last”),f.createElement(“button”,{key:e,className:o.join(“ ”),“aria-pressed”:e===r,onClick:function(){n(e)}},e)})),f.createElement(“div”,{className:“Diff__images”,style:{minHeight:o}},f.createElement(h,{image:t,selectedView:r})))}Object.defineProperty(t,“__esModule”,{value:!0}),t=t.DiffController=void 0;var s=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t;n.enumerable=n.enumerable||!1,n.configurable=!0,“value”in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),l=r(1),f=n(l),c=r(6),p=n©,d=r(10),h=n(d),v=r(22),y=n(v),m=r(8),b=n(m),g=t.DiffController=function(e){function t(e){o(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.state={selectedView:y.DIFF},r.handleClick=r.handleClick.bind®,r}return a(t,e),s(t,[{key:“handleClick”,value:function(e){this.setState({selectedView:e})}},{key:“render”,value:function(){return f.createElement(u,{image:this.props.image,selectedView:this.state.selectedView,onClick:this.handleClick})}}]),t}(f.Component);g.propTypes={image:l.PropTypes.shape(b).isRequired},t=u,u.propTypes={image:l.PropTypes.shape(b).isRequired,onClick:l.PropTypes.func.isRequired,selectedView:l.PropTypes.oneOf(Object.keys(y).map(function(e){return y[e]})).isRequired}},function(e,t,r){“use strict”;function n(e){return e&&e.__esModule?e:{“default”:e}}function o(e){var t=e.image;return a.createElement(“h3”,{id:(0,p)(t)},a.createElement(s,{to:(0,p)(t)},t.description,“ @ ”,t.viewport))}Object.defineProperty(t,“__esModule”,{value:!0}),t=o;var i=r(1),a=n(i),u=r(7),s=n(u),l=r(8),f=n(l),c=r(9),p=n©;o.propTypes={image:i.PropTypes.shape(f).isRequired}},function(e,t,r){“use strict”;function n(e){return e&&e.__esModule?e:{“default”:e}}function o(e){var t=e.children,r=e.to;return a.createElement(“a”,{className:“InlineLink”,href:“#”+r},t)}Object.defineProperty(t,“__esModule”,{value:!0}),t=o;var i=r(1),a=n(i);o.propTypes={children:i.PropTypes.node.isRequired,to:i.PropTypes.string.isRequired}},function(e,t,r){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var n=r(1);t={description:n.PropTypes.string.isRequired,viewport:n.PropTypes.string.isRequired,previous:n.PropTypes.string,current:n.PropTypes.string.isRequired,height:n.PropTypes.number.isRequired}},function(e,t){“use strict”;function r(e){return btoa(e.description+e.viewport)}Object.defineProperty(t,“__esModule”,{value:!0}),t=r},function(e,t,r){“use strict”;function n(e){return e&&e.__esModule?e:{“default”:e}}function o(e){var t=e.image,r=e.selectedView;return a.createElement(“div”,null,a.createElement(s,{visible:r===y.SIDE_BY_SIDE},a.createElement(p,{previous:t.previous,current:t.current})),a.createElement(s,{visible:r===y.DIFF},a.createElement(f,{previous:t.previous,current:t.current})),a.createElement(s,{visible:r===y.SWIPE},a.createElement(h,{previous:t.previous,current:t.current})))}Object.defineProperty(t,“__esModule”,{value:!0}),t=o;var i=r(1),a=n(i),u=r(11),s=n(u),l=r(12),f=n(l),c=r(19),p=n©,d=r(20),h=n(d),v=r(22),y=n(v),m=r(8),b=n(m);o.propTypes={image:i.PropTypes.shape(b).isRequired,selectedView:i.PropTypes.oneOf(Object.keys(y).map(function(e){return y[e]})).isRequired}},function(e,t,r){“use strict”;function n(e){return e&&e.__esModule?e:{“default”:e}}function o(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}function i(e,t){if(!e)throw new ReferenceError(“this hasn't been initialised - super() hasn't been called”);return!t||“object”!=typeof t&&“function”!=typeof t?e:t}function a(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,“__esModule”,{value:!0});var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t;n.enumerable=n.enumerable||!1,n.configurable=!0,“value”in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),s=r(1),l=n(s),f=function(e){function t(e){o(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.state={keepMounted:e.visible},r}return a(t,e),u(t,[{key:“componentWillReceiveProps”,value:function(e){e.visible!==this.props.visible&&this.setState({keepMounted:!0})}},{key:“render”,value:function(){var e=this.props.visible,t=this.state.keepMounted;return e||t?l.createElement(“div”,{style:{display:e?“block”:“none”}},this.props.children):null}}]),t}(l.Component);t=f,f.propTypes={children:s.PropTypes.node.isRequired,visible:s.PropTypes.bool}},function(e,t,r){“use strict”;function n(e){return e&&e.__esModule?e:{“default”:e}}function o(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}function i(e,t){if(!e)throw new ReferenceError(“this hasn't been initialised - super() hasn't been called”);return!t||“object”!=typeof t&&“function”!=typeof t?e:t}function a(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,“__esModule”,{value:!0});var u=function(){function e(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(s){o=!0,i=s}finally{try{!n&&u&&u()}finally{if(o)throw i}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError(“Invalid attempt to destructure non-iterable instance”)}}(),s=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t;n.enumerable=n.enumerable||!1,n.configurable=!0,“value”in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),l=r(1),f=n(l),c=r(13),p=n©,d=r(14),h=n(d),v=r(15),y=n(v),m=r(16),b=r(18),g=function(e){function t(e){o(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.state={progress:0,width:0,height:0},r.initialize=r.initialize.bind®,r}return a(t,e),s(t,[{key:“initialize”,value:function(){var e=this,t=this.props,r=t.previous,n=t.current;Promise.all([(0,y)(r),(0,y)(n)]).then(function(t){var r=u(t,2),n=r,o=r;e.setState({progress:10,width:n.width,height:n.height}),e.computeDiffs({previousData:n,currentData:o})})}},{key:“computeDiffs”,value:function(e){var t=this,r=e.previousData,n=e.currentData,o=new b;o.addEventListener(“message”,function(e){var r=e.data,n=r.previousData,o=r.currentData,i=r.progress;return n?(t.setState({width:n.width,height:n.height}),void t.constructDiffImage({previousData:n,currentData:o})):void t.setState({progress:i})}),o.postMessage({previousData:r,currentData:n})}},{key:“constructDiffImage”,value:function(e){var t=this,r=e.previousData,n=e.currentData,o=new m;o.addEventListener(“message”,function(e){var r=e.data,n=r.data,o=r.width,i=r.height;t.setState({progress:99,width:o,height:i});var a=t.canvas.getContext(“2d”),u=a.createImageData(o,i);u.data.set(n),a.putImageData(u,0,0),t.setState({progress:100})}),o.postMessage({previousImageData:r.data,currentImageData:n.data})}},{key:“render”,value:function(){var e=this,t=this.state,r=t.width,n=t.height,o=t.progress;return f.createElement(“div”,{style:{height:n,width:r}},o>0&&o<100&&f.createElement(h,{value:o}),0===o&&f.createElement(p,{onEnter:this.initialize,scrollableAncestor:window,bottomOffset:“-50%”,topOffset:“-70%”}),f.createElement(“canvas”,{ref:function(t){e.canvas=t},width:r,height:n}))}}]),t}(f.Component);t=g,g.propTypes={previous:l.PropTypes.string.isRequired,current:l.PropTypes.string.isRequired}},function(e,t,r){“use strict”;function n(e){return e&&e.__esModule?e:{“default”:e}}function o(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}function i(e,t){if(!e)throw new ReferenceError(“this hasn't been initialised - super() hasn't been called”);return!t||“object”!=typeof t&&“function”!=typeof t?e:t}function a(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(){console.log(arguments)}var s=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t;n.enumerable=n.enumerable||!1,n.configurable=!0,“value”in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();Object.defineProperty(t,“__esModule”,{value:!0});var l=r(1),f=n(l),c={above:“above”,inside:“inside”,below:“below”,invisible:“invisible”},p={debug:l.PropTypes.bool,onEnter:l.PropTypes.func,onLeave:l.PropTypes.func,onPositionChange:l.PropTypes.func,fireOnRapidScroll:l.PropTypes.bool,scrollableAncestor:l.PropTypes.any,throttleHandler:l.PropTypes.func,topOffset:l.PropTypes.oneOfType(),bottomOffset:l.PropTypes.oneOfType()},d={topOffset:“0px”,bottomOffset:“0px”,onEnter:function(){},onLeave:function(){},onPositionChange:function(){},fireOnRapidScroll:!0,throttleHandler:function(e){return e}},h=function(e){function t(e){o(this,t);var r=i(this,Object.getPrototypeOf(t).call(this,e));return r.refElement=function(e){return r._ref=e},r}return a(t,e),s(t,[{key:“componentWillMount”,value:function(){if(this.props.scrollableParent)throw new Error(“The `scrollableParent` prop has changed name to `scrollableAncestor`.”)}},{key:“componentDidMount”,value:function(){t.getWindow()&&(this._handleScroll=this.props.throttleHandler(this._handleScroll.bind(this)),this.scrollableAncestor=this._findScrollableAncestor(),this.props.debug&&u(“scrollableAncestor”,this.scrollableAncestor),this.scrollableAncestor.addEventListener(“scroll”,this._handleScroll),window.addEventListener(“resize”,this._handleScroll),this._handleScroll(null))}},{key:“componentDidUpdate”,value:function(){t.getWindow()&&this._handleScroll(null)}},{key:“componentWillUnmount”,value:function(){t.getWindow()&&(this.scrollableAncestor&&this.scrollableAncestor.removeEventListener(“scroll”,this._handleScroll),window.removeEventListener(“resize”,this._handleScroll))}},{key:“_findScrollableAncestor”,value:function(){if(this.props.scrollableAncestor)return this.props.scrollableAncestor;for(var e=this._ref;e.parentNode;)if(e=e.parentNode,e!==document&&e!==document.documentElement){var t=window.getComputedStyle(e),r=t.getPropertyValue(“overflow-y”)||t.getPropertyValue(“overflow”);if(“auto”===r||“scroll”===r)return e}return window}},{key:“_handleScroll”,value:function(e){if(this._ref){var t=this._getBounds(),r=this._currentPosition(t),n=this._previousPosition||null;if(this.props.debug&&(u(“currentPosition”,r),u(“previousPosition”,n)),this._previousPosition=r,n!==r){var o={currentPosition:r,previousPosition:n,event:e,waypointTop:t.waypointTop,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom};this.props.onPositionChange.call(this,o),r===c.inside?this.props.onEnter.call(this,o):n===c.inside&&this.props.onLeave.call(this,o);var i=n===c.below&&r===c.above,a=n===c.above&&r===c.below;this.props.fireOnRapidScroll&&(i||a)&&(this.props.onEnter.call(this,{currentPosition:c.inside,previousPosition:n,event:e,waypointTop:t.waypointTop,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom}),this.props.onLeave.call(this,{currentPosition:r,previousPosition:c.inside,event:e,waypointTop:t.waypointTop,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom}))}}}},{key:“_computeOffsetPixels”,value:function(e,t){var r=this._parseOffsetAsPixels(e);if(“number”==typeof r)return r;var n=this._parseOffsetAsPercentage(e);return“number”==typeof n?n*t:void 0}},{key:“_parseOffsetAsPixels”,value:function(e){return!isNaN(parseFloat(e))&&isFinite(e)?parseFloat(e):“px”===e.slice(-2)?parseFloat(e.slice(0,-2)):void 0}},{key:“_parseOffsetAsPercentage”,value:function(e){if(“%”===e.slice(-1))return parseFloat(e.slice(0,-1))/100}},{key:“_getBounds”,value:function(){var e=this._ref.getBoundingClientRect().top,t=void 0,r=void 0;this.scrollableAncestor===window?(t=window.innerHeight,r=0):(t=this.scrollableAncestor.offsetHeight,r=this.scrollableAncestor.getBoundingClientRect().top),this.props.debug&&(u(“waypoint top”,e),u(“scrollableAncestor height”,t),u(“scrollableAncestor scrollTop”,r));var n=this.props,o=n.bottomOffset,i=n.topOffset,a=this._computeOffsetPixels(i,t),s=this._computeOffsetPixels(o,t),l=r+t;return{waypointTop:e,viewportTop:r+a,viewportBottom:l-s}}},{key:“_currentPosition”,value:function(e){return e.viewportBottom-e.viewportTop===0?t.invisible:e.viewportTop<=e.waypointTop&&e.waypointTop<=e.viewportBottom?t.inside:e.viewportBottom<e.waypointTop?t.below:e.waypointTop<e.viewportTop?t.above:t.invisible}},{key:“render”,value:function(){return f.createElement(“span”,{ref:this.refElement,style:{fontSize:0}})}}]),t}(f.Component);t=h,h.propTypes=p,h.above=c.above,h.below=c.below,h.inside=c.inside,h.invisible=c.invisible,h.getWindow=function(){if(“undefined”!=typeof window)return window},h.defaultProps=d,h.displayName=“Waypoint”,e.exports=t},function(e,t,r){“use strict”;function n(e){return e&&e.__esModule?e:{“default”:e}}function o(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}function i(e,t){if(!e)throw new ReferenceError(“this hasn't been initialised - super() hasn't been called”);return!t||“object”!=typeof t&&“function”!=typeof t?e:t}function a(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,“__esModule”,{value:!0});var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t;n.enumerable=n.enumerable||!1,n.configurable=!0,“value”in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),s=r(1),l=n(s),f=500,c=function(e){function t(e){o(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.state={currentValue:0,visible:!1},r.tick=r.tick.bind®,r.tick(0),setTimeout(function(){r.setState({visible:!0})},f),r}return a(t,e),u(t,[{key:“componentWillReceiveProps”,value:function(e){clearTimeout(this.timeout),this.tick(e.value)}},{key:“tick”,value:function(e){var t=this,r=this.state.currentValue,n=e-r;this.setState({currentValue:r+.8*n}),this.timeout=setTimeout(function(){t.tick(e)},1e3)}},{key:“render”,value:function(){var e=this.state,t=e.currentValue,r=e.visible;return l.createElement(“div”,{style:{opacity:r?1:0},className:“SmoothProgress”},l.createElement(“div”,{style:{transform:“translateX(-”+(100-t)+“%)”},className:“SmoothProgress__bar”}))}}]),t}(l.PureComponent);t=c,c.propTypes={value:s.PropTypes.number.isRequired}},function(e,t){“use strict”;function r(e){return new Promise(function(t){var r=new Image;r.onload=function(){var e=r.width,n=r.height,o=document.createElement(“canvas”);o.width=e,o.height=n;var i=o.getContext(“2d”);i.drawImage(r,0,0);var a=i.getImageData(0,0,e,n).data;t({width:e,height:n,data:a})},r.src=e})}Object.defineProperty(t,“__esModule”,{value:!0}),t=r},function(e,t,r){e.exports=function(){return r(17)('!function(e){function t(n){if(r)return r.exports;var u=r={exports:{},id:n,loaded:!1};return e.call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var r={};return t.m=e,t.c=r,t.p=“”,t(0)}([function(e,t,r){“use strict”;function n(e){return e&&e.__esModule?e:{“default”:e}}function u(e,t,r){return d*(e+1)+t*e+r}var a=r(1),f=n(a),o=,i=,l=,d=80,s=16;self.addEventListener(“message”,function(e){for(var t=e.data,r=t.previousImageData,n=t.currentImageData,a=r.length,c=r.length,p=(d+a)*c,v=new Uint8ClampedArray(p),M=0;M<c;M++){for(var _=!1,h=0;h<a;h+=4){var x=(0,f)([r[h],r[h+1],r[h+2],r[h+3]],[n[h],n[h+1],n[h+2],n[h+3]]),g=x.diff,w=x.pixel;g>0&&(_=!0);var A=u(M,a,h);v=w,v=w,v=w,v=w}var E=void 0;E=0===r[3]?i:0===n[3]?l:_?o:null;for(var m=0;m<d-s;m+=4)if(null!==E){var D=u(M,a,m)-d;v=E,v=E,v=E,v=E}}self.postMessage({data:v,width:(d+a)/4,height:c}),self.close()})},function(e,t,r){“use strict”;function n(e){return e&&e.__esModule?e:{“default”:e}}function u(e,t){var r=(0,i)(e,t)/o.MAX_EUCLIDEAN_DISTANCE;return 0===r?{diff:r,pixel:(0,f)([t,t,t,40],l)}:{diff:r,pixel:(0,f)([179,54,130,255*Math.max(.2,r)],l)}}Object.defineProperty(t,“__esModule”,{value:!0}),t=u;var a=r(2),f=n(a),o=r(3),i=n(o),l=},function(e,t){“use strict”;function r(e){return 255===e}function n(e){return 0===e}function u(e,t){var r=e*t+128;return(r>>8)+r>>8}function a(e,t){if(r(e)||n(t))return e;if(n(e))return t;var a=u(255-e,t);return[u(e,e)+u(a,t),u(e,e)+u(a,t),u(e,e)+u(a,t),e+a]}Object.defineProperty(t,“__esModule”,{value:!0}),t=a},function(e,t){“use strict”;function r(e,t){return Math.sqrt(Math.pow(e-t,2)+Math.pow(e-t,2)+Math.pow(e-t,2)+Math.pow(e-t,2))}Object.defineProperty(t,“__esModule”,{value:!0}),t=r;t.MAX_EUCLIDEAN_DISTANCE=Math.sqrt(4*Math.pow(255,2))}]);',r.p+“a0de80bb919d7982b92a.worker.js”)}},function(e,t){var r=window.URL||window.webkitURL;e.exports=function(e,t){try{try{var n;try{var o=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;n=new o,n.append(e),n=n.getBlob()}catch(i){n=new Blob()}return new Worker(r.createObjectURL(n))}catch(i){return new Worker(“data:application/javascript,”+encodeURIComponent(e))}}catch(i){return new Worker(t)}}},function(e,t,r){e.exports=function(){return r(17)('!function(t){function e(a){if(r)return r.exports;var n=r={exports:{},id:a,loaded:!1};return t.call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var r={};return e.m=t,e.c=r,e.p=“”,e(0)}([function(t,e,r){“use strict”;function a(t){return t&&t.__esModule?t:{“default”:t}}function n(t,e){for(var r=t.data,a=t.width,n=t.height,o=4*a,s=[],i=0;i<n;i++){for(var u=new Uint8ClampedArray(o+4*e),f=0;f=r;s.push(u)}return s}function o(){try{return btoa(new Uint8ClampedArray())===btoa(new Uint8ClampedArray())?JSON.stringify:btoa}catch(t){return JSON.stringify}}function s(t){var e=t.previousImageData,r=t.currentImageData,a=t.maxWidth,n=e.map(l);self.postMessage({progress:40});var o=r.map(l);self.postMessage({progress:60}),(0,f)(n,o);var s=new Uint8ClampedArray(4*a);n.forEach(function(t,r){t===u.PLACEHOLDER&&e.splice(r,0,s)}),o.forEach(function(t,e){t===u.PLACEHOLDER&&r.splice(e,0,s)})}function i(t){var e=t.previousData,r=t.currentData,a=Math.max(e.width,r.width),o=n(e,a-e.width),i=n(r,a-r.width);return self.postMessage({progress:20}),s({previousImageData:o,currentImageData:i,maxWidth:a}),self.postMessage({progress:85}),{currentData:{data:i,height:i.length,width:a},previousData:{data:o,height:o.length,width:a}}}var u=r(1),f=a(u),l=o();self.addEventListener(“message”,function(t){var e=t.data,r=e.previousData,a=e.currentData,n=i({previousData:r,currentData:a});self.postMessage(n),self.close()})},function(t,e){“use strict”;function r(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e=t;return r}return Array.from(t)}function a(t,e){for(var r=new Array(t),a=0;a=new Int32Array(e);return r}function n(t,e){for(var r=t.length,n=e.length,o=a(r+1,n+1),s=a(r+1,n+1),i=1;i<=r;i++)for(var f=Math.max(1,i-l/2);f<=Math.min(n,i+l/2);f++)t===e?(o[f]=o[f-1]+1,s[f]=u.upLeft):(o[f]=Math.max(o[f],o[f-1]),o[f]===o[f]?s[f]=u.up:s[f]=u.left);return s}function o(t){return new Array(t).fill(f)}function s(t,e,a){for(var n=e.length,s=a.length,i=0,f=t[s];f!==u.none;)f===u.upLeft?(i<0?a.splice.apply(a,.concat(r(o(Math.abs(i))))):i>0&&e.splice.apply(e,.concat(r(o(i)))),n–,s–,i=0):f===u.left?(s–,i++):f===u.up&&(n–,i–),f=t[s];var l=e.length,p=a.length,c=l>p?a:e;c.splice.apply(c,.concat(r(o(Math.abs(l-p)))))}function i(t,e){var r=n(t,e);s(r,t,e)}Object.defineProperty(e,“__esModule”,{value:!0}),e=i;var u={none:0,upLeft:1,up:2,left:3},f=e.PLACEHOLDER=“+”,l=200}]);',r.p+“7c91087e37a93a8cfc20.worker.js”)}},function(e,t,r){“use strict”;function n(e){return e&&e.__esModule?e:{“default”:e}}function o(e){var t=e.previous,r=e.current;return a.createElement(“div”,{className:“SideBySide”},a.createElement(“img”,{className:“SideBySide__image”,role:“presentation”,src:t,title:“Before”}),“ ”,a.createElement(“img”,{className:“SideBySide__image”,role:“presentation”,src:r,title:“After”}))}Object.defineProperty(t,“__esModule”,{value:!0}),t=o;var i=r(1),a=n(i);o.propTypes={previous:i.PropTypes.string.isRequired,current:i.PropTypes.string.isRequired}},function(e,t,r){“use strict”;function n(e){return e&&e.__esModule?e:{“default”:e}}function o(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}function i(e,t){if(!e)throw new ReferenceError(“this hasn't been initialised - super() hasn't been called”);return!t||“object”!=typeof t&&“function”!=typeof t?e:t}function a(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not ”+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,“__esModule”,{value:!0});var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t;n.enumerable=n.enumerable||!1,n.configurable=!0,“value”in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),s=r(1),l=n(s),f=r(21),c=n(f),p=function(e){function t(e){o(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.state={cursorLeft:0,height:“auto”,width:“auto”},r.handleMouseMove=r.handleMouseMove.bind®,r}return a(t,e),u(t,[{key:“componentWillMount”,value:function(){var e=this;this.updateSize(this.props).then(function(t){var r=t.width;e.setState({cursorLeft:r/2})})}},{key:“componentWillReceiveProps”,value:function(e){this.updateSize(e)}},{key:“updateSize”,value:function(e){var t=this,r=e.current,n=e.previous,o=(0,c)(r,n).then(function(e){var r=e.width,n=e.height;return t.setState({width:r,height:n}),{width:r,height:n}});return Promise.resolve(o)}},{key:“handleMouseMove”,value:function(e){this.setState({cursorLeft:e.pageX-e.target.offsetLeft})}},{key:“render”,value:function(){var e=this.props,t=e.previous,r=e.current,n=this.state,o=n.cursorLeft,i=n.height,a=n.width;return l.createElement(“div”,{className:“Swiper”,style:{height:i,width:a},onMouseMove:this.handleMouseMove},l.createElement(“div”,{className:“Swiper__image”,style:{width:o}},l.createElement(“img”,{src:t,role:“presentation”})),l.createElement(“div”,{className:“Swiper__image”,style:{transform:“translateX(”o“px)”,width:a-o}},l.createElement(“img”,{src:r,style:{transform:“translateX(-”o“px)”},role:“presentation”})),l.createElement(“div”,{className:“Swiper__cursor”,style:{transform:“translateX(”o“px)”}}))}}]),t}(l.Component);t=p,p.propTypes={previous:s.PropTypes.string.isRequired,current:s.PropTypes.string.isRequired}},function(e,t){“use strict”;function r(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t=e;return r}return Array.from(e)}function n(){for(var e=arguments.length,t=Array(e),n=0;n=arguments;var o={};return new Promise(function(e,n){function i(e){n(e)}function a(n){var i=this.width,a=this.height;if(o={width:i,height:a},Object.keys(o).length>=t.length){var u=Object.keys(o).map(function(e){return o}),s=Math.max.apply(Math,r(u.map(function(e){return e.width}))),l=Math.max.apply(Math,r(u.map(function(e){return e.height})));e({width:s,height:l})}}t.forEach(function(e,t){var r=new Image;r.onerror=i,r.onload=a.bind(r,t),r.src=e})})}Object.defineProperty(t,“__esModule”,{value:!0}),t=n},function(e,t){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0}),t={DIFF:“Diff”,SIDE_BY_SIDE:“Side-by-side”,SWIPE:“Swipe”}},function(e,t,r){“use strict”;function n(e){return e&&e.__esModule?e:{“default”:e}}function o(e){var t=e.images;return t.length?a.createElement(“div”,null,a.createElement(“h2”,{id:“new”},a.createElement(s,{to:“new”},“New examples (”,t.length,“)”)),t.map(function(e){return a.createElement(f,{key:e.current,image:e})})):null}Object.defineProperty(t,“__esModule”,{value:!0}),t=o;var i=r(1),a=n(i),u=r(7),s=n(u),l=r(24),f=n(l),c=r(8),p=n©;o.propTypes={images:i.PropTypes.arrayOf(i.PropTypes.shape(p)).isRequired}},function(e,t,r){“use strict”;function n(e){return e&&e.__esModule?e:{“default”:e}}function o(e){var t=e.image;return a.createElement(“div”,null,a.createElement(s,{image:t}),a.createElement(“div”,{className:“NewImage__image”,style:{minHeight:t.height}},a.createElement(“img”,{role:“presentation”,src:t.current})))}Object.defineProperty(t,“__esModule”,{value:!0}),t=o;var i=r(1),a=n(i),u=r(6),s=n(u),l=r(8),f=n(l);o.propTypes={image:i.PropTypes.shape(f).isRequired}}]);