1import{i as K,l as ee,a as W,G as ae,e as fe,b as le,c as de,t as ie,d as ge,f as pe,r as he,g as ve,h as me,j as ye,k as Se,m as _e}from"../index.a621a35b.js";import{c as Ee}from"./_commonjsHelpers.f037b798.js";var ce={exports:{}};/*! 2 * ScrollMagic v2.0.9 (2026-02-20) 3 * The javascript library for magical scroll interactions. 4 * (c) 2026 Jan Paepke (@janpaepke) 5 * Project Website: http://scrollmagic.io 6 * 7 * @version 2.0.9 8 * @license Dual licensed under MIT license and GPL. 9 * @author Jan Paepke - [email protected] 10 * 11 * @file ScrollMagic main library. 12 */(function(G,te){(function(f,H){G.exports=H()})(Ee,function(){var f=function(){n.log(2,"(COMPATIBILITY NOTICE) -> As of ScrollMagic 2.0.0 you need to use 'new ScrollMagic.Controller()' to create a new controller instance. Use 'new ScrollMagic.Scene()' to instance a scene.")};f.version="2.0.9",typeof window<"u"&&window.addEventListener("mousewheel",void 0);var H="data-scrollmagic-pin-spacer";f.Controller=function(l){var g="ScrollMagic.Controller",_="FORWARD",S="REVERSE",F="PAUSED",D=A.defaults,r=this,o=n.extend({},D,l),d=[],y=!1,C=0,I=F,T=!0,k=0,c=!0,N,t,a=function(){for(var i in o)D.hasOwnProperty(i)||(u(2,'WARNING: Unknown option "'+i+'"'),delete o[i]);if(o.container=n.get.elements(o.container)[0],!o.container)throw u(1,"ERROR creating object "+g+": No valid scroll container supplied"),g+" init failed.";T=o.container===window||o.container===document.body||!document.body.contains(o.container),T&&(o.container=window),k=x(),o.container.addEventListener("resize",q),o.container.addEventListener("scroll",q);var m=parseInt(o.refreshInterval,10);o.refreshInterval=n.type.Number(m)?m:D.refreshInterval,E(),u(3,"added new "+g+" controller (v"+f.version+")")},E=function(){o.refreshInterval>0&&(t=window.setTimeout(ne,o.refreshInterval))},P=function(){return o.vertical?n.get.scrollTop(o.container):n.get.scrollLeft(o.container)},x=function(){return o.vertical?n.get.height(o.container):n.get.width(o.container)},L=this._setScrollPos=function(i){o.vertical?T?window.scrollTo(n.get.scrollLeft(),i):o.container.scrollTop=i:T?window.scrollTo(i,n.get.scrollTop()):o.container.scrollLeft=i},V=function(){if(c&&y){var i=n.type.Array(y)?y:d.slice(0);y=!1;var m=C;C=r.scrollPos();var O=C-m;O!==0&&(I=O>
120?_:S),I===S&&i.reverse(),i.forEach(function(M,U){u(3,"updating Scene "+(U+1)+"/"+i.length+" ("+d.length+" total)"),M.update(!0)}),i.length===0&&o.loglevel>=3&&u(3,"updating 0 Scenes (nothing added to controller)")}},Y=function(){N=n.rAF(V)},q=function(i){u(3,"event fired causing an update:",i.type),i.type=="resize"&&(k=x(),I=F),y!==!0&&(y=!0,Y())},ne=function(){if(!T&&k!=x()){var i;try{i=new Event("resize",{bubbles:!1,cancelable:!1})}catch{i=document.createEvent("Event"),i.initEvent("resize",!1,!1)}o.container.dispatchEvent(i)}d.forEach(function(m,O){m.refresh()}),E()},u=this._log=function(i,m){o.loglevel>=i&&(Array.prototype.splice.call(arguments,1,0,"("+g+") ->"),n.log.apply(window,arguments))};this._options=o;var v=function(i){if(i.length<=1)return i;var m=i.slice(0);return m.sort(function(O,M){return O.scrollOffset()>M.scrollOffset()?1:-1}),m};return this.addScene=function(i){if(n.type.Array(i))i.forEach(function(O,M){r.addScene(O)});else if(i instanceof f.Scene){if(i.controller()!==r)i.addTo(r);else if(d.indexOf(i)<0){d.push(i),d=v(d),i.on("shift.controller_sort",function(){d=v(d)});for(var m in o.globalSceneOptions)i[m]&&i[m].call(i,o.globalSceneOptions[m]);u(3,"adding Scene (now "+d.length+" total)")}}else u(1,"ERROR: invalid argument supplied for '.addScene()'");return r},this.removeScene=function(i){if(n.type.Array(i))i.forEach(function(O,M){r.removeScene(O)});else{var m=d.indexOf(i);m>-1&&(i.off("shift.controller_sort"),d.splice(m,1),u(3,"removing Scene (now "+d.length+" left)"),i.remove())}return r},this.updateScene=function(i,m){return n.type.Array(i)?i.forEach(function(O,M){r.updateScene(O,m)}):m?i.update(!0):y!==!0&&i instanceof f.Scene&&(y=y||[],y.indexOf(i)==-1&&y.push(i),y=v(y),Y()),r},this.update=function(i){return q({type:"resize"}),i&&V(),r},this.scrollTo=function(i,m){if(n.type.Number(i))L.call(o.container,i,m);else if(i instanceof f.Scene)i.controller()===r?r.scrollTo(i.scrollOffset(),m):u(2,"scrollTo(): The supplied scene does not belong to this controller. Scroll cancelled.",i);else if(n.type.Function(i))L=i;else{var O=n.get.elements(i)[0];if(O){for(;O.parentNode.hasAttribute(H);)O=O.parentNode;var M=o.vertical?"top":"left",U=n.get.offset(o.container),X=n.get.offset(O);T||(U[M]-=r.scrollPos()),r.scrollTo(X[M]-U[M],m)}else u(2,"scrollTo(): The supplied argument is invalid. Scroll cancelled.",i)}return r},this.scrollPos=function(i){if(arguments.length)n.type.Function(i)?P=i:u(2,"Provided value for method 'scrollPos' is not a function. To change the current scroll position use 'scrollTo()'.");else return P.call(r);return r},this.info=function(i){var m={size:k,vertical:o.vertical,scrollPos:C,scrollDirection:I,container:o.container,isDocument:T};if(arguments.length){if(m[i]!==void 0)return m[i];u(1,'ERROR: option "'+i+'" is not available');return}else return m},this.loglevel=function(i){if(arguments.length)o.loglevel!=i&&(o.loglevel=i);else return o.loglevel;return r},this.enabled=function(i){if(arguments.length)c!=i&&(c=!!i,r.updateScene(d,!0));else return c;return r},this.destroy=function(i){window.clearTimeout(t);for(var m=d.length;m--;)d[m].destroy(i);return o.container.removeEventListener("resize",q),o.container.removeEventListener("scroll",q),n.cAF(N),u(3,"destroyed "+g+" (reset: "+(i?"true":"false")+")"),null},a(),r};var A={defaults:{container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100}};f.Controller.addOption=function(l,g){A.defaults[l]=g},f.Controller.extend=function(l){var g=this;f.Controller=function(){return g.apply(this,arguments),this.$super=n.extend({},this),l.apply(this,arguments)||this},n.extend(f.Controller,g),f.Controller.prototype=g.prototype,f.Controller.prototype.constructor=f.Controller},f.Scene=function(l){var g="ScrollMagic.Scene",_="BEFORE",S="DURING",F="AFTER",D=z.defaults,r=this,o=n.extend({},D,l),d=_,y=0,C={start:0,end:0},I=0,T=!0,k,c,N=function(){for(var e in o)D.hasOwnProperty(e)||(a(2,'WARNING: Unknown option "'+e+'"'),delete o[e]);for(var s in D)ne(s);Y()},t={};this.on=function(e,s){return n.type.Function(s)?(e=e.trim().split(" "),e.forEach(function(p){var w=p.split("."),h=w[0],b=w[1];h!="*"&&(t[h]||(t[h]=[]),t[h].push({namespace:b||"",callback:s}))}
12)):a(1,"ERROR when calling '.on()': Supplied callback for '"+e+"' is not a valid function!"),r},this.off=function(e,s){return e?(e=e.trim().split(" "),e.forEach(function(p,w){var h=p.split("."),b=h[0],R=h[1]||"",B=b==="*"?Object.keys(t):[b];B.forEach(function($){for(var j=t[$]||[],J=j.length;J--;){var Z=j[J];Z&&(R===Z.namespace||R==="*")&&(!s||s==Z.callback)&&j.splice(J,1)}j.length||delete t[$]})}),r):(a(1,"ERROR: Invalid event name supplied."),r)},this.trigger=function(e,s){if(e){var p=e.trim().split("."),w=p[0],h=p[1],b=t[w];a(3,"event fired:",w,s?"->":"",s||""),b&&b.forEach(function(R,B){(!h||h===R.namespace)&&R.callback.call(r,new f.Event(w,R.namespace,r,s))})}else a(1,"ERROR: Invalid event name supplied.");return r},r.on("change.internal",function(e){e.what!=="loglevel"&&e.what!=="tweenChanges"&&(e.what==="triggerElement"?x():e.what==="reverse"&&r.update())}).on("shift.internal",function(e){E(),r.update()});var a=this._log=function(e,s){o.loglevel>=e&&(Array.prototype.splice.call(arguments,1,0,"("+g+") ->"),n.log.apply(window,arguments))};this.addTo=function(e){return e instanceof f.Controller?c!=e&&(c&&c.removeScene(r),c=e,Y(),P(!0),x(!0),E(),c.info("container").addEventListener("resize",L),e.addScene(r),r.trigger("add",{controller:c}),a(3,"added "+g+" to controller"),r.update()):a(1,"ERROR: supplied argument of 'addTo()' is not a valid ScrollMagic Controller"),r},this.enabled=function(e){if(arguments.length)T!=e&&(T=!!e,r.update(!0));else return T;return r},this.remove=function(){if(c){c.info("container").removeEventListener("resize",L);var e=c;c=void 0,e.removeScene(r),r.trigger("remove"),a(3,"removed "+g+" from controller")}return r},this.destroy=function(e){return r.trigger("destroy",{reset:e}),r.remove(),r.off("*.*"),a(3,"destroyed "+g+" (reset: "+(e?"true":"false")+")"),null},this.update=function(e){if(c)if(e)if(c.enabled()&&T){var s=c.info("scrollPos"),p;o.duration>0?p=(s-C.start)/(C.end-C.start):p=s>=C.start?1:0,r.trigger("update",{startPos:C.start,endPos:C.end,scrollPos:s}),r.progress(p)}else u&&d===S&&i(!0);else c.updateScene(r,!1);return r},this.refresh=function(){return P(),x(),r},this.progress=function(e){if(arguments.length){var s=!1,p=d,w=c?c.info("scrollDirection"):"PAUSED",h=o.reverse||e>=y;if(o.duration===0?(s=y!=e,y=e<1&&h?0:1,d=y===0?_:S):e<0&&d!==_&&h?(y=0,d=_,s=!0):e>=0&&e<1&&h?(y=e,d=S,s=!0):e>=1&&d!==F?(y=1,d=F,s=!0):d===S&&!h&&i(),s){var b={progress:y,state:d,scrollDirection:w},R=d!=p,B=function($){r.trigger($,b)};R&&p!==S&&(B("enter"),B(p===_?"start":"end")),B("progress"),R&&d!==S&&(B(d===_?"start":"end"),B("leave"))}return r}else return y};var E=function(){C={start:I+o.offset},c&&o.triggerElement&&(C.start-=c.info("size")*o.triggerHook),C.end=C.start+o.duration},P=function(e){if(k){var s="duration";q(s,k.call(r))&&!e&&(r.trigger("change",{what:s,newval:o[s]}),r.trigger("shift",{reason:s}))}},x=function(e){var s=0,p=o.triggerElement;if(c&&(p||I>0)){if(p)if(p.parentNode){for(var w=c.info(),h=n.get.offset(w.container),b=w.vertical?"top":"left";p.parentNode.hasAttribute(H);)p=p.parentNode;var R=n.get.offset(p);w.isDocument||(h[b]-=c.scrollPos()),s=R[b]-h[b]}else a(2,"WARNING: triggerElement was removed from DOM and will be reset to",void 0),r.triggerElement(void 0);var B=s!=I;I=s,B&&!e&&r.trigger("shift",{reason:"triggerElementPosition"})}},L=function(e){o.triggerHook>0&&r.trigger("shift",{reason:"containerResize"})},V=n.extend(z.validate,{duration:function(e){if(n.type.String(e)&&e.match(/^(\.|\d)*\d+%$/)){var s=parseFloat(e)/100;e=function(){return c?c.info("size")*s:0}}if(n.type.Function(e)){k=e;try{e=parseFloat(k.call(r))}catch{e=-1}}if(e=parseFloat(e),!n.type.Number(e)||e<0)throw k?(k=void 0,['Invalid return value of supplied function for option "duration":',e]):['Invalid value for option "duration":',e];return e}}),Y=function(e){e=arguments.length?[e]:Object.keys(V),e.forEach(function(s,p){var w;if(V[s])try{w=V[s](o[s])}catch(b){w=D[s];var h=n.type.String(b)?[b]:b;n.type.Array(h)?(h[0]="ERROR: "+h[0],h.unshift(1),a.apply(this,h)):a(1,"ERROR: Problem executing validation callback for option '"+s+"':",b.message)}finally{o[s]=w}})},q=function(e,s){var p=!1,w=o[e];return o[e]!=s&&(o[e]=s,Y(e),p=w!=o[e]),p},ne=function(e){r[e]||(r[e]=function(s){if(arguments.length)e==="duration"&&(k=void 0),q(e,s)&&(r.trigger("change",{what:e,newval:o[e]}),z.shifts.indexOf(e)>-1&&r.trigger("shift",{reason:e}));else return o[e];return r})};this.controller=function(){return c},this.state=function(){return d},this.scrollOffset=function(){return C.start},this.triggerPosition=function(){var e=o.offset;return c&&(o.triggerElement?e+=I:e+=c.info("size")*r.triggerHook()),e};var u,v;r.on("shift.internal",function(e){var s=e.reason==="duration";(d===F&&s||d===S&&o.duration===0)&&i(),s&&m()}).on("progress.internal",function(e){i()}).on("add.internal",function(e){m()}).on("destroy.internal",function(e){r.removePin(e.reset)});var i=function(e){if(u&&c){var s=c.info(),p=v.spacer.firstChild;if(!e&&d===S){n.css(p,"position")!="fixed"&&(n.css(p,{position:"fixed"}),m());var w=n.get.offset(v.spacer,!0),h=o.reverse||o.duration===0?s.scrollPos-C.start:Math.round(y*o.duration*10)/10;w[s.vertical?"top":"left"]+=h,n.css(v.spacer.firstChild,{top:w.top,left
12:w.left})}else{var b={position:v.inFlow?"relative":"absolute",top:0,left:0},R=n.css(p,"position")!=b.position;v.pushFollowers?o.duration>0&&(d===F&&parseFloat(n.css(v.spacer,"padding-top"))===0||d===_&&parseFloat(n.css(v.spacer,"padding-bottom"))===0)&&(R=!0):b[s.vertical?"top":"left"]=o.duration*y,n.css(p,b),R&&m()}}},m=function(){if(u&&c&&v.inFlow){var e=d===S,s=c.info("vertical"),p=v.spacer.firstChild,w=n.isMarginCollapseType(n.css(v.spacer,"display")),h={};v.relSize.width||v.relSize.autoFullWidth?e?n.css(u,{width:n.get.width(v.spacer)}):n.css(u,{width:"100%"}):(h["min-width"]=n.get.width(s?u:p,!0,!0),h.width=e?h["min-width"]:"auto"),v.relSize.height?e?n.css(u,{height:n.get.height(v.spacer)-(v.pushFollowers?o.duration:0)}):n.css(u,{height:"100%"}):(h["min-height"]=n.get.height(s?p:u,!0,!w),h.height=e?h["min-height"]:"auto"),v.pushFollowers&&(h["padding"+(s?"Top":"Left")]=o.duration*y,h["padding"+(s?"Bottom":"Right")]=o.duration*(1-y)),n.css(v.spacer,h)}},O=function(){c&&u&&d===S&&!c.info("isDocument")&&i()},M=function(){c&&u&&d===S&&((v.relSize.width||v.relSize.autoFullWidth)&&n.get.width(window)!=n.get.width(v.spacer.parentNode)||v.relSize.height&&n.get.height(window)!=n.get.height(v.spacer.parentNode))&&m()},U=function(e){c&&u&&d===S&&!c.info("isDocument")&&(e.preventDefault(),c._setScrollPos(c.info("scrollPos")-((e.wheelDelta||e[c.info("vertical")?"wheelDeltaY":"wheelDeltaX"])/3||-e.detail*30)))};this.setPin=function(e,s){var p={pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer"},w=s&&s.hasOwnProperty("pushFollowers");if(s=n.extend({},p,s),e=n.get.elements(e)[0],e){if(n.css(e,"position")==="fixed")return a(1,"ERROR calling method 'setPin()': Pin does not work with elements that are positioned 'fixed'."),r}else return a(1,"ERROR calling method 'setPin()': Invalid pin element supplied."),r;if(u){if(u===e)return r;r.removePin()}u=e;var h=u.parentNode.style.display,b=["top","left","bottom","right","margin","marginLeft","marginRight","marginTop","marginBottom"];u.parentNode.style.display="none";var R=n.css(u,"position")!="absolute",B=n.css(u,b.concat(["display"])),$=n.css(u,["width","height"]);u.parentNode.style.display=h,!R&&s.pushFollowers&&(a(2,"WARNING: If the pinned element is positioned absolutely pushFollowers will be disabled."),s.pushFollowers=!1),window.setTimeout(function(){u&&o.duration===0&&w&&s.pushFollowers&&a(2,"WARNING: pushFollowers =",!0,"has no effect, when scene duration is 0.")},0);var j=u.parentNode.insertBefore(document.createElement("div"),u),J=n.extend(B,{position:R?"relative":"absolute",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"});if(R||n.extend(J,n.css(u,["width","height"])),n.css(j,J),j.setAttribute(H,""),n.addClass(j,s.spacerClass),v={spacer:j,relSize:{width:$.width.slice(-1)==="%",height:$.height.slice(-1)==="%",autoFullWidth:$.width==="auto"&&R&&n.isMarginCollapseType(B.display)},pushFollowers:s.pushFollowers,inFlow:R},!u.___origStyle){u.___origStyle={};var Z=u.style,ue=b.concat(["width","height","position","boxSizing","mozBoxSizing","webkitBoxSizing"]);ue.forEach(function(se){u.___origStyle[se]=Z[se]||""})}return v.relSize.width&&n.css(j,{width:$.width}),v.relSize.height&&n.css(j,{height:$.height}),j.appendChild(u),n.css(u,{position:R?"relative":"absolute",margin:"auto",top:"auto",left:"auto",bottom:"auto",right:"auto"}),(v.relSize.width||v.relSize.autoFullWidth)&&n.css(u,{boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"}),window.addEventListener("scroll",O),window.addEventListener("resize",O),window.addEventListener("resize",M),u.addEventListener("mousewheel",U),u.addEventListener("DOMMouseScroll",U),a(3,"added pin"),i(),r},this.removePin=function(e){if(u){if(d===S&&i(!0),e||!c){var s=v.spacer.firstChild;if(s.hasAttribute(H)){var p=v.spacer.style,w=["margin","marginLeft","marginRight","marginTop","marginBottom"],h={};w.forEach(function(b){h[b]=p[b]||""}),n.css(s,h)}v.spacer.parentNode.insertBefore(s,v.spacer),v.spacer.parentNode.removeChild(v.spacer),u.parentNode.hasAttribute(H)||(n.css(u,u.___origStyle),delete u.___origStyle)}window.removeEventListener("scroll",O),window.removeEventListener("resize",O),window.removeEventListener("resize",M),u.removeEventListener("mousewheel",U),u.removeEventListener("DOMMouseScroll",U),u=void 0,a(3,"removed pin (reset: "+(e?"true":"false")+")")}return r};var X,Q=[];return r.on("destroy.internal",function(e){r.removeClassToggle(e.reset)}),this.setClassToggle=function(e,s){var p=n.get.elements(e);return p.length===0||!n.type.String(s)?(a(1,"ERROR calling method 'setClassToggle(
12)': Invalid "+(p.length===0?"element":"classes")+" supplied."),r):(Q.length>0&&r.removeClassToggle(),X=s,Q=p,r.on("enter.internal_class leave.internal_class",function(w){var h=w.type==="enter"?n.addClass:n.removeClass;Q.forEach(function(b,R){h(b,X)})}),r)},this.removeClassToggle=function(e){return e&&Q.forEach(function(s,p){n.removeClass(s,X)}),r.off("start.internal_class end.internal_class"),X=void 0,Q=[],r},N(),r};var z={defaults:{duration:0,offset:0,triggerElement:void 0,triggerHook:.5,reverse:!0,loglevel:2},validate:{offset:function(l){if(l=parseFloat(l),!n.type.Number(l))throw['Invalid value for option "offset":',l];return l},triggerElement:function(l){if(l=l||void 0,l){var g=n.get.elements(l)[0];if(g&&g.parentNode)l=g;else throw['Element defined in option "triggerElement" was not found:',l]}return l},triggerHook:function(l){var g={onCenter:.5,onEnter:1,onLeave:0};if(n.type.Number(l))l=Math.max(0,Math.min(parseFloat(l),1));else if(l in g)l=g[l];else throw['Invalid value for option "triggerHook": ',l];return l},reverse:function(l){return!!l},loglevel:function(l){if(l=parseInt(l),!n.type.Number(l)||l<0||l>3)throw['Invalid value for option "loglevel":',l];return l}},shifts:["duration","offset","triggerHook"]};f.Scene.addOption=function(l,g,_,S){l in z.defaults?f._util.log(1,"[static] ScrollMagic.Scene -> Cannot add Scene option '"+l+"', because it already exists."):(z.defaults[l]=g,z.validate[l]=_,S&&z.shifts.push(l))},f.Scene.extend=function(l){var g=this;f.Scene=function(){return g.apply(this,arguments),this.$super=n.extend({},this),l.apply(this,arguments)||this},n.extend(f.Scene,g),f.Scene.prototype=g.prototype,f.Scene.prototype.constructor=f.Scene},f.Event=function(l,g,_,S){S=S||{};for(var F in S)this[F]=S[F];return this.type=l,this.target=this.currentTarget=_,this.namespace=g||"",this.timeStamp=this.timestamp=Date.now(),this};var n=f._util=function(l){var g={},_,S=function(t){return parseFloat(t)||0},F=function(t){return t.currentStyle?t.currentStyle:l.getComputedStyle(t)},D=function(t,a,E,P){if(a=a===document?l:a,a===l)P=!1;else if(!c.DomElement(a))return 0;t=t.charAt(0).toUpperCase()+t.substr(1).toLowerCase();var x=(E?a["offset"+t]||a["outer"+t]:a["client"+t]||a["inner"+t])||0;if(E&&P){var L=F(a);x+=t==="Height"?S(L.marginTop)+S(L.marginBottom):S(L.marginLeft)+S(L.marginRight)}return x},r=function(t){return t.replace(/^[^a-z]+([a-z])/g,"$1").replace(/-([a-z])/g,function(a){return a[1].toUpperCase()})};g.extend=function(t){for(t=t||{},_=1;_<arguments.length;_++)if(!!arguments[_])for(var a in arguments[_])arguments[_].hasOwnProperty(a)&&(t[a]=arguments[_][a]);return t},g.isMarginCollapseType=function(t){return["block","flex","list-item","table","-webkit-box"].indexOf(t)>-1};var o=0,d=["ms","moz","webkit","o"],y=l.requestAnimationFrame,C=l.cancelAnimationFrame;for(_=0;!y&&_<d.length;++_)y=l[d[_]+"RequestAnimationFrame"],C=l[d[_]+"CancelAnimationFrame"]||l[d[_]+"CancelRequestAnimationFrame"];y||(y=function(t){var a=new Date().getTime(),E=Math.max(0,16-(a-o)),P=l.setTimeout(function(){t(a+E)},E);return o=a+E,P}),C||(C=function(t){l.clearTimeout(t)}),g.rAF=y.bind(l),g.cAF=C.bind(l);var I=["error","warn","log"],T=l.console||{};for(T.log=T.log||function(){},_=0;_<I.length;_++){var k=I[_];T[k]||(T[k]=T.log)}g.log=function(t){(t>I.length||t<=0)&&(t=I.length);var a=new Date,E=("0"+a.getHours()).slice(-2)+":"+("0"+a.getMinutes()).slice(-2)+":"+("0"+a.getSeconds()).slice(-2)+":"+("00"+a.getMilliseconds()).slice(-3),P=I[t-1],x=Array.prototype.splice.call(arguments,1),L=Function.prototype.bind.call(T[P],T);x.unshift(E),L.apply(T,x)};var c=g.type=function(t){return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/,"$1").toLowerCase()};c.String=function(t){return c(t)==="string"},c.Function=function(t){return c(t)==="function"},c.Array=function(t){return Array.isArray(t)},c.Number=function(t){return!c.Array(t)&&t-parseFloat(t)+1>=0},c.DomElement=function(t){return typeof HTMLElement=="object"||typeof HTMLElement=="function"?t instanceof HTMLElement||t instanceof SVGElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"};var N=g.get={};return N.elements=function(t){var a=[];
12if(c.String(t))try{t=document.querySelectorAll(t)}catch{return a}if(c(t)==="nodelist"||c.Array(t)||t instanceof NodeList)for(var E=0,P=a.length=t.length;E<P;E++){var x=t[E];a[E]=c.DomElement(x)?x:N.elements(x)}else(c.DomElement(t)||t===document||t===l)&&(a=[t]);return a},N.scrollTop=function(t){return t&&typeof t.scrollTop=="number"?t.scrollTop:l.pageYOffset||0},N.scrollLeft=function(t){return t&&typeof t.scrollLeft=="number"?t.scrollLeft:l.pageXOffset||0},N.width=function(t,a,E){return D("width",t,a,E)},N.height=function(t,a,E){return D("height",t,a,E)},N.offset=function(t,a){var E={top:0,left:0};if(t&&t.getBoundingClientRect){var P=t.getBoundingClientRect();E.top=P.top,E.left=P.left,a||(E.top+=N.scrollTop(),E.left+=N.scrollLeft())}return E},g.addClass=function(t,a){a&&(t.classList?t.classList.add(a):t.className+=" "+a)},g.removeClass=function(t,a){a&&(t.classList?t.classList.remove(a):t.className=t.className.replace(new RegExp("(^|\\b)"+a.split(" ").join("|")+"(\\b|$)","gi")," "))},g.css=function(t,a){if(c.String(a))return F(t)[r(a)];if(c.Array(a)){var E={},P=F(t);return a.forEach(function(V,Y){E[V]=P[r(V)]}),E}else for(var x in a){var L=a[x];L==parseFloat(L)&&(L+="px"),t.style[r(x)]=L}},g}(window||{});return f.Scene.prototype.addIndicators=function(){return f._util.log(1,"(ScrollMagic.Scene) -> ERROR calling addIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},f.Scene.prototype.removeIndicators=function(){return f._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},f.Scene.prototype.setTween=function(){return f._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},f.Scene.prototype.removeTween=function(){return f._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},f.Scene.prototype.setVelocity=function(){return f._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},f.Scene.prototype.removeVelocity=function(){return f._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},f})})(ce);const re=ce.exports,we={class:"container"},be={class:"row"},Re={class:"col-md-8 col-xl-9"},Ce=["src","alt"],Oe={class:"col-md-4 col-xl-3"},Te={key:0,class:"image-block__text"},xe={class:"container"},Pe=["innerHTML"],Le={key:0},oe={center:"image-block--center",fullbleed:"image-block--fullbleed",left:"image-block--left",right:"image-block--right"},Ae={__name:"ImageBlock",props:{image:{type:String,required:!0},alt:String,text:String,credits:String,orientation:{type:String,validator:function(G){return Object.values(oe).indexOf(G)!==-1},default:oe.center}},emits:["on-image-loaded"],setup(G,{emit:te}){const f=G,H=te,A=z=>{H("on-image-loaded",z)};return(z,n)=>(K(),ee("div",{class:de(["image-block image-block--storybook",f.orientation])},[W("figure",null,[W("div",we,[W("div",be,[W("div",Re,[W("div",{class:"image-block__image",style:ae({"background-image":f.orientation===oe.fullbleed?"url("+f.image+")":null})},[W("img",{src:f.image,alt:f.alt,onLoad:A,loading:"lazy"},null,40,Ce)],4)]),W("div",Oe,[f.text||f.credits?(K(),ee("div",Te,[W("div",xe,[W("figcaption",null,[W("span",{innerHTML:f.text},null,8,Pe),f.credits?(K(),ee("span",Le,fe(f.credits),1)):le("",!0)])])])):le("",!0)])])])])],2))}},Fe={class:"images-block images-block--horizontal"},ke={__name:"ImagesBlockHorizontal",props:{images:Array},setup(G){const te=ie(null),f=ie(null),H=ie(null),A=ge({scrollOffset:0,progress:0,scrollContainerWidth:0});let z=new re.Controller,n=null,l=null;const g=pe(()=>`transform: translate(${-(A.scrollContainerWidth*A.progress)}px, 0) translate3d(0, 0, 0); padding-left:${-A.scrollOffset}px;`),_=()=>{S(),n=new re.Scene({triggerElement:f.value,triggerHook:"onLeave",duration:r()}).setPin(f.value).addTo(z),l=new re.Scene({triggerElement:f.value,triggerHook:"onLeave",offset:A.scrollOffset,duration:A.scrollC
12ontainerWidth}).addTo(z),l.on("progress",o=>{A.progress=o.progress}),l.on("start",o=>{S()}),window.addEventListener("resize",S)},S=()=>{A.scrollOffset=-(window.innerWidth/2),A.scrollContainerWidth=D(),n&&n.duration(r()),l&&(l.offset(A.scrollOffset),l.duration(A.scrollContainerWidth))},F=o=>{S()},D=()=>Array.from(H.value.children).reduce((o,d)=>o+d.getBoundingClientRect().width,0),r=()=>A.scrollContainerWidth+A.scrollOffset*2;return he(()=>{_()}),ve(()=>{window.removeEventListener("resize",S),n.removePin(!0),z.removeScene(n),z.removeScene(l)}),(o,d)=>(K(),ee("div",Fe,[W("div",{class:"images-block__scene-trigger",ref_key:"sceneTrigger",ref:te},null,512),W("div",{class:"images-block__scene-pin",ref_key:"scenePin",ref:f},[W("div",{class:"images-block__scroll-container",ref_key:"scrollContainer",ref:H,style:ae(g.value)},[(K(!0),ee(me,null,ye(G.images,y=>(K(),Se(Ae,_e({key:y.image},{ref_for:!0},y,{onOnImageLoaded:F}),null,16))),128))],4)],512)]))}};export{ke as default}; 13//# sourceMappingURL=ImagesBlockHorizontal.80304627.js.map
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.