doc/timeline-setter.min.html in timeline_setter-0.3.1 vs doc/timeline-setter.min.html in timeline_setter-0.3.2
- old
+ new
@@ -1 +1 @@
-<!DOCTYPE html> <html> <head> <title>timeline-setter.min.js</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="stylesheet" media="all" href="docco.css" /> </head> <body> <div id="container"> <div id="background"></div> <div id="jump_to"> Jump To … <div id="jump_wrapper"> <div id="jump_page"> <a class="source" href="templates.html"> templates.js </a> <a class="source" href="timeline-setter.html"> timeline-setter.js </a> <a class="source" href="timeline-setter.min.html"> timeline-setter.min.js </a> </div> </div> </div> <table cellpadding="0" cellspacing="0"> <thead> <tr> <th class="docs"> <h1> timeline-setter.min.js </h1> </th> <th class="code"> </th> </tr> </thead> <tbody> <tr id="section-1"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-1">¶</a> </div> </td> <td class="code"> <div class="highlight"><pre><span class="p">(</span><span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="p">,</span><span class="nx">i</span><span class="p">){</span><span class="kd">var</span> <span class="nx">m</span><span class="o">=</span><span class="nb">window</span><span class="p">.</span><span class="nx">TimelineSetter</span><span class="o">=</span><span class="p">(</span><span class="nb">window</span><span class="p">.</span><span class="nx">TimelineSetter</span><span class="o">||</span><span class="p">{});</span><span class="kd">var</span> <span class="nx">s</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="nx">E</span><span class="p">.</span><span class="nx">bind</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">I</span><span class="p">,</span><span class="nx">F</span><span class="p">){</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_callbacks</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">_callbacks</span><span class="o">||</span><span class="p">{});</span><span class="kd">var</span> <span class="nx">H</span><span class="o">=</span><span class="p">(</span><span class="nx">G</span><span class="p">[</span><span class="nx">I</span><span class="p">]</span><span class="o">=</span><span class="nx">G</span><span class="p">[</span><span class="nx">I</span><span class="p">]</span><span class="o">||</span><span class="p">[]);</span><span class="nx">H</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">F</span><span class="p">)};</span><span class="nx">E</span><span class="p">.</span><span class="nx">trigger</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">H</span><span class="p">){</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">_callbacks</span><span class="p">){</span><span class="k">return</span><span class="p">}</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">_callbacks</span><span class="p">[</span><span class="nx">H</span><span class="p">];</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="nx">G</span><span class="p">){</span><span class="k">return</span><span class="p">}</span><span class="k">for</span><span class="p">(</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="mi">0</span><span class="p">;</span><span class="nx">F</span><span class="o"><</span><span class="nx">G</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span><span class="nx">F</span><span class="o">++</span><span class="p">){</span><span class="nx">G</span><span class="p">[</span><span class="nx">F</span><span class="p">].</span><span class="nx">apply</span><span class="p">(</span><span class="k">this</span><span class="p">,</span><span class="nx">arguments</span><span class="p">)}}};</span><span class="kd">var</span> <span class="nx">B</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="nx">E</span><span class="p">.</span><span class="nx">move</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">G</span><span class="p">,</span><span class="nx">F</span><span class="p">){</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="nx">F</span><span class="p">.</span><span class="nx">deltaX</span><span class="p">){</span><span class="k">return</span><span class="p">}</span><span class="k">if</span><span class="p">(</span><span class="nx">_</span><span class="p">.</span><span class="nx">isUndefined</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">currOffset</span><span class="p">)){</span><span class="k">this</span><span class="p">.</span><span class="nx">currOffset</span><span class="o">=</span><span class="mi">0</span><span class="p">}</span><span class="k">this</span><span class="p">.</span><span class="nx">currOffset</span><span class="o">+=</span><span class="nx">F</span><span class="p">.</span><span class="nx">deltaX</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">css</span><span class="p">({</span><span class="nx">left</span><span class="o">:</span><span class="k">this</span><span class="p">.</span><span class="nx">currOffset</span><span class="p">})};</span><span class="nx">E</span><span class="p">.</span><span class="nx">zoom</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">G</span><span class="p">,</span><span class="nx">F</span><span class="p">){</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="nx">F</span><span class="p">.</span><span class="nx">width</span><span class="p">){</span><span class="k">return</span><span class="p">}</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">css</span><span class="p">({</span><span class="nx">width</span><span class="o">:</span><span class="nx">F</span><span class="p">.</span><span class="nx">width</span><span class="p">})}};</span><span class="kd">var</span> <span class="nx">c</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">,</span><span class="nx">E</span><span class="p">){</span><span class="nx">F</span><span class="p">.</span><span class="nx">$</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">G</span><span class="p">){</span><span class="k">return</span> <span class="nb">window</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="nx">G</span><span class="p">,</span><span class="nx">E</span><span class="p">)}};</span><span class="kd">var</span> <span class="nx">A</span><span class="o">=</span><span class="s2">"ontouchstart"</span> <span class="k">in</span> <span class="nb">document</span><span class="p">;</span><span class="k">if</span><span class="p">(</span><span class="nx">A</span><span class="p">){</span><span class="nx">e</span><span class="p">.</span><span class="nx">event</span><span class="p">.</span><span class="nx">props</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s2">"touches"</span><span class="p">)}</span><span class="kd">var</span> <span class="nx">d</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">I</span><span class="p">){</span><span class="kd">var</span> <span class="nx">G</span><span class="p">;</span><span class="kd">function</span> <span class="nx">E</span><span class="p">(</span><span class="nx">K</span><span class="p">){</span><span class="nx">K</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span><span class="nx">G</span><span class="o">=</span><span class="p">{</span><span class="nx">x</span><span class="o">:</span><span class="nx">K</span><span class="p">.</span><span class="nx">pageX</span><span class="p">};</span><span class="nx">K</span><span class="p">.</span><span class="nx">type</span><span class="o">=</span><span class="s2">"dragstart"</span><span class="p">;</span><span class="nx">I</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="nx">K</span><span class="p">)}</span><span class="kd">function</span> <span class="nx">F</span><span class="p">(</span><span class="nx">K</span><span class="p">){</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="nx">G</span><span class="p">){</span><span class="k">return</span><span class="p">}</span><span class="nx">K</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span><span class="nx">K</span><span class="p">.</span><span class="nx">type</span><span class="o">=</span><span class="s2">"dragging"</span><span class="p">;</span><span class="nx">K</span><span class="o">=</span><span class="nx">_</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">K</span><span class="p">,{</span><span class="nx">deltaX</span><span class="o">:</span><span class="p">(</span><span class="nx">K</span><span class="p">.</span><span class="nx">pageX</span><span class="o">||</span><span class="nx">K</span><span class="p">.</span><span class="nx">touches</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">pageX</span><span class="p">)</span><span class="o">-</span><span class="nx">G</span><span class="p">.</span><span class="nx">x</span><span class="p">});</span><span class="nx">G</span><span class="o">=</span><span class="p">{</span><span class="nx">x</span><span class="o">:</span><span class="p">(</span><span class="nx">K</span><span class="p">.</span><span class="nx">pageX</span><span class="o">||</span><span class="nx">K</span><span class="p">.</span><span class="nx">touches</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">pageX</span><span class="p">)};</span><span class="nx">I</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="nx">K</span><span class="p">)}</span><span class="kd">function</span> <span class="nx">J</span><span class="p">(</span><span class="nx">K</span><span class="p">){</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="nx">G</span><span class="p">){</span><span class="k">return</span><span class="p">}</span><span class="nx">G</span><span class="o">=</span><span class="kc">null</span><span class="p">;</span><span class="nx">K</span><span class="p">.</span><span class="nx">type</span><span class="o">=</span><span class="s2">"dragend"</span><span class="p">;</span><span class="nx">I</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="nx">K</span><span class="p">)}</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="nx">A</span><span class="p">){</span><span class="nx">I</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"mousedown"</span><span class="p">,</span><span class="nx">E</span><span class="p">);</span><span class="nx">e</span><span class="p">(</span><span class="nb">document</span><span class="p">).</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"mousemove"</span><span class="p">,</span><span class="nx">F</span><span class="p">);</span><span class="nx">e</span><span class="p">(</span><span class="nb">document</span><span class="p">).</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"mouseup"</span><span class="p">,</span><span class="nx">J</span><span class="p">)}</span><span class="k">else</span><span class="p">{</span><span class="kd">var</span> <span class="nx">H</span><span class="p">;</span><span class="nx">I</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"touchstart"</span><span class="p">,</span><span class="kd">function</span><span class="p">(</span><span class="nx">M</span><span class="p">){</span><span class="kd">var</span> <span class="nx">K</span><span class="o">=</span><span class="nb">Date</span><span class="p">.</span><span class="nx">now</span><span class="p">();</span><span class="kd">var</span> <span class="nx">N</span><span class="o">=</span><span class="nx">K</span><span class="o">-</span><span class="p">(</span><span class="nx">H</span><span class="o">||</span><span class="nx">K</span><span class="p">);</span><span class="kd">var</span> <span class="nx">L</span><span class="o">=</span><span class="nx">N</span><span class="o">></span><span class="mi">0</span><span class="o">&&</span><span class="nx">N</span><span class="o"><=</span><span class="mi">250</span><span class="o">?</span><span class="s2">"doubletap"</span><span class="o">:</span><span class="s2">"tap"</span><span class="p">;</span><span class="nx">G</span><span class="o">=</span><span class="p">{</span><span class="nx">x</span><span class="o">:</span><span class="nx">M</span><span class="p">.</span><span class="nx">touches</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">pageX</span><span class="p">};</span><span class="nx">H</span><span class="o">=</span><span class="nx">K</span><span class="p">;</span><span class="nx">I</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="nx">e</span><span class="p">.</span><span class="nx">Event</span><span class="p">(</span><span class="nx">L</span><span class="p">))});</span><span class="nx">I</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"touchmove"</span><span class="p">,</span><span class="nx">F</span><span class="p">);</span><span class="nx">I</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"touchend"</span><span class="p">,</span><span class="nx">J</span><span class="p">)}};</span><span class="kd">var</span> <span class="nx">o</span><span class="o">=</span><span class="sr">/WebKit\/533/</span><span class="p">.</span><span class="nx">test</span><span class="p">(</span><span class="nx">navigator</span><span class="p">.</span><span class="nx">userAgent</span><span class="p">);</span><span class="kd">var</span> <span class="nx">y</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">){</span><span class="kd">function</span> <span class="nx">E</span><span class="p">(</span><span class="nx">H</span><span class="p">){</span><span class="nx">H</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span><span class="kd">var</span> <span class="nx">I</span><span class="o">=</span><span class="p">(</span><span class="nx">H</span><span class="p">.</span><span class="nx">wheelDelta</span><span class="o">||-</span><span class="nx">H</span><span class="p">.</span><span class="nx">detail</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="nx">o</span><span class="p">){</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="nx">I</span><span class="o"><</span><span class="mi">0</span><span class="o">?-</span><span class="mi">1</span><span class="o">:</span><span class="mi">1</span><span class="p">;</span><span class="nx">I</span><span class="o">=</span><span class="nb">Math</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="nb">Math</span><span class="p">.</span><span class="nx">abs</span><span class="p">(</span><span class="nx">I</span><span class="p">))</span><span class="o">*</span><span class="nx">G</span><span class="o">*</span><span class="mi">2</span><span class="p">}</span><span class="nx">H</span><span class="p">.</span><span class="nx">type</span><span class="o">=</span><span class="s2">"scrolled"</span><span class="p">;</span><span class="nx">H</span><span class="p">.</span><span class="nx">deltaX</span><span class="o">=</span><span class="nx">I</span><span class="p">;</span><span class="nx">F</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="nx">H</span><span class="p">)}</span><span class="nx">F</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"mousewheel DOMMouseScroll"</span><span class="p">,</span><span class="nx">E</span><span class="p">)};</span><span class="kd">var</span> <span class="nx">w</span><span class="o">=</span><span class="kd">function</span><span class="p">(){</span><span class="k">this</span><span class="p">.</span><span class="nx">min</span><span class="o">=+</span><span class="kc">Infinity</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">max</span><span class="o">=-</span><span class="kc">Infinity</span><span class="p">};</span><span class="nx">w</span><span class="p">.</span><span class="nx">prototype</span><span class="p">.</span><span class="nx">extend</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">min</span><span class="o">=</span><span class="nb">Math</span><span class="p">.</span><span class="nx">min</span><span class="p">(</span><span class="nx">E</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">min</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">max</span><span class="o">=</span><span class="nb">Math</span><span class="p">.</span><span class="nx">max</span><span class="p">(</span><span class="nx">E</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">max</span><span class="p">)};</span><span class="nx">w</span><span class="p">.</span><span class="nx">prototype</span><span class="p">.</span><span class="nx">width</span><span class="o">=</span><span class="kd">function</span><span class="p">(){</span><span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">max</span><span class="o">-</span><span class="k">this</span><span class="p">.</span><span class="nx">min</span><span class="p">};</span><span class="nx">w</span><span class="p">.</span><span class="nx">prototype</span><span class="p">.</span><span class="nx">project</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">,</span><span class="nx">E</span><span class="p">){</span><span class="k">return</span><span class="p">(</span><span class="nx">F</span><span class="o">-</span><span class="k">this</span><span class="p">.</span><span class="nx">min</span><span class="p">)</span><span class="o">/</span><span class="k">this</span><span class="p">.</span><span class="nx">width</span><span class="p">()</span><span class="o">*</span><span class="nx">E</span><span class="p">};</span><span class="kd">var</span> <span class="nx">h</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">G</span><span class="p">,</span><span class="nx">E</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">max</span><span class="o">=</span><span class="nx">G</span><span class="p">.</span><span class="nx">max</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">min</span><span class="o">=</span><span class="nx">G</span><span class="p">.</span><span class="nx">min</span><span class="p">;</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="nx">E</span><span class="o">||!</span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVALS</span><span class="p">[</span><span class="nx">E</span><span class="p">]){</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">computeMaxInterval</span><span class="p">();</span><span class="k">this</span><span class="p">.</span><span class="nx">maxInterval</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVAL_ORDER</span><span class="p">[</span><span class="nx">F</span><span class="p">];</span><span class="k">this</span><span class="p">.</span><span class="nx">idx</span><span class="o">=</span><span class="nx">F</span><span class="p">}</span><span class="k">else</span><span class="p">{</span><span class="k">this</span><span class="p">.</span><span class="nx">maxInterval</span><span class="o">=</span><span class="nx">E</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">idx</span><span class="o">=</span><span class="nx">_</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVAL_ORDER</span><span class="p">,</span><span class="nx">E</span><span class="p">)}};</span><span class="nx">h</span><span class="p">.</span><span class="nx">dateFormats</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">H</span><span class="p">){</span><span class="kd">var</span> <span class="nx">J</span><span class="o">=</span><span class="k">new</span> <span class="nb">Date</span><span class="p">(</span><span class="nx">H</span><span class="p">);</span><span class="kd">var</span> <span class="nx">I</span><span class="o">=</span><span class="p">{};</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="p">[</span><span class="s2">"Jan."</span><span class="p">,</span><span class="s2">"Feb."</span><span class="p">,</span><span class="s2">"March"</span><span class="p">,</span><span class="s2">"April"</span><span class="p">,</span><span class="s2">"May"</span><span class="p">,</span><span class="s2">"June"</span><span class="p">,</span><span class="s2">"July"</span><span class="p">,</span><span class="s2">"Aug."</span><span class="p">,</span><span class="s2">"Sept."</span><span class="p">,</span><span class="s2">"Oct."</span><span class="p">,</span><span class="s2">"Nov."</span><span class="p">,</span><span class="s2">"Dec."</span><span class="p">];</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="nx">J</span><span class="p">.</span><span class="nx">getHours</span><span class="p">()</span><span class="o">></span><span class="mi">12</span><span class="p">;</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="nx">J</span><span class="p">.</span><span class="nx">getHours</span><span class="p">()</span><span class="o">>=</span><span class="mi">12</span><span class="p">;</span><span class="nx">I</span><span class="p">.</span><span class="nx">month</span><span class="o">=</span><span class="nx">F</span><span class="p">[</span><span class="nx">J</span><span class="p">.</span><span class="nx">getMonth</span><span class="p">()];</span><span class="nx">I</span><span class="p">.</span><span class="nx">year</span><span class="o">=</span><span class="nx">J</span><span class="p">.</span><span class="nx">getFullYear</span><span class="p">();</span><span class="nx">I</span><span class="p">.</span><span class="nx">date</span><span class="o">=</span><span class="nx">I</span><span class="p">.</span><span class="nx">month</span><span class="o">+</span><span class="s2">" "</span><span class="o">+</span><span class="nx">J</span><span class="p">.</span><span class="nx">getDate</span><span class="p">()</span><span class="o">+</span><span class="s2">", "</span><span class="o">+</span><span class="nx">I</span><span class="p">.</span><span class="nx">year</span><span class="p">;</span><span class="nx">I</span><span class="p">.</span><span class="nx">hourWithMinutes</span><span class="o">=</span><span class="p">(</span><span class="nx">G</span><span class="o">?</span><span class="nx">J</span><span class="p">.</span><span class="nx">getHours</span><span class="p">()</span><span class="o">-</span><span class="mi">12</span><span class="o">:</span><span class="p">(</span><span class="nx">J</span><span class="p">.</span><span class="nx">getHours</span><span class="p">()</span><span class="o">></span><span class="mi">0</span><span class="o">?</span><span class="nx">J</span><span class="p">.</span><span class="nx">getHours</span><span class="p">()</span><span class="o">:</span><span class="s2">"12"</span><span class="p">))</span><span class="o">+</span><span class="s2">":"</span><span class="o">+</span><span class="nx">z</span><span class="p">(</span><span class="nx">J</span><span class="p">.</span><span class="nx">getMinutes</span><span class="p">())</span><span class="o">+</span><span class="s2">" "</span><span class="o">+</span><span class="p">(</span><span class="nx">E</span><span class="o">?</span><span class="s2">"p.m."</span><span class="o">:</span><span class="s2">"a.m."</span><span class="p">);</span><span class="nx">I</span><span class="p">.</span><span class="nx">hourWithMinutesAndSeconds</span><span class="o">=</span><span class="nx">I</span><span class="p">.</span><span class="nx">hourWithMinutes</span><span class="o">+</span><span class="s2">":"</span><span class="o">+</span><span class="nx">z</span><span class="p">(</span><span class="nx">J</span><span class="p">.</span><span class="nx">getSeconds</span><span class="p">());</span><span class="k">return</span> <span class="nx">h</span><span class="p">.</span><span class="nx">formatter</span><span class="p">(</span><span class="nx">J</span><span class="p">,</span><span class="nx">I</span><span class="p">)</span><span class="o">||</span><span class="nx">I</span><span class="p">};</span><span class="nx">h</span><span class="p">.</span><span class="nx">dateStr</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">,</span><span class="nx">E</span><span class="p">){</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="k">new</span> <span class="nx">h</span><span class="p">.</span><span class="nx">dateFormats</span><span class="p">(</span><span class="nx">F</span><span class="p">);</span><span class="k">switch</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">case</span><span class="s2">"Decade"</span><span class="o">:</span><span class="k">return</span> <span class="nx">G</span><span class="p">.</span><span class="nx">year</span><span class="p">;</span><span class="k">case</span><span class="s2">"Lustrum"</span><span class="o">:</span><span class="k">return</span> <span class="nx">G</span><span class="p">.</span><span class="nx">year</span><span class="p">;</span><span class="k">case</span><span class="s2">"FullYear"</span><span class="o">:</span><span class="k">return</span> <span class="nx">G</span><span class="p">.</span><span class="nx">year</span><span class="p">;</span><span class="k">case</span><span class="s2">"Month"</span><span class="o">:</span><span class="k">return</span> <span class="nx">G</span><span class="p">.</span><span class="nx">month</span><span class="o">+</span><span class="s2">", "</span><span class="o">+</span><span class="nx">G</span><span class="p">.</span><span class="nx">year</span><span class="p">;</span><span class="k">case</span><span class="s2">"Week"</span><span class="o">:</span><span class="k">return</span> <span class="nx">G</span><span class="p">.</span><span class="nx">date</span><span class="p">;</span><span class="k">case</span><span class="s2">"Date"</span><span class="o">:</span><span class="k">return</span> <span class="nx">G</span><span class="p">.</span><span class="nx">date</span><span class="p">;</span><span class="k">case</span><span class="s2">"Hours"</span><span class="o">:</span><span class="k">return</span> <span class="nx">G</span><span class="p">.</span><span class="nx">hourWithMinutes</span><span class="p">;</span><span class="k">case</span><span class="s2">"Minutes"</span><span class="o">:</span><span class="k">return</span> <span class="nx">G</span><span class="p">.</span><span class="nx">hourWithMinutes</span><span class="p">;</span><span class="k">case</span><span class="s2">"Seconds"</span><span class="o">:</span><span class="k">return</span> <span class="nx">G</span><span class="p">.</span><span class="nx">hourWithMinutesAndSeconds</span><span class="p">}};</span><span class="nx">h</span><span class="p">.</span><span class="nx">prototype</span><span class="o">=</span><span class="p">{</span><span class="nx">INTERVALS</span><span class="o">:</span><span class="p">{</span><span class="nx">Decade</span><span class="o">:</span><span class="mi">315360000000</span><span class="p">,</span><span class="nx">Lustrum</span><span class="o">:</span><span class="mi">157680000000</span><span class="p">,</span><span class="nx">FullYear</span><span class="o">:</span><span class="mi">31536000000</span><span class="p">,</span><span class="nx">Month</span><span class="o">:</span><span class="mi">2592000000</span><span class="p">,</span><span class="nx">Week</span><span class="o">:</span><span class="mi">604800000</span><span class="p">,</span><span class="nb">Date</span><span class="o">:</span><span class="mi">86400000</span><span class="p">,</span><span class="nx">Hours</span><span class="o">:</span><span class="mi">3600000</span><span class="p">,</span><span class="nx">Minutes</span><span class="o">:</span><span class="mi">60000</span><span class="p">,</span><span class="nx">Seconds</span><span class="o">:</span><span class="mi">1000</span><span class="p">},</span><span class="nx">INTERVAL_ORDER</span><span class="o">:</span><span class="p">[</span><span class="s2">"Seconds"</span><span class="p">,</span><span class="s2">"Minutes"</span><span class="p">,</span><span class="s2">"Hours"</span><span class="p">,</span><span class="s2">"Date"</span><span class="p">,</span><span class="s2">"Week"</span><span class="p">,</span><span class="s2">"Month"</span><span class="p">,</span><span class="s2">"FullYear"</span><span class="p">,</span><span class="s2">"Lustrum"</span><span class="p">,</span><span class="s2">"Decade"</span><span class="p">],</span><span class="nx">isAtLeastA</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">return</span><span class="p">((</span><span class="k">this</span><span class="p">.</span><span class="nx">max</span><span class="o">-</span><span class="k">this</span><span class="p">.</span><span class="nx">min</span><span class="p">)</span><span class="o">></span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVALS</span><span class="p">[</span><span class="nx">E</span><span class="p">])},</span><span class="nx">computeMaxInterval</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="k">for</span><span class="p">(</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="mi">0</span><span class="p">;</span><span class="nx">E</span><span class="o"><</span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVAL_ORDER</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span><span class="nx">E</span><span class="o">++</span><span class="p">){</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">isAtLeastA</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVAL_ORDER</span><span class="p">[</span><span class="nx">E</span><span class="p">])){</span><span class="k">break</span><span class="p">}}</span><span class="k">return</span> <span class="nx">E</span><span class="o">-</span><span class="mi">1</span><span class="p">},</span><span class="nx">getMaxInterval</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">INTERVALS</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVAL_ORDER</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">idx</span><span class="p">]]},</span><span class="nx">getDecade</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">return</span><span class="p">(</span><span class="nx">E</span><span class="p">.</span><span class="nx">getFullYear</span><span class="p">()</span><span class="o">/</span><span class="mi">10</span><span class="o">|</span><span class="mi">0</span><span class="p">)</span><span class="o">*</span><span class="mi">10</span><span class="p">},</span><span class="nx">getLustrum</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">return</span><span class="p">(</span><span class="nx">E</span><span class="p">.</span><span class="nx">getFullYear</span><span class="p">()</span><span class="o">/</span><span class="mi">5</span><span class="o">|</span><span class="mi">0</span><span class="p">)</span><span class="o">*</span><span class="mi">5</span><span class="p">},</span><span class="nx">getWeekFloor</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="nx">thisDate</span><span class="o">=</span><span class="k">new</span> <span class="nb">Date</span><span class="p">(</span><span class="nx">E</span><span class="p">.</span><span class="nx">getFullYear</span><span class="p">(),</span><span class="nx">E</span><span class="p">.</span><span class="nx">getMonth</span><span class="p">(),</span><span class="nx">E</span><span class="p">.</span><span class="nx">getDate</span><span class="p">());</span><span class="nx">thisDate</span><span class="p">.</span><span class="nx">setDate</span><span class="p">(</span><span class="nx">E</span><span class="p">.</span><span class="nx">getDate</span><span class="p">()</span><span class="o">-</span><span class="nx">E</span><span class="p">.</span><span class="nx">getDay</span><span class="p">());</span><span class="k">return</span> <span class="nx">thisDate</span><span class="p">},</span><span class="nx">getWeekCeil</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="nx">thisDate</span><span class="o">=</span><span class="k">new</span> <span class="nb">Date</span><span class="p">(</span><span class="nx">E</span><span class="p">.</span><span class="nx">getFullYear</span><span class="p">(),</span><span class="nx">E</span><span class="p">.</span><span class="nx">getMonth</span><span class="p">(),</span><span class="nx">E</span><span class="p">.</span><span class="nx">getDate</span><span class="p">());</span><span class="nx">thisDate</span><span class="p">.</span><span class="nx">setDate</span><span class="p">(</span><span class="nx">thisDate</span><span class="p">.</span><span class="nx">getDate</span><span class="p">()</span><span class="o">+</span><span class="p">(</span><span class="mi">7</span><span class="o">-</span><span class="nx">E</span><span class="p">.</span><span class="nx">getDay</span><span class="p">()));</span><span class="k">return</span> <span class="nx">thisDate</span><span class="p">},</span><span class="nx">floor</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">G</span><span class="p">){</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="k">new</span> <span class="nb">Date</span><span class="p">(</span><span class="nx">G</span><span class="p">);</span><span class="kd">var</span> <span class="nx">H</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVAL_ORDER</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">idx</span><span class="p">];</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">idx</span><span class="o">></span><span class="nx">_</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVAL_ORDER</span><span class="p">,</span><span class="s2">"FullYear"</span><span class="p">)</span><span class="o">?</span><span class="nx">_</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVAL_ORDER</span><span class="p">,</span><span class="s2">"FullYear"</span><span class="p">)</span><span class="o">:</span><span class="nx">E</span><span class="p">;</span><span class="k">switch</span><span class="p">(</span><span class="nx">H</span><span class="p">){</span><span class="k">case</span><span class="s2">"Decade"</span><span class="o">:</span><span class="nx">F</span><span class="p">.</span><span class="nx">setFullYear</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">getDecade</span><span class="p">(</span><span class="nx">F</span><span class="p">));</span><span class="k">break</span><span class="p">;</span><span class="k">case</span><span class="s2">"Lustrum"</span><span class="o">:</span><span class="nx">F</span><span class="p">.</span><span class="nx">setFullYear</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">getLustrum</span><span class="p">(</span><span class="nx">F</span><span class="p">));</span><span class="k">break</span><span class="p">;</span><span class="k">case</span><span class="s2">"Week"</span><span class="o">:</span><span class="nx">F</span><span class="p">.</span><span class="nx">setDate</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">getWeekFloor</span><span class="p">(</span><span class="nx">F</span><span class="p">).</span><span class="nx">getDate</span><span class="p">());</span><span class="nx">E</span><span class="o">=</span><span class="nx">_</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVAL_ORDER</span><span class="p">,</span><span class="s2">"Week"</span><span class="p">)}</span><span class="k">while</span><span class="p">(</span><span class="nx">E</span><span class="o">--</span><span class="p">){</span><span class="nx">H</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVAL_ORDER</span><span class="p">[</span><span class="nx">E</span><span class="p">];</span><span class="k">if</span><span class="p">(</span><span class="nx">H</span><span class="o">!==</span><span class="s2">"Week"</span><span class="p">){</span><span class="nx">F</span><span class="p">[</span><span class="s2">"set"</span><span class="o">+</span><span class="nx">H</span><span class="p">](</span><span class="nx">H</span><span class="o">===</span><span class="s2">"Date"</span><span class="o">?</span><span class="mi">1</span><span class="o">:</span><span class="mi">0</span><span class="p">)}}</span><span class="k">return</span> <span class="nx">F</span><span class="p">.</span><span class="nx">getTime</span><span class="p">()},</span><span class="nx">ceil</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">){</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="k">new</span> <span class="nb">Date</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">floor</span><span class="p">(</span><span class="nx">F</span><span class="p">));</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVAL_ORDER</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">idx</span><span class="p">];</span><span class="k">switch</span><span class="p">(</span><span class="nx">G</span><span class="p">){</span><span class="k">case</span><span class="s2">"Decade"</span><span class="o">:</span><span class="nx">E</span><span class="p">.</span><span class="nx">setFullYear</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">getDecade</span><span class="p">(</span><span class="nx">E</span><span class="p">)</span><span class="o">+</span><span class="mi">10</span><span class="p">);</span><span class="k">break</span><span class="p">;</span><span class="k">case</span><span class="s2">"Lustrum"</span><span class="o">:</span><span class="nx">E</span><span class="p">.</span><span class="nx">setFullYear</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">getLustrum</span><span class="p">(</span><span class="nx">E</span><span class="p">)</span><span class="o">+</span><span class="mi">5</span><span class="p">);</span><span class="k">break</span><span class="p">;</span><span class="k">case</span><span class="s2">"Week"</span><span class="o">:</span><span class="nx">E</span><span class="p">.</span><span class="nx">setTime</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">getWeekCeil</span><span class="p">(</span><span class="nx">E</span><span class="p">).</span><span class="nx">getTime</span><span class="p">());</span><span class="k">break</span><span class="p">;</span><span class="k">default</span><span class="o">:</span><span class="nx">E</span><span class="p">[</span><span class="s2">"set"</span><span class="o">+</span><span class="nx">G</span><span class="p">](</span><span class="nx">E</span><span class="p">[</span><span class="s2">"get"</span><span class="o">+</span><span class="nx">G</span><span class="p">]()</span><span class="o">+</span><span class="mi">1</span><span class="p">)}</span><span class="k">return</span> <span class="nx">E</span><span class="p">.</span><span class="nx">getTime</span><span class="p">()},</span><span class="nx">span</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">ceil</span><span class="p">(</span><span class="nx">E</span><span class="p">)</span><span class="o">-</span><span class="k">this</span><span class="p">.</span><span class="nx">floor</span><span class="p">(</span><span class="nx">E</span><span class="p">)},</span><span class="nx">getRanges</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="k">if</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">intervals</span><span class="p">){</span><span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">intervals</span><span class="p">}</span><span class="k">this</span><span class="p">.</span><span class="nx">intervals</span><span class="o">=</span><span class="p">[];</span><span class="k">for</span><span class="p">(</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">floor</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">min</span><span class="p">);</span><span class="nx">E</span><span class="o"><=</span><span class="k">this</span><span class="p">.</span><span class="nx">ceil</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">max</span><span class="p">);</span><span class="nx">E</span><span class="o">+=</span><span class="k">this</span><span class="p">.</span><span class="nx">span</span><span class="p">(</span><span class="nx">E</span><span class="p">)){</span><span class="k">this</span><span class="p">.</span><span class="nx">intervals</span><span class="p">.</span><span class="nx">push</span><span class="p">({</span><span class="nx">human</span><span class="o">:</span><span class="nx">h</span><span class="p">.</span><span class="nx">dateStr</span><span class="p">(</span><span class="nx">E</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">maxInterval</span><span class="p">),</span><span class="nx">timestamp</span><span class="o">:</span><span class="nx">E</span><span class="p">})}</span><span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">intervals</span><span class="p">}};</span><span class="kd">var</span> <span class="nx">n</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">,</span><span class="nx">G</span><span class="p">){</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="nb">Array</span><span class="p">.</span><span class="nx">prototype</span><span class="p">.</span><span class="nx">slice</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="nx">arguments</span><span class="p">,</span><span class="mi">2</span><span class="p">);</span><span class="nx">_</span><span class="p">.</span><span class="nx">each</span><span class="p">(</span><span class="nx">F</span><span class="p">,</span><span class="kd">function</span><span class="p">(</span><span class="nx">H</span><span class="p">){</span><span class="nx">E</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="nx">H</span><span class="p">,</span><span class="kd">function</span><span class="p">(){</span><span class="nx">G</span><span class="p">[</span><span class="nx">H</span><span class="p">].</span><span class="nx">apply</span><span class="p">(</span><span class="nx">G</span><span class="p">,</span><span class="nx">arguments</span><span class="p">)})})};</span><span class="kd">var</span> <span class="nx">v</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">return</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">E</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/^[^+\-\d]?([+\-]?\d+)?.*$/</span><span class="p">,</span><span class="s2">"$1"</span><span class="p">),</span><span class="mi">10</span><span class="p">)};</span><span class="kd">var</span> <span class="nx">z</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">return</span><span class="p">(</span><span class="nx">E</span><span class="o"><</span><span class="mi">10</span><span class="o">?</span><span class="s2">"0"</span><span class="o">:</span><span class="s2">""</span><span class="p">)</span><span class="o">+</span><span class="nx">E</span><span class="p">};</span><span class="kd">var</span> <span class="nx">t</span><span class="o">=</span><span class="sr">/^#*/</span><span class="p">;</span><span class="kd">var</span> <span class="nx">r</span><span class="o">=</span><span class="p">{</span><span class="nx">get</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="k">return</span> <span class="nb">window</span><span class="p">.</span><span class="nx">location</span><span class="p">.</span><span class="nx">hash</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="nx">t</span><span class="p">,</span><span class="s2">""</span><span class="p">)},</span><span class="nx">set</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="nb">window</span><span class="p">.</span><span class="nx">location</span><span class="p">.</span><span class="nx">hash</span><span class="o">=</span><span class="nx">E</span><span class="p">}};</span><span class="kd">var</span> <span class="nx">x</span><span class="o">=</span><span class="mi">1</span><span class="p">;</span><span class="kd">var</span> <span class="nx">u</span><span class="o">=</span><span class="kd">function</span><span class="p">(){</span><span class="kd">var</span> <span class="nx">E</span><span class="p">;</span><span class="k">if</span><span class="p">(</span><span class="nx">x</span><span class="o"><</span><span class="mi">10</span><span class="p">){</span><span class="nx">E</span><span class="o">=</span><span class="nx">x</span><span class="p">;</span><span class="nx">x</span><span class="o">+=</span><span class="mi">1</span><span class="p">}</span><span class="k">else</span><span class="p">{</span><span class="nx">E</span><span class="o">=</span><span class="s2">"default"</span><span class="p">}</span><span class="k">return</span> <span class="nx">E</span><span class="p">};</span><span class="kd">var</span> <span class="nx">j</span><span class="o">=</span><span class="nx">m</span><span class="p">.</span><span class="nx">Timeline</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">,</span><span class="nx">E</span><span class="p">){</span><span class="nx">_</span><span class="p">.</span><span class="nx">bindAll</span><span class="p">(</span><span class="k">this</span><span class="p">,</span><span class="s2">"render"</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">data</span><span class="o">=</span><span class="nx">F</span><span class="p">.</span><span class="nx">sort</span><span class="p">(</span><span class="kd">function</span><span class="p">(</span><span class="nx">H</span><span class="p">,</span><span class="nx">G</span><span class="p">){</span><span class="k">return</span> <span class="nx">H</span><span class="p">.</span><span class="nx">timestamp</span><span class="o">-</span><span class="nx">G</span><span class="p">.</span><span class="nx">timestamp</span><span class="p">});</span><span class="k">this</span><span class="p">.</span><span class="nx">bySid</span><span class="o">=</span><span class="p">{};</span><span class="k">this</span><span class="p">.</span><span class="nx">cards</span><span class="o">=</span><span class="p">[];</span><span class="k">this</span><span class="p">.</span><span class="nx">series</span><span class="o">=</span><span class="p">[];</span><span class="k">this</span><span class="p">.</span><span class="nx">config</span><span class="o">=</span><span class="nx">E</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">config</span><span class="p">.</span><span class="nx">container</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">config</span><span class="p">.</span><span class="nx">container</span><span class="o">||</span><span class="s2">"#timeline"</span><span class="p">;</span><span class="nx">h</span><span class="p">.</span><span class="nx">formatter</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">config</span><span class="p">.</span><span class="nx">formatter</span><span class="o">||</span><span class="kd">function</span><span class="p">(</span><span class="nx">H</span><span class="p">,</span><span class="nx">G</span><span class="p">){</span><span class="k">return</span> <span class="nx">G</span><span class="p">}};</span><span class="nx">s</span><span class="p">(</span><span class="nx">j</span><span class="p">.</span><span class="nx">prototype</span><span class="p">);</span><span class="nx">j</span><span class="p">.</span><span class="nx">prototype</span><span class="o">=</span><span class="nx">_</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">j</span><span class="p">.</span><span class="nx">prototype</span><span class="p">,{</span><span class="nx">render</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="k">this</span><span class="p">;</span><span class="nx">c</span><span class="p">(</span><span class="k">this</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">config</span><span class="p">.</span><span class="nx">container</span><span class="p">);</span><span class="nx">e</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">config</span><span class="p">.</span><span class="nx">container</span><span class="p">).</span><span class="nx">html</span><span class="p">(</span><span class="nx">JST</span><span class="p">.</span><span class="nx">timeline</span><span class="p">());</span><span class="k">this</span><span class="p">.</span><span class="nx">bounds</span><span class="o">=</span><span class="k">new</span> <span class="nx">w</span><span class="p">();</span><span class="k">this</span><span class="p">.</span><span class="nx">bar</span><span class="o">=</span><span class="k">new</span> <span class="nx">b</span><span class="p">(</span><span class="k">this</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">cardCont</span><span class="o">=</span><span class="k">new</span> <span class="nx">q</span><span class="p">(</span><span class="k">this</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">createSeries</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">data</span><span class="p">);</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="k">new</span> <span class="nx">h</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">bounds</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">config</span><span class="p">.</span><span class="nx">interval</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">intervals</span><span class="o">=</span><span class="nx">E</span><span class="p">.</span><span class="nx">getRanges</span><span class="p">();</span><span class="k">this</span><span class="p">.</span><span class="nx">bounds</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">bounds</span><span class="p">.</span><span class="nx">min</span><span class="o">-</span><span class="nx">E</span><span class="p">.</span><span class="nx">getMaxInterval</span><span class="p">()</span><span class="o">/</span><span class="mi">2</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">bounds</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">bounds</span><span class="p">.</span><span class="nx">max</span><span class="o">+</span><span class="nx">E</span><span class="p">.</span><span class="nx">getMaxInterval</span><span class="p">()</span><span class="o">/</span><span class="mi">2</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">bar</span><span class="p">.</span><span class="nx">render</span><span class="p">();</span><span class="nx">n</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">bar</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">cardCont</span><span class="p">,</span><span class="s2">"move"</span><span class="p">,</span><span class="s2">"zoom"</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="s2">"render"</span><span class="p">);</span><span class="k">new</span> <span class="nx">f</span><span class="p">(</span><span class="s2">"in"</span><span class="p">,</span><span class="k">this</span><span class="p">);</span><span class="k">new</span> <span class="nx">f</span><span class="p">(</span><span class="s2">"out"</span><span class="p">,</span><span class="k">this</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">chooseNext</span><span class="o">=</span><span class="k">new</span> <span class="nx">C</span><span class="p">(</span><span class="s2">"next"</span><span class="p">,</span><span class="k">this</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">choosePrev</span><span class="o">=</span><span class="k">new</span> <span class="nx">C</span><span class="p">(</span><span class="s2">"prev"</span><span class="p">,</span><span class="k">this</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-card_active"</span><span class="p">).</span><span class="nx">is</span><span class="p">(</span><span class="s2">"*"</span><span class="p">)){</span><span class="k">this</span><span class="p">.</span><span class="nx">chooseNext</span><span class="p">.</span><span class="nx">click</span><span class="p">()}</span><span class="nx">e</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">config</span><span class="p">.</span><span class="nx">container</span><span class="p">).</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"click"</span><span class="p">,</span><span class="nx">_</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">setGlobalCurrentTimeline</span><span class="p">,</span><span class="k">this</span><span class="p">));</span><span class="k">this</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="s2">"load"</span><span class="p">)},</span><span class="nx">setGlobalCurrentTimeline</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="nx">m</span><span class="p">.</span><span class="nx">currentTimeline</span><span class="o">=</span><span class="k">this</span><span class="p">},</span><span class="nx">createSeries</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">){</span><span class="k">for</span><span class="p">(</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="mi">0</span><span class="p">;</span><span class="nx">E</span><span class="o"><</span><span class="nx">F</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span><span class="nx">E</span><span class="o">++</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">add</span><span class="p">(</span><span class="nx">F</span><span class="p">[</span><span class="nx">E</span><span class="p">])}},</span><span class="nx">add</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="nx">E</span><span class="p">.</span><span class="nx">series</span> <span class="k">in</span> <span class="k">this</span><span class="p">.</span><span class="nx">bySid</span><span class="p">)){</span><span class="k">this</span><span class="p">.</span><span class="nx">bySid</span><span class="p">[</span><span class="nx">E</span><span class="p">.</span><span class="nx">series</span><span class="p">]</span><span class="o">=</span><span class="k">new</span> <span class="nx">l</span><span class="p">(</span><span class="nx">E</span><span class="p">,</span><span class="k">this</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">series</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">bySid</span><span class="p">[</span><span class="nx">E</span><span class="p">.</span><span class="nx">series</span><span class="p">])}</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">bySid</span><span class="p">[</span><span class="nx">E</span><span class="p">.</span><span class="nx">series</span><span class="p">];</span><span class="nx">F</span><span class="p">.</span><span class="nx">add</span><span class="p">(</span><span class="nx">E</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">bounds</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">F</span><span class="p">.</span><span class="nx">max</span><span class="p">());</span><span class="k">this</span><span class="p">.</span><span class="nx">bounds</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">F</span><span class="p">.</span><span class="nx">min</span><span class="p">());</span><span class="k">this</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="s2">"cardAdd"</span><span class="p">,</span><span class="nx">E</span><span class="p">)}});</span><span class="kd">var</span> <span class="nx">b</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">){</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="k">this</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="o">=</span><span class="nx">F</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-notchbar"</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">css</span><span class="p">({</span><span class="nx">left</span><span class="o">:</span><span class="mi">0</span><span class="p">});</span><span class="nx">d</span><span class="p">(</span><span class="k">this</span><span class="p">);</span><span class="nx">y</span><span class="p">(</span><span class="k">this</span><span class="p">);</span><span class="nx">_</span><span class="p">.</span><span class="nx">bindAll</span><span class="p">(</span><span class="k">this</span><span class="p">,</span><span class="s2">"moving"</span><span class="p">,</span><span class="s2">"doZoom"</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"dragging scrolled"</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">moving</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"doZoom"</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">doZoom</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"dblclick doubletap"</span><span class="p">,</span><span class="kd">function</span><span class="p">(</span><span class="nx">G</span><span class="p">){</span><span class="nx">G</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span><span class="nx">E</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-zoom_in"</span><span class="p">).</span><span class="nx">click</span><span class="p">()})};</span><span class="nx">s</span><span class="p">(</span><span class="nx">b</span><span class="p">.</span><span class="nx">prototype</span><span class="p">);</span><span class="nx">B</span><span class="p">(</span><span class="nx">b</span><span class="p">.</span><span class="nx">prototype</span><span class="p">);</span><span class="nx">b</span><span class="p">.</span><span class="nx">prototype</span><span class="o">=</span><span class="nx">_</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">b</span><span class="p">.</span><span class="nx">prototype</span><span class="p">,{</span><span class="nx">moving</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">H</span><span class="p">){</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">parent</span><span class="p">();</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="nx">G</span><span class="p">.</span><span class="nx">offset</span><span class="p">().</span><span class="nx">left</span><span class="p">;</span><span class="kd">var</span> <span class="nx">I</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">offset</span><span class="p">().</span><span class="nx">left</span><span class="p">;</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">width</span><span class="p">();</span><span class="k">if</span><span class="p">(</span><span class="nx">_</span><span class="p">.</span><span class="nx">isUndefined</span><span class="p">(</span><span class="nx">H</span><span class="p">.</span><span class="nx">deltaX</span><span class="p">)){</span><span class="nx">H</span><span class="p">.</span><span class="nx">deltaX</span><span class="o">=</span><span class="mi">0</span><span class="p">}</span><span class="k">if</span><span class="p">(</span><span class="nx">I</span><span class="o">+</span><span class="nx">E</span><span class="o">+</span><span class="nx">H</span><span class="p">.</span><span class="nx">deltaX</span><span class="o"><</span><span class="nx">F</span><span class="o">+</span><span class="nx">G</span><span class="p">.</span><span class="nx">width</span><span class="p">()){</span><span class="nx">H</span><span class="p">.</span><span class="nx">deltaX</span><span class="o">=</span><span class="p">(</span><span class="nx">F</span><span class="o">+</span><span class="nx">G</span><span class="p">.</span><span class="nx">width</span><span class="p">())</span><span class="o">-</span><span class="p">(</span><span class="nx">I</span><span class="o">+</span><span class="nx">E</span><span class="p">)}</span><span class="k">if</span><span class="p">(</span><span class="nx">I</span><span class="o">+</span><span class="nx">H</span><span class="p">.</span><span class="nx">deltaX</span><span class="o">></span><span class="nx">F</span><span class="p">){</span><span class="nx">H</span><span class="p">.</span><span class="nx">deltaX</span><span class="o">=</span><span class="nx">F</span><span class="o">-</span><span class="nx">I</span><span class="p">}</span><span class="k">this</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="s2">"move"</span><span class="p">,</span><span class="nx">H</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="s2">"move"</span><span class="p">,</span><span class="nx">H</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">move</span><span class="p">(</span><span class="s2">"move"</span><span class="p">,</span><span class="nx">H</span><span class="p">)},</span><span class="nx">doZoom</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">J</span><span class="p">,</span><span class="nx">F</span><span class="p">){</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="k">this</span><span class="p">;</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-notch_active"</span><span class="p">);</span><span class="kd">var</span> <span class="nx">I</span><span class="o">=</span><span class="kd">function</span><span class="p">(){</span><span class="k">return</span> <span class="nx">E</span><span class="p">.</span><span class="nx">length</span><span class="o">></span><span class="mi">0</span><span class="o">?</span><span class="nx">E</span><span class="p">.</span><span class="nx">position</span><span class="p">().</span><span class="nx">left</span><span class="o">:</span><span class="mi">0</span><span class="p">};</span><span class="kd">var</span> <span class="nx">H</span><span class="o">=</span><span class="nx">I</span><span class="p">();</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">animate</span><span class="p">({</span><span class="nx">width</span><span class="o">:</span><span class="nx">F</span><span class="o">+</span><span class="s2">"%"</span><span class="p">},{</span><span class="nx">step</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">M</span><span class="p">,</span><span class="nx">K</span><span class="p">){</span><span class="kd">var</span> <span class="nx">L</span><span class="o">=</span><span class="nx">e</span><span class="p">.</span><span class="nx">Event</span><span class="p">(</span><span class="s2">"dragging"</span><span class="p">);</span><span class="kd">var</span> <span class="nx">N</span><span class="o">=</span><span class="nx">H</span><span class="o">-</span><span class="nx">I</span><span class="p">();</span><span class="nx">L</span><span class="p">.</span><span class="nx">deltaX</span><span class="o">=</span><span class="nx">N</span><span class="p">;</span><span class="nx">G</span><span class="p">.</span><span class="nx">moving</span><span class="p">(</span><span class="nx">L</span><span class="p">);</span><span class="nx">H</span><span class="o">=</span><span class="nx">I</span><span class="p">();</span><span class="nx">L</span><span class="o">=</span><span class="nx">e</span><span class="p">.</span><span class="nx">Event</span><span class="p">(</span><span class="s2">"zoom"</span><span class="p">);</span><span class="nx">L</span><span class="p">.</span><span class="nx">width</span><span class="o">=</span><span class="nx">M</span><span class="o">+</span><span class="s2">"%"</span><span class="p">;</span><span class="nx">G</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="s2">"zoom"</span><span class="p">,</span><span class="nx">L</span><span class="p">)}})},</span><span class="nx">render</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">intervals</span><span class="p">;</span><span class="kd">var</span> <span class="nx">H</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">bounds</span><span class="p">;</span><span class="k">for</span><span class="p">(</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="mi">0</span><span class="p">;</span><span class="nx">F</span><span class="o"><</span><span class="nx">G</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span><span class="nx">F</span><span class="o">++</span><span class="p">){</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="nx">JST</span><span class="p">.</span><span class="nx">year_notch</span><span class="p">({</span><span class="nx">timestamp</span><span class="o">:</span><span class="nx">G</span><span class="p">[</span><span class="nx">F</span><span class="p">].</span><span class="nx">timestamp</span><span class="p">,</span><span class="nx">human</span><span class="o">:</span><span class="nx">G</span><span class="p">[</span><span class="nx">F</span><span class="p">].</span><span class="nx">human</span><span class="p">});</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">append</span><span class="p">(</span><span class="nx">e</span><span class="p">(</span><span class="nx">E</span><span class="p">).</span><span class="nx">css</span><span class="p">(</span><span class="s2">"left"</span><span class="p">,</span><span class="nx">H</span><span class="p">.</span><span class="nx">project</span><span class="p">(</span><span class="nx">G</span><span class="p">[</span><span class="nx">F</span><span class="p">].</span><span class="nx">timestamp</span><span class="p">,</span><span class="mi">100</span><span class="p">)</span><span class="o">+</span><span class="s2">"%"</span><span class="p">))}}});</span><span class="kd">var</span> <span class="nx">q</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="o">=</span><span class="nx">E</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-card_scroller_inner"</span><span class="p">)};</span><span class="nx">s</span><span class="p">(</span><span class="nx">q</span><span class="p">.</span><span class="nx">prototype</span><span class="p">);</span><span class="nx">B</span><span class="p">(</span><span class="nx">q</span><span class="p">.</span><span class="nx">prototype</span><span class="p">);</span><span class="kd">var</span> <span class="nx">l</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">,</span><span class="nx">F</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="o">=</span><span class="nx">F</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">name</span><span class="o">=</span><span class="nx">E</span><span class="p">.</span><span class="nx">series</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">color</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">name</span><span class="p">.</span><span class="nx">length</span><span class="o">></span><span class="mi">0</span><span class="o">?</span><span class="nx">u</span><span class="p">()</span><span class="o">:</span><span class="s2">"default"</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">cards</span><span class="o">=</span><span class="p">[];</span><span class="nx">_</span><span class="p">.</span><span class="nx">bindAll</span><span class="p">(</span><span class="k">this</span><span class="p">,</span><span class="s2">"render"</span><span class="p">,</span><span class="s2">"showNotches"</span><span class="p">,</span><span class="s2">"hideNotches"</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"render"</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">render</span><span class="p">)};</span><span class="nx">s</span><span class="p">(</span><span class="nx">l</span><span class="p">.</span><span class="nx">prototype</span><span class="p">);</span><span class="nx">l</span><span class="p">.</span><span class="nx">prototype</span><span class="o">=</span><span class="nx">_</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">l</span><span class="p">.</span><span class="nx">prototype</span><span class="p">,{</span><span class="nx">add</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="k">new</span> <span class="nx">k</span><span class="p">(</span><span class="nx">E</span><span class="p">,</span><span class="k">this</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">cards</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">F</span><span class="p">)},</span><span class="nx">_comparator</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">return</span> <span class="nx">E</span><span class="p">.</span><span class="nx">timestamp</span><span class="p">},</span><span class="nx">hideNotches</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="nx">E</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="s2">"TS-series_legend_item_inactive"</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="s2">"hideNotch"</span><span class="p">)},</span><span class="nx">showNotches</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="nx">E</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="s2">"TS-series_legend_item_inactive"</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="s2">"showNotch"</span><span class="p">)},</span><span class="nx">render</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">if</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">name</span><span class="p">.</span><span class="nx">length</span><span class="o">===</span><span class="mi">0</span><span class="p">){</span><span class="k">return</span><span class="p">}</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="o">=</span><span class="nx">e</span><span class="p">(</span><span class="nx">JST</span><span class="p">.</span><span class="nx">series_legend</span><span class="p">(</span><span class="k">this</span><span class="p">));</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-series_nav_container"</span><span class="p">).</span><span class="nx">append</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">toggle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">hideNotches</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">showNotches</span><span class="p">)}});</span><span class="nx">_</span><span class="p">([</span><span class="s2">"min"</span><span class="p">,</span><span class="s2">"max"</span><span class="p">]).</span><span class="nx">each</span><span class="p">(</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="nx">l</span><span class="p">.</span><span class="nx">prototype</span><span class="p">[</span><span class="nx">E</span><span class="p">]</span><span class="o">=</span><span class="kd">function</span><span class="p">(){</span><span class="k">return</span> <span class="nx">_</span><span class="p">[</span><span class="nx">E</span><span class="p">].</span><span class="nx">call</span><span class="p">(</span><span class="nx">_</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">cards</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">_comparator</span><span class="p">).</span><span class="nx">get</span><span class="p">(</span><span class="s2">"timestamp"</span><span class="p">)}});</span><span class="kd">var</span> <span class="nx">k</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">,</span><span class="nx">F</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">series</span><span class="o">=</span><span class="nx">F</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">series</span><span class="p">.</span><span class="nx">timeline</span><span class="p">;</span><span class="nx">E</span><span class="o">=</span><span class="nx">_</span><span class="p">.</span><span class="nx">clone</span><span class="p">(</span><span class="nx">E</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">timestamp</span><span class="o">=</span><span class="nx">E</span><span class="p">.</span><span class="nx">timestamp</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">attributes</span><span class="o">=</span><span class="nx">E</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">attributes</span><span class="p">.</span><span class="nx">topcolor</span><span class="o">=</span><span class="nx">F</span><span class="p">.</span><span class="nx">color</span><span class="p">;</span><span class="nx">_</span><span class="p">.</span><span class="nx">bindAll</span><span class="p">(</span><span class="k">this</span><span class="p">,</span><span class="s2">"render"</span><span class="p">,</span><span class="s2">"activate"</span><span class="p">,</span><span class="s2">"flip"</span><span class="p">,</span><span class="s2">"setPermalink"</span><span class="p">,</span><span class="s2">"toggleNotch"</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">series</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"hideNotch"</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">toggleNotch</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">series</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"showNotch"</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">toggleNotch</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"render"</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">render</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">bar</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"flip"</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">flip</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">id</span><span class="o">=</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">"timestamp"</span><span class="p">),</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">"description"</span><span class="p">).</span><span class="nx">split</span><span class="p">(</span><span class="sr">/ /</span><span class="p">)[</span><span class="mi">0</span><span class="p">].</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/[^a-zA-Z\-]/g</span><span class="p">,</span><span class="s2">""</span><span class="p">)].</span><span class="nx">join</span><span class="p">(</span><span class="s2">"-"</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">cards</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="k">this</span><span class="p">)};</span><span class="nx">k</span><span class="p">.</span><span class="nx">prototype</span><span class="o">=</span><span class="nx">_</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">k</span><span class="p">.</span><span class="nx">prototype</span><span class="p">,{</span><span class="nx">get</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">attributes</span><span class="p">[</span><span class="nx">E</span><span class="p">]},</span><span class="nx">render</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="k">this</span><span class="p">.</span><span class="nx">offset</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">bounds</span><span class="p">.</span><span class="nx">project</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">timestamp</span><span class="p">,</span><span class="mi">100</span><span class="p">);</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="nx">JST</span><span class="p">.</span><span class="nx">notch</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">attributes</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">notch</span><span class="o">=</span><span class="nx">e</span><span class="p">(</span><span class="nx">E</span><span class="p">).</span><span class="nx">css</span><span class="p">({</span><span class="nx">left</span><span class="o">:</span><span class="k">this</span><span class="p">.</span><span class="nx">offset</span><span class="o">+</span><span class="s2">"%"</span><span class="p">});</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-notchbar"</span><span class="p">).</span><span class="nx">append</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">notch</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">notch</span><span class="p">.</span><span class="nx">click</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">activate</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="nx">r</span><span class="p">.</span><span class="nx">get</span><span class="p">()</span><span class="o">===</span><span class="k">this</span><span class="p">.</span><span class="nx">id</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">activate</span><span class="p">()}},</span><span class="nx">flip</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="o">||!</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">is</span><span class="p">(</span><span class="s2">":visible"</span><span class="p">)){</span><span class="k">return</span><span class="p">}</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item"</span><span class="p">).</span><span class="nx">offset</span><span class="p">().</span><span class="nx">left</span><span class="o">+</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item"</span><span class="p">).</span><span class="nx">width</span><span class="p">();</span><span class="kd">var</span> <span class="nx">I</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".timeline_setter"</span><span class="p">).</span><span class="nx">offset</span><span class="p">().</span><span class="nx">left</span><span class="o">+</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".timeline_setter"</span><span class="p">).</span><span class="nx">width</span><span class="p">();</span><span class="kd">var</span> <span class="nx">H</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">css</span><span class="p">(</span><span class="s2">"margin-left"</span><span class="p">)</span><span class="o">===</span><span class="k">this</span><span class="p">.</span><span class="nx">originalMargin</span><span class="p">;</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item"</span><span class="p">).</span><span class="nx">width</span><span class="p">()</span><span class="o"><</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".timeline_setter"</span><span class="p">).</span><span class="nx">width</span><span class="p">()</span><span class="o">/</span><span class="mi">2</span><span class="p">;</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">position</span><span class="p">().</span><span class="nx">left</span><span class="o">-</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item"</span><span class="p">).</span><span class="nx">width</span><span class="p">()</span><span class="o"><</span><span class="mi">0</span><span class="p">;</span><span class="k">if</span><span class="p">(</span><span class="nx">I</span><span class="o">-</span><span class="nx">E</span><span class="o"><</span><span class="mi">0</span><span class="o">&&</span><span class="nx">H</span><span class="o">&&!</span><span class="nx">F</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">css</span><span class="p">({</span><span class="s2">"margin-left"</span><span class="o">:-</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item"</span><span class="p">).</span><span class="nx">width</span><span class="p">()</span><span class="o">+</span><span class="mi">7</span><span class="p">)});</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-css_arrow"</span><span class="p">).</span><span class="nx">css</span><span class="p">({</span><span class="nx">left</span><span class="o">:</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item"</span><span class="p">).</span><span class="nx">width</span><span class="p">()})}</span><span class="k">else</span><span class="p">{</span><span class="k">if</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">offset</span><span class="p">().</span><span class="nx">left</span><span class="o">-</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".timeline_setter"</span><span class="p">).</span><span class="nx">offset</span><span class="p">().</span><span class="nx">left</span><span class="o"><</span><span class="mi">0</span><span class="o">&&!</span><span class="nx">H</span><span class="o">&&</span><span class="nx">G</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">css</span><span class="p">({</span><span class="s2">"margin-left"</span><span class="o">:</span><span class="k">this</span><span class="p">.</span><span class="nx">originalMargin</span><span class="p">});</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-css_arrow"</span><span class="p">).</span><span class="nx">css</span><span class="p">({</span><span class="nx">left</span><span class="o">:</span><span class="mi">0</span><span class="p">})}}},</span><span class="nx">activate</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">){</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="k">this</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">hideActiveCard</span><span class="p">();</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="o">=</span><span class="nx">e</span><span class="p">(</span><span class="nx">JST</span><span class="p">.</span><span class="nx">card</span><span class="p">({</span><span class="nx">card</span><span class="o">:</span><span class="k">this</span><span class="p">}));</span><span class="nx">c</span><span class="p">(</span><span class="k">this</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">css</span><span class="p">({</span><span class="nx">left</span><span class="o">:</span><span class="k">this</span><span class="p">.</span><span class="nx">offset</span><span class="o">+</span><span class="s2">"%"</span><span class="p">});</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-card_scroller_inner"</span><span class="p">).</span><span class="nx">append</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">originalMargin</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">css</span><span class="p">(</span><span class="s2">"margin-left"</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">delegate</span><span class="p">(</span><span class="s2">".TS-permalink"</span><span class="p">,</span><span class="s2">"click"</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">setPermalink</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">"img"</span><span class="p">).</span><span class="nx">load</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">activate</span><span class="p">)}</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">show</span><span class="p">().</span><span class="nx">addClass</span><span class="p">((</span><span class="s2">"TS-card_active"</span><span class="p">));</span><span class="k">this</span><span class="p">.</span><span class="nx">notch</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="s2">"TS-notch_active"</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">setWidth</span><span class="p">();</span><span class="k">this</span><span class="p">.</span><span class="nx">flip</span><span class="p">();</span><span class="k">this</span><span class="p">.</span><span class="nx">move</span><span class="p">();</span><span class="k">this</span><span class="p">.</span><span class="nx">series</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="s2">"cardActivate"</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">attributes</span><span class="p">)},</span><span class="nx">setWidth</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="k">this</span><span class="p">;</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="nx">_</span><span class="p">.</span><span class="nx">max</span><span class="p">(</span><span class="nx">_</span><span class="p">.</span><span class="nx">toArray</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item_user_html"</span><span class="p">).</span><span class="nx">children</span><span class="p">()),</span><span class="kd">function</span><span class="p">(</span><span class="nx">G</span><span class="p">){</span><span class="k">return</span> <span class="nx">F</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="nx">G</span><span class="p">).</span><span class="nx">width</span><span class="p">()});</span><span class="k">if</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="nx">E</span><span class="p">).</span><span class="nx">width</span><span class="p">()</span><span class="o">></span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item_year"</span><span class="p">).</span><span class="nx">width</span><span class="p">()){</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item_label"</span><span class="p">).</span><span class="nx">css</span><span class="p">(</span><span class="s2">"width"</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="nx">E</span><span class="p">).</span><span class="nx">width</span><span class="p">())}</span><span class="k">else</span><span class="p">{</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item_label"</span><span class="p">).</span><span class="nx">css</span><span class="p">(</span><span class="s2">"width"</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item_year"</span><span class="p">).</span><span class="nx">width</span><span class="p">())}},</span><span class="nx">move</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="nx">e</span><span class="p">.</span><span class="nx">Event</span><span class="p">(</span><span class="s2">"moving"</span><span class="p">);</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item"</span><span class="p">).</span><span class="nx">offset</span><span class="p">();</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".timeline_setter"</span><span class="p">).</span><span class="nx">offset</span><span class="p">();</span><span class="k">if</span><span class="p">(</span><span class="nx">G</span><span class="p">.</span><span class="nx">left</span><span class="o"><</span><span class="nx">E</span><span class="p">.</span><span class="nx">left</span><span class="p">){</span><span class="nx">F</span><span class="p">.</span><span class="nx">deltaX</span><span class="o">=</span><span class="nx">E</span><span class="p">.</span><span class="nx">left</span><span class="o">-</span><span class="nx">G</span><span class="p">.</span><span class="nx">left</span><span class="o">+</span><span class="nx">v</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item"</span><span class="p">).</span><span class="nx">css</span><span class="p">(</span><span class="s2">"padding-left"</span><span class="p">));</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">bar</span><span class="p">.</span><span class="nx">moving</span><span class="p">(</span><span class="nx">F</span><span class="p">)}</span><span class="k">else</span><span class="p">{</span><span class="k">if</span><span class="p">(</span><span class="nx">G</span><span class="p">.</span><span class="nx">left</span><span class="o">+</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item"</span><span class="p">).</span><span class="nx">outerWidth</span><span class="p">()</span><span class="o">></span><span class="nx">E</span><span class="p">.</span><span class="nx">left</span><span class="o">+</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".timeline_setter"</span><span class="p">).</span><span class="nx">width</span><span class="p">()){</span><span class="nx">F</span><span class="p">.</span><span class="nx">deltaX</span><span class="o">=</span><span class="nx">E</span><span class="p">.</span><span class="nx">left</span><span class="o">+</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".timeline_setter"</span><span class="p">).</span><span class="nx">width</span><span class="p">()</span><span class="o">-</span><span class="p">(</span><span class="nx">G</span><span class="p">.</span><span class="nx">left</span><span class="o">+</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item"</span><span class="p">).</span><span class="nx">outerWidth</span><span class="p">());</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">bar</span><span class="p">.</span><span class="nx">moving</span><span class="p">(</span><span class="nx">F</span><span class="p">)}}},</span><span class="nx">setPermalink</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="nx">r</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">id</span><span class="p">)},</span><span class="nx">hideActiveCard</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-card_active"</span><span class="p">).</span><span class="nx">removeClass</span><span class="p">(</span><span class="s2">"TS-card_active"</span><span class="p">).</span><span class="nx">hide</span><span class="p">();</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-notch_active"</span><span class="p">).</span><span class="nx">removeClass</span><span class="p">(</span><span class="s2">"TS-notch_active"</span><span class="p">)},</span><span class="nx">toggleNotch</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">switch</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">case</span><span class="s2">"hideNotch"</span><span class="o">:</span><span class="k">this</span><span class="p">.</span><span class="nx">notch</span><span class="p">.</span><span class="nx">hide</span><span class="p">().</span><span class="nx">removeClass</span><span class="p">(</span><span class="s2">"TS-notch_active"</span><span class="p">).</span><span class="nx">addClass</span><span class="p">(</span><span class="s2">"TS-series_inactive"</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">hide</span><span class="p">()}</span><span class="k">return</span><span class="p">;</span><span class="k">case</span><span class="s2">"showNotch"</span><span class="o">:</span><span class="k">this</span><span class="p">.</span><span class="nx">notch</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="s2">"TS-series_inactive"</span><span class="p">).</span><span class="nx">show</span><span class="p">()}}});</span><span class="kd">var</span> <span class="nx">g</span><span class="o">=</span><span class="kd">function</span><span class="p">(){};</span><span class="kd">var</span> <span class="nx">p</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">,</span><span class="nx">E</span><span class="p">){</span><span class="nx">g</span><span class="p">.</span><span class="nx">prototype</span><span class="o">=</span><span class="nx">E</span><span class="p">.</span><span class="nx">prototype</span><span class="p">;</span><span class="nx">F</span><span class="p">.</span><span class="nx">prototype</span><span class="o">=</span><span class="k">new</span> <span class="nx">g</span><span class="p">();</span><span class="nx">F</span><span class="p">.</span><span class="nx">prototype</span><span class="p">.</span><span class="nx">constructor</span><span class="o">=</span><span class="nx">F</span><span class="p">};</span><span class="kd">var</span> <span class="nx">D</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">G</span><span class="p">,</span><span class="nx">F</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="o">=</span><span class="nx">F</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">direction</span><span class="o">=</span><span class="nx">G</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">prefix</span><span class="o">+</span><span class="nx">G</span><span class="p">);</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="k">this</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"click"</span><span class="p">,</span><span class="kd">function</span><span class="p">(</span><span class="nx">H</span><span class="p">){</span><span class="nx">H</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span><span class="nx">E</span><span class="p">.</span><span class="nx">click</span><span class="p">(</span><span class="nx">H</span><span class="p">)})};</span><span class="kd">var</span> <span class="nx">a</span><span class="o">=</span><span class="mi">100</span><span class="p">;</span><span class="kd">var</span> <span class="nx">f</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">,</span><span class="nx">E</span><span class="p">){</span><span class="nx">D</span><span class="p">.</span><span class="nx">apply</span><span class="p">(</span><span class="k">this</span><span class="p">,</span><span class="nx">arguments</span><span class="p">)};</span><span class="nx">p</span><span class="p">(</span><span class="nx">f</span><span class="p">,</span><span class="nx">D</span><span class="p">);</span><span class="nx">f</span><span class="p">.</span><span class="nx">prototype</span><span class="o">=</span><span class="nx">_</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">f</span><span class="p">.</span><span class="nx">prototype</span><span class="p">,{</span><span class="nx">prefix</span><span class="o">:</span><span class="s2">".TS-zoom_"</span><span class="p">,</span><span class="nx">click</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="nx">a</span><span class="o">+=</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">direction</span><span class="o">===</span><span class="s2">"in"</span><span class="o">?+</span><span class="mi">100</span><span class="o">:-</span><span class="mi">100</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="nx">a</span><span class="o">>=</span><span class="mi">100</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-notchbar"</span><span class="p">).</span><span class="nx">trigger</span><span class="p">(</span><span class="s2">"doZoom"</span><span class="p">,[</span><span class="nx">a</span><span class="p">])}</span><span class="k">else</span><span class="p">{</span><span class="nx">a</span><span class="o">=</span><span class="mi">100</span><span class="p">}}});</span><span class="kd">var</span> <span class="nx">C</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">,</span><span class="nx">E</span><span class="p">){</span><span class="nx">D</span><span class="p">.</span><span class="nx">apply</span><span class="p">(</span><span class="k">this</span><span class="p">,</span><span class="nx">arguments</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">notches</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-notch"</span><span class="p">)};</span><span class="nx">p</span><span class="p">(</span><span class="nx">C</span><span class="p">,</span><span class="nx">D</span><span class="p">);</span><span class="nx">C</span><span class="p">.</span><span class="nx">prototype</span><span class="o">=</span><span class="nx">_</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">D</span><span class="p">.</span><span class="nx">prototype</span><span class="p">,{</span><span class="nx">prefix</span><span class="o">:</span><span class="s2">".TS-choose_"</span><span class="p">,</span><span class="nx">click</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">I</span><span class="p">){</span><span class="kd">var</span> <span class="nx">F</span><span class="p">;</span><span class="kd">var</span> <span class="nx">H</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">notches</span><span class="p">.</span><span class="nx">not</span><span class="p">(</span><span class="s2">".TS-series_inactive"</span><span class="p">);</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="nx">H</span><span class="p">.</span><span class="nx">index</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-notch_active"</span><span class="p">));</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="nx">H</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span><span class="k">if</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">direction</span><span class="o">===</span><span class="s2">"next"</span><span class="p">){</span><span class="nx">F</span><span class="o">=</span><span class="p">(</span><span class="nx">E</span><span class="o"><</span><span class="nx">G</span><span class="o">?</span><span class="nx">H</span><span class="p">.</span><span class="nx">eq</span><span class="p">(</span><span class="nx">E</span><span class="o">+</span><span class="mi">1</span><span class="p">)</span><span class="o">:</span><span class="kc">false</span><span class="p">)}</span><span class="k">else</span><span class="p">{</span><span class="nx">F</span><span class="o">=</span><span class="p">(</span><span class="nx">E</span><span class="o">></span><span class="mi">0</span><span class="o">?</span><span class="nx">H</span><span class="p">.</span><span class="nx">eq</span><span class="p">(</span><span class="nx">E</span><span class="o">-</span><span class="mi">1</span><span class="p">)</span><span class="o">:</span><span class="kc">false</span><span class="p">)}</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="nx">F</span><span class="p">){</span><span class="k">return</span><span class="p">}</span><span class="nx">F</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="s2">"click"</span><span class="p">)}});</span><span class="nx">m</span><span class="p">.</span><span class="nx">Api</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="o">=</span><span class="nx">E</span><span class="p">};</span><span class="nx">m</span><span class="p">.</span><span class="nx">Api</span><span class="p">.</span><span class="nx">prototype</span><span class="o">=</span><span class="nx">_</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">m</span><span class="p">.</span><span class="nx">Api</span><span class="p">.</span><span class="nx">prototype</span><span class="p">,{</span><span class="nx">onLoad</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"load"</span><span class="p">,</span><span class="nx">E</span><span class="p">)},</span><span class="nx">onCardAdd</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"cardAdd"</span><span class="p">,</span><span class="nx">E</span><span class="p">)},</span><span class="nx">onCardActivate</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"cardActivate"</span><span class="p">,</span><span class="nx">E</span><span class="p">)},</span><span class="nx">onBarMove</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"move"</span><span class="p">,</span><span class="nx">E</span><span class="p">)},</span><span class="nx">activateCard</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="nx">_</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">cards</span><span class="p">).</span><span class="nx">detect</span><span class="p">(</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">){</span><span class="k">return</span> <span class="nx">F</span><span class="p">.</span><span class="nx">timestamp</span><span class="o">===</span><span class="nx">E</span><span class="p">}).</span><span class="nx">activate</span><span class="p">()}});</span><span class="nx">m</span><span class="p">.</span><span class="nx">bindKeydowns</span><span class="o">=</span><span class="kd">function</span><span class="p">(){</span><span class="nx">e</span><span class="p">(</span><span class="nb">document</span><span class="p">).</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"keydown"</span><span class="p">,</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">if</span><span class="p">(</span><span class="nx">m</span><span class="p">.</span><span class="nx">currentTimeline</span><span class="o">&&</span><span class="nx">E</span><span class="p">.</span><span class="nx">keyCode</span><span class="o">===</span><span class="mi">39</span><span class="p">){</span><span class="nx">m</span><span class="p">.</span><span class="nx">currentTimeline</span><span class="p">.</span><span class="nx">chooseNext</span><span class="p">.</span><span class="nx">click</span><span class="p">()}</span><span class="k">else</span><span class="p">{</span><span class="k">if</span><span class="p">(</span><span class="nx">m</span><span class="p">.</span><span class="nx">currentTimeline</span><span class="o">&&</span><span class="nx">E</span><span class="p">.</span><span class="nx">keyCode</span><span class="o">===</span><span class="mi">37</span><span class="p">){</span><span class="nx">m</span><span class="p">.</span><span class="nx">currentTimeline</span><span class="p">.</span><span class="nx">choosePrev</span><span class="p">.</span><span class="nx">click</span><span class="p">()}</span><span class="k">else</span><span class="p">{</span><span class="k">return</span><span class="p">}}})};</span><span class="nx">j</span><span class="p">.</span><span class="nx">boot</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">H</span><span class="p">,</span><span class="nx">E</span><span class="p">){</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="nx">m</span><span class="p">.</span><span class="nx">timeline</span><span class="o">=</span><span class="k">new</span> <span class="nx">j</span><span class="p">(</span><span class="nx">H</span><span class="p">,</span><span class="nx">E</span><span class="o">||</span><span class="p">{});</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="k">new</span> <span class="nx">m</span><span class="p">.</span><span class="nx">Api</span><span class="p">(</span><span class="nx">G</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="nx">m</span><span class="p">.</span><span class="nx">pageTimelines</span><span class="p">){</span><span class="nx">m</span><span class="p">.</span><span class="nx">currentTimeline</span><span class="o">=</span><span class="nx">G</span><span class="p">;</span><span class="nx">m</span><span class="p">.</span><span class="nx">bindKeydowns</span><span class="p">()}</span><span class="nx">m</span><span class="p">.</span><span class="nx">pageTimelines</span><span class="o">=</span><span class="nx">m</span><span class="p">.</span><span class="nx">pageTimelines</span><span class="o">?</span><span class="nx">m</span><span class="p">.</span><span class="nx">pageTimelines</span><span class="o">+=</span><span class="mi">1</span><span class="o">:</span><span class="mi">1</span><span class="p">;</span><span class="nx">e</span><span class="p">(</span><span class="nx">G</span><span class="p">.</span><span class="nx">render</span><span class="p">);</span><span class="k">return</span><span class="p">{</span><span class="nx">timeline</span><span class="o">:</span><span class="nx">G</span><span class="p">,</span><span class="nx">api</span><span class="o">:</span><span class="nx">F</span><span class="p">}}})(</span><span class="nx">jQuery</span><span class="p">);(</span><span class="kd">function</span><span class="p">(){</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="o">=</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="o">||</span><span class="p">{};</span><span class="kd">var</span> <span class="nx">a</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">c</span><span class="p">){</span><span class="kd">var</span> <span class="nx">b</span><span class="o">=</span><span class="k">new</span> <span class="nb">Function</span><span class="p">(</span><span class="s2">"obj"</span><span class="p">,</span><span class="s2">"var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"</span><span class="o">+</span><span class="nx">c</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\\/g</span><span class="p">,</span><span class="s2">"\\\\"</span><span class="p">).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/'/g</span><span class="p">,</span><span class="s2">"\\'"</span><span class="p">).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/<%=([\s\S]+?)%>/g</span><span class="p">,</span><span class="kd">function</span><span class="p">(</span><span class="nx">d</span><span class="p">,</span><span class="nx">e</span><span class="p">){</span><span class="k">return</span><span class="s2">"',"</span><span class="o">+</span><span class="nx">e</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\\'/g</span><span class="p">,</span><span class="s2">"'"</span><span class="p">)</span><span class="o">+</span><span class="s2">",'"</span><span class="p">}).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/<%([\s\S]+?)%>/g</span><span class="p">,</span><span class="kd">function</span><span class="p">(</span><span class="nx">d</span><span class="p">,</span><span class="nx">e</span><span class="p">){</span><span class="k">return</span><span class="s2">"');"</span><span class="o">+</span><span class="nx">e</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\\'/g</span><span class="p">,</span><span class="s2">"'"</span><span class="p">).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/[\r\n\t]/g</span><span class="p">,</span><span class="s2">" "</span><span class="p">)</span><span class="o">+</span><span class="s2">"__p.push('"</span><span class="p">}).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\r/g</span><span class="p">,</span><span class="s2">"\\r"</span><span class="p">).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\n/g</span><span class="p">,</span><span class="s2">"\\n"</span><span class="p">).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\t/g</span><span class="p">,</span><span class="s2">"\\t"</span><span class="p">)</span><span class="o">+</span><span class="s2">"');}return __p.join('');"</span><span class="p">);</span><span class="k">return</span> <span class="nx">b</span><span class="p">};</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="p">.</span><span class="nx">card</span><span class="o">=</span><span class="nx">a</span><span class="p">(</span><span class="s1">'<div class="TS-card_container TS-card_container_<%= (card.get("series") || "").replace(/W/g, "") %>">\n<div class="TS-css_arrow TS-css_arrow_up TS-css_arrow_color_<%= card.get("topcolor") %>"></div>\n <div class="TS-item TS-item_color_<%= card.get("topcolor") %>" data-timestamp="<%= card.get("timestamp") %>">\n <div class="TS-item_label">\n <% if (!_.isEmpty(card.get("html"))){ %>\n <div class="TS-item_user_html">\n <%= card.get("html") %>\n </div>\n <% } %>\n <%= card.get("description") %>\n </div>\n <% if (!_.isEmpty(card.get("link"))){ %>\n <a class="TS-read_btn" target="_blank" href="<%= card.get("link") %>">Read More</a>\n <% } %>\n\n <div class="TS-item_year">\n <span class="TS-item_year_text"><%= (card.get("display_date") || "").length > 0 ? card.get("display_date") : card.get("date") %></span>\n <div class="TS-permalink">&#8734;</div>\n </div>\n </div>\n</div>'</span><span class="p">);</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="p">.</span><span class="nx">notch</span><span class="o">=</span><span class="nx">a</span><span class="p">(</span><span class="s1">'<div class="TS-notch TS-notch_<%= timestamp %> TS-notch_<%= series.replace(/W/g, "") %> TS-notch_color_<%= topcolor %>"></div>\n'</span><span class="p">);</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="p">.</span><span class="nx">series_legend</span><span class="o">=</span><span class="nx">a</span><span class="p">(</span><span class="s1">'<div class="TS-series_legend_item TS-series_legend_item_<%= name.replace(/W/g, "") %>">\n <span class="TS-series_legend_swatch TS-series_legend_swatch_<%= color %>">&nbsp;</span> <span class="TS-series_legend_text"><%= name %></span>\n</div>\n'</span><span class="p">);</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="p">.</span><span class="nx">timeline</span><span class="o">=</span><span class="nx">a</span><span class="p">(</span><span class="s1">'<div class="timeline_setter">\n <div class="TS-top_matter_container">\n <div class="TS-controls">\n <a href="#" class="TS-zoom TS-zoom_in"><span class="TS-controls_inner_text TS-zoom_inner_text">+</span></a> \n <a href="#" class="TS-zoom TS-zoom_out"><span class="TS-controls_inner_text TS-zoom_inner_text">-</span></a> \n &nbsp;&nbsp;&nbsp;&nbsp; \n <a href="#" class="TS-choose TS-choose_prev">&laquo;&nbsp;<span class="TS-controls_inner_text">Previous</span></a> \n <a href="#" class="TS-choose TS-choose_next"><span class="TS-controls_inner_text">Next</span>&nbsp;&raquo;</a>\n </div>\n <div class="TS-series_nav_container"></div>\n </div>\n\n <div class="TS-notchbar_container">\n <div class="TS-notchbar"></div>\n </div>\n <div class="TS-card_scroller">\n <div class="TS-card_scroller_inner">\n </div>\n </div>\n</div>'</span><span class="p">);</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="p">.</span><span class="nx">year_notch</span><span class="o">=</span><span class="nx">a</span><span class="p">(</span><span class="s1">'<div class="TS-year_notch TS-year_notch_<%= timestamp %>">\n <span class="TS-year_notch_year_text"><%= human %></span>\n</div>\n'</span><span class="p">)})();</span>
+<!DOCTYPE html> <html> <head> <title>timeline-setter.min.js</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="stylesheet" media="all" href="docco.css" /> </head> <body> <div id="container"> <div id="background"></div> <div id="jump_to"> Jump To … <div id="jump_wrapper"> <div id="jump_page"> <a class="source" href="templates.html"> templates.js </a> <a class="source" href="timeline-setter.html"> timeline-setter.js </a> <a class="source" href="timeline-setter.min.html"> timeline-setter.min.js </a> </div> </div> </div> <table cellpadding="0" cellspacing="0"> <thead> <tr> <th class="docs"> <h1> timeline-setter.min.js </h1> </th> <th class="code"> </th> </tr> </thead> <tbody> <tr id="section-1"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-1">¶</a> </div> </td> <td class="code"> <div class="highlight"><pre><span class="p">(</span><span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="p">,</span><span class="nx">i</span><span class="p">){</span><span class="kd">var</span> <span class="nx">m</span><span class="o">=</span><span class="nb">window</span><span class="p">.</span><span class="nx">TimelineSetter</span><span class="o">=</span><span class="p">(</span><span class="nb">window</span><span class="p">.</span><span class="nx">TimelineSetter</span><span class="o">||</span><span class="p">{});</span><span class="nx">m</span><span class="p">.</span><span class="nx">VERSION</span><span class="o">=</span><span class="s2">"0.3.1"</span><span class="p">;</span><span class="kd">var</span> <span class="nx">s</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="nx">E</span><span class="p">.</span><span class="nx">bind</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">I</span><span class="p">,</span><span class="nx">F</span><span class="p">){</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_callbacks</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">_callbacks</span><span class="o">||</span><span class="p">{});</span><span class="kd">var</span> <span class="nx">H</span><span class="o">=</span><span class="p">(</span><span class="nx">G</span><span class="p">[</span><span class="nx">I</span><span class="p">]</span><span class="o">=</span><span class="nx">G</span><span class="p">[</span><span class="nx">I</span><span class="p">]</span><span class="o">||</span><span class="p">[]);</span><span class="nx">H</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">F</span><span class="p">)};</span><span class="nx">E</span><span class="p">.</span><span class="nx">trigger</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">H</span><span class="p">){</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">_callbacks</span><span class="p">){</span><span class="k">return</span><span class="p">}</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">_callbacks</span><span class="p">[</span><span class="nx">H</span><span class="p">];</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="nx">G</span><span class="p">){</span><span class="k">return</span><span class="p">}</span><span class="k">for</span><span class="p">(</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="mi">0</span><span class="p">;</span><span class="nx">F</span><span class="o"><</span><span class="nx">G</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span><span class="nx">F</span><span class="o">++</span><span class="p">){</span><span class="nx">G</span><span class="p">[</span><span class="nx">F</span><span class="p">].</span><span class="nx">apply</span><span class="p">(</span><span class="k">this</span><span class="p">,</span><span class="nx">arguments</span><span class="p">)}}};</span><span class="kd">var</span> <span class="nx">B</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="nx">E</span><span class="p">.</span><span class="nx">move</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">G</span><span class="p">,</span><span class="nx">F</span><span class="p">){</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="nx">F</span><span class="p">.</span><span class="nx">deltaX</span><span class="p">){</span><span class="k">return</span><span class="p">}</span><span class="k">if</span><span class="p">(</span><span class="nx">_</span><span class="p">.</span><span class="nx">isUndefined</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">currOffset</span><span class="p">)){</span><span class="k">this</span><span class="p">.</span><span class="nx">currOffset</span><span class="o">=</span><span class="mi">0</span><span class="p">}</span><span class="k">this</span><span class="p">.</span><span class="nx">currOffset</span><span class="o">+=</span><span class="nx">F</span><span class="p">.</span><span class="nx">deltaX</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">css</span><span class="p">({</span><span class="nx">left</span><span class="o">:</span><span class="k">this</span><span class="p">.</span><span class="nx">currOffset</span><span class="p">})};</span><span class="nx">E</span><span class="p">.</span><span class="nx">zoom</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">G</span><span class="p">,</span><span class="nx">F</span><span class="p">){</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="nx">F</span><span class="p">.</span><span class="nx">width</span><span class="p">){</span><span class="k">return</span><span class="p">}</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">css</span><span class="p">({</span><span class="nx">width</span><span class="o">:</span><span class="nx">F</span><span class="p">.</span><span class="nx">width</span><span class="p">})}};</span><span class="kd">var</span> <span class="nx">c</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">,</span><span class="nx">E</span><span class="p">){</span><span class="nx">F</span><span class="p">.</span><span class="nx">$</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">G</span><span class="p">){</span><span class="k">return</span> <span class="nb">window</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="nx">G</span><span class="p">,</span><span class="nx">E</span><span class="p">)}};</span><span class="kd">var</span> <span class="nx">A</span><span class="o">=</span><span class="s2">"ontouchstart"</span> <span class="k">in</span> <span class="nb">document</span><span class="p">;</span><span class="k">if</span><span class="p">(</span><span class="nx">A</span><span class="p">){</span><span class="nx">e</span><span class="p">.</span><span class="nx">event</span><span class="p">.</span><span class="nx">props</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s2">"touches"</span><span class="p">)}</span><span class="kd">var</span> <span class="nx">d</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">I</span><span class="p">){</span><span class="kd">var</span> <span class="nx">G</span><span class="p">;</span><span class="kd">function</span> <span class="nx">E</span><span class="p">(</span><span class="nx">K</span><span class="p">){</span><span class="nx">K</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span><span class="nx">G</span><span class="o">=</span><span class="p">{</span><span class="nx">x</span><span class="o">:</span><span class="nx">K</span><span class="p">.</span><span class="nx">pageX</span><span class="p">};</span><span class="nx">K</span><span class="p">.</span><span class="nx">type</span><span class="o">=</span><span class="s2">"dragstart"</span><span class="p">;</span><span class="nx">I</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="nx">K</span><span class="p">)}</span><span class="kd">function</span> <span class="nx">F</span><span class="p">(</span><span class="nx">K</span><span class="p">){</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="nx">G</span><span class="p">){</span><span class="k">return</span><span class="p">}</span><span class="nx">K</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span><span class="nx">K</span><span class="p">.</span><span class="nx">type</span><span class="o">=</span><span class="s2">"dragging"</span><span class="p">;</span><span class="nx">K</span><span class="o">=</span><span class="nx">_</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">K</span><span class="p">,{</span><span class="nx">deltaX</span><span class="o">:</span><span class="p">(</span><span class="nx">K</span><span class="p">.</span><span class="nx">pageX</span><span class="o">||</span><span class="nx">K</span><span class="p">.</span><span class="nx">touches</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">pageX</span><span class="p">)</span><span class="o">-</span><span class="nx">G</span><span class="p">.</span><span class="nx">x</span><span class="p">});</span><span class="nx">G</span><span class="o">=</span><span class="p">{</span><span class="nx">x</span><span class="o">:</span><span class="p">(</span><span class="nx">K</span><span class="p">.</span><span class="nx">pageX</span><span class="o">||</span><span class="nx">K</span><span class="p">.</span><span class="nx">touches</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">pageX</span><span class="p">)};</span><span class="nx">I</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="nx">K</span><span class="p">)}</span><span class="kd">function</span> <span class="nx">J</span><span class="p">(</span><span class="nx">K</span><span class="p">){</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="nx">G</span><span class="p">){</span><span class="k">return</span><span class="p">}</span><span class="nx">G</span><span class="o">=</span><span class="kc">null</span><span class="p">;</span><span class="nx">K</span><span class="p">.</span><span class="nx">type</span><span class="o">=</span><span class="s2">"dragend"</span><span class="p">;</span><span class="nx">I</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="nx">K</span><span class="p">)}</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="nx">A</span><span class="p">){</span><span class="nx">I</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"mousedown"</span><span class="p">,</span><span class="nx">E</span><span class="p">);</span><span class="nx">e</span><span class="p">(</span><span class="nb">document</span><span class="p">).</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"mousemove"</span><span class="p">,</span><span class="nx">F</span><span class="p">);</span><span class="nx">e</span><span class="p">(</span><span class="nb">document</span><span class="p">).</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"mouseup"</span><span class="p">,</span><span class="nx">J</span><span class="p">)}</span><span class="k">else</span><span class="p">{</span><span class="kd">var</span> <span class="nx">H</span><span class="p">;</span><span class="nx">I</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"touchstart"</span><span class="p">,</span><span class="kd">function</span><span class="p">(</span><span class="nx">M</span><span class="p">){</span><span class="kd">var</span> <span class="nx">K</span><span class="o">=</span><span class="nb">Date</span><span class="p">.</span><span class="nx">now</span><span class="p">();</span><span class="kd">var</span> <span class="nx">N</span><span class="o">=</span><span class="nx">K</span><span class="o">-</span><span class="p">(</span><span class="nx">H</span><span class="o">||</span><span class="nx">K</span><span class="p">);</span><span class="kd">var</span> <span class="nx">L</span><span class="o">=</span><span class="nx">N</span><span class="o">></span><span class="mi">0</span><span class="o">&&</span><span class="nx">N</span><span class="o"><=</span><span class="mi">250</span><span class="o">?</span><span class="s2">"doubletap"</span><span class="o">:</span><span class="s2">"tap"</span><span class="p">;</span><span class="nx">G</span><span class="o">=</span><span class="p">{</span><span class="nx">x</span><span class="o">:</span><span class="nx">M</span><span class="p">.</span><span class="nx">touches</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">pageX</span><span class="p">};</span><span class="nx">H</span><span class="o">=</span><span class="nx">K</span><span class="p">;</span><span class="nx">I</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="nx">e</span><span class="p">.</span><span class="nx">Event</span><span class="p">(</span><span class="nx">L</span><span class="p">))});</span><span class="nx">I</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"touchmove"</span><span class="p">,</span><span class="nx">F</span><span class="p">);</span><span class="nx">I</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"touchend"</span><span class="p">,</span><span class="nx">J</span><span class="p">)}};</span><span class="kd">var</span> <span class="nx">o</span><span class="o">=</span><span class="sr">/WebKit\/533/</span><span class="p">.</span><span class="nx">test</span><span class="p">(</span><span class="nx">navigator</span><span class="p">.</span><span class="nx">userAgent</span><span class="p">);</span><span class="kd">var</span> <span class="nx">y</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">){</span><span class="kd">function</span> <span class="nx">E</span><span class="p">(</span><span class="nx">H</span><span class="p">){</span><span class="nx">H</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span><span class="kd">var</span> <span class="nx">I</span><span class="o">=</span><span class="p">(</span><span class="nx">H</span><span class="p">.</span><span class="nx">wheelDelta</span><span class="o">||-</span><span class="nx">H</span><span class="p">.</span><span class="nx">detail</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="nx">o</span><span class="p">){</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="nx">I</span><span class="o"><</span><span class="mi">0</span><span class="o">?-</span><span class="mi">1</span><span class="o">:</span><span class="mi">1</span><span class="p">;</span><span class="nx">I</span><span class="o">=</span><span class="nb">Math</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="nb">Math</span><span class="p">.</span><span class="nx">abs</span><span class="p">(</span><span class="nx">I</span><span class="p">))</span><span class="o">*</span><span class="nx">G</span><span class="o">*</span><span class="mi">2</span><span class="p">}</span><span class="nx">H</span><span class="p">.</span><span class="nx">type</span><span class="o">=</span><span class="s2">"scrolled"</span><span class="p">;</span><span class="nx">H</span><span class="p">.</span><span class="nx">deltaX</span><span class="o">=</span><span class="nx">I</span><span class="p">;</span><span class="nx">F</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="nx">H</span><span class="p">)}</span><span class="nx">F</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"mousewheel DOMMouseScroll"</span><span class="p">,</span><span class="nx">E</span><span class="p">)};</span><span class="kd">var</span> <span class="nx">w</span><span class="o">=</span><span class="kd">function</span><span class="p">(){</span><span class="k">this</span><span class="p">.</span><span class="nx">min</span><span class="o">=+</span><span class="kc">Infinity</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">max</span><span class="o">=-</span><span class="kc">Infinity</span><span class="p">};</span><span class="nx">w</span><span class="p">.</span><span class="nx">prototype</span><span class="p">.</span><span class="nx">extend</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">min</span><span class="o">=</span><span class="nb">Math</span><span class="p">.</span><span class="nx">min</span><span class="p">(</span><span class="nx">E</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">min</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">max</span><span class="o">=</span><span class="nb">Math</span><span class="p">.</span><span class="nx">max</span><span class="p">(</span><span class="nx">E</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">max</span><span class="p">)};</span><span class="nx">w</span><span class="p">.</span><span class="nx">prototype</span><span class="p">.</span><span class="nx">width</span><span class="o">=</span><span class="kd">function</span><span class="p">(){</span><span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">max</span><span class="o">-</span><span class="k">this</span><span class="p">.</span><span class="nx">min</span><span class="p">};</span><span class="nx">w</span><span class="p">.</span><span class="nx">prototype</span><span class="p">.</span><span class="nx">project</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">,</span><span class="nx">E</span><span class="p">){</span><span class="k">return</span><span class="p">(</span><span class="nx">F</span><span class="o">-</span><span class="k">this</span><span class="p">.</span><span class="nx">min</span><span class="p">)</span><span class="o">/</span><span class="k">this</span><span class="p">.</span><span class="nx">width</span><span class="p">()</span><span class="o">*</span><span class="nx">E</span><span class="p">};</span><span class="kd">var</span> <span class="nx">h</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">G</span><span class="p">,</span><span class="nx">E</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">max</span><span class="o">=</span><span class="nx">G</span><span class="p">.</span><span class="nx">max</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">min</span><span class="o">=</span><span class="nx">G</span><span class="p">.</span><span class="nx">min</span><span class="p">;</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="nx">E</span><span class="o">||!</span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVALS</span><span class="p">[</span><span class="nx">E</span><span class="p">]){</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">computeMaxInterval</span><span class="p">();</span><span class="k">this</span><span class="p">.</span><span class="nx">maxInterval</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVAL_ORDER</span><span class="p">[</span><span class="nx">F</span><span class="p">];</span><span class="k">this</span><span class="p">.</span><span class="nx">idx</span><span class="o">=</span><span class="nx">F</span><span class="p">}</span><span class="k">else</span><span class="p">{</span><span class="k">this</span><span class="p">.</span><span class="nx">maxInterval</span><span class="o">=</span><span class="nx">E</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">idx</span><span class="o">=</span><span class="nx">_</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVAL_ORDER</span><span class="p">,</span><span class="nx">E</span><span class="p">)}};</span><span class="nx">h</span><span class="p">.</span><span class="nx">dateFormats</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">I</span><span class="p">){</span><span class="kd">var</span> <span class="nx">K</span><span class="o">=</span><span class="k">new</span> <span class="nb">Date</span><span class="p">(</span><span class="nx">I</span><span class="p">);</span><span class="kd">var</span> <span class="nx">J</span><span class="o">=</span><span class="p">{};</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="p">[</span><span class="s2">"Jan."</span><span class="p">,</span><span class="s2">"Feb."</span><span class="p">,</span><span class="s2">"March"</span><span class="p">,</span><span class="s2">"April"</span><span class="p">,</span><span class="s2">"May"</span><span class="p">,</span><span class="s2">"June"</span><span class="p">,</span><span class="s2">"July"</span><span class="p">,</span><span class="s2">"Aug."</span><span class="p">,</span><span class="s2">"Sept."</span><span class="p">,</span><span class="s2">"Oct."</span><span class="p">,</span><span class="s2">"Nov."</span><span class="p">,</span><span class="s2">"Dec."</span><span class="p">];</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="nx">K</span><span class="p">.</span><span class="nx">getHours</span><span class="p">()</span><span class="o">></span><span class="mi">12</span><span class="p">;</span><span class="kd">var</span> <span class="nx">H</span><span class="o">=</span><span class="s2">" "</span><span class="o">+</span><span class="p">(</span><span class="nx">K</span><span class="p">.</span><span class="nx">getHours</span><span class="p">()</span><span class="o">>=</span><span class="mi">12</span><span class="o">?</span><span class="s2">"p.m."</span><span class="o">:</span><span class="s2">"a.m."</span><span class="p">);</span><span class="nx">J</span><span class="p">.</span><span class="nx">month</span><span class="o">=</span><span class="nx">E</span><span class="p">[</span><span class="nx">K</span><span class="p">.</span><span class="nx">getMonth</span><span class="p">()];</span><span class="nx">J</span><span class="p">.</span><span class="nx">year</span><span class="o">=</span><span class="nx">K</span><span class="p">.</span><span class="nx">getFullYear</span><span class="p">();</span><span class="nx">J</span><span class="p">.</span><span class="nx">date</span><span class="o">=</span><span class="nx">J</span><span class="p">.</span><span class="nx">month</span><span class="o">+</span><span class="s2">" "</span><span class="o">+</span><span class="nx">K</span><span class="p">.</span><span class="nx">getDate</span><span class="p">()</span><span class="o">+</span><span class="s2">", "</span><span class="o">+</span><span class="nx">J</span><span class="p">.</span><span class="nx">year</span><span class="p">;</span><span class="kd">var</span> <span class="nx">F</span><span class="p">;</span><span class="k">if</span><span class="p">(</span><span class="nx">G</span><span class="p">){</span><span class="nx">F</span><span class="o">=</span><span class="nx">K</span><span class="p">.</span><span class="nx">getHours</span><span class="p">()</span><span class="o">-</span><span class="mi">12</span><span class="p">}</span><span class="k">else</span><span class="p">{</span><span class="nx">F</span><span class="o">=</span><span class="nx">K</span><span class="p">.</span><span class="nx">getHours</span><span class="p">()</span><span class="o">></span><span class="mi">0</span><span class="o">?</span><span class="nx">K</span><span class="p">.</span><span class="nx">getHours</span><span class="p">()</span><span class="o">:</span><span class="s2">"12"</span><span class="p">}</span><span class="nx">F</span><span class="o">+=</span><span class="s2">":"</span><span class="o">+</span><span class="nx">z</span><span class="p">(</span><span class="nx">K</span><span class="p">.</span><span class="nx">getMinutes</span><span class="p">());</span><span class="nx">J</span><span class="p">.</span><span class="nx">hourWithMinutes</span><span class="o">=</span><span class="nx">F</span><span class="o">+</span><span class="nx">H</span><span class="p">;</span><span class="nx">J</span><span class="p">.</span><span class="nx">hourWithMinutesAndSeconds</span><span class="o">=</span><span class="nx">F</span><span class="o">+</span><span class="s2">":"</span><span class="o">+</span><span class="nx">z</span><span class="p">(</span><span class="nx">K</span><span class="p">.</span><span class="nx">getSeconds</span><span class="p">())</span><span class="o">+</span><span class="nx">H</span><span class="p">;</span><span class="k">return</span> <span class="nx">h</span><span class="p">.</span><span class="nx">formatter</span><span class="p">(</span><span class="nx">K</span><span class="p">,</span><span class="nx">J</span><span class="p">)</span><span class="o">||</span><span class="nx">J</span><span class="p">};</span><span class="nx">h</span><span class="p">.</span><span class="nx">dateStr</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">,</span><span class="nx">E</span><span class="p">){</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="k">new</span> <span class="nx">h</span><span class="p">.</span><span class="nx">dateFormats</span><span class="p">(</span><span class="nx">F</span><span class="p">);</span><span class="k">switch</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">case</span><span class="s2">"Millennium"</span><span class="o">:</span><span class="k">return</span> <span class="nx">G</span><span class="p">.</span><span class="nx">year</span><span class="p">;</span><span class="k">case</span><span class="s2">"Quincentenary"</span><span class="o">:</span><span class="k">return</span> <span class="nx">G</span><span class="p">.</span><span class="nx">year</span><span class="p">;</span><span class="k">case</span><span class="s2">"Century"</span><span class="o">:</span><span class="k">return</span> <span class="nx">G</span><span class="p">.</span><span class="nx">year</span><span class="p">;</span><span class="k">case</span><span class="s2">"HalfCentury"</span><span class="o">:</span><span class="k">return</span> <span class="nx">G</span><span class="p">.</span><span class="nx">year</span><span class="p">;</span><span class="k">case</span><span class="s2">"Decade"</span><span class="o">:</span><span class="k">return</span> <span class="nx">G</span><span class="p">.</span><span class="nx">year</span><span class="p">;</span><span class="k">case</span><span class="s2">"Lustrum"</span><span class="o">:</span><span class="k">return</span> <span class="nx">G</span><span class="p">.</span><span class="nx">year</span><span class="p">;</span><span class="k">case</span><span class="s2">"FullYear"</span><span class="o">:</span><span class="k">return</span> <span class="nx">G</span><span class="p">.</span><span class="nx">year</span><span class="p">;</span><span class="k">case</span><span class="s2">"Month"</span><span class="o">:</span><span class="k">return</span> <span class="nx">G</span><span class="p">.</span><span class="nx">month</span><span class="o">+</span><span class="s2">", "</span><span class="o">+</span><span class="nx">G</span><span class="p">.</span><span class="nx">year</span><span class="p">;</span><span class="k">case</span><span class="s2">"Week"</span><span class="o">:</span><span class="k">return</span> <span class="nx">G</span><span class="p">.</span><span class="nx">date</span><span class="p">;</span><span class="k">case</span><span class="s2">"Date"</span><span class="o">:</span><span class="k">return</span> <span class="nx">G</span><span class="p">.</span><span class="nx">date</span><span class="p">;</span><span class="k">case</span><span class="s2">"Hours"</span><span class="o">:</span><span class="k">return</span> <span class="nx">G</span><span class="p">.</span><span class="nx">hourWithMinutes</span><span class="p">;</span><span class="k">case</span><span class="s2">"HalfHour"</span><span class="o">:</span><span class="k">return</span> <span class="nx">G</span><span class="p">.</span><span class="nx">hourWithMinutes</span><span class="p">;</span><span class="k">case</span><span class="s2">"QuarterHour"</span><span class="o">:</span><span class="k">return</span> <span class="nx">G</span><span class="p">.</span><span class="nx">hourWithMinutes</span><span class="p">;</span><span class="k">case</span><span class="s2">"Minutes"</span><span class="o">:</span><span class="k">return</span> <span class="nx">G</span><span class="p">.</span><span class="nx">hourWithMinutes</span><span class="p">;</span><span class="k">case</span><span class="s2">"Seconds"</span><span class="o">:</span><span class="k">return</span> <span class="nx">G</span><span class="p">.</span><span class="nx">hourWithMinutesAndSeconds</span><span class="p">}};</span><span class="nx">h</span><span class="p">.</span><span class="nx">prototype</span><span class="o">=</span><span class="p">{</span><span class="nx">INTERVALS</span><span class="o">:</span><span class="p">{</span><span class="nx">Millennium</span><span class="o">:</span><span class="mi">69379200000000</span><span class="p">,</span><span class="nx">Quincentenary</span><span class="o">:</span><span class="mi">34689600000000</span><span class="p">,</span><span class="nx">Century</span><span class="o">:</span><span class="mi">9460800000000</span><span class="p">,</span><span class="nx">HalfCentury</span><span class="o">:</span><span class="mi">3153600000000</span><span class="p">,</span><span class="nx">Decade</span><span class="o">:</span><span class="mi">315360000000</span><span class="p">,</span><span class="nx">Lustrum</span><span class="o">:</span><span class="mi">157680000000</span><span class="p">,</span><span class="nx">FullYear</span><span class="o">:</span><span class="mi">31536000000</span><span class="p">,</span><span class="nx">Month</span><span class="o">:</span><span class="mi">2592000000</span><span class="p">,</span><span class="nx">Week</span><span class="o">:</span><span class="mi">604800000</span><span class="p">,</span><span class="nb">Date</span><span class="o">:</span><span class="mi">86400000</span><span class="p">,</span><span class="nx">Hours</span><span class="o">:</span><span class="mi">3600000</span><span class="p">,</span><span class="nx">HalfHour</span><span class="o">:</span><span class="mi">1800000</span><span class="p">,</span><span class="nx">QuarterHour</span><span class="o">:</span><span class="mi">900000</span><span class="p">,</span><span class="nx">Minutes</span><span class="o">:</span><span class="mi">60000</span><span class="p">,</span><span class="nx">Seconds</span><span class="o">:</span><span class="mi">1000</span><span class="p">},</span><span class="nx">INTERVAL_ORDER</span><span class="o">:</span><span class="p">[</span><span class="s2">"Seconds"</span><span class="p">,</span><span class="s2">"Minutes"</span><span class="p">,</span><span class="s2">"QuarterHour"</span><span class="p">,</span><span class="s2">"HalfHour"</span><span class="p">,</span><span class="s2">"Hours"</span><span class="p">,</span><span class="s2">"Date"</span><span class="p">,</span><span class="s2">"Week"</span><span class="p">,</span><span class="s2">"Month"</span><span class="p">,</span><span class="s2">"FullYear"</span><span class="p">,</span><span class="s2">"Lustrum"</span><span class="p">,</span><span class="s2">"Decade"</span><span class="p">,</span><span class="s2">"HalfCentury"</span><span class="p">,</span><span class="s2">"Century"</span><span class="p">,</span><span class="s2">"Quincentenary"</span><span class="p">,</span><span class="s2">"Millennium"</span><span class="p">],</span><span class="nx">YEAR_FRACTIONS</span><span class="o">:</span><span class="p">{</span><span class="nx">Millenium</span><span class="o">:</span><span class="mi">1000</span><span class="p">,</span><span class="nx">Quincentenary</span><span class="o">:</span><span class="mi">500</span><span class="p">,</span><span class="nx">Century</span><span class="o">:</span><span class="mi">100</span><span class="p">,</span><span class="nx">HalfCentury</span><span class="o">:</span><span class="mi">50</span><span class="p">,</span><span class="nx">Decade</span><span class="o">:</span><span class="mi">10</span><span class="p">,</span><span class="nx">Lustrum</span><span class="o">:</span><span class="mi">5</span><span class="p">},</span><span class="nx">isAtLeastA</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">return</span><span class="p">((</span><span class="k">this</span><span class="p">.</span><span class="nx">max</span><span class="o">-</span><span class="k">this</span><span class="p">.</span><span class="nx">min</span><span class="p">)</span><span class="o">></span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVALS</span><span class="p">[</span><span class="nx">E</span><span class="p">])},</span><span class="nx">computeMaxInterval</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="k">for</span><span class="p">(</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="mi">0</span><span class="p">;</span><span class="nx">E</span><span class="o"><</span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVAL_ORDER</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span><span class="nx">E</span><span class="o">++</span><span class="p">){</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">isAtLeastA</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVAL_ORDER</span><span class="p">[</span><span class="nx">E</span><span class="p">])){</span><span class="k">break</span><span class="p">}}</span><span class="k">return</span> <span class="nx">E</span><span class="o">-</span><span class="mi">1</span><span class="p">},</span><span class="nx">getMaxInterval</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">INTERVALS</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVAL_ORDER</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">idx</span><span class="p">]]},</span><span class="nx">getYearFloor</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">,</span><span class="nx">F</span><span class="p">){</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">YEAR_FRACTIONS</span><span class="p">[</span><span class="nx">F</span><span class="p">]</span><span class="o">||</span><span class="mi">1</span><span class="p">;</span><span class="k">return</span><span class="p">(</span><span class="nx">E</span><span class="p">.</span><span class="nx">getFullYear</span><span class="p">()</span><span class="o">/</span><span class="nx">G</span><span class="o">|</span><span class="mi">0</span><span class="p">)</span><span class="o">*</span><span class="nx">G</span><span class="p">},</span><span class="nx">getYearCeil</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">,</span><span class="nx">F</span><span class="p">){</span><span class="k">if</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">YEAR_FRACTIONS</span><span class="p">[</span><span class="nx">F</span><span class="p">]){</span><span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">getYearFloor</span><span class="p">(</span><span class="nx">E</span><span class="p">,</span><span class="nx">F</span><span class="p">)</span><span class="o">+</span><span class="k">this</span><span class="p">.</span><span class="nx">YEAR_FRACTIONS</span><span class="p">[</span><span class="nx">F</span><span class="p">]}</span><span class="k">return</span> <span class="nx">E</span><span class="p">.</span><span class="nx">getFullYear</span><span class="p">()},</span><span class="nx">getWeekFloor</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="nx">thisDate</span><span class="o">=</span><span class="k">new</span> <span class="nb">Date</span><span class="p">(</span><span class="nx">E</span><span class="p">.</span><span class="nx">getFullYear</span><span class="p">(),</span><span class="nx">E</span><span class="p">.</span><span class="nx">getMonth</span><span class="p">(),</span><span class="nx">E</span><span class="p">.</span><span class="nx">getDate</span><span class="p">());</span><span class="nx">thisDate</span><span class="p">.</span><span class="nx">setDate</span><span class="p">(</span><span class="nx">E</span><span class="p">.</span><span class="nx">getDate</span><span class="p">()</span><span class="o">-</span><span class="nx">E</span><span class="p">.</span><span class="nx">getDay</span><span class="p">());</span><span class="k">return</span> <span class="nx">thisDate</span><span class="p">},</span><span class="nx">getWeekCeil</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="nx">thisDate</span><span class="o">=</span><span class="k">new</span> <span class="nb">Date</span><span class="p">(</span><span class="nx">E</span><span class="p">.</span><span class="nx">getFullYear</span><span class="p">(),</span><span class="nx">E</span><span class="p">.</span><span class="nx">getMonth</span><span class="p">(),</span><span class="nx">E</span><span class="p">.</span><span class="nx">getDate</span><span class="p">());</span><span class="nx">thisDate</span><span class="p">.</span><span class="nx">setDate</span><span class="p">(</span><span class="nx">thisDate</span><span class="p">.</span><span class="nx">getDate</span><span class="p">()</span><span class="o">+</span><span class="p">(</span><span class="mi">7</span><span class="o">-</span><span class="nx">E</span><span class="p">.</span><span class="nx">getDay</span><span class="p">()));</span><span class="k">return</span> <span class="nx">thisDate</span><span class="p">},</span><span class="nx">getHalfHour</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">return</span> <span class="nx">E</span><span class="p">.</span><span class="nx">getMinutes</span><span class="p">()</span><span class="o">></span><span class="mi">30</span><span class="o">?</span><span class="mi">30</span><span class="o">:</span><span class="mi">0</span><span class="p">},</span><span class="nx">getQuarterHour</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="nx">E</span><span class="p">.</span><span class="nx">getMinutes</span><span class="p">();</span><span class="k">if</span><span class="p">(</span><span class="nx">F</span><span class="o"><</span><span class="mi">15</span><span class="p">){</span><span class="k">return</span> <span class="mi">0</span><span class="p">}</span><span class="k">if</span><span class="p">(</span><span class="nx">F</span><span class="o"><</span><span class="mi">30</span><span class="p">){</span><span class="k">return</span> <span class="mi">15</span><span class="p">}</span><span class="k">if</span><span class="p">(</span><span class="nx">F</span><span class="o"><</span><span class="mi">45</span><span class="p">){</span><span class="k">return</span> <span class="mi">30</span><span class="p">}</span><span class="k">return</span> <span class="mi">45</span><span class="p">},</span><span class="nx">floor</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">G</span><span class="p">){</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="k">new</span> <span class="nb">Date</span><span class="p">(</span><span class="nx">G</span><span class="p">);</span><span class="kd">var</span> <span class="nx">H</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVAL_ORDER</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">idx</span><span class="p">];</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">idx</span><span class="o">></span><span class="nx">_</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVAL_ORDER</span><span class="p">,</span><span class="s2">"FullYear"</span><span class="p">)</span><span class="o">?</span><span class="nx">_</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVAL_ORDER</span><span class="p">,</span><span class="s2">"FullYear"</span><span class="p">)</span><span class="o">:</span><span class="nx">E</span><span class="p">;</span><span class="nx">F</span><span class="p">.</span><span class="nx">setFullYear</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">getYearFloor</span><span class="p">(</span><span class="nx">F</span><span class="p">,</span><span class="nx">H</span><span class="p">));</span><span class="k">switch</span><span class="p">(</span><span class="nx">H</span><span class="p">){</span><span class="k">case</span><span class="s2">"Week"</span><span class="o">:</span><span class="nx">F</span><span class="p">.</span><span class="nx">setDate</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">getWeekFloor</span><span class="p">(</span><span class="nx">F</span><span class="p">).</span><span class="nx">getDate</span><span class="p">());</span><span class="nx">E</span><span class="o">=</span><span class="nx">_</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVAL_ORDER</span><span class="p">,</span><span class="s2">"Week"</span><span class="p">);</span><span class="k">case</span><span class="s2">"HalfHour"</span><span class="o">:</span><span class="nx">F</span><span class="p">.</span><span class="nx">setMinutes</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">getHalfHour</span><span class="p">(</span><span class="nx">F</span><span class="p">));</span><span class="k">case</span><span class="s2">"QuarterHour"</span><span class="o">:</span><span class="nx">F</span><span class="p">.</span><span class="nx">setMinutes</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">getQuarterHour</span><span class="p">(</span><span class="nx">F</span><span class="p">))}</span><span class="k">while</span><span class="p">(</span><span class="nx">E</span><span class="o">--</span><span class="p">){</span><span class="nx">H</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVAL_ORDER</span><span class="p">[</span><span class="nx">E</span><span class="p">];</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="nx">_</span><span class="p">.</span><span class="nx">include</span><span class="p">([</span><span class="s2">"Week"</span><span class="p">,</span><span class="s2">"HalfHour"</span><span class="p">,</span><span class="s2">"QuarterHour"</span><span class="p">].</span><span class="nx">concat</span><span class="p">(</span><span class="nx">_</span><span class="p">.</span><span class="nx">keys</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">YEAR_FRACTIONS</span><span class="p">)),</span><span class="nx">H</span><span class="p">))){</span><span class="nx">F</span><span class="p">[</span><span class="s2">"set"</span><span class="o">+</span><span class="nx">H</span><span class="p">](</span><span class="nx">H</span><span class="o">===</span><span class="s2">"Date"</span><span class="o">?</span><span class="mi">1</span><span class="o">:</span><span class="mi">0</span><span class="p">)}}</span><span class="k">return</span> <span class="nx">F</span><span class="p">.</span><span class="nx">getTime</span><span class="p">()},</span><span class="nx">ceil</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">){</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="k">new</span> <span class="nb">Date</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">floor</span><span class="p">(</span><span class="nx">F</span><span class="p">));</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">INTERVAL_ORDER</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">idx</span><span class="p">];</span><span class="nx">E</span><span class="p">.</span><span class="nx">setFullYear</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">getYearCeil</span><span class="p">(</span><span class="nx">E</span><span class="p">,</span><span class="nx">G</span><span class="p">));</span><span class="k">switch</span><span class="p">(</span><span class="nx">G</span><span class="p">){</span><span class="k">case</span><span class="s2">"Week"</span><span class="o">:</span><span class="nx">E</span><span class="p">.</span><span class="nx">setTime</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">getWeekCeil</span><span class="p">(</span><span class="nx">E</span><span class="p">).</span><span class="nx">getTime</span><span class="p">());</span><span class="k">break</span><span class="p">;</span><span class="k">case</span><span class="s2">"HalfHour"</span><span class="o">:</span><span class="nx">E</span><span class="p">.</span><span class="nx">setMinutes</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">getHalfHour</span><span class="p">(</span><span class="nx">E</span><span class="p">)</span><span class="o">+</span><span class="mi">30</span><span class="p">);</span><span class="k">break</span><span class="p">;</span><span class="k">case</span><span class="s2">"QuarterHour"</span><span class="o">:</span><span class="nx">E</span><span class="p">.</span><span class="nx">setMinutes</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">getQuarterHour</span><span class="p">(</span><span class="nx">E</span><span class="p">)</span><span class="o">+</span><span class="mi">15</span><span class="p">);</span><span class="k">break</span><span class="p">;</span><span class="k">default</span><span class="o">:</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="nx">_</span><span class="p">.</span><span class="nx">include</span><span class="p">([</span><span class="s2">"Week"</span><span class="p">,</span><span class="s2">"HalfHour"</span><span class="p">,</span><span class="s2">"QuarterHour"</span><span class="p">].</span><span class="nx">concat</span><span class="p">(</span><span class="nx">_</span><span class="p">.</span><span class="nx">keys</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">YEAR_FRACTIONS</span><span class="p">)),</span><span class="nx">G</span><span class="p">))){</span><span class="nx">E</span><span class="p">[</span><span class="s2">"set"</span><span class="o">+</span><span class="nx">G</span><span class="p">](</span><span class="nx">E</span><span class="p">[</span><span class="s2">"get"</span><span class="o">+</span><span class="nx">G</span><span class="p">]()</span><span class="o">+</span><span class="mi">1</span><span class="p">)}}</span><span class="k">return</span> <span class="nx">E</span><span class="p">.</span><span class="nx">getTime</span><span class="p">()},</span><span class="nx">span</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">ceil</span><span class="p">(</span><span class="nx">E</span><span class="p">)</span><span class="o">-</span><span class="k">this</span><span class="p">.</span><span class="nx">floor</span><span class="p">(</span><span class="nx">E</span><span class="p">)},</span><span class="nx">getRanges</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="k">if</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">intervals</span><span class="p">){</span><span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">intervals</span><span class="p">}</span><span class="k">this</span><span class="p">.</span><span class="nx">intervals</span><span class="o">=</span><span class="p">[];</span><span class="k">for</span><span class="p">(</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">floor</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">min</span><span class="p">);</span><span class="nx">E</span><span class="o"><=</span><span class="k">this</span><span class="p">.</span><span class="nx">ceil</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">max</span><span class="p">);</span><span class="nx">E</span><span class="o">+=</span><span class="k">this</span><span class="p">.</span><span class="nx">span</span><span class="p">(</span><span class="nx">E</span><span class="p">)){</span><span class="k">this</span><span class="p">.</span><span class="nx">intervals</span><span class="p">.</span><span class="nx">push</span><span class="p">({</span><span class="nx">human</span><span class="o">:</span><span class="nx">h</span><span class="p">.</span><span class="nx">dateStr</span><span class="p">(</span><span class="nx">E</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">maxInterval</span><span class="p">),</span><span class="nx">timestamp</span><span class="o">:</span><span class="nx">E</span><span class="p">})}</span><span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">intervals</span><span class="p">}};</span><span class="kd">var</span> <span class="nx">n</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">,</span><span class="nx">G</span><span class="p">){</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="nb">Array</span><span class="p">.</span><span class="nx">prototype</span><span class="p">.</span><span class="nx">slice</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="nx">arguments</span><span class="p">,</span><span class="mi">2</span><span class="p">);</span><span class="nx">_</span><span class="p">.</span><span class="nx">each</span><span class="p">(</span><span class="nx">F</span><span class="p">,</span><span class="kd">function</span><span class="p">(</span><span class="nx">H</span><span class="p">){</span><span class="nx">E</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="nx">H</span><span class="p">,</span><span class="kd">function</span><span class="p">(){</span><span class="nx">G</span><span class="p">[</span><span class="nx">H</span><span class="p">].</span><span class="nx">apply</span><span class="p">(</span><span class="nx">G</span><span class="p">,</span><span class="nx">arguments</span><span class="p">)})})};</span><span class="kd">var</span> <span class="nx">v</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">return</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">E</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/^[^+\-\d]?([+\-]?\d+)?.*$/</span><span class="p">,</span><span class="s2">"$1"</span><span class="p">),</span><span class="mi">10</span><span class="p">)};</span><span class="kd">var</span> <span class="nx">z</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">return</span><span class="p">(</span><span class="nx">E</span><span class="o"><</span><span class="mi">10</span><span class="o">?</span><span class="s2">"0"</span><span class="o">:</span><span class="s2">""</span><span class="p">)</span><span class="o">+</span><span class="nx">E</span><span class="p">};</span><span class="kd">var</span> <span class="nx">t</span><span class="o">=</span><span class="sr">/^#*/</span><span class="p">;</span><span class="kd">var</span> <span class="nx">r</span><span class="o">=</span><span class="p">{</span><span class="nx">get</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="k">return</span> <span class="nb">window</span><span class="p">.</span><span class="nx">location</span><span class="p">.</span><span class="nx">hash</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="nx">t</span><span class="p">,</span><span class="s2">""</span><span class="p">)},</span><span class="nx">set</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="nb">window</span><span class="p">.</span><span class="nx">location</span><span class="p">.</span><span class="nx">hash</span><span class="o">=</span><span class="nx">E</span><span class="p">}};</span><span class="kd">var</span> <span class="nx">x</span><span class="o">=</span><span class="mi">1</span><span class="p">;</span><span class="kd">var</span> <span class="nx">u</span><span class="o">=</span><span class="kd">function</span><span class="p">(){</span><span class="kd">var</span> <span class="nx">E</span><span class="p">;</span><span class="k">if</span><span class="p">(</span><span class="nx">x</span><span class="o"><</span><span class="mi">10</span><span class="p">){</span><span class="nx">E</span><span class="o">=</span><span class="nx">x</span><span class="p">;</span><span class="nx">x</span><span class="o">+=</span><span class="mi">1</span><span class="p">}</span><span class="k">else</span><span class="p">{</span><span class="nx">E</span><span class="o">=</span><span class="s2">"default"</span><span class="p">}</span><span class="k">return</span> <span class="nx">E</span><span class="p">};</span><span class="kd">var</span> <span class="nx">j</span><span class="o">=</span><span class="nx">m</span><span class="p">.</span><span class="nx">Timeline</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">,</span><span class="nx">E</span><span class="p">){</span><span class="nx">_</span><span class="p">.</span><span class="nx">bindAll</span><span class="p">(</span><span class="k">this</span><span class="p">,</span><span class="s2">"render"</span><span class="p">,</span><span class="s2">"setCurrentTimeline"</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">data</span><span class="o">=</span><span class="nx">F</span><span class="p">.</span><span class="nx">sort</span><span class="p">(</span><span class="kd">function</span><span class="p">(</span><span class="nx">H</span><span class="p">,</span><span class="nx">G</span><span class="p">){</span><span class="k">return</span> <span class="nx">H</span><span class="p">.</span><span class="nx">timestamp</span><span class="o">-</span><span class="nx">G</span><span class="p">.</span><span class="nx">timestamp</span><span class="p">});</span><span class="k">this</span><span class="p">.</span><span class="nx">bySid</span><span class="o">=</span><span class="p">{};</span><span class="k">this</span><span class="p">.</span><span class="nx">cards</span><span class="o">=</span><span class="p">[];</span><span class="k">this</span><span class="p">.</span><span class="nx">series</span><span class="o">=</span><span class="p">[];</span><span class="k">this</span><span class="p">.</span><span class="nx">config</span><span class="o">=</span><span class="nx">E</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">config</span><span class="p">.</span><span class="nx">container</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">config</span><span class="p">.</span><span class="nx">container</span><span class="o">||</span><span class="s2">"#timeline"</span><span class="p">;</span><span class="nx">h</span><span class="p">.</span><span class="nx">formatter</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">config</span><span class="p">.</span><span class="nx">formatter</span><span class="o">||</span><span class="kd">function</span><span class="p">(</span><span class="nx">H</span><span class="p">,</span><span class="nx">G</span><span class="p">){</span><span class="k">return</span> <span class="nx">G</span><span class="p">}};</span><span class="nx">s</span><span class="p">(</span><span class="nx">j</span><span class="p">.</span><span class="nx">prototype</span><span class="p">);</span><span class="nx">j</span><span class="p">.</span><span class="nx">prototype</span><span class="o">=</span><span class="nx">_</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">j</span><span class="p">.</span><span class="nx">prototype</span><span class="p">,{</span><span class="nx">render</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="k">this</span><span class="p">;</span><span class="nx">c</span><span class="p">(</span><span class="k">this</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">config</span><span class="p">.</span><span class="nx">container</span><span class="p">);</span><span class="nx">e</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">config</span><span class="p">.</span><span class="nx">container</span><span class="p">).</span><span class="nx">html</span><span class="p">(</span><span class="nx">JST</span><span class="p">.</span><span class="nx">timeline</span><span class="p">());</span><span class="k">this</span><span class="p">.</span><span class="nx">bounds</span><span class="o">=</span><span class="k">new</span> <span class="nx">w</span><span class="p">();</span><span class="k">this</span><span class="p">.</span><span class="nx">bar</span><span class="o">=</span><span class="k">new</span> <span class="nx">b</span><span class="p">(</span><span class="k">this</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">cardCont</span><span class="o">=</span><span class="k">new</span> <span class="nx">q</span><span class="p">(</span><span class="k">this</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">createSeries</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">data</span><span class="p">);</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="k">new</span> <span class="nx">h</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">bounds</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">config</span><span class="p">.</span><span class="nx">interval</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">intervals</span><span class="o">=</span><span class="nx">E</span><span class="p">.</span><span class="nx">getRanges</span><span class="p">();</span><span class="k">this</span><span class="p">.</span><span class="nx">bounds</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">bounds</span><span class="p">.</span><span class="nx">min</span><span class="o">-</span><span class="nx">E</span><span class="p">.</span><span class="nx">getMaxInterval</span><span class="p">()</span><span class="o">/</span><span class="mi">2</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">bounds</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">bounds</span><span class="p">.</span><span class="nx">max</span><span class="o">+</span><span class="nx">E</span><span class="p">.</span><span class="nx">getMaxInterval</span><span class="p">()</span><span class="o">/</span><span class="mi">2</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">bar</span><span class="p">.</span><span class="nx">render</span><span class="p">();</span><span class="nx">n</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">bar</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">cardCont</span><span class="p">,</span><span class="s2">"move"</span><span class="p">,</span><span class="s2">"zoom"</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="s2">"render"</span><span class="p">);</span><span class="k">new</span> <span class="nx">f</span><span class="p">(</span><span class="s2">"in"</span><span class="p">,</span><span class="k">this</span><span class="p">);</span><span class="k">new</span> <span class="nx">f</span><span class="p">(</span><span class="s2">"out"</span><span class="p">,</span><span class="k">this</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">chooseNext</span><span class="o">=</span><span class="k">new</span> <span class="nx">C</span><span class="p">(</span><span class="s2">"next"</span><span class="p">,</span><span class="k">this</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">choosePrev</span><span class="o">=</span><span class="k">new</span> <span class="nx">C</span><span class="p">(</span><span class="s2">"prev"</span><span class="p">,</span><span class="k">this</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-card_active"</span><span class="p">).</span><span class="nx">is</span><span class="p">(</span><span class="s2">"*"</span><span class="p">)){</span><span class="k">this</span><span class="p">.</span><span class="nx">chooseNext</span><span class="p">.</span><span class="nx">click</span><span class="p">()}</span><span class="nx">e</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">config</span><span class="p">.</span><span class="nx">container</span><span class="p">).</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"click"</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">setCurrentTimeline</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="s2">"load"</span><span class="p">)},</span><span class="nx">setCurrentTimeline</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="nx">m</span><span class="p">.</span><span class="nx">currentTimeline</span><span class="o">=</span><span class="k">this</span><span class="p">},</span><span class="nx">createSeries</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">){</span><span class="k">for</span><span class="p">(</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="mi">0</span><span class="p">;</span><span class="nx">E</span><span class="o"><</span><span class="nx">F</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span><span class="nx">E</span><span class="o">++</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">add</span><span class="p">(</span><span class="nx">F</span><span class="p">[</span><span class="nx">E</span><span class="p">])}},</span><span class="nx">add</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="nx">E</span><span class="p">.</span><span class="nx">series</span> <span class="k">in</span> <span class="k">this</span><span class="p">.</span><span class="nx">bySid</span><span class="p">)){</span><span class="k">this</span><span class="p">.</span><span class="nx">bySid</span><span class="p">[</span><span class="nx">E</span><span class="p">.</span><span class="nx">series</span><span class="p">]</span><span class="o">=</span><span class="k">new</span> <span class="nx">l</span><span class="p">(</span><span class="nx">E</span><span class="p">,</span><span class="k">this</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">series</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">bySid</span><span class="p">[</span><span class="nx">E</span><span class="p">.</span><span class="nx">series</span><span class="p">])}</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">bySid</span><span class="p">[</span><span class="nx">E</span><span class="p">.</span><span class="nx">series</span><span class="p">];</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="nx">F</span><span class="p">.</span><span class="nx">add</span><span class="p">(</span><span class="nx">E</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">bounds</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">F</span><span class="p">.</span><span class="nx">max</span><span class="p">());</span><span class="k">this</span><span class="p">.</span><span class="nx">bounds</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">F</span><span class="p">.</span><span class="nx">min</span><span class="p">());</span><span class="k">this</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="s2">"cardAdd"</span><span class="p">,</span><span class="nx">E</span><span class="p">,</span><span class="nx">G</span><span class="p">)}});</span><span class="kd">var</span> <span class="nx">b</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">){</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="k">this</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="o">=</span><span class="nx">F</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-notchbar"</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">css</span><span class="p">({</span><span class="nx">left</span><span class="o">:</span><span class="mi">0</span><span class="p">});</span><span class="nx">d</span><span class="p">(</span><span class="k">this</span><span class="p">);</span><span class="nx">y</span><span class="p">(</span><span class="k">this</span><span class="p">);</span><span class="nx">_</span><span class="p">.</span><span class="nx">bindAll</span><span class="p">(</span><span class="k">this</span><span class="p">,</span><span class="s2">"moving"</span><span class="p">,</span><span class="s2">"doZoom"</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"dragging scrolled"</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">moving</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"doZoom"</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">doZoom</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"dblclick doubletap"</span><span class="p">,</span><span class="kd">function</span><span class="p">(</span><span class="nx">G</span><span class="p">){</span><span class="nx">G</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span><span class="nx">E</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-zoom_in"</span><span class="p">).</span><span class="nx">click</span><span class="p">()})};</span><span class="nx">s</span><span class="p">(</span><span class="nx">b</span><span class="p">.</span><span class="nx">prototype</span><span class="p">);</span><span class="nx">B</span><span class="p">(</span><span class="nx">b</span><span class="p">.</span><span class="nx">prototype</span><span class="p">);</span><span class="nx">b</span><span class="p">.</span><span class="nx">prototype</span><span class="o">=</span><span class="nx">_</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">b</span><span class="p">.</span><span class="nx">prototype</span><span class="p">,{</span><span class="nx">moving</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">H</span><span class="p">){</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">parent</span><span class="p">();</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="nx">G</span><span class="p">.</span><span class="nx">offset</span><span class="p">().</span><span class="nx">left</span><span class="p">;</span><span class="kd">var</span> <span class="nx">I</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">offset</span><span class="p">().</span><span class="nx">left</span><span class="p">;</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">width</span><span class="p">();</span><span class="k">if</span><span class="p">(</span><span class="nx">_</span><span class="p">.</span><span class="nx">isUndefined</span><span class="p">(</span><span class="nx">H</span><span class="p">.</span><span class="nx">deltaX</span><span class="p">)){</span><span class="nx">H</span><span class="p">.</span><span class="nx">deltaX</span><span class="o">=</span><span class="mi">0</span><span class="p">}</span><span class="k">if</span><span class="p">(</span><span class="nx">I</span><span class="o">+</span><span class="nx">E</span><span class="o">+</span><span class="nx">H</span><span class="p">.</span><span class="nx">deltaX</span><span class="o"><</span><span class="nx">F</span><span class="o">+</span><span class="nx">G</span><span class="p">.</span><span class="nx">width</span><span class="p">()){</span><span class="nx">H</span><span class="p">.</span><span class="nx">deltaX</span><span class="o">=</span><span class="p">(</span><span class="nx">F</span><span class="o">+</span><span class="nx">G</span><span class="p">.</span><span class="nx">width</span><span class="p">())</span><span class="o">-</span><span class="p">(</span><span class="nx">I</span><span class="o">+</span><span class="nx">E</span><span class="p">)}</span><span class="k">if</span><span class="p">(</span><span class="nx">I</span><span class="o">+</span><span class="nx">H</span><span class="p">.</span><span class="nx">deltaX</span><span class="o">></span><span class="nx">F</span><span class="p">){</span><span class="nx">H</span><span class="p">.</span><span class="nx">deltaX</span><span class="o">=</span><span class="nx">F</span><span class="o">-</span><span class="nx">I</span><span class="p">}</span><span class="k">this</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="s2">"move"</span><span class="p">,</span><span class="nx">H</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="s2">"move"</span><span class="p">,</span><span class="nx">H</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">move</span><span class="p">(</span><span class="s2">"move"</span><span class="p">,</span><span class="nx">H</span><span class="p">)},</span><span class="nx">doZoom</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">J</span><span class="p">,</span><span class="nx">F</span><span class="p">){</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="k">this</span><span class="p">;</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-notch_active"</span><span class="p">);</span><span class="kd">var</span> <span class="nx">I</span><span class="o">=</span><span class="kd">function</span><span class="p">(){</span><span class="k">return</span> <span class="nx">E</span><span class="p">.</span><span class="nx">length</span><span class="o">></span><span class="mi">0</span><span class="o">?</span><span class="nx">E</span><span class="p">.</span><span class="nx">position</span><span class="p">().</span><span class="nx">left</span><span class="o">:</span><span class="mi">0</span><span class="p">};</span><span class="kd">var</span> <span class="nx">H</span><span class="o">=</span><span class="nx">I</span><span class="p">();</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">animate</span><span class="p">({</span><span class="nx">width</span><span class="o">:</span><span class="nx">F</span><span class="o">+</span><span class="s2">"%"</span><span class="p">},{</span><span class="nx">step</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">M</span><span class="p">,</span><span class="nx">K</span><span class="p">){</span><span class="kd">var</span> <span class="nx">L</span><span class="o">=</span><span class="nx">e</span><span class="p">.</span><span class="nx">Event</span><span class="p">(</span><span class="s2">"dragging"</span><span class="p">);</span><span class="kd">var</span> <span class="nx">N</span><span class="o">=</span><span class="nx">H</span><span class="o">-</span><span class="nx">I</span><span class="p">();</span><span class="nx">L</span><span class="p">.</span><span class="nx">deltaX</span><span class="o">=</span><span class="nx">N</span><span class="p">;</span><span class="nx">G</span><span class="p">.</span><span class="nx">moving</span><span class="p">(</span><span class="nx">L</span><span class="p">);</span><span class="nx">H</span><span class="o">=</span><span class="nx">I</span><span class="p">();</span><span class="nx">L</span><span class="o">=</span><span class="nx">e</span><span class="p">.</span><span class="nx">Event</span><span class="p">(</span><span class="s2">"zoom"</span><span class="p">);</span><span class="nx">L</span><span class="p">.</span><span class="nx">width</span><span class="o">=</span><span class="nx">M</span><span class="o">+</span><span class="s2">"%"</span><span class="p">;</span><span class="nx">G</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="s2">"zoom"</span><span class="p">,</span><span class="nx">L</span><span class="p">)}})},</span><span class="nx">render</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">intervals</span><span class="p">;</span><span class="kd">var</span> <span class="nx">H</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">bounds</span><span class="p">;</span><span class="k">for</span><span class="p">(</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="mi">0</span><span class="p">;</span><span class="nx">F</span><span class="o"><</span><span class="nx">G</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span><span class="nx">F</span><span class="o">++</span><span class="p">){</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="nx">JST</span><span class="p">.</span><span class="nx">year_notch</span><span class="p">({</span><span class="nx">timestamp</span><span class="o">:</span><span class="nx">G</span><span class="p">[</span><span class="nx">F</span><span class="p">].</span><span class="nx">timestamp</span><span class="p">,</span><span class="nx">human</span><span class="o">:</span><span class="nx">G</span><span class="p">[</span><span class="nx">F</span><span class="p">].</span><span class="nx">human</span><span class="p">});</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">append</span><span class="p">(</span><span class="nx">e</span><span class="p">(</span><span class="nx">E</span><span class="p">).</span><span class="nx">css</span><span class="p">(</span><span class="s2">"left"</span><span class="p">,</span><span class="nx">H</span><span class="p">.</span><span class="nx">project</span><span class="p">(</span><span class="nx">G</span><span class="p">[</span><span class="nx">F</span><span class="p">].</span><span class="nx">timestamp</span><span class="p">,</span><span class="mi">100</span><span class="p">)</span><span class="o">+</span><span class="s2">"%"</span><span class="p">))}}});</span><span class="kd">var</span> <span class="nx">q</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="o">=</span><span class="nx">E</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-card_scroller_inner"</span><span class="p">)};</span><span class="nx">s</span><span class="p">(</span><span class="nx">q</span><span class="p">.</span><span class="nx">prototype</span><span class="p">);</span><span class="nx">B</span><span class="p">(</span><span class="nx">q</span><span class="p">.</span><span class="nx">prototype</span><span class="p">);</span><span class="kd">var</span> <span class="nx">l</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">,</span><span class="nx">F</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="o">=</span><span class="nx">F</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">name</span><span class="o">=</span><span class="nx">E</span><span class="p">.</span><span class="nx">series</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">color</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">name</span><span class="p">.</span><span class="nx">length</span><span class="o">></span><span class="mi">0</span><span class="o">?</span><span class="nx">u</span><span class="p">()</span><span class="o">:</span><span class="s2">"default"</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">cards</span><span class="o">=</span><span class="p">[];</span><span class="nx">_</span><span class="p">.</span><span class="nx">bindAll</span><span class="p">(</span><span class="k">this</span><span class="p">,</span><span class="s2">"render"</span><span class="p">,</span><span class="s2">"showNotches"</span><span class="p">,</span><span class="s2">"hideNotches"</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"render"</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">render</span><span class="p">)};</span><span class="nx">s</span><span class="p">(</span><span class="nx">l</span><span class="p">.</span><span class="nx">prototype</span><span class="p">);</span><span class="nx">l</span><span class="p">.</span><span class="nx">prototype</span><span class="o">=</span><span class="nx">_</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">l</span><span class="p">.</span><span class="nx">prototype</span><span class="p">,{</span><span class="nx">add</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="k">new</span> <span class="nx">k</span><span class="p">(</span><span class="nx">E</span><span class="p">,</span><span class="k">this</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">cards</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">F</span><span class="p">);</span><span class="k">return</span> <span class="nx">F</span><span class="p">},</span><span class="nx">_comparator</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">return</span> <span class="nx">E</span><span class="p">.</span><span class="nx">timestamp</span><span class="p">},</span><span class="nx">hideNotches</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="nx">E</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="s2">"TS-series_legend_item_inactive"</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="s2">"hideNotch"</span><span class="p">)},</span><span class="nx">showNotches</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="nx">E</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="s2">"TS-series_legend_item_inactive"</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="s2">"showNotch"</span><span class="p">)},</span><span class="nx">render</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">if</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">name</span><span class="p">.</span><span class="nx">length</span><span class="o">===</span><span class="mi">0</span><span class="p">){</span><span class="k">return</span><span class="p">}</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="o">=</span><span class="nx">e</span><span class="p">(</span><span class="nx">JST</span><span class="p">.</span><span class="nx">series_legend</span><span class="p">(</span><span class="k">this</span><span class="p">));</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-series_nav_container"</span><span class="p">).</span><span class="nx">append</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">toggle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">hideNotches</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">showNotches</span><span class="p">)}});</span><span class="nx">_</span><span class="p">([</span><span class="s2">"min"</span><span class="p">,</span><span class="s2">"max"</span><span class="p">]).</span><span class="nx">each</span><span class="p">(</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="nx">l</span><span class="p">.</span><span class="nx">prototype</span><span class="p">[</span><span class="nx">E</span><span class="p">]</span><span class="o">=</span><span class="kd">function</span><span class="p">(){</span><span class="k">return</span> <span class="nx">_</span><span class="p">[</span><span class="nx">E</span><span class="p">].</span><span class="nx">call</span><span class="p">(</span><span class="nx">_</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">cards</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">_comparator</span><span class="p">).</span><span class="nx">get</span><span class="p">(</span><span class="s2">"timestamp"</span><span class="p">)}});</span><span class="kd">var</span> <span class="nx">k</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">,</span><span class="nx">F</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">series</span><span class="o">=</span><span class="nx">F</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">series</span><span class="p">.</span><span class="nx">timeline</span><span class="p">;</span><span class="nx">E</span><span class="o">=</span><span class="nx">_</span><span class="p">.</span><span class="nx">clone</span><span class="p">(</span><span class="nx">E</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">timestamp</span><span class="o">=</span><span class="nx">E</span><span class="p">.</span><span class="nx">timestamp</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">attributes</span><span class="o">=</span><span class="nx">E</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">attributes</span><span class="p">.</span><span class="nx">topcolor</span><span class="o">=</span><span class="nx">F</span><span class="p">.</span><span class="nx">color</span><span class="p">;</span><span class="nx">_</span><span class="p">.</span><span class="nx">bindAll</span><span class="p">(</span><span class="k">this</span><span class="p">,</span><span class="s2">"render"</span><span class="p">,</span><span class="s2">"activate"</span><span class="p">,</span><span class="s2">"flip"</span><span class="p">,</span><span class="s2">"setPermalink"</span><span class="p">,</span><span class="s2">"toggleNotch"</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">series</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"hideNotch"</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">toggleNotch</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">series</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"showNotch"</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">toggleNotch</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"render"</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">render</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">bar</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"move"</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">flip</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">id</span><span class="o">=</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">"timestamp"</span><span class="p">),</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">"description"</span><span class="p">).</span><span class="nx">split</span><span class="p">(</span><span class="sr">/ /</span><span class="p">)[</span><span class="mi">0</span><span class="p">].</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/[^a-zA-Z\-]/g</span><span class="p">,</span><span class="s2">""</span><span class="p">)].</span><span class="nx">join</span><span class="p">(</span><span class="s2">"-"</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">cards</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="k">this</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">template</span><span class="o">=</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="p">.</span><span class="nx">card</span><span class="p">};</span><span class="nx">k</span><span class="p">.</span><span class="nx">prototype</span><span class="o">=</span><span class="nx">_</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">k</span><span class="p">.</span><span class="nx">prototype</span><span class="p">,{</span><span class="nx">get</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">attributes</span><span class="p">[</span><span class="nx">E</span><span class="p">]},</span><span class="nx">render</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="k">this</span><span class="p">.</span><span class="nx">offset</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">bounds</span><span class="p">.</span><span class="nx">project</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">timestamp</span><span class="p">,</span><span class="mi">100</span><span class="p">);</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="nx">JST</span><span class="p">.</span><span class="nx">notch</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">attributes</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">notch</span><span class="o">=</span><span class="nx">e</span><span class="p">(</span><span class="nx">E</span><span class="p">).</span><span class="nx">css</span><span class="p">({</span><span class="nx">left</span><span class="o">:</span><span class="k">this</span><span class="p">.</span><span class="nx">offset</span><span class="o">+</span><span class="s2">"%"</span><span class="p">});</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-notchbar"</span><span class="p">).</span><span class="nx">append</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">notch</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">notch</span><span class="p">.</span><span class="nx">click</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">activate</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="nx">r</span><span class="p">.</span><span class="nx">get</span><span class="p">()</span><span class="o">===</span><span class="k">this</span><span class="p">.</span><span class="nx">id</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">activate</span><span class="p">()}},</span><span class="nx">flip</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="o">||!</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">is</span><span class="p">(</span><span class="s2">":visible"</span><span class="p">)){</span><span class="k">return</span><span class="p">}</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item"</span><span class="p">).</span><span class="nx">offset</span><span class="p">().</span><span class="nx">left</span><span class="o">+</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item"</span><span class="p">).</span><span class="nx">width</span><span class="p">();</span><span class="kd">var</span> <span class="nx">I</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".timeline_setter"</span><span class="p">).</span><span class="nx">offset</span><span class="p">().</span><span class="nx">left</span><span class="o">+</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".timeline_setter"</span><span class="p">).</span><span class="nx">width</span><span class="p">();</span><span class="kd">var</span> <span class="nx">H</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">css</span><span class="p">(</span><span class="s2">"margin-left"</span><span class="p">)</span><span class="o">===</span><span class="k">this</span><span class="p">.</span><span class="nx">originalMargin</span><span class="p">;</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item"</span><span class="p">).</span><span class="nx">width</span><span class="p">()</span><span class="o"><</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".timeline_setter"</span><span class="p">).</span><span class="nx">width</span><span class="p">()</span><span class="o">/</span><span class="mi">2</span><span class="p">;</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">offset</span><span class="p">().</span><span class="nx">left</span><span class="o">-</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">parent</span><span class="p">().</span><span class="nx">offset</span><span class="p">().</span><span class="nx">left</span><span class="p">)</span><span class="o">-</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item"</span><span class="p">).</span><span class="nx">width</span><span class="p">()</span><span class="o"><</span><span class="mi">0</span><span class="p">;</span><span class="k">if</span><span class="p">(</span><span class="nx">I</span><span class="o">-</span><span class="nx">E</span><span class="o"><</span><span class="mi">0</span><span class="o">&&</span><span class="nx">H</span><span class="o">&&!</span><span class="nx">F</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">css</span><span class="p">({</span><span class="s2">"margin-left"</span><span class="o">:-</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item"</span><span class="p">).</span><span class="nx">width</span><span class="p">()</span><span class="o">+</span><span class="mi">7</span><span class="p">)});</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-css_arrow"</span><span class="p">).</span><span class="nx">css</span><span class="p">({</span><span class="nx">left</span><span class="o">:</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item"</span><span class="p">).</span><span class="nx">width</span><span class="p">()})}</span><span class="k">else</span><span class="p">{</span><span class="k">if</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">offset</span><span class="p">().</span><span class="nx">left</span><span class="o">-</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".timeline_setter"</span><span class="p">).</span><span class="nx">offset</span><span class="p">().</span><span class="nx">left</span><span class="o"><</span><span class="mi">0</span><span class="o">&&!</span><span class="nx">H</span><span class="o">&&</span><span class="nx">G</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">css</span><span class="p">({</span><span class="s2">"margin-left"</span><span class="o">:</span><span class="k">this</span><span class="p">.</span><span class="nx">originalMargin</span><span class="p">});</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-css_arrow"</span><span class="p">).</span><span class="nx">css</span><span class="p">({</span><span class="nx">left</span><span class="o">:</span><span class="mi">0</span><span class="p">})}}},</span><span class="nx">activate</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">){</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="k">this</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">hideActiveCard</span><span class="p">();</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="o">=</span><span class="nx">e</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">template</span><span class="p">({</span><span class="nx">card</span><span class="o">:</span><span class="k">this</span><span class="p">}));</span><span class="nx">c</span><span class="p">(</span><span class="k">this</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">css</span><span class="p">({</span><span class="nx">left</span><span class="o">:</span><span class="k">this</span><span class="p">.</span><span class="nx">offset</span><span class="o">+</span><span class="s2">"%"</span><span class="p">});</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-card_scroller_inner"</span><span class="p">).</span><span class="nx">append</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">originalMargin</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">css</span><span class="p">(</span><span class="s2">"margin-left"</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">delegate</span><span class="p">(</span><span class="s2">".TS-permalink"</span><span class="p">,</span><span class="s2">"click"</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">setPermalink</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">"img"</span><span class="p">).</span><span class="nx">load</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">activate</span><span class="p">)}</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">show</span><span class="p">().</span><span class="nx">addClass</span><span class="p">((</span><span class="s2">"TS-card_active"</span><span class="p">));</span><span class="k">this</span><span class="p">.</span><span class="nx">notch</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="s2">"TS-notch_active"</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">setWidth</span><span class="p">();</span><span class="k">this</span><span class="p">.</span><span class="nx">flip</span><span class="p">();</span><span class="k">this</span><span class="p">.</span><span class="nx">move</span><span class="p">();</span><span class="k">this</span><span class="p">.</span><span class="nx">series</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="s2">"cardActivate"</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">attributes</span><span class="p">)},</span><span class="nx">setWidth</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="k">this</span><span class="p">;</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="nx">_</span><span class="p">.</span><span class="nx">max</span><span class="p">(</span><span class="nx">_</span><span class="p">.</span><span class="nx">toArray</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item_user_html"</span><span class="p">).</span><span class="nx">children</span><span class="p">()),</span><span class="kd">function</span><span class="p">(</span><span class="nx">G</span><span class="p">){</span><span class="k">return</span> <span class="nx">F</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="nx">G</span><span class="p">).</span><span class="nx">width</span><span class="p">()});</span><span class="k">if</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="nx">E</span><span class="p">).</span><span class="nx">width</span><span class="p">()</span><span class="o">></span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item_year"</span><span class="p">).</span><span class="nx">width</span><span class="p">()){</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item_label"</span><span class="p">).</span><span class="nx">css</span><span class="p">(</span><span class="s2">"width"</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="nx">E</span><span class="p">).</span><span class="nx">width</span><span class="p">())}</span><span class="k">else</span><span class="p">{</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item_label"</span><span class="p">).</span><span class="nx">css</span><span class="p">(</span><span class="s2">"width"</span><span class="p">,</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item_year"</span><span class="p">).</span><span class="nx">width</span><span class="p">())}},</span><span class="nx">move</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="nx">e</span><span class="p">.</span><span class="nx">Event</span><span class="p">(</span><span class="s2">"moving"</span><span class="p">);</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item"</span><span class="p">).</span><span class="nx">offset</span><span class="p">();</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".timeline_setter"</span><span class="p">).</span><span class="nx">offset</span><span class="p">();</span><span class="k">if</span><span class="p">(</span><span class="nx">G</span><span class="p">.</span><span class="nx">left</span><span class="o"><</span><span class="nx">E</span><span class="p">.</span><span class="nx">left</span><span class="p">){</span><span class="nx">F</span><span class="p">.</span><span class="nx">deltaX</span><span class="o">=</span><span class="nx">E</span><span class="p">.</span><span class="nx">left</span><span class="o">-</span><span class="nx">G</span><span class="p">.</span><span class="nx">left</span><span class="o">+</span><span class="nx">v</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item"</span><span class="p">).</span><span class="nx">css</span><span class="p">(</span><span class="s2">"padding-left"</span><span class="p">));</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">bar</span><span class="p">.</span><span class="nx">moving</span><span class="p">(</span><span class="nx">F</span><span class="p">)}</span><span class="k">else</span><span class="p">{</span><span class="k">if</span><span class="p">(</span><span class="nx">G</span><span class="p">.</span><span class="nx">left</span><span class="o">+</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item"</span><span class="p">).</span><span class="nx">outerWidth</span><span class="p">()</span><span class="o">></span><span class="nx">E</span><span class="p">.</span><span class="nx">left</span><span class="o">+</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".timeline_setter"</span><span class="p">).</span><span class="nx">width</span><span class="p">()){</span><span class="nx">F</span><span class="p">.</span><span class="nx">deltaX</span><span class="o">=</span><span class="nx">E</span><span class="p">.</span><span class="nx">left</span><span class="o">+</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".timeline_setter"</span><span class="p">).</span><span class="nx">width</span><span class="p">()</span><span class="o">-</span><span class="p">(</span><span class="nx">G</span><span class="p">.</span><span class="nx">left</span><span class="o">+</span><span class="k">this</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-item"</span><span class="p">).</span><span class="nx">outerWidth</span><span class="p">());</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">bar</span><span class="p">.</span><span class="nx">moving</span><span class="p">(</span><span class="nx">F</span><span class="p">)}}},</span><span class="nx">setPermalink</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="nx">r</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">id</span><span class="p">)},</span><span class="nx">hideActiveCard</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-card_active"</span><span class="p">).</span><span class="nx">removeClass</span><span class="p">(</span><span class="s2">"TS-card_active"</span><span class="p">).</span><span class="nx">hide</span><span class="p">();</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-notch_active"</span><span class="p">).</span><span class="nx">removeClass</span><span class="p">(</span><span class="s2">"TS-notch_active"</span><span class="p">)},</span><span class="nx">toggleNotch</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">switch</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">case</span><span class="s2">"hideNotch"</span><span class="o">:</span><span class="k">this</span><span class="p">.</span><span class="nx">notch</span><span class="p">.</span><span class="nx">hide</span><span class="p">().</span><span class="nx">removeClass</span><span class="p">(</span><span class="s2">"TS-notch_active"</span><span class="p">).</span><span class="nx">addClass</span><span class="p">(</span><span class="s2">"TS-series_inactive"</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">hide</span><span class="p">()}</span><span class="k">return</span><span class="p">;</span><span class="k">case</span><span class="s2">"showNotch"</span><span class="o">:</span><span class="k">this</span><span class="p">.</span><span class="nx">notch</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="s2">"TS-series_inactive"</span><span class="p">).</span><span class="nx">show</span><span class="p">()}}});</span><span class="kd">var</span> <span class="nx">g</span><span class="o">=</span><span class="kd">function</span><span class="p">(){};</span><span class="kd">var</span> <span class="nx">p</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">,</span><span class="nx">E</span><span class="p">){</span><span class="nx">g</span><span class="p">.</span><span class="nx">prototype</span><span class="o">=</span><span class="nx">E</span><span class="p">.</span><span class="nx">prototype</span><span class="p">;</span><span class="nx">F</span><span class="p">.</span><span class="nx">prototype</span><span class="o">=</span><span class="k">new</span> <span class="nx">g</span><span class="p">();</span><span class="nx">F</span><span class="p">.</span><span class="nx">prototype</span><span class="p">.</span><span class="nx">constructor</span><span class="o">=</span><span class="nx">F</span><span class="p">};</span><span class="kd">var</span> <span class="nx">D</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">G</span><span class="p">,</span><span class="nx">F</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="o">=</span><span class="nx">F</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">direction</span><span class="o">=</span><span class="nx">G</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">prefix</span><span class="o">+</span><span class="nx">G</span><span class="p">);</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="k">this</span><span class="p">;</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"click"</span><span class="p">,</span><span class="kd">function</span><span class="p">(</span><span class="nx">H</span><span class="p">){</span><span class="nx">H</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span><span class="nx">E</span><span class="p">.</span><span class="nx">click</span><span class="p">(</span><span class="nx">H</span><span class="p">)})};</span><span class="kd">var</span> <span class="nx">a</span><span class="o">=</span><span class="mi">100</span><span class="p">;</span><span class="kd">var</span> <span class="nx">f</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">,</span><span class="nx">E</span><span class="p">){</span><span class="nx">D</span><span class="p">.</span><span class="nx">apply</span><span class="p">(</span><span class="k">this</span><span class="p">,</span><span class="nx">arguments</span><span class="p">)};</span><span class="nx">p</span><span class="p">(</span><span class="nx">f</span><span class="p">,</span><span class="nx">D</span><span class="p">);</span><span class="nx">f</span><span class="p">.</span><span class="nx">prototype</span><span class="o">=</span><span class="nx">_</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">f</span><span class="p">.</span><span class="nx">prototype</span><span class="p">,{</span><span class="nx">prefix</span><span class="o">:</span><span class="s2">".TS-zoom_"</span><span class="p">,</span><span class="nx">click</span><span class="o">:</span><span class="kd">function</span><span class="p">(){</span><span class="nx">a</span><span class="o">+=</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">direction</span><span class="o">===</span><span class="s2">"in"</span><span class="o">?+</span><span class="mi">100</span><span class="o">:-</span><span class="mi">100</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="nx">a</span><span class="o">>=</span><span class="mi">100</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-notchbar"</span><span class="p">).</span><span class="nx">trigger</span><span class="p">(</span><span class="s2">"doZoom"</span><span class="p">,[</span><span class="nx">a</span><span class="p">])}</span><span class="k">else</span><span class="p">{</span><span class="nx">a</span><span class="o">=</span><span class="mi">100</span><span class="p">}}});</span><span class="kd">var</span> <span class="nx">C</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">,</span><span class="nx">E</span><span class="p">){</span><span class="nx">D</span><span class="p">.</span><span class="nx">apply</span><span class="p">(</span><span class="k">this</span><span class="p">,</span><span class="nx">arguments</span><span class="p">);</span><span class="k">this</span><span class="p">.</span><span class="nx">notches</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-notch"</span><span class="p">)};</span><span class="nx">p</span><span class="p">(</span><span class="nx">C</span><span class="p">,</span><span class="nx">D</span><span class="p">);</span><span class="nx">C</span><span class="p">.</span><span class="nx">prototype</span><span class="o">=</span><span class="nx">_</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">D</span><span class="p">.</span><span class="nx">prototype</span><span class="p">,{</span><span class="nx">prefix</span><span class="o">:</span><span class="s2">".TS-choose_"</span><span class="p">,</span><span class="nx">click</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">I</span><span class="p">){</span><span class="kd">var</span> <span class="nx">F</span><span class="p">;</span><span class="kd">var</span> <span class="nx">H</span><span class="o">=</span><span class="k">this</span><span class="p">.</span><span class="nx">notches</span><span class="p">.</span><span class="nx">not</span><span class="p">(</span><span class="s2">".TS-series_inactive"</span><span class="p">);</span><span class="kd">var</span> <span class="nx">E</span><span class="o">=</span><span class="nx">H</span><span class="p">.</span><span class="nx">index</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">$</span><span class="p">(</span><span class="s2">".TS-notch_active"</span><span class="p">));</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="nx">H</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span><span class="k">if</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">direction</span><span class="o">===</span><span class="s2">"next"</span><span class="p">){</span><span class="nx">F</span><span class="o">=</span><span class="p">(</span><span class="nx">E</span><span class="o"><</span><span class="nx">G</span><span class="o">?</span><span class="nx">H</span><span class="p">.</span><span class="nx">eq</span><span class="p">(</span><span class="nx">E</span><span class="o">+</span><span class="mi">1</span><span class="p">)</span><span class="o">:</span><span class="kc">false</span><span class="p">)}</span><span class="k">else</span><span class="p">{</span><span class="nx">F</span><span class="o">=</span><span class="p">(</span><span class="nx">E</span><span class="o">></span><span class="mi">0</span><span class="o">?</span><span class="nx">H</span><span class="p">.</span><span class="nx">eq</span><span class="p">(</span><span class="nx">E</span><span class="o">-</span><span class="mi">1</span><span class="p">)</span><span class="o">:</span><span class="kc">false</span><span class="p">)}</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="nx">F</span><span class="p">){</span><span class="k">return</span><span class="p">}</span><span class="nx">F</span><span class="p">.</span><span class="nx">trigger</span><span class="p">(</span><span class="s2">"click"</span><span class="p">)}});</span><span class="nx">m</span><span class="p">.</span><span class="nx">Api</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="o">=</span><span class="nx">E</span><span class="p">};</span><span class="nx">m</span><span class="p">.</span><span class="nx">Api</span><span class="p">.</span><span class="nx">prototype</span><span class="o">=</span><span class="nx">_</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">m</span><span class="p">.</span><span class="nx">Api</span><span class="p">.</span><span class="nx">prototype</span><span class="p">,{</span><span class="nx">onLoad</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"load"</span><span class="p">,</span><span class="nx">E</span><span class="p">)},</span><span class="nx">onCardAdd</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"cardAdd"</span><span class="p">,</span><span class="nx">E</span><span class="p">)},</span><span class="nx">onCardActivate</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"cardActivate"</span><span class="p">,</span><span class="nx">E</span><span class="p">)},</span><span class="nx">onBarMove</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"move"</span><span class="p">,</span><span class="nx">E</span><span class="p">)},</span><span class="nx">activateCard</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="nx">_</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">timeline</span><span class="p">.</span><span class="nx">cards</span><span class="p">).</span><span class="nx">detect</span><span class="p">(</span><span class="kd">function</span><span class="p">(</span><span class="nx">F</span><span class="p">){</span><span class="k">return</span> <span class="nx">F</span><span class="p">.</span><span class="nx">timestamp</span><span class="o">===</span><span class="nx">E</span><span class="p">}).</span><span class="nx">activate</span><span class="p">()}});</span><span class="nx">m</span><span class="p">.</span><span class="nx">bindKeydowns</span><span class="o">=</span><span class="kd">function</span><span class="p">(){</span><span class="nx">e</span><span class="p">(</span><span class="nb">document</span><span class="p">).</span><span class="nx">bind</span><span class="p">(</span><span class="s2">"keydown"</span><span class="p">,</span><span class="kd">function</span><span class="p">(</span><span class="nx">E</span><span class="p">){</span><span class="k">if</span><span class="p">(</span><span class="nx">E</span><span class="p">.</span><span class="nx">keyCode</span><span class="o">===</span><span class="mi">39</span><span class="p">){</span><span class="nx">m</span><span class="p">.</span><span class="nx">currentTimeline</span><span class="p">.</span><span class="nx">chooseNext</span><span class="p">.</span><span class="nx">click</span><span class="p">()}</span><span class="k">else</span><span class="p">{</span><span class="k">if</span><span class="p">(</span><span class="nx">E</span><span class="p">.</span><span class="nx">keyCode</span><span class="o">===</span><span class="mi">37</span><span class="p">){</span><span class="nx">m</span><span class="p">.</span><span class="nx">currentTimeline</span><span class="p">.</span><span class="nx">choosePrev</span><span class="p">.</span><span class="nx">click</span><span class="p">()}</span><span class="k">else</span><span class="p">{</span><span class="k">return</span><span class="p">}}})};</span><span class="nx">j</span><span class="p">.</span><span class="nx">boot</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">H</span><span class="p">,</span><span class="nx">E</span><span class="p">){</span><span class="kd">var</span> <span class="nx">G</span><span class="o">=</span><span class="nx">m</span><span class="p">.</span><span class="nx">timeline</span><span class="o">=</span><span class="k">new</span> <span class="nx">j</span><span class="p">(</span><span class="nx">H</span><span class="p">,</span><span class="nx">E</span><span class="o">||</span><span class="p">{});</span><span class="kd">var</span> <span class="nx">F</span><span class="o">=</span><span class="k">new</span> <span class="nx">m</span><span class="p">.</span><span class="nx">Api</span><span class="p">(</span><span class="nx">G</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="nx">m</span><span class="p">.</span><span class="nx">pageTimelines</span><span class="p">){</span><span class="nx">m</span><span class="p">.</span><span class="nx">currentTimeline</span><span class="o">=</span><span class="nx">G</span><span class="p">;</span><span class="nx">m</span><span class="p">.</span><span class="nx">bindKeydowns</span><span class="p">()}</span><span class="nx">m</span><span class="p">.</span><span class="nx">pageTimelines</span><span class="o">=</span><span class="nx">m</span><span class="p">.</span><span class="nx">pageTimelines</span><span class="o">?</span><span class="nx">m</span><span class="p">.</span><span class="nx">pageTimelines</span><span class="o">+=</span><span class="mi">1</span><span class="o">:</span><span class="mi">1</span><span class="p">;</span><span class="nx">e</span><span class="p">(</span><span class="nx">G</span><span class="p">.</span><span class="nx">render</span><span class="p">);</span><span class="k">return</span><span class="p">{</span><span class="nx">timeline</span><span class="o">:</span><span class="nx">G</span><span class="p">,</span><span class="nx">api</span><span class="o">:</span><span class="nx">F</span><span class="p">}}})(</span><span class="nx">jQuery</span><span class="p">);(</span><span class="kd">function</span><span class="p">(){</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="o">=</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="o">||</span><span class="p">{};</span><span class="kd">var</span> <span class="nx">a</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">c</span><span class="p">){</span><span class="kd">var</span> <span class="nx">b</span><span class="o">=</span><span class="k">new</span> <span class="nb">Function</span><span class="p">(</span><span class="s2">"obj"</span><span class="p">,</span><span class="s2">"var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"</span><span class="o">+</span><span class="nx">c</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\\/g</span><span class="p">,</span><span class="s2">"\\\\"</span><span class="p">).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/'/g</span><span class="p">,</span><span class="s2">"\\'"</span><span class="p">).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/<%=([\s\S]+?)%>/g</span><span class="p">,</span><span class="kd">function</span><span class="p">(</span><span class="nx">d</span><span class="p">,</span><span class="nx">e</span><span class="p">){</span><span class="k">return</span><span class="s2">"',"</span><span class="o">+</span><span class="nx">e</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\\'/g</span><span class="p">,</span><span class="s2">"'"</span><span class="p">)</span><span class="o">+</span><span class="s2">",'"</span><span class="p">}).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/<%([\s\S]+?)%>/g</span><span class="p">,</span><span class="kd">function</span><span class="p">(</span><span class="nx">d</span><span class="p">,</span><span class="nx">e</span><span class="p">){</span><span class="k">return</span><span class="s2">"');"</span><span class="o">+</span><span class="nx">e</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\\'/g</span><span class="p">,</span><span class="s2">"'"</span><span class="p">).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/[\r\n\t]/g</span><span class="p">,</span><span class="s2">" "</span><span class="p">)</span><span class="o">+</span><span class="s2">"__p.push('"</span><span class="p">}).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\r/g</span><span class="p">,</span><span class="s2">"\\r"</span><span class="p">).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\n/g</span><span class="p">,</span><span class="s2">"\\n"</span><span class="p">).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\t/g</span><span class="p">,</span><span class="s2">"\\t"</span><span class="p">)</span><span class="o">+</span><span class="s2">"');}return __p.join('');"</span><span class="p">);</span><span class="k">return</span> <span class="nx">b</span><span class="p">};</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="p">.</span><span class="nx">card</span><span class="o">=</span><span class="nx">a</span><span class="p">(</span><span class="s1">'<div class="TS-card_container TS-card_container_<%= (card.get("series") || "").replace(/W/g, "") %>">\n<div class="TS-css_arrow TS-css_arrow_up TS-css_arrow_color_<%= card.get("topcolor") %>"></div>\n <div class="TS-item TS-item_color_<%= card.get("topcolor") %>" data-timestamp="<%= card.get("timestamp") %>">\n <div class="TS-item_label">\n <% if (!_.isEmpty(card.get("html"))){ %>\n <div class="TS-item_user_html">\n <%= card.get("html") %>\n </div>\n <% } %>\n <%= card.get("description") %>\n </div>\n <% if (!_.isEmpty(card.get("link"))){ %>\n <a class="TS-read_btn" target="_blank" href="<%= card.get("link") %>">Read More</a>\n <% } %>\n\n <div class="TS-item_year">\n <span class="TS-item_year_text"><%= (card.get("display_date") || "").length > 0 ? card.get("display_date") : card.get("date") %></span>\n <div class="TS-permalink">&#8734;</div>\n </div>\n </div>\n</div>'</span><span class="p">);</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="p">.</span><span class="nx">notch</span><span class="o">=</span><span class="nx">a</span><span class="p">(</span><span class="s1">'<div class="TS-notch TS-notch_<%= timestamp %> TS-notch_<%= series.replace(/W/g, "") %> TS-notch_color_<%= topcolor %>"></div>\n'</span><span class="p">);</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="p">.</span><span class="nx">series_legend</span><span class="o">=</span><span class="nx">a</span><span class="p">(</span><span class="s1">'<div class="TS-series_legend_item TS-series_legend_item_<%= name.replace(/W/g, "") %>">\n <span class="TS-series_legend_swatch TS-series_legend_swatch_<%= color %>">&nbsp;</span> <span class="TS-series_legend_text"><%= name %></span>\n</div>\n'</span><span class="p">);</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="p">.</span><span class="nx">timeline</span><span class="o">=</span><span class="nx">a</span><span class="p">(</span><span class="s1">'<div class="timeline_setter">\n <div class="TS-top_matter_container">\n <div class="TS-controls">\n <div class="TS-zoom-container">\n <a href="#" class="TS-zoom TS-zoom_in"><span class="TS-controls_inner_text TS-zoom_inner_text">+</span></a> \n <a href="#" class="TS-zoom TS-zoom_out"><span class="TS-controls_inner_text TS-zoom_inner_text">-</span></a>\n </div> \n <div class="TS-choose-container">\n <a href="#" class="TS-choose TS-choose_prev">&laquo;&nbsp;<span class="TS-controls_inner_text">Previous</span></a> \n <a href="#" class="TS-choose TS-choose_next"><span class="TS-controls_inner_text">Next</span>&nbsp;&raquo;</a>\n </div>\n </div>\n <div class="TS-series_nav_container"></div>\n </div>\n\n <div class="TS-notchbar_container">\n <div class="TS-notchbar"></div>\n </div>\n <div class="TS-card_scroller">\n <div class="TS-card_scroller_inner">\n </div>\n </div>\n</div>'</span><span class="p">);</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="p">.</span><span class="nx">year_notch</span><span class="o">=</span><span class="nx">a</span><span class="p">(</span><span class="s1">'<div class="TS-year_notch TS-year_notch_<%= timestamp %>">\n <span class="TS-year_notch_year_text"><%= human %></span>\n</div>\n'</span><span class="p">)})();</span>
\ No newline at end of file