kik-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ .DS_Store
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in kik-rails.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Radu Vlad
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # Kik::Rails
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'kik-rails'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install kik-rails
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/kik-rails.gemspec ADDED
@@ -0,0 +1,18 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'kik-rails/version'
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "kik-rails"
8
+ gem.version = KikRails::VERSION
9
+ gem.authors = ["Radu Vlad"]
10
+ gem.email = ["radu@dreamcodelabs.com"]
11
+ gem.description = %q{Kik assets}
12
+ gem.summary = %q{Kik assets}
13
+
14
+ gem.files = `git ls-files`.split($/)
15
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
16
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
17
+ gem.require_paths = ["lib"]
18
+ end
data/lib/kik-rails.rb ADDED
@@ -0,0 +1,2 @@
1
+ require "kik-rails/version"
2
+ require "kik-rails/engine"
@@ -0,0 +1,6 @@
1
+ module KikRails
2
+ class Engine < ::Rails::Engine
3
+ # ...
4
+ end
5
+ end
6
+
@@ -0,0 +1,3 @@
1
+ module KikRails
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,2 @@
1
+ //= require kik-rails/cards
2
+
@@ -0,0 +1,52 @@
1
+ /**
2
+ * App.js v1.10.0
3
+ * Instant mobile web app creation
4
+ * Copyright (c) 2012 Kik Interactive, http://kik.com
5
+ * Released under the MIT license
6
+ *
7
+ * swapper.js 1.1.1
8
+ * UI navigation and transition utility
9
+ * Copyright (c) 2012 Kik Interactive, http://kik.com
10
+ * Released under the MIT license
11
+ *
12
+ * clickable.js v1.3.4
13
+ * Seamless buttons for mobile devices
14
+ * Copyright (c) 2012 Kik Interactive, http://kik.com
15
+ * Released under the MIT license
16
+ *
17
+ * dialog.js v1.1.0
18
+ * Modal dialogs for mobile web apps
19
+ * Copyright (c) 2012 Kik Interactive, http://kik.com
20
+ * Released under the MIT license
21
+ *
22
+ * scrollable.js v1.0.0
23
+ * Seamless scrolling for mobile devices
24
+ * Copyright (c) 2012 Kik Interactive, http://kik.com
25
+ * Released under the MIT license
26
+ *
27
+ * iScroll v4.1.6
28
+ * Copyright (c) 2011 Matteo Spinelli, http://cubiq.org
29
+ * Released under the MIT license
30
+ *
31
+ * Permission is hereby granted, free of charge, to any person
32
+ * obtaining a copy of this software and associated documentation
33
+ * files (the "Software"), to deal in the Software without
34
+ * restriction, including without limitation the rights to use,
35
+ * copy, modify, merge, publish, distribute, sublicense, and/or sell
36
+ * copies of the Software, and to permit persons to whom the
37
+ * Software is furnished to do so, subject to the following
38
+ * conditions:
39
+ *
40
+ * The above copyright notice and this permission notice shall be
41
+ * included in all copies or substantial portions of the Software.
42
+ *
43
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
44
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
45
+ * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
46
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
47
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
48
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
49
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
50
+ * OTHER DEALINGS IN THE SOFTWARE.
51
+ */
52
+ var Swapper=function(f,d){function e(h,i,c,b){e._swapper(h,i,c,b)}if(f&&f.fn){f.extend(f.fn,{swapper:function(g,c,b){g=f(g)[0];this.forEach(function(h){e._swapper(h,g,c,b)});return this}})}if(d&&d.fn){d.fn.swapper=function(g,c,b){g=d(g)[0];this.each(function(){e._swapper(this,g,c,b)});return this}}return e}(window.Zepto,window.jQuery);Swapper._os=function(i,k){var l,h,g;if(g=/\bCPU.*OS (\d+(_\d+)?)/i.exec(i)){l="ios";h=g[1].replace("_",".")}else{if(g=/\bAndroid (\d+(\.\d+)?)/.exec(i)){l="android";h=g[1]}}var j={name:l,version:h&&k(h)};j[l]=true;return j}(navigator.userAgent,parseFloat);Swapper._isNode=function(d,c){return function(b){if(!b){return false}try{return(b instanceof d)||(b instanceof c)}catch(e){}if(typeof b!=="object"){return false}if(typeof b.nodeType!=="number"){return false}if(typeof b.nodeName!=="string"){return false}return true}}(Node,HTMLElement);Swapper._isInDOM=function(b){return function(e,d){if(!d&&!b(e)){throw TypeError("element must be a DOM node, got "+e)}while(e=e.parentNode){if(e===document){return true}}return false}}(Swapper._isNode);Swapper._insertBefore=function(){return function(d,c){c.parentNode.insertBefore(d,c)}}();Swapper._insertAfter=function(){return function(e,f){var d=f.parentNode;if(d.lastchild===f){d.appendChild(e)}else{d.insertBefore(e,f.nextSibling)}}}();Swapper._removeNode=function(){return function(b){if(b.parentNode){b.parentNode.removeChild(b)}}}();Swapper._setTransform=function(){return function(c,d){c.style["-webkit-transform"]=d;c.style["-moz-transform"]=d;c.style["-ms-transform"]=d;c.style["-o-transform"]=d;c.style.transform=d}}();Swapper._setTransition=function(){return function(d,c){if(c){d.style["-webkit-transition"]="-webkit-"+c;d.style["-moz-transition"]="-moz-"+c;d.style["-ms-transition"]="-ms-"+c;d.style["-o-transition"]="-o-"+c;d.style.transition=c}else{d.style["-webkit-transition"]="";d.style["-moz-transition"]="";d.style["-ms-transition"]="";d.style["-o-transition"]="";d.style.transition=""}}}();Swapper._getStyles=function(b){return function(g,f){var e;if(f){e=g.style}else{e=b.defaultView.getComputedStyle(g,null)}return{"-webkit-transition":e["-webkit-transition"],"-moz-transition":e["-moz-transition"],"-ms-transition":e["-ms-transition"],"-o-transition":e["-o-transition"],transition:e.transition,display:e.display,opacity:e.opacity,top:e.top,left:e.left,height:e.height,width:e.width,position:e.position}}}(document);Swapper._easings={linear:"linear",ease:"ease","ease-in":"ease-in","ease-out":"ease-out","ease-in-out":"ease-in-out","step-start":"step-start","step-end":"step-end"};Swapper._transitions={fade:[{fade:true},{fade:true}],"fade-on":[{fade:true},{}],"fade-off":[{},{fade:true},true],"scale-in":[{transform:"scale(0.01)"},{}],"scale-out":[{},{transform:"scale(0.01)"},true],"rotate-left":[{transform:"rotateY(-180deg) perspective(360px)",fade:true},{transform:"rotateY( 180deg) perspective(360px)",fade:true}],"rotate-right":[{transform:"rotateY( 180deg) perspective(360px)",fade:true},{transform:"rotateY(-180deg) perspective(360px)",fade:true}],"cube-left":[{transform:"translate3d( 50%,0,0) rotateY(-90deg) perspective(360px)"},{transform:"translate3d(-50%,0,0) rotateY( 90deg) perspective(360px)"}],"cube-right":[{transform:"translate3d(-50%,0,0) rotateY( 90deg) perspective(360px)"},{transform:"translate3d( 50%,0,0) rotateY(-90deg) perspective(360px)"}],"swap-left":[{transform:"translate3d( 65%,0,0) rotateY( 90deg) perspective(360px)"},{transform:"translate3d(-65%,0,0) rotateY(-90deg) perspective(360px)"}],"swap-right":[{transform:"translate3d(-65%,0,0) rotateY(-90deg) perspective(360px)"},{transform:"translate3d( 65%,0,0) rotateY( 90deg) perspective(360px)"}],"explode-in":[{fade:true,transform:"scale(1.25)"},{}],"explode-out":[{},{fade:true,transform:"scale(1.25)"},true],"implode-in":[{},{fade:true,transform:"scale(0.60)"},true],"implode-out":[{fade:true,transform:"scale(0.80)"},{}],"slide-left":[{transform:"translate3d( 100%,0,0)"},{transform:"translate3d(-100%,0,0)"}],"slide-right":[{transform:"translate3d(-100%,0,0)"},{transform:"translate3d( 100%,0,0)"}],"slide-up":[{transform:"translate3d(0, 100%,0)"},{transform:"translate3d(0,-100%,0)"}],"slide-down":[{transform:"translate3d(0,-100%,0)"},{transform:"translate3d(0, 100%,0)"}],"slideon-left":[{transform:"translate3d(-100%,0,0)"},{}],"slideoff-left":[{},{transform:"translate3d(-100%,0,0)"},true],"slideon-right":[{transform:"translate3d(100%,0,0)"},{}],"slideoff-right":[{},{transform:"translate3d(100%,0,0)"},true],"slideon-up":[{transform:"translate3d(0,-100%,0)"},{}],"slideoff-up":[{},{transform:"translate3d(0,-100%,0)"},true],"slideon-down":[{transform:"translate3d(0,100%,0)"},{}],"slideoff-down":[{},{transform:"translate3d(0,100%,0)"},true],"glideon-right":[{transform:"translate3d(110%,0,0)"},{transform:"translate3d(-20%,0,0)"}],"glideoff-right":[{transform:"translate3d(-20%,0,0)"},{transform:"translate3d(110%,0,0)"},true],"glideon-left":[{transform:"translate3d(-110%,0,0)"},{transform:"translate3d(20%,0,0)"}],"glideoff-left":[{transform:"translate3d(20%,0,0)"},{transform:"translate3d(-110%,0,0)"},true],"glideon-down":[{transform:"translate3d(0,110%,0)"},{transform:"translate3d(0,-20%,0)"}],"glideoff-down":[{transform:"translate3d(0,-20%,0)"},{transform:"translate3d(0,110%,0)"},true],"glideon-up":[{transform:"translate3d(0,-110%,0)"},{transform:"translate3d(0,20%,0)"}],"glideoff-up":[{transform:"translate3d(0,20%,0)"},{transform:"translate3d(0,-110%,0)"},true]};Swapper._validate=function(j,i,k){return{element:l,options:g,callback:h};function l(b){if(!j(b)){throw TypeError("element must be a DOM node, got "+b)}}function g(b){switch(typeof b){case"string":b={transition:b};break;case"undefined":b={};break;case"object":break;default:throw TypeError("options must be an object if defined, got "+b)}switch(typeof b.transition){case"string":if(!(b.transition in i)&&(b.transition!=="instant")){throw TypeError(b.transition+" is not a valid transition")}break;case"undefined":break;default:throw TypeError("transition must be a string if defined, got "+b.transition)}switch(typeof b.duration){case"number":if(b.duration<0){throw TypeError("duration must be a non-negative integer, got "+b.duration)}break;case"undefined":break;default:throw TypeError("duration must be a number if defined, got "+b.duration)}switch(typeof b.easing){case"string":if(!(b.easing in k)){throw TypeError(b.easing+" is not a valid easing")}break;case"undefined":break;default:throw TypeError("easing must be a string if defined, got "+b.easing)}return b}function h(b){switch(typeof b){case"undefined":b=function(){};break;case"function":break;default:throw TypeError("callback must be a function if defined, got "+b)}return b}}(Swapper._isNode,Swapper._transitions,Swapper._easings);Swapper._swapper=function(Z,I,ae,af,U,H,ad,ac,aa,O,Y,S,X,N){var aj="translate3d(0,0,0) scale(1)",M="fade",F="ease-in-out";var T=(Z.ios&&(Math.floor(Z.version)===5));function Q(d,e,c,b){S.element(d);S.element(e);if(typeof c==="function"){b=c;c={}}c=S.options(c);b=S.callback(b);if(d._swapper){throw Error("elem1 is currently being swapped")}else{if(e._swapper){throw Error("elem2 is currently being swapped")}}if(!ae(d,true)){throw Error("elem1 must be in the DOM to be swapped")}d._swapper=true;e._swapper=true;H(e);V(d,e,c,function(){d._swapper=false;e._swapper=false;b()})}function V(c,d,b,e){if(b.transition==="instant"){U(d,c);H(c);e();return}var f=O[b.transition||M],g=Y[b.easing||F],h=b.duration||300;U(d,c);var i=aa(c),j=aa(d),k=aa(c,true),l=aa(d,true);P(c,d,i,j);if(f[2]){af(d,c)}d.style.opacity="0";K(c,d);setTimeout(function(){d.style.opacity=j.opacity;ai(c,d,f);setTimeout(function(){W(c,d,h,g);setTimeout(function(){G(c,d,f);R(c,d,i,j,f,h,function(){H(c);L(c,d,h,g);setTimeout(function(){J(c,d,k,l,f);ag(c,d,k,l);setTimeout(function(){ah(c,d,k,l);e()},0)},0)})},0)},0)},0)}function P(e,f,c,d){var b=e.getBoundingClientRect();if(c.display!=="none"){if(T){f.style.position="absolute"}else{f.style.position="fixed"}f.style.top=b.top+"px";f.style.left=b.left+"px"}f.style.height=d.height||c.height;f.style.width=d.width||c.width}function ag(d,e,b,c){e.style.position=c.position;e.style.top=c.top;e.style.left=c.left;e.style.height=c.height;e.style.width=c.width}function ai(c,d,b){ad(c,aj);ad(d,b[0].transform||aj);if(b[0].fade){d.style.opacity="0"}if(b[1].fade){c.style.opacity="1"}}function G(c,d,b){ad(c,b[1].transform||aj);ad(d,aj);if(b[0].fade){d.style.opacity="1"}if(b[1].fade){c.style.opacity="0"}}function J(e,f,c,d,b){ad(e,"");ad(f,"");if(b[0].fade){f.style.opacity=d.opacity}if(b[1].fade){e.style.opacity=c.opacity}}function W(e,f,d,b){var c="transform "+(d/1000)+"s "+b+",opacity "+(d/1000)+"s "+b;ac(e,c);ac(f,c)}function L(d,e,c,b){ac(d,"");ac(e,"")}function K(b,c){ac(b,"");ac(c,"")}function ah(d,e,b,c){d.style["-webkit-transition"]=b["-webkit-transition"];d.style["-moz-transition"]=b["-moz-transition"];d.style["-ms-transition"]=b["-ms-transition"];d.style["-o-transition"]=b["-o-transition"];d.style.transition=b.transition;e.style["-webkit-transition"]=c["-webkit-transition"];e.style["-moz-transition"]=c["-moz-transition"];e.style["-ms-transition"]=c["-ms-transition"];e.style["-o-transition"]=c["-o-transition"];e.style.transition=c.transition}function ab(c,b){if(c.display==="none"){return false}if(b.fade){return true}if(!b.transform){return false}else{if(b.transform===aj){return false}else{return true}}}function R(b,e,k,m,h,j,f){var l;if(ab(m,h[0])){l=e;c()}else{if(ab(k,h[1])){l=b;c()}else{setTimeout(g,j)}}function c(){l.addEventListener("webkitTransitionEnd",g,false);l.addEventListener("transitionend",g,false);l.addEventListener("oTransitionEnd",g,false);l.addEventListener("otransitionend",g,false);l.addEventListener("MSTransitionEnd",g,false);l.addEventListener("transitionend",g,false)}function d(){l.removeEventListener("webkitTransitionEnd",g);l.removeEventListener("transitionend",g);l.removeEventListener("oTransitionEnd",g);l.removeEventListener("otransitionend",g);l.removeEventListener("MSTransitionEnd",g);l.removeEventListener("transitionend",g)}var i=false;function g(n){if(i||(n&&n.target&&(n.target!==l))){return}i=true;if(l){d()}f()}}return Q}(Swapper._os,Swapper._isNode,Swapper._isInDOM,Swapper._insertBefore,Swapper._insertAfter,Swapper._removeNode,Swapper._setTransform,Swapper._setTransition,Swapper._getStyles,Swapper._transitions,Swapper._easings,Swapper._validate,window,document);var Clickable=function(f,d){function e(){e._enableClicking.apply(this,arguments)}e.touchable=function(){return e._os.touchable};e.sticky=function(){e._enableStickyClick.apply(this,arguments)};if(d&&d.fn){d.fn.clickable=function(b){this.each(function(){e._enableClicking(this,b)});return this};d.fn.stickyClick=function(b){this.each(function(){e._enableStickyClick(this,b)});return this}}if(f&&f.fn){f.extend(f.fn,{clickable:function(b){this.forEach(function(c){e._enableClicking(c,b)});return this},stickyClick:function(b){this.forEach(function(c){e._enableStickyClick(c,b)});return this}})}return e}(window.Zepto,window.jQuery);Clickable._os=function(i,k){var l,h,g;if(g=/\bCPU.*OS (\d+(_\d+)?)/i.exec(i)){l="ios";h=g[1].replace("_",".")}else{if(g=/\bAndroid (\d+(\.\d+)?)/.exec(i)){l="android";h=g[1]}}var j={name:l,version:h&&k(h),touchable:!!l};j[l]=true;return j}(navigator.userAgent,parseFloat);Clickable._trimString=function(d){var c=/^\s+|\s+$/g;return function(b){return d(b).replace(c,"")}}(String);Clickable._isDOMNode=function(d,c){return function(b){if(!b){return false}try{return(b instanceof d)||(b instanceof c)}catch(e){}if(typeof b!=="object"){return false}if(typeof b.nodeType!=="number"){return false}if(typeof b.nodeName!=="string"){return false}return true}}(Node,HTMLElement);Clickable._isInDOM=function(){return function(b){while(b=b.parentNode){if(b===document){return true}}return false}}();Clickable._bindEvents=function(){return function(f,d){for(var e in d){if(f.addEventListener){f.addEventListener(e,d[e],false)}else{if(f.attachEvent){f.attachEvent("on"+e,d[e])}}}}}();Clickable._unbindEvents=function(){return function(f,d){for(var e in d){if(f.removeEventListener){f.removeEventListener(e,d[e])}}}}();Clickable._addClass=function(){return function(c,d){c.className+=" "+d}}();Clickable._removeClass=function(b){return function(e,d){e.className=b(e.className.replace(new RegExp("\\b"+d+"\\b"),""))}}(Clickable._trimString);Clickable._enableClicking=function(y,r,F,A,D,v,s){var x="active",t="data-clickable-class",z=40;var q=false,u=!!y.ios;function E(g,c){if(!r(g)){throw TypeError("element "+g+" must be a DOM element")}if(g._clickable){return}g._clickable=true;switch(typeof c){case"undefined":c=x;break;case"string":break;default:throw TypeError("active class "+c+" must be a string")}var Q=false,X=false,n,P,k,i,T;g.setAttribute(t,c);g.style["-webkit-tap-highlight-color"]="rgba(255,255,255,0)";o();return;function e(H,G){Q=true;k=+new Date();n=H;P=G;i=w(g);if(i){T=i.scrollTop;i.addEventListener("scroll",Y,true)}}function m(){if(i){i.removeEventListener("scroll",Y)}i=null;T=null;n=null;P=null;Q=false}function Y(){W()}function b(){return Q}function R(){v(g,c)}function V(){s(g,c)}function o(){A(g,{click:j});if(!y.touchable){A(g,{mousedown:U,mousemove:S,mouseout:S,mouseup:f});return}if(y.ios){A(g,{DOMNodeInsertedIntoDocument:d,DOMNodeRemovedFromDocument:h});if(F(g)){d()}}else{d()}}function d(){A(g,{touchstart:l,touchmove:W,touchcancel:W,touchend:p})}function h(){D(g,{touchstart:l,touchmove:W,touchcancel:W,touchend:p})}function j(G){G=G||window.event;if(!g.disabled&&X){X=false;setTimeout(function(){q=false},0)}else{if(G.stopImmediatePropagation){G.stopImmediatePropagation()}G.preventDefault();G.stopPropagation();G.cancelBubble=true;G.returnValue=false;return false}}function U(G){X=false;if(g.disabled||!B(G.target,g)){G.preventDefault();m();return}e(G.clientX,G.clientY);R()}function S(G){G.preventDefault();m();X=false;V()}function f(G){if(g.disabled){G.preventDefault();m();X=false;return}if(!b()){G.preventDefault();X=false}else{X=true}m();V()}function l(H){X=false;if(q||g.disabled||(H.touches.length!==1)||!B(H.target,g)){m();return}q=true;var G=H.changedTouches[0];e(G.clientX,G.clientY);if(i){if(i._isScrolling||(T<0)||(i.scrollHeight<T)){m();return}}var G=k;setTimeout(function(){if(b()&&(G===k)){R()}},z)}function W(G){X=false;m();if(G){q=false}if(g.disabled){return}V()}function p(H){var L=b(),K=i,J=T,M=n,G=P;W();if(!L||g.disabled){q=false;return}if(K){if(K._isScrolling||(K.scrollTop!==J)){return}}if(!H.stopImmediatePropagation){X=true;return}var I=+new Date()-k;if(I>z){X=true;C(g,M,G)}else{R();setTimeout(function(){V();X=true;C(g,M,G)},1)}}}function B(b,c){do{if(b===c){return true}else{if(b._clickable){return false}}}while(b=b.parentNode);return false}function C(c,e,b){var d=document.createEvent("MouseEvents");d.initMouseEvent("click",true,true,window,1,e||0,b||0,e||0,b||0,false,false,false,false,0,null);c.dispatchEvent(d)}function w(b){if(!y.ios||(y.version<5)){return}while(b=b.parentNode){if(b._scrollable){if(b._iScroll){return}return b}}}return E}(Clickable._os,Clickable._isDOMNode,Clickable._isInDOM,Clickable._bindEvents,Clickable._unbindEvents,Clickable._addClass,Clickable._removeClass);Clickable._enableStickyClick=function(h,l,i){var k="data-clickable-class";function j(b,c,d){if(!l(b)){throw TypeError("button must be a DOM element, got "+b)}switch(typeof c){case"string":break;case"function":d=c;c=undefined;break;default:throw TypeError("button active class must be a string if defined, got "+c)}if(typeof d!=="function"){throw TypeError("sticky click handler must be a function, got "+d)}i(b,c);b.addEventListener("click",g(b,d),false)}function g(b,c){return function(){var n=false,o=b.getAttribute(k),d;b.disabled=true;b.className+=" "+o;try{d=c(e)}catch(f){if(window.console&&window.console.error){if((typeof f==="object")&&f.stack){window.console.error(f.stack)}else{window.console.error(f+"")}}e()}if(d===false){e()}function e(){if(n){return}n=true;if(b.disabled){b.disabled=false;b.className=h(b.className.replace(new RegExp("\\b"+o+"\\b","g"),""))}}}}return j}(Clickable._trimString,Clickable._isDOMNode,Clickable._enableClicking);var Dialog=function(D,z,x){var F=z.querySelector("head"),t=[],w,I,s,H;if(match=/\bCPU.*OS (\d+(_\d+)?)/i.exec(navigator.userAgent)){s="ios";H=parseFloat(match[1])}else{if(match=/\bAndroid (\d+(\.\d+(\.\d+)?)?)/.exec(navigator.userAgent)){s="android";H=parseFloat(match[1])}}function C(b){b.preventDefault()}function J(b){var c=t.splice(0);setTimeout(function(){c.forEach(function(e){try{F.removeChild(e)}catch(d){}})},b||0)}function y(b){var e=z.createElement("div");e.style.margin="0 4%";e.style.padding="12px 0";e.style.border="1px solid #060607";e.style["-webkit-border-radius"]="3px";e.style["-moz-border-radius"]="3px";e.style["border-radius"]="3px";e.style["-webkit-box-sizing"]="border-box";e.style["-moz-box-sizing"]="border-box";e.style["box-sizing"]="border-box";e.style.color="#FFF";e.style.fontSize="18px";e.style.fontWeight="bold";e.style.lineHeight="20px";e.style.textShadow="0 -1px 0 #1C1C1C";e.style.textAlign="center";var c="color: #EEE !important;background-image: -webkit-gradient(linear, left top, left bottom, from(#15171D), to(#1D1E25)) !important;background-image: -webkit-linear-gradient(top, #15171D, #1D1E25) !important;background-image: -moz-linear-gradient(top, #15171D, #1D1E25) !important;background-image: -ms-linear-gradient(top, #15171D, #1D1E25) !important;background-image: -o-linear-gradient(top, #15171D, #1D1E25) !important;background-image: linear-gradient(top, #15171D, #1D1E25) !important;";if(s==="ios"){e.style.backgroundImage="-webkit-gradient(linear, left top, left bottom, from(#3D3E45), to(#191A22))";e.style.backgroundImage="-webkit-linear-gradient(top, #3D3E45, #191A22)";e.style.backgroundImage="-moz-linear-gradient(top, #3D3E45, #191A22)";e.style.backgroundImage="-ms-linear-gradient(top, #3D3E45, #191A22)";e.style.backgroundImage="-o-linear-gradient(top, #3D3E45, #191A22)";e.style.backgroundImage="linear-gradient(top, #3D3E45, #191A22)";e.style["-webkit-box-shadow"]="inset 0 1px 1px #5C5E63";e.style["-moz-box-shadow"]="inset 0 1px 1px #5C5E63";e.style["box-shadow"]="inset 0 1px 1px #5C5E63";e.style["-webkit-border-radius"]="6px";e.style["-moz-border-radius"]="6px";e.style["border-radius"]="6px";c+="-webkit-box-shadow: inset 0 1px 2px #070814 !important;-moz-box-shadow: inset 0 1px 2px #070814 !important;box-shadow: inset 0 1px 2px #070814 !important;"}else{e.style.backgroundImage="-webkit-gradient(linear, left top, left bottom, from(#3D3E45), to(#15171D))";e.style.backgroundImage="-webkit-linear-gradient(top, #3D3E45, #15171D)";e.style.backgroundImage="-moz-linear-gradient(top, #3D3E45, #15171D)";e.style.backgroundImage="-ms-linear-gradient(top, #3D3E45, #15171D)";e.style.backgroundImage="-o-linear-gradient(top, #3D3E45, #15171D)";e.style.backgroundImage="linear-gradient(top, #3D3E45, #15171D)"}e.id=("x"+Math.random()).replace(/\-|\./g,"");var d=z.createElement("link");d.rel="stylesheet";d.href="data:text/css,#"+e.id+".active{"+c+"}";F.appendChild(d);t.push(d);x&&x(e);e.addEventListener("click",b,false);return e}function B(b,d){var g=z.createElement("div");g.style.position="fixed";g.style.zIndex="5000";g.style.top="0";g.style.left="0";g.style.margin="0";g.style.padding="0";g.style.height="100%";g.style.width="100%";g.style.background="rgba(0,0,0, 0.8)";g.style.overflow="hidden";if((s==="ios")&&(H<=5)){g.style.position="absolute"}if((s!=="android")||(H>=4)){g.addEventListener("touchstart",C,false)}var h=z.createElement("div");h.style.position="absolute";h.style.bottom="0";h.style.left="0";h.style.margin="0";h.style.padding="0";h.style.width="100%";h.style.background="#000";h.style.borderTop="1px solid rgba(124,125,127, 0.2)";h.style["-webkit-box-shadow"]="0 -1px 3px rgba(0,0,0, 0.5)";h.style["-moz-box-shadow"]="0 -1px 3px rgba(0,0,0, 0.5)";h.style["box-shadow"]="0 -1px 3px rgba(0,0,0, 0.5)";h.style.color="#FFF";if(s==="android"){h.style.fontFamily='"Roboto", sans-serif'}else{h.style.fontFamily='"Helvetica Neue", Helvetica, Arial, sans-serif'}g.appendChild(h);if(b.title){var e=z.createElement("div");e.textContent=b.title;e.style.position="relative";e.style.padding="12px 8px";e.style.margin="0";e.style.background="rgba(26,27,31, 0.97)";e.style.borderBottom="1px solid rgba(18,18,21, 0.97)";e.style["-webkit-box-shadow"]="0 1px 0 rgba(49,50,55, 0.97)";e.style["-moz-box-shadow"]="0 1px 0 rgba(49,50,55, 0.97)";e.style["box-shadow"]="0 1px 0 rgba(49,50,55, 0.97)";e.style.fontSize="17px";e.style.fontWeight="bold";e.style.lineHeight="18px";e.style.textAlign="center";h.appendChild(e)}if(b.text){var c=z.createElement("div");c.textContent=b.text;c.style.padding="12px 32px 0";c.style.margin="0";c.style.backgroundImage="-webkit-gradient(linear, left top, left bottom, from(rgba(27,29,34, 0.97)), to(rgba(24,26,31, 0.97)))";c.style.backgroundImage="-webkit-linear-gradient(top, rgba(27,29,34, 0.97), rgba(24,26,31, 0.97))";c.style.backgroundImage="-moz-linear-gradient(top, rgba(27,29,34, 0.97), rgba(24,26,31, 0.97))";c.style.backgroundImage="-ms-linear-gradient(top, rgba(27,29,34, 0.97), rgba(24,26,31, 0.97))";c.style.backgroundImage="-o-linear-gradient(top, rgba(27,29,34, 0.97), rgba(24,26,31, 0.97))";c.style.backgroundImage="linear-gradient(top, rgba(27,29,34, 0.97), rgba(24,26,31, 0.97))";c.style.color="#A6A7A9";c.style.fontSize="16px";c.style.lineHeight="17px";c.style.textAlign="center";h.appendChild(c)}if(b.success||b.cancel){var f=z.createElement("div");f.style.padding="12px 0";f.style.margin="0";f.style.backgroundImage="-webkit-gradient(linear, left top, left bottom, from(rgba(24,26,31, 0.97)), to(rgba(20,22,28, 0.97)))";f.style.backgroundImage="-webkit-linear-gradient(top, rgba(24,26,31, 0.97), rgba(20,22,28, 0.97))";f.style.backgroundImage="-moz-linear-gradient(top, rgba(24,26,31, 0.97), rgba(20,22,28, 0.97))";f.style.backgroundImage="-ms-linear-gradient(top, rgba(24,26,31, 0.97), rgba(20,22,28, 0.97))";f.style.backgroundImage="-o-linear-gradient(top, rgba(24,26,31, 0.97), rgba(20,22,28, 0.97))";f.style.backgroundImage="linear-gradient(top, rgba(24,26,31, 0.97), rgba(20,22,28, 0.97))";h.appendChild(f);if(b.success){var j=y(function(){d(true)});j.textContent=b.success||"Ok"}if(b.cancel){var k=y(function(){d(false)});k.textContent=b.cancel||"Cancel"}if(b.success&&b.cancel){j.style.width="44%";j.style["float"]="right";j.style.marginLeft="0";k.style.width="44%";k.style["float"]="left";k.style.marginRight="0"}if(b.cancel){f.appendChild(k)}if(b.success){f.appendChild(j)}var i=z.createElement("div");i.style.margin="0";i.style.padding="0";i.style.clear="both";f.appendChild(i)}return g}function A(e,h,c){if(!c&&I){I.push([e,h]);return}I=I||[];var b=false;var d=B(e,f);function f(i){if(b){return}b=true;w=null;if(s==="ios"){d.style.background="rgba(0,0,0, 0)";g.style["-webkit-transform"]="translate3d(0,100%,0)";g.style["-moz-transform"]="translate3d(0,100%,0)";g.style["-ms-transform"]="translate3d(0,100%,0)";g.style["-o-transform"]="translate3d(0,100%,0)";g.style.transform="translate3d(0,100%,0)"}else{d.style.opacity="0"}J(600);setTimeout(function(){u();h(i)},0);setTimeout(function(){try{z.body.removeChild(d)}catch(j){}},600)}w=f;var g=d.firstChild;if(s==="ios"){d.style.background="rgba(0,0,0, 0)";g.style["-webkit-transform"]="translate3d(0,100%,0)";g.style["-moz-transform"]="translate3d(0,100%,0)";g.style["-ms-transform"]="translate3d(0,100%,0)";g.style["-o-transform"]="translate3d(0,100%,0)";g.style.transform="translate3d(0,100%,0)"}else{d.style.opacity="0"}z.body.appendChild(d);setTimeout(function(){if(s==="ios"){d.style["-webkit-transition"]="background 0.2s ease-in-out";d.style["-moz-transition"]="background 0.2s ease-in-out";d.style["-ms-transition"]="background 0.2s ease-in-out";d.style["-o-transition"]="background 0.2s ease-in-out";d.style.transition="background 0.2s ease-in-out";g.style["-webkit-transition"]="-webkit-transform 0.2s ease-in-out";g.style["-moz-transition"]="-moz-transform 0.2s ease-in-out";g.style["-ms-transition"]="-ms-transform 0.2s ease-in-out";g.style["-o-transition"]="-o-transform 0.2s ease-in-out";g.style.transition="transform 0.2s ease-in-out"}else{d.style["-webkit-transition"]="opacity 0.2s ease-in-out";d.style["-moz-transition"]="opacity 0.2s ease-in-out";d.style["-ms-transition"]="opacity 0.2s ease-in-out";d.style["-o-transition"]="opacity 0.2s ease-in-out";d.style.transition="opacity 0.2s ease-in-out"}setTimeout(function(){if(s==="ios"){d.style.background="rgba(0,0,0, 0.8)";setTimeout(function(){g.style["-webkit-transform"]="translate3d(0,0,0)";g.style["-moz-transform"]="translate3d(0,0,0)";g.style["-ms-transform"]="translate3d(0,0,0)";g.style["-o-transform"]="translate3d(0,0,0)";g.style.transform="translate3d(0,0,0)"},50)}else{d.style.opacity="1"}},10)},0)}function v(){if(w){w(false)}}function E(){return !!w}function u(){if(!I){return}if(!I.length){I=null;return}var b=I.shift();b.push(true);A.apply(D,b)}function G(c,b){switch(typeof c){case"string":c={text:c};break;case"object":break;default:throw TypeError("dialog options must be an object, got "+c)}switch(typeof c.title){case"string":break;case"undefined":c.title="";break;default:throw TypeError("dialog title must a string if defined, got "+c.title)}if(typeof c.text!=="string"){throw TypeError("dialog text must a string, got "+c.text)}switch(typeof c.success){case"string":break;case"undefined":c.success="Ok";break;default:throw TypeError("success button must a string if defined, got "+c.success)}switch(typeof c.cancel){case"string":break;case"undefined":c.cancel="";break;default:throw TypeError("cancel button must a string if defined, got "+c.cancel)}switch(typeof b){case"undefined":b=function(){};break;case"function":break;default:throw TypeError("callback must be a function if defined, got "+b)}return A(c,b)}G.close=function(){v()};G.status=function(){return E()};return G}(window,document,window.Clickable);var iScroll=function(u,f){function C(b){if(""===v){return b}b=b.charAt(0).toUpperCase()+b.substr(1);return v+b}var t=Math,s=f.createElement("div").style,v;a:{for(var z=["t","webkitT","MozT","msT","OT"],h,j=0,x=z.length;j<x;j++){if(h=z[j]+"ransform",h in s){v=z[j].substr(0,z[j].length-1);break a}}v=!1}var y=v?"-"+v.toLowerCase()+"-":"",B=C("transform"),D=C("transitionProperty"),K=C("transitionDuration"),G=C("transformOrigin"),I=C("transitionTimingFunction"),A=C("transitionDelay"),E=/android/gi.test(navigator.appVersion),l=/iphone|ipad/gi.test(navigator.appVersion),z=/hp-tablet/gi.test(navigator.appVersion),m=C("perspective") in s,w="ontouchstart" in u&&!z,o=!!v,J=C("transition") in s,F="onorientationchange" in u?"orientationchange":"resize",M=w?"touchstart":"mousedown",n=w?"touchmove":"mousemove",p=w?"touchend":"mouseup",q=w?"touchcancel":"mouseup",N="Moz"==v?"DOMMouseScroll":"mousewheel",O;O=!1===v?!1:{"":"transitionend",webkit:"webkitTransitionEnd",Moz:"transitionend",O:"oTransitionEnd",ms:"MSTransitionEnd"}[v];var L=u.requestAnimationFrame||u.webkitRequestAnimationFrame||u.mozRequestAnimationFrame||u.oRequestAnimationFrame||u.msRequestAnimationFrame||function(b){return setTimeout(b,1)},r=u.cancelRequestAnimationFrame||u.webkitCancelAnimationFrame||u.webkitCancelRequestAnimationFrame||u.mozCancelRequestAnimationFrame||u.oCancelRequestAnimationFrame||u.msCancelRequestAnimationFrame||clearTimeout,H=m?" translateZ(0)":"",z=function(e,d){var b=this,c;b.wrapper="object"==typeof e?e:f.getElementById(e);b.wrapper.style.overflow="hidden";b.scroller=b.wrapper.children[0];b.options={hScroll:!0,vScroll:!0,x:0,y:0,bounce:!0,bounceLock:!1,momentum:!0,lockDirection:!0,useTransform:!0,useTransition:!1,topOffset:0,checkDOMChanges:!1,handleClick:!0,hScrollbar:!0,vScrollbar:!0,fixedScrollbar:E,hideScrollbar:l,fadeScrollbar:l&&m,scrollbarClass:"",zoom:!1,zoomMin:1,zoomMax:4,doubleTapZoom:2,wheelAction:"scroll",snap:!1,snapThreshold:1,onRefresh:null,onBeforeScrollStart:function(g){g.preventDefault()},onScrollStart:null,onBeforeScrollMove:null,onScrollMove:null,onBeforeScrollEnd:null,onScrollEnd:null,onTouchEnd:null,onDestroy:null,onZoomStart:null,onZoom:null,onZoomEnd:null};for(c in d){b.options[c]=d[c]}b.x=b.options.x;b.y=b.options.y;b.options.useTransform=o&&b.options.useTransform;b.options.hScrollbar=b.options.hScroll&&b.options.hScrollbar;b.options.vScrollbar=b.options.vScroll&&b.options.vScrollbar;b.options.zoom=b.options.useTransform&&b.options.zoom;b.options.useTransition=J&&b.options.useTransition;b.options.zoom&&E&&(H="");b.scroller.style[D]=b.options.useTransform?y+"transform":"top left";b.scroller.style[K]="0";b.scroller.style[G]="0 0";b.options.useTransition&&(b.scroller.style[I]="cubic-bezier(0.33,0.66,0.66,1)");b.options.useTransform?b.scroller.style[B]="translate("+b.x+"px,"+b.y+"px)"+H:b.scroller.style.cssText+=";position:absolute;top:"+b.y+"px;left:"+b.x+"px";b.options.useTransition&&(b.options.fixedScrollbar=!0);b.refresh();b._bind(F,u);b._bind(M);w||(b._bind("mouseout",b.wrapper),"none"!=b.options.wheelAction&&b._bind(N));b.options.checkDOMChanges&&(b.checkDOMTime=setInterval(function(){b._checkDOMChanges()},500))};z.prototype={enabled:!0,x:0,y:0,steps:[],scale:1,currPageX:0,currPageY:0,pagesX:[],pagesY:[],aniTime:null,wheelZoomCount:0,handleEvent:function(b){switch(b.type){case M:if(!w&&0!==b.button){break}this._start(b);break;case n:this._move(b);break;case p:case q:this._end(b);break;case F:this._resize();break;case N:this._wheel(b);break;case"mouseout":this._mouseout(b);break;case O:this._transitionEnd(b)}},_checkDOMChanges:function(){!this.moved&&(!this.zoomed&&!(this.animating||this.scrollerW==this.scroller.offsetWidth*this.scale&&this.scrollerH==this.scroller.offsetHeight*this.scale))&&this.refresh()},_scrollbar:function(c){var b;this[c+"Scrollbar"]?(this[c+"ScrollbarWrapper"]||(b=f.createElement("div"),this.options.scrollbarClass?b.className=this.options.scrollbarClass+c.toUpperCase():b.style.cssText="position:absolute;z-index:100;"+("h"==c?"height:7px;bottom:1px;left:2px;right:"+(this.vScrollbar?"7":"2")+"px":"width:7px;bottom:"+(this.hScrollbar?"7":"2")+"px;top:2px;right:1px"),b.style.cssText+=";pointer-events:none;"+y+"transition-property:opacity;"+y+"transition-duration:"+(this.options.fadeScrollbar?"350ms":"0")+";overflow:hidden;opacity:"+(this.options.hideScrollbar?"0":"1"),this.wrapper.appendChild(b),this[c+"ScrollbarWrapper"]=b,b=f.createElement("div"),this.options.scrollbarClass||(b.style.cssText="position:absolute;z-index:100;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);"+y+"background-clip:padding-box;"+y+"box-sizing:border-box;"+("h"==c?"height:100%":"width:100%")+";"+y+"border-radius:3px;border-radius:3px"),b.style.cssText+=";pointer-events:none;"+y+"transition-property:"+y+"transform;"+y+"transition-timing-function:cubic-bezier(0.33,0.66,0.66,1);"+y+"transition-duration:0;"+y+"transform: translate(0,0)"+H,this.options.useTransition&&(b.style.cssText+=";"+y+"transition-timing-function:cubic-bezier(0.33,0.66,0.66,1)"),this[c+"ScrollbarWrapper"].appendChild(b),this[c+"ScrollbarIndicator"]=b),"h"==c?(this.hScrollbarSize=this.hScrollbarWrapper.clientWidth,this.hScrollbarIndicatorSize=t.max(t.round(this.hScrollbarSize*this.hScrollbarSize/this.scrollerW),8),this.hScrollbarIndicator.style.width=this.hScrollbarIndicatorSize+"px",this.hScrollbarMaxScroll=this.hScrollbarSize-this.hScrollbarIndicatorSize,this.hScrollbarProp=this.hScrollbarMaxScroll/this.maxScrollX):(this.vScrollbarSize=this.vScrollbarWrapper.clientHeight,this.vScrollbarIndicatorSize=t.max(t.round(this.vScrollbarSize*this.vScrollbarSize/this.scrollerH),8),this.vScrollbarIndicator.style.height=this.vScrollbarIndicatorSize+"px",this.vScrollbarMaxScroll=this.vScrollbarSize-this.vScrollbarIndicatorSize,this.vScrollbarProp=this.vScrollbarMaxScroll/this.maxScrollY),this._scrollbarPos(c,!0)):this[c+"ScrollbarWrapper"]&&(o&&(this[c+"ScrollbarIndicator"].style[B]=""),this[c+"ScrollbarWrapper"].parentNode.removeChild(this[c+"ScrollbarWrapper"]),this[c+"ScrollbarWrapper"]=null,this[c+"ScrollbarIndicator"]=null)},_resize:function(){var b=this;setTimeout(function(){b.refresh()},E?200:0)},_pos:function(c,b){this.zoomed||(c=this.hScroll?c:0,b=this.vScroll?b:0,this.options.useTransform?this.scroller.style[B]="translate("+c+"px,"+b+"px) scale("+this.scale+")"+H:(c=t.round(c),b=t.round(b),this.scroller.style.left=c+"px",this.scroller.style.top=b+"px"),this.x=c,this.y=b,this._scrollbarPos("h"),this._scrollbarPos("v"))},_scrollbarPos:function(d,c){var b="h"==d?this.x:this.y;this[d+"Scrollbar"]&&(b*=this[d+"ScrollbarProp"],0>b?(this.options.fixedScrollbar||(b=this[d+"ScrollbarIndicatorSize"]+t.round(3*b),8>b&&(b=8),this[d+"ScrollbarIndicator"].style["h"==d?"width":"height"]=b+"px"),b=0):b>this[d+"ScrollbarMaxScroll"]&&(this.options.fixedScrollbar?b=this[d+"ScrollbarMaxScroll"]:(b=this[d+"ScrollbarIndicatorSize"]-t.round(3*(b-this[d+"ScrollbarMaxScroll"])),8>b&&(b=8),this[d+"ScrollbarIndicator"].style["h"==d?"width":"height"]=b+"px",b=this[d+"ScrollbarMaxScroll"]+(this[d+"ScrollbarIndicatorSize"]-b))),this[d+"ScrollbarWrapper"].style[A]="0",this[d+"ScrollbarWrapper"].style.opacity=c&&this.options.hideScrollbar?"0":"1",this[d+"ScrollbarIndicator"].style[B]="translate("+("h"==d?b+"px,0)":"0,"+b+"px)")+H)},_start:function(e){var d=w?e.touches[0]:e,b,c;if(this.enabled){this.options.onBeforeScrollStart&&this.options.onBeforeScrollStart.call(this,e);(this.options.useTransition||this.options.zoom)&&this._transitionTime(0);this.zoomed=this.animating=this.moved=!1;this.dirY=this.dirX=this.absDistY=this.absDistX=this.distY=this.distX=0;this.options.zoom&&(w&&1<e.touches.length)&&(c=t.abs(e.touches[0].pageX-e.touches[1].pageX),b=t.abs(e.touches[0].pageY-e.touches[1].pageY),this.touchesDistStart=t.sqrt(c*c+b*b),this.originX=t.abs(e.touches[0].pageX+e.touches[1].pageX-2*this.wrapperOffsetLeft)/2-this.x,this.originY=t.abs(e.touches[0].pageY+e.touches[1].pageY-2*this.wrapperOffsetTop)/2-this.y,this.options.onZoomStart&&this.options.onZoomStart.call(this,e));if(this.options.momentum&&(this.options.useTransform?(b=getComputedStyle(this.scroller,null)[B].replace(/[^0-9\-.,]/g,"").split(","),c=1*b[4],b=1*b[5]):(c=1*getComputedStyle(this.scroller,null).left.replace(/[^0-9-]/g,""),b=1*getComputedStyle(this.scroller,null).top.replace(/[^0-9-]/g,"")),c!=this.x||b!=this.y)){this.options.useTransition?this._unbind(O):r(this.aniTime),this.steps=[],this._pos(c,b)}this.absStartX=this.x;this.absStartY=this.y;this.startX=this.x;this.startY=this.y;this.pointX=d.pageX;this.pointY=d.pageY;this.startTime=e.timeStamp||Date.now();this.options.onScrollStart&&this.options.onScrollStart.call(this,e);this._bind(n);this._bind(p);this._bind(q)}},_move:function(g){var e=w?g.touches[0]:g,i=e.pageX-this.pointX,k=e.pageY-this.pointY,b=this.x+i,c=this.y+k,d=g.timeStamp||Date.now();this.options.onBeforeScrollMove&&this.options.onBeforeScrollMove.call(this,g);if(this.options.zoom&&w&&1<g.touches.length){b=t.abs(g.touches[0].pageX-g.touches[1].pageX),c=t.abs(g.touches[0].pageY-g.touches[1].pageY),this.touchesDist=t.sqrt(b*b+c*c),this.zoomed=!0,e=1/this.touchesDistStart*this.touchesDist*this.scale,e<this.options.zoomMin?e=0.5*this.options.zoomMin*Math.pow(2,e/this.options.zoomMin):e>this.options.zoomMax&&(e=2*this.options.zoomMax*Math.pow(0.5,this.options.zoomMax/e)),this.lastScale=e/this.scale,b=this.originX-this.originX*this.lastScale+this.x,c=this.originY-this.originY*this.lastScale+this.y,this.scroller.style[B]="translate("+b+"px,"+c+"px) scale("+e+")"+H,this.options.onZoom&&this.options.onZoom.call(this,g)}else{this.pointX=e.pageX;this.pointY=e.pageY;if(0<b||b<this.maxScrollX){b=this.options.bounce?this.x+i/2:0<=b||0<=this.maxScrollX?0:this.maxScrollX}if(c>this.minScrollY||c<this.maxScrollY){c=this.options.bounce?this.y+k/2:c>=this.minScrollY||0<=this.maxScrollY?this.minScrollY:this.maxScrollY}this.distX+=i;this.distY+=k;this.absDistX=t.abs(this.distX);this.absDistY=t.abs(this.distY);6>this.absDistX&&6>this.absDistY||(this.options.lockDirection&&(this.absDistX>this.absDistY+5?(c=this.y,k=0):this.absDistY>this.absDistX+5&&(b=this.x,i=0)),this.moved=!0,this._pos(b,c),this.dirX=0<i?-1:0>i?1:0,this.dirY=0<k?-1:0>k?1:0,300<d-this.startTime&&(this.startTime=d,this.startX=this.x,this.startY=this.y),this.options.onScrollMove&&this.options.onScrollMove.call(this,g))}},_end:function(R){if(!(w&&0!==R.touches.length)){var Q=this,b=w?R.changedTouches[0]:R,c,d,e={dist:0,time:0},i={dist:0,time:0},g=(R.timeStamp||Date.now())-Q.startTime,P=Q.x,k=Q.y;Q._unbind(n);Q._unbind(p);Q._unbind(q);Q.options.onBeforeScrollEnd&&Q.options.onBeforeScrollEnd.call(Q,R);if(Q.zoomed){P=Q.scale*Q.lastScale,P=Math.max(Q.options.zoomMin,P),P=Math.min(Q.options.zoomMax,P),Q.lastScale=P/Q.scale,Q.scale=P,Q.x=Q.originX-Q.originX*Q.lastScale+Q.x,Q.y=Q.originY-Q.originY*Q.lastScale+Q.y,Q.scroller.style[K]="200ms",Q.scroller.style[B]="translate("+Q.x+"px,"+Q.y+"px) scale("+Q.scale+")"+H,Q.zoomed=!1,Q.refresh(),Q.options.onZoomEnd&&Q.options.onZoomEnd.call(Q,R)}else{if(Q.moved){if(300>g&&Q.options.momentum){e=P?Q._momentum(P-Q.startX,g,-Q.x,Q.scrollerW-Q.wrapperW+Q.x,Q.options.bounce?Q.wrapperW:0):e;i=k?Q._momentum(k-Q.startY,g,-Q.y,0>Q.maxScrollY?Q.scrollerH-Q.wrapperH+Q.y-Q.minScrollY:0,Q.options.bounce?Q.wrapperH:0):i;P=Q.x+e.dist;k=Q.y+i.dist;if(0<Q.x&&0<P||Q.x<Q.maxScrollX&&P<Q.maxScrollX){e={dist:0,time:0}}if(Q.y>Q.minScrollY&&k>Q.minScrollY||Q.y<Q.maxScrollY&&k<Q.maxScrollY){i={dist:0,time:0}}}e.dist||i.dist?(e=t.max(t.max(e.time,i.time),10),Q.options.snap&&(i=P-Q.absStartX,g=k-Q.absStartY,t.abs(i)<Q.options.snapThreshold&&t.abs(g)<Q.options.snapThreshold?Q.scrollTo(Q.absStartX,Q.absStartY,200):(i=Q._snap(P,k),P=i.x,k=i.y,e=t.max(i.time,e))),Q.scrollTo(t.round(P),t.round(k),e)):Q.options.snap?(i=P-Q.absStartX,g=k-Q.absStartY,t.abs(i)<Q.options.snapThreshold&&t.abs(g)<Q.options.snapThreshold?Q.scrollTo(Q.absStartX,Q.absStartY,200):(i=Q._snap(Q.x,Q.y),(i.x!=Q.x||i.y!=Q.y)&&Q.scrollTo(i.x,i.y,i.time))):Q._resetPos(200)}else{w&&(Q.doubleTapTimer&&Q.options.zoom?(clearTimeout(Q.doubleTapTimer),Q.doubleTapTimer=null,Q.options.onZoomStart&&Q.options.onZoomStart.call(Q,R),Q.zoom(Q.pointX,Q.pointY,1==Q.scale?Q.options.doubleTapZoom:1),Q.options.onZoomEnd&&setTimeout(function(){Q.options.onZoomEnd.call(Q,R)},200)):this.options.handleClick&&(Q.doubleTapTimer=setTimeout(function(){Q.doubleTapTimer=null;for(c=b.target;1!=c.nodeType;){c=c.parentNode}"SELECT"!=c.tagName&&("INPUT"!=c.tagName&&"TEXTAREA"!=c.tagName)&&(d=f.createEvent("MouseEvents"),d.initMouseEvent("click",!0,!0,R.view,1,b.screenX,b.screenY,b.clientX,b.clientY,R.ctrlKey,R.altKey,R.shiftKey,R.metaKey,0,null),d._fake=!0,c.dispatchEvent(d))},Q.options.zoom?250:0))),Q._resetPos(200)}Q.options.onTouchEnd&&Q.options.onTouchEnd.call(Q,R)}}},_resetPos:function(d){var c=0<=this.x?0:this.x<this.maxScrollX?this.maxScrollX:this.x,b=this.y>=this.minScrollY||0<this.maxScrollY?this.minScrollY:this.y<this.maxScrollY?this.maxScrollY:this.y;if(c==this.x&&b==this.y){if(this.moved&&(this.moved=!1,this.options.onScrollEnd&&this.options.onScrollEnd.call(this)),this.hScrollbar&&this.options.hideScrollbar&&("webkit"==v&&(this.hScrollbarWrapper.style[A]="300ms"),this.hScrollbarWrapper.style.opacity="0"),this.vScrollbar&&this.options.hideScrollbar){"webkit"==v&&(this.vScrollbarWrapper.style[A]="300ms"),this.vScrollbarWrapper.style.opacity="0"}}else{this.scrollTo(c,b,d||0)}},_wheel:function(e){var d=this,b,c;if("wheelDeltaX" in e){b=e.wheelDeltaX/12,c=e.wheelDeltaY/12}else{if("wheelDelta" in e){b=c=e.wheelDelta/12}else{if("detail" in e){b=c=3*-e.detail}else{return}}}if("zoom"==d.options.wheelAction){if(c=d.scale*Math.pow(2,1/3*(c?c/Math.abs(c):0)),c<d.options.zoomMin&&(c=d.options.zoomMin),c>d.options.zoomMax&&(c=d.options.zoomMax),c!=d.scale){!d.wheelZoomCount&&d.options.onZoomStart&&d.options.onZoomStart.call(d,e),d.wheelZoomCount++,d.zoom(e.pageX,e.pageY,c,400),setTimeout(function(){d.wheelZoomCount--;!d.wheelZoomCount&&d.options.onZoomEnd&&d.options.onZoomEnd.call(d,e)},400)}}else{b=d.x+b,c=d.y+c,0<b?b=0:b<d.maxScrollX&&(b=d.maxScrollX),c>d.minScrollY?c=d.minScrollY:c<d.maxScrollY&&(c=d.maxScrollY),0>d.maxScrollY&&d.scrollTo(b,c,0)}},_mouseout:function(c){var b=c.relatedTarget;if(b){for(;b=b.parentNode;){if(b==this.wrapper){return}}}this._end(c)},_transitionEnd:function(b){b.target==this.scroller&&(this._unbind(O),this._startAni())},_startAni:function(){var g=this,e=g.x,i=g.y,k=Date.now(),b,c,d;g.animating||(g.steps.length?(b=g.steps.shift(),b.x==e&&b.y==i&&(b.time=0),g.animating=!0,g.moved=!0,g.options.useTransition)?(g._transitionTime(b.time),g._pos(b.x,b.y),g.animating=!1,b.time?g._bind(O):g._resetPos(0)):(d=function(){var P=Date.now(),Q;if(P>=k+b.time){g._pos(b.x,b.y);g.animating=false;g.options.onAnimationEnd&&g.options.onAnimationEnd.call(g);g._startAni()}else{P=(P-k)/b.time-1;c=t.sqrt(1-P*P);P=(b.x-e)*c+e;Q=(b.y-i)*c+i;g._pos(P,Q);if(g.animating){g.aniTime=L(d)}}},d()):g._resetPos(400))},_transitionTime:function(b){b+="ms";this.scroller.style[K]=b;this.hScrollbar&&(this.hScrollbarIndicator.style[K]=b);this.vScrollbar&&(this.vScrollbarIndicator.style[K]=b)},_momentum:function(g,e,i,b,c){var e=t.abs(g)/e,d=e*e/0.0012;0<g&&d>i?(i+=c/(6/(0.0006*(d/e))),e=e*i/d,d=i):0>g&&d>b&&(b+=c/(6/(0.0006*(d/e))),e=e*b/d,d=b);return{dist:d*(0>g?-1:1),time:t.round(e/0.0006)}},_offset:function(d){for(var c=-d.offsetLeft,b=-d.offsetTop;d=d.offsetParent;){c-=d.offsetLeft,b-=d.offsetTop}d!=this.wrapper&&(c*=this.scale,b*=this.scale);return{left:c,top:b}},_snap:function(g,e){var b,c,d;d=this.pagesX.length-1;b=0;for(c=this.pagesX.length;b<c;b++){if(g>=this.pagesX[b]){d=b;break}}d==this.currPageX&&(0<d&&0>this.dirX)&&d--;g=this.pagesX[d];c=(c=t.abs(g-this.pagesX[this.currPageX]))?500*(t.abs(this.x-g)/c):0;this.currPageX=d;d=this.pagesY.length-1;for(b=0;b<d;b++){if(e>=this.pagesY[b]){d=b;break}}d==this.currPageY&&(0<d&&0>this.dirY)&&d--;e=this.pagesY[d];b=(b=t.abs(e-this.pagesY[this.currPageY]))?500*(t.abs(this.y-e)/b):0;this.currPageY=d;d=t.round(t.max(c,b))||200;return{x:g,y:e,time:d}},_bind:function(d,c,b){(c||this.scroller).addEventListener(d,this,!!b)},_unbind:function(d,c,b){(c||this.scroller).removeEventListener(d,this,!!b)},destroy:function(){this.scroller.style[B]="";this.vScrollbar=this.hScrollbar=!1;this._scrollbar("h");this._scrollbar("v");this._unbind(F,u);this._unbind(M);this._unbind(n);this._unbind(p);this._unbind(q);this.options.hasTouch||(this._unbind("mouseout",this.wrapper),this._unbind(N));this.options.useTransition&&this._unbind(O);this.options.checkDOMChanges&&clearInterval(this.checkDOMTime);this.options.onDestroy&&this.options.onDestroy.call(this)},refresh:function(){var e,d,b,c=0;d=0;this.scale<this.options.zoomMin&&(this.scale=this.options.zoomMin);this.wrapperW=this.wrapper.clientWidth||1;this.wrapperH=this.wrapper.clientHeight||1;this.minScrollY=-this.options.topOffset||0;this.scrollerW=t.round(this.scroller.offsetWidth*this.scale);this.scrollerH=t.round((this.scroller.offsetHeight+this.minScrollY)*this.scale);this.maxScrollX=this.wrapperW-this.scrollerW;this.maxScrollY=this.wrapperH-this.scrollerH+this.minScrollY;this.dirY=this.dirX=0;this.options.onRefresh&&this.options.onRefresh.call(this);this.hScroll=this.options.hScroll&&0>this.maxScrollX;this.vScroll=this.options.vScroll&&(!this.options.bounceLock&&!this.hScroll||this.scrollerH>this.wrapperH);this.hScrollbar=this.hScroll&&this.options.hScrollbar;this.vScrollbar=this.vScroll&&this.options.vScrollbar&&this.scrollerH>this.wrapperH;e=this._offset(this.wrapper);this.wrapperOffsetLeft=-e.left;this.wrapperOffsetTop=-e.top;if("string"==typeof this.options.snap){this.pagesX=[];this.pagesY=[];b=this.scroller.querySelectorAll(this.options.snap);e=0;for(d=b.length;e<d;e++){c=this._offset(b[e]),c.left+=this.wrapperOffsetLeft,c.top+=this.wrapperOffsetTop,this.pagesX[e]=c.left<this.maxScrollX?this.maxScrollX:c.left*this.scale,this.pagesY[e]=c.top<this.maxScrollY?this.maxScrollY:c.top*this.scale}}else{if(this.options.snap){for(this.pagesX=[];c>=this.maxScrollX;){this.pagesX[d]=c,c-=this.wrapperW,d++}this.maxScrollX%this.wrapperW&&(this.pagesX[this.pagesX.length]=this.maxScrollX-this.pagesX[this.pagesX.length-1]+this.pagesX[this.pagesX.length-1]);d=c=0;for(this.pagesY=[];c>=this.maxScrollY;){this.pagesY[d]=c,c-=this.wrapperH,d++}this.maxScrollY%this.wrapperH&&(this.pagesY[this.pagesY.length]=this.maxScrollY-this.pagesY[this.pagesY.length-1]+this.pagesY[this.pagesY.length-1])}}this._scrollbar("h");this._scrollbar("v");this.zoomed||(this.scroller.style[K]="0",this._resetPos(200))},scrollTo:function(g,e,b,c){var d=g;this.stop();d.length||(d=[{x:g,y:e,time:b,relative:c}]);g=0;for(e=d.length;g<e;g++){d[g].relative&&(d[g].x=this.x-d[g].x,d[g].y=this.y-d[g].y),this.steps.push({x:d[g].x,y:d[g].y,time:d[g].time||0})}this._startAni()},scrollToElement:function(d,c){var b;if(d=d.nodeType?d:this.scroller.querySelector(d)){b=this._offset(d),b.left+=this.wrapperOffsetLeft,b.top+=this.wrapperOffsetTop,b.left=0<b.left?0:b.left<this.maxScrollX?this.maxScrollX:b.left,b.top=b.top>this.minScrollY?this.minScrollY:b.top<this.maxScrollY?this.maxScrollY:b.top,c=void 0===c?t.max(2*t.abs(b.left),2*t.abs(b.top)):c,this.scrollTo(b.left,b.top,c)}},scrollToPage:function(d,c,b){b=void 0===b?400:b;this.options.onScrollStart&&this.options.onScrollStart.call(this);if(this.options.snap){d="next"==d?this.currPageX+1:"prev"==d?this.currPageX-1:d,c="next"==c?this.currPageY+1:"prev"==c?this.currPageY-1:c,d=0>d?0:d>this.pagesX.length-1?this.pagesX.length-1:d,c=0>c?0:c>this.pagesY.length-1?this.pagesY.length-1:c,this.currPageX=d,this.currPageY=c,d=this.pagesX[d],c=this.pagesY[c]}else{if(d*=-this.wrapperW,c*=-this.wrapperH,d<this.maxScrollX&&(d=this.maxScrollX),c<this.maxScrollY){c=this.maxScrollY}}this.scrollTo(d,c,b)},disable:function(){this.stop();this._resetPos(0);this.enabled=!1;this._unbind(n);this._unbind(p);this._unbind(q)},enable:function(){this.enabled=!0},stop:function(){this.options.useTransition?this._unbind(O):r(this.aniTime);this.steps=[];this.animating=this.moved=!1},zoom:function(g,e,b,c){var d=b/this.scale;this.options.useTransform&&(this.zoomed=!0,c=void 0===c?200:c,g=g-this.wrapperOffsetLeft-this.x,e=e-this.wrapperOffsetTop-this.y,this.x=g-g*d+this.x,this.y=e-e*d+this.y,this.scale=b,this.refresh(),this.x=0<this.x?0:this.x<this.maxScrollX?this.maxScrollX:this.x,this.y=this.y>this.minScrollY?this.minScrollY:this.y<this.maxScrollY?this.maxScrollY:this.y,this.scroller.style[K]=c+"ms",this.scroller.style[B]="translate("+this.x+"px,"+this.y+"px) scale("+b+")"+H,this.zoomed=!1)},isReady:function(){return !this.moved&&!this.zoomed&&!this.animating}};s=null;return z}(window,document);var Scrollable=function(j,k){function i(){i._enableScrolling.apply(this,arguments)}i.node=function(){return i._getScrollableNode.apply(this,arguments)};if(j&&j.fn){j.extend(j.fn,{scrollable:function(b){this.forEach(function(c){i._enableScrolling(c,b)});return this},scrollableNode:function(){return $(this.map(function(){return i._getScrollableNode(this)}))}});var n=j.fn.scrollTop,l=j.fn.scrollLeft;j.fn.scrollTop=function(b){if(typeof b==="undefined"){var d=this[0],c=i._isDOMNode(d);if(c&&d._scrollTop){return d._scrollTop()}else{if(n){return n.apply(this,arguments)}else{if(c){return d.scrollTop}else{return null}}}}this.forEach(function(f){var e=i._isDOMNode(f);if(e&&f._scrollTop){f._scrollTop(b)}else{if(n){n.call(j(f),b)}else{if(e){f.scrollTop=b}}}});return this};j.fn.scrollLeft=function(b){if(typeof b==="undefined"){var d=this[0],c=i._isDOMNode(d);if(c&&d._scrollLeft){return d._scrollLeft()}else{if(n){return l.apply(this,arguments)}else{if(c){return d.scrollLeft}else{return null}}}}this.forEach(function(f){var e=i._isDOMNode(f);if(e&&f._scrollLeft){f._scrollLeft(b)}else{if(l){l.call(j(f),b)}else{if(e){f.scrollLeft=b}}}});return this}}if(k&&k.fn){k.fn.scrollable=function(b){this.each(function(){i._enableScrolling(this,b)});return this};k.fn.scrollableNode=function(){return $(this.map(function(){return i._getScrollableNode(this)}))};var o=k.fn.scrollTop,m=k.fn.scrollLeft;k.fn.scrollTop=function(b){if(typeof b==="undefined"){var c=this[0];if(i._isDOMNode(c)&&c._scrollTop){return c._scrollTop()}else{return o.apply(this,arguments)}}this.each(function(){if(i._isDOMNode(this)&&this._scrollTop){this._scrollTop(b)}else{o.call(k(this),b)}});return this};k.fn.scrollLeft=function(b){if(typeof b==="undefined"){var c=this[0];if(i._isDOMNode(c)&&c._scrollLeft){return c._scrollLeft()}else{return m.apply(this,arguments)}}this.each(function(){if(i._isDOMNode(this)&&this._scrollLeft){this._scrollLeft(b)}else{m.call(k(this),b)}});return this}}return i}(window.Zepto,window.jQuery);Scrollable._os=function(i,k){var l,h,m;if(m=/\bCPU.*OS (\d+(_\d+)?)/i.exec(i)){l="ios";h=m[1].replace("_",".")}else{if(m=/\bAndroid (\d+(\.\d+)?)/.exec(i)){l="android";h=m[1]}}var j={name:l,version:h&&k(h),mobile:!!l};j[l]=true;return j}(navigator.userAgent,parseFloat);Scrollable._isDOMNode=function(d,e){return function(b){if(!b){return false}try{return(b instanceof d)||(b instanceof e)}catch(c){}if(typeof b!=="object"){return false}if(typeof b.nodeType!=="number"){return false}if(typeof b.nodeName!=="string"){return false}return true}}(Node,HTMLElement);Scrollable._findInArray=function(c){return function(j,h,b){if(c){return c.call(j,h,b)}for(var i=b||0,k=j.length;i<k;i++){if((i in j)&&(j[i]===h)){return i}}return -1}}(Array.prototype.indexOf);Scrollable._forEachInArray=function(c){return function(j,b,i){if(c){return c.call(j,b,i)}for(var h=0,k=j.length;h<k;h++){if(h in j){b.call(i,j[h],h,j)}}}}(Array.prototype.forEach);Scrollable._onReady=function(q,p,k){var l=[],m=false;o(n);return function(b){if(m){setTimeout(b,0)}else{l.push(b)}};function n(){if(m){return}m=true;k(l,function(b){setTimeout(b,0)})}function j(b){try{q.documentElement.doScroll("left")}catch(c){setTimeout(function(){j(b)},1);return}b()}function o(b){if(q.readyState==="complete"){setTimeout(b,0);return}if(q.addEventListener){q.addEventListener("DOMContentLoaded",b,false);p.addEventListener("load",b,false)}else{if(q.attachEvent){q.attachEvent("onreadystatechange",b);p.attachEvent("onload",b);var d=false;try{d=(p.frameElement===null)}catch(c){}if(q.documentElement.doScroll&&d){setTimeout(function(){j(b)},0)}}}}}(document,window,Scrollable._forEachInArray);Scrollable._scrollWatcher=function(d){return e;function e(t){var s=false,x=false,q=t.scrollTop;t.addEventListener("touchstart",u);t.addEventListener("touchmove",y);t.addEventListener("touchcancel",v);t.addEventListener("touchend",b);t.addEventListener("scroll",r);c();t._resetScrolling=w;return;function c(){t._isScrolling=(x||s)}function w(){x=false;s=false;c()}function p(f,g,h){if((f.touches.length<=g)&&((typeof h==="undefined")||(f.changedTouches.length<=h))){return false}f.preventDefault();w();return true}function u(f){if(p(f,1)){return}w()}function y(f){if(p(f,1)){return}s=true;q=t.scrollTop;c()}function v(f){if(p(f,0,1)){return}w()}function b(g){if(p(g,0,1)){return}var f;if(s){f=Math.abs(t.scrollTop-q);if(f>5){x=true}s=false;c()}}function r(){if(!s&&x){w()}}}}(Scrollable._os);Scrollable._getScrollableNode=function(c){return function(b){if(c(b)&&b._iScroll){return b.childNodes[0]}else{return b}}}(Scrollable._isDOMNode);Scrollable._enableScrolling=function(C,t,x,D,E,s,v,u){var y=z();return r;function z(){if((C.ios&&(C.version>=5))||(C.android&&(C.version>=4))){return true}else{return false}}function r(b,c){if(!t(b)){throw b+" is not a DOM element"}if(b._scrollable){return}b._scrollable=true;var d;b._scrollTop=function(e){if(typeof e==="undefined"){return d?Math.max(parseInt(-d.y),0):b.scrollTop}if(!d&&(!C.mobile||y)){b.scrollTop=e;return}x(function(){d.scrollTo(d.x,Math.min(-e,0),1)})};b._scrollLeft=function(e){if(typeof e==="undefined"){return d?Math.max(parseInt(-d.x),0):b.scrollLeft}if(!d&&(!C.mobile||y)){b.scrollLeft=e;return}x(function(){d.scrollTo(Math.min(-e,0),d.y,1)})};b.style.overflow="scroll";if(!c){if(!C.mobile){return}if(y){b.style["-webkit-overflow-scrolling"]="touch";if(C.ios){E(b)}return}}F(b,function(e){d=e})}function F(c,b){c._iScroll=true;w(c);var d=B(c);x(function(){var e=new s(c,{checkDOMChanges:true,useTransform:true,useTransition:true,hScrollbar:false,vScrollbar:false,bounce:!!C.ios,onScrollMove:d,onBeforeScrollEnd:d,onScrollEnd:d,onBeforeScrollStart:A});b(e)})}function w(c){var b=u.createElement("div"),d=Array.prototype.slice.call(c.childNodes||[]);D(d,function(e){var f=c.removeChild(e);b.appendChild(f)});c.appendChild(b);c.style.position="relative";b.style["min-height"]="100%";b.style["min-width"]="100%"}function B(c){var d,b;return function(){var e=c._scrollTop(),f=c._scrollLeft();if((e===d)&&(f===b)){return}d=e;b=f;G(c)}}function G(b){if(b.dispatchEvent){var c=u.createEvent("MouseEvents");c.initMouseEvent("scroll",false,false,v,0,0,0,0,0,false,false,false,false,0,null);b.dispatchEvent(c)}}function A(b){var c=b.target;while(c.nodeType!==1){c=c.parentNode}if((c.tagName!=="SELECT")&&(c.tagName!=="INPUT")&&(c.tagName!=="TEXTAREA")){b.preventDefault()}}}(Scrollable._os,Scrollable._isDOMNode,Scrollable._onReady,Scrollable._forEachInArray,Scrollable._scrollWatcher,iScroll,window,document);var App={};App._utils=function(j,l,c){var k=function(u){var s=/([^&=]+)=([^&]+)/g,q=/\+/g;var p={},o,r,t;if(u){u=u.replace(q,"%20");while((o=s.exec(u))){r=decodeURIComponent(o[1]);t=decodeURIComponent(o[2]);p[r]=t}}return p}(j.location.href.split("?")[1]);var e=function(t){var r=false,q,o,p;if(k._app_platform==="android"){r=true;q="android";o="4.2"}else{if(k._app_platform==="ios"){r=true;q="ios";o="6.0"}else{if(p=/\bCPU.*OS (\d+(_\d+)?)/i.exec(t)){q="ios";o=p[1].replace("_",".")}else{if(p=/\bAndroid (\d+(\.\d+)?)/.exec(t)){q="android";o=p[1]}}}}var s={faked:r,name:q,versionString:o,version:o&&parseFloat(o)};s[q]=true;if(s.ios){l.body.className+=" app-ios"}else{if(s.android){l.body.className+=" app-android"}}if(s.faked||(!s.ios&&!s.android)){l.body.className+=" app-no-scrollbar"}return s}(navigator.userAgent);var i=function(o){if(o){return function(p,r,q){return o.call(p,r,q)}}else{return function(q,t,r){for(var s=0,p=q.length;s<p;s++){if(s in q){t.call(r,q[s],s,q)}}}}}(Array.prototype.forEach);function h(o){if(Array.isArray){return Array.isArray(o)}else{return Object.prototype.toString.call(o)!=="[object Array]"}}function m(p){if(!p){return false}try{return(p instanceof Node)||(p instanceof HTMLElement)}catch(o){}if(typeof p!=="object"){return false}if(typeof p.nodeType!=="number"){return false}if(typeof p.nodeName!=="string"){return false}return true}function f(p,o){p.style["-webkit-transform"]=o;p.style["-moz-transform"]=o;p.style["-ms-transform"]=o;p.style["-o-transform"]=o;p.style.transform=o}function d(o,p){if(p){o.style["-webkit-transition"]="-webkit-"+p;o.style["-moz-transition"]="-moz-"+p;o.style["-ms-transition"]="-ms-"+p;o.style["-o-transition"]="-o-"+p;o.style.transition=p}else{o.style["-webkit-transition"]="";o.style["-moz-transition"]="";o.style["-ms-transition"]="";o.style["-o-transition"]="";o.style.transition=""}}function g(p,q){var o;if(q){o=p.style}else{o=l.defaultView.getComputedStyle(p,null)}return{display:o.display,opacity:o.opacity,paddingRight:o.paddingRight,paddingLeft:o.paddingLeft,marginRight:o.marginRight,marginLeft:o.marginLeft,borderRightWidth:o.borderRightWidth,borderLeftWidth:o.borderLeftWidth,top:o.top,left:o.left,height:o.height,width:o.width,position:o.position}}function n(p){var o=0;o+=parseInt(p.width||0);o+=parseInt(p.paddingLeft||0);o+=parseInt(p.paddingRight||0);o+=parseInt(p.borderLeftWidth||0);o+=parseInt(p.borderRightWidth||0);o+=parseInt(p.marginLeft||0);o+=parseInt(p.marginRight||0);return o}function b(s,r,v,u){if(typeof s.length!=="number"){s=[s]}var q=s.map(function(w){return w.elem.style.opacity});o(function(){t(function(){p(function(){u()})})});function o(w){s.forEach(function(x){if(typeof x.transitionStart!=="undefined"){f(x.elem,x.transitionStart)}if(typeof x.opacityStart!=="undefined"){x.elem.style.opacity=x.opacityStart+""}});setTimeout(function(){var x="transform "+(r/1000)+"s ease-in-out, opacity "+(r/1000)+"s ease-in-out";s.forEach(function(y){d(y.elem,x)});setTimeout(w,0)},0)}function t(z){s.forEach(function(A){if(typeof A.transitionEnd!=="undefined"){f(A.elem,A.transitionEnd)}if(typeof A.opacityEnd!=="undefined"){A.elem.style.opacity=A.opacityEnd+""}});s.forEach(function(A){A.elem.addEventListener("webkitTransitionEnd",x,false);A.elem.addEventListener("transitionend",x,false);A.elem.addEventListener("oTransitionEnd",x,false);A.elem.addEventListener("otransitionend",x,false);A.elem.addEventListener("MSTransitionEnd",x,false);A.elem.addEventListener("transitionend",x,false)});var w=false;function y(C){for(var B=0,A=s.length;B<A;B++){if(C===s[B].elem){return true}}return false}function x(A){if(w||!y(A.target)){return}w=true;s.forEach(function(B){B.elem.removeEventListener("webkitTransitionEnd",x);B.elem.removeEventListener("transitionend",x);B.elem.removeEventListener("oTransitionEnd",x);B.elem.removeEventListener("otransitionend",x);B.elem.removeEventListener("MSTransitionEnd",x);B.elem.removeEventListener("transitionend",x)});z()}}function p(w){s.forEach(function(x){d(x.elem,"")});setTimeout(function(){s.forEach(function(y,x){f(y.elem,"");y.elem.style.opacity=q[x]});w()},0)}}c.platform=e.name;c.platformVersion=e.version;return{query:k,os:e,forEach:i,isArray:h,isNode:m,setTransform:f,setTransition:d,animate:b,getStyles:g,getTotalWidth:n}}(window,document,App);App._metrics=function(f,e){var b=false;e.enableGoogleAnalytics=function(){g()};return{watchPage:c};function g(){b=true}function d(h,i){if(!b){return}if(!f._gaq){f._gaq=[]}var j="/"+h;if(typeof i!=="undefined"){j+="/"+i}f._gaq.push(["_trackPageview",j])}function c(k,i,h){var j;if((typeof h==="object")&&(typeof h.id!=="undefined")){j=h.id+""}k.addEventListener("appShow",function(){d(i,j)},false)}}(window,App);App._Pages=function(K,e,o,S,H,U,J){var B="data-page",u="app-page",n="app-loaded",b={SHOW:"appShow",HIDE:"appHide",BACK:"appBack",FORWARD:"appForward",LAYOUT:"appLayout",ONLINE:"appOnline",OFFLINE:"appOffline"};var y=false,s=null,F=null,G=!!K.APP_FORCE_ISCROLL,c={},i=[],m=[];H.add=function(V,W){if(typeof V!=="string"){W=V;V=undefined}if(!U.isNode(W)){throw TypeError("page template node must be a DOM node, got "+W)}t(W,V)};H.populator=function(V,X,W){if(typeof V!=="string"){throw TypeError("page name must be a string, got "+V)}if(typeof X!=="function"){throw TypeError("page populator must be a function, got "+X)}switch(typeof W){case"undefined":W=function(){};break;case"function":break;default:throw TypeError("page unpopulator must be a function, got "+W)}if(X){z(V,X)}if(W){j(V,W)}};H.generate=function(V,W){if(typeof V!=="string"){throw TypeError("page name must be a string, got "+V)}switch(typeof W){case"undefined":W={};break;case"object":break;default:throw TypeError("page arguments must be an object if defined, got "+W)}return M(V,W)};H.destroy=function(V){if(!U.isNode(V)){throw TypeError("page node must be a DOM node, got "+V)}return f(V)};return{EVENTS:b,fire:D,has:N,startGeneration:d,finishGeneration:p,startDestruction:E,finishDestruction:l,fixContent:g,saveScrollPosition:I,saveScrollStyle:P,restoreScrollPosition:q,restoreScrollStyle:C};function w(){if(y){return}y=true;var W=e.getElementsByClassName(u);for(var V=W.length;V--;){t(W[V])}e.body.className+=" "+n}function t(W,V){if(!V){V=W.getAttribute(B)}if(!V){throw TypeError("page name was not specified")}W.setAttribute(B,V);if(W.parentNode){W.parentNode.removeChild(W)}c[V]=W.cloneNode(true)}function N(V){w();return(V in c)}function T(V){if(!N(V)){throw TypeError(V+" is not a known page")}return c[V].cloneNode(true)}function z(V,W){if(!i[V]){i[V]=[W]}else{i[V].push(W)}}function j(V,W){if(!m[V]){m[V]=[W]}else{m[V].push(W)}}function L(V,X,Z,W){var Y=i[V]||[];Y.forEach(function(aa){aa.call(X,Z,W)})}function k(V,X,Y,W){var Z=m[V]||[];Z.forEach(function(aa){aa.call(X,Y,W)})}function M(V,X){var W={},Y=d(V,W,X);p(V,W,Y,X);return Y}function f(W){var V=W.getAttribute(B);E(V,{},W,{});l(V,{},W,{})}function d(V,X,W){var Y=T(V);R(Y);J.watchPage(Y,V,W);g(Y);U.forEach(Y.querySelectorAll(".app-button"),function(aa){o(aa);var ab=aa.getAttribute("data-target"),Z=aa.getAttribute("data-back");if(Z){o.sticky(aa,function(ac){return H.back({},ac)})}else{if(ab){o.sticky(aa,function(ac){return H.load(ab,{},{},ac)})}}});L(V,X,Y,W);D(Y,b.LAYOUT);Y.addEventListener("DOMNodeInsertedIntoDocument",function(){h(Y);D(Y,b.LAYOUT)},false);return Y}function p(V,X,Y,W){Q(Y)}function E(V,X,Y,W){if(!U.os.ios||U.os.version<6){v(Y)}}function l(V,X,Y,W){k(V,X,Y,W)}function g(aa){var X=aa.querySelector(".app-topbar"),Y=aa.querySelector(".app-content");if(!Y){return}var V=K.innerHeight;if(!X){Y.style.height=V+"px";return}var Z=e.defaultView.getComputedStyle(X,null),W=U.os.android?48:44;if(Z.height){W=parseInt(Z.height)||0}Y.style.height=(V-W)+"px"}function h(ab){var X=ab.querySelector(".app-topbar");if(!X){return}var ae=X.querySelector(".app-title");if(!ae||!ae.getAttribute("data-autosize")){return}var Y=0,W=X.querySelector(".left.app-button"),ad=X.querySelector(".right.app-button");if(W){var ac=U.getStyles(W),Z=U.getTotalWidth(ac)+parseInt(ac.left||0)+4;Y=Math.max(Y,Z)}if(ad){var V=U.getStyles(ad),aa=U.getTotalWidth(V)+parseInt(V.right||0)+4;Y=Math.max(Y,aa)}ae.style.width=(K.innerWidth-Y*2)+"px"}function Q(V){U.forEach(V.querySelectorAll(".app-content"),function(W){if(!W.getAttribute("data-no-scroll")){A(W)}});U.forEach(V.querySelectorAll("[data-scrollable]"),function(W){A(W)})}function A(V){S(V,G);V.className+=" app-scrollable";if(!G&&U.os.ios&&U.os.version<6){V.className+=" app-scrollhack"}}function v(V){U.forEach(V.querySelectorAll("*"),function(W){W.style["-webkit-overflow-scrolling"]=""})}function O(W){var V=[];if(W){U.forEach(W.querySelectorAll(".app-scrollable"),function(X){if(X._scrollable){V.push(X)}})}return V}function I(V){U.forEach(O(V),function(W){if(W._iScroll){return}var X=W._scrollTop();W.setAttribute("data-last-scroll",X+"")})}function P(V){U.forEach(O(V),function(X){if(X._iScroll){return}var W=X.style["-webkit-overflow-scrolling"]||"";X.style["-webkit-overflow-scrolling"]="";X.setAttribute("data-scroll-style",W)})}function q(V,W){U.forEach(O(V),function(X){if(X._iScroll){return}var Y=parseInt(X.getAttribute("data-last-scroll"));if(Y){if(!W){setTimeout(function(){X._scrollTop(Y)},0)}else{X._scrollTop(Y)}}})}function C(V){U.forEach(O(V),function(X){if(X._iScroll){return}var W=X.getAttribute("data-scroll-style")||"";if(W){X.style["-webkit-overflow-scrolling"]=W}});q(V,true)}function x(){if(s===null){try{var X=e.createElement("div"),V=e.createEvent("CustomEvent");V.initEvent("fooBarFace",false,true);X.dispatchEvent(V);s=true}catch(W){s=false}}return s}function r(){if(!F){F=[];for(var V in b){F.push(b[V])}}return F}function R(W){if(W._brokenEvents||x()){return}W._brokenEvents=true;W._addEventListener=W.addEventListener;W._removeEventListener=W.removeEventListener;var V={},X=r();X.forEach(function(Y){V[Y]=[]});W.addEventListener=function(Y,Z){if(X.indexOf(Y)===-1){W._addEventListener.apply(this,arguments);return}var aa=V[Y];if(aa.indexOf(Z)===-1){aa.push(Z)}};W.removeEventListener=function(Z,aa){if(X.indexOf(Z)===-1){W._removeEventListener.apply(this,arguments);return}var ab=V[Z],Y=ab.indexOf(aa);if(Y!==-1){ab.splice(Y,1)}};W._trigger=function(Y){if(X.indexOf(Y)===-1){return}V[Y].forEach(function(Z){setTimeout(function(){Z.call(W,{})},0)})}}function D(X,V){if(X._brokenEvents){X._trigger(V);return}var W=e.createEvent("CustomEvent");W.initEvent(V,false,true);X.dispatchEvent(W)}}(window,document,Clickable,Scrollable,App,App._utils,App._metrics);App._core=function(E,d,L,n,D,O,I){var b="__APP_JS_STACK__"+E.location.pathname,k="slide-left",M="implode-out",w="fade-on",J="instant",B={instant:"instant",fade:"fade","fade-on":"fade-off","fade-off":"fade-on","scale-in":"scale-out","scale-out":"scale-in","rotate-left":"rotate-right","rotate-right":"rotate-left","cube-left":"cube-right","cube-right":"cube-left","swap-left":"swap-right","swap-right":"swap-left","explode-in":"explode-out","explode-out":"explode-in","implode-in":"implode-out","implode-out":"implode-in","slide-left":"slide-right","slide-right":"slide-left","slide-up":"slide-down","slide-down":"slide-up","slideon-left":"slideoff-left","slideon-right":"slideoff-right","slideon-up":"slideoff-up","slideon-down":"slideoff-down","slideoff-left":"slideon-left","slideoff-right":"slideon-right","slideoff-up":"slideon-up","slideoff-down":"slideon-down","glideon-right":"glideoff-right","glideoff-right":"slideon-right","glideon-left":"glideoff-left","glideoff-left":"slideon-left","glideon-down":"glideoff-down","glideoff-down":"slideon-down","glideon-up":"glideoff-up","glideoff-up":"slideon-up"};var t=[],y=[],N=false,q,j,o,F;if(O.os.ios){v(k)}else{if(O.os.android){if(O.os.version>=4){v(M)}else{if((O.os.version<2.3)||/LT15a/i.test(navigator.userAgent)){v(J)}else{v(w)}}}}D.current=function(){return o};D.load=function(P,R,Q,S){if(typeof P!=="string"){throw TypeError("page name must be a string, got "+P)}switch(typeof R){case"function":S=R;R={};Q={};break;case"undefined":R={};break;case"string":S=Q;Q=R;R={};break;case"object":break;default:throw TypeError("page arguments must be an object if defined, got "+R)}switch(typeof Q){case"function":S=Q;Q={};break;case"undefined":Q={};break;case"string":Q={transition:Q};break;case"object":break;default:throw TypeError("options must be an object if defined, got "+Q)}switch(typeof S){case"undefined":S=function(){};break;case"function":break;default:throw TypeError("callback must be a function if defined, got "+S)}return m(P,R,Q,S)};D.back=function(P,Q){switch(typeof P){case"function":Q=P;P={};break;case"undefined":P={};break;case"string":P={transition:P};break;case"object":break;default:throw TypeError("options must be an object if defined, got "+P)}switch(typeof Q){case"undefined":Q=function(){};break;case"function":break;default:throw TypeError("callback must be a function if defined, got "+Q)}return H(P,Q)};D.setDefaultTransition=function(P){if(typeof P==="object"){switch(O.os.name){case"android":P=P.android;if((O.os.version<4)&&P.androidFallback){P=P.androidFallback}break;case"ios":P=P.ios;if((O.os.version<5)&&P.iosFallback){P=P.iosFallback}break;default:P=P.fallback;break}if(!P){return}}if(typeof P!=="string"){throw TypeError("transition must be a string if defined, got "+P)}if(!(P in B)){throw TypeError("invalid transition type, got "+P)}v(P)};D.getDefaultTransition=function(){return q};D.getReverseTransition=function(){return j};D.getStack=function(){return r()};D.getPage=function(P){var Q=t.length-1;switch(typeof P){case"undefined":P=Q;break;case"number":if(Math.abs(P)>Q){throw TypeError("absolute index cannot be greater than stack size, got "+P)}if(P<0){P=Q+P}break;default:throw TypeError("page index must be a number if defined, got "+P)}return h(P)};D.removeFromStack=function(R,Q){var P=t.length-1;switch(typeof R){case"undefined":R=0;break;case"number":if(Math.abs(R)>P){throw TypeError("absolute start index cannot be greater than stack size, got "+R)}if(R<0){R=P+R}break;default:throw TypeError("start index must be a number if defined, got "+R)}switch(typeof Q){case"undefined":Q=P;break;case"number":if(Math.abs(Q)>P){throw TypeError("absolute end index cannot be greater than stack size, got "+Q)}if(Q<0){Q=P+Q}break;default:throw TypeError("end index must be a number if defined, got "+Q)}if(R>Q){throw TypeError("start index cannot be greater than end index")}x(R,Q)};D.addToStack=function(Q,P){var R=t.length-1;switch(typeof Q){case"undefined":Q=0;break;case"number":if(Math.abs(Q)>R){throw TypeError("absolute index cannot be greater than stack size, got "+Q)}if(Q<0){Q=R+Q}break;default:throw TypeError("index must be a number if defined, got "+Q)}if(!O.isArray(P)){throw TypeError("added pages must be an array, got "+P)}P=P.slice();P.forEach(function(T,S){if(typeof T==="string"){T=[T,{}]}else{if(O.isArray(T)){T=T.slice()}else{throw TypeError("page description must be an array (page name, arguments), got "+T)}}if(typeof T[0]!=="string"){throw TypeError("page name must be a string, got "+T[0])}switch(typeof T[1]){case"undefined":T[1]={};break;case"object":break;default:throw TypeError("page arguments must be an object if defined, got "+T[1])}switch(typeof T[2]){case"undefined":T[2]={};break;case"object":break;default:throw TypeError("page options must be an object if defined, got "+T[2])}P[S]=T});l(Q,P)};D.saveStack=function(){i()};D.destroyStack=function(){f()};D.dialog=n;D.restore=G();D._layout=A();return{};function v(P){q=P;j=B[q]}function e(P){if(N){y.push(P);return false}N=true;P(function(){N=false;i();z()});return true}function m(P,R,Q,S){e(function(aa){var Y=F,U={},X=I.startGeneration(P,U,R);if(!o){D.restore=null;d.body.appendChild(X);T();V()}else{I.saveScrollPosition(F);var Z={};for(var W in Q){Z[W]=Q[W]}K(X,Z,V);T()}function T(){o=P;F=X;t.push([P,X,Q,R,U]);if(Y){I.fire(Y,I.EVENTS.FORWARD)}}function V(){I.saveScrollStyle(Y);I.finishGeneration(P,U,X,R);aa();S();if(Y){I.fire(Y,I.EVENTS.HIDE)}I.fire(X,I.EVENTS.SHOW)}});if(!I.has(P)){return false}}function H(Q,S){if(n.status()){n.close();return}var R=t.length;var P=e(function(aa){if(t.length<2){aa();return}var Z=t.pop(),X=t[t.length-1],T=X[0],W=X[1],U=Z[2];I.fire(Z[1],I.EVENTS.BACK);I.fixContent(W);I.startDestruction(Z[0],Z[4],Z[1],Z[3]);I.restoreScrollPosition(W);var Y={};for(var V in U){if(V==="transition"){Y[V]=B[U[V]]||U[V]}else{Y[V]=U[V]}}for(var V in Q){Y[V]=Q[V]}K(W,Y,function(){I.restoreScrollStyle(W);I.fire(Z[1],I.EVENTS.HIDE);I.fire(W,I.EVENTS.SHOW);setTimeout(function(){I.finishDestruction(Z[0],Z[4],Z[1],Z[3]);aa();S()},0)},true);o=T;F=W});if(P&&(R<2)){return false}}function r(){return t.slice().map(function(S){var Q=S[0],P={};for(var R in S[3]){P[R]=S[3][R]}return[Q,P]})}function h(P){var Q=t[P];if(Q){return Q[1]}}function g(Q,P){var R=t.splice(Q,P-Q);R.forEach(function(S){I.startDestruction(S[0],S[4],S[1],S[3]);I.finishDestruction(S[0],S[4],S[1],S[3])})}function x(Q,P){e(function(R){g(Q,P);R()})}function p(Q,P){var R=[];P.forEach(function(T){var S={},U=I.startGeneration(T[0],S,T[1]);I.finishGeneration(T[0],S,U,T[1]);I.saveScrollPosition(U);I.saveScrollStyle(U);R.push([T[0],U,T[2],T[1],S])});R.unshift(0);R.unshift(Q);Array.prototype.splice.apply(t,R)}function l(Q,P){e(function(R){p(Q,P);R()})}function z(){if(y.length){e(y.shift())}}function s(P){var R=false;var Q=d.createElement("div");Q.className="app-clickblocker";d.body.appendChild(Q);Q.addEventListener("touchstart",function(S){S.preventDefault()},false);P(function(){if(R){return}R=true;d.body.removeChild(Q)})}function C(P){if(!O.os.ios){return false}if(P.transition==="slide-left"){return true}else{if(P.transition==="slide-right"){return true}else{return false}}}function K(R,Q,S,P){if(!Q.transition){Q.transition=(P?j:q)}s(function(U){if(C(Q)){u(R,Q,T)}else{if(Q.transition==="instant"){L(F,R,Q,function(){setTimeout(T,0)})}else{L(F,R,Q,T)}}function T(){I.fixContent(F);U();S()}})}function u(S,ac,ab){var T=F,Q=T.querySelector(".app-topbar"),U=T.querySelector(".app-content"),R=S.querySelector(".app-topbar"),V=S.querySelector(".app-content"),Z,P;if(Q){Z=Q.querySelector(".app-title")}if(R){P=R.querySelector(".app-title")}if(!Q||!R||!U||!V||!c(Q)||!c(R)){L(T,S,ac,ab);return}var Y=(ac.transition==="slide-left"),aa=E.innerWidth*0.5,X=[{opacityEnd:0,elem:Q},{transitionStart:"translate3d(0,0,0)",transitionEnd:"translate3d("+(Y?-100:100)+"%,0,0)",elem:U},{transitionStart:"translate3d("+(Y?100:-100)+"%,0,0)",transitionEnd:"translate3d(0,0,0)",elem:V}];if(Z){X.push({opacityStart:1,opacityEnd:0,transitionStart:"translate3d(0,0,0)",transitionEnd:"translate3d("+(Y?-aa:aa)+"px,0,0)",elem:Z})}if(P){X.push({opacityStart:0,opacityEnd:1,transitionStart:"translate3d("+(Y?aa:-aa)+"px,0,0)",transitionEnd:"translate3d(0,0,0)",elem:P})}var W=S.style.position;S.style.position="fixed";T.parentNode.insertBefore(S,T);T.style.background="none";O.animate(X,300,"ease-in-out",function(){T.parentNode.removeChild(T);S.style.position=W;ab()})}function c(Q){var P=O.getStyles(Q);return(P.display!=="none"&&P.opacity!=="0")}function A(){function R(){if(F){I.fixContent(F)}}function Q(){R();if(F){I.fire(F,I.EVENTS.LAYOUT)}}function P(){Q();setTimeout(R,0);setTimeout(R,10);setTimeout(R,100)}E.addEventListener("orientationchange",P);E.addEventListener("resize",P);E.addEventListener("load",P);setTimeout(P,0);E.addEventListener("online",function(){t.forEach(function(S){I.fire(S[1],I.EVENTS.ONLINE)})},false);E.addEventListener("offline",function(){t.forEach(function(S){I.fire(S[1],I.EVENTS.OFFLINE)})},false);return P}function i(){try{var P=t.map(function(R){return[R[0],R[3],R[2]]});localStorage[b]=JSON.stringify(P)}catch(Q){}}function f(){delete localStorage[b]}function G(){var P,R;try{P=JSON.parse(localStorage[b]);R=P.pop()}catch(Q){return}return function(T){switch(typeof T){case"undefined":T=function(){};case"function":break;default:throw TypeError("restore callback must be a function if defined, got "+T)}if(!I.has(R[0])){throw TypeError(R[0]+" is not a known page")}P.forEach(function(U){if(!I.has(U[0])){throw TypeError(U[0]+" is not a known page")}});try{p(0,P)}catch(S){g(0,t.length);throw Error("failed to restore stack")}i();try{m(R[0],R[1],R[2],T)}catch(S){g(0,t.length);throw Error("failed to restore stack")}}}}(window,document,Swapper,Dialog,App,App._utils,App._Pages);
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Kik Cards
3
+ * Copyright (c) 2012 Kik Interactive, http://kik.com
4
+ * All rights reserved
5
+ * http://cards.kik.com/terms.html
6
+ *
7
+ * classList.js: Cross-browser full element.classList implementation.
8
+ * By Eli Grey, http://eligrey.com
9
+ * Public Domain
10
+ * No warranty expressed or implied. Use at your own risk.
11
+ *
12
+ * json2.js
13
+ * See http://www.JSON.org/js.html
14
+ * Public Domain
15
+ * No warranty expressed or implied. Use at your own risk.
16
+ */
17
+ (function(a){var b={};b.enabled=false;b.version="0.10.1";b._={};a.cards=b})(window);(function(){if(!Object.keys){Object.keys=function(c){var b=[];for(var a in c){b.push(a)}return b}}if(!Array.isArray){Array.isArray=function(a){return Object.prototype.toString.call(a)=="[object Array]"}}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(c,d){for(var b=d||0,a=this.length;b<a;b++){if((b in this)&&(this[b]===c)){return b}}return -1}}if(!Array.prototype.forEach){Array.prototype.forEach=function(d,b){for(var c=0,a=this.length;c<a;c++){if(c in this){d.call(b,this[c],c,this)}}}}if(!Array.prototype.map){Array.prototype.map=function(e,b){var a=this.length,c=new Array(a);for(var d=0;d<a;d++){if(d in this){c[d]=e.call(b,this[d],d,this)}}return c}}if(!Array.prototype.filter){Array.prototype.filter=function(e,c){var b=[];for(var f,d=0,a=this.length;d<a;d++){f=this[d];if((d in this)&&e.call(c,f,d,this)){b.push(f)}}return b}}if(!Array.prototype.reduce){Array.prototype.reduce=function(c,d){var b=0,a=this.length;if(typeof d=="undefined"){d=this[0];b=1}for(;b<a;b++){if(b in this){d=c(d,this[b],b,this)}}return d}}if(!String.prototype.trim){String.prototype.trim=function(){var a=/^\s+|\s+$/g;return function(){return String(this).replace(a,"")}}()}})();if(typeof document!=="undefined"&&!("classList" in document.createElement("a"))){(function(s){var B="classList",w="prototype",p=(s.HTMLElement||s.Element)[w],A=Object,r=String[w].trim||function(){return this.replace(/^\s+|\s+$/g,"")},z=Array[w].indexOf||function(a){var b=0,c=this.length;for(;b<c;b++){if(b in this&&this[b]===a){return b}}return -1},o=function(b,a){this.name=b;this.code=DOMException[b];this.message=a},v=function(a,b){if(b===""){throw new o("SYNTAX_ERR","An invalid or illegal string was specified")}if(/\s/.test(b)){throw new o("INVALID_CHARACTER_ERR","String contains an invalid character")}return z.call(a,b)},y=function(a){var b=r.call(a.className),c=b?b.split(/\s+/):[],d=0,e=c.length;for(;d<e;d++){this.push(c[d])}this._updateClassName=function(){a.className=this.toString()}},x=y[w]=[],t=function(){return new y(this)};o[w]=Error[w];x.item=function(a){return this[a]||null};x.contains=function(a){a+="";return v(this,a)!==-1};x.add=function(a){a+="";if(v(this,a)===-1){this.push(a);this._updateClassName()}};x.remove=function(a){a+="";var b=v(this,a);if(b!==-1){this.splice(b,1);this._updateClassName()}};x.toggle=function(a){a+="";if(v(this,a)===-1){this.add(a)}else{this.remove(a)}};x.toString=function(){return this.join(" ")};if(A.defineProperty){var q={get:t,enumerable:true,configurable:true};try{A.defineProperty(p,B,q)}catch(u){if(u.number===-2146823252){q.enumerable=false;A.defineProperty(p,B,q)}}}else{if(A[w].__defineGetter__){p.__defineGetter__(B,t)}}}(self))}(function(f,h,d){var j=false,g=[];c();d._.onLog=i;function i(k){if(typeof k!=="function"){throw TypeError("log listener must be a function, got "+k)}g.push(k)}function e(l,k){if(j){return}j=true;g.forEach(function(n){try{n(l,k)}catch(m){}});j=false}function c(){var k=f.console;if(typeof k!=="object"){k={}}k.log=b(k.log,"log");k.warn=b(k.warn,"warn");k.error=b(k.error,"error");a();f.console=k}function b(k,l){switch(typeof k){case"undefined":k=function(){};case"function":break;default:return k}return function(){var m=Array.prototype.map.call(arguments,function(n){if((typeof n==="object")&&(n!==null)&&f.JSON&&JSON.stringify){try{return JSON.stringify(n)}catch(o){}}return n+""}).join(" ");e(l,m);k.apply(this,arguments)}}function a(){if(!f.addEventListener){return}f.addEventListener("error",function(k){e("exception",k.message+"")},false)}})(window,document,cards);(function(d,a,c){var b={};c.utils=b;b.error=function(e){if(d.console&&d.console.error){if((typeof e==="object")&&e.stack){d.console.error(e.stack)}else{d.console.error(e+"")}}};b.platform={};b.platform.os=function(){var h=d.navigator.userAgent,g,f,e;if((e=/\bCPU.*OS (\d+(_\d+)?)/i.exec(h))){g="ios";f=e[1].replace("_",".")}else{if((e=/\bAndroid (\d+(\.\d+)?)/.exec(h))){g="android";f=e[1]}else{if((e=/\bWindows Phone OS (\d+(\.\d+)?)/.exec(h))){g="winphone";f=e[1]}else{if((e=/\bMac OS X (\d+(_\d+)?)/.exec(h))){g="osx";f=e[1].replace("_",".")}else{if((e=/\bWindows NT (\d+(.\d+)?)/.exec(h))){g="windows";f=e[1]}else{if((e=/\bLinux\b/.exec(h))){g="linux";f=null}else{if((e=/\b(Free|Net|Open)BSD\b/.exec(h))){g="bsd";f=null}}}}}}}var i={name:g,version:f&&d.parseFloat(f),versionString:f};i[g]=true;return i}();b.platform.browser=function(){var h=d.navigator.userAgent,g,f,e;if((e=/\bMSIE (\d+(\.\d+)?)/i.exec(h))){g="msie";f=e[1]}else{if((e=/\bOpera\/(\d+(\.\d+)?)/i.exec(h))){g="opera";f=e[1];if((e=/\bVersion\/(\d+(\.\d+)?)/i.exec(h))){f=e[1]}}else{if((e=/\bChrome\/(\d+(\.\d+)?)/i.exec(h))){g="chrome";f=e[1]}else{if((h.indexOf("Safari/")!=-1)&&(e=/\bVersion\/(\d+(\.\d+)?)/i.exec(h))){if(b.platform.os.android){g="android"}else{g="safari"}f=e[1]}else{if((e=/\bFirefox\/(\d+(\.\d+)?)/i.exec(h))){g="firefox";f=e[1]}}}}}var i={name:g,version:f&&d.parseFloat(f),versionString:f};i[g]=true;return i}();b.platform.engine=function(){var h=d.navigator.userAgent,g,f,e;if((e=/\bTrident\/(\d+(\.\d+)?)/i.exec(h))){g="trident";f=e[1]}else{if((e=/\bMSIE 7/i.exec(h))){g="trident";f="3.1"}else{if((e=/\bPresto\/(\d+(\.\d+)?)/i.exec(h))){g="presto";f=e[1]}else{if((e=/\bAppleWebKit\/(\d+(\.\d+)?)/i.exec(h))){g="webkit";f=e[1]}else{if((e=/\brv\:(\d+(\.\d+)?)/i.exec(h))){g="gecko";f=e[1]}}}}}var i={name:g,version:f&&d.parseFloat(f),versionString:f};i[g]=true;return i}();b.random={};b.random.name=function(e){return("____"+(e||"")+"____"+Math.random()).replace(/\.|\-/g,"")};b.random.num=function(){return Math.floor((Math.random()*18014398509481984)-9007199254740992)};b.random.uuid=function(){var e=36,g=new Array(e),h="0123456789abcdef",f;for(f=0;f<e;f++){g[f]=Math.floor(Math.random()*16)}g[14]=4;g[19]=(g[19]&3)|8;for(f=0;f<e;f++){g[f]=h[g[f]]}g[8]=g[13]=g[18]=g[23]="-";return g.join("")};b.enumerate=function(f){if(typeof f!=="object"){f=Array.prototype.slice.call(arguments)}var h={};for(var g=0,e=f.length;g<e;g++){h[f[g]]=g}return h};b.preloadImage=function(){var f={};return e;function e(){var h=arguments;cards.ready(function(){g.apply(b,h)})}function g(j,l){if(typeof j!="string"){b.asyncJoin(j.map(function(m){return function(n){b.preloadImage(m,n)}}),l||function(){});return}if(f[j]===true){if(l){setTimeout(function(){l(true)},0)}return}else{if(f[j]){f[j].push(l);return}}f[j]=[l];var h=false;function k(o){if(h){return}h=true;var q=f[j];f[j]=o;for(var n,p=0,m=q.length;p<m;p++){n=q[p];if(n){n(o)}}}var i=new Image();i.onload=function(){k(true)};i.onerror=function(){k(false)};i.src=j}}();b.url={};b.url.dir=function(){var e=/\/[^\/]*$/;return function(f){switch(typeof f){case"undefined":f=d.location.href;case"string":break;default:throw TypeError("url "+f+" must be string if defined")}f=((f.split("?")[0]||"").split("#")[0]||"");return f.replace(e,"/")}}();b.url.host=function(){var e=/^https?\:\/\/([^\/]+)\/.*$/;return function(g){switch(typeof g){case"undefined":return d.location.host;case"string":break;default:throw TypeError("url "+g+" must be string if defined")}var f=e.exec(g);return f&&f[1]}}();b.url.path=function(){var e=/^https?\:\/\/[^\/]+(\/.*)$/;return function(g){switch(typeof g){case"undefined":return d.location.pathname;case"string":break;default:throw TypeError("url "+g+" must be string if defined")}var f=e.exec(g);return f&&f[1]}}();b.url.dataToQuery=function(){var e=/%20/g;return function(k){var h=[],j,f,i;for(var g in k){j=k[g];if((j!==null)&&(j!==undefined)){f=encodeURIComponent(g);i=encodeURIComponent(j);h.push(f+"="+i)}}return h.join("&").replace(e,"+")}}();b.url.queryToData=function(){var f=/([^&=]+)=([^&]+)/g,e=/\+/g;return function(k){var h={},g,i,j;if(k){k=k.replace(e,"%20");while((g=f.exec(k))){i=decodeURIComponent(g[1]);j=decodeURIComponent(g[2]);h[i]=j}}return h}}();b.url.withQuery=function(e,f){if(!f){f=e;e=d.location.href}e=e.split("?")[0];var g=b.url.dataToQuery(f);if(g){e+="?"+g}return e};b.url.updateQuery=function(e,f){if(!f){f=e;e=d.location.href}var g=b.url.parseQuery(e);b.obj.extend(g,f);return b.url.withQuery(e,g)};b.url.parseQuery=function(e){e=e||d.location.href;return b.url.queryToData(e.split("?")[1])};b.url.query=b.url.parseQuery();b.jsonp=function(s){var q=false,l=function(){},h=b.random.name("PICARD_UTILS_JSONP_CALLBACK"),e=s.url,i=b.obj.copy(s.data),m=s.callbackName||"callback",p=s.callback||l,f=s.success||l,j=s.error||l,o=s.complete||l,r=a.getElementsByTagName("script")[0],k=a.createElement("script");i[m]="window."+h;k.type="text/javascript";k.async=true;k.onerror=g;k.src=b.url.updateQuery(e,i);function n(){d[h]=l;try{r.parentNode.removeChild(k)}catch(t){}}function g(){if(q){return}n();p=l;f=l;j();j=l;o();o=l}d[h]=function(){q=true;n();p.apply(this,arguments);p=l;f.apply(this,arguments);f=l;j=l;o();o=l};if(s.timeout){setTimeout(g,s.timeout)}r.parentNode.insertBefore(k,r)};b.asyncJoin=function(e,k){var g=true;if(!Array.isArray(e)){g=false;e=Array.prototype.slice.call(arguments);k=e.pop()}var f=false,j=e.length,i=new Array(j);if(j===0){h();return}e.forEach(function(m,l){setTimeout(function(){var n=false;m(function(){if(n){return}n=true;if(i[l]){return}var o=Array.prototype.slice.call(arguments);i[l]=o;j--;h()})},0)});function h(){if((j!==0)||f){return}f=true;setTimeout(function(){if(g){k.call(d,i)}else{k.apply(d,i)}},0)}};b.obj={};b.obj.extend=function(g,f){for(var e in f){val1=g[e];val2=f[e];if(val1!==val2){g[e]=val2}}return g};b.obj.copy=function(e){return b.obj.extend({},e)};b.obj.forEach=function(g,h,e){for(var f in g){h.call(e,f,g[f],g)}};b.obj.inverse=function(g){var e={};for(var f in g){e[g[f]]=f}return e};b.obj.values=function(g){var e=[];for(var f in g){e.push(g[f])}return e};b.obj.has=function(g,f){for(var e in g){if(g[e]===f){return true}}return false};b.windowReady=function(f){if(a.readyState==="complete"){setTimeout(function(){f()},0);return}d.addEventListener("load",e,false);function e(){d.removeEventListener("load",e);setTimeout(function(){f()},0)}};b.ready=function(){var g=false,f=[];function h(){if(g){return}g=true;for(var k;(k=f.shift());){try{k()}catch(j){b.error(j)}}}function e(k){try{a.documentElement.doScroll("left")}catch(j){setTimeout(function(){e(k)},1);return}if(k){k()}}function i(l){if(a.readyState==="complete"){setTimeout(l,0);return}if(a.addEventListener){a.addEventListener("DOMContentLoaded",l,false);d.addEventListener("load",l,false)}else{if(a.attachEvent){a.attachEvent("onreadystatechange",l);d.attachEvent("onload",l);var j=false;try{j=(d.frameElement===null)}catch(k){}if(a.documentElement.doScroll&&j){setTimeout(function(){e(l)},0)}}}}i(h);return function(j){if(typeof j!=="function"){throw TypeError("callback "+j+" must be a function")}if(g){setTimeout(function(){j()},0)}else{f.push(j)}}}()})(window,document,cards);(function(f,a,e){e.events=d;e.events.handlers=g;function b(){this.handlers={};this.onceHandlers={};this.globalHandlers=[];this.globalOnceHandlers=[]}b.prototype.insureNamespace=function(i){if(!this.handlers[i]){this.handlers[i]=[]}if(!this.onceHandlers[i]){this.onceHandlers[i]=[]}};b.prototype.bind=function(i,j){this.insureNamespace(i);this.handlers[i].push(j)};b.prototype.bindToAll=function(i){this.globalHandlers.push(i)};b.prototype.bindOnce=function(i,j){this.insureNamespace(i);this.onceHandlers[i].push(j)};b.prototype.bindToAllOnce=function(i){this.globalOnceHandlers.push(i)};b.prototype.unbind=function(i,j){this.insureNamespace(i);h(this.handlers[i],j);h(this.onceHandlers[i],j)};b.prototype.unbindFromAll=function(j){h(this.globalHandlers,j);h(this.globalOnceHandlers,j);for(var i in this.handlers){h(this.handlers[i],j);h(this.onceHandlers[i],j)}};b.prototype.trigger=function(j,k,i){this.insureNamespace(j);if(typeof i==="undefined"){i=this}function l(m){try{m.call(i,k,j)}catch(n){e.utils.error(n)}}this.handlers[j].forEach(l);this.globalHandlers.forEach(l);this.onceHandlers[j].forEach(l);this.globalOnceHandlers.forEach(l);this.onceHandlers[j].splice(0);this.globalOnceHandlers.splice(0)};function h(j,l){for(var k=j.length;k--;){if(j[k]===l){j.splice(k,1)}}}function d(j){if(typeof j==="undefined"){j={}}var i=new b();j.on=function(k,l){if(Array.isArray(k)){k.forEach(function(m){j.on(m,l)});return}if(typeof l==="undefined"){l=k;k=""}if(typeof k!=="string"){throw TypeError("name "+k+" must be a string")}if(typeof l!=="function"){throw TypeError("handler "+l+" must be a function")}if(k){i.bind(k,l)}else{i.bindToAll(l)}};j.off=function(k,l){if(Array.isArray(k)){k.forEach(function(m){j.off(m,l)});return}if(typeof l==="undefined"){l=k;k=""}if(typeof k!=="string"){throw TypeError("name "+k+" must be a string")}if(typeof l!=="function"){throw TypeError("handler "+l+" must be a function")}if(k){i.unbind(k,l)}else{i.unbindFromAll(l)}};j.once=function(k,l){if(Array.isArray(k)){k.forEach(function(m){j.once(m,l)});return}if(typeof l==="undefined"){l=k;k=""}if(typeof k!=="string"){throw TypeError("name "+k+" must be a string")}if(typeof l!=="function"){throw TypeError("handler "+l+" must be a function")}if(k){i.bindOnce(k,l)}else{i.bindToAllOnce(l)}};j.trigger=function(l,m,k){if(Array.isArray(l)){l.forEach(function(n){j.trigger(n,m,k)});return}if(typeof l!=="string"){throw TypeError("name "+l+" must be a string")}i.trigger(l,m,k)};return j}function c(){this.handlers=[];this.events=[]}c.prototype.addHandler=function(i){this.handlers.push(i);return this.processEvents()};c.prototype.triggerEvent=function(i){this.events.push(i);this.processEvents()};c.prototype.triggerEvents=function(i){this.events=this.events.concat(i);this.processEvents()};c.prototype.processEvents=function(){if(!this.events.length||!this.handlers.length){return}var j=this.events.splice(0),i=this.handlers;j.forEach(function(k){i.forEach(function(l){l(k)})});return true};function g(){var i=new c();return{handler:function(j){return i.addHandler(j)},trigger:function(j){i.triggerEvent(j)},triggerMulti:function(j){i.triggerEvents(j)}}}})(window,document,cards);cards.ready=function(d,e){var b=[];a();return c;function c(g){if(b){b.push(g)}else{f(g)}}function a(){e.utils.windowReady(function(){setTimeout(function(){var g=b.slice();b=null;g.forEach(f)},3)})}function f(h){try{h()}catch(g){e.utils.error(g)}}}(window,cards);cards.open=function(c,f){var e=f.utils.platform.os,a=f.utils.platform.browser;c.open=function(g){d(g)};d.card=b;return d;function d(i,h){if(typeof i!=="string"){throw TypeError("url must be a string, got "+i)}switch(typeof h){case"object":h=JSON.stringify(h);case"undefined":case"string":break;default:throw TypeError("linkData must be a string of JSON if defined, got "+h)}if(f.browser&&f.browser.open){f.browser.open(i,h);return}if(h){i=i.split("#")[0]+"#"+encodeURIComponent(h)}var g=i.substr(0,7)==="card://",j=i.substr(0,8)==="cards://";if(!g&&!j){c.location.href=i;return}b(i,"http"+i.substr(4))}function b(i,g,h){if(!e.ios&&!e.android){if(g){c.location.href=g}return}if(e.ios||a.chrome){if(g){setTimeout(function(){if(!document.webkitHidden){c.location.href=g}},e.ios?25:1000)}if(h){f.ready(function(){setTimeout(function(){c.location.href=i},0)})}else{c.location.href=i}return}var k;if(g){k=setTimeout(function(){c.location=g},1000)}var j=document.createElement("iframe");j.style.position="fixed";j.style.top="0";j.style.left="0";j.style.width="1px";j.style.height="1px";j.style.border="none";j.style.opacity="0";j.onload=function(){if(g){clearTimeout(k)}try{document.documentElement.removeChild(j)}catch(l){}};j.src=i;document.documentElement.appendChild(j)}}(window,cards);(function(b,c){var a="__PICARD_ID__";if(!b.localStorage){return}if(!b.localStorage[a]){b.localStorage[a]=c.utils.random.uuid()}c._.id=b.localStorage[a]})(window,cards);(function(window){if(!window.chrome){return}if(!window.chrome.app){return}if(window.shimsham){return}var shimshamMeta=document.getElementById("shimsham-meta");if(shimshamMeta){var url=shimshamMeta.content;try{var xhr=new XMLHttpRequest();xhr.open("GET",url,false);xhr.timeout=1000;xhr.send(null);if(xhr.status===200){eval(xhr.responseText)}else{console.log("Failed to load shimsham, extension not installed get it at kik.com/cards")}}catch(e){}}})(window);(function(window,document,picard){var BRIDGE_SIGNAL_URL=window.location.protocol+"//cardsbridge.kik.com/",PLUGIN_REQUEST_BATCH="batch-call",PLUGIN_REQUEST_NAME="requestPlugin",PLUGIN_REQUEST_VERSION="requestVersion",PLUGIN_LOG="log";var plugins={},os=picard.utils.platform.os,androidBridge=window.CardsBridge;function validateBridge(){var bridgeInfo=validateAndroidBridge();if(bridgeInfo){return bridgeInfo}if(os.ios){return validateIPhoneBridge()}return false}function validateAndroidBridge(){if(!androidBridge){return false}if(typeof androidBridge.invokeFunction!=="function"){return false}if(typeof androidBridge.poll!=="function"){return false}return makeBridgeCall(PLUGIN_REQUEST_VERSION).data}function validateIPhoneBridge(){var bridgeInfo;try{bridgeInfo=makeBridgeCall(PLUGIN_REQUEST_VERSION).data}catch(err){}return bridgeInfo?bridgeInfo:false}function sendIFrameSignal(bridgeFunctionName,argData,asyncCallbackName){var callbackName=picard.utils.random.name("PICARD_BRIDGE_CALLBACK"),status,data;window[callbackName]=function(callbackStatus,callbackData){delete window[callbackName];status=callbackStatus;data=callbackData};var url=BRIDGE_SIGNAL_URL+bridgeFunctionName+"/"+callbackName+"?args="+encodeURIComponent(argData)+"&async="+(asyncCallbackName||"");var doc=document.documentElement,iframe=document.createElement("iframe");iframe.style.display="none";iframe.src=url;doc.appendChild(iframe);doc.removeChild(iframe);if(window[callbackName]){delete window[callbackName];throw Error("bridge call "+bridgeFunctionName+" failed to return")}return{status:status,data:data}}function sendBatchIFrameSignal(urls){var calls=urls.map(function(url){return encodeURIComponent(url)}).join(",");var url=BRIDGE_SIGNAL_URL+PLUGIN_REQUEST_BATCH+"?calls="+calls;var doc=document.documentElement,iframe=document.createElement("iframe");iframe.style.display="none";iframe.src=url;doc.appendChild(iframe);doc.removeChild(iframe)}function androidBridgeCall(bridgeFunctionName,argData,asyncCallbackName){var response,result;if(!asyncCallbackName){response=androidBridge.invokeFunction(bridgeFunctionName,argData)}else{if(androidBridge.invokeAsyncFunction){response=androidBridge.invokeAsyncFunction(bridgeFunctionName,argData,asyncCallbackName)}else{throw TypeError("bridge: android bridge does not support async callbacks")}}try{result=JSON.parse(response)}catch(err){throw TypeError("bridge call for "+bridgeFunctionName+" responded with invalid JSON")}return{status:result.status,data:result.data}}function makeBridgeCall(bridgeFunctionName,args,asyncCallback){if(typeof bridgeFunctionName!=="string"){throw TypeError("bridge call "+bridgeFunctionName+" must be a string")}switch(typeof args){case"function":asyncCallback=args;args=undefined;case"undefined":args={};case"object":break;default:throw TypeError("bridge call arguments "+args+" must be a JSON object if specified")}switch(typeof asyncCallback){case"undefined":case"function":break;default:throw TypeError("bridge async callback must be a function if defined, got "+asyncCallback)}var argData;try{argData=JSON.stringify(args)}catch(err){throw TypeError("bridge call arguments "+args+" must be a JSON object")}var asyncCallbackName;if(asyncCallback){asyncCallbackName=setupAsyncCallback(asyncCallback)}var result;if(androidBridge){result=androidBridgeCall(bridgeFunctionName,argData,asyncCallbackName)}else{result=sendIFrameSignal(bridgeFunctionName,argData,asyncCallbackName)}if(asyncCallbackName&&(!result||!result.status||(result.status!==202))){delete window[asyncCallbackName]}return result}function setupAsyncCallback(asyncCallback){var callbackName=picard.utils.random.name("PICARD_BRIDGE_ASYNC_CALLBACK");window[callbackName]=function(status,data){delete window[callbackName];if(androidBridge){try{var response=JSON.parse(status);status=response.status;data=response.data}catch(err){throw Error("bridge failed to parse android async data, "+status)}}if((typeof data!=="object")||(data===null)){asyncCallback()}else{if(!status||(status<200)||(status>=300)){asyncCallback()}else{asyncCallback(data)}}};return callbackName}function setupEventCallback(eventCallback){var callbackName=picard.utils.random.name("PICARD_BRIDGE_EVENT_CALLBACK");window[callbackName]=function(name,data){if(androidBridge){try{data=JSON.parse(data)}catch(err){throw Error("bridge failed to parse android event data, "+data)}}eventCallback(name,data)};return callbackName}function setupAndroidPoll(){window.addEventListener("keyup",function(e){if(e.which!==0){return}performAndroidPoll();return false})}function performAndroidPoll(){var code=androidBridge.poll()+"";if(!code){return}try{eval(code)}catch(err){if(window.console&&window.console.error){window.console.error("android poll failed to evaluate "+code+", "+err)}}performAndroidPoll()}function setupIOSLogging(){picard._.onLog(function(level,message){makeBridgeCall(PLUGIN_LOG,{level:level,message:message})})}function bridgeFunctionCall(bridgeFunctionName,args,callback){var data=makeBridgeCall(bridgeFunctionName,args,callback);if(!data){throw Error("bridge call "+bridgeFunctionName+" did not return")}if(!data.status||(data.status<200)||(data.status>=300)){throw Error("bridge call "+bridgeFunctionName+" did not complete successfully, "+data.status)}if(typeof data.data!=="object"){throw TypeError("bridge call "+bridgeFunctionName+" did not return an object, "+data.data)}return data.data}function setupFunction(bridgeFunctionName){return function(args,callback){return bridgeFunctionCall(bridgeFunctionName,args,callback)}}function setupFunctions(namespace,functionNames,pluginObj){if(!Array.isArray(functionNames)){throw TypeError("functions "+functionNames+" must be an array")}if(typeof pluginObj==="undefined"){pluginObj={}}functionNames.forEach(function(functionName){if(typeof functionName!=="string"){throw TypeError("function "+functionName+" must be a string")}pluginObj[functionName]=setupFunction(namespace+"."+functionName)})}function setupPlugin(pluginName){var pluginObj=picard.events(),pluginData=makeBridgeCall(PLUGIN_REQUEST_NAME,{name:pluginName,eventCallback:setupEventCallback(pluginObj.trigger)});if(pluginData.status!==200){throw TypeError("plugin "+pluginName+" failed to initialize")}setupFunctions(pluginName,pluginData.data.functions,pluginObj);return pluginObj}function bridge(pluginName){if(typeof pluginName!=="string"){throw TypeError("plugin name must be a string, got "+pluginName)}if(!plugins[pluginName]){var plugin=setupPlugin(pluginName);plugins[pluginName]=plugin}return plugins[pluginName]}function batchRequest(calls){if(!Array.isArray(calls)){throw TypeError("batch calls must be an array, got "+calls)}calls.forEach(function(data){if(typeof data!=="object"){throw TypeError("batch call must be an object, got "+data)}if(typeof data.name!=="string"){throw TypeError("batch call name must be a string, got "+data.name)}switch(typeof data.args){case"undefined":case"object":break;default:throw TypeError("batch call args must be an object if defined, got "+data.args)}switch(typeof data.callback){case"function":case"undefined":break;default:throw TypeError("batch call callback must be a function if defined, got "+data.callback)}});if(androidBridge){return calls.map(function(data){try{if(data.name.indexOf(".")===-1){return bridge(data.name)}else{return bridgeFunctionCall(data.name,data.args,data.callback)}}catch(err){}})}var batchCalls=[],responses=new Array(calls.length);calls.forEach(function(data,index){var isPluginRequest=(data.name.indexOf(".")===-1);if(!isPluginRequest){batchCalls.push(generateBatchSegment(data,function(responseData){responses[index]=responseData}))}else{if(plugins[data.name]){responses[index]=plugins[data.name]}else{batchCalls.push(generatePluginBatchSegment(data,function(responseData){responses[index]=responseData}))}}});sendBatchIFrameSignal(batchCalls);return responses}function generateBatchSegment(data,callback){var argData=JSON.stringify(data.args);var asyncCallbackName;if(data.callback){asyncCallbackName=setupAsyncCallback(data.callback)}var callbackName=picard.utils.random.name("PICARD_BRIDGE_CALLBACK");setTimeout(function(){delete window[callbackName]},0);window[callbackName]=function(callbackStatus,callbackData){delete window[callbackName];if(asyncCallbackName&&callbackStatus!==202){delete window[asyncCallbackName]}if(callbackStatus>=200&&callbackStatus<300){callback(callbackData)}};var url=BRIDGE_SIGNAL_URL+data.name+"/"+callbackName+"?args="+encodeURIComponent(argData)+"&async="+(asyncCallbackName||"");return url}function generatePluginBatchSegment(data,callback){var pluginObj=picard.events(),argData=JSON.stringify({name:data.name,eventCallback:setupEventCallback(pluginObj.trigger)});var callbackName=picard.utils.random.name("PICARD_BRIDGE_CALLBACK");setTimeout(function(){delete window[callbackName]},0);window[callbackName]=function(callbackStatus,callbackData){delete window[callbackName];if(callbackStatus===200){setupFunctions(data.name,callbackData.functions,pluginObj);plugins[data.name]=pluginObj;callback(pluginObj)}};var url=BRIDGE_SIGNAL_URL+PLUGIN_REQUEST_NAME+"/"+callbackName+"?args="+encodeURIComponent(argData)+"&async=";return url}function redirectToCards(){var os=picard.utils.platform.os,urllib=picard.utils.url;if(!urllib.query.kikme||(!os.ios&&!os.android)){return}try{var iframe=document.createElement("iframe");iframe.src="card"+urllib.updateQuery({kikme:null}).substr(4);iframe.style.display="none";var cleanup=function(){try{document.documentElement.removeChild(iframe)}catch(err){}};iframe.onload=cleanup;iframe.onerror=cleanup;setTimeout(cleanup,1000);document.documentElement.appendChild(iframe)}catch(err){}}function main(){var bridgeInfo=validateBridge();if(!bridgeInfo){redirectToCards();return}picard._.bridge=bridge;picard._.bridge.batch=batchRequest;if(androidBridge){setupAndroidPoll();picard._.bridge.forceAndroidPoll=performAndroidPoll}else{setupIOSLogging()}picard.enabled=true;bridge.info=bridgeInfo;bridge.version=bridgeInfo.version;picard.utils.platform.browser.name="cards";picard.utils.platform.browser.cards=true;picard.utils.platform.browser.version=window.parseFloat(bridge.version);picard.utils.platform.browser.versionString=bridge.version}main()})(window,document,cards);(function(d){var b={};d._.firstBatch=b;if(!d._.bridge||!d.utils.platform.os.ios||(d.utils.platform.browser.version<6.5)){return}var a=[{name:"Metrics"},{name:"Browser"},{name:"Media"},{name:"Kik"},{name:"Profile"},{name:"UserData"},{name:"Auth"},{name:"Photo"},{name:"Keyboard"},{name:"Push"},{name:"Picker"}];var c=[{name:"Browser.getLastLinkData",args:{}},{name:"Kik.getLastMessage",args:{}},{name:"Push.getNotificationList",args:{}},{name:"Push.setBadgeVisibility",args:{visible:false}},{name:"Picker.getRequest",args:{}}];d._.bridge.batch(a.concat(c)).slice(a.length).forEach(function(e,g){var f=c[g];b[f.name]=e;if(!e){}else{if(!d._.secondBatch){d._.secondBatch=[]}}})})(cards);(function(b,g){var c="kik-transform-fix";if(a()){d()}function a(){var h=true;if(!g.enabled){h=false}else{if(!g.utils.platform.os.android){h=false}else{Array.prototype.forEach.call(b.getElementsByTagName("meta"),function(i){if((i.name===c)&&(i.content==="false")){h=false}})}}return h}function d(){var h=b.documentElement;e(h,"translate3d(0,0,0)");setTimeout(function(){f(h,"transform 10ms linear");setTimeout(function(){e(h,"translate3d(0,0,1px)");setTimeout(function(){f(h,"");setTimeout(function(){e(h,"")},0)},10)},0)},0)}function e(i,h){i.style["-webkit-transform"]=h;i.style["-moz-transform"]=h;i.style["-ms-transform"]=h;i.style["-o-transform"]=h;i.style.transform=h}function f(h,i){if(i){h.style["-webkit-transition"]="-webkit-"+i;h.style["-moz-transition"]="-moz-"+i;h.style["-ms-transition"]="-ms-"+i;h.style["-o-transition"]="-o-"+i;h.style.transition=i}else{h.style["-webkit-transition"]="";h.style["-moz-transition"]="";h.style["-ms-transition"]="";h.style["-o-transition"]="";h.style.transition=""}}})(document,cards);(function(h,a){var e;try{e=a._.bridge("Metrics")}catch(d){}var j=a.events(),g=[];a.metrics=j;j.loadTime=null;j.coverTime=null;if(e){e.on("loadData",function(m){if(typeof m.loadTime==="number"){j.loadTime=m.loadTime;j.trigger("loadTime",m.loadTime)}if(typeof m.coverTime==="number"){j.coverTime=m.coverTime;j.trigger("coverTime",m.coverTime)}})}var l=false;j.enableGoogleAnalytics=k;j.logEvent=i;function k(n,m){if(l){return}l=true;if(n){c(n,m)}f()}function c(n,m){if(typeof n!=="string"){throw TypeError("google analytics ID must be a string, got "+n)}if(typeof m!=="string"){throw TypeError("google analytics host must be a string, got "+m)}h.GoogleAnalyticsObject="ga";h.ga=h.ga||function(){(h.ga.q=h.ga.q||[]).push(arguments)},h.ga.l=+new Date();a.ready(function(){var o=document.createElement("script"),p=document.getElementsByTagName("script")[0];o.async=1;o.src="//www.google-analytics.com/analytics.js";p.parentNode.insertBefore(o,p)});h.ga("create",n,m);h.ga("send","pageview")}function f(){h.addEventListener("error",function(q){var p=q.message||"";p+=" ("+(q.filename||h.location.href);if(q.lineno){errorFile+=":"+q.lineno}p+=")";i("error",p)},false);if((typeof App==="object")&&(typeof App.enableGoogleAnalytics==="function")){App.enableGoogleAnalytics()}if(e){b("loadTime");b("coverTime")}if(a.kik&&a.kik.hasPermission){var m;try{m=a.kik.hasPermission()}catch(n){}if(typeof m==="boolean"){i("linked",m?1:0)}}var o=g.slice();g=null;o.forEach(function(p){i(p[0],p[1],p[2])})}function i(n,m,o){if(g){g.push([n,m,o]);return}switch(typeof m){case"number":o=m;m=undefined;case"undefined":case"string":break;default:return}switch(typeof o){case"number":o=Math.floor(o);case"undefined":break;default:return}if((typeof m==="undefined")&&(typeof o==="undefined")){return}if(typeof h.ga==="function"){h.ga("send","event","Cards",n,m,o);return}if(!h._gaq){h._gaq=[]}if(typeof h._gaq.push==="function"){h._gaq.push(["_trackEvent","Cards",n,m,o,true])}}function b(m){i(m,j[m]);j.on(m,function(){i(m,j[m])})}})(window,cards);(function(j,p,o){function s(B,F){var A=j.applicationCache,E=false;if(!A||!A.addEventListener||!A.swapCache||!A.update){F(false);return}if(A.status===A.UPDATEREADY){z();return}if((A.status!==A.IDLE)&&(A.status!==A.CHECKING)&&(A.status!==A.DOWNLOADING)){F(false);return}A.addEventListener("noupdate",C,false);A.addEventListener("updateready",z,false);A.addEventListener("error",z,false);A.addEventListener("obsolete",z,false);setTimeout(z,30*1000);if(A.status===A.IDLE){try{A.update()}catch(D){z()}}function C(){if(E){return}E=true;if(!B&&j.console&&j.console.log){j.console.log("refresh requested but no update to manifest found");j.console.log("** update your manifest to see changes reflected")}setTimeout(function(){F(true)},1000)}function z(){if(E){return}E=true;var G=false;if(A.status===A.UPDATEREADY){try{A.swapCache();G=true}catch(H){}}F(G)}}if(o.utils.platform.os.ios){setTimeout(function(){s(true,function(z){})},5000)}j.ZERVER_REFRESH=function(){c();s(true,function(){j.location.reload()})};function c(){try{j.ZERVER_KILL_STREAM()}catch(z){}}function i(B){if(typeof B!=="string"){return undefined}B=decodeURIComponent(B);var z;try{z=JSON.parse(B)}catch(A){}if((typeof z==="object")&&(z!==null)){return z}else{return B||undefined}}if(j.location.hash){o.linkData=i(j.location.hash.substr(1))}var a;try{a=o._.bridge("Browser")}catch(d){return}var w=o.events();o.browser=w;var y={};if(a.setCardInfo){var m=/(^|\s)icon(\s|$)/i,u,g,x,h;Array.prototype.forEach.call(p.getElementsByTagName("link"),function(z){if(!u){if((z.rel==="kik-icon")||(m.test(z.rel)&&!u)){u=z.href}}if(!g){if(z.rel==="kik-tray-icon"){g=z.href}}if(!x){if(z.rel==="privacy"){x=z.href}}if(!h){if(z.rel==="terms"){h=z.href}}});var l={title:p.title,icon:u,mediaTrayIcon:g,privacy:x,terms:h};if(cards._.secondBatch){cards._.secondBatch.push({name:"Browser.setCardInfo",args:l})}else{a.setCardInfo(l)}}if(a.pageLoaded){o.utils.windowReady(function(){if(p.body){var z=p.body.offsetWidth;(function(A){return A})(z)}setTimeout(function(){a.pageLoaded()},1)})}j.addEventListener("unload",function(){if(a.navigationAttempted){a.navigationAttempted()}},false);var r=true;if(a.setStatusBarVisible){var k=false;w.statusBar=function(z){k=true;a.setStatusBarVisible({visible:!!z});r=!!z}}if(a.getOrientationLock&&a.setOrientationLock){w.getOrientationLock=function(){var z=a.getOrientationLock().position;return(z==="free")?null:z};w.setOrientationLock=function(z){switch(z){case"free":case"portrait":case"landscape":break;default:if(!z){z="free";break}throw TypeError("if defined, position "+z+' must be one of "free", "portrait", or "landscape"')}try{a.setOrientationLock({position:z});if(!k&&a.setStatusBarVisible&&(r!==(z!=="landscape"))){a.setStatusBarVisible({visible:(z!=="landscape")});r=(z!=="landscape")}return true}catch(A){return false}};if(j.screen&&!j.screen.lockOrientation){j.screen.lockOrientation=function(z){if(arguments.length>1){return false}switch(z){case"landscape":case"portrait":break;default:return false}return w.setOrientationLock(z)};j.screen.unlockOrientation=function(){return w.setOrientationLock("free")};if(!j.screen.orientation){j.screen.orientation=(j.innerHeight>=j.innerWidth?"portrait":"landscape");a.on("orientationChanged",function(z){j.screen.orientation=z.orientation})}}}a.on("orientationChanged",function(){if(j.App&&j.App._layout){try{j.App._layout()}catch(z){}}});if(a.setBacklightTimeoutEnabled){w.backlightTimeout=function(z){a.setBacklightTimeoutEnabled({enabled:!!z})}}if(a.forceRepaint){w.paint=function(){if(p.body){var z=p.body.offsetWidth;(function(A){return A})(z)}a.forceRepaint()}}if(a.handleBack){var e=[];w.back=function(z){if(typeof z!=="function"){throw TypeError("back handler "+z+" must be a function")}e.push(z)};w.unbindBack=function(A){if(typeof A!=="function"){throw TypeError("back handler "+A+" must be a function")}for(var z=e.length;z--;){if(e[z]===A){e.splice(z,1)}}};a.on("back",function(C){var A=false;for(var z=e.length;z--;){try{if(e[z]()===false){A=true;break}}catch(B){o.utils.error(B)}}a.handleBack({requestToken:C.requestToken,override:A})});w.back(function(){if(j.App&&(typeof j.App.back==="function")){try{if(App.back()!==false){return false}}catch(z){}}})}if(a.refresh&&a.refreshPlanned){w.refresh=function(){var z=j.applicationCache;c();if(!z||(z.status===z.UNCACHED)){a.refresh({withCache:false});return}s(false,function(A){a.refresh({withCache:true})})};a.on("refresh",function(){setTimeout(function(){a.refreshPlanned();w.refresh()},0)});j.ZERVER_REFRESH=function(){w.refresh()}}if(a.openCard&&a.openExternal){w.open=function(B,A,C){if(typeof B!=="string"){throw TypeError("url "+B+" must be a string")}switch(typeof A){case"undefined":case"string":break;case"object":A=JSON.stringify(A);break;default:throw TypeError("card linkData must be a string or JSON if defined, got "+A)}switch(typeof C){case"undefined":C={};break;case"object":break;default:throw TypeError("card data must be an object if defined, got "+C)}var z=B.substr(0,7)==="card://",D=B.substr(0,8)==="cards://";if(!z&&!D){a.openExternal({url:B});return}B="http"+B.substr(4);if(A){B=B.split("#")[0]+"#"+encodeURIComponent(A)}a.openCard({url:B,title:C.title||undefined,icon:C.icon||undefined,clearHistory:!!C.clearHistory})}}function q(A,z){w.linkData=i(A&&A.data);o.linkData=w.linkData;if((z!==false)&&w.linkData){w.trigger("linkData",w.linkData)}}w._processLinkData=q;if(a.getLastLinkData){q(cards._.firstBatch["Browser.getLastLinkData"]||a.getLastLinkData(),false)}a.on("linkData",q);var n=true,v=false,t=true;w.background=n;a.on("pause",function(z){v=true;f()});a.on("unpause",function(z){v=false;f()});a.on("conceal",function(z){t=true;f()});a.on("reveal",function(z){t=false;f()});function b(){return v||t}function f(){var z=n;n=b();w.background=n;if(z!==n){w.trigger(n?"background":"foreground")}}})(window,document,cards);(function(c,a,b){if(b._.bridge){c.alert=function(){};c.confirm=function(){};c.prompt=function(){}}})(window,document,cards);(function(g,c,f){var d;try{d=f._.bridge("Media")}catch(e){}if(!d||!d.setMediaCategory||!d.unsetMediaCategory){f._mediaEnabled=function(){}}else{f._mediaEnabled=a;b()}function b(){var h=false;Array.prototype.forEach.call(c.getElementsByTagName("meta"),function(i){if((i.name==="kik-media-enabled")&&(i.content==="true")){h=true}});a(h)}function a(h){if(cards._.secondBatch){cards._.secondBatch.push({name:"Media."+(h?"":"un")+"setMediaCategory",args:{}})}else{try{if(h){d.setMediaCategory()}else{d.unsetMediaCategory()}}catch(i){}}}})(window,document,cards);(function(j,k,i){var c;try{c=i._.bridge("Kik")}catch(f){return}var b=i.events();i.kik=b;b._formatMessage=e;function e(o){var m;if(typeof o!=="object"){throw TypeError("message "+o+" must be an object")}switch(typeof o.big){case"undefined":case"boolean":break;default:throw TypeError("message size (big) "+o.big+" must be a boolean if defined")}switch(typeof o.title){case"undefined":case"string":if(!o.big&&!o.title){throw TypeError("message title must be a string")}o.title=o.title||"";break;default:throw TypeError("message title "+o.title+" must be a string")}switch(typeof o.text){case"string":case"undefined":break;default:throw TypeError("message text "+o.text+" must be a string")}switch(typeof o.pic){case"undefined":case"string":break;default:throw TypeError("message pic "+o.pic+" must be a string if defined")}switch(typeof o.noForward){case"undefined":case"boolean":break;default:throw TypeError("message noForward flag must be a boolean if defined, got "+o.noForward)}switch(typeof o.fallback){case"undefined":case"string":break;default:throw TypeError("message fallback URL must be a string if defined, got "+o.fallback)}switch(typeof o.linkData){case"undefined":case"string":break;case"object":try{m=JSON.stringify(o.linkData)}catch(n){throw TypeError("message linkData must be a string or JSON if defined, got "+o.linkData)}break;default:throw TypeError("message linkData must be a string or JSON if defined, got "+o.linkData)}var p=m||o.linkData;if(typeof p==="string"){p=encodeURIComponent(p)}var m;switch(typeof o.data){case"object":if(o.data!==null){try{m=JSON.stringify(o.data)}catch(n){throw TypeError("message data must be a json object if defined, got "+o.data)}}case"undefined":break;default:throw TypeError("message data must be a json object if defined, got "+o.data)}var l;if((typeof o.data==="object")&&(o.data!==null)&&o.data.id){l=o.data.id+""}cards.metrics.logEvent("kikSend",l);return{title:o.title,text:o.text,image:o.pic,forwardable:!o.noForward,fallbackUrl:o.fallback,layout:o.big?"photo":"article",extras:{sender:i._.id,dataID:l,messageID:i.utils.random.uuid(),linkData:p||"",jsonData:m||""}}}b.send=function(m,l){if(typeof m!=="string"){l=m;m=undefined}l=e(l);l.targetUser=m;if(m&&c.sendKikToUser){c.sendKikToUser(l)}else{c.sendKik(l)}};var h=i.events.handlers();b.handler=function(l){return h.handler(l)};function g(o,l){a();if(!o.extras.sender||(o.extras.sender!==i._.id)){cards.metrics.logEvent("kikReceive",o.extras.dataID)}if(o.extras.jsonData){var m;try{m=JSON.parse(o.extras.jsonData)}catch(n){}if((typeof m==="object")&&(m!==null)){b.message=m;h.trigger(m);b.trigger("message",m)}}if(o.extras&&o.extras.linkData&&i.browser&&i.browser._processLinkData){i.browser._processLinkData({data:o.extras.linkData},l)}}if(c.getLastMessage){var d=cards._.firstBatch["Kik.getLastMessage"]||c.getLastMessage();if(d&&d.message){g(d.message,false)}}c.on("message",g);if(c.openConversation){b.open=function(){c.openConversation()}}function a(){if(!c.openConversation){return}b.returnToConversation=function(l){b.returnToConversation=null;if(!l){c.openConversation({returnToSender:true});return}l=e(l);l.returnToSender=true;c.sendKik(l)}}})(window,document,cards);(function(f,a,e){var b;try{b=e._.bridge("Profile")}catch(d){return}var c=e.kik;if(!c){c=e.events();e.kik=c}if(b.openProfile){c.showProfile=function(h){if(typeof h!=="string"){throw TypeError("username must be a string, got "+h)}try{b.openProfile({username:h})}catch(g){}}}})(window,document,cards);(function(i,j,g){var l;try{l=g._.bridge("UserData")}catch(d){return}var b=g.kik;if(!b){b=g.events();g.kik=b}function k(m){m.fullName=(m.displayName||"");var n=m.fullName.indexOf(" ");if(n===-1){m.firstName=m.fullName;m.lastName=""}else{m.firstName=m.fullName.substr(0,n);m.lastName=m.fullName.substr(n+1)}delete m.displayName;m.pic=e(m.pic);m.thumbnail=e(m.thumbnail);return m}function e(m){if(typeof m!=="string"){return m}var n=m.replace(/^https?\:\/\/[^\/]*/,"");return"//d33vud085sp3wg.cloudfront.net"+n}var f;if(l.getUserData){b.getUser=function(m){switch(typeof m){case"undefined":m=function(){};case"function":break;default:throw TypeError("callback must be a function if defined, got "+m)}h(m)}}function h(n){if(f){setTimeout(function(){n(f)},0);return}var m=b.hasPermission?b.hasPermission():false;l.getUserData({fields:["profile"]},function(p){var o=p&&p.userData;if(!m){g.metrics.logEvent("link-request",(o?1:0))}if(!o){n();return}k(o);f=o;n(o)})}if(l.checkPermissions){b.hasPermission=function(){try{return !!l.checkPermissions({fields:["profile"]}).permitted}catch(m){return false}}}if(l.pickUsers||l.pickFilteredUsers){b.pickUsers=function(m,n){switch(typeof m){case"function":n=m;case"undefined":m={};case"object":break;default:throw TypeError("options must be an object if defined, got "+m)}if(typeof n!=="function"){throw TypeError("callback must be a function, got "+n)}switch(typeof m.preselected){case"undefined":m.preselected=[];break;default:if(!Array.isArray(m.preselected)){throw TypeError("preselected users must be an array of users if defined, got "+m.preselected)}m.preselected.forEach(function(o){if(typeof o!=="object"){throw TypeError("user must be an object, got "+o)}if(typeof o.username!=="string"){throw TypeError("user.username must be a string, got "+o.username)}});break}switch(typeof m.filtered){case"undefined":m.filtered=[];break;default:if(!Array.isArray(m.filtered)){throw TypeError("filtered users must be an array of users if defined, got "+m.filtered)}m.filtered=m.filtered.map(function(o){switch(typeof o){case"string":return o;case"object":if(typeof o.username==="string"){return o.username}default:throw TypeError("filtered user didnt have a username, got "+o)}});break}switch(typeof m.filterSelf){case"undefined":case"boolean":break;default:throw TypeError("filterSelf must be a boolean if defined, got "+m.filterSelf)}switch(typeof m.minResults){case"undefined":break;case"number":if(m.minResults<0){throw TypeError("minResults must be non-negative if defined, got "+m.minResults)}break;default:throw TypeError("minResults must be a number if defined, got "+m.minResults)}switch(typeof m.maxResults){case"undefined":break;case"number":if(m.maxResults<1){throw TypeError("maxResults must be greater than 1 if defined, got "+m.maxResults)}break;default:throw TypeError("maxResults must be a number if defined, got "+m.maxResults)}switch(typeof n){case"undefined":n=function(){};break;case"function":break;default:throw TypeError("callback must be a function if defined, got "+n)}if(m.preselected.length&&m.filtered.length){throw TypeError("can only preselect or filter users, not both")}if(l.pickFilteredUsers&&!m.preselected.length){c(m,n)}else{a(m,n)}}}function c(m,n){m.minResults=m.minResults||1;l.pickFilteredUsers({minResults:m.minResults,maxResults:m.maxResults,filtered:m.filtered,filterSelf:m.filterSelf},function(o){if(!o||!o.userDataList){n();return}var p=o.userDataList.map(k);if(m.filtered){p=p.filter(function(q){return m.filtered.indexOf(q.username)===-1})}n(p)})}function a(o,s){var q=false;if(!o.preselected||!o.preselected.length){o.minResults=o.minResults||1}var m={},p=[];o.preselected.forEach(function(t){m[t.username]=t;p.push(t.username)});l.pickUsers({minResults:o.minResults,maxResults:o.maxResults,preselected:p},function(t){if(q){return}if(!t||!t.userDataList){q=true;s();return}var u=t.userDataList.map(function(v){if(v.username in m){return m[v.username]}else{return k(v)}});q=true;s(u)});var r=cards.utils.platform.os;var n=cards.utils.platform.browser;if(r.ios&&n.cards&&n.version<6.5){cards.browser.once("foreground",function(){setTimeout(function(){if(!q){q=true;s()}},0)})}}})(window,document,cards);(function(f,a,e){var b;try{b=e._.bridge("Auth")}catch(d){return}var c=e.kik;if(!c){c=e.events();e.kik=c}if(b.signRequest){c.sign=function(h,i){if(e.utils.platform.os.android){cards.ready(function(){g(h,i)})}else{g(h,i)}}}function g(h,i){b.signRequest({request:h},function(l){if(!l||!l.signedRequest){i();return}var k=e.utils.platform.os,j=l.host;if(!j){j=f.location.host;if(k.android){j+=f.location.pathname;if(j[j.length-1]==="/"){j=j.substr(0,j.length-1)}}}i(l.signedRequest,l.username,j)})}})(window,document,cards);(function(f,h,d){var i;try{i=d._.bridge("Photo")}catch(b){return}var a=d.events();d.photo=a;if(i.getPhoto){a.get=function(j,k){e(j,k)};a.getFromCamera=function(j,k){e("camera",j,k)};a.getFromGallery=function(j,k){e("gallery",j,k)}}function c(j,k){switch(typeof k){case"undefined":case"function":break;default:throw TypeError(j+" must be a function if defined, got "+k)}}function g(j,l,k,m){switch(typeof l){case"undefined":break;case"number":if(l<k||l>m){throw TypeError(j+" must be within "+k+" and "+m+" if defined, got "+l)}break;default:throw TypeError(j+" must be a number if defined, got "+l)}}function e(j,x,w){if(typeof j!=="string"){w=x;x=j;j=undefined}switch(typeof x){case"function":w=x;x={};case"object":break;default:throw TypeError("options must be an object, got "+x)}c("callback",w);c("onCancel",x.onCancel);c("onSelect",x.onSelect);c("onPhoto",x.onPhoto);c("onComplete",x.onComplete);g("quality",x.quality,0,1);g("minResults",x.minResults,0,25);g("maxResults",x.maxResults,1,25);g("maxHeight",x.maxHeight,0,1280);g("maxWidth",x.maxWidth,0,1280);var q=x.onSelect,s=x.onCancel,u=x.onPhoto,l=x.onComplete,r=false,p,t;try{i.getPhoto({source:j,quality:x.quality,minResults:x.minResults,maxResults:x.maxResults,maxHeight:x.maxHeight,maxWidth:x.maxWidth,autoSave:x.saveToGallery},n)}catch(m){if(!r){r=true;o(s);o(w)}}function n(y){if(r){return}r=true;p=y&&y.photoIds;var z=p&&p.length;if(!z){o(s);o(w);return}o(q,z);t=new Array(z);i.on("photo",v)}function v(C){if(!C){return}var A=p.indexOf(C.id);if(A===-1){return}C.url=C.url||null;p[A]=null;t[A]=C.url;var z=0;for(var B=0,y=p.length;B<y;B++){if(p[B]!==null){z++}}o(u,C.url,A);if(z===0){k()}}function k(){i.off("photo",v);o(l,t);o(w,t)}function o(B,z,y){if(!B){return}try{B(z,y)}catch(A){d.utils.error(A)}}}if(i.savePhoto){a.saveToGallery=function(j,m){switch(typeof m){case"undefined":m=function(){};case"function":break;default:throw TypeError("callback must be a function, got "+m)}try{i.savePhoto({url:j},function(n){k(!!n)})}catch(l){k(false)}function k(n){k=function(){};m(n)}}}})(window,document,cards);(function(j,k,h){var a;try{a=h._.bridge("Keyboard")}catch(e){}var l="kik-hide-form-helpers";var g=false;i();h.formHelpers={show:f,hide:d,isEnabled:b};function i(){var m;Array.prototype.forEach.call(k.getElementsByTagName("meta"),function(n){if(n.name===l){m=(n.content||"").trim()}});if(m==="true"){c(false);g=true}}function d(){c(false)}function f(){c(true)}function c(m){if(g){return}if(cards._.secondBatch){cards._.secondBatch.push({name:"Keyboard.setFormHelpers",args:{enabled:m}})}else{try{a.setFormNavigationEnabled({enabled:m})}catch(n){}}}function b(){try{return !!a.isFormNavigationEnabled().enabled}catch(m){return !!h.utils.platform.os.ios}}})(window,document,cards);(function(g,b,h){var a;try{a=h._.bridge("Push")}catch(f){return}var c=h.events();h.push=c;if(a.setBadgeVisibility){c.badge=function(i){a.setBadgeVisibility({visible:!!i})}}if(a.getPushToken){c.getToken=function(i){if(typeof i!=="function"){throw TypeError("callback must be a function, got "+i)}a.getPushToken(function(j){i(j&&j.token)})}}if(a.getNotificationList){var d=h.events.handlers();var e=function(){var o;try{if(h._.firstBatch&&h._.firstBatch["Push.getNotificationList"]){o=h._.firstBatch["Push.getNotificationList"]}else{o=a.getNotificationList()}}catch(n){}if(a.setBadgeVisibility&&!(h._.firstBatch&&h._.firstBatch["Push.setBadgeVisibility"])){try{a.setBadgeVisibility({visible:false})}catch(n){}}if(o&&o.notifications){var m=[];for(var k=0,j=o.notifications.length;k<j;k++){if(typeof o.notifications[k]==="object"){switch(typeof o.notifications[k].data){case"object":m.push(o.notifications[k].data);break;case"string":try{var p=JSON.parse(o.notifications[k].data);if(typeof p==="object"){m.push(p)}else{}}catch(n){}break;default:break}}}d.triggerMulti(m)}else{}};c.handler=function(i){return d.handler(i)};a.on("notificationReceived",function(){setTimeout(e,0)});e()}})(window,document,cards);(function(e,f,a){var g;try{g=a._.bridge("Picker")}catch(b){return}if(!g.startRequest){return}var d=a.events(h);a.picker=d;function h(k,j,l){if(typeof k!=="string"){throw TypeError("picker url must be a string, got "+k)}switch(typeof j){case"function":caller=j;case"undefined":j={};case"object":break;default:throw TypeError("picker options must be an object if defined, got "+j)}if(typeof l!=="function"){throw TypeError("picker callback must be a function, got "+l)}g.startRequest({requestUrl:k,requestData:j},function(m){l(m&&m.responseData)})}if(g.getRequest&&g.completeRequest){var c,i;try{c=(a._.secondBatch?a._.firstBatch["Picker.getRequest"]:g.getRequest()).requestData}catch(b){}if(c&&f.referrer){i=!!(c&&c.kik&&(f.referrer.split("?")[0]==="https://kik.com/"));d.url=f.referrer;d.data=c;d.fromKik=i;d.reply=function(k){if(i&&k){k=a.kik._formatMessage(k)}try{g.completeRequest({responseData:k})}catch(j){}};d.cancel=function(){try{g.cancelRequest()}catch(j){}d.url=undefined;d.data=undefined;d.reply=undefined;d.cancel=undefined;d.trigger("cancel")}}else{}}else{}})(window,document,cards);(function(f,g,b){var h;try{h=b._.bridge("IAP")}catch(d){return}if(!h.purchase||!h.markTransactionStored||!h.getAvailableItems||!h.getTransactionList){return}var c=b.events(a);c.init=i;b.purchase=c;function i(k){if(typeof arguments[0]==="string"){k=Array.prototype.slice.call(k)}if(!Array.isArray(k)){throw TypeError("list of SKUs must be an array")}k.forEach(function(n){if(typeof n!=="string"){throw TypeError("SKU must be a string, got "+n)}});var j,m;try{j=h.getAvailableItems({skus:k}).items;m=h.getTransactionList().transactions}catch(l){}if(!j||!m){throw TypeError("failed to receive access to Purchase APIs")}c.init=null;c.complete=e;c.items=j;c.pending=m}function a(m,k,l){switch(typeof m){case"object":if(m===null){throw TypeError("SKU must be a string, got "+m)}if(typeof m.sku!=="string"){throw TypeError("SKU must be a string, got "+m.sku)}m=m.sku;case"string":break;default:throw TypeError("SKU must be a string, got "+m)}var j=c.items.map(function(n){return n.sku}).indexOf(m);if(j===-1){throw TypeError("SKU not available, got "+m)}switch(typeof k){case"function":l=k;k=undefined;case"undefined":k={};case"object":break;default:throw TypeError("purchase data must be a JSON object if defined, got "+k)}switch(typeof l){case"undefined":l=function(){};case"function":break;default:throw TypeError("purchase callback must be a function if defined, got "+l)}h.purchase({sku:m,data:k},function(n){if(!n||!n.transaction){l();return}c.pending.push(n.transaction);l(n.transaction)})}function e(k){if(typeof k!=="string"){throw TypeError("transactionId must be a string, got "+k)}h.markTransactionStored({transactionId:k});for(var j=c.pending.length;j--;){if(c.pending[j].transactionId===k){c.pending.splice(j,1)}}}})(window,document,cards);(function(a){delete a._.firstBatch;if(a._.secondBatch){a._.bridge.batch(a._.secondBatch);delete a._.secondBatch}})(cards);(function(i,j,a){var c="kik-prefer",g="kik-more",d="kik-unsupported",f="//s3.amazonaws.com/cdn.kik.com/cards/unsupported.html?unsupportedos=true";b();l();function b(){if(a.enabled){return}var n=a.utils.url;if(n.query._app_platform){return}var o="card"+n.updateQuery({kikme:null}).substr(4),m=!!n.query.kikme,p;if(!m){Array.prototype.forEach.call(j.getElementsByTagName("meta"),function(q){if((q.name===c)&&(q.content||"").trim()){m=true}else{if(q.name===g){p=(q.content||"").trim()}}});if(p&&(p!==i.location.host)){m=false}}if(m){a.open.card(o,undefined,true)}}function e(){var s=a.utils.platform.os,o;Array.prototype.forEach.call(j.getElementsByTagName("meta"),function(u){if(u.name===d){o=(u.content||"").trim()}});if(!o){return true}var m=true;var t=o.split(",");for(var q=0,n=t.length;q<n;q++){var r=t[q].trim();var p=h(r);if(r&&p){if(p.ios&&s.ios){if(s.version<(p.version+1)){m=false}}else{if(p.android&&s.android){if(s.version<=p.version){m=false}}}}}return m}function h(m){var p=-1,o=false,n=false;if(m.indexOf("android-")===0){n=true;p=parseFloat(m.replace("android-",""));if(p>=2.3){return k(m)}}else{if(m.indexOf("ios-")===0){o=true;p=parseFloat(m.replace("ios-",""));if(p>=5){return k(m)}}else{return k(m)}}return{ios:o,android:n,version:p}}function k(m){if(i.console&&i.console.error){i.console.error('"'+m+'" is an unsupported value for the "'+d+'" meta tag')}return false}function l(){if(e()){return}var p=j.documentElement;Array.prototype.forEach.call(p.childNodes,function(q){p.removeChild(q)});p.style.height="100%";p.style.width="100%";p.style.padding="0";p.style.border="none";p.style.margin="0";p.style.overflow="hidden";var m=j.createElement("head"),o=j.createElement("meta");o.name="viewport";o.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no";m.appendChild(o);p.appendChild(m);var n=j.createElement("iframe");n.src=f;n.style.zIndex="99999999";n.style.position="fixed";n.style.top="0";n.style.left="0";n.style.height="100%";n.style.width="100%";n.style.border="none";n.style["-webkit-transform"]="translate3d(0,0,0)";p.appendChild(n);p.style.background=n.style.background}})(window,document,cards);
@@ -0,0 +1,2 @@
1
+ /* Zepto v1.0rc1 - polyfill zepto event detect fx ajax form touch - zeptojs.com/license */
2
+ (function(a){String.prototype.trim===a&&(String.prototype.trim=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")}),Array.prototype.reduce===a&&(Array.prototype.reduce=function(b){if(this===void 0||this===null)throw new TypeError;var c=Object(this),d=c.length>>>0,e=0,f;if(typeof b!="function")throw new TypeError;if(d==0&&arguments.length==1)throw new TypeError;if(arguments.length>=2)f=arguments[1];else do{if(e in c){f=c[e++];break}if(++e>=d)throw new TypeError}while(!0);while(e<d)e in c&&(f=b.call(a,f,c[e],e,c)),e++;return f})})();var Zepto=function(){function A(a){return v.call(a)=="[object Function]"}function B(a){return a instanceof Object}function C(b){var c,d;if(v.call(b)!=="[object Object]")return!1;d=A(b.constructor)&&b.constructor.prototype;if(!d||!hasOwnProperty.call(d,"isPrototypeOf"))return!1;for(c in b);return c===a||hasOwnProperty.call(b,c)}function D(a){return a instanceof Array}function E(a){return typeof a.length=="number"}function F(b){return b.filter(function(b){return b!==a&&b!==null})}function G(a){return a.length>0?[].concat.apply([],a):a}function H(a){return a.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function I(a){return a in i?i[a]:i[a]=new RegExp("(^|\\s)"+a+"(\\s|$)")}function J(a,b){return typeof b=="number"&&!k[H(a)]?b+"px":b}function K(a){var b,c;return h[a]||(b=g.createElement(a),g.body.appendChild(b),c=j(b,"").getPropertyValue("display"),b.parentNode.removeChild(b),c=="none"&&(c="block"),h[a]=c),h[a]}function L(b,d){return d===a?c(b):c(b).filter(d)}function M(a,b,c,d){return A(b)?b.call(a,c,d):b}function N(a,b,d){var e=a%2?b:b.parentNode;e?e.insertBefore(d,a?a==1?e.firstChild:a==2?b:null:b.nextSibling):c(d).remove()}function O(a,b){b(a);for(var c in a.childNodes)O(a.childNodes[c],b)}var a,b,c,d,e=[],f=e.slice,g=window.document,h={},i={},j=g.defaultView.getComputedStyle,k={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},l=/^\s*<(\w+|!)[^>]*>/,m=[1,3,8,9,11],n=["after","prepend","before","append"],o=g.createElement("table"),p=g.createElement("tr"),q={tr:g.createElement("tbody"),tbody:o,thead:o,tfoot:o,td:p,th:p,"*":g.createElement("div")},r=/complete|loaded|interactive/,s=/^\.([\w-]+)$/,t=/^#([\w-]+)$/,u=/^[\w-]+$/,v={}.toString,w={},x,y,z=g.createElement("div");return w.matches=function(a,b){if(!a||a.nodeType!==1)return!1;var c=a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.matchesSelector;if(c)return c.call(a,b);var d,e=a.parentNode,f=!e;return f&&(e=z).appendChild(a),d=~w.qsa(e,b).indexOf(a),f&&z.removeChild(a),d},x=function(a){return a.replace(/-+(.)?/g,function(a,b){return b?b.toUpperCase():""})},y=function(a){return a.filter(function(b,c){return a.indexOf(b)==c})},w.fragment=function(b,d){d===a&&(d=l.test(b)&&RegExp.$1),d in q||(d="*");var e=q[d];return e.innerHTML=""+b,c.each(f.call(e.childNodes),function(){e.removeChild(this)})},w.Z=function(a,b){return a=a||[],a.__proto__=arguments.callee.prototype,a.selector=b||"",a},w.isZ=function(a){return a instanceof w.Z},w.init=function(b,d){if(!b)return w.Z();if(A(b))return c(g).ready(b);if(w.isZ(b))return b;var e;if(D(b))e=F(b);else if(C(b))e=[c.extend({},b)],b=null;else if(m.indexOf(b.nodeType)>=0||b===window)e=[b],b=null;else if(l.test(b))e=w.fragment(b.trim(),RegExp.$1),b=null;else{if(d!==a)return c(d).find(b);e=w.qsa(g,b)}return w.Z(e,b)},c=function(a,b){return w.init(a,b)},c.extend=function(c){return f.call(arguments,1).forEach(function(d){for(b in d)d[b]!==a&&(c[b]=d[b])}),c},w.qsa=function(a,b){var c;return a===g&&t.test(b)?(c=a.getElementById(RegExp.$1))?[c]:e:a.nodeType!==1&&a.nodeType!==9?e:f.call(s.test(b)?a.getElementsByClassName(RegExp.$1):u.test(b)?a.getElementsByTagName(b):a.querySelectorAll(b))},c.isFunction=A,c.isObject=B,c.isArray=D,c.isPlainObject=C,c.inArray=function(a,b,c){return e.indexOf.call(b,a,c)},c.trim=function(a){return a.trim()},c.uuid=0,c.map=function(a,b){var c,d=[],e,f;if(E(a))for(e=0;e<a.length;e++)c=b(a[e],e),c!=null&&d.push(c);else for(f in a)c=b(a[f],f),c!=null&&d.push(c);return G(d)},c.each=function(a,b){var c,d;if(E(a)){for(c=0;c<a.length;c++)if(b.call(a[c],c,a[c])===!1)return a}else for(d in a)if(b.call(a[d],d,a[d])===!1)return a;return a},c.fn={forEach:e.forEach,reduce:e.reduce,push:e.push,indexOf:e.indexOf,concat:e.concat,map:function(a){return c.map(this,function(b,c){return a.call(b,c,b)})},slice:function(){return c(f.apply(this,arguments))},ready:function(a){return r.test(g.readyState)?a(c):g.addEventListener("DOMContentLoaded",function(){a(c)},!1),this},get:function(b){return b===a?f.call(this):this[b]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){this.parentNode!=null&&this.parentNode.removeChild(this)})},each:function(a){return this.forEach(function(b,c){a.call(b,c,b)}),this},filter:function(a){return c([].filter.call(this,function(b){return w.matches(b,a)}))},add:function(a,b){return c(y(this.concat(c(a,b))))},is:function(a){return this.length>0&&w.matches(this[0],a)},not:function(b){var d=[];if(A(b)&&b.call!==a)this.each(function(a){b.call(this,a)||d.push(this)});else{var e=typeof b=="string"?this.filter(b):E(b)&&A(b.item)?f.call(b):c(b);this.forEach(function(a){e.indexOf(a)<0&&d.push(a)})}return c(d)},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){var a=this[0];return a&&!B(a)?a:c(a)},last:function(){var a=this[this.length-1];return a&&!B(a)?a:c(a)},find:function(a){var b;return this.length==1?b=w.qsa(this[0],a):b=this.map(function(){return w.qsa(this,a)}),c(b)},closest:function(a,b){var d=this[0];while(d&&!w.matches(d,a))d=d!==b&&d!==g&&d.parentNode;return c(d)},parents:function(a){var b=[],d=this;while(d.length>0)d=c.map(d,function(a){if((a=a.parentNode)&&a!==g&&b.indexOf(a)<0)return b.push(a),a});return L(b,a)},parent:function(a){return L(y(this.pluck("parentNode")),a)},children:function(a){return L(this.map(function(){return f.call(this.children)}),a)},siblings:function(a){return L(this.map(function(a,b){return f.call(b.parentNode.children).filter(function(a){return a!==b})}),a)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(a){return this.map(function(){return this[a]})},show:function(){return this.each(function(){this.style.display=="none"&&(this.style.display=null),j(this,"").getPropertyValue("display")=="none"&&(this.style.display=K(this.nodeName))})},replaceWith:function(a){return this.before(a).remove()},wrap:function(a){return this.each(function(){c(this).wrapAll(c(a)[0].cloneNode(!1))})},wrapAll:function(a){return this[0]&&(c(this[0]).before(a=c(a)),a.append(this)),this},unwrap:function(){return this.parent().each(function(){c(this).replaceWith(c(this).children())}),this},clone:function(){return c(this.map(function(){return this.cloneNode(!0)}))},hide:function(){return this.css("display","none")},toggle:function(b){return(b===a?this.css("display")=="none":b)?this.show():this.hide()},prev:function(){return c(this.pluck("previousElementSibling"))},next:function(){return c(this.pluck("nextElementSibling"))},html:function(b){return b===a?this.length>0?this[0].innerHTML:null:this.each(function(a){var d=this.innerHTML;c(this).empty().append(M(this,b,a,d))})},text:function(b){return b===a?this.length>0?this[0].textContent:null:this.each(function(){this.textContent=b})},attr:function(c,d){var e;return typeof c=="string"&&d===a?this.length==0||this[0].nodeType!==1?a:c=="value"&&this[0].nodeName=="INPUT"?this.val():!(e=this[0].getAttribute(c))&&c in this[0]?this[0][c]:e:this.each(function(a){if(this.nodeType!==1)return;if(B(c))for(b in c)this.setAttribute(b,c[b]);else this.setAttribute(c,M(this,d,a,this.getAttribute(c)))})},removeAttr:function(a){return this.each(function(){this.nodeType===1&&this.removeAttribute(a)})},prop:function(b,c){return c===a?this[0]?this[0][b]:a:this.each(function(a){this[b]=M(this,c,a,this[b])})},data:function(b,c){var d=this.attr("data-"+H(b),c);return d!==null?d:a},val:function(b){return b===a?this.length>0?this[0].value:a:this.each(function(a){this.value=M(this,b,a,this.value)})},offset:function(){if(this.length==0)return null;var a=this[0].getBoundingClientRect();return{left:a.left+window.pageXOffset,top:a.top+window.pageYOffset,width:a.width,height:a.height}},css:function(c,d){if(d===a&&typeof c=="string")return this.length==0?a:this[0].style[x(c)]||j(this[0],"").getPropertyValue(c);var e="";for(b in c)typeof c[b]=="string"&&c[b]==""?this.each(function(){this.style.removeProperty(H(b))}):e+=H(b)+":"+J(b,c[b])+";";return typeof c=="string"&&(d==""?this.each(function(){this.style.removeProperty(H(c))}):e=H(c)+":"+J(c,d)),this.each(function(){this.style.cssText+=";"+e})},index:function(a){return a?this.indexOf(c(a)[0]):this.parent().children().indexOf(this[0])},hasClass:function(a){return this.length<1?!1:I(a).test(this[0].className)},addClass:function(a){return this.each(function(b){d=[];var e=this.className,f=M(this,a,b,e);f.split(/\s+/g).forEach(function(a){c(this).hasClass(a)||d.push(a)},this),d.length&&(this.className+=(e?" ":"")+d.join(" "))})},removeClass:function(b){return this.each(function(c){if(b===a)return this.className="";d=this.className,M(this,b,c,d).split(/\s+/g).forEach(function(a){d=d.replace(I(a)," ")}),this.className=d.trim()})},toggleClass:function(b,d){return this.each(function(e){var f=M(this,b,e,this.className);(d===a?!c(this).hasClass(f):d)?c(this).addClass(f):c(this).removeClass(f)})}},["width","height"].forEach(function(b){c.fn[b]=function(d){var e,f=b.replace(/./,function(a){return a[0].toUpperCase()});return d===a?this[0]==window?window["inner"+f]:this[0]==g?g.documentElement["offset"+f]:(e=this.offset())&&e[b]:this.each(function(a){var e=c(this);e.css(b,M(this,d,a,e[b]()))})}}),n.forEach(function(a,b){c.fn[a]=function(){var a=c.map(arguments,function(a){return B(a)?a:w.fragment(a)});if(a.length<1)return this;var d=this.length,e=d>1,f=b<2;return this.each(function(c,g){for(var h=0;h<a.length;h++){var i=a[f?a.length-h-1:h];O(i,function(a){a.nodeName!=null&&a.nodeName.toUpperCase()==="SCRIPT"&&(!a.type||a.type==="text/javascript")&&window.eval.call(window,a.innerHTML)}),e&&c<d-1&&(i=i.cloneNode(!0)),N(b,g,i)}})},c.fn[b%2?a+"To":"insert"+(b?"Before":"After")]=function(b){return c(b)[a](this),this}}),w.Z.prototype=c.fn,w.camelize=x,w.uniq=y,c.zepto=w,c}();window.Zepto=Zepto,"$"in window||(window.$=Zepto),function(a){function f(a){return a._zid||(a._zid=d++)}function g(a,b,d,e){b=h(b);if(b.ns)var g=i(b.ns);return(c[f(a)]||[]).filter(function(a){return a&&(!b.e||a.e==b.e)&&(!b.ns||g.test(a.ns))&&(!d||f(a.fn)===f(d))&&(!e||a.sel==e)})}function h(a){var b=(""+a).split(".");return{e:b[0],ns:b.slice(1).sort().join(" ")}}function i(a){return new RegExp("(?:^| )"+a.replace(" "," .* ?")+"(?: |$)")}function j(b,c,d){a.isObject(b)?a.each(b,d):b.split(/\s/).forEach(function(a){d(a,c)})}function k(b,d,e,g,i,k){k=!!k;var l=f(b),m=c[l]||(c[l]=[]);j(d,e,function(c,d){var e=i&&i(d,c),f=e||d,j=function(a){var c=f.apply(b,[a].concat(a.data));return c===!1&&a.preventDefault(),c},l=a.extend(h(c),{fn:d,proxy:j,sel:g,del:e,i:m.length});m.push(l),b.addEventListener(l.e,j,k)})}function l(a,b,d,e){var h=f(a);j(b||"",d,function(b,d){g(a,b,d,e).forEach(function(b){delete c[h][b.i],a.removeEventListener(b.e,b.proxy,!1)})})}function p(b){var c=a.extend({originalEvent:b},b);return a.each(o,function(a,d){c[a]=function(){return this[d]=m,b[a].apply(b,arguments)},c[d]=n}),c}function q(a){if(!("defaultPrevented"in a)){a.defaultPrevented=!1;var b=a.preventDefault;a.preventDefault=function(){this.defaultPrevented=!0,b.call(this)}}}var b=a.zepto.qsa,c={},d=1,e={};e.click=e.mousedown=e.mouseup=e.mousemove="MouseEvents",a.event={add:k,remove:l},a.proxy=function(b,c){if(a.isFunction(b)){var d=function(){return b.apply(c,arguments)};return d._zid=f(b),d}if(typeof c=="string")return a.proxy(b[c],b);throw new TypeError("expected function")},a.fn.bind=function(a,b){return this.each(function(){k(this,a,b)})},a.fn.unbind=function(a,b){return this.each(function(){l(this,a,b)})},a.fn.one=function(a,b){return this.each(function(c,d){k(this,a,b,null,function(a,b){return function(){var c=a.apply(d,arguments);return l(d,b,a),c}})})};var m=function(){return!0},n=function(){return!1},o={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};a.fn.delegate=function(b,c,d){var e=!1;if(c=="blur"||c=="focus")a.iswebkit?c=c=="blur"?"focusout":c=="focus"?"focusin":c:e=!0;return this.each(function(f,g){k(g,c,d,b,function(c){return function(d){var e,f=a(d.target).closest(b,g).get(0);if(f)return e=a.extend(p(d),{currentTarget:f,liveFired:g}),c.apply(f,[e].concat([].slice.call(arguments,1)))}},e)})},a.fn.undelegate=function(a,b,c){return this.each(function(){l(this,b,c,a)})},a.fn.live=function(b,c){return a(document.body).delegate(this.selector,b,c),this},a.fn.die=function(b,c){return a(document.body).undelegate(this.selector,b,c),this},a.fn.on=function(b,c,d){return c==undefined||a.isFunction(c)?this.bind(b,c):this.delegate(c,b,d)},a.fn.off=function(b,c,d){return c==undefined||a.isFunction(c)?this.unbind(b,c):this.undelegate(c,b,d)},a.fn.trigger=function(b,c){return typeof b=="string"&&(b=a.Event(b)),q(b),b.data=c,this.each(function(){"dispatchEvent"in this&&this.dispatchEvent(b)})},a.fn.triggerHandler=function(b,c){var d,e;return this.each(function(f,h){d=p(typeof b=="string"?a.Event(b):b),d.data=c,d.target=h,a.each(g(h,b.type||b),function(a,b){e=b.proxy(d);if(d.isImmediatePropagationStopped())return!1})}),e},"focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout change select keydown keypress keyup error".split(" ").forEach(function(b){a.fn[b]=function(a){return this.bind(b,a)}}),["focus","blur"].forEach(function(b){a.fn[b]=function(a){if(a)this.bind(b,a);else if(this.length)try{this.get(0)[b]()}catch(c){}return this}}),a.Event=function(a,b){var c=document.createEvent(e[a]||"Events"),d=!0;if(b)for(var f in b)f=="bubbles"?d=!!b[f]:c[f]=b[f];return c.initEvent(a,d,!0,null,null,null,null,null,null,null,null,null,null,null,null),c}}(Zepto),function(a){function b(a){var b=this.os={},c=this.browser={},d=a.match(/WebKit\/([\d.]+)/),e=a.match(/(Android)\s+([\d.]+)/),f=a.match(/(iPad).*OS\s([\d_]+)/),g=!f&&a.match(/(iPhone\sOS)\s([\d_]+)/),h=a.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),i=h&&a.match(/TouchPad/),j=a.match(/Kindle\/([\d.]+)/),k=a.match(/Silk\/([\d._]+)/),l=a.match(/(BlackBerry).*Version\/([\d.]+)/);if(c.webkit=!!d)c.version=d[1];e&&(b.android=!0,b.version=e[2]),g&&(b.ios=b.iphone=!0,b.version=g[2].replace(/_/g,".")),f&&(b.ios=b.ipad=!0,b.version=f[2].replace(/_/g,".")),h&&(b.webos=!0,b.version=h[2]),i&&(b.touchpad=!0),l&&(b.blackberry=!0,b.version=l[2]),j&&(b.kindle=!0,b.version=j[1]),k&&(c.silk=!0,c.version=k[1]),!k&&b.android&&a.match(/Kindle Fire/)&&(c.silk=!0)}b.call(a,navigator.userAgent),a.__detect=b}(Zepto),function(a,b){function l(a){return a.toLowerCase()}function m(a){return d?d+a:l(a)}var c="",d,e,f,g={Webkit:"webkit",Moz:"",O:"o",ms:"MS"},h=window.document,i=h.createElement("div"),j=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i,k={};a.each(g,function(a,e){if(i.style[a+"TransitionProperty"]!==b)return c="-"+l(a)+"-",d=e,!1}),k[c+"transition-property"]=k[c+"transition-duration"]=k[c+"transition-timing-function"]=k[c+"animation-name"]=k[c+"animation-duration"]="",a.fx={off:d===b&&i.style.transitionProperty===b,cssPrefix:c,transitionEnd:m("TransitionEnd"),animationEnd:m("AnimationEnd")},a.fn.animate=function(b,c,d,e){return a.isObject(c)&&(d=c.easing,e=c.complete,c=c.duration),c&&(c/=1e3),this.anim(b,c,d,e)},a.fn.anim=function(d,e,f,g){var h,i={},l,m=this,n,o=a.fx.transitionEnd;e===b&&(e=.4),a.fx.off&&(e=0);if(typeof d=="string")i[c+"animation-name"]=d,i[c+"animation-duration"]=e+"s",o=a.fx.animationEnd;else{for(l in d)j.test(l)?(h||(h=[]),h.push(l+"("+d[l]+")")):i[l]=d[l];h&&(i[c+"transform"]=h.join(" ")),!a.fx.off&&typeof d=="object"&&(i[c+"transition-property"]=Object.keys(d).join(", "),i[c+"transition-duration"]=e+"s",i[c+"transition-timing-function"]=f||"linear")}return n=function(b){if(typeof b!="undefined"){if(b.target!==b.currentTarget)return;a(b.target).unbind(o,arguments.callee)}a(this).css(k),g&&g.call(this)},e>0&&this.bind(o,n),setTimeout(function(){m.css(i),e<=0&&setTimeout(function(){m.each(function(){n.call(this)})},0)},0),this},i=null}(Zepto),function($){function triggerAndReturn(a,b,c){var d=$.Event(b);return $(a).trigger(d,c),!d.defaultPrevented}function triggerGlobal(a,b,c,d){if(a.global)return triggerAndReturn(b||document,c,d)}function ajaxStart(a){a.global&&$.active++===0&&triggerGlobal(a,null,"ajaxStart")}function ajaxStop(a){a.global&&!--$.active&&triggerGlobal(a,null,"ajaxStop")}function ajaxBeforeSend(a,b){var c=b.context;if(b.beforeSend.call(c,a,b)===!1||triggerGlobal(b,c,"ajaxBeforeSend",[a,b])===!1)return!1;triggerGlobal(b,c,"ajaxSend",[a,b])}function ajaxSuccess(a,b,c){var d=c.context,e="success";c.success.call(d,a,e,b),triggerGlobal(c,d,"ajaxSuccess",[b,c,a]),ajaxComplete(e,b,c)}function ajaxError(a,b,c,d){var e=d.context;d.error.call(e,c,b,a),triggerGlobal(d,e,"ajaxError",[c,d,a]),ajaxComplete(b,c,d)}function ajaxComplete(a,b,c){var d=c.context;c.complete.call(d,b,a),triggerGlobal(c,d,"ajaxComplete",[b,c]),ajaxStop(c)}function empty(){}function mimeToDataType(a){return a&&(a==htmlType?"html":a==jsonType?"json":scriptTypeRE.test(a)?"script":xmlTypeRE.test(a)&&"xml")||"text"}function appendQuery(a,b){return(a+"&"+b).replace(/[&?]{1,2}/,"?")}function serializeData(a){isObject(a.data)&&(a.data=$.param(a.data)),a.data&&(!a.type||a.type.toUpperCase()=="GET")&&(a.url=appendQuery(a.url,a.data))}function serialize(a,b,c,d){var e=$.isArray(b);$.each(b,function(b,f){d&&(b=c?d:d+"["+(e?"":b)+"]"),!d&&e?a.add(f.name,f.value):(c?$.isArray(f):isObject(f))?serialize(a,f,c,b):a.add(b,f)})}var jsonpID=0,isObject=$.isObject,document=window.document,key,name,rscript=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,scriptTypeRE=/^(?:text|application)\/javascript/i,xmlTypeRE=/^(?:text|application)\/xml/i,jsonType="application/json",htmlType="text/html",blankRE=/^\s*$/;$.active=0,$.ajaxJSONP=function(a){var b="jsonp"+ ++jsonpID,c=document.createElement("script"),d=function(){$(c).remove(),b in window&&(window[b]=empty),ajaxComplete("abort",e,a)},e={abort:d},f;return a.error&&(c.onerror=function(){e.abort(),a.error()}),window[b]=function(d){clearTimeout(f),$(c).remove(),delete window[b],ajaxSuccess(d,e,a)},serializeData(a),c.src=a.url.replace(/=\?/,"="+b),$("head").append(c),a.timeout>0&&(f=setTimeout(function(){e.abort(),ajaxComplete("timeout",e,a)},a.timeout)),e},$.ajaxSettings={type:"GET",beforeSend:empty,success:empty,error:empty,complete:empty,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript",json:jsonType,xml:"application/xml, text/xml",html:htmlType,text:"text/plain"},crossDomain:!1,timeout:0},$.ajax=function(options){var settings=$.extend({},options||{});for(key in $.ajaxSettings)settings[key]===undefined&&(settings[key]=$.ajaxSettings[key]);ajaxStart(settings),settings.crossDomain||(settings.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(settings.url)&&RegExp.$2!=window.location.host);var dataType=settings.dataType,hasPlaceholder=/=\?/.test(settings.url);if(dataType=="jsonp"||hasPlaceholder)return hasPlaceholder||(settings.url=appendQuery(settings.url,"callback=?")),$.ajaxJSONP(settings);settings.url||(settings.url=window.location.toString()),serializeData(settings);var mime=settings.accepts[dataType],baseHeaders={},protocol=/^([\w-]+:)\/\//.test(settings.url)?RegExp.$1:window.location.protocol,xhr=$.ajaxSettings.xhr(),abortTimeout;settings.crossDomain||(baseHeaders["X-Requested-With"]="XMLHttpRequest"),mime&&(baseHeaders.Accept=mime,mime.indexOf(",")>-1&&(mime=mime.split(",",2)[0]),xhr.overrideMimeType&&xhr.overrideMimeType(mime));if(settings.contentType||settings.data&&settings.type.toUpperCase()!="GET")baseHeaders["Content-Type"]=settings.contentType||"application/x-www-form-urlencoded";settings.headers=$.extend(baseHeaders,settings.headers||{}),xhr.onreadystatechange=function(){if(xhr.readyState==4){clearTimeout(abortTimeout);var result,error=!1;if(xhr.status>=200&&xhr.status<300||xhr.status==304||xhr.status==0&&protocol=="file:"){dataType=dataType||mimeToDataType(xhr.getResponseHeader("content-type")),result=xhr.responseText;try{dataType=="script"?(1,eval)(result):dataType=="xml"?result=xhr.responseXML:dataType=="json"&&(result=blankRE.test(result)?null:JSON.parse(result))}catch(e){error=e}error?ajaxError(error,"parsererror",xhr,settings):ajaxSuccess(result,xhr,settings)}else ajaxError(null,"error",xhr,settings)}};var async="async"in settings?settings.async:!0;xhr.open(settings.type,settings.url,async);for(name in settings.headers)xhr.setRequestHeader(name,settings.headers[name]);return ajaxBeforeSend(xhr,settings)===!1?(xhr.abort(),!1):(settings.timeout>0&&(abortTimeout=setTimeout(function(){xhr.onreadystatechange=empty,xhr.abort(),ajaxError(null,"timeout",xhr,settings)},settings.timeout)),xhr.send(settings.data?settings.data:null),xhr)},$.get=function(a,b){return $.ajax({url:a,success:b})},$.post=function(a,b,c,d){return $.isFunction(b)&&(d=d||c,c=b,b=null),$.ajax({type:"POST",url:a,data:b,success:c,dataType:d})},$.getJSON=function(a,b){return $.ajax({url:a,success:b,dataType:"json"})},$.fn.load=function(a,b){if(!this.length)return this;var c=this,d=a.split(/\s/),e;return d.length>1&&(a=d[0],e=d[1]),$.get(a,function(a){c.html(e?$(document.createElement("div")).html(a.replace(rscript,"")).find(e).html():a),b&&b.call(c)}),this};var escape=encodeURIComponent;$.param=function(a,b){var c=[];return c.add=function(a,b){this.push(escape(a)+"="+escape(b))},serialize(c,a,b),c.join("&").replace("%20","+")}}(Zepto),function(a){a.fn.serializeArray=function(){var b=[],c;return a(Array.prototype.slice.call(this.get(0).elements)).each(function(){c=a(this);var d=c.attr("type");this.nodeName.toLowerCase()!="fieldset"&&!this.disabled&&d!="submit"&&d!="reset"&&d!="button"&&(d!="radio"&&d!="checkbox"||this.checked)&&b.push({name:c.attr("name"),value:c.val()})}),b},a.fn.serialize=function(){var a=[];return this.serializeArray().forEach(function(b){a.push(encodeURIComponent(b.name)+"="+encodeURIComponent(b.value))}),a.join("&")},a.fn.submit=function(b){if(b)this.bind("submit",b);else if(this.length){var c=a.Event("submit");this.eq(0).trigger(c),c.defaultPrevented||this.get(0).submit()}return this}}(Zepto),function(a){function d(a){return"tagName"in a?a:a.parentNode}function e(a,b,c,d){var e=Math.abs(a-b),f=Math.abs(c-d);return e>=f?a-b>0?"Left":"Right":c-d>0?"Up":"Down"}function h(){g=null,b.last&&(b.el.trigger("longTap"),b={})}function i(){g&&clearTimeout(g),g=null}var b={},c,f=750,g;a(document).ready(function(){var j,k;a(document.body).bind("touchstart",function(e){j=Date.now(),k=j-(b.last||j),b.el=a(d(e.touches[0].target)),c&&clearTimeout(c),b.x1=e.touches[0].pageX,b.y1=e.touches[0].pageY,k>0&&k<=250&&(b.isDoubleTap=!0),b.last=j,g=setTimeout(h,f)}).bind("touchmove",function(a){i(),b.x2=a.touches[0].pageX,b.y2=a.touches[0].pageY}).bind("touchend",function(a){i(),b.isDoubleTap?(b.el.trigger("doubleTap"),b={}):b.x2&&Math.abs(b.x1-b.x2)>30||b.y2&&Math.abs(b.y1-b.y2)>30?(b.el.trigger("swipe")&&b.el.trigger("swipe"+e(b.x1,b.x2,b.y1,b.y2)),b={}):"last"in b&&(b.el.trigger("tap"),c=setTimeout(function(){c=null,b.el.trigger("singleTap"),b={}},250))}).bind("touchcancel",function(){c&&clearTimeout(c),g&&clearTimeout(g),g=c=null,b={}})}),["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap","singleTap","longTap"].forEach(function(b){a.fn[b]=function(a){return this.bind(b,a)}})}(Zepto);
@@ -0,0 +1,2 @@
1
+ /*
2
+ */
@@ -0,0 +1,52 @@
1
+ /**
2
+ * App.js v1.10.0
3
+ * Instant mobile web app creation
4
+ * Copyright (c) 2012 Kik Interactive, http://kik.com
5
+ * Released under the MIT license
6
+ *
7
+ * swapper.js 1.1.1
8
+ * UI navigation and transition utility
9
+ * Copyright (c) 2012 Kik Interactive, http://kik.com
10
+ * Released under the MIT license
11
+ *
12
+ * clickable.js v1.3.4
13
+ * Seamless buttons for mobile devices
14
+ * Copyright (c) 2012 Kik Interactive, http://kik.com
15
+ * Released under the MIT license
16
+ *
17
+ * dialog.js v1.1.0
18
+ * Modal dialogs for mobile web apps
19
+ * Copyright (c) 2012 Kik Interactive, http://kik.com
20
+ * Released under the MIT license
21
+ *
22
+ * scrollable.js v1.0.0
23
+ * Seamless scrolling for mobile devices
24
+ * Copyright (c) 2012 Kik Interactive, http://kik.com
25
+ * Released under the MIT license
26
+ *
27
+ * iScroll v4.1.6
28
+ * Copyright (c) 2011 Matteo Spinelli, http://cubiq.org
29
+ * Released under the MIT license
30
+ *
31
+ * Permission is hereby granted, free of charge, to any person
32
+ * obtaining a copy of this software and associated documentation
33
+ * files (the "Software"), to deal in the Software without
34
+ * restriction, including without limitation the rights to use,
35
+ * copy, modify, merge, publish, distribute, sublicense, and/or sell
36
+ * copies of the Software, and to permit persons to whom the
37
+ * Software is furnished to do so, subject to the following
38
+ * conditions:
39
+ *
40
+ * The above copyright notice and this permission notice shall be
41
+ * included in all copies or substantial portions of the Software.
42
+ *
43
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
44
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
45
+ * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
46
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
47
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
48
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
49
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
50
+ * OTHER DEALINGS IN THE SOFTWARE.
51
+ */
52
+ html,body,div,form,p,ul,li,span,label,img{margin:0;padding:0;outline:0}html,body{height:100%;width:100%}body{position:relative;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);overflow:hidden}.app-android{font-family:"Roboto",sans-serif}.app-no-scrollbar ::-webkit-scrollbar{height:0!important;width:0!important}.clear{clear:both}.app-clickblocker{z-index:9000;position:fixed;top:0;left:0;height:100%;width:100%;background:#FFF;opacity:0}.app-page{display:none;position:relative;height:100%;width:100%;background:#FFF;overflow:hidden}.app-loaded .app-page{display:block}.app-topbar{z-index:3000;position:relative;height:44px;width:100%;background:#000;color:#FFF}.app-android .app-topbar{height:48px}.app-topbar .app-button{position:absolute;top:0;padding:0 8px;height:100%;line-height:44px}.app-android .app-topbar .app-button{line-height:48px}.app-topbar .app-button.left{left:0}.app-topbar .app-button.right{right:0}.app-topbar .app-title{margin:0 auto;height:100%;width:100%;line-height:44px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-android .app-topbar .app-title{line-height:48px}.app-content{z-index:2000;position:relative;background:#FFF}.app-scrollhack>*{-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.app-section{position:relative;margin:8px;border:1px solid #AAA}.app-list{list-style:none}.app-list>li,.app-list>li.app-button{padding-left:20px;padding-right:8px;height:43px;border-bottom:1px solid #AAA;line-height:43px;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.app-android .app-list>li,.app-android .app-list>li.app-button{padding-top:2px;padding-bottom:2px}.app-section .app-list>li:last-child,.app-section .app-list>li.app-button:last-child{border-bottom:0}.app-list>label{display:block;padding-left:12px;height:24px;background:#000;color:#FFF;line-height:24px}.app-list>li+label{margin-top:-1px}.app-content .app-button{margin:0 auto;height:40px;border-bottom:1px solid #AAA;line-height:40px;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.app-button:last-child{border-bottom:0}.app-content .app-button.green{background:#7F7}.app-content .app-button.red{background:#F77}.app-content .app-button.blue{background:#77F}.app-input{position:relative;display:block;padding:10px 12px;width:100%;background:transparent;border:0;border-bottom:1px solid #AAA;outline:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;line-height:20px;-webkit-appearance:none}.app-section .app-input:last-child{border-bottom:0}.app-input,.app-input *{color:inherit;font-family:inherit;font-size:inherit}input.app-input{height:40px}textarea.app-input{height:80px;resize:none}.app-input input,.app-input textarea{display:inline-block;margin:0;padding:0;width:100%;background:0;border:0;outline:0;line-height:inherit;resize:none;-webkit-appearance:none}.app-input input{height:20px}.app-input textarea{height:60px}.app-topbar{background:#222;color:#DDD;font-weight:bold}.app-android .app-topbar{-webkit-box-shadow:0 0 5px rgba(0,0,0,0.5),inset 0 1px 0 #2b2b2b,inset 0 -2px 0 #1b1b1b;box-shadow:0 0 5px rgba(0,0,0,0.5),inset 0 1px 0 #2b2b2b,inset 0 -2px 0 #1b1b1b}.app-ios .app-topbar{background-image:-webkit-gradient(linear,left top,left bottom,from(#525252),to(#1f1e1f));background-image:-webkit-linear-gradient(#525252,#1f1e1f);background-image:linear-gradient(#525252,#1f1e1f);-webkit-box-shadow:0 0 5px rgba(0,0,0,0.5),inset 0 1px 0 #797979,inset 0 -1px 0 #333;box-shadow:0 0 5px rgba(0,0,0,0.5),inset 0 1px 0 #797979,inset 0 -1px 0 #333;color:#EEE;text-shadow:0 -1px 0 #1d1e1e}.app-title{font-size:20px}.app-android .app-title{float:left;padding:0 12px 0 24px;width:auto;text-align:left}.app-android .app-topbar .app-button[data-back].active ~ .app-title{background:#3c3c3c}.app-topbar .app-button.active{background:#3c3c3c}.app-android .app-topbar .app-button{padding:0 16px}.app-android .app-topbar .app-button[data-back]{padding:0;height:100%;width:33%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAcCAMAAABf788oAAAAjVBMVEUiIiIjIyMrKysqKioAAACdnZ0mJiYnJyednZ0kJCQoKCgsLCwlJSXLy8vPz8/MzMzJycnNzc3Ozs7GxsagoKCjo6O3t7exsbHIyMisrKzAwMDExMS+vr6ysrLHx8fKysq0tLStra27u7urq6unp6fBwcGoqKjDw8Ourq66urq9vb2fn5/FxcWwsLClpaWY7qkYAAAADXRSTlMAAAAAADMAAJkAAAAAOhxptwAAAMVJREFUeF5d0dVuBTEMBNCZvUWY0OLFMsP/f15lxWqb5i1HijO2cYR6zndKKfWDA7EuksIeFcjVNkv5uaMDPoOkco8KxNkhSmVHwmEKkjSiAjFeW8UJhMNdkOLh2IF4yFbxBYQBebopUtmcsIJnil8gYIBVn6XwCsJhDlJOww8Mi2Xa290hGcy/gJt/T9D1sSlK3IbmW/LisQkG4qmJDhBvxZtzwKim/WZADu9LM0LQGpLKGnRg92Fr2F7y76KiL6qeK1/lN9FpDuyoOMUMAAAAAElFTkSuQmCC);background-position:8px center;background-repeat:no-repeat;-webkit-background-size:8px 14px;background-size:8px 14px;color:transparent}.app-android .app-topbar .app-button[data-back].active{background-color:transparent}.app-ios .app-topbar .app-button{margin:7px 5px;padding:0 10px;height:28px;border:1px solid #201f20;-webkit-box-shadow:0 1px 1px rgba(255,255,255,0.1),inset 0 0 2px rgba(0,0,0,0.3);box-shadow:0 1px 1px rgba(255,255,255,0.1),inset 0 0 2px rgba(0,0,0,0.3);-webkit-border-radius:6px;border-radius:6px;font-size:12px;line-height:28px}.app-ios .app-topbar .app-button[data-back]{padding:5px 5px 5px 3px;height:16px;background:transparent;box-shadow:none;border-width:2px 6px 2px 12px;-webkit-border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAA8CAYAAAAQTCjdAAAAIGNIUk0AAHolAACAgwAA9CUAAITRAABtXwAA6GwAADyLAAAbWIPnB3gAAAAJcEhZcwAACxEAAAsRAX9kX5EAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAACN1JREFUaN61WluoXFcZPnPb9/vs+5k5JqZNajS2sQkx2igNSKsPElFINQaLQdT6IF6KhwqiFC+UiqDQBx8sEhIaq8FAsAiion2JRLT6YKtQEGKCgi8GChXh+K+1/n+ttffsOefMnJOHj//+/9/eM2vP2nv2ysbGxspW8OJ8EdwH+DbgOuA1wMYm+B/mXQB8ADDo6sk4rOwy0a9sQWwrXAMcuJNEE8ALNNBPih+Eafm+rJjsq+ppXa6u1VW9VpcI7gMU1XQN8h6G/K9C3UtYzz6Fz98JoiHgZRzy93BcPsJIlNUUielS0yu0K0E8L6drfpxf0s7uU7tN9DI2fjHJqsOSBBEhcN9E802aOVgTJMU5jezp3SK6jg3/GWfVERpeIKmimijSaCvfBDEV/nqKsUkNX4UvY9+/AYydEj2Oq3YjGBdnm0Qm9Tyby1LF5oF9Qkj2IzshagD+JBZOfr6oVmE4gCQgZzqRwhj3lRpRquHkqF7E4Kyu48K8sBOi9JFfE8TE0Fwjm2t+Sb59MJoUmMi6OC3fjkRfXZboXYDb/CNPirN5WeMQIYtitWHnzC5qIXWfJForogWrF3aaV3vwZLy+LNGr/Ejj/PkMmhI4mZLpOjmMSX+tYqXK0SF7QR6t/mWIvh+LbyRpeUAnKgnnOCgnXzUjc46OWi2P6csS9RhBXEBPZnklmjKZiwEpNE9z9BExqbeg5+WtPNSXJfpNLPylHAKfaQognUkimjb0UtqUn2YlxkFmWk2mapYheoh9qXEBnaLBiqiQbHiGBNhAPjTDmJajQOS64sud0d9i0cU0bQ/TwGNFPc6EFD5mC53846zpE3oxoy9ElP0yYMFfxtqQcdohEakk0p2fytyyGWth20Rx+/YvvByti+Y5R5I2yVEs0fQmCikTnof+cTOeyJzFiD6DyT9PeMOMN04IrPE4kwOELYYnGgmZi/kyTyObaCB7W0Qh4X656Ujyk2xAnMAQBjYMGsUcGQ7QZYZ+JUmPqc9Y9IrbMUk425oo3rv8ARPPx7xhKkgmYlCc0NC0SYDZnEjKa4iUzNdym320fqhvh+inMek6K4ziVDVI0gYiJuOsYUctPWrVNBALRNhbz9+UKARWAf/GBfSZKB7XHEhY6AIx2Ry6PpZ5cSOGB82JKVv6MI/6bkX0AiZciaJxHUb68ITbIdoh+kjXc3kM7TBKlH+mHusi1YvkXKLgfACD//Hj9GjIiCG5KEKSXGqIk1nfPMjccbfd8nUSxV073U1+L6DCMG4OYzZHUgcRixFEPECIXPSF6AtVDq8Pk1afRPUD/zyitGt/MQAiDUQte9H4HIRSjzr7zRAFY4127V6cnQ2CqPah2AcZaPCDmPu4PxR2gDZHGEtfwHLDCEkgtNyGL4zRp2qY3UX0Kjov+0GoBnOg7bf8Dburpl0H0u/I8ef17CAKN1BE9JIHyZ5soqRHtq9snku25vM1nz/HbsdkD91uE/3wRx89DGT5ftOL0lOexwoCAV33w7nSxRyX+byAw5U9Wr08JOW14u2+HYsp2bv/4NO0g3fZEM9HBBIe2J7Ulc/VfHqOiwSonycRNHLUvKDRv4vo8KdXru4L0+qGOKvZuuv6GlmE22UHDdtxW7koHdIxx+nIac+Zd8EPjhw/8QnaJLuuVxMcKXEI6mKwh7anxfRav7PWmdtX2fOI9gDFuJziM5/souNAkSOKbdbAcWvb0aRs7GKc5bm1rNNzGj6Rbzstv4TLazb7rbfPfOzjD9LCcsPxKUXMFQ1Q57Bd1VjmeK14R52ENyNFvei51TYv1ReW7Ti1ZTsw1OGDuXRczRa6pfscRwFsS/dz21U9HOrtCL+t7K2IjloL6xuWRcU2HyoAumXXtoW2hWB5lmZbjsrRYOt2O25tjyhfWO8++dAjmHjL8cKDnBjAtARBIsoam5yQsE30Cd2R+aZeS/XyAG2ZL+PW9ojyhVVM9lzFs3rFRBKmSQOtmnxcN/W4hRC6nquDkzMtgVZ/hu3ehVpPfv1b98HCuo0L6xwfDk0Nam4iIbPlt5TelWu0crriDIs8gEjedOhtT9D9k2hsikYGA+lMmiqG0tR0lUsEzbrZT9SbLI9jMaKDf9y8OUmK1T/iV+C8IRsZXI6kDbqpdOnDgyB91Igb8iANc7Zu0WdP3odOn3kP3eM7QXxyJIcY9WgEYPrI5LrwCV3aPG4Iog2/KeMjWWdKe+GHZIBsunf/9/Gs/oKGjSTRkSQw1P2jkZKGLvWcWQxRLkPU+NGPf7Kfrq1umK4PYShrOByOBDgpAR4bok3xocH10YjyDfQZqkbWG1xf6kEuyFDbtNwwbe8AGziQRAhDgdEcv9Q74iPhp57LEu2za2u+uudn+BV4nhoOYMhgIIgwOUAiQoecgSKp+xpyKOoERN7SfzawTcsXv/TEUe3a+ik+aDAQBJgcahgo4nQwwhYxWduOg8+w7P34P9Ptpf6+YdfWN9975HHat44Ma68aMKz7MKTPiQ8aB9DHmDwgmde0qdbywhNsBjzWemVZovzaSvtWN8ouiQH9ut8fCLSGchJ9zCEdoRPUwRYs61+tvfG5pf9iBJ/72c89fgw+ltfwK/CFfp+I9jUM6m5/XyPd78CghjXAT8S99x87t6N/l9m+9fDRdzyGX4H/so+q1xODeog2gV5HjOu9poSzyf8Gj9Lq1V/9+jf5TokOAdXqnrufxVuX64btvqXX7yERITn5Xo+jx6GTFbY6iF7tBMkZWu3H3vkudjbtHb9YADHn5Vf+uqbtBa6Zjn+0J0khsYacjfUF2Ql83y8SyTfcdc932eUQt5w7f1UD4tFTT3/nEDz//TM9snSj9Bnbix6Glb7WILYi5IrmY3nwUcPbPdlLeDl6/e6Db/3azVu3puxs7to7JXjE2bM/PH9PtbbvuZ28TjQuJ78798nHHoB+NbvL2PXXifBXK2MDTn3w9HvZBiYpJr+nHddmYHnldO/l4ycefBTPYgXw79gLWkg2xrOxLFK2SJd+QWtBsLdqQjrD20CGB2hv1vf/kLy4KIjDeLwAAAAASUVORK5CYII=) 4 12 4 24;font-size:12px;line-height:16px}.app-ios .app-topbar .app-button.blue{padding:0 9px;height:26px;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#4e80ab),color-stop(4%,#4583b7),color-stop(12%,#407fb5),color-stop(27%,#3c79af),color-stop(85%,#225e9a),color-stop(96%,#205a96),color-stop(100%,#1b5288));background-image:-webkit-linear-gradient(top,#4e80ab 0,#4583b7 4%,#407fb5 12%,#3c79af 27%,#225e9a 85%,#205a96 96%,#1b5288 100%);background-image:linear-gradient(#4e80ab 0,#4583b7 4%,#407fb5 12%,#3c79af 27%,#225e9a 85%,#205a96 96%,#1b5288 100%);border:1px solid rgba(0,0,0,0.7);-webkit-border-radius:5px;border-radius:5px;-webkit-border-image:none;-webkit-box-shadow:0 1px 0 rgba(42,51,58,0.5);box-shadow:0 1px 0 rgba(42,51,58,0.5);line-height:26px}.app-ios .app-topbar .app-button.active{background-color:rgba(0,0,0,0.2);color:#c8c8c8}.app-ios .app-topbar .app-button[data-back].active{background:transparent;-webkit-box-shadow:none;box-shadow:none;-webkit-border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAA8CAYAAAAQTCjdAAAAIGNIUk0AAHolAACAgwAA9CUAAITRAABtXwAA6GwAADyLAAAbWIPnB3gAAAAJcEhZcwAACxIAAAsSAdLdfvwAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAACAhJREFUaN7NmltoXEUYx5vNXs/9vrcaKFojhVBFggi++CBFKELpgyJ9EESoQtndNHdJq7alXqpgBZGgKGi0aChCi4LUpyqlYtRajXcrmvogKEqlWijEb858s2d2dja7e3arHvgzM9/MfN/vzDkzZ2aTdaurq+u6UQfX9aAnQR+CLoJW19BlbLcA2gYaFJ3V4/YZdE8bsHY6DRq+kqAO6G0WMJlMncnltCOabj2jm/ZTBkgXhLanFUV7NZXOnEwkEr9gf/IUxq4EqAn6kvgcGBj4I5tT3zAt96Dl+I/Yjv+Q4wZ7bTfY4zjBHpuI5F1MoZ60s2zvgGHYhwaTyc+50X2836BHib9EYvBHMoIAt9dx87OuX5zyguIEkeuXxr0A5VO5Ybkw4fnFSdcvzMCNzAHwvmxWeZODvbNfoNM4kn9qhnkYAB8kgb2gPBbkS9UgX676+fUVIshXgkIZ8kzETupLoHINbmzc9QrTluvvTWey7yDoN6B0r6A346xdhcf9mgujCJBk1GoUkAIFeR4uUtBcX/WD0hiM7iS8InOJwcEfEPbuXkDToE9x4nxEHjU84t04OpUeVCU3CrATmUzuGD6thV5Ap/G9/AkmBXnc432ArIvAGqbzGIJ+Hxf0GtAF4iSnqK/Ae0UmTK0hWFASgpdQgi1Ae1CO0iBMq65bmMZHfyku6HHiAJaSM46Xn4LRrIHzqleHKTXCBTxABOcFXHu+Hm3EL5v9XYPCdQdbL2Gt3AejuTuEDDCwH8HUbSSV2Pl6X5KHp1SNBQqXBlohHdPpzDsOPHLXK9Y8BAnFgvBlMR8IeVlKFRv0YPjIBwe/heVjBkZzjDijTouVxlRUsU1Zrq5B4RohLzXpBN/m5wESvi7FKg0oQhYlKknqWvWJynFAT0ZrZjAJk6jm+YWKiw5h3UPnzFZoCM7bXK6O5nlF7d1uQcmXIZxAsLuxHG/W9fLk61GlUIUKS11puSht02grSuuIOgbF7Vu4/YLv7zFY3GECFaqhQ685eF/E+e0G9FmcQF9Ztj/tkNFkoLxjmfwWNhmUrH2noHDdyDYdimo8A6M5HkK6zQBOq7IblWW2pjpBbUHX0bPLxziBlmCPOek4+Rq8nxUHAoUKg+ZpIGYjZbSFdWij/bDsRfVuQz+E5tp1Ano/3XQkVuALNAvr5hg4qNZB2siW5G0hT9NCQzuxvCYoXGXQrziBFuHdnIDHXgWhs0AQH1hW19guUiCkzbZ2oAs4gT6D0ZyCM00NRrQRwBHy9bIPeb/S1D6W/NagcN2ClX+rmvEEQO6GwFUaHOUKaQjqy+WKtm7atgDFXfuXOIFOwmjCkcCr1TvaKEdIeTsvmb2dD6FPK1DctSfOGYYzY1neGHSqSh3V5VXWrpfAddGvCRSuIbZrz2ZzL5uWMw5H1ypzaIWpBynNR+LrRLtft/M+7Kb2PiePuxFPCnocJ9BZOKtMwWOvWU3B/301gcKOHUGTS4bl7iajaUJDXhaXWkKdrN7qoI8p2MX2TaDbtm27AWAv4YHtcOTIrcDoYupR8TaZLB5EUhf29bi2bmNbzrdsMjlBEBzCI/AXYeNWsteoi9vWlqcy0OTi4uLV8I6yM9HrpomdTJTFlTm7Idq41DAlUGazj6YYVmtQImPTpk330VNm4meYVGEgwyKpA45YSgEiORjIqZdbq1195J/4awU6AMpns9n3cGKd0g27AmsqdLSpI4OlTgV+2wTRPLVzZRP7GNSmG07kh+VZO4PWM0X+nDW/9bnt27ffyiYW/AT4NIHVsTMFt9EpzRtcXacy2pSZ2m3zvGhiJZa7Aei32oGm+ImVTKWP/V9Bw4k1Ojp6F/5887uiGTO8A01Iebsm2DVJ+1b944CGE0tV1eO4tn6kG1ZF05kTyDPp1E7LQl0TKLXrOquj/fk6zYj8dXoKzc7NzV0PI3qBrq3ZFyhUHNnRzTTZW/fr5gcIZ2hoaBbX1nOablInmsk5NKNy3W7Kg5N6jaVcXjeFPrTcDejgysrK+nQ6/Qnurt4njtUwiBEFZLBCWdW4VJe0C30Y9T4q76tLUCJt69att7EzfiarPKpiADWUiXkTy5Gd5Rlso73Rxg8A6xPnZ0ffcZx5XFs/VxqAupeCatcuDmh6YWHh2vramky9rqroUI2Ck3wIoQpgarONB1a4cq+gRGa0aRn4DfatUwygLj642kp6Y14T+nNt44ImcG19C9fWD6KgeiRFj2CUVvUIoxhcO6xTopuJ/ccGsmnZtWvXKFtbU6n0S9S5LodVOIllZe128NfpSXx6F+KAhmvrhg0bJtDJz+BwXArQo+AvdwfoYKS+igsarq1s3wqvwOl4MNqa9WTCEv+6rh+JBYp/Q1d37tx5E4zoRVwFXqOBtQ5ANC5tLfgSfk18b9y48d7YoAjrDQ8PP4Av/OVMJnuABMgJAXNC2q4NUTKZXKQDkPz+xIkTQa+gSVDRsqwX8X09ByeC2ZwEKrcGsFgPE/Q5NttHRkbIaOZ6AkVYZXl5eYjtBQD2u0w291BOAtGBqvC+n2KQnucdJsshbjl7/1cNsFn79+8fAdizGOQvCPhuKp09BMFruZxKlpoGqCyXwj++kP8lOQo3+SPe7KVyufzw+fPnr2Kj2S9Qcsf+/Pz8dYZhHGEjEkeZTOaDHTt23AL+SuSUgf77A4rOyFfLJwG2bNlyO9nAQNAltuNqA7ekadrRzZs334OjWATpnO/+gXKwNo5GXHlkkgp+44H+V/oH4bxaF3Mub4IAAAAASUVORK5CYII=) 4 12 4 24}.app-ios .app-topbar .app-button.blue.active{background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,0.3)),to(rgba(0,0,0,0.1))),-webkit-gradient(linear,left top,left bottom,color-stop(0%,#4e80ab),color-stop(4%,#4583b7),color-stop(12%,#407fb5),color-stop(27%,#3c79af),color-stop(85%,#225e9a),color-stop(96%,#205a96),color-stop(100%,#1b5288));background-image:-webkit-linear-gradient(top,rgba(0,0,0,0.3),rgba(0,0,0,0.1)),-webkit-linear-gradient(top,#4e80ab 0,#4583b7 4%,#407fb5 12%,#3c79af 27%,#225e9a 85%,#205a96 96%,#1b5288 100%);background-image:linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.1)),linear-gradient(#4e80ab 0,#4583b7 4%,#407fb5 12%,#3c79af 27%,#225e9a 85%,#205a96 96%,#1b5288 100%);-webkit-border-image:none}.app-page,.app-content{background:#EEE;color:#696969}.app-section,.app-list>li,.app-list>li.app-button,.app-content .app-button,.app-input{border-color:#EEE}.app-section{background:#FFF;border:0;border-bottom:1px solid #DDD;-webkit-box-shadow:0 0 3px rgba(0,0,0,0.1);box-shadow:0 0 3px rgba(0,0,0,0.1);-webkit-border-radius:3px;border-radius:3px;overflow:hidden}p.app-section{padding:10px 12px}.app-section>:first-child{-webkit-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0}.app-section>:last-child{-webkit-border-radius:0 0 3px 3px;border-radius:0 0 3px 3px}.app-section>:only-child{-webkit-border-radius:3px;border-radius:3px}.app-list{background:#FFF}.app-list>li{font-weight:bold}.app-android .app-list>*,.app-android .app-list>.app-button{padding-left:8px;margin:0 18px}.app-android .app-list>label{padding-top:12px;background:0;border-bottom:2px solid #CCC;-webkit-box-shadow:0 -1px 0 #FFF;color:inherit;font-size:12px;font-weight:bold;text-transform:uppercase}.app-ios .app-list>label{height:23px;background-image:-webkit-gradient(linear,left top,left bottom,from(#e3e5eb),to(#eff1f4));background-image:-webkit-linear-gradient(top,#e3e5eb,#eff1f4);background-image:linear-gradient(#e3e5eb,#eff1f4);border-top:1px solid #d1d4d8;border-bottom:1px solid #cfd2da;color:#8c8c8c;font-size:14px;font-weight:bold;line-height:23px;text-shadow:0 1px 0 #FFF}.app-content .app-button.active{background:#f7f7f7;color:#09C}.app-ios .app-content .app-button.active{background-image:-webkit-gradient(linear,left top,left bottom,from(#058cf5),to(#015ee6));background-image:-webkit-linear-gradient(top,#058cf5,#015ee6);background-image:linear-gradient(#058cf5,#015ee6);color:#FFF}.app-button{font-weight:bold}.app-button.red,.app-button.green,.app-button.blue{color:#FFF}.app-button.red.active,.app-button.green.active,.app-button.blue.active{color:#EEE}.app-content .app-button.red{background-color:#f0293a}.app-content .app-button.red.active{background-color:#d0091a}.app-content .app-button.green{background-color:#5ccc5c}.app-content .app-button.green.active{background-color:#3cac3c}.app-content .app-button.blue{background-color:#1c7de6}.app-content .app-button.blue.active{background-color:#005dc6}.app-ios .app-button.red,.app-ios .app-button.green,.app-ios .app-button.blue{text-shadow:0 -1px 0 rgba(0,0,0,0.2)}.app-ios .app-content .app-button.red{background-image:-webkit-gradient(linear,left top,left bottom,from(#ff2035),to(#e13443));background-image:-webkit-linear-gradient(top,#ff2035,#e13443);background-image:linear-gradient(#ff2035,#e13443)}.app-ios .app-content .app-button.green{background-image:-webkit-gradient(linear,left top,left bottom,from(#7D7),to(#4B4));background-image:-webkit-linear-gradient(top,#7D7,#4B4);background-image:linear-gradient(#7D7,#4B4)}.app-ios .app-content .app-button.blue{background-image:-webkit-gradient(linear,left top,left bottom,from(#2a8cf8),to(#0f6fd5));background-image:-webkit-linear-gradient(top,#2a8cf8,#0f6fd5);background-image:linear-gradient(#2a8cf8,#0f6fd5)}.app-ios .app-button.red.active,.app-ios .app-button.green.active,.app-ios .app-button.blue.active{background-image:none;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,.1);box-shadow:inset 0 2px 4px rgba(0,0,0,.1);color:#DDD}
metadata ADDED
@@ -0,0 +1,61 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: kik-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Radu Vlad
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-07-04 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Kik assets
15
+ email:
16
+ - radu@dreamcodelabs.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - .gitignore
22
+ - Gemfile
23
+ - LICENSE.txt
24
+ - README.md
25
+ - Rakefile
26
+ - kik-rails.gemspec
27
+ - lib/kik-rails.rb
28
+ - lib/kik-rails/engine.rb
29
+ - lib/kik-rails/version.rb
30
+ - vendor/assets/images/kik-rails/icon.png
31
+ - vendor/assets/javascripts/kik-rails.js
32
+ - vendor/assets/javascripts/kik-rails/app.js
33
+ - vendor/assets/javascripts/kik-rails/cards.js
34
+ - vendor/assets/javascripts/kik-rails/zepto.js
35
+ - vendor/assets/stylesheets/kik-rails.css
36
+ - vendor/assets/stylesheets/kik-rails/default.css
37
+ homepage:
38
+ licenses: []
39
+ post_install_message:
40
+ rdoc_options: []
41
+ require_paths:
42
+ - lib
43
+ required_ruby_version: !ruby/object:Gem::Requirement
44
+ none: false
45
+ requirements:
46
+ - - ! '>='
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ required_rubygems_version: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ requirements: []
56
+ rubyforge_project:
57
+ rubygems_version: 1.8.23
58
+ signing_key:
59
+ specification_version: 3
60
+ summary: Kik assets
61
+ test_files: []