Galaxy Buds Pro Black | Auricolari Wireless Bluetooth

[]
0)if(a&&”performance”in a&&a.performance&&”function”==typeof a.performance.setResourceTimingBufferSize)a.performance.setResourceTimingBufferSize();!function(){if(BOOMR=a.BOOMR||{},BOOMR.plugins=BOOMR.plugins||{},!BOOMR.plugins.AK){var e=””==”true”?1:0,t=””,n=”lexg4zaccri34yo5g65q-f-eb254b950-clientnsv4-s.akamaihd.net”,i=”false”==”true”?2:1,_={“ak.v”:”32″,”ak.cp”:”147609″,”ak.ai”:parseInt(“293013″,10),”ak.ol”:”0″,”ak.cr”:11,”ak.ipv”:4,”ak.proto”:”h2″,”ak.rid”:”abc5602″,”ak.r”:31071,”ak.a2″:e,”ak.m”:”x”,”ak.n”:”essl”,”ak.bpcip”:”89.46.110.0″,”ak.cport”:23066,”ak.gh”:”92.123.101.61″,”ak.quicv”:””,”ak.tlsv”:”tls1.2″,”ak.0rtt”:””,”ak.csrc”:”-“,”ak.acc”:””,”ak.t”:”1641887675″,”ak.ak”:”hOBiQwZUYzCg5VSAfCLimQ==3k81OjDCDHRBQLMwRFuCzBa7SLnUL+ax9B30jNa1tcdyQv5d/6PLUrggx9Ftlha5KnvTgWzGUrE8jO6axb5FrCLLKHHdGtfQG202U4Ge+yXpUZXFh5otTi/yrVU0DHscS30pk1/2c3JqJxIUFnC7+aby0D340qqnwrToXbuwJT8hmFVonJUO4JH6u6RQhmIgXPZ5G/n4Zfh94w6cmb5gnkRd0B66dDd3LZe3y+j6k26C6Mlm1XJ3HQhy2fs0XrXVEwTDTaj82eBWzw2jKJEKr27pQO9+mwfGZbyaY2CsdNRtVMv/teQXI/RuHv9jSh/Bi5Y0nCq1V2F36It3n+uzhZ2qTN3aEaCS1TqCmEACs8gMKU4SoicvwOIGvzz4pDHuk0NSW5LESum/oPAk8tAFLxDOw2/18UZL40C5DcM6QWA=”,”ak.pv”:”2405″,”ak.dpoabenc”:””,”ak.tf”:i};if(“”!==t)_[“ak.ruds”]=t;var o={i:!1,av:function(e){var t=”http.initiator”;if(e&&(!e[t]||”spa_hard”===e[t]))_[“ak.feo”]=void 0!==a.aFeoApplied?1:0,BOOMR.addVar(_)},rv:function(){var a=[“ak.bpcip”,”ak.cport”,”ak.cr”,”ak.csrc”,”ak.gh”,”ak.ipv”,”ak.m”,”ak.n”,”ak.ol”,”ak.proto”,”ak.quicv”,”ak.tlsv”,”ak.0rtt”,”ak.r”,”ak.acc”,”ak.t”,”ak.tf”];BOOMR.removeVar(a)}};BOOMR.plugins.AK={akVars:_,akDNSPreFetchDomain:n,init:function(){if(!o.i){var a=BOOMR.subscribe;a(“before_beacon”,o.av,null,null),a(“onbeacon”,o.rv,null,null),o.i=!0}return this},is_complete:function(){return!0}}}}()}(window);]]> Auricolari Galaxy Buds Pro in versione Phantom Violet fluttuanti sulla custodia di ricarica.

Vendita case a rate (Tasso 0%)
Nessuna verifica bancaria

Anche per segnalati
Si convenzionano agenzie immobiliari

Ti presentiamo
Galaxy Buds Pro

Sono veri auricolari wireless, progettati con una tecnologia professionale per un suono immersivo senza pari. La funzione di cancellazione attiva del rumore intelligente, ti consente di passare tranquillamente dalla modalità di cancellazione del suono a un suono ambientale completamente regolabile. I Galaxy Buds Pro ti faranno sentire soltanto il meglio.

Nove custodie di ricarica per Galaxy Buds Pro, tutte su una griglia da 3×3. 3 in versione Phantom Black, 3 in versione Phantom Violet e 3 in versione Phantom Silver. Ciascuna custodia si apre contemporaneamente per mostrare gli auricolari al suo interno. Primo piano sulla custodia in versione Phantom Violet al centro della griglia, mentre ruota su se stessa ingrandendosi fino a scomparire.

Dilazione pagamenti e agevolazioni fiscali

Siamo operativi in tutta Italia

Isola il rumore,
sintonizza le voci

A woman wearing Galaxy Buds Pro. She is dancing and clearly enjoying the music she's listening to. Rings appear around her, expanding until the background is blocked, to represent the noise blocking that Intelligent ANC delivers.

ANC INTELLIGENTE

Funzione controllabile di cancellazione dei rumori

La Cancellazione attiva dei rumori di Galaxy Buds Pro filtra fino al 99% del rumore di fondo. I microfoni interni ed esterni monitorano i rumori in tempo reale. Scegli il livello di ANC per accendere o spegnere il mondo con un algoritmo intelligente che cancella i rumori: imposta su “High” se sei su un bus pieno di gente o su “Low” se ti trovi in biblioteca, così non ci sarà bisogno di regolare il volume.1, 2

Comprare casa senza mutuo

La banca non ti concede il mutuo per acquistare l’immobile?

lo acquistiamo noi per te (pagamento dilazionato in 30 anni)

*Galaxy Buds Pro sono compatibili con smartphone e tablet che supportano Android 7.0 o versioni successive e che dispongono di più di 1,5 GB di RAM.

UL verified logo

La funzione di cancellazione attiva dei rumori (ANC, Active Noise Canceling) dei Galaxy Buds Pro blocca il rumore di fondo esterno di ben il 99%, supportata dalla verifica UL.

Donna che indossa i Galaxy Buds Pro. Sta ballando e si diverte al ritmo della musica che sta ascoltando. Attorno a lei appaiono dei cerchi, che si espandono fino a bloccare il rumore di fondo: rappresenta la capacità della funzione intelligente ANC di chiudere le porte al rumore.

Alla percezione della tua voce, la funzione

Rilevamento Voce

passa istantaneamente dalla funzione ANC alla modalità di suono ambientale. Se sei in un bar e usi la funzione ANC per bloccare i rumori esterni, quando inizi a parlare per ordinare, la ANC si disattiva automaticamente. Inoltre, questi auricolari intelligenti abbassano il volume della musica e indirizzano il microfono verso la persona che ti parla per il tempo della conversazione, anche se stai usando la modalità di suono ambientale o hai disattivato la funzione ANC. 3, 4

In modalità

Suono Ambientale

non serve togliere gli auricolari per partecipare alla conversazione. Le voci arrivano chiare e in tempo reale. Con un algoritmo intelligente che aumenta il volume dell’ambiente su quattro livelli, non rischierai di perderti parti importanti della discussione. 5

A woman wearing Galaxy Buds Pro, throwing her head back and smiling.

Uno studio professionale
nelle tue orecchie

Vendita case a rate (Tasso 0%)
Nessuna verifica bancaria

Anche per segnalati
Si convenzionano agenzie immobiliari

Auricolare Galaxy Buds Pro nella versione Phantom Violet, suddiviso in strati per mostrare la posizione degli altoparlanti, del woofer, del tweeter e delle prese d’aria.

An X-ray of Galaxy Buds Pro earbud to show the location of the Voice Pickup Unit and mic mesh and chamber inside.

Altoparlanti a 2 vie con driver più grande

per un suono equilibrato e una risposta ad ampia frequenza

  • woofer da 11mm per bassi pieni
  • tweeter da 6.5mm con bassa distorsione
    per toni alti setosi, un suono pulito e una gamma di frequenze completa

Presa d’aria

riduce l’occlusione per un audio arioso

Microfono interno

High SNR Mic

per captare chiaramente la voce dell’utente

Dual mic array

per un livello superiore
di formazione del fascio

Unità di captazione della voce

Rete e camera del microfono

per ridurre al minimo il rumore del vento

Vendi la tua casa in maniera semplice e veloce!
Inserisci i dati del tuo immobile e comincia ora a
pubblicizzare la vendita o l’affitto del tuo appartamento

Noi finanziamo il tuo acquirente

Siamo operativi in tutta Italia

SUONO IMMERSIVO

Perdersi nel suono dello studio

Dai toni più alti ai bassi più profondi, le note arrivano armoniose grazie agli altoparlanti a 2 vie integrati, appositamente progettati, con suono di AKG. I Galaxy Buds Pro offrono l’esperienza di un suono più immersivo nei Galaxy Buds, che si tratti di un nuovo album o un audiolibro per il tuo prossimo viaggio.

*Il suono di AKG nei Galaxy Buds Pro ha ricevuto la certificazione Harman con voti eccellenti.

Chiamate senza rumori:

non ci crederete. Chiamate di qualità superiore per auricolari realmente wireless: meno rumore e una voce più nitida durante le chiamate da casa o nel mondo. Con tre microfoni integrati e l’unità di captazione della voce, ogni parola sarà limpida come il cristallo. Il design a bassa protrusione riduce al minimo il contatto con il vento, mentre la sofisticata soluzione antivento blocca il rumore del vento durante le chiamate.

*I risultati si basano su un test di laboratorio interno Samsung conforme al test standardizzato globale POLQA sulla qualità delle chiamate.

Auricolare Galaxy Buds Pro nella versione Phantom Violet, suddiviso in strati per mostrare la posizione degli altoparlanti, del woofer, del tweeter e delle prese d’aria. Left Galaxy Buds Pro earbud in Phantom Black seen from the front.Right Galaxy Buds Pro earbud in Phantom Black seen from the rear.

AUDIO 360

Audio veristico, per immergerti nel suono
con un realismo incredibil

L’esperienza dell’audio 360 è talmente coinvolgente che ti sposta al centro della scena. Con la tecnologia Dolby Head Tracking™, i Galaxy Buds Pro ti pongono al centro del tuo video, film o programma televisivo preferito. Il sensore intelligente di monitoraggio del movimento punta in direzione del suono allo spostamento della testa, regalandoti un’esperienza di ascolto estremamente realistico. Il contenuto in Dolby Atmos® ti permetterà di ascoltare ogni singolo dettaglio più nitidamente e percepire una connessione più profonda con la storia.6

Mutuo per non bancabile

La banca non ti concede il mutuo per acquistare l’immobile?

lo acquistiamo noi per te (pagamento dilazionato in 30 anni)

Siamo operativi in tutta Italia

Dolby Atmos logo

Tutte le tue parole
in perfetta armonia

A Galaxy smartphone and Galaxy Buds Pro in Phantom Violet in their charging case. The smartphone has the Music UI onscreen. A Galaxy tablet slides into view, with a graphic wallpaper onscreen. and a Galaxy tablet. A video call is received on the tablet and the connection of the earbuds switches between the tablet and the phone instantly, to demonstrate Auto Switch. The smartphone says Ben’s Galaxy Buds Pro Switched to Galaxy Tab. The tablet says Ben’s Galaxy Buds Pro Connected automatically.

PASSAGGIO AUTOMATICO

Il passaggio automatico nei Galaxy Buds Pro rileva ciò che ha priorità e sposta istantaneamente la sua connessione al dispositivo in questione. Quando guardi un film sul tablet e ricevi una chiamata, i Galaxy Buds Pro passano l’audio al tuo smartphone. Al termine della chiamata, i Galaxy Buds Pro si riconnettono perfettamente al tablet, passando da dispositivo a dispositivo senza neanche toccare lo schermo.7, 8

RISVEGLIO VOCALE BIXBY

Il tuo assistente intelligente,
sempre al tuo fianco

Vignette per dimostrare una conversazione fra l’utente e Bixby. L’utente chiede Com’è il tempo oggi? e Bixby risponde C’è il sole e al momento ci sono 22 °C. Quindi l’utente chiede Quanta batteria rimane nei miei auricolari? e Bixby risponde I tuoi auricolari sono all’88%.

“Com’è il tempo oggi?”

Salva immobile all’asta

Acquistiamo il tuo immobile all’asta per futuri acquirenti (consigliati da te)

Pagamento in 30 anni

Siamo operativi in tutta Italia

“È soleggiato”

“Quanta batteria
hanno le mie Buds?”

“Le tue Buds hanno l’88% di carica”

Quando sei connesso al tuo smartphone, puoi dare comandi vocali. Un semplice “Ciao Bixby” lo risveglia, quindi puoi dare il comando di effettuare una telefonata, cambiare musica e altro.9, 10, 11 Puoi anche passare da un dispositivo Samsung all’altro pronunciandone il nome e attivare o disattivare la funzione ANC o modalità ambiente.

*Immagine simulata a scopo illustrativo.

SMARTTHINGS FIND

Vinci a nascondino con i tuoi auricolari

Galaxy smartphone showing the SmartThings Find UI onscreen so the user can find their Galaxy Buds Pro.

Ritrovare i tuoi auricolari smarriti è semplice. Basta aprire l’app SmartThings. I tuoi auricolari emetteranno un beep, così sarà semplice trovarli nella tua camera. Inoltre, con la funzione di ricerca offline, potrai scoprire l’ultimo posto in cui sono stati utilizzati, anche se non sono più collegati al tuo smartphone.12, 13, 14

BUDS TOGETHER

Prestiti personali – delibera immediata

Siamo operativi in tutta Italia

Condividi il suono con il tuo auricolare

Two men, both wearing Galaxy Buds Pro, listening to the same audio with Buds Together.

Non togliere i tuoi auricolari e invita un amico a connettersi. Buds Together consente di collegare due set di Galaxy Buds Pro al tuo smartphone nello stesso momento, in modo tale da poter ascoltare la playlist del tuo amico con una qualità del suono professionale.15

Chiamate vocali sensazionali per un design sensazionale

  • Phantom Violet
  • Phantom Silver
  • Phantom Black

Tre Galaxy Buds Pro, una versione Phantom Black, una versione Phantom Violet e una versione Phantom Silver. Tutti sono mostrati nella custodia di ricarica, con il coperchio aperto.

COLORE

Finiture glossy per toccare le corde giuste

Disponibile in tre colori moda.16 Scegli fra l’intramontabile nero, un viola vivace o un argento mozzafiato per dare luce alle cose. Ogni auricolare è rivestito da uno strato lucido mentre il materiale interno è morbido contro l’orecchio Non dimenticarti della custodia abbinata.

Woman wearing Galaxy Buds Pro in Phantom Black, smiling widely.

Finanziamenti per estinguere debiti a saldo e stralcio

Siamo operativi in tutta Italia

POSIZIONAMENTO SICURO

La posizione giusta è qui

Un nuovo approccio alla classica forma dell’auricolare: il design riduce il fastidio quando sei connesso per ore e l’auricolare rimane nell’orecchio senza muoversi quando ti alleni. Con le prese d’aria che equilibrano la pressione nell’orecchio e aumentano il flusso d’aria, la sensazione quando li indossi è così naturale che potresti dimenticarti di averli.

Con gommini in tre diverse misure

fra cui scegliere, li puoi testare per assicurarti che i tuoi Galaxy Buds Pro si inseriscano nell’orecchio perfettamente e in sicurezza: con una buona tenuta la funzione ANC lavora al meglio.

Galaxy Buds Pro charging case in Phantom Violet, seen closed. Animated rings circle the case to demonstrate the long-lasting battery power.

DURATA DELLA BATTERIA

Tutta l’energia per lasciarti trasportare dal ritmo

Attiva la funzione ANC e i tuoi Galaxy Buds Pro ti assicureranno 5 ore di riproduzione, con altre 13 nella custodia. Per un totale di 18 ore.17 Quando la funzione ANC è disattivata, sono 28 ore complessive, di cui 8 di riproduzione e altre 20 nella custodia.18 Che si tratti di una giornata piena di videoconferenze, incontri con amici o ascolto della tua playlist preferita, i tuoi Galaxy Buds Pro ti consentiranno di restare connesso e in ascolto.

Ricarica rapida.

Cinque minuti di ricarica offrono un’altra ora di riproduzione. Darai ai tuoi auricolari la possibilità di un breve sonno ristoratore. 19

Wireless PowerShare

per darti tutta l’energia necessaria: riponi i tuoi Galaxy Buds Pro sul tuo smartphone Galaxy per una ricarica wireless. 20

*Immagine simulata a scopo illustrativo.

RESISTENTE ALL’ACQUA IPX7

IPX7.
Lo standard massimo
di resistenza all’acqua
nei Galaxy Buds21

