//Copyright (c) 2011. Adobe Systems Incorporated.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
//   * Redistributions of source code must retain the above copyright notice,
//     this list of conditions and the following disclaimer.
//   * Redistributions in binary form must reproduce the above copyright notice,
//     this list of conditions and the following disclaimer in the documentation
//     and/or other materials provided with the distribution.
//   * Neither the name of Adobe Systems Incorporated nor the names of its
//     contributors may be used to endorse or promote products derived from this
//     software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
//
// AdobePatentID="B1316"
// AdobePatentID="B1318"
//
// edge.0.0.1.min.js - version 0.1.1
 
(function(e){if(typeof e.Edge==="undefined")e.Edge={};var f=e.Edge;f.version="0.1.3";f.cloneJSONObject=function(n){var m,c;if(e.isArray(n)){m=[];var i,j=n.length;for(i=0;i<j;i++)c=n[i],m[i]=typeof c==="object"?f.cloneJSONObject(c):c}else for(i in m={},n)i!="prototype"&&(c=n[i],m[i]=typeof c==="object"?f.cloneJSONObject(c):c);return m};f.Notifier=function(){this.observers=[];this.notificationLevel=this.suppressNotifications=0};e.extend(f.Notifier.prototype,{addObserver:function(f){if(f){for(var e=
this.observers.length,c=0;c<e;c++)if(this.observers[c].observer==f)return;this.observers[e]={observer:f}}},removeObserver:function(f){if(f)for(var e=0;e<this.observers.length;e++)if(this.observers[e].observer==f)if(this.notificationLevel===0){this.observers.splice(e,1);break}else this.observers[e].deleted=!0},notifyObservers:function(f,e){if(f&&!this.suppressNotifications){e||(e={});e.methodName=f;this.notificationLevel++;var c;for(c=0;c<this.observers.length;c++){var i=this.observers[c];if(i=i&&
!i.deleted?i.observer:void 0)if(typeof i=="function")i(f,this,e);else if(i[f])i[f](this,e)}this.notificationLevel--;if(this.notificationLevel===0)for(c=this.observers.length-1;c>=0;c--)this.observers[c].deleted&&this.observers.splice(c,1)}},enableNotifications:function(){if(--this.suppressNotifications<0)this.suppressNotifications=0,f.Debug.reportError("Unbalanced enableNotifications() call!\n")},disableNotifications:function(){++this.suppressNotifications}});f.trimString=function(f){return f.replace(/^\s+|\s+$/g,
"")}})(jQuery);(function(e,f){function n(){f.Notifier.call(this);this.animationID="animID-"+n.nextID++}function m(a,b,c){f.Animation.call(this);if(typeof a=="function")this.handler=a;else if(typeof a=="string")this.eventType=a;this.handlerContext=c;this.data=b;this.isTrigger=!0}function c(a,b,o,h){f.Notifier.call(this);this.animation=a;this.position=0;this.duration=-1;this.easing=typeof h=="function"?h:h&&e.easing[h]?h:c.defaultEasing;if(b!==void 0)this.position=b;if(o!==void 0)this.duration=o;this.timeline=null;
this.dScale=1;this.dDuration=0;this.done=!1}function i(a){this.parameters={};a&&e.extend(this,a)}function j(a){f.Animation.call(this);e.extend(this,f.Timeline.config);e.extend(this,a);this.startPosition=this.timerStart=this.timer=0;this.currentPosition=-1;this.duration=0;this.interval=1E3/this.fps;this.objects=[]}var l={};n.nextID=1;e.extend(n.prototype,f.Notifier.prototype,{constructor:n,_setup:function(){},_update:function(){},getDuration:function(){return 0}});e.extend(m.prototype,n.prototype,
{constructor:m,_update:function(a){if(!this.fired)this.fired=!0,this.handler?this.handler.call(this.handlerContext,a,this.data):this.eventType&&this.timeline&&this.timeline.notifyObservers(this.eventType,{elapsed:a,data:this.data})},setup:function(a,b){this.fired=b.startingFromCurrent?b.playDirection!="reverse"?a.currentPosition>=b.position:a.currentPosition<=b.position:b.playDirection!="reverse"?a.currentPosition>b.position:a.currentPosition<b.position;this.timeline=a}});c.defaultEasing="linear";
e.extend(c.prototype,f.Notifier.prototype,{constructor:c,_setup:function(a,b){this.timeline=a;var c=this.duration,h=null;this.animation&&this.animation.getDuration&&(h=this.animation.getDuration());this.dScale=c!=-1&&c!==0?h/c:1;this.dDuration=c!=-1?c:h;this.done=!1;if(this.animation&&this.animation.setup)b.position=this.position,this.animation.setup(a,b)},_update:function(a,b){if(!this.done){var c=a,h=this.dDuration;if(this.animation){var i;h===0?i=c>=0?1:0:(c>=h&&(c=h),c<=0&&(c=0),i=e.easing[this.easing](c/
h,c,0,1,h));this.animation.update(c*this.dScale,i,b)}(b.playDirection=="reverse"?c<=0:c>=h)&&this.complete()}},complete:function(){this.done=!0;this.timeline&&this.timeline._updateComplete(this)},getPosition:function(){return this.position},setPosition:function(a){this.position=a},getDuration:function(){return this.duration!=-1?this.duration:this.animation&&this.animation.getDuration?this.animation.getDuration():0},setDuration:function(a){this.duration=a>=0?a:-1}});j.config={dropFrames:!0,fps:60};
var p=[];j.tick=function(){var a=p.slice(0);p=[];for(var b=a.length,c=0;c<b;c++)a[c].call()};e.extend(j.prototype,n.prototype,{constructor:j,play:function(a){this.notifyObservers("play");var b=new i(a);b.timeline=this;a!==void 0&&typeof a.startPos==="number"&&this.currentPosition!=a.startPos?this.currentPosition=a.startPos:b.startingFromCurrent=!0;this._setup(this,b);this.timerStart=(new Date).getTime();this.startPosition=this.currentPosition;var c=this,h=function(){c._handleTimer(b,h)};b.firstUpdate=
!0;this._handleTimer(b,h);b.firstUpdate=!1},stop:function(){this.notifyObservers("stop");this.timer&&clearTimeout(this.timer);this.timerStart=this.timer=0},seek:function(a,b){this.notifyObservers("seek");this.stop();var c=this.currentPosition;if(typeof a==="number")this.currentPosition=a;var h=new i(b);h.timeline=this;if(c==this.currentPosition)h.startingFromCurrent=!0;this._setup(this,h);h.firstUpdate=!0;this._updateSeek(this.currentPosition,1,h,c);h.firstUpdate=!1},add:function(a,b,i,h){this.objects.push(new c(a,
b,i,h));this.objects.sort(function(a,b){return a.position-b.position})},getDuration:function(){for(var a=0,b=this.objects,c=this.objects.length,h=Math.max,i=0;i<c;i++)var f=b[i],a=h(a,f.position+f.getDuration());return a},getCurrentPosition:function(){return this.currentPosition},_update:function(a,b,c){this.currentContext=c;this.notifyObservers("preUpdate",{elapsed:a,easingConst:b});var h=this.objects,i=h.length,f=c.playDirection!="reverse";f?this.currentDirection="forward":this.currentDirection=
"reverse";for(var e=0;e<i;e++){var j=h[f?e:i-e-1];if(j.animation.isTrigger&&!c.firstUpdate&&!j.animation.fired&&(f?a>=j.position:a<=j.position+j.duration))this.currentPosition=j.position}for(e=0;e<i;e++)j=h[f?e:i-e-1],!j.animation.isTrigger&&(f?a>=j.position:a<=j.position+j.duration)&&j._update(a-j.position,c);for(e=0;e<i;e++)j=h[f?e:i-e-1],j.animation.isTrigger&&!c.firstUpdate&&!j.animation.fired&&(f?a>=j.position:a<=j.position+j.duration)&&j.animation._update(a-j.position,c);this.notifyObservers("postUpdate",
{elapsed:a,easingConst:b,context:c});this.notifyObservers("update",{elapsed:a,easingConst:b});this.currentContext=null},_handleTimer:function(a,b){var c=(new Date).getTime()-this.timerStart,h=a.playDirection=="reverse",h=this.startPosition+(h?-c:c);this.currentPosition=h=Math.max(0,Math.min(h,this.duration));this._update(h,1,a);h=a.playDirection=="reverse";(!h?this.currentPosition<this.duration:this.currentPosition>0)?a.externalClock?p.push(b):this.timer=setTimeout(b,this.interval):(this.stop(),this.notifyObservers("complete",
{elapsed:c}))},_setup:function(a,b){f.Animation.prototype._setup.call(this,a);for(var c=this.objects,h=this.objects.length,i=0;i<h;i++){var j=c[i];j._done=!1;j._setup(this,b)}this.duration=this.getDuration()},_updateComplete:function(a){a._done=!0}});j.prototype._updateSeek=j.prototype._update;f.Animation=n;f.TimelineObject=c;f.Timeline=j;f.Timeline.createTimeline=function(a){return new f.Timeline(a)};f.Timeline.createTween=function(a){var b=l[a];if(b)return b.func.apply(b.context,Array.prototype.slice.call(arguments,
1));return null};f.Timeline.addTweenType=function(a,b,c){l[a]={func:b,context:c}};f.Timeline.createTrigger=function(a,b){return new m(a,b,arguments[arguments.length-1])};f.Timeline.createTimelineFromData=function(a){for(var b=jQuery.Edge.Timeline.createTimeline(),c=a.length,h=0;h<c;h++){var i=a[h],j=null;i.timeline?j=f.Timeline.createTimelineFromData(i.timeline):i.tween?j=f.Timeline.createTween.apply(null,i.tween):i.trigger&&(j=i.trigger.slice(0,2),j.push(this),j=f.Timeline.createTrigger.apply(null,
j));j&&b.add(j,i.position,i.duration,i.easing)}return b}})(jQuery,jQuery.Edge);(function(e,f){function n(c,i,j,l,p){f.Animation.call(this);this.name="prop tween";this.sourceElements=this.elements=i;this.deferElementResolution=!0;this.tweenType=m[c];this.updateTriggered=!1;this.property=j;this.fromValue=void 0;this.toValue=l;this.duration=1E3;this.fromValues=this.tokens=this.valueTemplate=null;p&&e.extend(this,p);this.deferElementResolution=this.deferElementResolution||typeof i=="string"&&i.search(/\$\{[^\{\}]+\}/)!=-1;if(!this.deferElementResolution)this.elements=this.resolveElementSelector(i);
var p=this.toValues=[],a=this.parseValue(l);e.isArray(l)||(l=[l]);if(!a||a.length===0)a=l;i=a.length;for(c=0;c<i;c++){var j=a[c],b={};typeof j=="string"?(b.value=parseFloat(j.replace(/[a-zA-Z%]+$/,"")),b.unit=j.replace(/^-?[0-9]*(\.[0-9]+)?/,"")):(typeof j=="number"&&(j=parseFloat(j)),b.value=j,b.unit="");p.push(b)}l.length>1&&!this.valueTemplate&&alert("Multiple values specified for attribute tween, but no template was provided!");l.length>1&&(!this.fromValue||!e.isArray(this.fromValue))&&alert("Multiple values specified for attribute tween, but no from values specified!");
if(this.fromValue){l=this.fromValues=[];if((c=this.parseValue(this.fromValue))&&c.length>0)this.fromValue=c;else if(!e.isArray(this.fromValue))this.fromValue=[this.fromValue];i=this.fromValue.length;for(c=0;c<i;c++)j=this.fromValue[c],typeof j=="string"?l[c]=parseFloat(j.replace(/[a-zA-Z%]+$/,"")):(typeof j=="number"&&(j=parseFloat(j)),l[c]=j);this.toValues.length!=this.fromValues.length&&alert("Number of 'from' and 'to' values does not match for "+this.tweenType+" tween.")}if(this.filter){if(!e.isArray(this.filter))this.filter=
[this.filter];l=this.filter;i=l.length;for(c=0;c<i;c++)typeof l[c]=="string"&&(l[c]=Math[l[c]]),typeof l[c]!="function"&&(l[c]=null)}if(this.valueTemplate)this.tokens=this.parseTemplate(this.valueTemplate)}var m={style:0,attribute:1,property:2};n.Token=function(c,i){this.value=c;this.isPlaceholder=i};n.substituteParameters=function(c,i){for(var j=c;i&&typeof j=="string"&&j.search(/\$\{/)!=-1;){var e=j.search(/\$\{/),p=j.search(/\}/);(e=j.slice(e+2,p))||alert("Invalid parameter name: "+e);typeof e==
"string"&&(e=f.trimString(e),e=e.replace(/[\"\']/g,""));j=j.replace(/\$\{[^\}]*\}/,i[e]);typeof j=="undefined"&&alert("Animation parameter ${"+e+"} is undefined!")}return j};e.extend(n.prototype,f.Animation.prototype,{constructor:n,setup:function(){this.updateTriggered=!1},update:function(c,i,j){var e=this.getElementSet(j);if(!this.updateTriggered)this.updateTriggered=!0,this.setupForAnimation(j);var f=this,a=this.tweenType,b=this.property,o;e.each(function(){var h=f.getPropertyTweenData(this,a,b);
if(h.animationID==f.animationID){var j=h.fromValues,e=h.toValues,h=h.tokens,l=f.filter,n=j.length,m=[];for(o=0;o<n;o++){var v=j[o],q=e[o];v+=(q.value-v)*i;l&&l[o]&&(v=l[o](v));m.push(v+q.unit)}j="";j=f.formatValue(m);if(!(j.length>0))if(h){j=h.length;e=[];for(o=0;o<j;o++)l=h[o],l.isPlaceholder?e.push(m[l.value]):e.push(l.value);j=e.join("")}else j=m.join("");f.setValue.call(this,a,b,j);f.notifyObservers("onUpdate",{elapsed:c,easingConst:i,property:b,value:j,element:this})}})},setValue:function(c,
i,j){switch(c){case 0:e(this).css(i,j);break;case 1:this.setAttribute(i,j);break;case 2:this[i]=j}},getDuration:function(){return this.duration},resolveElementSelector:function(c){c=n.substituteParameters(this.elements,c.parameters);if(!c)c=this.elements;return e(c)},getElementSet:function(c){var i=this.animationID;if(!c.animData)c.animData={};var j=c.animData[i];j||(j=c.animData[i]=this.deferElementResolution?this.resolveElementSelector(c):this.elements);return j},getValue:function(c,i){var j;switch(i){case 0:j=
e(this).css(c);break;case 1:j=this.getAttribute(c);break;case 2:j=this[c]+""}return j},setupForAnimation:function(c){var i=this,j=this.tweenType,e=this.property;this.getElementSet(c).each(function(){var c=i.getPropertyTweenData(this,j,e);c.animationID=i.animationID;c.toValues=i.toValues;c.tokens=i.tokens;if(i.fromValues)c.fromValues=i.fromValues;else{var a=i.getValue.call(this,e,j);a===void 0&&(a="0");var b=i.parseValue(a);if(b&&b.length>0)for(var c=c.fromValues=[],a=b.length,f=0;f<a;f++){var h=b[f];
c[f]=typeof h=="string"?parseFloat(h.replace(/[a-zA-Z%]+$/,"")):h}else c.fromValues=[parseFloat(a.replace(/[a-zA-Z%]+$/,""))]}})},parseTemplate:function(c){for(var i=c.length,j=[],e=0,f=/@@[0-9]+@@/g,a=null;e<i&&(a=f.exec(c));)a.index!=e&&j.push(new n.Token(c.substring(e,a.index),!1)),j.push(new n.Token(parseInt(a[0].replace(/@@/g,""),10),!0)),e=f.lastIndex;e<i&&j.push(new n.Token(c.substring(e,i),!1));return j},parseValue:function(){return[]},formatValue:function(){return""},getPropertyTweenData:function(c,
i,j){var f=e.data(c,"tweenData");f||(f={},e.data(c,"tweenData",f));(c=f[i])||(c=f[i]={});(i=c[j])||(i=c[j]={animationID:-1});return i}});f.PropertyTween=n;f.Timeline.addTweenType("style",function(c,f,e,l){return new n("style",c,f,e,l)});f.Timeline.addTweenType("attribute",function(c,f,e,l){return new n("attribute",c,f,e,l)});f.Timeline.addTweenType("property",function(c,f,e,l){return new n("property",c,f,e,l)})})(jQuery,jQuery.Edge);(function(e,f,n){function m(t,k,a,d,g){f.PropertyTween.call(this,t,k,a,d,g);this.name="transformTween"}var c,i,j=Math.asin,l=Math.sin,p=Math.cos,a=Math.tan,b=Math.atan2,o=Math.PI/180,h=180/Math.PI;m.removeData=function(t){var a=e.data(t,m.dataName);a&&(a.timeline&&c.unRegister(a.timeline,a.id),$ele.removeData(t,m.dataName))};var r=function(t){var a=0;typeof t=="string"?a=parseFloat(t.replace(/[a-zA-Z%]+$/,"")):typeof t=="number"&&(a=t);return a};m.applyTransform=function(a,k,b,d){var a=e(a),g="webkitAppearance"in
document.documentElement.style,c=!0;d&&(c=!d.dontForceZ);if(g){d="translate("+k.translateX+","+k.translateY+")";g=r(k.translateZ);if(g!==0||c)d+=" translateZ("+k.translateZ+")";d+=" rotate("+k.rotateZ+") ";g=r(k.rotateY);g!==0&&(d+=" rotateY("+k.rotateY+")");g=r(k.rotateX);g!==0&&(d+=" rotateX("+k.rotateX+")");d+=" skew("+k.skewX+","+k.skewY+") scale("+k.scaleX+","+k.scaleY+") ";g=r(k.scaleZ);g!=1&&(d+=" scaleZ("+k.scaleZ+")");k="-webkit-transform";a.css(k,d);b&&b.observers.length&&b.notifyObservers("onUpdate",
{elapsed:0,easingConst:0,property:k,value:d,element:a[0]})}else b=r(k.rotateY),d=r(k.rotateX),b=k.scaleX*p(o*b),c=k.scaleY*p(o*d),d="translate("+k.translateX+","+k.translateY+")",d+=" rotate("+k.rotateZ+")",d+=" skew("+k.skewX+", "+k.skewY+")",d+=" scale("+b+","+c+")",a.css("-moz-transform",d),a.css("-o-transform",d),a.css("-ms-transform",d),a.css("msTransform",d)};var u=function(a){if(a!==0&&Math.abs(a)<1.0E-6)return a.toFixed(6);return a.toString()};m.dataName="EdgeTransformData";var A=1;e.extend(m.prototype,
n.prototype,{constructor:m,setup:function(){this.updateTriggered=!1},setValue:function(a,k,b){e.data(this,m.dataName)[k]=b},getValue:function(){e.data(this,m.dataName)},setupForAnimation:function(a){var k=this;this.getElementSet(a).each(function(){var a=e.data(this,m.dataName);a||(a=k.buildTransformData(this),e.data(this,m.dataName,a))});n.prototype.setupForAnimation.call(this,a)},update:function(a,k,b){n.prototype.update.call(this,a,k,b);var d=this,g=this.property,f=this.tweenType;this.getElementSet(b).each(function(){if(d.getPropertyTweenData(this,
f,g).animationID==d.animationID){var a=e.data(this,m.dataName);a.timeline=b.timeline;a.tween=d;c.Register(b.timeline,a.id,a)}})},buildTransformData:function(a){var k=f.parseCanonicalTransform(a);if(k===null){var k={},b=f.getTransformProps(a);k.translateX="0px";k.translateY="0px";k.translateZ="0px";k.scaleX=1;k.scaleY=1;k.scaleZ=1;k.rotateX="0deg";k.rotateY="0deg";k.rotateZ="0deg";k.skewXZ=0;k.skewXY=0;k.skewYZ=0;k.skewX="0deg";k.skewY="0deg";k.matrix&&delete k.matrix;if(b)k.translateX=u(b.translation[0])+
"px",k.translateY=u(b.translation[1])+"px",k.translateZ=u(b.translation[2])+"px",k.scaleX=u(b.scale[0]),k.scaleY=u(b.scale[1]),k.scaleZ=u(b.scale[2]),k.rotateX=u(b.rotation[0]*h)+"deg",k.rotateY=u(b.rotation[1]*h)+"deg",k.rotateZ=u(b.rotation[2]*h)+"deg",k.skewXY=b.skew[0],k.skewXZ=b.skew[1],k.skewYZ=b.skew[2],k.skewX=u(Math.atan(b.skew[0])*h)+"deg"}k===null&&(k={});k.id="transform_"+A++;k.element=a;k.onFinalUpdate=c.prototype._applyTransform;return k}});var y={translate3d:0,translate:0,translateX:0,
translateY:0,translateZ:0,rotate:1,rotateZ:1,rotateX:1,rotateY:1,rotate3d:1,skew:2,skewX:2,skewY:2,scale3d:3,scale:3,scaleX:3,scaleY:3,scaleZ:3,perspective:4};f.getTransformProps=function(a,k){var b=typeof k=="string"?k:f.getTransform(a),d="webkitAppearance"in document.documentElement.style;if(b&&b!="none"&&d)d=new f.CSSMatrix,d.setMatrixValue(b),b=i.fromCSSMatrix(d);else if(b&&b!="none")b=i.fromCSSMatrixString(b);else return;return f.decomposeTransform(b)};f.getTransform=function(a){var k="webkitAppearance"in
document.documentElement.style,a=e(a),b=a[0].style,d;if(k)(d=a.get(0).style.webkitTransform)||(d=a.css("-webkit-transform"));if(d)return d;(d=a.get(0).style.msTransform)||(d=a.css("-ms-transform"));d||(d=a.css("msTransform"));if(!d)d=b.MozTransform;d||(d=b["-moz-transform"]);d||(d=a.css("-moz-transform"));if(!d)d=b.oTransform;d||(d=a.css("-o-transform"));if(!d)d=b.transform;d||(d=a.css("transform"));return d||""};f.parseCanonicalTransform=function(a,k){var b=(typeof k=="string"?k:f.getTransform(a)).match(/(\w+\s*\([^\)]*\))/g);
if(!b)return null;var d={},g={translateX:"0px",translateY:"0px",translateZ:"0px",scaleX:1,scaleY:1,scaleZ:1,rotateX:"0deg",rotateY:"0deg",rotateZ:"0deg",skewXZ:0,skewXY:0,skewYZ:0,skewX:"0deg",skewY:"0deg"},c;for(c=0;c<b.length;c++){var h=b[c].match(/\w+/);if(d[h[0]]||y[h[0]]<0)return null;var e=b[c].match(/\([^\)]*\)/),e=e[0].replace(/[\(\)]/g,""),e=e.split(",");switch(h[0]){case "matrix":return null;case "translate3d":g.translateX=e[0];g.translateY=e.length>1?e[1]:"0px";g.translateZ=e.length>2?
e[2]:"0px";d.translate3d=d.translate=d.translateX=d.translateY=d.translateZ=!0;break;case "translate":g.translateX=e[0];g.translateY=e.length>1?e[1]:"0px";d.translate3d=d.translate=d.translateX=d.translateY=!0;break;case "translateX":g.translateX=e[0];d.translate3d=d.translate=d.translateX=!0;break;case "translateY":g.translateY=e[0];d.translate3d=d.translate=d.translateY=!0;break;case "translateZ":g.translateZ=e[0];d.translate3d=d.translateZ=!0;break;case "rotate3d":return d.rotate3d=d.rotate=d.rotateX=
d.rotateY=d.rotateZ=!0,null;case "rotateX":g.rotateX=e[0];d.rotate3d=d.rotateX=!0;break;case "rotateY":g.rotateY=e[0];d.rotate3d=d.rotateY=!0;break;case "rotateZ":case "rotate":g.rotateZ=e[0];d.rotate3d=d.rotate=d.rotateZ=!0;break;case "skew":g.skewX=e[0];g.skewY=e.length>1?e[1]:"0px";d.skew=d.skewX=d.skewY=!0;break;case "skewX":g.skewX=e[0];d.skew=d.skewX=!0;break;case "skewY":g.skewY=e[0];d.skew=d.skewY=!0;break;case "scale3d":g.scaleX=e[0];g.scaleY=e.length>1?e[1]:"0px";g.scaleZ=e.length>2?e[2]:
"0px";d.scale3d=d.scale=d.scaleX=d.scaleY=d.scaleZ=!0;break;case "scale":g.scaleX=e[0];g.scaleY=e.length>1?e[1]:"0px";d.scale=d.scaleX=d.scaleY=!0;break;case "scaleX":g.scaleX=e[0];d.scale3d=d.scale=d.scaleX=!0;break;case "scaleY":g.scaleY=e[0];d.scale3d=d.scale=d.scaleY=!0;break;case "scaleZ":g.scaleZ=e[0];d.scale3d=d.scaleZ=!0;break;case "perspective":d.perspective=!0}}return g};f.TransformTween=m;c=function(a){this.handlers={};this.timeline=a};c.Register=function(a,k,b){var d=a.updateFinalizer;
if(typeof d=="undefined")d=new c(a),a.updateFinalizer=d,a.addObserver(d);d.handlers[k]=b};c.unRegister=function(a,k){var b=a.updateFinalizer;typeof b!="undefined"&&delete b.handlers[k]};e.extend(c.prototype,{_finalizeUpdate:function(a,k){var b={elapsed:a,context:k},d;for(d in this.handlers)if(this.handlers.hasOwnProperty(d)){var g=this.handlers[d];if(g.onFinalUpdate)g.onFinalUpdate(b)}},postUpdate:function(a,k){this._finalizeUpdate(k.elapsed,k.context)},complete:function(){this.timeline&&this.timeline.removeObserver(this);
this.timeline.updateFinalizer=void 0},_applyTransform:function(a){var k=e.data(this.element,m.dataName);m.applyTransform(this.element,k,k.tween,a.context)}});m.UpdateFinalizer=c;if(typeof CSSMatrix=="undefined")if(typeof WebKitCSSMatrix!="undefined")f.CSSMatrix=WebKitCSSMatrix;else{if(typeof MozCSSMatrix!="undefined")f.CSSMatrix=MozCSSMatrix}else f.CSSMatrix=CSSMatrix;var z=function(a,k){for(var b=0,d=a.length,g=0;g<d;g++)b+=a[g]*k[g];return b},v=function(a){for(var b=0,c=a.length,d=0;d<c;d++)b+=
a[d]*a[d];return Math.sqrt(b)},q=function(a){var b=a.length,c=v(a),d=Array(b);c===0&&(c=1);for(var g=0;g<b;g++)d[g]=a[g]/c;return d},w=function(a,b,c,d){var g=Array(3);g[0]=c*a[0]+d*b[0];g[1]=c*a[1]+d*b[1];g[2]=c*a[2]+d*b[2];return g};i=function(a){var b,c;if(a)for(b=0;b<4;b++){this[b]=Array(4);for(c=0;c<4;c++)this[b][c]=a[b][c]}else for(b=0;b<4;b++){this[b]=Array(4);for(c=0;c<4;c++)this[b][c]=0;this[b][b]=1}this.size=4};i.fromCSSMatrix=function(a){var b=new i;b[0][0]=a.m11;b[0][1]=a.m12;b[0][2]=
a.m13;b[0][3]=a.m14;b[1][0]=a.m21;b[1][1]=a.m22;b[1][2]=a.m23;b[1][3]=a.m24;b[2][0]=a.m31;b[2][1]=a.m32;b[2][2]=a.m33;b[2][3]=a.m34;b[3][0]=a.m41;b[3][1]=a.m42;b[3][2]=a.m43;b[3][3]=a.m44;return b};var s=function(a){var b={};b.num=parseFloat(a);b.units=a.match(/\w+$/);if(typeof b.unit=="array")b.units=b.units[0];return b},x=function(a){a=a.toLowerCase();if(typeof a!="string")return 0;a=s(a);a.units=="deg"&&(a.num*=o);return a.num};i.fromCSSMatrixString=function(a){var b=new i,a=a.match(/(\w+\s*\([^\)]*\))/g);
if(typeof a=="undefined"||a===null)return b;var c;for(c=0;c<a.length;c++){var d=a[c].match(/\w+/),g=a[c].match(/\([^\)]*\)/),g=g[0].replace(/[\(\)]/g,""),g=g.split(","),e,h;switch(d[0]){case "matrix":d=new i;g.length==6&&(d[0][0]=parseFloat(g[0]),d[0][1]=parseFloat(g[1]),d[1][0]=parseFloat(g[2]),d[1][1]=parseFloat(g[3]),d[3][0]=parseFloat(g[4]),d[3][1]=parseFloat(g[5]),b.preMultiplyBy(d));break;case "translate3d":d=s(g[0]).num;e=g.length>1?s(g[1]).num:0;h=g.length>2?s(g[2]).num:0;b.translate3d(d,
e,h);break;case "translate":d=s(g[0]).num;e=g.length>1?s(g[1]).num:0;b.translate3d(d,e,0);break;case "translateX":g=s(g[0]).num;b.translate3d(g,0,0);break;case "translateY":g=s(g[0]).num;b.translate3d(0,g,0);break;case "translateZ":g=s(g[0]).num;b.translate3d(0,0,g);break;case "rotate3d":if(g.length>=3)d=s(g[0]).num,e=s(g[1]).num,h=s(g[2]).num,g=x(g[3]),b.rotate3d(d,e,h,g,!0);break;case "rotateX":g=x(g[0]);b.rotateX(g);break;case "rotateY":g=x(g[0]);b.rotateY(g);break;case "rotateZ":case "rotate":g=
x(g[0]);b.rotateZ(g);break;case "skew":d=x(g[0]);g=x(g[1]);b.skew(d,g);break;case "skewX":g=x(g[0]);b.skew(g,0);break;case "skewY":g=x(g[0]);b.skew(0,g);break;case "scale3d":d=parseFloat(g[0]);e=g.length>1?parseFloat(g[1]):1;g=g.length>2?parseFloat(g[2]):1;b.scale(d,e,g);break;case "scale":d=parseFloat(g[0]);e=g.length>1?parseFloat(g[1]):1;b.scale(d,e,1);break;case "scaleX":g=parseFloat(g[0]);b.scale(g,1,1);break;case "scaleY":g=parseFloat(g[0]);b.scale(1,g,1);break;case "scaleZ":g=parseFloat(g[0]);
b.scale(1,1,g);break;case "perspective":g=parseFloat(g[0]),b.perspective(g)}}return b};e.extend(i.prototype,{identity:function(){for(var a=0;a<4;a++){this[a]=Array(4);for(var b=0;b<4;b++)this[a][b]=0;this[a][a]=1}return this},determinant:function(){var a=this[0][0],b=this[0][1],c=this[0][2],d=this[0][3],g=this[1][0],e=this[1][1],h=this[1][2],f=this[1][3],i=this[2][0],j=this[2][1],o=this[2][2],C=this[2][3],l=this[3][0],m=this[3][1],n=this[3][2],r=this[3][3];return d*h*j*l-c*f*j*l-d*e*o*l+b*f*o*l+c*
e*C*l-b*h*C*l-d*h*i*m+c*f*i*m+d*g*o*m-a*f*o*m-c*g*C*m+a*h*C*m+d*e*i*n-b*f*i*n-d*g*j*n+a*f*j*n+b*g*C*n-a*e*C*n-c*e*i*r+b*h*i*r+c*g*j*r-a*h*j*r-b*g*o*r+a*e*o*r},normalizeTransform:function(){if(this[3][3]===0)return!1;for(var a=0;a<4;a++)for(var b=0;b<4;b++)this[a][b]/=this[3][3];return!0},transpose:function(){for(var a=new i,b=0;b<4;b++)for(var c=0;c<4;c++)a[b][c]=this[c][b];return a},toCSSMatrix:function(){var a=new f.CSSMatrix;a.m11=this[0][0];a.m12=this[0][1];a.m13=this[0][2];a.m14=this[0][3];a.m21=
this[1][0];a.m22=this[1][1];a.m23=this[1][2];a.m24=this[1][3];a.m31=this[2][0];a.m32=this[2][1];a.m33=this[2][2];a.m34=this[2][3];a.m41=this[3][0];a.m42=this[3][1];a.m43=this[3][2];a.m44=this[3][3];return a},_inverse:function(){return this},inverse:function(){if(f.CSSMatrix!==void 0){var a=this.toCSSMatrix().inverse();return i.fromCSSMatrix(a)}return this._inverse()},rotate3d:function(a,b,c,d,g){var e=new f.Matrix4x4;g||(d*=o);d&&(g=Math.sqrt(a*a+b*b+c*c),g!==0&&(a/=g,b/=g,c/=g,g=l(d),d=p(d),e[0][0]=
1+(1-d)*(a*a-1),e[1][0]=-c*g+(1-d)*a*b,e[2][0]=b*g+(1-d)*a*c,e[3][0]=0,e[0][1]=c*g+(1-d)*a*b,e[1][1]=1+(1-d)*(b*b-1),e[2][1]=-a*g+(1-d)*b*c,e[3][1]=0,e[0][2]=-b*g+(1-d)*a*c,e[1][2]=a*g+(1-d)*b*c,e[2][2]=1+(1-d)*(c*c-1),e[3][2]=0,e[0][3]=0,e[1][3]=0,e[2][3]=0,e[3][3]=1));return this.preMultiplyBy(e)},rotateX:function(a){return this.rotate3d(1,0,0,a)},rotateY:function(a){return this.rotate3d(0,1,0,a)},rotateZ:function(a){return this.rotate3d(0,0,1,a)},translate3d:function(a,b,c){var d=new f.Matrix4x4;
d[3][0]+=a;d[3][1]+=b;d[3][2]+=c;return this.preMultiplyBy(d)},scale:function(a,b,c){if(a!=1||b!=1||c!=1){var d=new f.Matrix4x4;d[0][0]=a;d[1][1]=b;d[2][2]=c;return this.preMultiplyBy(d)}return this},skew:function(b,c,e){e||(b*=o,c*=o);b!==0&&(e=new f.Matrix4x4,e[1][0]=a(b),this.preMultiplyBy(e));c!==0&&(b=new f.Matrix4x4,b[0][1]=a(c),this.preMultiplyBy(b));return this},perspective:function(a){if(a!==0){var b=new f.Matrix4x4;b[2][3]=1/a;this.preMultiplyBy(b)}return this},skewByFactors:function(a,
b,c){a=new f.Matrix4x4;a[2][1]=c;this.preMultiplyBy(a);a.identity();a[2][0]=c;this.preMultiplyBy(a);a.identity();a[1][0]=c;this.preMultiplyBy(a);return this},applyPerspective:function(a,b,c,d){var e=new f.Matrix4x4;e[0][3]=a;e[1][3]=b;e[2][3]=c;e[3][3]=d;this.preMultiplyBy(e);return this},preMultiplyBy:function(a){var b=a[0][0],c=a[0][1],d=a[0][2],e=a[0][3],h=a[1][0],f=a[1][1],i=a[1][2],j=a[1][3],F=a[2][0],o=a[2][1],l=a[2][2],m=a[2][3],n=a[3][0],r=a[3][1],p=a[3][2],a=a[3][3],u=this[0][0],q=this[0][1],
s=this[0][2],A=this[0][3],v=this[1][0],w=this[1][1],x=this[1][2],y=this[1][3],z=this[2][0],G=this[2][1],H=this[2][2],I=this[2][3],J=this[3][0],K=this[3][1],L=this[3][2],M=this[3][3];this[0][0]=b*u+c*v+d*z+e*J;this[0][1]=b*q+c*w+d*G+e*K;this[0][2]=b*s+c*x+d*H+e*L;this[0][3]=b*A+c*y+d*I+e*M;this[1][0]=h*u+f*v+i*z+j*J;this[1][1]=h*q+f*w+i*G+j*K;this[1][2]=h*s+f*x+i*H+j*L;this[1][3]=h*A+f*y+i*I+j*M;this[2][0]=F*u+o*v+l*z+m*J;this[2][1]=F*q+o*w+l*G+m*K;this[2][2]=F*s+o*x+l*H+m*L;this[2][3]=F*A+o*y+l*I+
m*M;this[3][0]=n*u+r*v+p*z+a*J;this[3][1]=n*q+r*w+p*G+a*K;this[3][2]=n*s+r*x+p*H+a*L;this[3][3]=n*A+r*y+p*I+a*M;return this}});f.Matrix4x4=i;f.decomposeTransform=function(a){var c={},e=new i(a);if(!e.normalizeTransform())return null;c=new i(a);for(a=0;a<3;a++)c[a][3]=0;c[3][3]=1;if(c.determinant(c)===0)return window.edge_authoring_mode&&alert("Bad perspective matrix"),null;var d=Array(4),a=Array(4);if(e[0][3]!==0||e[1][3]!==0||e[2][3]!==0){d[0]=e[0][3];d[1]=e[1][3];d[2]=e[2][3];d[3]=e[3][3];a=c.inverse();
if(!a)return!1;a=a.transpose().rightMultiply(d);e[0][3]=e[1][3]=e[2][3]=0;e[3][3]=1}else a[0]=a[1]=a[2]=0,a[3]=1;c=Array(3);c[0]=e[3][0];e[3][0]=0;c[1]=e[3][1];e[3][1]=0;c[2]=e[3][2];e[3][2]=0;d=Array(3);d[0]=Array(3);d[1]=Array(3);d[2]=Array(3);for(var g=0;g<3;g++)d[g][0]=e[g][0],d[g][1]=e[g][1],d[g][2]=e[g][2];e=Array(3);e[0]=v(d[0]);d[0]=q(d[0]);g=Array(3);g[0]=z(d[0],d[1]);d[1]=w(d[1],d[0],1,-g[0]);e[1]=v(d[1]);d[1]=q(d[1]);e[1]!==0&&(g[0]/=e[1]);g[1]=z(d[0],d[2]);d[2]=w(d[2],d[0],1,-g[1]);g[2]=
z(d[1],d[2]);d[2]=w(d[2],d[1],1,-g[2]);e[2]=v(d[2]);e[2]!==0&&(d[2]=q(d[2]));e[2]!==0&&(g[1]/=e[2],g[2]/=e[2]);var h;h=d[1];var f=d[2],o=Array(3);h.length!=3||f.length!=3?h=null:(o[0]=h[1]*f[2]-h[2]*f[1],o[1]=h[2]*f[0]-h[0]*f[2],o[2]=h[0]*f[1]-h[1]*f[0],h=o);if(z(d[0],h)<0)for(h=0;h<3;h++)e[h]*=-1,d[h][0]*=-1,d[h][1]*=-1,d[h][2]*=-1;h=Array(3);h[1]=j(-d[0][2]);p(h[1])!==0?(h[0]=b(d[1][2],d[2][2]),h[2]=b(d[0][1],d[0][0])):(h[0]=b(-d[2][0],d[1][1]),h[2]=0);return c={translation:c,rotation:h,scale:e,
skew:g,perspective:a}};f.Timeline.addTweenType("transform",function(a,b,c,d){return new m("transform",a,b,c,d)})})(jQuery,jQuery.Edge,jQuery.Edge.PropertyTween);(function(e,f,n){function m(a,b,c,e,i){f.PropertyTween.call(this,a,b,c,e,i);this.name="colorTween"}e.extend(m.prototype,n.prototype,{constructor:m,getValue:function(a){return e(this).css(a)},setValue:function(a,b,c){e(this).css(b,c)},parseValue:function(a){var b=f.parseColorValue(a);if(b&&b.colorFunction&&b.values){var a=b.values,b=b.colorFunction,c=/hsl/gi;if(b.match(/rgb/gi))if(this.animationColorSpace&&this.animationColorSpace=="HSL")b={r:a[0],g:a[1],b:a[2]},(b=f.rgbToHSL(b))?a.length>3?(a=a[3],
a=[b.h,b.s,b.l,a]):a=[b.h,b.s,b.l]:a=[];else if(this.animationColorSpace){if(this.animationColorSpace!="RGB")return a}else this.animationColorSpace="RGB";else if(b.match(c))if(this.animationColorSpace&&this.animationColorSpace=="RGB")b={h:a[0],s:a[1],l:a[2]},(b=f.hslToRGB(b))?a.length>3?(a=a[3],a=[b.r,b.g,b.b,a]):a=[b.r,b.g,b.b]:a=[];else if(this.animationColorSpace){if(this.animationColorSpace!="HSL")return a}else this.animationColorSpace="HSL";a.length==3&&(a[3]=1);return a}},formatValue:function(a){if(a){var b;
this.animationColorSpace=="HSL"?(b="hsl",a=a.length==4?b+"a("+a[0]+","+a[1]+"%,"+a[2]+"%,"+a[3]+")":b+"("+a[0]+","+a[1]+"%,"+a[2]+"%)"):(b="rgb",a=a.length==4?b+"a("+a[0]+"%,"+a[1]+"%,"+a[2]+"%,"+a[3]+")":b+"("+a[0]+"%,"+a[1]+"%,"+a[2]+"%)");return a}}});f.ColorTween=m;f.parseColorValue=function(a){if(a){var b=[],c,h,f=/^\s*#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])\s*$/;(h=/^\s*#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})\s*$/.exec(a))?(b=[parseInt(h[1],16)/255*100,parseInt(h[2],16)/255*100,parseInt(h[3],
16)/255*100],c="rgb"):(h=f.exec(a))?(b=[parseInt(h[1]+h[1],16)/255*100,parseInt(h[2]+h[2],16)/255*100,parseInt(h[3]+h[3],16)/255*100],c="rgb"):a=="transparent"&&(b=[0,0,0,0],c="rgb");c||(c=a.match(/\w+/),e.isArray(c)?c=c[0]:c||(c=""),(h=a.match(/\([^\)]*\)/))&&h.length>0&&(h=h[0].replace(/[\(\)]/g,"")));a=/rgb/gi;f=/hsl/gi;if(b.length===0)if(c.match(a))if((f=/^\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*(?:,\s*([0-9](?:\.[0-9]+)?)\s*)?$/.exec(h))&&f.length>=4){for(a=0;a<3;a++)b[a]=f[a+
1]/255*100;f.length>4&&(f[4]||(f[4]=1),b[3]=f[4])}else{if((h=/^\s*([0-9]{1,3}(?:\.[0-9]+)?)\s*%\s*,\s*([0-9]{1,3}(?:\.[0-9]+)?)\s*%\s*,\s*([0-9]{1,3}(?:\.[0-9]+)?)\s*%\s*(?:,\s*([0-9](?:\.[0-9]+)?)\s*)?$/.exec(h))&&h.length>=4){if(h.length>=5)h.length=5,h[4]||(h[4]=1);for(a=0;a<h.length-1;a++)b[a]=h[a+1]}}else if(c.match(f)&&(h=/^\s*([0-9]{1,3}(?:\.[0-9]+)?)\s*,\s*([0-9]{1,3}(?:\.[0-9]+)?)\s*%\s*,\s*([0-9]{1,3}(?:\.[0-9]+)?)\s*%\s*(?:,\s*([0-9](?:\.[0-9]+)?)\s*)?$/.exec(h))&&h.length>=4){if(h.length>=
5)h.length=5,h[4]||(h[4]=1);for(a=0;a<h.length-1;a++)b[a]=h[a+1]}if(b)for(a=0;a<b.length;a++)b[a]=Math.round(b[a]*1E4)/1E4;return{colorFunction:c,values:b}}};var c=1/3,i=1/6,j=2/3,l=function(a){return a<0?a+1:a>1?a-1:a},p=function(a,b,c,e){return e<i?a+c*e:e<0.5?b:e<j?a+c*(j-e):a};f.hslToRGB=function(a){if(a===null||a.s<0||a.s>100||a.l<0||a.l>100)return null;for(;a.h>360;)a.h-=360;for(;a.h<0;)a.h=360+a.h;var b={},e=a.h/360,h=a.s/100,a=a.l/100;if(h===0)b.r=b.g=b.b=1;else{var h=a<=0.5?a*(1+h):a+h-a*
h,a=2*a-h,f=l(e+c),i=l(e),e=l(e-c),j=(h-a)*6;b.r=p(a,h,j,f);b.g=p(a,h,j,i);b.b=p(a,h,j,e)}b.r=Math.min(b.r*100,100);b.g=Math.min(b.g*100,100);b.b=Math.min(b.b*100,100);b.r=Math.round(b.r*1E4)/1E4;b.g=Math.round(b.g*1E4)/1E4;b.b=Math.round(b.b*1E4)/1E4;return b};f.rgbToHSL=function(a){if(a===null||a.r<0||a.r>100||a.g<0||a.g>100||a.b<0||a.b>100)return null;var b={h:0,s:0,l:0},c=a.r/100,e=a.g/100,a=a.b/100,f=Math.max(c,e,a),i=Math.min(c,e,a);b.l=(f+i)/2;if(f==i||b.l<=0)return b;var j=f-i;b.s=b.l<=0.5?
j/(f+i):j/(2-f-i);b.h=f==a?4+(c-e)/j:f==e?2+(a-c)/j:(e-a)/j;b.h*=60;if(b.h>360)b.h-=360;else if(b.h<0)b.h=360+b.h;b.s=Math.min(b.s*100,100);b.l=Math.min(b.l*100,100);b.h=Math.round(b.h*1E4)/1E4;b.s=Math.round(b.s*1E4)/1E4;b.l=Math.round(b.l*1E4)/1E4;return b};f.Timeline.addTweenType("color",function(a,b,c,e){return new m("color",a,b,c,e)})})(jQuery,jQuery.Edge,jQuery.Edge.PropertyTween);(function(e,f,n,m){function c(a){for(;a&&typeof a.originalEvent!=="undefined";)a=a.originalEvent;return a}function i(a){for(var b={},c,d;a;){c=e.data(a,y);for(d in c)if(c[d])b[d]=b.hasVirtualBinding=!0;a=a.parentNode}return b}function j(){w&&(clearTimeout(w),w=0);w=setTimeout(function(){B=w=0;k.length=0;N=!1;d=!0},e.vmouse.resetTimerDuration)}function l(a,b,d){var g,f;if(!(f=d&&d[a])){if(d=!d)a:{for(d=b.target;d;){if((f=e.data(d,y))&&(!a||f[a]))break a;d=d.parentNode}d=null}f=d}if(f){g=b;var d=g.type,
h,i;g=e.Event(g);g.type=a;f=g.originalEvent;h=e.event.props;if(f)for(i=h.length;i;)a=h[--i],g[a]=f[a];if(d.search(/mouse(down|up)|click/)>-1&&!g.which)g.which=1;if(d.search(/^touch/)!==-1&&(a=c(f),d=a.touches,a=a.changedTouches,d=d&&d.length?d[0]:a&&a.length?a[0]:m)){f=0;for(len=v.length;f<len;f++)a=v[f],g[a]=d[a]}e(b.target).trigger(g)}return g}function p(a){var b=e.data(a.target,z);if(!N&&(!B||B!==b))if(b=l("v"+a.type,a))b.isDefaultPrevented()&&a.preventDefault(),b.isPropagationStopped()&&a.stopPropagation(),
b.isImmediatePropagationStopped()&&a.stopImmediatePropagation()}function a(a){var b=c(a).touches,g;if(b&&b.length===1&&(g=a.target,b=i(g),b.hasVirtualBinding))B=O++,e.data(g,z,B),w&&(clearTimeout(w),w=0),t=d=!1,g=c(a).touches[0],s=g.pageX,x=g.pageY,l("vmouseover",a,b),l("vmousedown",a,b)}function b(a){d||(t||l("vmousecancel",a,i(a.target)),t=!0,j())}function o(a){if(!d){var b=c(a).touches[0],g=t,f=e.vmouse.moveDistanceThreshold;t=t||Math.abs(b.pageX-s)>f||Math.abs(b.pageY-x)>f;flags=i(a.target);t&&
!g&&l("vmousecancel",a,flags);l("vmousemove",a,flags);j()}}function h(a){if(!d){d=!0;var b=i(a.target),e;l("vmouseup",a,b);if(!t&&(e=l("vclick",a,b))&&e.isDefaultPrevented())e=c(a).changedTouches[0],k.push({touchID:B,x:e.clientX,y:e.clientY}),N=!0;l("vmouseout",a,b);t=!1;j()}}function r(a){var a=e.data(a,y),b;if(a)for(b in a)if(a[b])return!0;return!1}function u(){}function A(c){var d=c.substr(1);return{setup:function(){r(this)||e.data(this,y,{});e.data(this,y)[c]=!0;q[c]=(q[c]||0)+1;q[c]===1&&D.bind(d,
p);e(this).bind(d,u);if(g)q.touchstart=(q.touchstart||0)+1,q.touchstart===1&&D.bind("touchstart",a).bind("touchend",h).bind("touchmove",o).bind("scroll",b)},teardown:function(){--q[c];q[c]||D.unbind(d,p);g&&(--q.touchstart,q.touchstart||D.unbind("touchstart",a).unbind("touchmove",o).unbind("touchend",h).unbind("scroll",b));var f=e(this),i=e.data(this,y);i&&(i[c]=!1);f.unbind(d,u);r(this)||f.removeData(y)}}}var y="virtualMouseBindings",z="virtualTouchID",f="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),
v="clientX clientY pageX pageY screenX screenY".split(" "),q={},w=0,s=0,x=0,t=!1,k=[],N=!1,d=!1,g="addEventListener"in n,D=e(n),O=1,B=0;e.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};for(var E=0;E<f.length;E++)e.event.special[f[E]]=A(f[E]);g&&n.addEventListener("click",function(a){var b=k.length,c=a.target,d,g,f,h,i;if(b){d=a.clientX;g=a.clientY;threshold=e.vmouse.clickDistanceThreshold;for(f=c;f;){for(h=0;h<b;h++)if(i=k[h],f===c&&Math.abs(i.x-d)<threshold&&
Math.abs(i.y-g)<threshold||e.data(f,z)===i.touchID){a.preventDefault();a.stopPropagation();return}f=f.parentNode}}},!0)})(jQuery,window,document);

