-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path7-7df65c4f733bff5c67b3.js
117 lines (93 loc) · 28 KB
/
7-7df65c4f733bff5c67b3.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{153:function(e,t,i){"use strict";
/*! @license is-dom-node v1.0.4
Copyright 2018 Fisssion LLC.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/var n=function(e){return"object"==typeof window.Node?e instanceof window.Node:null!==e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName};
/*! @license is-dom-node-list v1.2.1
Copyright 2018 Fisssion LLC.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/var r=function(e){var t=Object.prototype.toString.call(e);return"object"==typeof window.NodeList?e instanceof window.NodeList:null!==e&&"object"==typeof e&&"number"==typeof e.length&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(t)&&(0===e.length||n(e[0]))};
/*! @license Tealight v0.3.6
Copyright 2018 Fisssion LLC.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/var o=function(e,t){if(void 0===t&&(t=document),e instanceof Array)return e.filter(n);if(n(e))return[e];if(r(e))return Array.prototype.slice.call(e);if("string"==typeof e)try{var i=t.querySelectorAll(e);return Array.prototype.slice.call(i)}catch(e){return[]}return[]};
/*! @license Rematrix v0.3.0
Copyright 2018 Julian Lloyd.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/function s(e){if(e.constructor!==Array)throw new TypeError("Expected array.");if(16===e.length)return e;if(6===e.length){var t=a();return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}throw new RangeError("Expected array with either 6 or 16 values.")}function a(){for(var e=[],t=0;t<16;t++)t%5==0?e.push(1):e.push(0);return e}function l(e,t){for(var i=s(e),n=s(t),r=[],o=0;o<4;o++)for(var a=[i[o],i[o+4],i[o+8],i[o+12]],l=0;l<4;l++){var c=4*l,d=[n[c],n[c+1],n[c+2],n[c+3]],u=a[0]*d[0]+a[1]*d[1]+a[2]*d[2]+a[3]*d[3];r[o+c]=u}return r}function c(e){var t=Math.PI/180*e,i=a();return i[0]=i[5]=Math.cos(t),i[1]=i[4]=Math.sin(t),i[4]*=-1,i}function d(e,t){var i=a();return i[0]=e,i[5]="number"==typeof t?t:e,i}
/*! @license miniraf v1.0.0
Copyright 2018 Fisssion LLC.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
var u,f=(u=Date.now(),function(e){var t=Date.now();t-u>16?(u=t,e(t)):setTimeout(function(){return f(e)},0)}),h=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||f,p={delay:0,distance:"0",duration:600,easing:"cubic-bezier(0.5, 0, 0, 1)",interval:0,opacity:0,origin:"bottom",rotate:{x:0,y:0,z:0},scale:1,cleanup:!1,container:document.documentElement,desktop:!0,mobile:!0,reset:!1,useDelay:"always",viewFactor:0,viewOffset:{top:0,right:0,bottom:0,left:0},afterReset:function(){},afterReveal:function(){},beforeReset:function(){},beforeReveal:function(){}};var m={success:function(){document.documentElement.classList.add("sr"),document.body?document.body.style.height="100%":document.addEventListener("DOMContentLoaded",function(){document.body.style.height="100%"})},failure:function(){return document.documentElement.classList.remove("sr"),{clean:function(){},destroy:function(){},reveal:function(){},sync:function(){},get noop(){return!0}}}};function y(e){return null!==e&&e instanceof Object&&(e.constructor===Object||"[object Object]"===Object.prototype.toString.call(e))}function g(e,t){if(y(e))return Object.keys(e).forEach(function(i){return t(e[i],i,e)});if(e instanceof Array)return e.forEach(function(i,n){return t(i,n,e)});throw new TypeError("Expected either an array or object literal.")}function v(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];if(this.constructor.debug&&console){var n="%cScrollReveal: "+e;t.forEach(function(e){return n+="\n — "+e}),console.log(n,"color: #ea654b;")}}function b(){var e=this,t={active:[],stale:[]},i={active:[],stale:[]},n={active:[],stale:[]};try{g(o("[data-sr-id]"),function(e){var i=parseInt(e.getAttribute("data-sr-id"));t.active.push(i)})}catch(e){throw e}g(this.store.elements,function(e){-1===t.active.indexOf(e.id)&&t.stale.push(e.id)}),g(t.stale,function(t){return delete e.store.elements[t]}),g(this.store.elements,function(e){-1===n.active.indexOf(e.containerId)&&n.active.push(e.containerId),e.hasOwnProperty("sequence")&&-1===i.active.indexOf(e.sequence.id)&&i.active.push(e.sequence.id)}),g(this.store.containers,function(e){-1===n.active.indexOf(e.id)&&n.stale.push(e.id)}),g(n.stale,function(t){var i=e.store.containers[t].node;i.removeEventListener("scroll",e.delegate),i.removeEventListener("resize",e.delegate),delete e.store.containers[t]}),g(this.store.sequences,function(e){-1===i.active.indexOf(e.id)&&i.stale.push(e.id)}),g(i.stale,function(t){return delete e.store.sequences[t]})}function w(e){var t,i=this;try{g(o(e),function(e){var n=e.getAttribute("data-sr-id");if(null!==n){t=!0;var r=i.store.elements[n];r.callbackTimer&&window.clearTimeout(r.callbackTimer.clock),e.setAttribute("style",r.styles.inline.generated),e.removeAttribute("data-sr-id"),delete i.store.elements[n]}})}catch(e){return v.call(this,"Clean failed.",e.message)}if(t)try{b.call(this)}catch(e){return v.call(this,"Clean failed.",e.message)}}var E=function(){var e={},t=document.documentElement.style;function i(i,n){if(void 0===n&&(n=t),i&&"string"==typeof i){if(e[i])return e[i];if("string"==typeof n[i])return e[i]=i;if("string"==typeof n["-webkit-"+i])return e[i]="-webkit-"+i;throw new RangeError('Unable to find "'+i+'" style property.')}throw new TypeError("Expected a string.")}return i.clearCache=function(){return e={}},i}();function S(e){var t=window.getComputedStyle(e.node),i=t.position,n=e.config,r={},o=(e.node.getAttribute("style")||"").match(/[\w-]+\s*:\s*[^;]+\s*/gi)||[];r.computed=o?o.map(function(e){return e.trim()}).join("; ")+";":"",r.generated=o.some(function(e){return e.match(/visibility\s?:\s?visible/i)})?r.computed:o.concat(["visibility: visible"]).map(function(e){return e.trim()}).join("; ")+";";var u,f,h,p=parseFloat(t.opacity),m=isNaN(parseFloat(n.opacity))?parseFloat(t.opacity):parseFloat(n.opacity),y={computed:p!==m?"opacity: "+p+";":"",generated:p!==m?"opacity: "+m+";":""},g=[];if(parseFloat(n.distance)){var v="top"===n.origin||"bottom"===n.origin?"Y":"X",b=n.distance;"top"!==n.origin&&"left"!==n.origin||(b=/^-/.test(b)?b.substr(1):"-"+b);var w=b.match(/(^-?\d+\.?\d?)|(em$|px$|%$)/g),S=w[0];switch(w[1]){case"em":b=parseInt(t.fontSize)*S;break;case"px":b=S;break;case"%":b="Y"===v?e.node.getBoundingClientRect().height*S/100:e.node.getBoundingClientRect().width*S/100;break;default:throw new RangeError("Unrecognized or missing distance unit.")}"Y"===v?g.push(function(e){var t=a();return t[13]=e,t}(b)):g.push(function(e){var t=a();return t[12]=e,t}(b))}n.rotate.x&&g.push((u=n.rotate.x,f=Math.PI/180*u,(h=a())[5]=h[10]=Math.cos(f),h[6]=h[9]=Math.sin(f),h[9]*=-1,h)),n.rotate.y&&g.push(function(e){var t=Math.PI/180*e,i=a();return i[0]=i[10]=Math.cos(t),i[2]=i[8]=Math.sin(t),i[2]*=-1,i}(n.rotate.y)),n.rotate.z&&g.push(c(n.rotate.z)),1!==n.scale&&(0===n.scale?g.push(d(2e-4)):g.push(d(n.scale)));var j={};if(g.length){j.property=E("transform"),j.computed={raw:t[j.property],matrix:function(e){if("string"==typeof e){var t=e.match(/matrix(3d)?\(([^)]+)\)/);if(t)return s(t[2].split(", ").map(parseFloat))}return a()}(t[j.property])},g.unshift(j.computed.matrix);var L=g.reduce(l);j.generated={initial:j.property+": matrix3d("+L.join(", ")+");",final:j.property+": matrix3d("+j.computed.matrix.join(", ")+");"}}else j.generated={initial:"",final:""};var T={};if(y.generated||j.generated.initial){T.property=E("transition"),T.computed=t[T.property],T.fragments=[];var R=n.delay,k=n.duration,O=n.easing;y.generated&&T.fragments.push({delayed:"opacity "+k/1e3+"s "+O+" "+R/1e3+"s",instant:"opacity "+k/1e3+"s "+O+" 0s"}),j.generated.initial&&T.fragments.push({delayed:j.property+" "+k/1e3+"s "+O+" "+R/1e3+"s",instant:j.property+" "+k/1e3+"s "+O+" 0s"}),T.computed&&!T.computed.match(/all 0s/)&&T.fragments.unshift({delayed:T.computed,instant:T.computed});var I=T.fragments.reduce(function(e,t,i){return e.delayed+=0===i?t.delayed:", "+t.delayed,e.instant+=0===i?t.instant:", "+t.instant,e},{delayed:"",instant:""});T.generated={delayed:T.property+": "+I.delayed+";",instant:T.property+": "+I.instant+";"}}else T.generated={delayed:"",instant:""};return{inline:r,opacity:y,position:i,transform:j,transition:T}}function j(e,t){void 0===t&&(t={});var i=t.pristine||this.pristine,n="always"===e.config.useDelay||"onload"===e.config.useDelay&&i||"once"===e.config.useDelay&&!e.seen,r=e.visible&&!e.revealed,o=!e.visible&&e.revealed&&e.config.reset;return t.reveal||r?function(e,t){var i=[e.styles.inline.generated,e.styles.opacity.computed,e.styles.transform.generated.final];t?i.push(e.styles.transition.generated.delayed):i.push(e.styles.transition.generated.instant);e.revealed=e.seen=!0,e.node.setAttribute("style",i.filter(function(e){return""!==e}).join(" ")),L.call(this,e,t)}.call(this,e,n):t.reset||o?function(e){var t=[e.styles.inline.generated,e.styles.opacity.generated,e.styles.transform.generated.initial,e.styles.transition.generated.instant];e.revealed=!1,e.node.setAttribute("style",t.filter(function(e){return""!==e}).join(" ")),L.call(this,e)}.call(this,e):void 0}function L(e,t){var i=this,n=t?e.config.duration+e.config.delay:e.config.duration,r=e.revealed?e.config.beforeReveal:e.config.beforeReset,o=e.revealed?e.config.afterReveal:e.config.afterReset,s=0;e.callbackTimer&&(s=Date.now()-e.callbackTimer.start,window.clearTimeout(e.callbackTimer.clock)),r(e.node),e.callbackTimer={start:Date.now(),clock:window.setTimeout(function(){o(e.node),e.callbackTimer=null,e.revealed&&!e.config.reset&&e.config.cleanup&&w.call(i,e.node)},n-s)}}var T,R=(T=0,function(){return T++});function k(e,t){if(void 0===t&&(t=this.pristine),!e.visible&&e.revealed&&e.config.reset)return j.call(this,e,{reset:!0});var i=this.store.sequences[e.sequence.id],n=e.sequence.index;if(i){var r=new I(i,"visible",this.store),o=new I(i,"revealed",this.store);if(i.models={visible:r,revealed:o},!o.body.length){var s=i.members[r.body[0]],a=this.store.elements[s];if(a)return x.call(this,i,r.body[0],-1,t),x.call(this,i,r.body[0],1,t),j.call(this,a,{reveal:!0,pristine:t})}if(!i.blocked.head&&n===[].concat(o.head).pop()&&n>=[].concat(r.body).shift())return x.call(this,i,n,-1,t),j.call(this,e,{reveal:!0,pristine:t});if(!i.blocked.foot&&n===[].concat(o.foot).shift()&&n<=[].concat(r.body).pop())return x.call(this,i,n,1,t),j.call(this,e,{reveal:!0,pristine:t})}}function O(e){var t=Math.abs(e);if(isNaN(t))throw new RangeError("Invalid sequence interval.");this.id=R(),this.interval=Math.max(t,16),this.members=[],this.models={},this.blocked={head:!1,foot:!1}}function I(e,t,i){var n=this;this.head=[],this.body=[],this.foot=[],g(e.members,function(e,r){var o=i.elements[e];o&&o[t]&&n.body.push(r)}),this.body.length&&g(e.members,function(e,r){var o=i.elements[e];o&&!o[t]&&(r<n.body[0]?n.head.push(r):n.foot.push(r))})}function x(e,t,i,n){var r=this,o=["head",null,"foot"][1+i],s=e.members[t+i],a=this.store.elements[s];e.blocked[o]=!0,setTimeout(function(){e.blocked[o]=!1,a&&k.call(r,a,n)},e.interval)}function z(){var e=this;b.call(this),g(this.store.elements,function(e){var t=[e.styles.inline.generated];e.visible?(t.push(e.styles.opacity.computed),t.push(e.styles.transform.generated.final)):(t.push(e.styles.opacity.generated),t.push(e.styles.transform.generated.initial)),e.node.setAttribute("style",t.filter(function(e){return""!==e}).join(" "))}),g(this.store.containers,function(t){var i=t.node===document.documentElement?window:t.node;i.addEventListener("scroll",e.delegate),i.addEventListener("resize",e.delegate)}),this.delegate(),this.initTimeout=null}function q(e){return void 0===e&&(e=navigator.userAgent),/Android|iPhone|iPad|iPod/i.test(e)}function A(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];if(y(e))return g(t,function(t){g(t,function(t,i){y(t)?(e[i]&&y(e[i])||(e[i]={}),A(e[i],t)):e[i]=t})}),e;throw new TypeError("Target must be an object literal.")}function N(e,t,i){var n=this;void 0===t&&(t={}),void 0===i&&(i=!1);var r,s=[],a=t.interval||p.interval;try{a&&(r=new O(a));var l=o(e);if(!l.length)throw new Error("Invalid reveal target.");var c=l.reduce(function(e,i){var a={},l=i.getAttribute("data-sr-id");l?(A(a,n.store.elements[l]),a.node.setAttribute("style",a.styles.inline.computed)):(a.id=R(),a.node=i,a.seen=!1,a.revealed=!1,a.visible=!1);var c=A({},a.config||n.defaults,t);if(!c.mobile&&q()||!c.desktop&&!q())return l&&w.call(n,a),e;var d,u=o(c.container)[0];if(!u)throw new Error("Invalid container.");return u.contains(i)?(null===(d=function(e){var t=[],i=arguments.length-1;for(;i-- >0;)t[i]=arguments[i+1];var n=null;return g(t,function(t){g(t,function(t){null===n&&t.node===e&&(n=t.id)})}),n}(u,s,n.store.containers))&&(d=R(),s.push({id:d,node:u})),a.config=c,a.containerId=d,a.styles=S(a),r&&(a.sequence={id:r.id,index:r.members.length},r.members.push(a.id)),e.push(a),e):e},[]);g(c,function(e){n.store.elements[e.id]=e,e.node.setAttribute("data-sr-id",e.id)})}catch(e){return v.call(this,"Reveal failed.",e.message)}g(s,function(e){n.store.containers[e.id]={id:e.id,node:e.node}}),r&&(this.store.sequences[r.id]=r),!0!==i&&(this.store.history.push({target:e,options:t}),this.initTimeout&&window.clearTimeout(this.initTimeout),this.initTimeout=window.setTimeout(z.bind(this),0))}var M=Math.sign||function(e){return(e>0)-(e<0)||+e};function P(e,t){var i=t?e.node.clientHeight:e.node.offsetHeight,n=t?e.node.clientWidth:e.node.offsetWidth,r=0,o=0,s=e.node;do{isNaN(s.offsetTop)||(r+=s.offsetTop),isNaN(s.offsetLeft)||(o+=s.offsetLeft),s=s.offsetParent}while(s);return{bounds:{top:r,right:o+n,bottom:r+i,left:o},height:i,width:n}}function D(e,t){var i=this;void 0===e&&(e={type:"init"}),void 0===t&&(t=this.store.elements),h(function(){var n="init"===e.type||"resize"===e.type;g(i.store.containers,function(e){n&&(e.geometry=P.call(i,e,!0));var t=function(e){var t,i;return e.node===document.documentElement?(t=window.pageYOffset,i=window.pageXOffset):(t=e.node.scrollTop,i=e.node.scrollLeft),{top:t,left:i}}.call(i,e);e.scroll&&(e.direction={x:M(t.left-e.scroll.left),y:M(t.top-e.scroll.top)}),e.scroll=t}),g(t,function(e){n&&(e.geometry=P.call(i,e)),e.visible=function(e){void 0===e&&(e={});var t=this.store.containers[e.containerId];if(t){var i=Math.max(0,Math.min(1,e.config.viewFactor)),n=e.config.viewOffset,r=e.geometry.bounds.top+e.geometry.height*i,o=e.geometry.bounds.right-e.geometry.width*i,s=e.geometry.bounds.bottom-e.geometry.height*i,a=e.geometry.bounds.left+e.geometry.width*i,l=t.geometry.bounds.top+t.scroll.top+n.top,c=t.geometry.bounds.right+t.scroll.left-n.right,d=t.geometry.bounds.bottom+t.scroll.top-n.bottom,u=t.geometry.bounds.left+t.scroll.left+n.left;return r<d&&o>u&&s>l&&a<c||"fixed"===e.styles.position}}.call(i,e)}),g(t,function(e){e.sequence?k.call(i,e):j.call(i,e)}),i.pristine=!1})}var V,W,C,F,G,_,B,H,J="4.0.4";function Y(e){var t;if(void 0===e&&(e={}),void 0===this||Object.getPrototypeOf(this)!==Y.prototype)return new Y(e);if(!Y.isSupported())return v.call(this,"Instantiation failed.","This browser is not supported."),m.failure();try{t=A({},_||p,e)}catch(e){return v.call(this,"Invalid configuration.",e.message),m.failure()}try{if(!o(t.container)[0])throw new Error("Invalid container.")}catch(e){return v.call(this,e.message),m.failure()}return!(_=t).mobile&&q()||!_.desktop&&!q()?(v.call(this,"This device is disabled.","desktop: "+_.desktop,"mobile: "+_.mobile),m.failure()):(m.success(),this.store={containers:{},elements:{},history:[],sequences:{}},this.pristine=!0,V=V||D.bind(this),W=W||function(){var e=this;g(this.store.elements,function(e){e.node.setAttribute("style",e.styles.inline.generated),e.node.removeAttribute("data-sr-id")}),g(this.store.containers,function(t){var i=t.node===document.documentElement?window:t.node;i.removeEventListener("scroll",e.delegate),i.removeEventListener("resize",e.delegate)}),this.store={containers:{},elements:{},history:[],sequences:{}}}.bind(this),C=C||N.bind(this),F=F||w.bind(this),G=G||function(){var e=this;g(this.store.history,function(t){N.call(e,t.target,t.options,!0)}),z.call(this)}.bind(this),Object.defineProperty(this,"delegate",{get:function(){return V}}),Object.defineProperty(this,"destroy",{get:function(){return W}}),Object.defineProperty(this,"reveal",{get:function(){return C}}),Object.defineProperty(this,"clean",{get:function(){return F}}),Object.defineProperty(this,"sync",{get:function(){return G}}),Object.defineProperty(this,"defaults",{get:function(){return _}}),Object.defineProperty(this,"version",{get:function(){return J}}),Object.defineProperty(this,"noop",{get:function(){return!1}}),H||(H=this))}Y.isSupported=function(){return("transform"in(e=document.documentElement.style)||"WebkitTransform"in e)&&function(){var e=document.documentElement.style;return"transition"in e||"WebkitTransition"in e}();var e},Object.defineProperty(Y,"debug",{get:function(){return B||!1},set:function(e){return B="boolean"==typeof e?e:B}}),Y();t.a=Y},211:function(e,t,i){"use strict";var n=i(33);t.__esModule=!0,t.default=void 0;var r,o=n(i(7)),s=n(i(49)),a=n(i(158)),l=n(i(159)),c=n(i(0)),d=n(i(4)),u=function(e){var t=(0,l.default)({},e);return t.resolutions&&(t.fixed=t.resolutions,delete t.resolutions),t.sizes&&(t.fluid=t.sizes,delete t.sizes),t},f={},h=function(e){var t=u(e),i=t.fluid?t.fluid.src:t.fixed.src;return!!f[i]||(f[i]=!0,!1)},p=[];var m=function(e,t){(void 0===r&&"undefined"!=typeof window&&window.IntersectionObserver&&(r=new window.IntersectionObserver(function(e){e.forEach(function(e){p.forEach(function(t){t[0]===e.target&&(e.isIntersecting||e.intersectionRatio>0)&&(r.unobserve(t[0]),t[1]())})})},{rootMargin:"200px"})),r).observe(e),p.push([e,t])},y=function(e){var t=e.src?'src="'+e.src+'" ':'src="" ',i=e.sizes?'sizes="'+e.sizes+'" ':"",n=e.srcSetWebp?"<source type='image/webp' srcSet=\""+e.srcSetWebp+'" '+i+"/>":"",r=e.srcSet?'<source srcSet="'+e.srcSet+'" '+i+"/>":"",o=e.title?'title="'+e.title+'" ':"",s=e.alt?'alt="'+e.alt+'" ':'alt="" ',a=e.width?'width="'+e.width+'" ':"",l=e.height?'height="'+e.height+'" ':"",c=e.opacity?e.opacity:"1";return"<picture>"+n+r+"<img "+a+l+t+s+o+'style="position:absolute;top:0;left:0;transition:opacity 0.5s;transition-delay:'+(e.transitionDelay?e.transitionDelay:"0.5s")+";opacity:"+c+';width:100%;height:100%;object-fit:cover;object-position:center"/></picture>'},g=c.default.forwardRef(function(e,t){var i=e.style,n=e.onLoad,r=e.onError,o=(0,a.default)(e,["style","onLoad","onError"]);return c.default.createElement("img",(0,l.default)({},o,{onLoad:n,onError:r,ref:t,style:(0,l.default)({position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"cover",objectPosition:"center"},i)}))});g.propTypes={style:d.default.object,onError:d.default.func,onLoad:d.default.func};var v=function(e){function t(t){var i;i=e.call(this,t)||this;var n=!0,r=!0,o=!1,a=t.fadeIn,l=h(t);!l&&"undefined"!=typeof window&&window.IntersectionObserver&&(n=!1,r=!1,o=!0),"undefined"==typeof window&&(n=!1,r=!1),t.critical&&(n=!0,r=!1,o=!1);var d=!(i.props.critical&&!i.props.fadeIn);return i.state={isVisible:n,imgLoaded:r,IOSupported:o,fadeIn:a,hasNoScript:d,seenBefore:l},i.imageRef=c.default.createRef(),i.handleImageLoaded=i.handleImageLoaded.bind((0,s.default)((0,s.default)(i))),i.handleRef=i.handleRef.bind((0,s.default)((0,s.default)(i))),i}(0,o.default)(t,e);var i=t.prototype;return i.componentDidMount=function(){if(this.props.critical){var e=this.imageRef.current;e&&e.complete&&this.handleImageLoaded()}},i.handleRef=function(e){var t=this;this.state.IOSupported&&e&&m(e,function(){t.setState({isVisible:!0})})},i.handleImageLoaded=function(){this.setState({imgLoaded:!0}),this.state.seenBefore&&this.setState({fadeIn:!1}),this.props.onLoad&&this.props.onLoad()},i.render=function(){var e=u(this.props),t=e.title,i=e.alt,n=e.className,r=e.style,o=void 0===r?{}:r,s=e.imgStyle,a=void 0===s?{}:s,d=e.placeholderStyle,f=void 0===d?{}:d,h=e.fluid,p=e.fixed,m=e.backgroundColor,v=e.Tag,b="boolean"==typeof m?"lightgray":m,w=(0,l.default)({opacity:this.state.imgLoaded?0:1,transition:"opacity 0.5s",transitionDelay:this.state.imgLoaded?"0.5s":"0.25s"},a,f),E=(0,l.default)({opacity:this.state.imgLoaded||!1===this.state.fadeIn?1:0,transition:!0===this.state.fadeIn?"opacity 0.5s":"none"},a);if(h){var S=h;return c.default.createElement(v,{className:(n||"")+" gatsby-image-wrapper",style:(0,l.default)({position:"relative",overflow:"hidden"},o),ref:this.handleRef,key:"fluid-"+JSON.stringify(S.srcSet)},c.default.createElement(v,{style:{width:"100%",paddingBottom:100/S.aspectRatio+"%"}}),S.base64&&c.default.createElement(g,{alt:this.state.isVisible?"":i,title:t,src:S.base64,style:w}),S.tracedSVG&&c.default.createElement(g,{alt:this.state.isVisible?"":i,title:t,src:S.tracedSVG,style:w}),b&&c.default.createElement(v,{title:t,style:{backgroundColor:b,position:"absolute",top:0,bottom:0,opacity:this.state.imgLoaded?0:1,transitionDelay:"0.35s",right:0,left:0}}),this.state.isVisible&&c.default.createElement("picture",null,S.srcSetWebp&&c.default.createElement("source",{type:"image/webp",srcSet:S.srcSetWebp,sizes:S.sizes}),c.default.createElement("source",{srcSet:S.srcSet,sizes:S.sizes}),c.default.createElement(g,{alt:i,title:t,src:S.src,style:E,ref:this.imageRef,onLoad:this.handleImageLoaded,onError:this.props.onError})),this.state.hasNoScript&&c.default.createElement("noscript",{dangerouslySetInnerHTML:{__html:y((0,l.default)({alt:i,title:t},S))}}))}if(p){var j=p,L=(0,l.default)({position:"relative",overflow:"hidden",display:"inline-block",width:j.width,height:j.height},o);return"inherit"===o.display&&delete L.display,c.default.createElement(v,{className:(n||"")+" gatsby-image-wrapper",style:L,ref:this.handleRef,key:"fixed-"+JSON.stringify(j.srcSet)},j.base64&&c.default.createElement(g,{alt:this.state.isVisible?"":i,title:t,src:j.base64,style:w}),j.tracedSVG&&c.default.createElement(g,{alt:this.state.isVisible?"":i,title:t,src:j.tracedSVG,style:w}),b&&c.default.createElement(v,{title:t,style:{backgroundColor:b,width:j.width,opacity:this.state.imgLoaded?0:1,transitionDelay:"0.25s",height:j.height}}),this.state.isVisible&&c.default.createElement("picture",null,j.srcSetWebp&&c.default.createElement("source",{type:"image/webp",srcSet:j.srcSetWebp,sizes:j.sizes}),c.default.createElement("source",{srcSet:j.srcSet,sizes:j.sizes}),c.default.createElement(g,{alt:i,title:t,width:j.width,height:j.height,src:j.src,style:E,ref:this.imageRef,onLoad:this.handleImageLoaded,onError:this.props.onError})),this.state.hasNoScript&&c.default.createElement("noscript",{dangerouslySetInnerHTML:{__html:y((0,l.default)({alt:i,title:t,width:j.width,height:j.height},j))}}))}return null},t}(c.default.Component);v.defaultProps={critical:!1,fadeIn:!0,alt:"",Tag:"div"};var b=d.default.shape({width:d.default.number.isRequired,height:d.default.number.isRequired,src:d.default.string.isRequired,srcSet:d.default.string.isRequired,base64:d.default.string,tracedSVG:d.default.string,srcWebp:d.default.string,srcSetWebp:d.default.string}),w=d.default.shape({aspectRatio:d.default.number.isRequired,src:d.default.string.isRequired,srcSet:d.default.string.isRequired,sizes:d.default.string.isRequired,base64:d.default.string,tracedSVG:d.default.string,srcWebp:d.default.string,srcSetWebp:d.default.string});v.propTypes={resolutions:b,sizes:w,fixed:b,fluid:w,fadeIn:d.default.bool,title:d.default.string,alt:d.default.string,className:d.default.oneOfType([d.default.string,d.default.object]),critical:d.default.bool,style:d.default.object,imgStyle:d.default.object,placeholderStyle:d.default.object,backgroundColor:d.default.oneOfType([d.default.string,d.default.bool]),onLoad:d.default.func,onError:d.default.func,Tag:d.default.string};var E=v;t.default=E}}]);
//# sourceMappingURL=7-7df65c4f733bff5c67b3.js.map