-1||window.IS_CAMPAIGN===true) ? true : false; (function() { var width = document.documentElement.offsetWidth; var sizeMode = width > 1440 ? 4 : width > 1023 ? 3 : width > 767 ? 2 : 1; var userAgent = navigator.userAgent.toLowerCase(); var brower = userAgent.indexOf(‘trident’) > -1 ? ‘ie’ : userAgent.indexOf(‘edg’) > -1 ? ‘edge’ : userAgent.indexOf(‘firefox’) > -1 ? ‘firefox’ : (userAgent.indexOf(‘chrome’) > -1) || (userAgent.indexOf(‘CriOS’) > -1) ? ‘chrome’ : userAgent.indexOf(‘safari’) > -1 ? ‘safari’ : ”; var isSamsung = userAgent.indexOf(‘samsung’) > -1 ? ‘samsung’ : ”; var isMobile = userAgent.indexOf(‘mobile’) > -1 ? ‘mobile’ : ‘desktop’; document.documentElement.className += (‘ s’+ sizeMode +’ s’+ (3 > sizeMode ? 12 : 34) + (360 > width ? ‘ s0′ : ”)) + (___IS_GALAXY?”:’ dotcom’) + ‘ ‘ + brower + ‘ ‘ + isSamsung + ‘ ‘ + isMobile; })(); var _gsScope=”undefined”!=typeof module&&module.exports&&”undefined”!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){“use strict”;var t,e,i,s,r,n,a,o,l,h,_,u,f,c;_gsScope._gsDefine(“TweenMax”,[“core.Animation”,”core.SimpleTimeline”,”TweenLite”],function(t,e,i){var s=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},r=function(t,e,i){var s,r,n=t.cycle;for(s in n)r=n[s],t[s]=”function”==typeof r?r(i,e[i],e):r[i%r.length];delete t.cycle},n=function(t){if(“function”==typeof t)return t;var e=”object”==typeof t?t:{each:t},i=e.ease,s=e.from||0,r=e.base||0,n={},a=isNaN(s),o=e.axis,l={center:.5,end:1}[s]||0;return function(t,h,_){var u,f,c,p,m,d,g,y,v,T=(_||e).length,x=n[T];if(!x){if(!(v=”auto”===e.grid?0:(e.grid||[1/0])[0])){for(g=-1/0;g<(g=_[v++].getBoundingClientRect().left)&&v0||n)for(var o,l=1/(1-r),h=this._firstPT;h;)o=h.s+h.c,h.c*=l,h.s=o-h.c,h=h._next;return this},_.render=function(t,e,s){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var r,n,a,l,h,_,u,f,c,p=this._dirty?this.totalDuration():this._totalDuration,m=this._time,d=this._totalTime,g=this._cycle,y=this._duration,v=this._rawPrevTime;if(t>=p-1e-8&&t>=0?(this._totalTime=p,this._cycle=this._repeat,this._yoyo&&0!=(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=y,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(r=!0,n=”onComplete”,s=s||this._timeline.autoRemoveChildren),0===y&&(this._initted||!this.vars.lazy||s)&&(this._startTime===this._timeline._duration&&(t=0),(v<0||t=-1e-8||1e-8===v&&"isPause"!==this.data)&&v!==t&&(s=!0,v>1e-8&&(n=”onReverseComplete”)),this._rawPrevTime=f=!e||t||v===t?t:1e-8)):t<1e-8?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==d||0===y&&v>0)&&(n=”onReverseComplete”,r=this._reversed),t>-1e-8?t=0:t<0&&(this._active=!1,0===y&&(this._initted||!this.vars.lazy||s)&&(v>=0&&(s=!0),this._rawPrevTime=f=!e||t||v===t?t:1e-8)),this._initted||(s=!0)):(this._totalTime=this._time=t,0!==this._repeat&&(l=y+this._repeatDelay,this._cycle=this._totalTime/l>>0,0!==this._cycle&&this._cycle===this._totalTime/l&&dy?this._time=y:this._time<0&&(this._time=0)),this._easeType&&!c?(h=this._time/y,(1===(_=this._easeType)||3===_&&h>=.5)&&(h=1-h),3===_&&(h*=2),1===(u=this._easePower)?h*=h:2===u?h*=h*h:3===u?h*=h*h*h:4===u&&(h*=h*h*h*h),this.ratio=1===_?1-h:2===_?h:this._time/y=0&&(this._active=!0),0===d&&(2===this._initted&&t>0&&this._init(),this._startAt&&(t>=0?this._startAt.render(t,!0,s):n||(n=”_dummyGS”)),this.vars.onStart&&(0===this._totalTime&&0!==y||e||this._callback(“onStart”))),a=this._firstPT;a;)a.f?a.t[a.p](a.c*this.ratio+a.s):a.t[a.p]=a.c*this.ratio+a.s,a=a._next;this._onUpdate&&(t<0&&this._startAt&&this._startTime&&this._startAt.render(t,!0,s),e||(this._totalTime!==d||n)&&this._callback("onUpdate")),this._cycle!==g&&(e||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),n&&(this._gc&&!s||(t<0&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(t,!0,s),r&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[n]&&this._callback(n),0===y&&1e-8===this._rawPrevTime&&1e-8!==f&&(this._rawPrevTime=0)))}else d!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate"))},a.to=function(t,e,i){return new a(t,e,i)},a.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new a(t,e,i)},a.fromTo=function(t,e,i,s){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,new a(t,e,s)},a.staggerTo=a.allTo=function(t,e,o,_,f,c,p){var m,d,g,y,v=[],T=n(o.stagger||_),x=o.cycle,b=(o.startAt||u).cycle;for(h(t)||("string"==typeof t&&(t=i.selector(t)||t),l(t)&&(t=s(t))),m=(t=t||[]).length-1,g=0;g0};var f=function(t,e){for(var s=[],r=0,n=t._first;n;)n instanceof i?s[r++]=n:(e&&(s[r++]=n),r=(s=s.concat(f(n,e))).length),n=n._next;return s},c=a.getAllTweens=function(e){return f(t._rootTimeline,e).concat(f(t._rootFramesTimeline,e))};a.killAll=function(t,i,s,r){null==i&&(i=!0),null==s&&(s=!0);var n,a,o,l=c(0!=r),h=l.length,_=i&&s&&r;for(o=0;o-1;)a.killChildTweensOf(t[u],e);else{for(_ in r=[],c)for(n=c[_].target.parentNode;n;)n===t&&(r=r.concat(c[_].tweens)),n=n.parentNode;for(f=r.length,u=0;u-1;)a=o[h],(l||a instanceof e||(n=a.target===a.vars.onComplete)&&s||i&&!n)&&a.paused(t)};return a.pauseAll=function(t,e,i){p(!0,t,e,i)},a.resumeAll=function(t,e,i){p(!1,t,e,i)},a.globalTimeScale=function(e){var s=t._rootTimeline,r=i.ticker.time;return arguments.length?(e=e||1e-8,s._startTime=r-(r-s._startTime)*s._timeScale/e,s=t._rootFramesTimeline,r=i.ticker.frame,s._startTime=r-(r-s._startTime)*s._timeScale/e,s._timeScale=t._rootTimeline._timeScale=e,e):s._timeScale},_.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this.duration()?this._time/this._duration:this.ratio},_.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},_.time=function(t,e){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var i=this._duration,s=this._cycle,r=s*(i+this._repeatDelay);return t>i&&(t=i),this.totalTime(this._yoyo&&1&s?i-t+r:this._repeat?t+r:t,e)},_.duration=function(e){return arguments.length?t.prototype.duration.call(this,e):this._duration},_.totalDuration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},_.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},_.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},_.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},a},!0),_gsScope._gsDefine(“TimelineLite”,[“core.Animation”,”core.SimpleTimeline”,”TweenLite”],function(t,e,i){var s=function(t){e.call(this,t);var i,s,r=this.vars;for(s in this._labels={},this.autoRemoveChildren=!!r.autoRemoveChildren,this.smoothChildTiming=!!r.smoothChildTiming,this._sortChildren=!0,this._onUpdate=r.onUpdate,r)i=r[s],o(i)&&-1!==i.join(“”).indexOf(“{self}”)&&(r[s]=this._swapSelfInParams(i));o(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},r=i._internals,n=s._internals={},a=r.isSelector,o=r.isArray,l=r.lazyTweens,h=r.lazyRender,_=_gsScope._gsDefine.globals,u=function(t){var e,i={};for(e in t)i[e]=t[e];return i},f=function(t,e,i){var s,r,n=t.cycle;for(s in n)r=n[s],t[s]=”function”==typeof r?r(i,e[i],e):r[i%r.length];delete t.cycle},c=n.pauseCallback=function(){},p=function(t,e,i,s){var r=”immediateRender”;return r in e||(e[r]=!(i&&!1===i[r]||s)),e},m=function(t){if(“function”==typeof t)return t;var e=”object”==typeof t?t:{each:t},i=e.ease,s=e.from||0,r=e.base||0,n={},a=isNaN(s),o=e.axis,l={center:.5,end:1}[s]||0;return function(t,h,_){var u,f,c,p,m,d,g,y,v,T=(_||e).length,x=n[T];if(!x){if(!(v=”auto”===e.grid?0:(e.grid||[1/0])[0])){for(g=-1/0;g<(g=_[v++].getBoundingClientRect().left)&&v-1;)this.remove(e[s]);return this}return”string”==typeof e?this.removeLabel(e):this.kill(null,e)},d._remove=function(t,i){return e.prototype._remove.call(this,t,i),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},d.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},d.insert=d.insertMultiple=function(t,e,i,s){return this.add(t,e||0,i,s)},d.appendMultiple=function(t,e,i,s){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,s)},d.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},d.addPause=function(t,e,s,r){var n=i.delayedCall(0,c,s,r||this);return n.vars.onComplete=n.vars.onReverseComplete=e,n.data=”isPause”,this._hasPause=!0,this.add(n,t)},d.removeLabel=function(t){return delete this._labels[t],this},d.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},d._parseTimeOrLabel=function(e,i,s,r){var n,a;if(r instanceof t&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&o(r)))for(a=r.length;–a>-1;)r[a]instanceof t&&r[a].timeline===this&&this.remove(r[a]);if(n=”number”!=typeof e||i?this.duration()>99999999999?this.recent().endTime(!1):this._duration:0,”string”==typeof i)return this._parseTimeOrLabel(i,s&&”number”==typeof e&&null==this._labels[i]?e-n:0,s);if(i=i||0,”string”!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=n);else{if(-1===(a=e.indexOf(“=”)))return null==this._labels[e]?s?this._labels[e]=n+i:i:this._labels[e]+i;i=parseInt(e.charAt(a-1)+”1″,10)*Number(e.substr(a+1)),e=a>1?this._parseTimeOrLabel(e.substr(0,a-1),0,s):n}return Number(e)+i},d.seek=function(t,e){return this.totalTime(“number”==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},d.stop=function(){return this.paused(!0)},d.gotoAndPlay=function(t,e){return this.play(t,e)},d.gotoAndStop=function(t,e){return this.pause(t,e)},d.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var s,r,n,a,o,_,u,f,c=this._time,p=this._dirty?this.totalDuration():this._totalDuration,m=this._startTime,d=this._timeScale,g=this._paused;if(c!==this._time&&(t+=this._time-c),this._hasPause&&!this._forcingPlayhead&&!e){if(t>c)for(s=this._first;s&&s._startTime=t&&!_;)s._duration||”isPause”===s.data&&s._rawPrevTime>0&&(_=s),s=s._prev;_&&(this._time=this._totalTime=t=_._startTime,f=this._startTime+(this._reversed?this._duration-t:t)/this._timeScale)}if(t>=p-1e-8&&t>=0)this._totalTime=this._time=p,this._reversed||this._hasPausedChild()||(r=!0,a=”onComplete”,o=!!this._timeline.autoRemoveChildren,0===this._duration&&(t=-1e-8||this._rawPrevTime<0||1e-8===this._rawPrevTime)&&this._rawPrevTime!==t&&this._first&&(o=!0,this._rawPrevTime>1e-8&&(a=”onReverseComplete”))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:1e-8,t=p+1e-4;else if(t<1e-8)if(this._totalTime=this._time=0,t>-1e-8&&(t=0),(0!==c||0===this._duration&&1e-8!==this._rawPrevTime&&(this._rawPrevTime>0||t<0&&this._rawPrevTime>=0))&&(a=”onReverseComplete”,r=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(o=r=!0,a="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(o=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:1e-8,0===t&&r)for(s=this._first;s&&0===s._startTime;)s._duration||(r=!1),s=s._next;t=0,this._initted||(o=!0)}else this._totalTime=this._time=this._rawPrevTime=t;if(this._time!==c&&this._first||i||o||_){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==c&&t>0&&(this._active=!0),0===c&&this.vars.onStart&&(0===this._time&&this._duration||e||this._callback(“onStart”)),(u=this._time)>=c)for(s=this._first;s&&(n=s._next,u===this._time&&(!this._paused||g));)(s._active||s._startTime<=u&&!s._paused&&!s._gc)&&(_===s&&(this.pause(),this._pauseTime=f),s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=n;else for(s=this._last;s&&(n=s._prev,u===this._time&&(!this._paused||g));){if(s._active||s._startTimethis._time;)_.render(_._reversed?_.totalDuration()-(t-_._startTime)*_._timeScale:(t-_._startTime)*_._timeScale,e,i),_=_._prev;_=null,this.pause(),this._pauseTime=f}s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)}s=n}this._onUpdate&&(e||(l.length&&h(),this._callback("onUpdate"))),a&&(this._gc||m!==this._startTime&&d===this._timeScale||(0===this._time||p>=this.totalDuration())&&(r&&(l.length&&h(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[a]&&this._callback(a)))}},d._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof s&&t._hasPausedChild())return!0;t=t._next}return!1},d.getChildren=function(t,e,s,r){r=r||-9999999999;for(var n=[],a=this._first,o=0;a;)a._startTime-1;)(s[r].timeline===this||e&&this._contains(s[r]))&&(a[o++]=s[r]);return n&&this._enabled(!1,!0),a},d.recent=function(){return this._recent},d._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},d.shiftChildren=function(t,e,i){i=i||0;for(var s,r=this._first,n=this._labels;r;)r._startTime>=i&&(r._startTime+=t),r=r._next;if(e)for(s in n)n[s]>=i&&(n[s]+=t);return this._uncache(!0)},d._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),s=i.length,r=!1;–s>-1;)i[s]._kill(t,e)&&(r=!0);return r},d.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;–i>-1;)e[i]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)},d.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},d._enabled=function(t,i){if(t===this._gc)for(var s=this._first;s;)s._enabled(t,!0),s=s._next;return e.prototype._enabled.call(this,t,i)},d.totalTime=function(e,i,s){this._forcingPlayhead=!0;var r=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,r},d.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},d.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,s=0,r=this._last,n=999999999999;r;)e=r._prev,r._dirty&&r.totalDuration(),r._startTime>n&&this._sortChildren&&!r._paused&&!this._calculatingDuration?(this._calculatingDuration=1,this.add(r,r._startTime-r._delay),this._calculatingDuration=0):n=r._startTime,r._startTime<0&&!r._paused&&(s-=r._startTime,this._timeline.smoothChildTiming&&(this._startTime+=r._startTime/this._timeScale,this._time-=r._startTime,this._totalTime-=r._startTime,this._rawPrevTime-=r._startTime),this.shiftChildren(-r._startTime,!1,-9999999999),n=0),(i=r._startTime+r._totalDuration/r._timeScale)>s&&(s=i),r=e;this._duration=this._totalDuration=s,this._dirty=!1}return this._totalDuration}return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this},d.paused=function(e){if(!1===e&&this._paused)for(var i=this._first;i;)i._startTime===this._time&&”isPause”===i.data&&(i._rawPrevTime=0),i=i._next;return t.prototype.paused.apply(this,arguments)},d.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},d.rawTime=function(t){return t&&(this._paused||this._repeat&&this.time()>0&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(t)-this._startTime)*this._timeScale},s},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(t,e,i){var s=function(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!!this.vars.yoyo,this._dirty=!0},r=e._internals,n=r.lazyTweens,a=r.lazyRender,o=_gsScope._gsDefine.globals,l=new i(null,null,1,0),h=s.prototype=new t;return h.constructor=s,h.kill()._gc=!1,s.version="2.1.3",h.invalidate=function(){return this._yoyo=!!this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},h.addCallback=function(t,i,s,r){return this.add(e.delayedCall(0,t,s,r),i)},h.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),s=i.length,r=this._parseTimeOrLabel(e);--s>-1;)i[s]._startTime===r&&i[s]._enabled(!1,!1);return this},h.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},h.tweenTo=function(t,i){i=i||{};var s,r,n,a={ease:l,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},h=i.repeat&&o.TweenMax||e;for(r in i)a[r]=i[r];return a.time=this._parseTimeOrLabel(t),s=Math.abs(Number(a.time)-this._time)/this._timeScale||.001,n=new h(this,s,a),a.onStart=function(){n.target.paused(!0),n.vars.time===n.target.time()||s!==n.duration()||n.isFromTo||n.duration(Math.abs(n.vars.time-n.target.time())/n.target._timeScale).render(n.time(),!0,!0),i.onStart&&i.onStart.apply(i.onStartScope||i.callbackScope||n,i.onStartParams||[])},n},h.tweenFromTo=function(t,e,i){i=i||{},t=this._parseTimeOrLabel(t),i.startAt={onComplete:this.seek,onCompleteParams:[t],callbackScope:this},i.immediateRender=!1!==i.immediateRender;var s=this.tweenTo(e,i);return s.isFromTo=1,s.duration(Math.abs(s.vars.time-t)/this._timeScale||.001)},h.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var s,r,o,l,h,_,u,f,c,p=this._time,m=this._dirty?this.totalDuration():this._totalDuration,d=this._duration,g=this._totalTime,y=this._startTime,v=this._timeScale,T=this._rawPrevTime,x=this._paused,b=this._cycle;if(p!==this._time&&(t+=this._time-p),t>=m-1e-8&&t>=0)this._locked||(this._totalTime=m,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(r=!0,l=”onComplete”,h=!!this._timeline.autoRemoveChildren,0===this._duration&&(t=-1e-8||T<0||1e-8===T)&&T!==t&&this._first&&(h=!0,T>1e-8&&(l=”onReverseComplete”))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:1e-8,this._yoyo&&1&this._cycle?this._time=t=0:(this._time=d,t=d+1e-4);else if(t<1e-8)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,t>-1e-8&&(t=0),(0!==p||0===d&&1e-8!==T&&(T>0||t<0&&T>=0)&&!this._locked)&&(l=”onReverseComplete”,r=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(h=r=!0,l="onReverseComplete"):T>=0&&this._first&&(h=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=d||!e||t||this._rawPrevTime===t?t:1e-8,0===t&&r)for(s=this._first;s&&0===s._startTime;)s._duration||(r=!1),s=s._next;t=0,this._initted||(h=!0)}else 0===d&&T<0&&(h=!0),this._time=this._rawPrevTime=t,this._locked||(this._totalTime=t,0!==this._repeat&&(_=d+this._repeatDelay,this._cycle=this._totalTime/_>>0,this._cycle&&this._cycle===this._totalTime/_&&gd?(this._time=d,t=d+1e-4):this._time<0?this._time=t=0:t=this._time));if(this._hasPause&&!this._forcingPlayhead&&!e){if((t=this._time)>p||this._repeat&&b!==this._cycle)for(s=this._first;s&&s._startTime=t&&!u;)s._duration||”isPause”===s.data&&s._rawPrevTime>0&&(u=s),s=s._prev;u&&(c=this._startTime+(this._reversed?this._duration-u._startTime:u._startTime)/this._timeScale,u._startTime0&&(this._active=!0),0===g&&this.vars.onStart&&(0===this._totalTime&&this._totalDuration||e||this._callback(“onStart”)),(f=this._time)>=p)for(s=this._first;s&&(o=s._next,f===this._time&&(!this._paused||x));)(s._active||s._startTime<=this._time&&!s._paused&&!s._gc)&&(u===s&&(this.pause(),this._pauseTime=c),s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=o;else for(s=this._last;s&&(o=s._prev,f===this._time&&(!this._paused||x));){if(s._active||s._startTimethis._time;)u.render(u._reversed?u.totalDuration()-(t-u._startTime)*u._timeScale:(t-u._startTime)*u._timeScale,e,i),u=u._prev;u=null,this.pause(),this._pauseTime=c}s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)}s=o}this._onUpdate&&(e||(n.length&&a(),this._callback("onUpdate"))),l&&(this._locked||this._gc||y!==this._startTime&&v===this._timeScale||(0===this._time||m>=this.totalDuration())&&(r&&(n.length&&a(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[l]&&this._callback(l)))}else g!==this._totalTime&&this._onUpdate&&(e||this._callback(“onUpdate”))},h.getActive=function(t,e,i){var s,r,n=[],a=this.getChildren(t||null==t,e||null==t,!!i),o=0,l=a.length;for(s=0;s-1;)if(e[i].timei&&(t=i),this.totalTime(this._yoyo&&1&s?i-t+r:this._repeat?t+r:t,e)},h.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},h.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},h.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},h.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+1e-8)},s},!0),t=180/Math.PI,e=[],i=[],s=[],r={},n=_gsScope._gsDefine.globals,a=function(t,e,i,s){i===s&&(i=s-(s-e)/1e6),t===e&&(e=t+(i-t)/1e6),this.a=t,this.b=e,this.c=i,this.d=s,this.da=s-t,this.ca=i-t,this.ba=e-t},o=function(t,e,i,s){var r={a:t},n={},a={},o={c:s},l=(t+e)/2,h=(e+i)/2,_=(i+s)/2,u=(l+h)/2,f=(h+_)/2,c=(f-u)/8;return r.b=l+(t-l)/4,n.b=u+c,r.c=n.a=(r.b+n.b)/2,n.c=a.a=(u+f)/2,a.b=f-c,o.b=_+(s-_)/4,a.c=o.a=(a.b+o.b)/2,[r,n,a,o]},l=function(t,r,n,a,l){var h,_,u,f,c,p,m,d,g,y,v,T,x,b=t.length-1,w=0,P=t[0].a;for(h=0;h-1;)”string”==typeof(f=t[l][s])&&”=”===f.charAt(1)&&(t[l][s]=n[s]+Number(f.charAt(0)+f.substr(2)));if((o=t.length-2)<0)return c[0]=new a(t[0][s],0,0,t[0][s]),c;for(l=0;l1){for(v=t[t.length-1],y=!0,f=x.length;--f>-1;)if(c=x[f],Math.abs(b[c]-v[c])>.05){y=!1;break}y&&(t=t.concat(),u&&t.unshift(u),t.push(t[1]),u=t[t.length-3])}for(e.length=i.length=s.length=0,f=x.length;–f>-1;)c=x[f],r[c]=-1!==_.indexOf(“,”+c+”,”),T[c]=h(t,c,r[c],u);for(f=e.length;–f>-1;)e[f]=Math.sqrt(e[f]),i[f]=Math.sqrt(i[f]);if(!o){for(f=x.length;–f>-1;)if(r[c])for(g=(p=T[x[f]]).length-1,m=0;m-1;)s[f]=Math.sqrt(s[f])}for(f=x.length,m=a?4:1;–f>-1;)p=T[c=x[f]],l(p,n,a,o,r[c]),y&&(p.splice(0,m),p.splice(p.length-m,m));return T},u=function(t,e,i){for(var s,r,n,a,o,l,h,_,u,f,c,p=1/i,m=t.length;–m>-1;)for(n=(f=t[m]).a,a=f.d-n,o=f.c-n,l=f.b-n,s=r=0,_=1;_-1;)s=this._props[n],this._overwriteProps.push(s),r=this._func[s]=”function”==typeof t[s],f[s]=r?t[s.indexOf(“set”)||”function”!=typeof t[“get”+s.substr(3)]?s:”get”+s.substr(3)]():parseFloat(t[s]),l||f[s]!==h[0][s]&&(l=f);if(this._beziers=”cubic”!==e.type&&”quadratic”!==e.type&&”soft”!==e.type?_(h,isNaN(e.curviness)?1:e.curviness,!1,”thruBasic”===e.type,e.correlate,l):function(t,e,i){var s,r,n,o,l,h,_,u,f,c,p,m={},d=”cubic”===(e=e||”soft”)?3:2,g=”soft”===e,y=[];if(g&&i&&(t=[i].concat(t)),null==t||t.length-1;){for(m[f=y[h]]=l=[],c=0,u=t.length,_=0;_1&&_>0||6)-1,f=[],c=[];for(i in t)u(t[i],a,e);for(r=a.length,s=0;s>0]=c,o[n]=h,l=0,c=[]);return{length:h,lengths:o,segments:f}}(this._beziers,this._timeRes);this._length=m.length,this._lengths=m.lengths,this._segments=m.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(p=this._autoRotate)for(this._initialRotations=[],p[0]instanceof Array||(this._autoRotate=p=[p]),n=p.length;–n>-1;){for(o=0;o<3;o++)s=p[n][o],this._func[s]="function"==typeof t[s]&&t[s.indexOf("set")||"function"!=typeof t["get"+s.substr(3)]?s:"get"+s.substr(3)];s=p[n][2],this._initialRotations[n]=(this._func[s]?this._func[s].call(this._target):this._target[s])||0,this._overwriteProps.push(s)}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(e){var i,s,r,n,a,o,l,h,_,u,f,c=this._segCount,p=this._func,m=this._target,d=e!==this._startRatio;if(this._timeRes){if(_=this._lengths,u=this._curSeg,f=e*this._length,r=this._li,f>this._l2&&r0&&(this._l1=_[–r])>=f;);0===r&&fthis._s2&&r0&&(this._s1=u[–r])>=f;);0===r&&f=1?c-1:c*e>>0)*(1/c))*c;for(s=1-o,r=this._props.length;–r>-1;)n=this._props[r],l=(o*o*(a=this._beziers[n][i]).da+3*s*(o*a.ca+s*a.ba))*o+a.a,this._mod[n]&&(l=this._mod[n](l,m)),p[n]?m[n](l):m[n]=l;if(this._autoRotate){var g,y,v,T,x,b,w,P=this._autoRotate;for(r=P.length;–r>-1;)n=P[r][2],b=P[r][3]||0,w=!0===P[r][4]?1:t,a=this._beziers[P[r][0]],g=this._beziers[P[r][1]],a&&g&&(a=a[i],g=g[i],y=a.a+(a.b-a.a)*o,y+=((T=a.b+(a.c-a.b)*o)-y)*o,T+=(a.c+(a.d-a.c)*o-T)*o,v=g.a+(g.b-g.a)*o,v+=((x=g.b+(g.c-g.b)*o)-v)*o,x+=(g.c+(g.d-g.c)*o-x)*o,l=d?Math.atan2(x-v,T-y)*w+b:this._initialRotations[r],this._mod[n]&&(l=this._mod[n](l,m)),p[n]?m[n](l):m[n]=l)}}}),c=f.prototype,f.bezierThrough=_,f.cubicToQuadratic=o,f._autoCSS=!0,f.quadraticToCubic=function(t,e,i){return new a(t,(2*e+t)/3,(2*e+i)/3,i)},f._cssRegister=function(){var t=n.CSSPlugin;if(t){var e=t._internals,i=e._parseToProxy,s=e._setPluginRatio,r=e.CSSPropTween;e._registerComplexSpecialProp(“bezier”,{parser:function(t,e,n,a,o,l){e instanceof Array&&(e={values:e}),l=new f;var h,_,u,c=e.values,p=c.length-1,m=[],d={};if(p<0)return o;for(h=0;h-1;)(e=t[i[s]])&&"function"==typeof e&&(this._mod[i[s]]=e)},c._kill=function(t){var e,i,s=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=s.length;--i>-1;)s[i]===e&&s.splice(i,1);if(s=this._autoRotate)for(i=s.length;–i>-1;)t[s[i][2]]&&s.splice(i,1);return this._super._kill.call(this,t)},_gsScope._gsDefine(“plugins.CSSPlugin”,[“plugins.TweenPlugin”,”TweenLite”],function(t,e){var i,s,r,n,a=function(){t.call(this,”css”),this._overwriteProps.length=0,this.setRatio=a.prototype.setRatio},o=_gsScope._gsDefine.globals,l={},h=a.prototype=new t(“css”);h.constructor=a,a.version=”2.1.3″,a.API=2,a.defaultTransformPerspective=0,a.defaultSkewType=”compensated”,a.defaultSmoothOrigin=!0,h=”px”,a.suffixMap={top:h,right:h,bottom:h,left:h,width:h,height:h,fontSize:h,padding:h,margin:h,perspective:h,lineHeight:””};var _,u,f,c,p,m,d,g,y=/(?:-|.|b)(d|.|e-)+/g,v=/(?:d|-d|.d|-.d|+=d|-=d|+=.d|-=.d)+/g,T=/(?:+=|-=|-|b)[d-.]+[a-zA-Z0-9]*(?:%|b)/gi,x=/(?:+=|-=|-|b)[d-.]+[a-zA-Z0-9]*(?:%|b),?/gi,b=/(?![+-]?d*.?d+|[+-]|e[+-]d+)[^0-9]/g,w=/(?:d|-|+|=|#|.)*/g,P=/opacity *= *([^)]*)/i,O=/opacity:([^;]*)/i,S=/alpha(opacity *=.+?)/i,k=/^(rgb|hsl)/,R=/([A-Z])/g,A=/-([a-z])/gi,C=/(^(?:url(“|url())|(?:(“))$|)$)/gi,M=function(t,e){return e.toUpperCase()},D=/(?:Left|Right|Width)/i,F=/(M11|M12|M21|M22)=[d-.e]+/gi,z=/progid:DXImageTransform.Microsoft.Matrix(.+?)/i,E=/,(?=[^)]*(?:(|$))/gi,I=/[s,(]/i,X=Math.PI/180,N=180/Math.PI,L={},B={style:{}},Y=_gsScope.document||{createElement:function(){return B}},j=function(t,e){var i=Y.createElementNS?Y.createElementNS(e||”http://www.w3.org/1999/xhtml”,t):Y.createElement(t);return i.style?i:Y.createElement(t)},U=j(“div”),V=j(“img”),q=a._internals={_specialProps:l},W=(_gsScope.navigator||{}).userAgent||””,G=function(){var t=W.indexOf(“Android”),e=j(“a”);return f=-1!==W.indexOf(“Safari”)&&-1===W.indexOf(“Chrome”)&&(-1===t||parseFloat(W.substr(t+8,2))>3),p=f&&parseFloat(W.substr(W.indexOf(“Version/”)+8,2))<6,c=-1!==W.indexOf("Firefox"),(/MSIE ([0-9]{1,}[.0-9]{0,})/.exec(W)||/Trident/.*rv:([0-9]{1,}[.0-9]{0,})/.exec(W))&&(m=parseFloat(RegExp.$1)),!!e&&(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity))}(),Z=function(t){return P.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},H=function(t){_gsScope.console&&console.log(t)},$="",Q="",K=function(t,e){var i,s,r=(e=e||U).style;if(void 0!==r[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],s=5;--s>-1&&void 0===r[i[s]+t];);return s>=0?($=”-“+(Q=3===s?”ms”:i[s]).toLowerCase()+”-“,Q+t):null},J=”undefined”!=typeof window?window:Y.defaultView||{getComputedStyle:function(){}},tt=function(t){return J.getComputedStyle(t)},et=a.getStyle=function(t,e,i,s,r){var n;return G||”opacity”!==e?(!s&&t.style[e]?n=t.style[e]:(i=i||tt(t))?n=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(R,”-$1″).toLowerCase()):t.currentStyle&&(n=t.currentStyle[e]),null==r||n&&”none”!==n&&”auto”!==n&&”auto auto”!==n?n:r):Z(t)},it=q.convertToPixels=function(t,i,s,r,n){if(“px”===r||!r&&”lineHeight”!==i)return s;if(“auto”===r||!s)return 0;var o,l,h,_=D.test(i),u=t,f=U.style,c=s<0,p=1===s;if(c&&(s=-s),p&&(s*=100),"lineHeight"!==i||r)if("%"===r&&-1!==i.indexOf("border"))o=s/100*(_?t.clientWidth:t.clientHeight);else{if(f.cssText="border:0 solid red;position:"+et(t,"position")+";line-height:0;","%"!==r&&u.appendChild&&"v"!==r.charAt(0)&&"rem"!==r)f[_?"borderLeftWidth":"borderTopWidth"]=s+r;else{if(u=t.parentNode||Y.body,-1!==et(u,"display").indexOf("flex")&&(f.position="absolute"),l=u._gsCache,h=e.ticker.frame,l&&_&&l.time===h)return l.width*s/100;f[_?"width":"height"]=s+r}u.appendChild(U),o=parseFloat(U[_?"offsetWidth":"offsetHeight"]),u.removeChild(U),_&&"%"===r&&!1!==a.cacheWidths&&((l=u._gsCache=u._gsCache||{}).time=h,l.width=o/s*100),0!==o||n||(o=it(t,i,s,r,!0))}else l=tt(t).lineHeight,t.style.lineHeight=s,o=parseFloat(tt(t).lineHeight),t.style.lineHeight=l;return p&&(o/=100),c?-o:o},st=q.calculateOffset=function(t,e,i){if("absolute"!==et(t,"position",i))return 0;var s="left"===e?"Left":"Top",r=et(t,"margin"+s,i);return t["offset"+s]-(it(t,e,parseFloat(r),r.replace(w,""))||0)},rt=function(t,e){var i,s,r,n={};if(e=e||tt(t))if(i=e.length)for(;--i>-1;)-1!==(r=e[i]).indexOf(“-transform”)&&Et!==r||(n[r.replace(A,M)]=e.getPropertyValue(r));else for(i in e)-1!==i.indexOf(“Transform”)&&zt!==i||(n[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)”string”==typeof i&&void 0===n[i]&&(n[i.replace(A,M)]=e[i]);return G||(n.opacity=Z(t)),s=Zt(t,e,!1),n.rotation=s.rotation,n.skewX=s.skewX,n.scaleX=s.scaleX,n.scaleY=s.scaleY,n.x=s.x,n.y=s.y,Xt&&(n.z=s.z,n.rotationX=s.rotationX,n.rotationY=s.rotationY,n.scaleZ=s.scaleZ),n.filters&&delete n.filters,n},nt=function(t,e,i,s,r){var n,a,o,l={},h=t.style;for(a in i)”cssText”!==a&&”length”!==a&&isNaN(a)&&(e[a]!==(n=i[a])||r&&r[a])&&-1===a.indexOf(“Origin”)&&(“number”!=typeof n&&”string”!=typeof n||(l[a]=”auto”!==n||”left”!==a&&”top”!==a?””!==n&&”auto”!==n&&”none”!==n||”string”!=typeof e[a]||””===e[a].replace(b,””)?n:0:st(t,a),void 0!==h[a]&&(o=new Tt(h,a,h[a],o))));if(s)for(a in s)”className”!==a&&(l[a]=s[a]);return{difs:l,firstMPT:o}},at={width:[“Left”,”Right”],height:[“Top”,”Bottom”]},ot=[“marginLeft”,”marginRight”,”marginTop”,”marginBottom”],lt=function(t,e,i){if(“svg”===(t.nodeName+””).toLowerCase())return(i||tt(t))[e]||0;if(t.getCTM&&qt(t))return t.getBBox()[e]||0;var s=parseFloat(“width”===e?t.offsetWidth:t.offsetHeight),r=at[e],n=r.length;for(i=i||tt(t);–n>-1;)s-=parseFloat(et(t,”padding”+r[n],i,!0))||0,s-=parseFloat(et(t,”border”+r[n]+”Width”,i,!0))||0;return s},ht=function(t,e){if(“contain”===t||”auto”===t||”auto auto”===t)return t+” “;null!=t&&””!==t||(t=”0 0″);var i,s=t.split(” “),r=-1!==t.indexOf(“left”)?”0%”:-1!==t.indexOf(“right”)?”100%”:s[0],n=-1!==t.indexOf(“top”)?”0%”:-1!==t.indexOf(“bottom”)?”100%”:s[1];if(s.length>3&&!e){for(s=t.split(“, “).join(“,”).split(“,”),t=[],i=0;i2?” “+s[2]:””),e&&(e.oxp=-1!==r.indexOf(“%”),e.oyp=-1!==n.indexOf(“%”),e.oxr=”=”===r.charAt(1),e.oyr=”=”===n.charAt(1),e.ox=parseFloat(r.replace(b,””)),e.oy=parseFloat(n.replace(b,””)),e.v=t),e||t},_t=function(t,e){return”function”==typeof t&&(t=t(g,d)),”string”==typeof t&&”=”===t.charAt(1)?parseInt(t.charAt(0)+”1″,10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0},ut=function(t,e){“function”==typeof t&&(t=t(g,d));var i=”string”==typeof t&&”=”===t.charAt(1);return”string”==typeof t&&”v”===t.charAt(t.length-2)&&(t=(i?t.substr(0,2):0)+window[“inner”+(“vh”===t.substr(-2)?”Height”:”Width”)]*(parseFloat(i?t.substr(2):t)/100)),null==t?e:i?parseInt(t.charAt(0)+”1″,10)*parseFloat(t.substr(2))+e:parseFloat(t)||0},ft=function(t,e,i,s){var r,n,a,o;return”function”==typeof t&&(t=t(g,d)),null==t?a=e:”number”==typeof t?a=t:(360,r=t.split(“_”),n=((o=”=”===t.charAt(1))?parseInt(t.charAt(0)+”1″,10)*parseFloat(r[0].substr(2)):parseFloat(r[0]))*(-1===t.indexOf(“rad”)?1:N)-(o?0:e),r.length&&(s&&(s[i]=e+n),-1!==t.indexOf(“short”)&&(n%=360)!==n%180&&(n=n<0?n+360:n-360),-1!==t.indexOf("_cw")&&n<0?n=(n+3599999999640)%360-360*(n/360|0):-1!==t.indexOf("ccw")&&n>0&&(n=(n-3599999999640)%360-360*(n/360|0))),a=e+n),a<1e-6&&a>-1e-6&&(a=0),a},ct={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},pt=function(t,e,i){return 255*(6*(t=t<0?t+1:t>1?t-1:t)<1?e+(i-e)*t*6:t>16,t>>8&255,255&t];else{if(“,”===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),ct[t])i=ct[t];else if(“#”===t.charAt(0))4===t.length&&(s=t.charAt(1),r=t.charAt(2),n=t.charAt(3),t=”#”+s+s+r+r+n+n),i=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t];else if(“hsl”===t.substr(0,3))if(i=f=t.match(y),e){if(-1!==t.indexOf(“=”))return t.match(v)}else a=Number(i[0])%360/360,o=Number(i[1])/100,s=2*(l=Number(i[2])/100)-(r=l3&&(i[3]=Number(i[3])),i[0]=pt(a+1/3,s,r),i[1]=pt(a,s,r),i[2]=pt(a-1/3,s,r);else i=t.match(y)||ct.transparent;i[0]=Number(i[0]),i[1]=Number(i[1]),i[2]=Number(i[2]),i.length>3&&(i[3]=Number(i[3]))}else i=ct.black;return e&&!f&&(s=i[0]/255,r=i[1]/255,n=i[2]/255,l=((h=Math.max(s,r,n))+(_=Math.min(s,r,n)))/2,h===_?a=o=0:(u=h-_,o=l>.5?u/(2-h-_):u/(h+_),a=h===s?(r-n)/u+(rc–)for(;++c<_;)f[c]=i?f[(c-1)/2|0]:a[c];return o+f.join(h)+h+e+l+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,n,f;if("number"==typeof t)t+=u;else if(s&&E.test(t)){for(n=t.replace(E,"|").split("|"),f=0;ff--)for(;++f>0];return r.parse(e,o,n,a)}},Tt=(q._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,s,r,n,a=this.data,o=a.proxy,l=a.firstMPT;l;)e=o[l.v],l.r?e=l.r(e):e<1e-6&&e>-1e-6&&(e=0),l.t[l.p]=e,l=l._next;if(a.autoRotate&&(a.autoRotate.rotation=a.mod?a.mod.call(this._tween,o.rotation,this.t,this._tween):o.rotation),1===t||0===t)for(l=a.firstMPT,n=1===t?”e”:”b”;l;){if((i=l.t).type){if(1===i.type){for(r=i.xs0+i.s+i.xs1,s=1;s0?(a.data[“xn”+o]=e+i,a.rxp[“xn”+o]=r,a[“xn”+o]=e,a.plugin||(a.xfirst=new xt(a,”xn”+o,e,i,a.xfirst||a,0,a.n,r,a.pr),a.xfirst.xs0=0),a):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=r,a)):(a[“xs”+o]+=e+(s||””),a)};var Ot=function(t,e){e=e||{},this.p=e.prefix&&K(t)||t,l[t]=l[this.p]=this,this.format=e.formatter||yt(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.allowFunc=e.allowFunc,this.pr=e.priority||0},St=q._registerComplexSpecialProp=function(t,e,i){“object”!=typeof e&&(e={parser:i});var s,r=t.split(“,”),n=e.defaultValue;for(i=i||[n],s=0;so.length?l.length:o.length,a=0;a-1;)n=Number(r[Pt]),r[Pt]=(a=n-(n|=0))?(1e5*a+(a<0?-.5:.5)|0)/1e5+n:n;return e&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r},Zt=q.getTransform=function(t,i,s,r){if(t._gsTransform&&s&&!r)return t._gsTransform;var n,o,l,h,_,u,f=s&&t._gsTransform||new Nt,c=f.scaleX<0,p=Xt&&(parseFloat(et(t,It,i,!1,"0 0 0").split(" ")[2])||f.zOrigin)||0,m=parseFloat(a.defaultTransformPerspective)||0;if(f.svg=!(!t.getCTM||!qt(t)),f.svg&&(Ut(t,et(t,It,i,!1,"50% 50%")+"",f,t.getAttribute("data-svg-origin")),Rt=a.useSVGTransformAttr||jt),(n=Gt(t))!==Wt){if(16===n.length){var d,g,y,v,T,x=n[0],b=n[1],w=n[2],P=n[3],O=n[4],S=n[5],k=n[6],R=n[7],A=n[8],C=n[9],M=n[10],D=n[12],F=n[13],z=n[14],E=n[11],I=Math.atan2(k,M);f.zOrigin&&(D=A*(z=-f.zOrigin)-n[12],F=C*z-n[13],z=M*z+f.zOrigin-n[14]),f.rotationX=I*N,I&&(d=O*(v=Math.cos(-I))+A*(T=Math.sin(-I)),g=S*v+C*T,y=k*v+M*T,A=O*-T+A*v,C=S*-T+C*v,M=k*-T+M*v,E=R*-T+E*v,O=d,S=g,k=y),I=Math.atan2(-w,M),f.rotationY=I*N,I&&(g=b*(v=Math.cos(-I))-C*(T=Math.sin(-I)),y=w*v-M*T,C=b*T+C*v,M=w*T+M*v,E=P*T+E*v,x=d=x*v-A*T,b=g,w=y),I=Math.atan2(b,x),f.rotation=I*N,I&&(d=x*(v=Math.cos(I))+b*(T=Math.sin(I)),g=O*v+S*T,y=A*v+C*T,b=b*v-x*T,S=S*v-O*T,C=C*v-A*T,x=d,O=g,A=y),f.rotationX&&Math.abs(f.rotationX)+Math.abs(f.rotation)>359.9&&(f.rotationX=f.rotation=0,f.rotationY=180-f.rotationY),I=Math.atan2(O,S),f.scaleX=(1e5*Math.sqrt(x*x+b*b+w*w)+.5|0)/1e5,f.scaleY=(1e5*Math.sqrt(S*S+k*k)+.5|0)/1e5,f.scaleZ=(1e5*Math.sqrt(A*A+C*C+M*M)+.5|0)/1e5,x/=f.scaleX,O/=f.scaleY,b/=f.scaleX,S/=f.scaleY,Math.abs(I)>2e-5?(f.skewX=I*N,O=0,”simple”!==f.skewType&&(f.scaleY*=1/Math.cos(I))):f.skewX=0,f.perspective=E?1/(E<0?-E:E):0,f.x=D,f.y=F,f.z=z,f.svg&&(f.x-=f.xOrigin-(f.xOrigin*x-f.yOrigin*O),f.y-=f.yOrigin-(f.yOrigin*b-f.xOrigin*S))}else if(!Xt||r||!n.length||f.x!==n[4]||f.y!==n[5]||!f.rotationX&&!f.rotationY){var X=n.length>=6,L=X?n[0]:1,B=n[1]||0,Y=n[2]||0,j=X?n[3]:1;f.x=n[4]||0,f.y=n[5]||0,l=Math.sqrt(L*L+B*B),h=Math.sqrt(j*j+Y*Y),_=L||B?Math.atan2(B,L)*N:f.rotation||0,u=Y||j?Math.atan2(Y,j)*N+_:f.skewX||0,f.scaleX=l,f.scaleY=h,f.rotation=_,f.skewX=u,Xt&&(f.rotationX=f.rotationY=f.z=0,f.perspective=m,f.scaleZ=1),f.svg&&(f.x-=f.xOrigin-(f.xOrigin*L+f.yOrigin*Y),f.y-=f.yOrigin-(f.xOrigin*B+f.yOrigin*j))}for(o in Math.abs(f.skewX)>90&&Math.abs(f.skewX)<270&&(c?(f.scaleX*=-1,f.skewX+=f.rotation<=0?180:-180,f.rotation+=f.rotation<=0?180:-180):(f.scaleY*=-1,f.skewX+=f.skewX-2e-5&&(f[o]=0)}return s&&(t._gsTransform=f,f.svg&&(Rt&&t.style[zt]?e.delayedCall(.001,function(){Kt(t.style,zt)}):!Rt&&t.getAttribute("transform")&&e.delayedCall(.001,function(){t.removeAttribute("transform")}))),f},Ht=function(t){var e,i,s=this.data,r=-s.rotation*X,n=r+s.skewX*X,a=(Math.cos(r)*s.scaleX*1e5|0)/1e5,o=(Math.sin(r)*s.scaleX*1e5|0)/1e5,l=(Math.sin(n)*-s.scaleY*1e5|0)/1e5,h=(Math.cos(n)*s.scaleY*1e5|0)/1e5,_=this.t.style,u=this.t.currentStyle;if(u){i=o,o=-l,l=-i,e=u.filter,_.filter="";var f,c,p=this.t.offsetWidth,d=this.t.offsetHeight,g="absolute"!==u.position,y="progid:DXImageTransform.Microsoft.Matrix(M11="+a+", M12="+o+", M21="+l+", M22="+h,v=s.x+p*s.xPercent/100,T=s.y+d*s.yPercent/100;if(null!=s.ox&&(v+=(f=(s.oxp?p*s.ox*.01:s.ox)-p/2)-(f*a+(c=(s.oyp?d*s.oy*.01:s.oy)-d/2)*o),T+=c-(f*l+c*h)),y+=g?", Dx="+((f=p/2)-(f*a+(c=d/2)*o)+v)+", Dy="+(c-(f*l+c*h)+T)+")":", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?_.filter=e.replace(z,y):_.filter=y+" "+e,0!==t&&1!==t||1===a&&0===o&&0===l&&1===h&&(g&&-1===y.indexOf("Dx=0, Dy=0")||P.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&_.removeAttribute("filter")),!g){var x,b,O,S=m<8?1:-1;for(f=s.ieOffsetX||0,c=s.ieOffsetY||0,s.ieOffsetX=Math.round((p-((a<0?-a:a)*p+(o<0?-o:o)*d))/2+v),s.ieOffsetY=Math.round((d-((h<0?-h:h)*d+(l<0?-l:l)*p))/2+T),Pt=0;Pt<4;Pt++)O=(i=-1!==(x=u[b=ot[Pt]]).indexOf("px")?parseFloat(x):it(this.t,b,parseFloat(x),x.replace(w,""))||0)!==s[b]?Pt<2?-s.ieOffsetX:-s.ieOffsetY:Pt<2?f-s.ieOffsetX:c-s.ieOffsetY,_[b]=(s[b]=Math.round(i-O*(0===Pt||2===Pt?1:S)))+"px"}}},$t=q.set3DTransformRatio=q.setTransformRatio=function(t){var e,i,s,r,n,a,o,l,h,_,u,f,p,m,d,g,y,v,T,x,b=this.data,w=this.t.style,P=b.rotation,O=b.rotationX,S=b.rotationY,k=b.scaleX,R=b.scaleY,A=b.scaleZ,C=b.x,M=b.y,D=b.z,F=b.svg,z=b.perspective,E=b.force3D,I=b.skewY,N=b.skewX;if(I&&(N+=I,P+=I),!((1!==t&&0!==t||"auto"!==E||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&E||D||z||S||O||1!==A)||Rt&&F||!Xt)P||N||F?(P*=X,x=N*X,1e5,i=Math.cos(P)*k,n=Math.sin(P)*k,s=Math.sin(P-x)*-R,a=Math.cos(P-x)*R,x&&"simple"===b.skewType&&(e=Math.tan(x-I*X),s*=e=Math.sqrt(1+e*e),a*=e,I&&(e=Math.tan(I*X),i*=e=Math.sqrt(1+e*e),n*=e)),F&&(C+=b.xOrigin-(b.xOrigin*i+b.yOrigin*s)+b.xOffset,M+=b.yOrigin-(b.xOrigin*n+b.yOrigin*a)+b.yOffset,Rt&&(b.xPercent||b.yPercent)&&(d=this.t.getBBox(),C+=.01*b.xPercent*d.width,M+=.01*b.yPercent*d.height),C-d&&(C=0),M-d&&(M=0)),T=(1e5*i|0)/1e5+","+(1e5*n|0)/1e5+","+(1e5*s|0)/1e5+","+(1e5*a|0)/1e5+","+C+","+M+")",F&&Rt?this.t.setAttribute("transform","matrix("+T):w[zt]=(b.xPercent||b.yPercent?"translate("+b.xPercent+"%,"+b.yPercent+"%) matrix(":"matrix(")+T):w[zt]=(b.xPercent||b.yPercent?"translate("+b.xPercent+"%,"+b.yPercent+"%) matrix(":"matrix(")+k+",0,0,"+R+","+C+","+M+")";else{if(c&&(k-d&&(k=A=2e-5),R-d&&(R=A=2e-5),!z||b.z||b.rotationX||b.rotationY||(z=0)),P||N)P*=X,g=i=Math.cos(P),y=n=Math.sin(P),N&&(P-=N*X,g=Math.cos(P),y=Math.sin(P),"simple"===b.skewType&&(e=Math.tan((N-I)*X),g*=e=Math.sqrt(1+e*e),y*=e,b.skewY&&(e=Math.tan(I*X),i*=e=Math.sqrt(1+e*e),n*=e))),s=-y,a=g;else{if(!(S||O||1!==A||z||F))return void(w[zt]=(b.xPercent||b.yPercent?"translate("+b.xPercent+"%,"+b.yPercent+"%) translate3d(":"translate3d(")+C+"px,"+M+"px,"+D+"px)"+(1!==k||1!==R?" scale("+k+","+R+")":""));i=a=1,s=n=0}_=1,r=o=l=h=u=f=0,p=z?-1/z:0,m=b.zOrigin,d=1e-6,",","0",(P=S*X)&&(g=Math.cos(P),l=-(y=Math.sin(P)),u=p*-y,r=i*y,o=n*y,_=g,p*=g,i*=g,n*=g),(P=O*X)&&(e=s*(g=Math.cos(P))+r*(y=Math.sin(P)),v=a*g+o*y,h=_*y,f=p*y,r=s*-y+r*g,o=a*-y+o*g,_*=g,p*=g,s=e,a=v),1!==A&&(r*=A,o*=A,_*=A,p*=A),1!==R&&(s*=R,a*=R,h*=R,f*=R),1!==k&&(i*=k,n*=k,l*=k,u*=k),(m||F)&&(m&&(C+=r*-m,M+=o*-m,D+=_*-m+m),F&&(C+=b.xOrigin-(b.xOrigin*i+b.yOrigin*s)+b.xOffset,M+=b.yOrigin-(b.xOrigin*n+b.yOrigin*a)+b.yOffset),C-d&&(C="0"),M-d&&(M="0"),D-d&&(D=0)),T=b.xPercent||b.yPercent?"translate("+b.xPercent+"%,"+b.yPercent+"%) matrix3d(":"matrix3d(",T+=(i-d?"0":i)+","+(n-d?"0":n)+","+(l-d?"0":l),T+=","+(u-d?"0":u)+","+(s-d?"0":s)+","+(a-d?"0":a),O||S||1!==A?(T+=","+(h-d?"0":h)+","+(f-d?"0":f)+","+(r-d?"0":r),T+=","+(o-d?"0":o)+","+(_-d?"0":_)+","+(p-d?"0":p)+","):T+=",0,0,0,0,1,0,",T+=C+","+M+","+D+","+(z?1+-D/z:1)+")",w[zt]=T}};(h=Nt.prototype).x=h.y=h.z=h.skewX=h.skewY=h.rotation=h.rotationX=h.rotationY=h.zOrigin=h.xPercent=h.yPercent=h.xOffset=h.yOffset=0,h.scaleX=h.scaleY=h.scaleZ=1,St("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(t,e,i,s,n,o,l){if(s._lastParsedTransform===l)return n;s._lastParsedTransform=l;var h=l.scale&&"function"==typeof l.scale?l.scale:0;h&&(l.scale=h(g,t));var _,u,f,c,p,m,y,v,T,x=t._gsTransform,b=t.style,w=Ft.length,P=l,O={},S=Zt(t,r,!0,P.parseTransform),k=P.transform&&("function"==typeof P.transform?P.transform(g,d):P.transform);if(S.skewType=P.skewType||S.skewType||a.defaultSkewType,s._transform=S,"rotationZ"in P&&(P.rotation=P.rotationZ),k&&"string"==typeof k&&zt)(u=U.style)[zt]=k,u.display="block",u.position="absolute",-1!==k.indexOf("%")&&(u.width=et(t,"width"),u.height=et(t,"height")),Y.body.appendChild(U),_=Zt(U,null,!1),"simple"===S.skewType&&(_.scaleY*=Math.cos(_.skewX*X)),S.svg&&(m=S.xOrigin,y=S.yOrigin,_.x-=S.xOffset,_.y-=S.yOffset,(P.transformOrigin||P.svgOrigin)&&(k={},Ut(t,ht(P.transformOrigin),k,P.svgOrigin,P.smoothOrigin,!0),m=k.xOrigin,y=k.yOrigin,_.x-=k.xOffset-S.xOffset,_.y-=k.yOffset-S.yOffset),(m||y)&&(v=Gt(U,!0),_.x-=m-(m*v[0]+y*v[2]),_.y-=y-(m*v[1]+y*v[3]))),Y.body.removeChild(U),_.perspective||(_.perspective=S.perspective),null!=P.xPercent&&(_.xPercent=ut(P.xPercent,S.xPercent)),null!=P.yPercent&&(_.yPercent=ut(P.yPercent,S.yPercent));else if("object"==typeof P){if(_={scaleX:ut(null!=P.scaleX?P.scaleX:P.scale,S.scaleX),scaleY:ut(null!=P.scaleY?P.scaleY:P.scale,S.scaleY),scaleZ:ut(P.scaleZ,S.scaleZ),x:ut(P.x,S.x),y:ut(P.y,S.y),z:ut(P.z,S.z),xPercent:ut(P.xPercent,S.xPercent),yPercent:ut(P.yPercent,S.yPercent),perspective:ut(P.transformPerspective,S.perspective)},null!=(p=P.directionalRotation))if("object"==typeof p)for(u in p)P[u]=p[u];else P.rotation=p;"string"==typeof P.x&&-1!==P.x.indexOf("%")&&(_.x=0,_.xPercent=ut(P.x,S.xPercent)),"string"==typeof P.y&&-1!==P.y.indexOf("%")&&(_.y=0,_.yPercent=ut(P.y,S.yPercent)),_.rotation=ft("rotation"in P?P.rotation:"shortRotation"in P?P.shortRotation+"_short":S.rotation,S.rotation,"rotation",O),Xt&&(_.rotationX=ft("rotationX"in P?P.rotationX:"shortRotationX"in P?P.shortRotationX+"_short":S.rotationX||0,S.rotationX,"rotationX",O),_.rotationY=ft("rotationY"in P?P.rotationY:"shortRotationY"in P?P.shortRotationY+"_short":S.rotationY||0,S.rotationY,"rotationY",O)),_.skewX=ft(P.skewX,S.skewX),_.skewY=ft(P.skewY,S.skewY)}for(Xt&&null!=P.force3D&&(S.force3D=P.force3D,c=!0),(f=S.force3D||S.z||S.rotationX||S.rotationY||_.z||_.rotationX||_.rotationY||_.perspective)||null==P.scale||(_.scaleZ=1);--w>-1;)((k=_[T=Ft[w]]-S[T])>1e-6||k2?parseFloat(k[2]):u)||0,n.xs0=n.e=k[0]+” “+(k[1]||”50%”)+” 0px”,(n=new xt(S,”zOrigin”,0,0,n,-1,n.n)).b=u,n.xs0=n.e=S.zOrigin):n.xs0=n.e=k):ht(k+””,S)),c&&(s._transformType=S.svg&&Rt||!f&&3!==this._transformType?2:3),h&&(l.scale=h),n},allowFunc:!0,prefix:!0}),St(“boxShadow”,{defaultValue:”0px 0px 0px 0px #999″,prefix:!0,color:!0,multi:!0,keyword:”inset”}),St(“clipPath”,{defaultValue:”inset(0%)”,prefix:!0,multi:!0,formatter:yt(“inset(0% 0% 0% 0%)”,!1,!0)}),St(“borderRadius”,{defaultValue:”0px”,parser:function(t,e,i,n,a,o){e=this.format(e);var l,h,_,u,f,c,p,m,d,g,y,v,T,x,b,w,P=[“borderTopLeftRadius”,”borderTopRightRadius”,”borderBottomRightRadius”,”borderBottomLeftRadius”],O=t.style;for(d=parseFloat(t.offsetWidth),g=parseFloat(t.offsetHeight),l=e.split(” “),h=0;h

-1;)(_=-1!==(d=o[h]).indexOf(“%”))!==(-1!==l[h].indexOf(“%”))&&(u=0===h?t.offsetWidth-V.width:t.offsetHeight-V.height,o[h]=_?parseFloat(d)/100*u+”px”:parseFloat(d)/u*100+”%”);d=o.join(” “)}return this.parseComplex(t.style,d,g,n,a)},formatter:ht}),St(“backgroundSize”,{defaultValue:”0 0″,formatter:function(t){return”co”===(t+=””).substr(0,2)?t:ht(-1===t.indexOf(” “)?t+” “+t:t)}}),St(“perspective”,{defaultValue:”0px”,prefix:!0}),St(“perspectiveOrigin”,{defaultValue:”50% 50%”,prefix:!0}),St(“transformStyle”,{prefix:!0}),St(“backfaceVisibility”,{prefix:!0}),St(“userSelect”,{prefix:!0}),St(“margin”,{parser:vt(“marginTop,marginRight,marginBottom,marginLeft”)}),St(“padding”,{parser:vt(“paddingTop,paddingRight,paddingBottom,paddingLeft”)}),St(“clip”,{defaultValue:”rect(0px,0px,0px,0px)”,parser:function(t,e,i,s,n,a){var o,l,h;return m<9?(l=t.currentStyle,h=m<8?" ":",",o="rect("+l.clipTop+h+l.clipRight+h+l.clipBottom+h+l.clipLeft+")",e=this.format(e).split(",").join(h)):(o=this.format(et(t,this.p,r,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,o,e,n,a)}}),St("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),St("autoRound,strictUnits",{parser:function(t,e,i,s,r){return r}}),St("border",{defaultValue:"0px solid #000",parser:function(t,e,i,s,n,a){var o=et(t,"borderTopWidth",r,!1,"0px"),l=this.format(e).split(" "),h=l[0].replace(w,"");return"px"!==h&&(o=parseFloat(o)/it(t,"borderTopWidth",1,h)+h),this.parseComplex(t.style,this.format(o+" "+et(t,"borderTopStyle",r,!1,"solid")+" "+et(t,"borderTopColor",r,!1,"#000")),l.join(" "),n,a)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(gt)||["#000"])[0]}}),St("borderWidth",{parser:vt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),St("float,cssFloat,styleFloat",{parser:function(t,e,i,s,r,n){var a=t.style,o="cssFloat"in a?"cssFloat":"styleFloat";return new xt(a,o,0,0,r,-1,i,!1,0,a[o],e)}});var Qt=function(t){var e,i=this.t,s=i.filter||et(this.data,"filter")||"",r=this.s+this.c*t|0;100===r&&(-1===s.indexOf("atrix(")&&-1===s.indexOf("radient(")&&-1===s.indexOf("oader(")?(i.removeAttribute("filter"),e=!et(this.data,"filter")):(i.filter=s.replace(S,""),e=!0)),e||(this.xn1&&(i.filter=s=s||"alpha(opacity="+r+")"),-1===s.indexOf("pacity")?0===r&&this.xn1||(i.filter=s+" alpha(opacity="+r+")"):i.filter=s.replace(P,"opacity="+r))};St("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,s,n,a){var o=parseFloat(et(t,"opacity",r,!1,"1")),l=t.style,h="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+o),h&&1===o&&"hidden"===et(t,"visibility",r)&&0!==e&&(o=0),G?n=new xt(l,"opacity",o,e-o,n):((n=new xt(l,"opacity",100*o,100*(e-o),n)).xn1=h?1:0,l.zoom=1,n.type=2,n.b="alpha(opacity="+n.s+")",n.e="alpha(opacity="+(n.s+n.c)+")",n.data=t,n.plugin=a,n.setRatio=Qt),h&&((n=new xt(l,"visibility",0,0,n,-1,null,!1,0,0!==o?"inherit":"hidden",0===e?"hidden":"inherit")).xs0="inherit",s._overwriteProps.push(n.n),s._overwriteProps.push(i)),n}});var Kt=function(t,e){e&&(t.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),t.removeProperty(e.replace(R,"-$1").toLowerCase())):t.removeAttribute(e))},Jt=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:Kt(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};St("className",{parser:function(t,e,s,n,a,o,l){var h,_,u,f,c,p=t.getAttribute("class")||"",m=t.style.cssText;if((a=n._classNamePT=new xt(t,s,0,0,a,2)).setRatio=Jt,a.pr=-11,i=!0,a.b=p,_=rt(t,r),u=t._gsClassPT){for(f={},c=u.data;c;)f[c.p]=1,c=c._next;u.setRatio(1)}return t._gsClassPT=a,a.e="="!==e.charAt(1)?e:p.replace(new RegExp("(?:\s|^)"+e.substr(2)+"(?![\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",a.e),h=nt(t,_,rt(t),l,f),t.setAttribute("class",p),a.data=h.firstMPT,t.style.cssText!==m&&(t.style.cssText=m),a=a.xfirst=n.parse(t,h.difs,a,o)}});var te=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,s,r,n,a=this.t.style,o=l.transform.parse;if("all"===this.e)a.cssText="",r=!0;else for(s=(e=this.e.split(" ").join("").split(",")).length;--s>-1;)i=e[s],l[i]&&(l[i].parse===o?r=!0:i=”transformOrigin”===i?It:l[i].p),Kt(a,i);r&&(Kt(a,zt),(n=this.t._gsTransform)&&(n.svg&&(this.t.removeAttribute(“data-svg-origin”),this.t.removeAttribute(“transform”)),delete this.t._gsTransform))}};for(St(“clearProps”,{parser:function(t,e,s,r,n){return(n=new xt(t,s,0,0,n,2)).setRatio=te,n.e=e,n.pr=-10,n.data=r._tween,i=!0,n}}),h=”bezier,throwProps,physicsProps,physics2D”.split(“,”),Pt=h.length;Pt–;)kt(h[Pt]);(h=a.prototype)._firstPT=h._lastParsedTransform=h._transform=null,h._onInitTween=function(t,e,o,h){if(!t.nodeType)return!1;this._target=d=t,this._tween=o,this._vars=e,g=h,_=e.autoRound,i=!1,s=e.suffixMap||a.suffixMap,r=tt(t),n=this._overwriteProps;var c,m,y,v,T,x,b,w,P,S=t.style;if(u&&””===S.zIndex&&(“auto”!==(c=et(t,”zIndex”,r))&&””!==c||this._addLazySet(S,”zIndex”,0)),”string”==typeof e&&(v=S.cssText,c=rt(t,r),S.cssText=v+”;”+e,c=nt(t,c,rt(t)).difs,!G&&O.test(e)&&(c.opacity=parseFloat(RegExp.$1)),e=c,S.cssText=v),e.className?this._firstPT=m=l.className.parse(t,e.className,”className”,this,null,null,e):this._firstPT=m=this.parse(t,e,null),this._transformType){for(P=3===this._transformType,zt?f&&(u=!0,””===S.zIndex&&(“auto”!==(b=et(t,”zIndex”,r))&&””!==b||this._addLazySet(S,”zIndex”,0)),p&&this._addLazySet(S,”WebkitBackfaceVisibility”,this._vars.WebkitBackfaceVisibility||(P?”visible”:”hidden”))):S.zoom=1,y=m;y&&y._next;)y=y._next;w=new xt(t,”transform”,0,0,null,2),this._linkCSSP(w,null,y),w.setRatio=zt?$t:Ht,w.data=this._transform||Zt(t,r,!0),w.tween=o,w.pr=-1,n.pop()}if(i){for(;m;){for(x=m._next,y=v;y&&y.pr>m.pr;)y=y._next;(m._prev=y?y._prev:T)?m._prev._next=m:v=m,(m._next=y)?y._prev=m:T=m,m=x}this._firstPT=v}return!0},h.parse=function(t,e,i,n){var a,o,h,u,f,c,p,m,y,v,T=t.style;for(a in e){if(c=e[a],o=l[a],”function”!=typeof c||o&&o.allowFunc||(c=c(g,d)),o)i=o.parse(t,c,a,this,i,n,e);else{if(“–“===a.substr(0,2)){this._tween._propLookup[a]=this._addTween.call(this._tween,t.style,”setProperty”,tt(t).getPropertyValue(a)+””,c+””,a,!1,a);continue}f=et(t,a,r)+””,y=”string”==typeof c,”color”===a||”fill”===a||”stroke”===a||-1!==a.indexOf(“Color”)||y&&k.test(c)?(y||(c=((c=mt(c)).length>3?”rgba(“:”rgb(“)+c.join(“,”)+”)”),i=wt(T,a,f,c,!0,”transparent”,i,0,n)):y&&I.test(c)?i=wt(T,a,f,c,!0,null,i,0,n):(p=(h=parseFloat(f))||0===h?f.substr((h+””).length):””,””!==f&&”auto”!==f||(“width”===a||”height”===a?(h=lt(t,a,r),p=”px”):”left”===a||”top”===a?(h=st(t,a,r),p=”px”):(h=”opacity”!==a?0:1,p=””)),(v=y&&”=”===c.charAt(1))?(u=parseInt(c.charAt(0)+”1″,10),c=c.substr(2),u*=parseFloat(c),m=c.replace(w,””)):(u=parseFloat(c),m=y?c.replace(w,””):””),””===m&&(m=a in s?s[a]:p),c=u||0===u?(v?u+h:u)+m:e[a],p!==m&&(“”===m&&”lineHeight”!==a||(u||0===u)&&h&&(h=it(t,a,h,p),”%”===m?(h/=it(t,a,100,”%”)/100,!0!==e.strictUnits&&(f=h+”%”)):”em”===m||”rem”===m||”vw”===m||”vh”===m?h/=it(t,a,1,m):”px”!==m&&(u=it(t,a,u,m),m=”px”),v&&(u||0===u)&&(c=u+h+m))),v&&(u+=h),!h&&0!==h||!u&&0!==u?void 0!==T[a]&&(c||c+””!=”NaN”&&null!=c)?(i=new xt(T,a,u||h||0,0,i,-1,a,!1,0,f,c)).xs0=”none”!==c||”display”!==a&&-1===a.indexOf(“Style”)?c:f:H(“invalid “+a+” tween value: “+e[a]):(i=new xt(T,a,h,u-h,i,0,a,!1!==_&&(“px”===m||”zIndex”===a),0,f,c)).xs0=m)}n&&i&&!i.plugin&&(i.plugin=n)}return i},h.setRatio=function(t){var e,i,s,r=this._firstPT;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;r;){if(e=r.c*t+r.s,r.r?e=r.r(e):e<1e-6&&e>-1e-6&&(e=0),r.type)if(1===r.type)if(2===(s=r.l))r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2;else if(3===s)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3;else if(4===s)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4;else if(5===s)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4+r.xn4+r.xs5;else{for(i=r.xs0+e+r.xs1,s=1;s-1;)a=(n=s[r]).type,n.style&&(e.push(rt(n)),i&&i.push(n)),1!==a&&9!==a&&11!==a||!n.childNodes.length||ie(n,e,i)};return a.cascadeTo=function(t,i,s){var r,n,a,o,l=e.to(t,i,s),h=[l],_=[],u=[],f=[],c=e._internals.reservedProps;for(t=l._targets||l.target,ie(t,_,f),l.render(i,!0,!0),ie(t,u),l.render(0,!0,!0),l._enabled(!0),r=f.length;–r>-1;)if((n=nt(f[r],_[r],u[r])).firstMPT){for(a in n=n.difs,s)c[a]&&(n[a]=s[a]);for(a in o={},n)o[a]=_[r][a];h.push(e.fromTo(f[r],i,o,n))}return h},t.activate([a]),a},!0),function(){var t=_gsScope._gsDefine.plugin({propName:”roundProps”,version:”1.7.0″,priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}}),e=function(t){var e=t<1?Math.pow(10,(t+"").length-2):1;return function(i){return(Math.round(i/t)*t*e|0)/e}},i=function(t,e){for(;t;)t.f||t.blob||(t.m=e||Math.round),t=t._next},s=t.prototype;s._onInitAllProps=function(){var t,s,r,n,a=this._tween,o=a.vars.roundProps,l={},h=a._propLookup.roundProps;if("object"!=typeof o||o.push)for("string"==typeof o&&(o=o.split(",")),r=o.length;--r>-1;)l[o[r]]=Math.round;else for(n in o)l[n]=e(o[n]);for(n in l)for(t=a._firstPT;t;)s=t._next,t.pg?t.t._mod(l):t.n===n&&(2===t.f&&t.t?i(t.t._firstPT,l[n]):(this._add(t.t,n,t.s,t.c,l[n]),s&&(s._prev=t._prev),t._prev?t._prev._next=s:a._firstPT===t&&(a._firstPT=s),t._next=t._prev=null,a._propLookup[n]=h)),t=s;return!1},s._add=function(t,e,i,s,r){this._addTween(t,e,i,i+s,e,r||Math.round),this._overwriteProps.push(e)}}(),_gsScope._gsDefine.plugin({propName:”attr”,API:2,version:”0.6.1″,init:function(t,e,i,s){var r,n;if(“function”!=typeof t.setAttribute)return!1;for(r in e)”function”==typeof(n=e[r])&&(n=n(s,t)),this._addTween(t,”setAttribute”,t.getAttribute(r)+””,n+””,r,!1,r),this._overwriteProps.push(r);return!0}}),_gsScope._gsDefine.plugin({propName:”directionalRotation”,version:”0.3.1″,API:2,init:function(t,e,i,s){“object”!=typeof e&&(e={rotation:e}),this.finals={};var r,n,a,o,l,h,_=!0===e.useRadians?2*Math.PI:360;for(r in e)”useRadians”!==r&&(“function”==typeof(o=e[r])&&(o=o(s,t)),n=(h=(o+””).split(“_”))[0],a=parseFloat(“function”!=typeof t[r]?t[r]:t[r.indexOf(“set”)||”function”!=typeof t[“get”+r.substr(3)]?r:”get”+r.substr(3)]()),l=(o=this.finals[r]=”string”==typeof n&&”=”===n.charAt(1)?a+parseInt(n.charAt(0)+”1”,10)*Number(n.substr(2)):Number(n)||0)-a,h.length&&(-1!==(n=h.join(“_”)).indexOf(“short”)&&(l%=_)!==l%(_/2)&&(l=l<0?l+_:l-_),-1!==n.indexOf("_cw")&&l<0?l=(l+9999999999*_)%_-(l/_|0)*_:-1!==n.indexOf("ccw")&&l>0&&(l=(l-9999999999*_)%_-(l/_|0)*_)),(l>1e-6||l1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=!0===i},!0),g=d.prototype=new t;return g.constructor=d,g.getRatio=function(t){var e=t+(.5-t)*this._p;return tthis._p3?this._calcEnd?1===t?0:1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},d.ease=new d(.7,.7),g.config=d.config=function(t,e,i){return new d(t,e,i)},(g=(e=h(“easing.SteppedEase”,function(t,e){t=t||1,this._p1=1/t,this._p2=t+(e?0:1),this._p3=e?1:0},!0)).prototype=new t).constructor=e,g.getRatio=function(t){return t<0?t=0:t>=1&&(t=.999999999),((this._p2*t|0)+this._p3)*this._p1},g.config=e.config=function(t,i){return new e(t,i)},(g=(i=h(“easing.ExpoScaleEase”,function(t,e,i){this._p1=Math.log(e/t),this._p2=e-t,this._p3=t,this._ease=i},!0)).prototype=new t).constructor=i,g.getRatio=function(t){return this._ease&&(t=this._ease.getRatio(t)),(this._p3*Math.exp(this._p1*t)-this._p3)/this._p2},g.config=i.config=function(t,e,s){return new i(t,e,s)},(g=(s=h(“easing.RoughEase”,function(e){for(var i,s,r,n,a,o,l=(e=e||{}).taper||”none”,h=[],_=0,u=0|(e.points||20),f=u,p=!1!==e.randomize,m=!0===e.clamp,d=e.template instanceof t?e.template:null,g=”number”==typeof e.strength?.4*e.strength:.4;–f>-1;)i=p?Math.random():1/u*f,s=d?d.getRatio(i):i,r=”none”===l?g:”out”===l?(n=1-i)*n*g:”in”===l?i*i*g:i1?s=1:s<0&&(s=0)),h[_++]={x:i,y:s};for(h.sort(function(t,e){return t.x-e.x}),o=new c(1,1,null),f=u;--f>-1;)a=h[f],o=new c(a.x,a.y,o);this._prev=new c(0,0,0!==o.t?o:o.next)},!0)).prototype=new t).constructor=s,g.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},g.config=function(t){return new s(t)},s.ease=new s,f("Bounce",_("BounceOut",function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),_("BounceIn",function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),_("BounceInOut",function(t){var e=t=1?t:1,this._p2=(e||s)/(t<1?t:1),this._p3=this._p2/o*(Math.asin(1/this._p1)||0),this._p2=o/this._p2},!0),n=r.prototype=new t;return n.constructor=r,n.getRatio=i,n.config=function(t,e){return new r(t,e)},r})("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),r("ElasticIn",function(t){return-this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)},.3),r("ElasticInOut",function(t){return(t*=2)<1?this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*this._p2)*.5+1},.45)),f("Expo",_("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),_("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),_("ExpoInOut",function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),f("Sine",_("SineOut",function(t){return Math.sin(t*l)}),_("SineIn",function(t){return 1-Math.cos(t*l)}),_("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),h("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),u(n.SlowMo,"SlowMo","ease,"),u(s,"RoughEase","ease,"),u(e,"SteppedEase","ease,"),m},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t,e){"use strict";var i={},s=t.document,r=t.GreenSockGlobals=t.GreenSockGlobals||t,n=r.TweenMax;if(n)return"undefined"!=typeof module&&module.exports&&(module.exports=n),n;var a,o,l,h,_,u,f,c=function(t){var e,i=t.split("."),s=r;for(e=0;e-1;)(h=y[s[p]]||new v(s[p],[])).gsClass?(o[p]=h.gsClass,m–):l&&h.sc.push(this);if(0===m&&n){if(u=(_=(“com.greensock.”+e).split(“.”)).pop(),f=c(_.join(“.”))[u]=this.gsClass=n.apply(n,o),a)if(r[u]=i[u]=f,”undefined”!=typeof module&&module.exports)if(“TweenMax”===e)for(p in module.exports=i.TweenMax=f,i)f[p]=i[p];else i.TweenMax&&(i.TweenMax[u]=f);else”function”==typeof define&&define.amd&&define((t.GreenSockAMDPath?t.GreenSockAMDPath+”/”:””)+e.split(“.”).pop(),[],function(){return f});for(p=0;p-1;)for(n=l[h],r=s?x(“easing.”+n,null,!0):p.easing[n]||{},a=_.length;–a>-1;)o=_[a],P[n+”.”+o]=P[o+n]=r[o]=t.getRatio?t:t[o]||new t};for((l=w.prototype)._calcEnd=!1,l.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,s=1===e?1-t:2===e?t:t<.5?2*t:2*(1-t);return 1===i?s*=s:2===i?s*=s*s:3===i?s*=s*s*s:4===i&&(s*=s*s*s*s),1===e?1-s:2===e?s:t-1;)l=a[o]+",Power"+o,O(new w(null,null,1,o),l,"easeOut",!0),O(new w(null,null,2,o),l,"easeIn"+(0===o?",easeNone":"")),O(new w(null,null,3,o),l,"easeInOut");P.linear=p.easing.Linear.easeIn,P.swing=p.easing.Quad.easeInOut;var S=x("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});(l=S.prototype).addEventListener=function(t,e,i,s,r){r=r||0;var n,a,o=this._listeners[t],l=0;for(this!==h||_||h.wake(),null==o&&(this._listeners[t]=o=[]),a=o.length;--a>-1;)(n=o[a]).c===e&&n.s===i?o.splice(a,1):0===l&&n.pr-1;)if(s[i].c===e)return void s.splice(i,1)},l.dispatchEvent=function(t){var e,i,s,r=this._listeners[t];if(r)for((e=r.length)>1&&(r=r.slice(0)),i=this._eventTarget;–e>-1;)(s=r[e])&&(s.up?s.c.call(s.s||i,{type:t,target:i}):s.c.call(s.s||i))};var k=t.requestAnimationFrame,R=t.cancelAnimationFrame,A=Date.now||function(){return(new Date).getTime()},C=A();for(o=(a=[“ms”,”moz”,”webkit”,”o”]).length;–o>-1&&!k;)k=t[a[o]+”RequestAnimationFrame”],R=t[a[o]+”CancelAnimationFrame”]||t[a[o]+”CancelRequestAnimationFrame”];x(“Ticker”,function(t,e){var i,r,n,a,o,l=this,u=A(),f=!(!1===e||!k)&&”auto”,c=500,p=33,m=function(t){var e,s,h=A()-C;h>c&&(u+=h-p),C+=h,l.time=(C-u)/1e3,e=l.time-o,(!i||e>0||!0===t)&&(l.frame++,o+=e+(e>=a?.004:a-e),s=!0),!0!==t&&(n=r(m)),s&&l.dispatchEvent(“tick”)};S.call(l),l.time=l.frame=0,l.tick=function(){m(!0)},l.lagSmoothing=function(t,e){if(!arguments.length)return c<1e8;c=t||1e8,p=Math.min(e,c,0)},l.sleep=function(){null!=n&&(f&&R?R(n):clearTimeout(n),r=d,n=null,l===h&&(_=!1))},l.wake=function(t){null!==n?l.sleep():t?u+=-C+(C=A()):l.frame>10&&(C=A()-c+5),r=0===i?d:f&&k?k:function(t){return setTimeout(t,1e3*(o-l.time)+1|0)},l===h&&(_=!0),m(2)},l.fps=function(t){if(!arguments.length)return i;a=1/((i=t)||60),o=this.time+a,l.wake()},l.useRAF=function(t){if(!arguments.length)return f;l.sleep(),f=t,l.fps(i)},l.fps(t),setTimeout(function(){“auto”===f&&l.frame<5&&"hidden"!==(s||{}).visibilityState&&l.useRAF(!1)},1500)}),(l=p.Ticker.prototype=new p.events.EventDispatcher).constructor=p.Ticker;var M=x("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=!!e.immediateRender,this.data=e.data,this._reversed=!!e.reversed,Q){_||h.wake();var i=this.vars.useFrames?$:Q;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});h=M.ticker=new p.Ticker,(l=M.prototype)._dirty=l._gc=l._initted=l._paused=!1,l._totalTime=l._time=0,l._rawPrevTime=-1,l._next=l._last=l._onUpdate=l._timeline=l.timeline=null,l._paused=!1;var D=function(){_&&A()-C>2e3&&(“hidden”!==(s||{}).visibilityState||!h.lagSmoothing())&&h.wake();var t=setTimeout(D,2e3);t.unref&&t.unref()};D(),l.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},l.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},l.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},l.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},l.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},l.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},l.render=function(t,e,i){},l.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},l.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime(!0))>=i&&t-1;)”{self}”===t[e]&&(i[e]=this);return i},l._callback=function(t){var e=this.vars,i=e[t],s=e[t+”Params”],r=e[t+”Scope”]||e.callbackScope||this;switch(s?s.length:0){case 0:i.call(r);break;case 1:i.call(r,s[0]);break;case 2:i.call(r,s[0],s[1]);break;default:i.apply(r,s)}},l.eventCallback=function(t,e,i,s){if(“on”===(t||””).substr(0,2)){var r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+”Params”]=g(i)&&-1!==i.join(“”).indexOf(“{self}”)?this._swapSelfInParams(i):i,r[t+”Scope”]=s),”onUpdate”===t&&(this._onUpdate=e)}return this},l.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},l.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._timethis._duration?this._duration:t,e)):this._time},l.totalTime=function(t,e,i){if(_||h.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var s=this._totalDuration,r=this._timeline;if(t>s&&!i&&(t=s),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?s-t:t)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===t&&0!==this._duration||(I.length&&J(),this.render(t,e,!1),I.length&&J())}return this},l.progress=l.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},l.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},l.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},l.timeScale=function(t){if(!arguments.length)return this._timeScale;var e,i;for(t=t||1e-8,this._timeline&&this._timeline.smoothChildTiming&&(i=(e=this._pauseTime)||0===e?e:this._timeline.totalTime(),this._startTime=i-(i-this._startTime)*this._timeScale/t),this._timeScale=t,i=this.timeline;i&&i.timeline;)i._dirty=!0,i.totalDuration(),i=i.timeline;return this},l.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},l.paused=function(t){if(!arguments.length)return this._paused;var e,i,s=this._timeline;return t!=this._paused&&s&&(_||t||h.wake(),i=(e=s.rawTime())-this._pauseTime,!t&&s.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!==i&&this._initted&&this.duration()&&(e=s.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var F=x(“core.SimpleTimeline”,function(t){M.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});(l=F.prototype=new M).constructor=F,l.kill()._gc=!1,l._first=l._last=l._recent=null,l._sortChildren=!1,l.add=l.insert=function(t,e,i,s){var r,n;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=this.rawTime()-(t._timeline.rawTime()-t._pauseTime)),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),r=this._last,this._sortChildren)for(n=t._startTime;r&&r._startTime>n;)r=r._prev;return r?(t._next=r._next,r._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=r,this._recent=t,this._timeline&&this._uncache(!0),this},l._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},l.render=function(t,e,i){var s,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;r;)s=r._next,(r._active||t>=r._startTime&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=s},l.rawTime=function(){return _||h.wake(),this._totalTime};var z=x(“TweenLite”,function(e,i,s){if(M.call(this,i,s),this.render=z.prototype.render,null==e)throw”Cannot tween a null target.”;this.target=e=”string”!=typeof e?e:z.selector(e)||e;var r,n,a,o=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?H[z.defaultOverwrite]:”number”==typeof l?l>>0:H[l],(o||e instanceof Array||e.push&&g(e))&&”number”!=typeof e[0])for(this._targets=a=m(e),this._propLookup=[],this._siblings=[],r=0;r1&&it(n,this,null,1,this._siblings[r])):”string”==typeof(n=a[r–]=z.selector(n))&&a.splice(r+1,1):a.splice(r–,1);else this._propLookup={},this._siblings=tt(e,this,!1),1===l&&this._siblings.length>1&&it(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-1e-8,this.render(Math.min(0,-this._delay)))},!0),E=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)};(l=z.prototype=new M).constructor=z,l.kill()._gc=!1,l.ratio=0,l._firstPT=l._targets=l._overwrittenProps=l._startAt=null,l._notifyPluginsOfEnabled=l._lazy=!1,z.version=”2.1.3″,z.defaultEase=l._ease=new w(null,null,1,1),z.defaultOverwrite=”auto”,z.ticker=h,z.autoSleep=120,z.lagSmoothing=function(t,e){h.lagSmoothing(t,e)},z.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(z.selector=i,i(e)):(s||(s=t.document),s?s.querySelectorAll?s.querySelectorAll(e):s.getElementById(“#”===e.charAt(0)?e.substr(1):e):e)};var I=[],X={},N=/(?:(-|-=|+=)?d*.?d*(?:e[-+]?d+)?)[0-9]/gi,L=/[+-]=-?[.d]/,B=function(t){for(var e,i=this._firstPT;i;)e=i.blob?1===t&&null!=this.end?this.end:t?this.join(“”):this.start:i.c*t+i.s,i.m?e=i.m.call(this._tween,e,this._target||i.t,this._tween):e<1e-6&&e>-1e-6&&!i.blob&&(e=0),i.f?i.fp?i.t[i.p](i.fp,e):i.t[i.p](e):i.t[i.p]=e,i=i._next},Y=function(t){return(1e3*t|0)/1e3+””},j=function(t,e,i,s){var r,n,a,o,l,h,_,u=[],f=0,c=””,p=0;for(u.start=t,u.end=e,t=u[0]=t+””,e=u[1]=e+””,i&&(i(u),t=u[0],e=u[1]),u.length=0,r=t.match(N)||[],n=e.match(N)||[],s&&(s._next=null,s.blob=1,u._firstPT=u._applyPT=s),l=n.length,o=0;o=K){for(i in K=h.frame+(parseInt(z.autoSleep,10)||120),W){for(t=(e=W[i].tweens).length;–t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete W[i]}if((!(i=Q._first)||i._paused)&&z.autoSleep&&!$._first&&1===h._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||h.sleep()}}},h.addEventListener(“tick”,M._updateRoot);var tt=function(t,e,i){var s,r,n=t._gsTweenID;if(W[n||(t._gsTweenID=n=”t”+G++)]||(W[n]={target:t,tweens:[]}),e&&((s=W[n].tweens)[r=s.length]=e,i))for(;–r>-1;)s[r]===e&&s.splice(r,1);return W[n].tweens},et=function(t,e,i,s){var r,n,a=t.vars.onOverwrite;return a&&(r=a(t,e,i,s)),(a=z.onOverwrite)&&(n=a(t,e,i,s)),!1!==r&&!1!==n},it=function(t,e,i,s,r){var n,a,o,l;if(1===s||s>=4){for(l=r.length,n=0;n-1;)(o=r[n])===e||o._gc||o._paused||(o._timeline!==e._timeline?(h=h||st(e,0,c),0===st(o,h,c)&&(u[f++]=o)):o._startTime_&&((c||!o._initted)&&_-o._startTime-1;)if(l=(o=u[n])._firstPT,2===s&&o._kill(i,t,e)&&(a=!0),2!==s||!o._firstPT&&o._initted&&l){if(2!==s&&!et(o,e))continue;o._enabled(!1,!1)&&(a=!0)}return a},st=function(t,e,i){for(var s=t._timeline,r=s._timeScale,n=t._startTime;s._timeline;){if(n+=s._startTime,r*=s._timeScale,s._paused)return-100;s=s._timeline}return(n/=r)>e?n-e:i&&n===e||!t._initted&&n-e<2e-8?1e-8:(n+=t.totalDuration()/t._timeScale/r)>e+1e-8?0:n-e-1e-8};l._init=function(){var t,e,i,s,r,n,a=this.vars,o=this._overwrittenProps,l=this._duration,h=!!a.immediateRender,_=a.ease,u=this._startAt;if(a.startAt){for(s in u&&(u.render(-1,!0),u.kill()),r={},a.startAt)r[s]=a.startAt[s];if(r.data=”isStart”,r.overwrite=!1,r.immediateRender=!0,r.lazy=h&&!1!==a.lazy,r.startAt=r.delay=null,r.onUpdate=a.onUpdate,r.onUpdateParams=a.onUpdateParams,r.onUpdateScope=a.onUpdateScope||a.callbackScope||this,this._startAt=z.to(this.target||{},0,r),h)if(this._time>0)this._startAt=null;else if(0!==l)return}else if(a.runBackwards&&0!==l)if(u)u.render(-1,!0),u.kill(),this._startAt=null;else{for(s in 0!==this._time&&(h=!1),i={},a)Z[s]&&”autoCSS”!==s||(i[s]=a[s]);if(i.overwrite=0,i.data=”isFromStart”,i.lazy=h&&!1!==a.lazy,i.immediateRender=h,this._startAt=z.to(this.target,0,i),h){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=_=_?_ instanceof w?_:”function”==typeof _?new w(_,a.easeParams):P[_]||z.defaultEase:z.defaultEase,a.easeParams instanceof Array&&_.config&&(this._ease=_.config.apply(_,a.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(n=this._targets.length,t=0;t-1;)i[h._overwriteProps[o]]=this._firstPT;(h._priority||h._onInitAllProps)&&(l=!0),(h._onDisable||h._onEnable)&&(this._notifyPluginsOfEnabled=!0),_._next&&(_._next._prev=_)}else i[a]=U.call(this,e,a,”get”,u,a,0,null,this.vars.stringFilter,n);return r&&this._kill(r,e)?this._initProps(e,i,s,r,n):this._overwrite>1&&this._firstPT&&s.length>1&&it(e,this,i,this._overwrite,s)?(this._kill(i,e),this._initProps(e,i,s,r,n)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(X[e._gsTweenID]=!0),l)},l.render=function(t,e,i){var s,r,n,a,o=this._time,l=this._duration,h=this._rawPrevTime;if(t>=l-1e-8&&t>=0)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(s=!0,r=”onComplete”,i=i||this._timeline.autoRemoveChildren),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(h<0||t=-1e-8||1e-8===h&&"isPause"!==this.data)&&h!==t&&(i=!0,h>1e-8&&(r=”onReverseComplete”)),this._rawPrevTime=a=!e||t||h===t?t:1e-8);else if(t<1e-8)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==o||0===l&&h>0)&&(r=”onReverseComplete”,s=this._reversed),t>-1e-8?t=0:t<0&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(h>=0&&(1e-8!==h||”isPause”!==this.data)&&(i=!0),this._rawPrevTime=a=!e||t||h===t?t:1e-8)),(!this._initted||this._startAt&&this._startAt.progress())&&(i=!0);else if(this._totalTime=this._time=t,this._easeType){var _=t/l,u=this._easeType,f=this._easePower;(1===u||3===u&&_>=.5)&&(_=1-_),3===u&&(_*=2),1===f?_*=_:2===f?_*=_*_:3===f?_*=_*_*_:4===f&&(_*=_*_*_*_),this.ratio=1===u?1-_:2===u?_:t/l=0&&(this._active=!0),0===o&&(this._startAt&&(t>=0?this._startAt.render(t,!0,i):r||(r=”_dummyGS”)),this.vars.onStart&&(0===this._time&&0!==l||e||this._callback(“onStart”))),n=this._firstPT;n;)n.f?n.t[n.p](n.c*this.ratio+n.s):n.t[n.p]=n.c*this.ratio+n.s,n=n._next;this._onUpdate&&(t<0&&this._startAt&&-1e-4!==t&&this._startAt.render(t,!0,i),e||(this._time!==o||s||i)&&this._callback("onUpdate")),r&&(this._gc&&!i||(t<0&&this._startAt&&!this._onUpdate&&-1e-4!==t&&this._startAt.render(t,!0,i),s&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this._callback(r),0===l&&1e-8===this._rawPrevTime&&1e-8!==a&&(this._rawPrevTime=0)))}},l._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:z.selector(e)||e;var s,r,n,a,o,l,h,_,u,f=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline,c=this._firstPT;if((g(e)||E(e))&&"number"!=typeof e[0])for(s=e.length;--s>-1;)this._kill(t,e[s],i)&&(l=!0);else{if(this._targets){for(s=this._targets.length;–s>-1;)if(e===this._targets[s]){o=this._propLookup[s]||{},this._overwrittenProps=this._overwrittenProps||[],r=this._overwrittenProps[s]=t?this._overwrittenProps[s]||{}:”all”;break}}else{if(e!==this.target)return!1;o=this._propLookup,r=this._overwrittenProps=t?this._overwrittenProps||{}:”all”}if(o){if(h=t||o,_=t!==r&&”all”!==r&&t!==o&&(“object”!=typeof t||!t._tempKill),i&&(z.onOverwrite||this.vars.onOverwrite)){for(n in h)o[n]&&(u||(u=[]),u.push(n));if((u||!t)&&!et(this,i,e,u))return!1}for(n in h)(a=o[n])&&(f&&(a.f?a.t[a.p](a.s):a.t[a.p]=a.s,l=!0),a.pg&&a.t._kill(h)&&(l=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete o[n]),_&&(r[n]=1);!this._firstPT&&this._initted&&c&&this._enabled(!1,!1)}}return l},l.invalidate=function(){this._notifyPluginsOfEnabled&&z._onPluginEvent(“_onDisable”,this);var t=this._time;return this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],M.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-1e-8,this.render(t,!1,!1!==this.vars.lazy)),this},l._enabled=function(t,e){if(_||h.wake(),t&&this._gc){var i,s=this._targets;if(s)for(i=s.length;–i>-1;)this._siblings[i]=tt(s[i],this,!0);else this._siblings=tt(this.target,this,!0)}return M.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&z._onPluginEvent(t?”_onEnable”:”_onDisable”,this)},z.to=function(t,e,i){return new z(t,e,i)},z.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new z(t,e,i)},z.fromTo=function(t,e,i,s){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,new z(t,e,s)},z.delayedCall=function(t,e,i,s,r){return new z(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:s,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:r,overwrite:0})},z.set=function(t,e){return new z(t,0,e)},z.getTweensOf=function(t,e){if(null==t)return[];var i,s,r,n;if(t=”string”!=typeof t?t:z.selector(t)||t,(g(t)||E(t))&&”number”!=typeof t[0]){for(i=t.length,s=[];–i>-1;)s=s.concat(z.getTweensOf(t[i],e));for(i=s.length;–i>-1;)for(n=s[i],r=i;–r>-1;)n===s[r]&&s.splice(i,1)}else if(t._gsTweenID)for(i=(s=tt(t).concat()).length;–i>-1;)(s[i]._gc||e&&!s[i].isActive())&&s.splice(i,1);return s||[]},z.killTweensOf=z.killDelayedCallsTo=function(t,e,i){“object”==typeof e&&(i=e,e=!1);for(var s=z.getTweensOf(t,e),r=s.length;–r>-1;)s[r]._kill(i,t)};var rt=x(“plugins.TweenPlugin”,function(t,e){this._overwriteProps=(t||””).split(“,”),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=rt.prototype},!0);if(l=rt.prototype,rt.version=”1.19.0″,rt.API=2,l._firstPT=null,l._addTween=U,l.setRatio=B,l._kill=function(t){var e,i=this._overwriteProps,s=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;–e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;s;)null!=t[s.n]&&(s._next&&(s._next._prev=s._prev),s._prev?(s._prev._next=s._next,s._prev=null):this._firstPT===s&&(this._firstPT=s._next)),s=s._next;return!1},l._mod=l._roundProps=function(t){for(var e,i=this._firstPT;i;)(e=t[this._propName]||null!=i.n&&t[i.n.split(this._propName+”_”).join(“”)])&&”function”==typeof e&&(2===i.f?i.t._applyPT.m=e:i.m=e),i=i._next},z._onPluginEvent=function(t,e){var i,s,r,n,a,o=e._firstPT;if(“_onInitAllProps”===t){for(;o;){for(a=o._next,s=r;s&&s.pr>o.pr;)s=s._next;(o._prev=s?s._prev:n)?o._prev._next=o:r=o,(o._next=s)?s._prev=o:n=o,o=a}o=e._firstPT=r}for(;o;)o.pg&&”function”==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},rt.activate=function(t){for(var e=t.length;–e>-1;)t[e].API===rt.API&&(q[(new t[e])._propName]=t[e]);return!0},T.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw”illegal plugin definition.”;var e,i=t.propName,s=t.priority||0,r=t.overwriteProps,n={init:”_onInitTween”,set:”setRatio”,kill:”_kill”,round:”_mod”,mod:”_mod”,initAll:”_onInitAllProps”},a=x(“plugins.”+i.charAt(0).toUpperCase()+i.substr(1)+”Plugin”,function(){rt.call(this,i,s),this._overwriteProps=r||[]},!0===t.global),o=a.prototype=new rt(i);for(e in o.constructor=a,a.API=t.API,n)”function”==typeof t[e]&&(o[n[e]]=t[e]);return a.version=t.version,rt.activate([a]),a},a=t._gsQueue){for(o=0;o 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.”)};ScrollMagic.version=”2.0.7″;var isIEorEdge=function(){var e,t=navigator.userAgent.toLowerCase();if(“Microsoft Internet Explorer”==navigator.appName)e=”msie “;else if(t.search(“trident”)>-1)e=”trident/.*rv:”;else{if(!(t.search(“edge/”)>-1))return-1;e=”edge/”}return null!=new RegExp(e+”([0-9]{1,})(\.{0,}[0-9]{0,1})”).exec(t)?parseFloat(RegExp.$1+RegExp.$2):-1}();isIEorEdge=-1!==isIEorEdge,window.addEventListener(“mousewheel”,(function(){}));var PIN_SPACER_ATTRIBUTE=”data-scrollmagic-pin-spacer”;ScrollMagic.Controller=function(e){var t,n,i=”ScrollMagic.Controller”,r=CONTROLLER_OPTIONS.defaults,o=this,l=_util.extend({},r,e),a=[],s=!1,c=0,u=”PAUSED”,f=!0,d=0,g=!0,p=function(){l.refreshInterval>0&&(n=window.setTimeout(w,l.refreshInterval))},h=function(){return l.vertical?_util.get.scrollTop(l.container):_util.get.scrollLeft(l.container)},v=function(){return l.vertical?_util.get.height(l.container):_util.get.width(l.container)},m=this._setScrollPos=function(e){l.vertical?f?window.scrollTo(_util.get.scrollLeft(),e):l.container.scrollTop=e:f?window.scrollTo(e,_util.get.scrollTop()):l.container.scrollLeft=e},S=function(){if(g&&s){var e=_util.type.Array(s)?s:a.slice(0);s=!1;var t=c,n=(c=o.scrollPos())-t;0!==n&&(u=n>0?”FORWARD”:”REVERSE”),”REVERSE”===u&&e.reverse(),e.forEach((function(t,n){y(3,”updating Scene “+(n+1)+”/”+e.length+” (“+a.length+” total)”),t.update(!0)})),0===e.length&&l.loglevel>=3&&y(3,”updating 0 Scenes (nothing added to controller)”)}},E=function(){t=_util.rAF(S)},_=function(e){y(3,”event fired causing an update:”,e.type),”resize”==e.type&&(d=v(),u=”PAUSED”),!0!==s&&(s=!0,E())},w=function(){if(!f&&d!=v()){var e;try{e=new Event(“resize”,{bubbles:!1,cancelable:!1})}catch(t){(e=document.createEvent(“Event”)).initEvent(“resize”,!1,!1)}l.container.dispatchEvent(e)}a.forEach((function(e,t){e.refresh()})),p()},y=this._log=function(e,t){l.loglevel>=e&&(Array.prototype.splice.call(arguments,1,0,”(“+i+”) ->”),_util.log.apply(window,arguments))};this._options=l;var R=function(e){if(e.lengtht.scrollOffset()?1:-1})),t};return this.addScene=function(e){if(_util.type.Array(e))e.forEach((function(e,t){o.addScene(e)}));else if(e instanceof ScrollMagic.Scene){if(e.controller()!==o)e.addTo(o);else if(a.indexOf(e)<0){for(var t in a.push(e),a=R(a),e.on("shift.controller_sort",(function(){a=R(a)})),l.globalSceneOptions)e[t]&&e[t].call(e,l.globalSceneOptions[t]);y(3,"adding Scene (now "+a.length+" total)")}}else y(1,"ERROR: invalid argument supplied for '.addScene()'");return o},this.removeScene=function(e){if(_util.type.Array(e))e.forEach((function(e,t){o.removeScene(e)}));else{var t=a.indexOf(e);t>-1&&(e.off(“shift.controller_sort”),a.splice(t,1),y(3,”removing Scene (now “+a.length+” left)”),e.remove())}return o},this.updateScene=function(e,t){return _util.type.Array(e)?e.forEach((function(e,n){o.updateScene(e,t)})):t?e.update(!0):!0!==s&&e instanceof ScrollMagic.Scene&&(-1==(s=s||[]).indexOf(e)&&s.push(e),s=R(s),E()),o},this.update=function(e){return _({type:”resize”}),e&&S(),o},this.scrollTo=function(e,t){if(_util.type.Number(e))m.call(l.container,e,t);else if(e instanceof ScrollMagic.Scene)e.controller()===o?o.scrollTo(e.scrollOffset(),t):y(2,”scrollTo(): The supplied scene does not belong to this controller. Scroll cancelled.”,e);else if(_util.type.Function(e))m=e;else{var n=_util.get.elements(e)[0];if(n){for(;n.parentNode.hasAttribute(PIN_SPACER_ATTRIBUTE);)n=n.parentNode;var i=l.vertical?”top”:”left”,r=_util.get.offset(l.container),a=_util.get.offset(n);f||(r[i]-=o.scrollPos()),o.scrollTo(a[i]-r[i],t)}else y(2,”scrollTo(): The supplied argument is invalid. Scroll cancelled.”,e)}return o},this.scrollPos=function(e){return arguments.length?(_util.type.Function(e)?h=e:y(2,”Provided value for method ‘scrollPos’ is not a function. To change the current scroll position use ‘scrollTo()’.”),o):h.call(o)},this.info=function(e){var t={size:d,vertical:l.vertical,scrollPos:c,scrollDirection:u,container:l.container,isDocument:f};return arguments.length?void 0!==t[e]?t[e]:void y(1,’ERROR: option “‘+e+'” is not available’):t},this.loglevel=function(e){return arguments.length?(l.loglevel!=e&&(l.loglevel=e),o):l.loglevel},this.enabled=function(e){return arguments.length?(g!=e&&(g=!!e,o.updateScene(a,!0)),o):g},this.destroy=function(e){window.clearTimeout(n);for(var r=a.length;r–;)a[r].destroy(e);return l.container.removeEventListener(“resize”,_),l.container.removeEventListener(“scroll”,_),_util.cAF(t),y(3,”destroyed “+i+” (reset: “+(e?”true”:”false”)+”)”),null},function(){for(var e in l)r.hasOwnProperty(e)||(y(2,’WARNING: Unknown option “‘+e+'”‘),delete l[e]);if(l.container=_util.get.elements(l.container)[0],!l.container)throw y(1,”ERROR creating object “+i+”: No valid scroll container supplied”),i+” init failed.”;(f=l.container===window||l.container===document.body||!document.body.contains(l.container))&&(l.container=window),d=v(),l.container.addEventListener(“resize”,_),l.container.addEventListener(“scroll”,_);var t=parseInt(l.refreshInterval,10);l.refreshInterval=_util.type.Number(t)?t:r.refreshInterval,p(),y(3,”added new “+i+” controller (v”+ScrollMagic.version+”)”)}(),o};var CONTROLLER_OPTIONS={defaults:{container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100}};ScrollMagic.Controller.addOption=function(e,t){CONTROLLER_OPTIONS.defaults[e]=t},ScrollMagic.Controller.extend=function(e){var t=this;ScrollMagic.Controller=function(){return t.apply(this,arguments),this.$super=_util.extend({},this),e.apply(this,arguments)||this},_util.extend(ScrollMagic.Controller,t),ScrollMagic.Controller.prototype=t.prototype,ScrollMagic.Controller.prototype.constructor=ScrollMagic.Controller},ScrollMagic.Scene=function(e){var t,n,i=”ScrollMagic.Scene”,r=SCENE_OPTIONS.defaults,o=this,l=_util.extend({},r,e),a=”BEFORE”,s=0,c={start:0,end:0},u=0,f=!0;if(isIEorEdge)var d=null;var g={};this.on=function(e,t){return _util.type.Function(t)?(e=e.trim().split(” “)).forEach((function(e){var n=e.split(“.”),i=n[0],r=n[1];”*”!=i&&(g[i]||(g[i]=[]),g[i].push({namespace:r||””,callback:t}))})):p(1,”ERROR when calling ‘.on()’: Supplied callback for ‘”+e+”‘ is not a valid function!”),o},this.off=function(e,t){return e?((e=e.trim().split(” “)).forEach((function(e,n){var i=e.split(“.”),r=i[0],o=i[1]||””;(“*”===r?Object.keys(g):[r]).forEach((function(e){for(var n=g[e]||[],i=n.length;i–;){var r=n[i];!r||o!==r.namespace&&”*”!==o||t&&t!=r.callback||n.splice(i,1)}n.length||delete g[e]}))})),o):(p(1,”ERROR: Invalid event name supplied.”),o)},this.trigger=function(e,t){if(e){var n=e.trim().split(“.”),i=n[0],r=n[1],l=g[i];p(3,”event fired:”,i,t?”->”:””,t||””),l&&l.forEach((function(e,n){r&&r!==e.namespace||e.callback.call(o,new ScrollMagic.Event(i,e.namespace,o,t))}))}else p(1,”ERROR: Invalid event name supplied.”);return o},o.on(“change.internal”,(function(e){“loglevel”!==e.what&&”tweenChanges”!==e.what&&(“triggerElement”===e.what?E():”reverse”===e.what&&o.update())})).on(“shift.internal”,(function(e){m(),o.update()}));var p=this._log=function(e,t){l.loglevel>=e&&(Array.prototype.splice.call(arguments,1,0,”(“+i+”) ->”),_util.log.apply(window,arguments))};this.addTo=function(e){return e instanceof ScrollMagic.Controller?n!=e&&(n&&n.removeScene(o),n=e,y(),S(!0),E(!0),m(),n.info(“container”).addEventListener(“resize”,_),e.addScene(o),o.trigger(“add”,{controller:n}),p(3,”added “+i+” to controller”),o.update()):p(1,”ERROR: supplied argument of ‘addTo()’ is not a valid ScrollMagic Controller”),o},this.enabled=function(e){return arguments.length?(f!=e&&(f=!!e,o.update(!0)),o):f},this.remove=function(){if(n){n.info(“container”).removeEventListener(“resize”,_);var e=n;n=void 0,e.removeScene(o),o.trigger(“remove”),p(3,”removed “+i+” from controller”)}return o},this.destroy=function(e){return o.trigger(“destroy”,{reset:e}),o.remove(),o.off(“*.*”),p(3,”destroyed “+i+” (reset: “+(e?”true”:”false”)+”)”),null},this.update=function(e){if(n)if(e)if(n.enabled()&&f){var t,i=n.info(“scrollPos”);t=l.duration>0?(i-c.start)/(c.end-c.start):i>=c.start?1:0,o.trigger(“update”,{startPos:c.start,endPos:c.end,scrollPos:i}),o.progress(t)}else h&&”DURING”===a&&b(!0);else n.updateScene(o,!1);return o},this.refresh=function(){return S(),E(),o},this.progress=function(e){if(arguments.length){var t=!1,i=a,r=n?n.info(“scrollDirection”):”PAUSED”,c=l.reverse||e>=s;if(0===l.duration?(t=s!=e,a=0===(s=e<1&&c?0:1)?"BEFORE":"DURING"):e<0&&"BEFORE"!==a&&c?(s=0,a="BEFORE",t=!0):e>=0&&e<1&&c?(s=e,a="DURING",t=!0):e>=1&&”AFTER”!==a?(s=1,a=”AFTER”,t=!0):”DURING”!==a||c||b(),t){var u={progress:s,state:a,scrollDirection:r},f=a!=i,d=function(e){o.trigger(e,u)};f&&”DURING”!==i&&(d(“enter”),d(“BEFORE”===i?”start”:”end”)),d(“progress”),f&&”DURING”!==a&&(d(“BEFORE”===a?”start”:”end”),d(“leave”))}return o}return s};var h,v,m=function(){c={start:u+l.offset},n&&l.triggerElement&&(c.start-=n.info(“size”)*l.triggerHook),c.end=c.start+l.duration},S=function(e){if(t){R(“duration”,t.call(o))&&!e&&(o.trigger(“change”,{what:”duration”,newval:l.duration}),o.trigger(“shift”,{reason:”duration”}))}},E=function(e){var t=0,i=l.triggerElement;if(n&&(i||u>0)){if(i)if(i.parentNode){for(var r=n.info(),a=_util.get.offset(r.container),s=r.vertical?”top”:”left”;i.parentNode.hasAttribute(PIN_SPACER_ATTRIBUTE);)i=i.parentNode;var c=_util.get.offset(i);r.isDocument||(a[s]-=n.scrollPos()),t=c[s]-a[s]}else p(2,”WARNING: triggerElement was removed from DOM and will be reset to”,void 0),o.triggerElement(void 0);var f=t!=u;u=t,f&&!e&&o.trigger(“shift”,{reason:”triggerElementPosition”})}},_=function(e){l.triggerHook>0&&o.trigger(“shift”,{reason:”containerResize”})},w=_util.extend(SCENE_OPTIONS.validate,{duration:function(e){if(_util.type.String(e)&&e.match(/^(.|d)*d+%$/)){var i=parseFloat(e)/100;e=function(){return n?n.info(“size”)*i:0}}if(_util.type.Function(e)){t=e;try{e=parseFloat(t.call(o))}catch(t){e=-1}}if(e=parseFloat(e),!_util.type.Number(e)||e<0)throw t?(t=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(w)).forEach((function(e,t){var n;if(w[e])try{n=w[e](l[e])}catch(t){n=r[e];var i=_util.type.String(t)?[t]:t;_util.type.Array(i)?(i[0]="ERROR: "+i[0],i.unshift(1),p.apply(this,i)):p(1,"ERROR: Problem executing validation callback for option '"+e+"':",t.message)}finally{l[e]=n}}))},R=function(e,t){var n=!1,i=l[e];return l[e]!=t&&(l[e]=t,y(e),n=i!=l[e]),n},T=function(e){o[e]||(o[e]=function(n){return arguments.length?("duration"===e&&(t=void 0),R(e,n)&&(o.trigger("change",{what:e,newval:l[e]}),SCENE_OPTIONS.shifts.indexOf(e)>-1&&o.trigger(“shift”,{reason:e})),o):l[e]})};this.controller=function(){return n},this.state=function(){return a},this.scrollOffset=function(){return c.start},this.triggerPosition=function(){var e=l.offset;return n&&(l.triggerElement?e+=u:e+=n.info(“size”)*o.triggerHook()),e},o.on(“shift.internal”,(function(e){var t=”duration”===e.reason;(“AFTER”===a&&t||”DURING”===a&&0===l.duration)&&b(),t&&O()})).on(“progress.internal”,(function(e){b()})).on(“add.internal”,(function(e){O()})).on(“destroy.internal”,(function(e){o.removePin(e.reset)}));var b=function(e){if(h&&n){var t=n.info(),i=v.spacer.firstChild;if(e||”DURING”!==a){var r={position:v.inFlow?”relative”:”absolute”,top:0,left:0},o=_util.css(i,”position”)!=r.position;isIEorEdge&&(d=null),v.pushFollowers?l.duration>0&&(“AFTER”===a&&0===parseFloat(_util.css(v.spacer,”padding-top”))||”BEFORE”===a&&0===parseFloat(_util.css(v.spacer,”padding-bottom”)))&&(o=!0):r[t.vertical?”top”:”left”]=l.duration*s,_util.css(i,r),o&&O()}else{“fixed”!=_util.css(i,”position”)&&(_util.css(i,{position:”fixed”}),O());var u=_util.get.offset(v.spacer,!0),f=l.reverse||0===l.duration?t.scrollPos-c.start:Math.round(s*l.duration*10)/10;u[t.vertical?”top”:”left”]+=f,isIEorEdge&&(null==d?d=u:u=d),_util.css(v.spacer.firstChild,{top:u.top,left:u.left})}}},O=function(){if(h&&n&&v.inFlow){var e=”DURING”===a,t=n.info(“vertical”),i=v.spacer.firstChild,r=_util.isMarginCollapseType(_util.css(v.spacer,”display”)),o={};v.relSize.width||v.relSize.autoFullWidth?e?_util.css(h,{width:_util.get.width(v.spacer)}):_util.css(h,{width:”100%”}):(o[“min-width”]=_util.get.width(t?h:i,!0,!0),o.width=e?o[“min-width”]:”auto”),v.relSize.height?e?_util.css(h,{height:_util.get.height(v.spacer)-(v.pushFollowers?l.duration:0)}):_util.css(h,{height:”100%”}):(o[“min-height”]=_util.get.height(t?i:h,!0,!r),o.height=e?o[“min-height”]:”auto”),v.pushFollowers&&(o[“padding”+(t?”Top”:”Left”)]=l.duration*s,o[“padding”+(t?”Bottom”:”Right”)]=l.duration*(1-s)),_util.css(v.spacer,o)}},N=function(){n&&h&&”DURING”===a&&!n.info(“isDocument”)&&b()},I=function(){n&&h&&”DURING”===a&&((v.relSize.width||v.relSize.autoFullWidth)&&_util.get.width(window)!=_util.get.width(v.spacer.parentNode)||v.relSize.height&&_util.get.height(window)!=_util.get.height(v.spacer.parentNode))&&O()},M=function(e){n&&h&&”DURING”===a&&!n.info(“isDocument”)&&(e.preventDefault(),n._setScrollPos(n.info(“scrollPos”)-((e.wheelDelta||e[n.info(“vertical”)?”wheelDeltaY”:”wheelDeltaX”])/3||30*-e.detail)))};this.setPin=function(e,t){var n=t&&t.hasOwnProperty(“pushFollowers”);if(t=_util.extend({},{pushFollowers:!0,spacerClass:”scrollmagic-pin-spacer”},t),!(e=_util.get.elements(e)[0]))return p(1,”ERROR calling method ‘setPin()’: Invalid pin element supplied.”),o;if(“fixed”===_util.css(e,”position”))return p(1,”ERROR calling method ‘setPin()’: Pin does not work with elements that are positioned ‘fixed’.”),o;if(h){if(h===e)return o;o.removePin()}var i=(h=e).parentNode.style.display,r=[“top”,”left”,”bottom”,”right”,”margin”,”marginLeft”,”marginRight”,”marginTop”,”marginBottom”];h.parentNode.style.display=”none”;var a=”absolute”!=_util.css(h,”position”),s=_util.css(h,r.concat([“display”])),c=_util.css(h,[“width”,”height”]);h.parentNode.style.display=i,!a&&t.pushFollowers&&(p(2,”WARNING: If the pinned element is positioned absolutely pushFollowers will be disabled.”),t.pushFollowers=!1),window.setTimeout((function(){h&&0===l.duration&&n&&t.pushFollowers&&p(2,”WARNING: pushFollowers =”,!0,”has no effect, when scene duration is 0.”)}),0);var u=h.parentNode.insertBefore(document.createElement(“div”),h),f=_util.extend(s,{position:a?”relative”:”absolute”,boxSizing:”content-box”,mozBoxSizing:”content-box”,webkitBoxSizing:”content-box”});if(a||_util.extend(f,_util.css(h,[“width”,”height”])),_util.css(u,f),u.setAttribute(PIN_SPACER_ATTRIBUTE,””),_util.addClass(u,t.spacerClass),v={spacer:u,relSize:{width:”%”===c.width.slice(-1),height:”%”===c.height.slice(-1),autoFullWidth:”auto”===c.width&&a&&_util.isMarginCollapseType(s.display)},pushFollowers:t.pushFollowers,inFlow:a},!h.___origStyle){h.___origStyle={};var d=h.style;r.concat([“width”,”height”,”position”,”boxSizing”,”mozBoxSizing”,”webkitBoxSizing”]).forEach((function(e){h.___origStyle[e]=d[e]||””}))}return v.relSize.width&&_util.css(u,{width:c.width}),v.relSize.height&&_util.css(u,{height:c.height}),u.appendChild(h),_util.css(h,{position:a?”relative”:”absolute”,margin:”auto”,top:”auto”,left:”auto”,bottom:”auto”,right:”auto”}),(v.relSize.width||v.relSize.autoFullWidth)&&_util.css(h,{boxSizing:”border-box”,mozBoxSizing:”border-box”,webkitBoxSizing:”border-box”}),window.addEventListener(“scroll”,N),window.addEventListener(“resize”,N),window.addEventListener(“resize”,I),h.addEventListener(“mousewheel”,M),h.addEventListener(“DOMMouseScroll”,M),p(3,”added pin”),b(),o},this.removePin=function(e){if(h){if(“DURING”===a&&b(!0),e||!n){var t=v.spacer.firstChild;if(t.hasAttribute(PIN_SPACER_ATTRIBUTE)){var i=v.spacer.style,r={};[“margin”,”marginLeft”,”marginRight”,”marginTop”,”marginBottom”].forEach((function(e){r[e]=i[e]||””})),_util.css(t,r)}v.spacer.parentNode.insertBefore(t,v.spacer),v.spacer.parentNode.removeChild(v.spacer),h.parentNode.hasAttribute(PIN_SPACER_ATTRIBUTE)||(_util.css(h,h.___origStyle),delete h.___origStyle)}window.removeEventListener(“scroll”,N),window.removeEventListener(“resize”,N),window.removeEventListener(“resize”,I),h.removeEventListener(“mousewheel”,M),h.removeEventListener(“DOMMouseScroll”,M),h=void 0,p(3,”removed pin (reset: “+(e?”true”:”false”)+”)”)}return o};var P,C=[];return o.on(“destroy.internal”,(function(e){o.removeClassToggle(e.reset)})),this.setClassToggle=function(e,t){var n=_util.get.elements(e);return 0!==n.length&&_util.type.String(t)?(C.length>0&&o.removeClassToggle(),P=t,C=n,o.on(“enter.internal_class leave.internal_class”,(function(e){var t=”enter”===e.type?_util.addClass:_util.removeClass;C.forEach((function(e,n){t(e,P)}))})),o):(p(1,”ERROR calling method ‘setClassToggle()’: Invalid “+(0===n.length?”element”:”classes”)+” supplied.”),o)},this.removeClassToggle=function(e){return e&&C.forEach((function(e,t){_util.removeClass(e,P)})),o.off(“start.internal_class end.internal_class”),P=void 0,C=[],o},function(){for(var e in l)r.hasOwnProperty(e)||(p(2,’WARNING: Unknown option “‘+e+'”‘),delete l[e]);for(var t in r)T(t);y()}(),o};var SCENE_OPTIONS={defaults:{duration:0,offset:0,triggerElement:void 0,triggerHook:.5,reverse:!0,loglevel:2},validate:{offset:function(e){if(e=parseFloat(e),!_util.type.Number(e))throw[‘Invalid value for option “offset”:’,e];return e},triggerElement:function(e){if(e=e||void 0){var t=_util.get.elements(e)[0];if(!t||!t.parentNode)throw[‘Element defined in option “triggerElement” was not found:’,e];e=t}return e},triggerHook:function(e){var t={onCenter:.5,onEnter:1,onLeave:0};if(_util.type.Number(e))e=Math.max(0,Math.min(parseFloat(e),1));else{if(!(e in t))throw[‘Invalid value for option “triggerHook”: ‘,e];e=t[e]}return e},reverse:function(e){return!!e},loglevel:function(e){if(e=parseInt(e),!_util.type.Number(e)||e<0||e>3)throw[‘Invalid value for option “loglevel”:’,e];return e}},shifts:[“duration”,”offset”,”triggerHook”]};ScrollMagic.Scene.addOption=function(e,t,n,i){e in SCENE_OPTIONS.defaults?ScrollMagic._util.log(1,”[static] ScrollMagic.Scene -> Cannot add Scene option ‘”+e+”‘, because it already exists.”):(SCENE_OPTIONS.defaults[e]=t,SCENE_OPTIONS.validate[e]=n,i&&SCENE_OPTIONS.shifts.push(e))},ScrollMagic.Scene.extend=function(e){var t=this;ScrollMagic.Scene=function(){return t.apply(this,arguments),this.$super=_util.extend({},this),e.apply(this,arguments)||this},_util.extend(ScrollMagic.Scene,t),ScrollMagic.Scene.prototype=t.prototype,ScrollMagic.Scene.prototype.constructor=ScrollMagic.Scene},ScrollMagic.Event=function(e,t,n,i){for(var r in i=i||{})this[r]=i[r];return this.type=e,this.target=this.currentTarget=n,this.namespace=t||””,this.timeStamp=this.timestamp=Date.now(),this};var _util=ScrollMagic._util=function(e){var t,n={},i=function(e){return parseFloat(e)||0},r=function(t){return t.currentStyle?t.currentStyle:e.getComputedStyle(t)},o=function(t,n,o,l){if((n=n===document?e:n)===e)l=!1;else if(!p.DomElement(n))return 0;t=t.charAt(0).toUpperCase()+t.substr(1).toLowerCase();var a=(o?n[“offset”+t]||n[“outer”+t]:n[“client”+t]||n[“inner”+t])||0;if(o&&l){var s=r(n);a+=”Height”===t?i(s.marginTop)+i(s.marginBottom):i(s.marginLeft)+i(s.marginRight)}return a},l=function(e){return e.replace(/^[^a-z]+([a-z])/g,”$1”).replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))};n.extend=function(e){for(e=e||{},t=1;t-1};var a=0,s=[“ms”,”moz”,”webkit”,”o”],c=e.requestAnimationFrame,u=e.cancelAnimationFrame;for(t=0;!c&&t ERROR calling removeIndicators() due to missing Plugin ‘debug.addIndicators’. Please make sure to include plugins/debug.addIndicators.js”),this},ScrollMagic.Scene.prototype.setTween=function(){return ScrollMagic._util.log(1,”(ScrollMagic.Scene) -> ERROR calling setTween() due to missing Plugin ‘animation.gsap’. Please make sure to include plugins/animation.gsap.js”),this},ScrollMagic.Scene.prototype.removeTween=function(){return ScrollMagic._util.log(1,”(ScrollMagic.Scene) -> ERROR calling removeTween() due to missing Plugin ‘animation.gsap’. Please make sure to include plugins/animation.gsap.js”),this},ScrollMagic.Scene.prototype.setVelocity=function(){return ScrollMagic._util.log(1,”(ScrollMagic.Scene) -> ERROR calling setVelocity() due to missing Plugin ‘animation.velocity’. Please make sure to include plugins/animation.velocity.js”),this},ScrollMagic.Scene.prototype.removeVelocity=function(){return ScrollMagic._util.log(1,”(ScrollMagic.Scene) -> ERROR calling removeVelocity() due to missing Plugin ‘animation.velocity’. Please make sure to include plugins/animation.velocity.js”),this}; return ScrollMagic; })); !function(t, e, i) { “use strict”; function n() { e.addEventListener ? e.removeEventListener(“DOMContentLoaded”, s) : e.detachEvent(“onreadystatechange”, s) } function s() { (e.addEventListener || “load” === event.type || “complete” === e.readyState) && (n(), i(window, window.jQuery)) } function r() { e.addEventListener ? e.addEventListener(“DOMContentLoaded”, s) : e.attachEvent(“onreadystatechange”, s) } i = i || function() {} , r() }(window, document, function(win, $) { (function (root, factory) { if (typeof define === ‘function’ && define.amd) { // AMD. Register as an anonymous module. define([‘ScrollMagic’, ‘TweenMax’, ‘TimelineMax’], factory); } else if (typeof exports === ‘object’) { // CommonJS // Loads whole gsap package onto global scope. require(‘gsap’); factory(require(‘scrollmagic’), TweenMax, TimelineMax); } else { // Browser globals factory(root.ScrollMagic || (root.jQuery && root.jQuery.ScrollMagic), root.TweenMax || root.TweenLite, root.TimelineMax || root.TimelineLite); } }(this, function (ScrollMagic, Tween, Timeline) { “use strict”; var NAMESPACE = “animation.gsap”; var console = window.console || {}, err = Function.prototype.bind.call(console.error || console.log || function () {}, console); if (!ScrollMagic) { err(“(” + NAMESPACE + “) -> ERROR: The ScrollMagic main module could not be found. Please make sure it’s loaded before this plugin or use an asynchronous loader like requirejs.”); } if (!Tween) { err(“(” + NAMESPACE + “) -> ERROR: TweenLite or TweenMax could not be found. Please make sure GSAP is loaded before ScrollMagic or use an asynchronous loader like requirejs.”); } /* * —————————————————————- * Extensions for Scene * —————————————————————- */ /** * Every instance of ScrollMagic.Scene now accepts an additional option. * See {@link ScrollMagic.Scene} for a complete list of the standard options. * @memberof! animation.GSAP# * @method new ScrollMagic.Scene(options) * @example * var scene = new ScrollMagic.Scene({tweenChanges: true}); * * @param {object} [options] – Options for the Scene. The options can be updated at any time. * @param {boolean} [options.tweenChanges=false] – Tweens Animation to the progress target instead of setting it. Does not affect animations where duration is `0`. */ /** * **Get** or **Set** the tweenChanges option value. * This only affects scenes with a duration. If `tweenChanges` is `true`, the progress update when scrolling will not be immediate, but instead the animation will smoothly animate to the target state. * For a better understanding, try enabling and disabling this option in the [Scene Manipulation Example](../examples/basic/scene_manipulation.html). * @memberof! animation.GSAP# * @method Scene.tweenChanges * * @example * // get the current tweenChanges option * var tweenChanges = scene.tweenChanges(); * * // set new tweenChanges option * scene.tweenChanges(true); * * @fires {@link Scene.change}, when used as setter * @param {boolean} [newTweenChanges] – The new tweenChanges setting of the scene. * @returns {boolean} `get` – Current tweenChanges option value. * @returns {Scene} `set` – Parent object for chaining. */ // add option (TODO: DOC (private for dev)) ScrollMagic.Scene.addOption( “tweenChanges”, // name false, // default function (val) { // validation callback return !!val; } ); // extend scene ScrollMagic.Scene.extend(function () { var Scene = this, _tween; var log = function () { if (Scene._log) { // not available, when main source minified Array.prototype.splice.call(arguments, 1, 0, “(” + NAMESPACE + “)”, “->”); Scene._log.apply(this, arguments); } }; // set listeners Scene.on(“progress.plugin_gsap”, function () { updateTweenProgress(); }); Scene.on(“destroy.plugin_gsap”, function (e) { Scene.removeTween(e.reset); }); /** * Update the tween progress to current position. * @private */ var updateTweenProgress = function () { if (_tween) { var progress = Scene.progress(), state = Scene.state(); if (_tween.repeat && _tween.repeat() === -1) { // infinite loop, so not in relation to progress if (state === ‘DURING’ && _tween.paused()) { _tween.play(); } else if (state !== ‘DURING’ && !_tween.paused()) { _tween.pause(); } } else if (progress != _tween.progress()) { // do we even need to update the progress? // no infinite loop – so should we just play or go to a specific point in time? if (Scene.duration() === 0) { // play the animation if (progress > 0) { // play from 0 to 1 _tween.play(); } else { // play from 1 to 0 _tween.reverse(); } } else { // go to a specific point in time if (Scene.tweenChanges() && _tween.tweenTo) { // go smooth _tween.tweenTo(progress * _tween.duration()); } else { // just hard set it _tween.progress(progress).pause(); } } } } }; /** * Add a tween to the scene. * If you want to add multiple tweens, add them into a GSAP Timeline object and supply it instead (see example below). * * If the scene has a duration, the tween’s duration will be projected to the scroll distance of the scene, meaning its progress will be synced to scrollbar movement. * For a scene with a duration of `0`, the tween will be triggered when scrolling forward past the scene’s trigger position and reversed, when scrolling back. * To gain better understanding, check out the [Simple Tweening example](../examples/basic/simple_tweening.html). * * Instead of supplying a tween this method can also be used as a shorthand for `TweenMax.to()` (see example below). * @memberof! animation.GSAP# * * @example * // add a single tween directly * scene.setTween(TweenMax.to(“obj”), 1, {x: 100}); * * // add a single tween via variable * var tween = TweenMax.to(“obj”), 1, {x: 100}; * scene.setTween(tween); * * // add multiple tweens, wrapped in a timeline. * var timeline = new TimelineMax(); * var tween1 = TweenMax.from(“obj1”, 1, {x: 100}); * var tween2 = TweenMax.to(“obj2”, 1, {y: 100}); * timeline * .add(tween1) * .add(tween2); * scene.addTween(timeline); * * // short hand to add a TweenMax.to() tween * scene.setTween(“obj3”, 0.5, {y: 100}); * * // short hand to add a TweenMax.to() tween for 1 second * // this is useful, when the scene has a duration and the tween duration isn’t important anyway * scene.setTween(“obj3”, {y: 100}); * * @param {(object|string)} TweenObject – A TweenMax, TweenLite, TimelineMax or TimelineLite object that should be animated in the scene. Can also be a Dom Element or Selector, when using direct tween definition (see examples). * @param {(number|object)} duration – A duration for the tween, or tween parameters. If an object containing parameters are supplied, a default duration of 1 will be used. * @param {object} params – The parameters for the tween * @returns {Scene} Parent object for chaining. */ Scene.setTween = function (TweenObject, duration, params) { var newTween; if (arguments.length > 1) { if (arguments.length = 2) { // controller is needed to know scroll direction. var triggerTweens = Tween.getTweensOf(Scene.triggerElement()), vertical = Scene.controller().info(“vertical”); triggerTweens.forEach(function (value, index) { var tweenvars = value.vars.css || value.vars, condition = vertical ? (tweenvars.top !== undefined || tweenvars.bottom !== undefined) : (tweenvars.left !== undefined || tweenvars.right !== undefined); if (condition) { log(2, “WARNING: Tweening the position of the trigger element affects the scene timing and should be avoided!”); return false; } }); } // warn about tween overwrites, when an element is tweened multiple times if (parseFloat(TweenLite.version) >= 1.14) { // onOverwrite only present since GSAP v1.14.0 var list = _tween.getChildren ? _tween.getChildren(true, true, false) : [_tween], // get all nested tween objects newCallback = function () { // log(2, “WARNING: tween was overwritten by another. To learn how to avoid this issue see here: https://github.com/janpaepke/ScrollMagic/wiki/WARNING:-tween-was-overwritten-by-another”); }; for (var i = 0, thisTween, oldCallback; i < list.length; i++) { /*jshint loopfunc: true */ thisTween = list[i]; if (oldCallback !== newCallback) { // if tweens is added more than once oldCallback = thisTween.vars.onOverwrite; thisTween.vars.onOverwrite = function () { if (oldCallback) { oldCallback.apply(this, arguments); } newCallback.apply(this, arguments); }; } } } log(3, "added tween"); updateTweenProgress(); return Scene; }; /** * Remove the tween from the scene. * This will terminate the control of the Scene over the tween. * * Using the reset option you can decide if the tween should remain in the current state or be rewound to set the target elements back to the state they were in before the tween was added to the scene. * @memberof! animation.GSAP# * * @example * // remove the tween from the scene without resetting it * scene.removeTween(); * * // remove the tween from the scene and reset it to initial position * scene.removeTween(true); * * @param {boolean} [reset=false] - If `true` the tween will be reset to its initial values. * @returns {Scene} Parent object for chaining. */ Scene.removeTween = function (reset) { if (_tween) { if (reset) { _tween.progress(0).pause(); } _tween.kill(); _tween = undefined; log(3, "removed tween (reset: " + (reset ? "true" : "false") + ")"); } return Scene; }; }); })); }); (function (global, factory) { global = global; global.spack = factory(); }(this, function () { 'use strict'; var Common = (function () { var hasOwnProperty = Object.prototype.hasOwnProperty, win = window, $ = win.jQuery, doc = win.document; var winScrollTop, winScrollBottom; var galaxySpeedCookie = '___GALAXY_SPEED', commonSpeedCookie = '__COM_SPEED' return { util : { winScrollTop: function(){ winScrollTop = window.pageYOffset; }, winScrollBottom: function(){ winScrollBottom = window.pageYOffset + window.innerHeight; }, getOffsetTop: function(element){ var clientRect = element.getBoundingClientRect().top; return clientRect + winScrollTop; }, addClassOffsetBottom: function(element, actClass, percent, removeType){ var getOffset = this.getOffsetTop(element), calPercent = !!!percent ? 0 : element.clientHeight*percent, targetOffset = getOffset + calPercent; if (typeof actClass === 'string') { if(!element.classList.contains(actClass) && targetOffset = winScrollBottom && (!!!removeType || removeType === 'removeOnly')) { element.classList.remove(actClass); } else if (element.classList.contains('sc-article__bg') && targetOffset >= winScrollBottom) { element.classList.remove(actClass); } } else if (typeof actClass === ‘object’) { if(targetOffset = winScrollBottom && (!!!removeType || removeType === ‘removeOnly’)) { actClass.forEach(function(target) { element.classList.remove(target); }); } } }, addClassOffsetTop: function(element, actClass, percent, target) { var getOffset = this.getOffsetTop(element), gnbEle = document.documentElement.querySelector(‘.gnb__nav’), gnbHeight = gnbEle == null ? 0 : gnbEle.offsetHeight; if(!target.classList.contains(actClass) && getOffset = winScrollTop + gnbHeight) { target.classList.remove(actClass); } }, addClassOffsetElement: function(element, actClass, target) { var getOffset = this.getOffsetTop(element) + 100, getHeight = getOffset + element.getBoundingClientRect().height, gnbEle = document.documentElement.querySelector(‘.gnb__nav’), gnbHeight = gnbEle == null ? 0 : gnbEle.offsetHeight, winOffsetBottom = winScrollBottom + gnbHeight; if (winOffsetBottom > getOffset && winOffsetBottom < getHeight) { if (target.classList.contains(actClass)) target.classList.remove(actClass); } else { if (!target.classList.contains(actClass)) target.classList.add(actClass); } }, activeAnimationFnc: function(element, percent, callback) { var getOffset = this.getOffsetTop(element), calPercent = !!!percent ? 0 : element.clientHeight*percent, targetOffset = getOffset + calPercent; if(targetOffset = winScrollBottom) { } }, checkSizeMode: function() { var width = document.documentElement.offsetWidth; return width > 1440 ? 4 : width > this.checkBreakPoint() ? 3 : width > 767 ? 2 : 1; }, isIOS : (function () { var isIOS = (/iPad|iPhone|iPod/.test(navigator.userAgent)); isIOS ? document.documentElement.classList.add(‘isIosDevice’) : document.documentElement.classList.add(‘isNotIosDevice’); return isIOS; })(), isWinSafari: (function () { var appNetscape = (navigator.appName === “Netscape”), appVersionMac = (navigator.appVersion.indexOf(“Mac”) !== -1), userAgentSafari = (navigator.userAgent.indexOf(“Safari”) !== -1), userAgentChrome = (navigator.userAgent.indexOf(“Chrome”) !== -1); return (appNetscape && !appVersionMac && userAgentSafari && !userAgentChrome); })(), isObject: function (o) { return typeof o === ‘object’ && o !== null && o.constructor && o.constructor === Object; }, def : function () { var args = [], len$1 = arguments.length; while ( len$1– ) args[ len$1 ] = arguments[ len$1 ]; var to = Object(args[0]); for (var i = 1; i < args.length; i += 1) { var nextSource = args[i]; if (nextSource !== undefined && nextSource !== null) { var keysArray = Object.keys(Object(nextSource)); for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex += 1) { var nextKey = keysArray[nextIndex]; var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey); if (desc !== undefined && desc.enumerable) { if (this.isObject(to[nextKey]) && this.isObject(nextSource[nextKey])) { this.def(to[nextKey], nextSource[nextKey]); } else if (!this.isObject(to[nextKey]) && this.isObject(nextSource[nextKey])) { to[nextKey] = {}; this.def(to[nextKey], nextSource[nextKey]); } else { to[nextKey] = nextSource[nextKey]; } } } } } return to; }, winSize : (function () { var isWinSafari = (function () { var appNetscape = (navigator.appName === "Netscape"), appVersionMac = (navigator.appVersion.indexOf("Mac") !== -1), userAgentSafari = (navigator.userAgent.indexOf("Safari") !== -1), userAgentChrome = (navigator.userAgent.indexOf("Chrome") !== -1); return (appNetscape && !appVersionMac && userAgentSafari && !userAgentChrome); })(); if (isWinSafari) { return function () { var win_wh = { w : $(window).width(), h : $(window).height() }; return win_wh; } } else { return function () { var win_wh = { w : window.innerWidth || doc.documentElement.clientWidth || doc.body.clientWidth, h : window.innerHeight || doc.documentElement.clientHeight || doc.body.clientHeight }; return win_wh; } } })(), requestAFrame : (function () { return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (callback) { return window.setTimeout(callback, 1000 / 60); }; })(), cancelAFrame : (function () { return window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.oCancelAnimationFrame || window.msCancelAnimationFrame || function (id) { window.clearTimeout(id); }; })(), pushBackGround: function(parent, element) { var getOffset = this.getOffsetTop(parent); var transY = winScrollTop + this.getNavigationHeight() - getOffset; if(getOffset <= winScrollBottom) { element.style.cssText = "transform:translateY(-" + transY + "px)"; } }, checkRegion: function () { var metas = document.getElementsByTagName('meta'); var region = ''; for (var i = 0; i -1) ? 'global' : 'jp'; }, getCookie: function (_key) { return document.cookie.match('(^|;)?' + _key + '=([^;]*)(;|$)'); }, isLowNetwork: function () { var cookie = (this.checkRegion() == 'global' || this.checkRegion() == 'jp') ? galaxySpeedCookie : commonSpeedCookie; if (this.getCookie(cookie) == null || this.getCookie(cookie) == undefined) { return null; } else if (this.getCookie(cookie)[2] == 'L') { return true; } else if (this.getCookie(cookie)[2] == 'H') { return false; } }, getNavigationHeight: function() { var navigation = null; var sizeMode = this.checkSizeMode(); if (document.querySelector('.pd-g-header-navigation') != null) { navigation = document.querySelector('.pd-g-header-navigation'); } else if (document.querySelector('#subnav') != null) { navigation = document.querySelector('#subnav'); } else if (document.querySelector('.sticky-menu') != null) { navigation = document.querySelector('.sticky-menu'); } var navigationHeight = 0; var contentEle = document.querySelector('#contents'); if (navigation == null) { navigationHeight = 0; if (contentEle != null && !contentEle.classList.contains('sc-buds--no-navi')) contentEle.classList.add('sc-buds--no-navi'); } else { navigationHeight = navigation.clientHeight; } if (___IS_GALAXY) { if (sizeMode > 2) navigationHeight = 96; else if (sizeMode == 2) navigationHeight = 108; else if (sizeMode == 1) navigationHeight = 79; } return navigationHeight; }, checkBreakPoint : function() { var breakPoint = 1023; if (___IS_GALAXY) breakPoint = 1023; else breakPoint = 1024; return breakPoint; } } } })(); return Common; })); !function(t, e, i) { “use strict”; function n() { e.addEventListener ? e.removeEventListener(“DOMContentLoaded”, s) : e.detachEvent(“onreadystatechange”, s) } function s() { (e.addEventListener || “load” === event.type || “complete” === e.readyState) && (n(), i(window, window.jQuery)) } function r() { e.addEventListener ? e.addEventListener(“DOMContentLoaded”, s) : e.attachEvent(“onreadystatechange”, s) } i = i || function() {} , r() }(window, document, function(win, $) { (function (global, factory) { global = global; global.ParallaxView = factory(); }(this, function () { ‘use strict’; var ParallaxView = (function (isUndefined) { var win = window, $ = win.jQuery, Util = win.spack.util; function ParallaxView (container, args) { if (!(this instanceof ParallaxView)) { return new ParallaxView(container, args); } var defParams = { props : {}, triggerElement : null, triggerHook : 0, duration : ‘100%’, animation : {}, stateAttr : { play : false, destroy : false, outTop : false, outBot : false }, customEvent : ‘.ParallaxView’ + (new Date()).getTime() + Math.random(), scrollStart : null, resizeStart : null }; this.opts = Util.def(defParams, (args || {})); if (!(this.obj = $(container)).length) return; this.init(); } ParallaxView.prototype = { init : function () { this.initLayout(); this.buildTween(); this.scrollFunc(); this.bindEvents(true); }, initLayout : function () { this.objWrap = this.opts.triggerElement; }, buildTween : function () { Util.def(this, { tweens : { instance : [], kill : $.proxy(function () { for (var i = 0, max = this.tweens.instance.length; i < max; i++) { this.tweens.instance[i].kill(); } this.tweens.instance = []; }, this) } }) }, changeEvents : function (event) { var events = [], eventNames = event.split(' '); for (var key in eventNames) { events.push(eventNames[key] + this.opts.customEvent); } return events.join(' '); }, bindEvents : function (type) { if (type) { $(win).on(this.changeEvents('scroll'), $.proxy(this.scrollFunc, this)); $(win).on(this.changeEvents('resize orientationchange'), $.proxy(this.resizeFunc, this)); } else { $(win).off(this.changeEvents('scroll')); $(win).off(this.changeEvents('resize orientationchange')); } }, setOpts : function () { var offset = this.objWrap.offset(), height = this.objWrap.outerHeight(true), winHeight = Util.winSize().h, duration = (parseFloat(this.opts.duration) / 100) * winHeight, triggerHook = ((height* 2) < winHeight) ? 1 : this.opts.triggerHook; this.opts.props['offset'] = offset.top; this.opts.props['minOffset'] = Math.ceil(offset.top - winHeight, 10); this.opts.props['maxOffset'] = Math.ceil(offset.top + height, 10); if (triggerHook < 0) { var triggerMinSize = this.opts.props['maxOffset'] + duration; var triggerMaxSize = this.opts.props['maxOffset']; } else { var triggerMinSize = this.opts.props['minOffset']; var triggerMaxSize = this.opts.props['minOffset'] + duration; } this.opts.props['minCustomOffset'] = triggerMinSize; this.opts.props['maxCustomOffset'] = triggerMaxSize; }, motionControl : function () { var props = this.opts.props, winTop = $(win).scrollTop(), animation = this.opts.animation; if (props.minOffset <= winTop && winTop < props.maxOffset) { if (props.minCustomOffset <= winTop && winTop winTop) { if (!this.opts.stateAttr.outTop) { this.opts.stateAttr.outBot = false; this.opts.stateAttr.outTop = true; var step1 = TweenLite.to(this.obj, .15, { y : animation.from.y }); this.tweens.instance.push(step1); } } if (winTop >= props.maxCustomOffset) { if (!this.opts.stateAttr.outBot) { this.opts.stateAttr.outTop = false; this.opts.stateAttr.outBot = true; var step1 = TweenLite.to(this.obj, .15, { y : animation.to.y }); this.tweens.instance.push(step1); } } }, scrollFunc : function () { this.winTop = $(win).scrollTop(); if (this.opts.scrollStart == null) { this.opts.scrollStart = this.winTop; this.scrollAnimateFunc(); } win.clearTimeout(this.scrollEndTimeout); this.scrollEndTimeout = win.setTimeout($.proxy(this.scrollEndFunc, this), 60); }, scrollEndFunc : function () { this.opts.scrollStart = null; Util.cancelAFrame.call(win, this.scrollRequestFrame); }, scrollAnimateFunc : function () { if (!this.opts.stateAttr.destroy) { this.setOpts(); this.motionControl(); } this.scrollRequestFrame = Util.requestAFrame.call(win, $.proxy(this.scrollAnimateFunc, this)); }, resizeFunc : function () { this.winWidth = Util.winSize().w; if (this.opts.resizeStart == null) { this.opts.resizeStart = this.winWidth; this.resizeAnimateFunc(); } win.clearTimeout(this.resizeEndTimeout); this.resizeEndTimeout = win.setTimeout($.proxy(this.resizeEndFunc, this), 150); }, resizeEndFunc : function () { this.opts.resizeStart = null; this.setOpts(); this.scrollFunc(); Util.cancelAFrame.call(win, this.resizeRequestFrame); }, resizeAnimateFunc : function () { this.resizeRequestFrame = Util.requestAFrame.call(win, $.proxy(this.resizeAnimateFunc, this)); }, destroy : function () { this.opts.stateAttr.destroy = true; this.tweens.kill(); TweenLite.set(this.obj, { y : 0 }); this.obj.css(‘transform’, ”); this.bindEvents(false); }, outCallback : function (ing) { var callbackObj = this.opts.on[ing]; if (callbackObj == null) return; callbackObj(); } }; return ParallaxView; })(); return ParallaxView; })); }); ;(function() { ‘use strict’; window.GALAXY = window.GALAXY || {}; window.GALAXY.atticHandler = window.GALAXY.atticHandler || {}; GALAXY.atticHandler = (function() { var kv, kvVideo, kvCanvas, kvContext, kvFigure, kvImages = []; var budsSection, sideMenus, featureFit, noiseCancel, ancScModel, ancScaleImage, ancBg, pulse, audio, audioWrap, audioPulse, switching, bixby, bixbyChat, life, featureOverview; var professionalWrap, noiseFreeCall, seamless, battery, batteryWrap; var allAticles, audioCanvas, audioContext, audioFigure, allSup, supTitle, popNoiseFreeCall, switchingBg; var immersive, immersiveSticky, immersiveCanvas, immersiveContext, immersiveFigure, immersiveImageWidth, immersiveImageHeight; var sizeMode = 4, modeName = “”, isLowNet = false; var audioImages = [], immersiveImages = []; var tweenList = {}; var immersiveImageCount = 57, audioImageCount = 76, kvImageCount = 104; var imagePath = ‘./images/’; var breakPoint = 1024; if (typeof __BUDS_PRO_SITE_CODE !== ‘undefined’ && __BUDS_PRO_SITE_CODE != null && __BUDS_PRO_SITE_CODE != undefined && __BUDS_PRO_SITE_CODE != ”) { imagePath = ‘//images.samsung.com/common/galaxy-buds-pro/feature/’ + __BUDS_PRO_SITE_CODE + ‘/’; } var init = function() { setElements(); checkLowNetwork(); bindEvents(); bindSupClickEvent(); $(function () { motion1.init(); motion2.init(); motion3.init(); motion4.init(); motion5.init(); budsOverviewParallax.init(); budsBatteryParallax.init(); commonParallax.init(); }); }; var checkLowNetwork = function() { if (util.isLowNetwork() == null) { isLowNet = false; } else { isLowNet = util.isLowNetwork(); } if (modeName == ‘low’) isLowNet = true; var checkProcess = null; var startTime = Date.now(); var checkNetwork = function() { var currentTime = Date.now(); if (util.isLowNetwork() == null) { if (currentTime – startTime > 500) { isLowNet = false; cancelCheck(); } else { checkProcess = window.requestAnimationFrame(checkNetwork); } } else { isLowNet = util.isLowNetwork(); cancelCheck(); } }; var cancelCheck = function() { if (modeName == ‘low’) isLowNet = true; window.cancelAnimationFrame(checkProcess); }; checkNetwork(); }; var util = window.spack.util; var selector = { section: “.sc-buds__section”, article: “article[class*=sc-buds__feature]” }; var setElements = function() { kvVideo = document.createElement(‘VIDEO’); kv = document.querySelector(‘.sc-buds__feature-kv’); kvCanvas = document.createElement(‘CANVAS’); kvContext = kvCanvas.getContext(‘2d’); kvFigure = kv.querySelector(‘.sc-image’); kvFigure.appendChild(kvCanvas); budsSection = document.querySelector(“.sc-buds__section”); sideMenus = budsSection.querySelector(“#sideMenus”); allAticles = document.querySelectorAll(selector.article); featureFit = document.querySelector(‘#secure-fit’); life = document.querySelector(‘.sc-buds__feature-life’); featureOverview = document.querySelector(‘.sc-buds__feature-overview’); noiseCancel = document.querySelector(‘.sc-noise-cancel__wrap’) ancScModel = noiseCancel.querySelector(‘.sc-model’); ancScaleImage = ancScModel.querySelector(‘img’); ancBg = noiseCancel.querySelector(‘.sc-bg’); pulse = document.querySelectorAll(‘.sc-pulse-item’); audio = document.querySelector(‘.sc-buds__feature-audio’); audioCanvas = document.createElement(‘CANVAS’); audioContext = audioCanvas.getContext(‘2d’); audioFigure = audio.querySelector(‘.sc-seq-image’); audioFigure.appendChild(audioCanvas); audioWrap = audio.querySelector(‘.sc-article__media-wrap’); audioPulse = audioWrap.querySelectorAll(‘.sc-circle’); switching = document.querySelector(‘.sc-article__back-color’); switchingBg = switching.querySelector(‘.sc-article__bg’); bixby = document.querySelector(‘.sc-buds__feature-bixby’); bixbyChat = bixby.querySelector(‘.sc-bixby-chat’); immersive = document.querySelector(‘.sc-buds__feature-immersive-v2’); immersiveSticky = immersive.querySelector(‘.sc-buds-sticky-wrap’); immersiveCanvas = document.createElement(‘CANVAS’); immersiveContext = immersiveCanvas.getContext(‘2d’); immersiveFigure = immersive.querySelector(‘.sc-seq-image’); immersiveFigure.appendChild(immersiveCanvas); professionalWrap = document.querySelector(‘#professional-sound’); noiseFreeCall = professionalWrap.querySelector(‘.sc-article__cta-wrap’); seamless = document.querySelector(‘#bixby-voice-wake-up’); batteryWrap = document.querySelector(‘#budsBattery’); battery = batteryWrap.querySelector(‘.sc-buds__feature-battery’); popNoiseFreeCall = document.querySelector(‘[data-buds-popup]’); allSup = document.querySelectorAll(‘sup’); supTitle = document.querySelector(‘#desc-section ol’).getAttribute(‘data-title’); var queryName = “mode”; var name = queryName.replace(/[[]/, “\[“).replace(/[]]/, “\]”); var regex = new RegExp(“[\?&]” + name + “=([^&#]*)”); modeName = regex.exec(location.search); modeName = modeName === null ? “” : decodeURIComponent(modeName[1].replace(/+/g, ” “)); breakPoint = util.checkBreakPoint(); document.documentElement.classList.add(‘load’); if (typeof __BUDS_PRO_USE_NOISE_FREE_CALL !== “undefined” && __BUDS_PRO_USE_NOISE_FREE_CALL != null && __BUDS_PRO_USE_NOISE_FREE_CALL != undefined && __BUDS_PRO_USE_NOISE_FREE_CALL == ‘off’) { noiseFreeCall.style.display = ‘none’; } if (typeof __BUDS_PRO_USE_SEAMLESS !== “undefined” && __BUDS_PRO_USE_SEAMLESS != null && __BUDS_PRO_USE_SEAMLESS != undefined && __BUDS_PRO_USE_SEAMLESS == ‘off’) { seamless.style.display = ‘none’; } if (typeof __BUDS_PRO_USE_BATTERY !== “undefined” && __BUDS_PRO_USE_BATTERY != null && __BUDS_PRO_USE_BATTERY != undefined && __BUDS_PRO_USE_BATTERY == ‘off’) { batteryWrap.style.display = ‘none’; } }; var setKVVideo = function() { kvVideo.muted = true; kvVideo.classList.add(‘sc-video’); document.querySelector(‘#buds-pro .sc-article__media-wrap’).classList.add(‘sc-video–ready’); kvVideo.src = ‘../asset/images/buds-kv-purple.mp4’; $(‘#buds-pro .sc-image’).prepend(kvVideo); }; var bindEvents = function() { window.addEventListener(‘load’, onLoadHandler); window.addEventListener(‘resize’, onScrollHandler); window.addEventListener(‘resize’, onResizeHandler); window.addEventListener(‘scroll’, onScrollHandler); popNoiseFreeCall.addEventListener(‘click’, bindPopNoiseFreeCallClickEvent); if (modeName == ‘kv’) { kvVideo.addEventListener(‘canplaythrough’, videoCanPlayHandler); kvVideo.addEventListener(‘ended’, videoEndedHandler); } }; var videoCanPlayHandler = function() { kvVideo.play(); }; var videoEndedHandler = function() { document.querySelector(‘#buds-pro .sc-article__media-wrap’).classList.remove(‘sc-video–ready’); document.querySelector(‘#buds-pro .sc-article__media-wrap’).classList.add(‘sc-video–ended’); document.documentElement.classList.add(‘load’); }; var isKvLoading = false; var getSequenceKvImages = function() { isKvLoading = true; var imgTimeout = null, imgCount = 0; var fileName = ‘galaxy-buds-pro-kv-seq-‘; if (isLowNet) { var img = new Image(), type = ‘.jpg’; img.onload = function() { kvImages.push(this); var figureWidth = kvImages[0].width, figureHeight = kvImages[0].height; kvCanvas.width = figureWidth; kvCanvas.height = figureHeight; kvContext.clearRect(0, 0, figureWidth, figureHeight); kvContext.drawImage(kvImages[0], 0, 0, figureWidth, figureHeight); } img.src = imagePath + fileName + kvImageCount + type; } else { for (var i = 0; i <= kvImageCount; i++){ var img = new Image(), type = '.jpg'; img.onload = function() { imgCount++; kvImages.push(this); clearTimeout(imgTimeout); imgTimeout = setTimeout(function() { if (imgCount == kvImageCount + 1) { kvImages.sort(function(a, b) { if (a.imageIndex b.imageIndex) return 1; return 0; }); animationFnc.kv(); } }, 300); } img.src = imagePath + fileName + i + type; img.imageIndex = i; } } }; var isImmersiveLoading = false; var isImmersiveLoaded = false; var immersiveLoadedCount = 0; var getSequenceImmersiveImages = function(){ isImmersiveLoading = true; var imgTimeout = null; var fileName =’galaxy-buds-pro-immpersive-seq2-‘; if (isLowNet) { for (var i = 0; i <= 115; i += 115){ var img = new Image(), type = '.jpg'; img.onload = function() { immersiveImages.push(this); clearTimeout(imgTimeout); imgTimeout = setTimeout(function() { immersiveImages.sort(function(a, b) { if (a.imageIndex b.imageIndex) return 1; return 0; }); immersiveImageWidth = immersiveImages[0].width == 0 ? 1318 : immersiveImages[0].width, immersiveImageHeight = immersiveImages[0].height == 0 ? 646 : immersiveImages[0].height; immersiveCanvas.width = immersiveImageWidth; immersiveCanvas.height = immersiveImageHeight; immersiveContext.clearRect(0, 0, immersiveImageWidth, immersiveImageHeight); immersiveContext.drawImage(immersiveImages[0], 0, 0, immersiveImageWidth, immersiveImageHeight); isImmersiveLoaded = true; }, 500); } img.src = imagePath + fileName + i + type; img.imageIndex = i; } } else { for (var i = 0; i <= immersiveImageCount; i++){ var img = new Image(), type = '.jpg'; img.onload = function() { immersiveLoadedCount++; immersiveImages.push(this); clearTimeout(imgTimeout); imgTimeout = setTimeout(function() { if (immersiveLoadedCount == immersiveImageCount + 1) { immersiveImages.sort(function(a, b) { if (a.imageIndex b.imageIndex) return 1; return 0; }); immersiveImageWidth = immersiveImages[0].width == 0 ? 1318 : immersiveImages[0].width, immersiveImageHeight = immersiveImages[0].height == 0 ? 646 : immersiveImages[0].height; immersiveCanvas.width = immersiveImageWidth; immersiveCanvas.height = immersiveImageHeight; immersiveContext.clearRect(0, 0, immersiveImageWidth, immersiveImageHeight); immersiveContext.drawImage(immersiveImages[0], 0, 0, immersiveImageWidth, immersiveImageHeight); isImmersiveLoaded = true; } }, 500); } img.src = imagePath + fileName + (i * 2) + type; img.imageIndex = i; } } }; var isAudioLoading = false; var isAudioLoaded = false; var audioLoadedCount = 0; var getSequenceAudioImages = function() { isAudioLoading = true; var imgTimeout = null; var fileName =’galaxy-buds-pro-audio-seq2-‘; if (isLowNet) { var img = new Image(), type = ‘.jpg’; img.onload = function() { isAudioLoaded = true; audioImages.push(this); }; img.src = imagePath + fileName + ‘0’ + type; } else { for (var i = 0; i <= audioImageCount; i++){ var img = new Image(), type = '.jpg'; if (i == audioImageCount) type = '.png'; img.onload = function() { audioLoadedCount++; audioImages.push(this); clearTimeout(imgTimeout); imgTimeout = setTimeout(function() { if (audioLoadedCount == audioImageCount + 1) { isAudioLoaded = true; audioImages.sort(function(a, b) { if (a.imageIndex b.imageIndex) return 1; return 0; }); if (audio.classList.contains(‘active’)) { var figureWidth = audioFigure.clientWidth, figureHeight = audioFigure.clientHeight; audioCanvas.width = figureWidth; audioCanvas.height = figureHeight; audioContext.clearRect(0, 0, figureWidth, figureHeight); audioContext.drawImage(audioImages[audioImageCount], 0, 0, figureWidth, figureHeight); } } }, 500); }; img.src = imagePath + fileName + (i * 2) + type; img.imageIndex = i; } } }; var overviewTimout = null; var animationFnc = { kv: function() { var figureWidth = kvImages[0].width, figureHeight = kvImages[0].height; kvCanvas.width = figureWidth; kvCanvas.height = figureHeight; var nums = { val: 0, valMax: kvImageCount }; var cue1 = function() { TweenLite.to(nums, 4.5, { val:nums.valMax, ease: ‘none’, onUpdate: function() { var updateNum = parseInt(nums.val.toFixed(0)); kvContext.clearRect(0, 0, figureWidth, figureHeight); kvContext.drawImage(kvImages[updateNum], 0, 0, figureWidth, figureHeight); } }); }; return cue1(); }, overView: function(){ var cue1 = function(){ clearTimeout(overviewTimout); overviewTimout = setTimeout(function() { if (!featureOverview.classList.contains(‘active’)) return; featureOverview.classList.add(‘sc-cue1’); setTimeout(function(){ featureOverview.classList.remove(‘sc-cue1’); featureOverview.classList.add(‘sc-cue1-end’); }, 500); setTimeout(function(){ cue2(); }, 1200); }, 2000); }; var cue2 = function(){ if (!featureOverview.classList.contains(‘active’)) return; featureOverview.classList.remove(‘sc-cue1-end’); featureOverview.classList.add(‘sc-cue2’); setTimeout(function(){ featureOverview.classList.remove(‘sc-cue2’); featureOverview.classList.add(‘sc-cue2-end’); }, 500); setTimeout(function(){ cue3(); }, 1200); }; var cue3 = function(){ if (!featureOverview.classList.contains(‘active’)) return; featureOverview.classList.remove(‘sc-cue2-end’); featureOverview.classList.add(‘sc-cue3’); setTimeout(function(){ featureOverview.classList.remove(‘sc-cue3’); featureOverview.classList.add(‘sc-cue3-end’); }, 500); setTimeout(function(){ cue4(); }, 1200); }; var cue4 = function(){ if (!featureOverview.classList.contains(‘active’)) return; featureOverview.classList.remove(‘sc-cue3-end’); featureOverview.classList.add(‘sc-cue4’); cue5(); }; var cue5 = function(){ if (!featureOverview.classList.contains(‘active’)) return; featureOverview.classList.add(‘sc-cue5’); }; return cue1(); }, pulse: function(){ if (noiseCancel.classList.contains(‘active’)) return; noiseCancel.classList.add(‘active’); for (var i=0; i < 6; i++) { pulse[i].classList.add('will-change'); }; setTimeout(function(){ for (var i=0; i < 6; i++) { (function(idx){ tweenList['anc' + idx] = TweenLite.to(pulse[i], 3, { scale: 250, opacity: 0, delay: i*0.2, onComplete: function(){ this.target.classList.remove('will-change'); if ( idx == 0) { tweenList['anc' + 6] = TweenLite.to(ancBg, 3, {opacity: 0}); } } }); })(i); }; }, 1000); }, pulseReset: function(){ if (noiseCancel.classList.contains('active')) return; for (var i=0; i <= 6; i++) { if(tweenList['anc' + i] === undefined || tweenList['anc' + i] === null) return; tweenList['anc' + i].kill(); tweenList['anc' + i] = null; if (i < 6) { TweenLite.set(pulse[i], { scale: 0, opacity: 1 }); } else { TweenLite.set(ancBg, { opacity: 1 }); }; }; }, audio: function(){ if (audio.classList.contains('active')) return; var figureWidth = audioFigure.clientWidth, figureHeight = audioFigure.clientHeight, animate = null; audioCanvas.width = figureWidth; audioCanvas.height = figureHeight; var cue1 = function() { audioWrap.classList.add('sc-cue-ready'); if (isLowNet) { audioWrap.classList.add('sc-cue1'); cue2(); } else { setTimeout(function() { audioWrap.classList.add('sc-cue1'); }, 100); setTimeout(function() { if (!audio.classList.contains('active')) return; cue2(); }, 1000); } }; var cue2 = function() { var seqCount = 0; var activeSequence = function() { if (isLowNet) { audioWrap.classList.add('sc-cue-round'); } else { audioWrap.classList.add('sc-cue2'); if (!audio.classList.contains('active')) { cancelAnimate(); return; }; if (seqCount < audioImages.length) { audioContext.clearRect(0, 0, figureWidth, figureHeight); audioContext.drawImage(audioImages[seqCount], 0, 0, figureWidth, figureHeight); // if (seqCount 0 && isImmersiveLoaded) { immersiveContext.clearRect(0, 0, immersiveImageWidth, immersiveImageHeight); immersiveContext.drawImage(immersiveImages[frame], 0, 0, immersiveImageWidth, immersiveImageHeight); } }; activeFrame(); }, battery: function(){ if(battery.classList.contains('active')) return; var circle = battery.querySelector('.sc-mask-small'), circle2 = battery.querySelector('.sc-mask-big'), animated = null; var duration = 1500, startTime = null; var cancelAnimation = function(){ circle.style.cssText = 'background: conic-gradient(#fff 1%, rgba(255, 255, 255, 0) 0% 0%, #fff 0%)'; circle2.style.cssText = 'background: conic-gradient(#fff 1%, rgba(255, 255, 255, 0) 0% 0%, #fff 0%)'; window.cancelAnimationFrame(animated); } cancelAnimation(); var chargeMask1 = function(timestemp) { battery.classList.remove('sc-cue-end'); if(!startTime) startTime = timestemp; var per = (timestemp - startTime) / duration; var perShot = (timestemp - startTime) / duration * 1.3; cancelAnimation(); if(timestemp > startTime + duration + 50) { battery.classList.add(‘sc-cue-end’); circle.style.cssText = ‘background: conic-gradient(#fff 1%, rgba(255, 255, 255, 0) 0% 0%, #fff 0%)’; circle2.style.cssText = ‘background: conic-gradient(#fff 1%, rgba(255, 255, 255, 0) 0% 0%, #fff 0%)’; setTimeout(function(){ cancelAnimation(); },500); return; } var deg = 96 – 90*(1-per); // small circle.style.cssText = ‘background: conic-gradient(#fff 0%, rgba(255, 255, 255, 0) 4% ‘+deg+’%, #fff ‘+(deg+3)+’%)’; //big circle2.style.cssText = ‘background: conic-gradient(#fff 0%, rgba(255, 255, 255, 0) 4% ‘+deg+’%, #fff ‘+(deg+3)+’%)’; animated = window.requestAnimationFrame(chargeMask1); } animated = window.requestAnimationFrame(chargeMask1); } }; var bindSupClickEvent = function() { for (var i = 0; i < allSup.length; i++) { var disclaimers = allSup[i].innerHTML.split(','), supHtml = ''; for (var j = 0; j 0) { supHtml += ','; } supHtml += '‘ + disclaimers[j].replace(/s/g, ”) + ”; }; allSup[i].innerHTML = supHtml; } var supClicker = document.querySelectorAll(‘a.click_sup’); for (var i = 0; i 1) { commonParallax.init(); budsFeatureDesignParallax.init(); } else { commonParallax.destroy(); budsFeatureDesignParallax.destroy(); } }; var setImageSrc = function(article) { if (article.classList.contains(‘sc-buds__feature-immersive-v2’) && !isImmersiveLoading) { getSequenceImmersiveImages(); } else if (article.classList.contains(‘sc-buds__feature-audio’) && !isAudioLoading) { getSequenceAudioImages(); } else if (article.classList.contains(‘sc-buds__feature-kv’) && !isKvLoading) { getSequenceKvImages(); } else { var imgs = article.querySelectorAll(‘img’); for (var i = 0; i 2 ? 34 : 12); }; var onLoadHandler = function() { sizeMode = util.checkSizeMode(); util.winScrollTop(); util.winScrollBottom(); util.addClassOffsetElement(budsSection, ‘hide’, sideMenus); for (var i = 0; i -(trackHeight + window.innerHeight) && posFromTop 2) { util.pushBackGround(switching, switchingBg); } else { switchingBg.style.cssText = “”; } //bixby-chat util.addClassOffsetBottom(bixby, [‘sc-cue1’, ‘sc-cue2’], 0, ‘removeOnly’); util.addClassOffsetBottom(bixbyChat, ‘sc-fade-show’, 0.6); //life util.addClassOffsetBottom(life, ‘active’, (sizeMode > 2) ? 1 : 0.6); //battery util.activeAnimationFnc(battery, 0.15, animationFnc.battery); util.addClassOffsetBottom(battery, ‘sc-cue-end’, 0, ‘removeOnly’); util.addClassOffsetBottom(battery, ‘active’, 0.15); for (var i = 0; i -(trackHeight + window.innerHeight) && posFromTop -(trackHeight + (window.innerHeight * 2)) && posFromTop < (window.innerHeight * 2)) { setImageSrc(article); } } } if (___IS_GALAXY && window.scrollY 0) { for (var i = 0; i < subNavMenus.length; i++) { subNavMenus[i].classList.remove('on'); } subNavMenus[0].classList.add('on'); } window.GALAXY.header.resetSubNav(); } } }; var motion1Timeout = null; var actionTimeout = null; var motion1 = { init : function () { clearTimeout(motion1Timeout); motion1Timeout = setTimeout($.proxy(function() { this.setElements(); this.initOpts(); this.initLayout(); this.buildContents(); this.resizeFunc(); this.bindEvents(true); }, this), 1000); }, setElements : function () { this.obj = $('#intelligent-anc').closest('.sc-buds__section').find('.sc-buds__feature-mode.sc-buds-sticky-wrap'); this.mediaWrap = this.obj.find('.sc-article__media-wrap'); this.txtWrap = this.obj.find('.sc-article__text-wrap'); }, initOpts : function () { this.opts = { customEvent : '.Component' + (new Date()).getTime() + Math.random(), sizeAttr : { action : null }, resizeStart : null }; }, initLayout : function () { this.obj.css('height', 'auto'); }, buildContents : function () { util.def(this, { contents : { pc : { instance : null, destroy : $.proxy(function () { this.contents.pc.scrollmagic.destroy(); this.contents.pc.tweens.kill(); }, this), scrollmagic : { controller : null, opts : { triggerElement : this.obj.get(0), triggerHook : 0, duration : '70%', reverse : true, offset: (util.getNavigationHeight() * -1) }, destroy : $.proxy(function () { if (this.contents.pc.scrollmagic.controller == null) return; this.contents.pc.scrollmagic.controller.destroy(); this.obj.unwrap().css({ 'position' : '', 'margin' : '', 'inset' : '', 'box-sizing' : '', 'width' : '' }); this.contents.pc.scrollmagic.controller = null; }, this), build : $.proxy(function () { this.contents.pc.scrollmagic.controller = new ScrollMagic.Controller(); }, this) }, tweens : { instance : null, kill : $.proxy(function () { if (this.contents.pc.tweens.instance == null) return; this.contents.pc.tweens.instance.progress(1).kill(); this.obj.removeClass('show visible sc-mode--conversation sc-mode--ambient'); this.contents.pc.tweens.instance = null; }, this), build : $.proxy(function () { var step = new TimelineLite(); step.to(this.obj, 2, { onStart : $.proxy(function () { this.obj.addClass('show visible sc-mode--conversation'); }, this), immediateRender : false }); step.to(this.obj, 2, { onStart : $.proxy(function () { this.obj.removeClass('sc-mode--conversation'); this.obj.addClass('sc-mode--ambient'); }, this), onReverseComplete : $.proxy(function () { this.obj.removeClass('sc-mode--ambient'); this.obj.addClass('sc-mode--conversation'); }, this), immediateRender : false }); // scrollmagic this.contents.pc.scrollmagic.opts.offset = (util.getNavigationHeight() * -1); var scene = new ScrollMagic.Scene(this.contents.pc.scrollmagic.opts) .setPin(this.obj.get(0)) .setTween(step) .addTo(this.contents.pc.scrollmagic.controller); this.contents.pc.tweens.instance = step; }, this) }, build : $.proxy(function () { this.contents.pc.scrollmagic.build(); this.contents.pc.tweens.build(); }, this) }, mobile : { instance : null, destroy : $.proxy(function () { this.contents.mobile.scrollmagic.destroy(); this.contents.mobile.tweens.kill(); }, this), scrollmagic : { controller : null, opts : { triggerElement : this.obj.get(0), triggerHook : 0, duration : '100%', reverse : true, offset: (util.getNavigationHeight() * -1) }, destroy : $.proxy(function () { if (this.contents.mobile.scrollmagic.controller == null) return; this.txtWrap.unwrap(); this.contents.mobile.scrollmagic.controller.destroy(); this.obj.unwrap().css({ 'position' : '', 'margin' : '', 'inset' : '', 'box-sizing' : '', 'width' : '' }); this.contents.mobile.scrollmagic.controller = null; }, this), build : $.proxy(function () { this.txtWrap.wrapAll(']]>‘); this.txtSection = this.txtWrap.parent(); this.contents.mobile.scrollmagic.controller = new ScrollMagic.Controller(); }, this) }, tweens : { instance : null, kill : $.proxy(function () { if (this.contents.mobile.tweens.instance == null) return; this.contents.mobile.tweens.instance.progress(1).kill(); this.obj.removeClass(‘show visible sc-mode–conversation sc-mode–ambient’); this.contents.mobile.tweens.instance = null }, this), build : $.proxy(function () { var step = new TimelineLite(); step.fromTo(this.txtSection, 1, { marginTop : 0 }, { marginTop : -this.txtWrap.eq(0).outerHeight(true), onStart : $.proxy(function () { this.obj.addClass(‘show visible sc-mode–conversation’); }, this), onReverseComplete : $.proxy(function () { // this.obj.removeClass(‘sc-mode–conversation’); }, this), immediateRender : false }); step.to(this.txtSection, .1, { onStart : $.proxy(function () { this.obj.addClass(‘show visible sc-mode–conversation’); this.obj.removeClass(‘sc-mode–conversation’); this.obj.addClass(‘sc-mode–ambient’); }, this), onReverseComplete : $.proxy(function () { this.obj.removeClass(‘sc-mode–ambient’); this.obj.addClass(‘sc-mode–conversation’); }, this), immediateRender : false }); // scrollmagic this.contents.mobile.scrollmagic.opts.offset = (util.getNavigationHeight() * -1); var scene = new ScrollMagic.Scene(this.contents.mobile.scrollmagic.opts) .setPin(this.obj.get(0)) .setTween(step) .addTo(this.contents.mobile.scrollmagic.controller); this.contents.mobile.tweens.instance = step; }, this) }, build : $.proxy(function () { this.contents.mobile.scrollmagic.build(); this.contents.mobile.tweens.build(); }, this) } } }); }, changeEvents : function (event) { var events = [], eventNames = event.split(‘ ‘); for (var key in eventNames) { events.push(eventNames[key] + this.opts.customEvent); } return events.join(‘ ‘); }, bindEvents : function (type) { if (type) { $(window).on(this.changeEvents(‘resize orientationchange’), $.proxy(this.resizeFunc, this)); } else { $(window).off(this.changeEvents(‘resize orientationchange’)); } }, resizeFunc : function () { this.winWidth = util.winSize().w; if (this.opts.resizeStart == null) { this.opts.resizeStart = this.winWidth; this.resizeAnimateFunc(); } window.clearTimeout(this.resizeEndTime); this.resizeEndTime = window.setTimeout($.proxy(this.resizeEndFunc, this), 150); }, resizeEndFunc : function () { this.opts.resizeStart = null; this.setAction(); util.cancelAFrame.call(window, this.resizeRequestFrame); }, resizeAnimateFunc : function () { this.setAction(); this.resizeRequestFrame = util.requestAFrame.call(window, $.proxy(this.resizeAnimateFunc, this)); }, setAction : function () { clearTimeout(actionTimeout); actionTimeout = setTimeout($.proxy(function() { if (this.winWidth > breakPoint) { if (this.opts.sizeAttr.action !== ‘OTHER’) { this.opts.sizeAttr.action = ‘OTHER’; this.contents.mobile.destroy(); this.contents.pc.build(); } } else { if (this.opts.sizeAttr.action !== 1024) { this.opts.sizeAttr.action = 1024; this.contents.pc.destroy(); this.contents.mobile.build(); } } }, this), 500); } }; var motion2Timeout = null; var motion2 = { opts : { stateAttr : { init : false } }, init : function () { clearTimeout(motion2Timeout); motion2Timeout = setTimeout($.proxy(function() { this.opts.stateAttr.init = true; this.setElements(); this.initLayout(); this.buildScrollMagic(); this.buildTween(); }, this), 1000); }, setElements : function () { this.objWrap = $(‘#professional-sound .sc-buds__feature-immersive-v2’); this.obj = this.objWrap.find(‘.sc-buds-sticky-wrap’); this.noiseFreeSection = this.obj.find(‘.sc-img-noise-free’); this.seqImgSection = this.obj.find(‘.sc-seq-image’); this.txtWrap = this.obj.find(‘.sc-article__text-wrap’); this.seqWrap = this.obj.find(‘.sc-seq-wrap’); this.txt1 = this.txtWrap.find(‘.sc-article__eyebrow-wrap’); this.txt2 = this.txtWrap.find(‘.sc-article__headline-wrap’); this.txt3 = this.txtWrap.find(‘.sc-article__desc-wrap’); this.txt4 = this.txtWrap.find(‘.sc-article__disclaimer-wrap’); }, initLayout : function () { this.objWrap.addClass(‘show visible’); this.obj.removeClass(‘active sc-cue1-callout sc-cue2-textinner sc-text-enter–ready sc-text-enter sc-fade-show sc-cue3-callout2 sc-cue4-xray’); this.obj.css(‘height’, ‘auto’); this.txtWrap.addClass(‘sc-text-enter–out’); var checkProcess = null; var checkImageLoaded = function() { if (immersiveImages.length > 0 && immersiveImages[0].complete) { immersiveContext.drawImage(immersiveImages[0], 0, 0, immersiveImageWidth, immersiveImageHeight); cancelCheck(); } else { checkProcess = window.requestAnimationFrame(checkImageLoaded); } }; var cancelCheck = function() { window.cancelAnimationFrame(checkProcess); }; checkImageLoaded(); }, buildScrollMagic : function () { util.def(this, { scrollmagic : { controller : null, opts : { triggerElement : this.obj.get(0), triggerHook : 0, duration : ‘300%’, reverse : true, offset: (util.getNavigationHeight() * -1) }, destroy : $.proxy(function () { if (this.scrollmagic.controller == null) return; this.scrollmagic.controller.destroy(); this.obj.unwrap().css({ ‘position’ : ”, ‘margin’ : ”, ‘inset’ : ”, ‘box-sizing’ : ”, ‘width’ : ” }); this.scrollmagic.controller = null; }, this), build : $.proxy(function () { if (!!!this.txtWrapInner) { this.txtWrap.prepend(”); this.txtWrapInner = $(‘.js__sc-article__text-section’); this.txtWrapInner.append(this.txt1); this.txtWrapInner.append(this.txt2); this.txtWrapInner.append(this.txt3); this.txtWrapInner.append(this.txt4); this.txtSection = this.txtWrap.parent(); } this.scrollmagic.controller = new ScrollMagic.Controller(); }, this) } }); if (this.scrollmagic.controller == null) this.scrollmagic.build(); }, buildTween : function () { util.def(this, { tweens : { instance : null, kill : $.proxy(function () { if (this.tweens.instance == null) return; this.tweens.instance.progress(1).kill(); this.obj.removeClass(‘active sc-cue1-callout sc-cue2-textinner sc-text-enter–ready sc-text-enter sc-fade-show sc-cue3-callout2 sc-cue4-xray’); this.seqImgSection.removeClass(‘sc-show sc-hide’); this.tweens.instance = null; }, this), build : $.proxy(function () { var step = new TimelineLite(); var seqObj = this.obj; var seqObjWrap = this.objWrap; var seqWrap = this.seqWrap; var txtObj = this.txtWrap; var txtSection = this.txtSection; var currentCue = 1; var textInner = this.txtWrapInner; var cue1Anim = null; var cue4Anim = null; var cue1ReverseAnim = null; var cue4ReverseAnim = null; var maxY = txtObj.height() – textInner.outerHeight(); step.to(seqObj, 4, { onStart: function() { var seqNum = 0; seqObj.addClass(‘active’); var drawSequence = function() { if (isLowNet) { seqObj.removeClass(‘sc-cue4-xray’); animationFnc.immersive(1); TweenLite.fromTo(immersiveCanvas, 1, {opacity:0}, {opacity: 1}); seqObj.addClass(‘sc-cue1-callout’); } else { if (!seqObj.hasClass(‘active’)) seqObj.addClass(‘active’); seqObj.removeClass(‘sc-cue4-xray’); if (seqNum > immersiveImageCount) { cancelSequence(); if (currentCue == 1) seqObj.addClass(‘sc-cue1-callout’); } else { animationFnc.immersive(seqNum); cue1Anim = window.requestAnimationFrame(drawSequence); seqNum++; } } }; var cancelSequence = function() { window.cancelAnimationFrame(cue1Anim); }; drawSequence(); currentCue = 1; }, onUpdate: function() { currentCue = 1; if (!seqObj.hasClass(‘active’)) seqObj.addClass(‘active’); seqObj.removeClass(‘sc-cue4-xray’); }, onReverseComplete: function() { var seqNum = immersiveImageCount; seqObj.removeClass(‘sc-cue1-callout sc-cue3-callout2’); var drawSequence = function() { if (isLowNet) { animationFnc.immersive(0); TweenLite.fromTo(immersiveCanvas, 1, {opacity:0}, {opacity: 1}); seqObj.removeClass(‘active’); seqObj.removeClass(‘sc-cue4-xray’); } else { if (!seqObj.hasClass(‘active’)) seqObj.addClass(‘active’); if (seqNum immersiveImageCount) { cancelSequence(); if (currentCue == 3) seqObj.addClass(‘sc-cue3-callout2’); seqObj.removeClass(‘sc-cue2-textinner’); txtObj.removeClass(‘sc-text-enter–ready sc-text-enter sc-fade-show’); } else { animationFnc.immersive(seqNum); cue4ReverseAnim = window.requestAnimationFrame(drawSequence); seqNum++; } } }; var cancelSequence = function() { window.cancelAnimationFrame(cue4ReverseAnim); }; if (seqObj.hasClass(‘active’)) drawSequence(); window.cancelAnimationFrame(cue4Anim); currentCue = 4; }, immediateRender: false }); // scrollmagic var scene = new ScrollMagic.Scene(this.scrollmagic.opts) .setPin(this.obj.get(0)) .setTween(step) .addTo(this.scrollmagic.controller); this.tweens.instance = step; }, this) } }); if (this.tweens.instance == null) this.tweens.build(); }, destroy : function () { this.scrollmagic.destroy(); this.tweens.kill(); }, reInit : function() { if (!this.opts.stateAttr.init) return; this.destroy(); this.init(); } }; var motion3Timeout = null; var motion3 = { opts : { stateAttr : { init : false } }, init : function () { clearTimeout(motion3Timeout); motion3Timeout = setTimeout($.proxy(function() { this.opts.stateAttr.init = true; this.setElements(); this.initLayout(); this.buildScrollMagic(); this.buildTween(); }, this), 1000); }, setElements : function () { this.obj = $(‘#auto-switching .sc-buds-sticky-wrap’); this.mediaWrap = this.obj.find(‘.sc-article__media-wrap’); this.mediaWrapBg = this.mediaWrap.find(‘.sc-article__bg’); }, initLayout : function () { this.obj.css(‘height’, ‘auto’); }, buildScrollMagic : function () { util.def(this, { scrollmagic : { controller : null, opts : { triggerElement : this.obj.get(0), triggerHook : 0, duration : ‘100%’, reverse : true, offset: (util.getNavigationHeight() * -1) }, destroy : $.proxy(function () { if (this.scrollmagic.controller == null) return; this.scrollmagic.controller.destroy(); this.obj.unwrap().css({ ‘position’ : ”, ‘margin’ : ”, ‘inset’ : ”, ‘box-sizing’ : ”, ‘width’ : ” }); this.scrollmagic.controller = null; }, this), build : $.proxy(function () { this.scrollmagic.controller = new ScrollMagic.Controller(); }, this) } }); if (this.scrollmagic.controller == null) this.scrollmagic.build(); }, buildTween : function () { util.def(this, { tweens : { instance : null, kill : $.proxy(function () { if (this.tweens.instance == null) return; this.tweens.instance.progress(1).kill(); this.obj.removeClass(‘sc-cue1 sc-cue2 sc-cue3’); this.tweens.instance = null; }, this), build : $.proxy(function () { var step = new TimelineLite(); step.to(this.obj, 2, { onStart : $.proxy(function () { this.obj.addClass(‘sc-cue1’); }, this), onReverseComplete : $.proxy(function () { this.obj.removeClass(‘sc-cue1 sc-cue2 sc-cue3’); }, this), immediateRender : false }); step.to(this.obj, 2, { onStart : $.proxy(function () { this.obj.addClass(‘sc-cue2’); setTimeout($.proxy(function() { this.obj.addClass(‘sc-cue3’); }, this), 1000); }, this), onReverseComplete : $.proxy(function () { this.obj.removeClass(‘sc-cue2’); this.obj.removeClass(‘sc-cue3’); }, this), immediateRender : false }); // scrollmagic var scene = new ScrollMagic.Scene(this.scrollmagic.opts) .setPin(this.obj.get(0)) .setTween(step) .addTo(this.scrollmagic.controller); this.tweens.instance = step; }, this) } }); if (this.tweens.instance == null) this.tweens.build(); }, destroy : function () { this.scrollmagic.destroy(); this.tweens.kill(); }, reInit : function() { if (!this.opts.stateAttr.init) return; this.destroy(); this.init(); } }; var motion4Timeout = null; var motion4 = { opts : { stateAttr : { init : false } }, init : function () { clearTimeout(motion4Timeout); motion4Timeout = setTimeout($.proxy(function() { this.opts.stateAttr.init = true; this.setElements(); this.buildScrollMagic(); this.buildTween(); }, this), 1000); }, setElements : function () { this.parentObj = $(‘#bixby-voice-wake-up’); this.obj = this.parentObj.find(‘.sc-article__content’); }, buildScrollMagic : function () { util.def(this, { scrollmagic : { controller : null, opts : { triggerElement : this.obj.get(0), triggerHook : 0, duration : ‘50%’, reverse : true, offset: (util.getNavigationHeight() * -1) }, destroy : $.proxy(function () { if (this.scrollmagic.controller == null) return; this.scrollmagic.controller.destroy(); this.obj.unwrap().css({ ‘position’ : ”, ‘margin’ : ”, ‘inset’ : ”, ‘box-sizing’ : ”, ‘width’ : ” }); this.scrollmagic.controller = null; }, this), build : $.proxy(function () { this.scrollmagic.controller = new ScrollMagic.Controller(); }, this) } }); this.scrollmagic.build(); }, buildTween : function () { util.def(this, { tweens : { instance : null, kill : $.proxy(function () { if (this.tweens.instance == null) return; this.tweens.instance.progress(1).kill(); this.parentObj.removeClass(‘sc-cue1 sc-cue2’); this.tweens.instance = null; }, this), build : $.proxy(function () { var step = new TimelineLite(); step.to(this.obj, 2, { onStart : $.proxy(function () { this.parentObj.addClass(‘sc-cue1’); this.parentObj.removeClass(‘sc-cue2’); }, this), onComplete: $.proxy(function() { this.parentObj.removeClass(‘sc-cue1’); this.parentObj.addClass(‘sc-cue2’); }, this), immediateRender : false }); // scrollmagic var scene = new ScrollMagic.Scene(this.scrollmagic.opts) .setPin(this.obj.get(0)) .setTween(step) .addTo(this.scrollmagic.controller); this.tweens.instance = step; }, this) } }); this.tweens.build(); }, destroy : function () { this.scrollmagic.destroy(); this.tweens.kill(); }, reInit : function() { if (!this.opts.stateAttr.init) return; this.destroy(); this.init(); } }; var motion5Timeout = null; var motion5 = { opts : { customEvent : ‘.Component’ + (new Date()).getTime() + Math.random(), stateAttr : { init : false }, sizeAttr : { action : null }, resizeStart : null }, init : function () { clearTimeout(motion5Timeout); motion5Timeout = setTimeout($.proxy(function() { this.opts.stateAttr.init = true; this.setElements(); this.initLayout(); this.buildScrollMagic(); this.buildTween(); }, this), 1000); }, setElements : function () { this.obj = $(‘#budsDesign .sc-buds-sticky-wrap’); this.titWrap = this.obj.find(‘.sc-color-callout’); this.tits = this.titWrap.find(‘>li’); this.budsWrap = this.obj.find(‘.sc-color-rolling’); this.buds = this.budsWrap.find(‘.sc-buds’); }, initLayout : function () { if (this.cloneBuds != undefined) { this.cloneBuds.remove(); } this.obj.css(‘height’, ‘auto’); var buds1 = this.buds.eq(0).clone(); var buds2 = this.buds.eq(1).clone(); this.cloneBuds = buds1.add(buds2); this.budsWrap.append(this.cloneBuds); }, buildScrollMagic : function () { util.def(this, { scrollmagic : { controller : null, opts : { triggerElement : this.obj.get(0), triggerHook : 0, duration : ‘150%’, reverse : true, offset: sizeMode > 3 ? (util.getNavigationHeight() * -2) : (util.getNavigationHeight() * -1) }, destroy : $.proxy(function () { if (this.scrollmagic.controller == null) return; this.scrollmagic.controller.destroy(); this.obj.unwrap().css({ ‘position’ : ”, ‘margin’ : ”, ‘inset’ : ”, ‘box-sizing’ : ”, ‘width’ : ” }); this.scrollmagic.controller = null; }, this), build : $.proxy(function () { this.scrollmagic.controller = new ScrollMagic.Controller(); }, this) } }); this.scrollmagic.build(); }, buildTween : function () { util.def(this, { tweens : { instance : null, kill : $.proxy(function () { if (this.tweens.instance == null) return; this.tweens.instance.progress(1).kill(); this.obj.removeClass(‘sc-cue1 sc-cue2 sc-cue3 sc-cue4’); this.tits.eq(0).removeClass(‘sc-show sc-hide’); this.tits.eq(1).removeClass(‘sc-show sc-hide’); this.tits.eq(2).removeClass(‘sc-show sc-hide’); this.tweens.instance = null; }, this), build : $.proxy(function () { var step = new TimelineLite(); step.to(this.obj, .2, { onStart : $.proxy(function () { }, this), immediateRender : false }); step.to(this.obj, 1, { onStart : $.proxy(function () { this.obj.addClass(‘sc-cue1’); this.tits.eq(0).addClass(‘sc-show’); }, this), onReverseComplete : $.proxy(function () { this.obj.removeClass(‘sc-cue1’); this.tits.eq(0).removeClass(‘sc-show’); }, this), immediateRender : false }); step.to(this.obj, 1, { onStart : $.proxy(function () { this.obj.removeClass(‘sc-cue1’); this.obj.addClass(‘sc-cue2’); this.tits.eq(0).removeClass(‘sc-show’); this.tits.eq(1).addClass(‘sc-show’); }, this), onReverseComplete : $.proxy(function () { this.obj.removeClass(‘sc-cue2’); this.obj.addClass(‘sc-cue1’); this.tits.eq(1).removeClass(‘sc-show’); this.tits.eq(0).addClass(‘sc-show’); }, this), immediateRender : false }); step.to(this.obj, 1, { onStart : $.proxy(function () { this.obj.removeClass(‘sc-cue2’); this.obj.addClass(‘sc-cue3’); this.tits.eq(1).removeClass(‘sc-show’); this.tits.eq(2).addClass(‘sc-show’); }, this), // onComplete: $.proxy(function() { // this.obj.addClass(‘sc-cue4’); // }, this), onReverseComplete : $.proxy(function () { this.obj.removeClass(‘sc-cue3’); this.obj.addClass(‘sc-cue2’); this.tits.eq(2).removeClass(‘sc-show’); this.tits.eq(1).addClass(‘sc-show’); }, this), immediateRender : false }); step.to(this.obj, 0.01, { onStart : $.proxy(function () { this.obj.addClass(‘sc-cue4’); }, this), onReverseComplete : $.proxy(function () { this.obj.removeClass(‘sc-cue4’); }, this), immediateRender : false }); // scrollmagic var scene = new ScrollMagic.Scene(this.scrollmagic.opts) .setPin(this.obj.get(0)) .setTween(step) .addTo(this.scrollmagic.controller); this.tweens.instance = step; }, this) } }); this.tweens.build(); }, destroy : function () { this.scrollmagic.destroy(); this.tweens.kill(); }, reInit : function() { if (!this.opts.stateAttr.init) return; this.destroy(); this.init(); } }; var budsOverviewParallax = { opts : { customEvent : ‘.Component’ + (new Date()).getTime() + Math.random(), stateAttr : { init : false }, sizeAttr : { action : null }, resizeStart : null }, init : function () { this.opts.stateAttr.init = true; this.initLayout(); this.setElements(); this.buildParallax(); this.resizeFunc(); this.bindEvents(true); }, initLayout: function() { if (document.documentElement.querySelector(‘#sc-buds__overview’) == undefined) { $(‘#budsOverview’).wrapAll(”) }; }, setElements : function () { this.objParent = $(‘#sc-buds__overview’); this.obj = $(‘#budsOverview’); }, buildParallax : function () { util.def(this, { parallax : { instance : [], destroy : $.proxy(function () { for (var i = 0, max = this.parallax.instance.length; i 1) { if (this.opts.sizeAttr.action !== ‘OTHER’) { this.opts.sizeAttr.action = ‘OTHER’; this.parallax.build(); } } else { if (this.opts.sizeAttr.action !== 1024) { this.opts.sizeAttr.action = 1024; this.parallax.destroy(); } } }, destroy : function () { if (!this.opts.stateAttr.init) return; this.parallax.destroy(); } }; var budsFeatureDesignTimeout = null; var budsFeatureDesignParallax = { opts : { customEvent : ‘.Component’ + (new Date()).getTime() + Math.random(), stateAttr : { init : false }, sizeAttr : { action : null }, resizeStart : null }, init: function() { clearTimeout(budsFeatureDesignTimeout); budsFeatureDesignTimeout = setTimeout($.proxy(function() { this.opts.stateAttr.init = true; this.setElements(); this.buildParallax(); this.bindEvents(); }, this), 1000); }, setElements: function() { this.objParent = $(“#budsDesign”); this.obj = this.objParent.find(“.sc-buds__feature-design .sc-buds-sticky”); }, buildParallax: function() { util.def(this, { parallax : { instance : [], destroy : $.proxy(function () { if (this.parallax.instance.length breakPoint) { if (this.opts.sizeAttr.action !== ‘OTHER’) { this.opts.sizeAttr.action = ‘OTHER’; this.contents.build(); } } else { if (this.opts.sizeAttr.action !== 1024) { this.opts.sizeAttr.action = 1024; this.contents.destroy(); } } }, destroy: function() { if (!this.opts.stateAttr.init) return; if (this.parallax.instance.length

‘); }; }, setElements: function() { this.batteryMediaWrapParent = $(‘#sc-buds__battery’); this.batteryMediaWrap = $(‘.sc-buds__feature-battery’); }, buildParallax : function () { util.def(this, { parallax : { instance : [], destroy : $.proxy(function () { for (var i = 0, max = this.parallax.instance.length; i

Source

“https://www.samsung.com/it/audio-sound/galaxy-buds/galaxy-buds-pro-black-sm-r190nzkaeud/”

Pubblichiamo solo i migliori articoli della rete. Clicca qui per visitare il sito di provenienza. SITE: the best of the best ⭐⭐⭐⭐⭐
Clicca qui

La rete Adessonews è un aggregatore di news e replica gli articoli senza fini di lucro ma con finalità di critica, discussione od insegnamento, come previsto dall’art. 70 legge sul diritto d’autore e art. 41 della costituzione Italiana. Al termine di ciascun articolo è indicata la provenienza dell’articolo. Per richiedere la rimozione dell’articolo clicca qui

La rete Adessonews è un aggregatore di news e replica gli articoli senza fini di lucro ma con finalità di critica, discussione od insegnamento,

come previsto dall’art. 70 legge sul diritto d’autore e art. 41 della costituzione Italiana. Al termine di ciascun articolo è indicata la provenienza dell’articolo.

Per richiedere la rimozione dell’articolo clicca qui