(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{Oi8p:function(t,e,n){"use strict";var r=n("q1tI"),i=n.n(r),o=n("6TJK"),a=n("eLAd"),c=n.n(a),s=n("s/Ur"),u=n("mwIZ"),l=n.n(u),f=n("2rbv"),h=n("s1Rf"),d=n("510Z"),p=n("AcpX"),b=n("vOnD"),m=n("vI+N"),v=n("jVrp"),g=n("rGeI");function y(){var t=Object(p.a)(["\n    display: block;\n  "]);return y=function(){return t},t}var w=Object(b.default)(g.a).withConfig({displayName:"styles__Body",componentId:"sc-1b7wsti-0"})(["display:none;",""],h.b.gtsm(y())),_=Object(b.default)(g.c).withConfig({displayName:"styles__Caption",componentId:"sc-1b7wsti-1"})(["& span{display:inline-block;margin-right:16px;color:",";font-weight:",";text-decoration:underline;cursor:pointer;}"],(function(t){return function(t){switch(t){case"blue":return{background:m.a.B100,border:m.a.B200,text:m.a.B500};case"green":return{background:m.a.G100,border:m.a.G200,text:m.a.G500};case"orange":return{background:m.a.O100,border:m.a.O200,text:m.a.O500};case"purple":return{background:m.a.P100,border:m.a.P200,text:m.a.P500};default:return{background:m.a.Y100,border:m.a.Y200,text:m.a.B500}}}(t.colorTheme).text}),v.d.BOLD),x=b.default.div.withConfig({displayName:"styles__Content",componentId:"sc-1b7wsti-2"})(["flex:1 1 100%;",""],(function(t){return"sidebar"===t.type&&Object(b.css)(["display:flex;flex-direction:column-reverse;justify-content:center;"])})),O=b.default.div.withConfig({displayName:"styles__Header",componentId:"sc-1b7wsti-3"})(["",";"],(function(t){return function(t,e){if("card"===e)return Object(b.css)(["margin-bottom:16px;"]);if("column"===e)return"small"===t?Object(b.css)(["margin-bottom:16px;"]):Object(b.css)(["margin-bottom:24px;"])}(t.size,t.type)})),E=Object(b.default)(g.d).withConfig({displayName:"styles__Heading",componentId:"sc-1b7wsti-4"})(["margin-bottom:8px;"]),k=b.default.div.withConfig({displayName:"styles__ImageWrapper",componentId:"sc-1b7wsti-5"})(["position:relative;flex:1 0 ","%;"," "," ",""],4/12*100,(function(t){return"card"===t.type&&Object(b.css)(["margin-bottom:24px;"])}),(function(t){return"card"!==t.type&&Object(b.css)(["margin-left:16px;"])}),(function(t){return"sidebar"===t.type&&Object(b.css)(["flex:1 0 25%;"])})),j=b.default.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-1b7wsti-6"})(["display:flex;flex-direction:column;width:100%;"," "," ",""],(function(t){return"card"!==t.type&&Object(b.css)(["flex-direction:row-reverse;justify-content:space-between;"])}),(function(t){return"column"===t.type&&Object(b.css)(["align-items:center;"])}),(function(t){return"sidebar"===t.type&&Object(b.css)(["justify-content:flex-end;padding-bottom:16px;border-bottom:1px solid ",";"],m.a.B100)}));e.a=function(t){var e=t.category,n=t.date,r=t.excerpt,a=t.title,u=t.heroImageExtended,p=t.selectCategory,b=t.size,m=t.slug,v=t.type,g=t.theme,y=Object(f.d)(),C=Object(s.useMediaQuery)({maxWidth:h.a.mobile-1}),I=l()(r,"length"),M={},N={},z={};return"small"===b&&(I=64),"card"===v&&(N.sizes=["small","regular"],N.theme=g,z.level=300,M.size="small"),"column"===v&&(I=l()(r,"length"),C&&(N.size="small"),"small"===b||C?(M.size="small",N.theme=g,z.level=500):z.level=400),"sidebar"===v&&(N.size="small",z.level=500),i.a.createElement(j,{type:v},l()(u,"image.asset.fluid")&&i.a.createElement(k,{type:v},i.a.createElement(o.Link,{to:"/stories/"+l()(m,"current"),"aria-label":a},i.a.createElement(d.b,Object.assign({fluid:u.image.asset.fluid},u)))),i.a.createElement(x,{type:v},i.a.createElement(O,{size:b,type:v},i.a.createElement(_,N,e&&i.a.createElement("span",{onClick:function(){return p(e.slug.current)}},e.title),n&&y(new Date(n),"LLL d, yyyy"))),i.a.createElement(o.Link,{to:"/stories/"+l()(m,"current"),"aria-label":a},i.a.createElement(E,z,a),"sidebar"!==v&&i.a.createElement(w,M,c()(r,{length:I,separator:/,? +/})))))}},QIyF:function(t,e,n){var r=n("Kz5y");t.exports=function(){return r.Date.now()}},We3r:function(t,e,n){"use strict";var r=n("q1tI"),i=n.n(r),o=n("vOnD"),a=n("vI+N"),c=n("jVrp"),s=n("i6OX"),u=o.default.input.attrs({type:"checkbox"}).withConfig({displayName:"Checkbox__NativeCheckbox",componentId:"sc-1rimt95-0"})(["position:absolute;opacity:0;margin:0;height:16px;width:16px;cursor:pointer;"]),l=o.default.div.withConfig({displayName:"Checkbox__StyledCheckbox",componentId:"sc-1rimt95-1"})(["display:flex;align-items:center;justify-content:center;position:relative;height:18px;width:18px;background-color:",";border:2px solid ",";border-radius:",";cursor:pointer;"],(function(t){return t.checked?a.a.B500:a.a.N0}),(function(t){return t.checked?a.a.B500:a.a.B100}),(function(t){return t.round?"9px":"3px"})),f=Object(o.default)(s.c).withConfig({displayName:"Checkbox__StyledIcon",componentId:"sc-1rimt95-2"})(["fill:",";height:10px;pointer-events:none;transform:translateY(0.5px);"],(function(t){return t.checked?a.a.N0:"transparent"})),h=o.default.div.withConfig({displayName:"Checkbox__StyledLabel",componentId:"sc-1rimt95-3"})(["font-family:",";margin-left:12px;"],(function(t){return Object(c.a)(t.theme.locale).SANS})),d=o.default.label.withConfig({displayName:"Checkbox__StyledWrapper",componentId:"sc-1rimt95-4"})(["display:flex;align-items:center;"]);e.a=function(t){var e=t.checked,n=t.label,r=t.name,o=t.onChange,a=t.round;return i.a.createElement(d,null,i.a.createElement(l,{checked:e,round:a},i.a.createElement(u,{checked:e,name:r,onChange:o}),i.a.createElement(f,{checked:e,name:"check"})),i.a.createElement(h,null,n))}},bdgK:function(t,e,n){"use strict";(function(t){var n=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var a=["top","right","bottom","left","width","height","size","weight"],c="undefined"!=typeof MutationObserver,s=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,i=0;function a(){n&&(n=!1,t()),r&&s()}function c(){o(a)}function s(){var t=Date.now();if(n){if(t-i<2)return;r=!0}else n=!0,r=!1,setTimeout(c,e);i=t}return s}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;a.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),u=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},l=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||i},f=v(0,0,0,0);function h(t){return parseFloat(t)||0}function d(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+h(t["border-"+n+"-width"])}),0)}function p(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return f;var r=l(t).getComputedStyle(t),i=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=t["padding-"+i];e[i]=h(o)}return e}(r),o=i.left+i.right,a=i.top+i.bottom,c=h(r.width),s=h(r.height);if("border-box"===r.boxSizing&&(Math.round(c+o)!==e&&(c-=d(r,"left","right")+o),Math.round(s+a)!==n&&(s-=d(r,"top","bottom")+a)),!function(t){return t===l(t).document.documentElement}(t)){var u=Math.round(c+o)-e,p=Math.round(s+a)-n;1!==Math.abs(u)&&(c-=u),1!==Math.abs(p)&&(s-=p)}return v(i.left,i.top,c,s)}var b="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof l(t).SVGGraphicsElement}:function(t){return t instanceof l(t).SVGElement&&"function"==typeof t.getBBox};function m(t){return r?b(t)?function(t){var e=t.getBBox();return v(0,0,e.width,e.height)}(t):p(t):f}function v(t,e,n,r){return{x:t,y:e,width:n,height:r}}var g=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=v(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=m(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),y=function(t,e){var n,r,i,o,a,c,s,l=(r=(n=e).x,i=n.y,o=n.width,a=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(c.prototype),u(s,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),s);u(this,{target:t,contentRect:l})},w=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof l(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new g(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof l(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new y(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),_="undefined"!=typeof WeakMap?new WeakMap:new n,x=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),r=new w(e,n,this);_.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){x.prototype[t]=function(){var e;return(e=_.get(this))[t].apply(e,arguments)}}));var O=void 0!==i.ResizeObserver?i.ResizeObserver:x;e.a=O}).call(this,n("yLpj"))},gpda:function(t,e,n){"use strict";var r=n("q1tI"),i=n.n(r),o=n("vOnD"),a=n("vI+N"),c=n("s1Rf"),s=n("i6OX"),u=n("vT6P"),l=Object(o.default)(s.a).withConfig({displayName:"NavButton__ArrowLeft",componentId:"sc-14xxzae-0"})(["position:absolute;transform:translateX(40%);transition:transform 150ms ease;"]),f=Object(o.default)(s.b).withConfig({displayName:"NavButton__ArrowRight",componentId:"sc-14xxzae-1"})(["position:absolute;transform:translateX(-40%);transition:transform 150ms ease;"]),h=o.default.button.withConfig({displayName:"NavButton__Wrapper",componentId:"sc-14xxzae-2"})(["display:flex;align-items:center;justify-content:center;position:relative;cursor:pointer;padding:0;appearance:none;background-color:transparent;border:0;outline:0;&:hover ","{transform:translateX(calc(40% - 10px));}&:hover ","{transform:translateX(calc(-40% + 10px));}"," "," ",""],l,f,(function(t){return"small"===t.button&&Object(o.css)(["height:32px;width:32px;"])}),(function(t){return"regular"===t.button&&Object(o.css)(["height:48px;width:48px;"])}),(function(t){return"large"===t.button&&Object(o.css)(["height:72px;width:72px;"])}));function d(t){switch(t){case"blue":return{button:a.a.B200,text:a.a.B500};case"green":return{button:a.a.G200,text:a.a.G500};case"orange":return{button:a.a.O200,text:a.a.O500};case"purple":return{button:a.a.P200,text:a.a.P500};default:return{button:a.a.Y500,text:a.a.B500}}}e.a=function(t){var e=t.direction,n=t.onClick,r=t.size,o=t.sizes,a=t.theme,s=Object(c.c)(o),p=r||s||"regular",b={small:{arrow:32,blob:40},regular:{arrow:40,blob:48},large:{arrow:54,blob:72}},m={prev:i.a.createElement(i.a.Fragment,null,i.a.createElement(u.b,{color:d(a).button,size:b[p].blob}),i.a.createElement(l,{color:d(a).text,size:b[p].arrow})),next:i.a.createElement(i.a.Fragment,null,i.a.createElement(u.d,{color:d(a).button,size:b[p].blob}),i.a.createElement(f,{color:d(a).text,size:b[p].arrow}))};return i.a.createElement(h,{buttonSize:p,onClick:n,"aria-label":e},m[e])}},"p+tv":function(t,e,n){"use strict";var r=n("q1tI"),i=n.n(r),o=n("bdgK");function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){a(t,e,n[e])}))}return t}function u(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(s){i=!0,o=s}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var f={cursor:"pointer"},h=function(t){var e=t.index,n=t.onClick,r=t.photo,o=t.margin,a=t.direction,u=t.top,l=t.left,h=t.key,d={margin:o,display:"block"};"column"===a&&(d.position="absolute",d.left=l,d.top=u);return i.a.createElement("img",c({key:h,style:n?s({},d,f):d},r,{onClick:n?function(t){n(t,{photo:r,index:e})}:null}))},d=function(t,e){return e||(e=0),Number(Math.round(t+"e"+e)+"e-"+e)},p=function(t){var e=t.width,n=t.height;return d(e/n,2)};function b(t){this.content=[],this.scoreFunction=t}b.prototype={push:function(t){this.content.push(t),this.bubbleUp(this.content.length-1)},pop:function(){var t=this.content[0],e=this.content.pop();return this.content.length>0&&(this.content[0]=e,this.sinkDown(0)),t},remove:function(t){for(var e=this.content.length,n=0;n<e;n++)if(this.content[n]==t){var r=this.content.pop();if(n==e-1)break;this.content[n]=r,this.bubbleUp(n),this.sinkDown(n);break}},size:function(){return this.content.length},bubbleUp:function(t){for(var e=this.content[t],n=this.scoreFunction(e);t>0;){var r=Math.floor((t+1)/2)-1,i=this.content[r];if(n>=this.scoreFunction(i))break;this.content[r]=e,this.content[t]=i,t=r}},sinkDown:function(t){for(var e=this.content.length,n=this.content[t],r=this.scoreFunction(n);;){var i=2*(t+1),o=i-1,a=null;if(o<e){var c=this.content[o],s=this.scoreFunction(c);s<r&&(a=o)}if(i<e){var u=this.content[i];this.scoreFunction(u)<(null==a?r:s)&&(a=i)}if(null==a)break;this.content[t]=this.content[a],this.content[a]=n,t=a}}};var m=function(t,e,n){return function(t,e){for(var n=[],r=e;r;)n.push(r),t[r],r=t[r];return n.reverse()}(function(t,e,n){var r={},i={},o={};o[e]=0;var a=new b((function(t){return t.weight}));for(a.push({id:e,weight:0});a.size();){var c=a.pop(),s=c.id;if(!i[s]){var u=t(s)||{};for(var l in i[s]=1,u){var f=c.weight+u[l];(void 0===o[l]||o[l]>f)&&(o[l]=f,a.push({id:l,weight:f}),r[l]=s)}}}if(void 0===o[n])throw new Error("There is no path from ".concat(e," to ").concat(n));return r}(t,e,n),n)},v=function(t,e,n){return(e-t.length*(2*n))/t.reduce((function(t,e){return t+p(e)}),0)},g=function(t,e,n,r,i,o){var a=t.slice(e,n),c=v(a,r,o);return Math.pow(Math.abs(c-i),2)},y=function(t){var e=t.containerWidth,n=t.limitNodeSearch,r=t.targetRowHeight,i=t.margin,o=t.photos,a=function(t,e,n,r,i){return function(o){var a={};a[+(o=+o)]=0;for(var c=o+1;c<n.length+1&&!(c-o>r);++c)a[c.toString()]=g(n,o,c,e,t,i);return a}}(r,e,o,n,i),c=m(a,"0",o.length);c=c.map((function(t){return+t}));for(var s=1;s<c.length;++s)for(var u=o.slice(c[s-1],c[s]),l=v(u,e,i),f=c[s-1];f<c[s];++f)o[f].width=d(l*p(o[f]),1),o[f].height=l;return o},w=i.a.memo((function(t){var e=t.photos,n=t.onClick,a=t.direction,c=t.margin,f=t.limitNodeSearch,p=t.targetRowHeight,b=t.columns,m=t.renderImage,v=l(Object(r.useState)(0),2),g=v[0],w=v[1],_=Object(r.useRef)(null);Object(r.useLayoutEffect)((function(){var t=null,e=new o.a((function(e){var n=e[0].contentRect.width;g!==n&&(t=window.requestAnimationFrame((function(){w(Math.floor(n))})))}));return e.observe(_.current),function(){e.disconnect(),window.cancelAnimationFrame(t)}}));var x=function(t,r){var i=r.index;n(t,{index:i,photo:e[i],previous:e[i-1]||null,next:e[i+1]||null})};if(!g)return i.a.createElement("div",{ref:_}," ");var O,E,k=g-1;"row"===a&&("function"==typeof f&&(f=f(g)),"function"==typeof p&&(p=p(g)),void 0===f&&(f=2,g>=450&&(f=function(t){var e=t.targetRowHeight,n=t.containerWidth;return d(n/e/1.5)+8}({containerWidth:g,targetRowHeight:p}))),O={display:"flex",flexWrap:"wrap",flexDirection:"row"},E=y({containerWidth:k,limitNodeSearch:f,targetRowHeight:p,margin:c,photos:e})),"column"===a&&("function"==typeof b&&(b=b(g)),void 0===b&&(b=1,g>=500&&(b=2),g>=900&&(b=3),g>=1500&&(b=4)),O={position:"relative"},E=function(t){for(var e=t.photos,n=t.columns,r=t.containerWidth,i=t.margin,o=(r-2*i*n)/n,a=e.map((function(t){var e=t.height/t.width*o;return s({},t,{width:d(o,1),height:d(e,1)})})),c=[],u=[],l=0;l<n;l++)c[l]=d(l*(o+2*i),1),u[l]=0;return a.map((function(t){var e=u.reduce((function(t,e,n){return t=e<u[t]?n:t}),0);t.top=u[e],t.left=c[e],u[e]=u[e]+t.height+2*i;var n=u.reduce((function(t,e,n){return t=e>u[t]?n:t}),0);return t.containerHeight=u[n],t}))}({containerWidth:k,columns:b,margin:c,photos:e}),O.height=E[E.length-1].containerHeight);var j=m||h;return i.a.createElement("div",{className:"react-photo-gallery--gallery"},i.a.createElement("div",{ref:_,style:O},E.map((function(t,e){var r=t.left,i=t.top,o=t.containerHeight,s=u(t,["left","top","containerHeight"]);return j({left:r,top:i,key:t.key||t.src,containerHeight:o,index:e,margin:c,direction:a,onClick:n?x:null,photo:s})}))))}));w.defaultProps={margin:2,direction:"row",targetRowHeight:300},e.a=w},sEfC:function(t,e,n){var r=n("GoyQ"),i=n("QIyF"),o=n("tLB3"),a=Math.max,c=Math.min;t.exports=function(t,e,n){var s,u,l,f,h,d,p=0,b=!1,m=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(e){var n=s,r=u;return s=u=void 0,p=e,f=t.apply(r,n)}function y(t){return p=t,h=setTimeout(_,e),b?g(t):f}function w(t){var n=t-d;return void 0===d||n>=e||n<0||m&&t-p>=l}function _(){var t=i();if(w(t))return x(t);h=setTimeout(_,function(t){var n=e-(t-d);return m?c(n,l-(t-p)):n}(t))}function x(t){return h=void 0,v&&s?g(t):(s=u=void 0,f)}function O(){var t=i(),n=w(t);if(s=arguments,u=this,d=t,n){if(void 0===h)return y(d);if(m)return clearTimeout(h),h=setTimeout(_,e),g(d)}return void 0===h&&(h=setTimeout(_,e)),f}return e=o(e)||0,r(n)&&(b=!!n.leading,l=(m="maxWait"in n)?a(o(n.maxWait)||0,e):l,v="trailing"in n?!!n.trailing:v),O.cancel=function(){void 0!==h&&clearTimeout(h),p=0,s=d=u=h=void 0},O.flush=function(){return void 0===h?f:x(i())},O}}}]);
//# sourceMappingURL=cd6cbde5ca070167a8ff70ee3a14c2ad22c7e2e3-d90511fee445f899c20d.js.map