Telegram Web, preconfigured for usage in I2P. http://web.telegram.i2p/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
10 KiB

11 years ago
/*
AngularJS v1.3.0-beta.8
11 years ago
(c) 2010-2014 Google, Inc. http://angularjs.org
License: MIT
*/
(function(s,f,Q){'use strict';f.module("ngAnimate",["ng"]).factory("$$animateReflow",["$$rAF","$document",function(f,s){return function(h){return f(function(){h()})}}]).config(["$provide","$animateProvider",function(ca,H){function h(h){for(var g=0;g<h.length;g++){var f=h[g];if(f.nodeType==Z)return f}}function E(g){return f.element(h(g))}var t=f.noop,g=f.forEach,R=H.$$selectors,Z=1,m="$$ngAnimateState",J="ng-animate",n={running:!0};ca.decorator("$animate",["$delegate","$injector","$sniffer","$rootElement",
"$$asyncCallback","$rootScope","$document",function(x,s,Y,K,F,I,Q){function S(a){if(a){var b=[],d={};a=a.substr(1).split(".");(Y.transitions||Y.animations)&&b.push(s.get(R[""]));for(var c=0;c<a.length;c++){var e=a[c],g=R[e];g&&!d[e]&&(b.push(s.get(g)),d[e]=!0)}return b}}function L(a,b,d){function c(a,b){var d=a[b],c=a["before"+b.charAt(0).toUpperCase()+b.substr(1)];if(d||c)return"leave"==b&&(c=d,d=null),A.push({event:b,fn:d}),l.push({event:b,fn:c}),!0}function e(b,c,e){var h=[];g(b,function(a){a.fn&&
h.push(a)});var k=0;g(h,function(b,u){var G=function(){a:{if(c){(c[u]||t)();if(++k<h.length)break a;c=null}e()}};switch(b.event){case "setClass":c.push(b.fn(a,y,B,G));break;case "addClass":c.push(b.fn(a,y||d,G));break;case "removeClass":c.push(b.fn(a,B||d,G));break;default:c.push(b.fn(a,G))}});c&&0===c.length&&e()}var h=a[0];if(h){var m="setClass"==b,n=m||"addClass"==b||"removeClass"==b,y,B;f.isArray(d)&&(y=d[0],B=d[1],d=y+" "+B);var z=a.attr("class")+" "+d;if(M(z)){var p=t,D=[],l=[],C=t,k=[],A=[],
z=(" "+z).replace(/\s+/g,".");g(S(z),function(a){!c(a,b)&&m&&(c(a,"addClass"),c(a,"removeClass"))});return{node:h,event:b,className:d,isClassBased:n,isSetClassOperation:m,before:function(a){p=a;e(l,D,function(){p=t;a()})},after:function(a){C=a;e(A,k,function(){C=t;a()})},cancel:function(){D&&(g(D,function(a){(a||t)(!0)}),p(!0));k&&(g(k,function(a){(a||t)(!0)}),C(!0))}}}}}function q(a,b,d,c,e,h,n){function t(c){var e="$animate:"+c;C&&(C[e]&&0<C[e].length)&&F(function(){d.triggerHandler(e,{event:a,
className:b})})}function y(){t("before")}function B(){t("after")}function s(){t("close");n&&F(function(){n()})}function p(){p.hasBeenRun||(p.hasBeenRun=!0,h())}function D(){if(!D.hasBeenRun){D.hasBeenRun=!0;var c=d.data(m);c&&(l&&l.isClassBased?z(d,b):(F(function(){var c=d.data(m)||{};q==c.index&&z(d,b,a)}),d.data(m,c)));s()}}var l=L(d,a,b);if(l){b=l.className;var C=f.element._data(l.node),C=C&&C.events;c||(c=e?e.parent():d.parent());var k=d.data(m)||{};e=k.active||{};var A=k.totalActive||0,x=k.last;
if(l.isClassBased&&(k.disabled||x&&!x.isClassBased)||N(d,c))p(),y(),B(),D();else{c=!1;if(0<A){k=[];if(l.isClassBased)"setClass"==x.event?(k.push(x),z(d,b)):e[b]&&(v=e[b],v.event==a?c=!0:(k.push(v),z(d,b)));else if("leave"==a&&e["ng-leave"])c=!0;else{for(var v in e)k.push(e[v]),z(d,v);e={};A=0}0<k.length&&g(k,function(a){a.cancel()})}!l.isClassBased||(l.isSetClassOperation||c)||(c="addClass"==a==d.hasClass(b));if(c)p(),y(),B(),s();else{if("leave"==a)d.one("$destroy",function(a){a=f.element(this);var b=
a.data(m);b&&(b=b.active["ng-leave"])&&(b.cancel(),z(a,"ng-leave"))});d.addClass(J);var q=O++;A++;e[b]=l;d.data(m,{last:l,active:e,index:q,totalActive:A});y();l.before(function(c){var e=d.data(m);c=c||!e||!e.active[b]||l.isClassBased&&e.active[b].event!=a;p();!0===c?D():(B(),l.after(D))})}}}else p(),y(),B(),D()}function T(a){if(a=h(a))a=f.isFunction(a.getElementsByClassName)?a.getElementsByClassName(J):a.querySelectorAll("."+J),g(a,function(a){a=f.element(a);(a=a.data(m))&&a.active&&g(a.active,function(a){a.cancel()})})}
function z(a,b){if(h(a)==h(K))n.disabled||(n.running=!1,n.structural=!1);else if(b){var d=a.data(m)||{},c=!0===b;!c&&(d.active&&d.active[b])&&(d.totalActive--,delete d.active[b]);if(c||!d.totalActive)a.removeClass(J),a.removeData(m)}}function N(a,b){if(n.disabled)return!0;if(h(a)==h(K))return n.disabled||n.running;do{if(0===b.length)break;var d=h(b)==h(K),c=d?n:b.data(m)||{},c=c.disabled||c.running?!0:c.last&&!c.last.isClassBased;if(d||c)return c;if(d)break}while(b=b.parent());return!0}var O=0;K.data(m,
n);I.$$postDigest(function(){I.$$postDigest(function(){n.running=!1})});var P=H.classNameFilter(),M=P?function(a){return P.test(a)}:function(){return!0};return{enter:function(a,b,d,c){this.enabled(!1,a);x.enter(a,b,d);I.$$postDigest(function(){a=E(a);q("enter","ng-enter",a,b,d,t,c)})},leave:function(a,b){T(a);this.enabled(!1,a);I.$$postDigest(function(){q("leave","ng-leave",E(a),null,null,function(){x.leave(a)},b)})},move:function(a,b,d,c){T(a);this.enabled(!1,a);x.move(a,b,d);I.$$postDigest(function(){a=
E(a);q("move","ng-move",a,b,d,t,c)})},addClass:function(a,b,d){a=E(a);q("addClass",b,a,null,null,function(){x.addClass(a,b)},d)},removeClass:function(a,b,d){a=E(a);q("removeClass",b,a,null,null,function(){x.removeClass(a,b)},d)},setClass:function(a,b,d,c){a=E(a);q("setClass",[b,d],a,null,null,function(){x.setClass(a,b,d)},c)},enabled:function(a,b){switch(arguments.length){case 2:if(a)z(b);else{var d=b.data(m)||{};d.disabled=!0;b.data(m,d)}break;case 1:n.disabled=!a;break;default:a=!n.disabled}return!!a}}}]);
H.register("",["$window","$sniffer","$timeout","$$animateReflow",function(m,n,E,K){function F(a,u){v&&v();U.push(u);v=K(function(){g(U,function(a){a()});U=[];v=null;k={}})}function I(a,u){var b=h(a);a=f.element(b);V.push(a);b=Date.now()+u;b<=aa||(E.cancel($),aa=b,$=E(function(){J(V);V=[]},u,!1))}function J(a){g(a,function(a){(a=a.data(p))&&(a.closeAnimationFn||t)()})}function S(a,b){var c=b?k[b]:null;if(!c){var w=0,h=0,l=0,X=0,p,r,f,n;g(a,function(a){if(a.nodeType==Z){a=m.getComputedStyle(a)||{};
f=a[d+R];w=Math.max(L(f),w);n=a[d+W];p=a[d+y];h=Math.max(L(p),h);r=a[e+y];X=Math.max(L(r),X);var b=L(a[e+R]);0<b&&(b*=parseInt(a[e+B],10)||1);l=Math.max(b,l)}});c={total:0,transitionPropertyStyle:n,transitionDurationStyle:f,transitionDelayStyle:p,transitionDelay:h,transitionDuration:w,animationDelayStyle:r,animationDelay:X,animationDuration:l};b&&(k[b]=c)}return c}function L(a){var b=0;a=f.isString(a)?a.split(/\s*,\s*/):[];g(a,function(a){b=Math.max(parseFloat(a)||0,b)});return b}function q(a,b,c){a=
0<=["ng-enter","ng-leave","ng-move"].indexOf(c);var w,g=b.parent(),l=g.data(ba);l||(g.data(ba,++A),l=A);w=l+"-"+h(b).getAttribute("class");var g=w+" "+c,l=k[g]?++k[g].total:0,f={};if(0<l){var m=c+"-stagger",f=w+" "+m;(w=!k[f])&&b.addClass(m);f=S(b,f);w&&b.removeClass(m)}b.addClass(c);var m=b.data(p)||{},r=S(b,g);w=r.transitionDuration;r=r.animationDuration;if(a&&0===w&&0===r)return b.removeClass(c),!1;c=a&&0<w;a=0<r&&0<f.animationDelay&&0===f.animationDuration;b.data(p,{stagger:f,cacheKey:g,running:m.running||
0,itemIndex:l,blockTransition:c,blockAnimation:a,closeAnimationFn:t});b=h(b);c&&(b.style[d+W]="none");a&&(b.style[e]="none 0s");return!0}function T(a,u,G,w){function f(a){u.off(F,m);u.removeClass(n);M(u,G);a=h(u);for(var b in v)a.style.removeProperty(v[b])}function m(a){a.stopPropagation();var b=a.originalEvent||a;a=b.$manualTimeStamp||b.timeStamp||Date.now();b=parseFloat(b.elapsedTime.toFixed(D));Math.max(a-E,0)>=B&&b>=t&&w()}var k=h(u);a=u.data(p);if(-1!=k.getAttribute("class").indexOf(G)&&a){a.blockTransition&&
(k.style[d+W]="");a.blockAnimation&&(k.style[e]="");var n="";g(G.split(" "),function(a,b){n+=(0<b?" ":"")+a+"-active"});u.addClass(n);var r=S(u,a.eventCacheKey+" "+n),t=Math.max(r.transitionDuration,r.animationDuration);if(0===t)u.removeClass(n),M(u,G),w();else{var y=Math.max(r.transitionDelay,r.animationDelay),s=a.stagger,x=a.itemIndex,B=y*C,q="",v=[];if(0<r.transitionDuration){var A=r.transitionPropertyStyle;-1==A.indexOf("all")&&(q+=b+"transition-property: "+A+";",q+=b+"transition-duration: "+
r.transitionDurationStyle+";",v.push(b+"transition-property"),v.push(b+"transition-duration"))}0<x&&(0<s.transitionDelay&&0===s.transitionDuration&&(q+=b+"transition-delay: "+z(r.transitionDelayStyle,s.transitionDelay,x)+"; ",v.push(b+"transition-delay")),0<s.animationDelay&&0===s.animationDuration&&(q+=b+"animation-delay: "+z(r.animationDelayStyle,s.animationDelay,x)+"; ",v.push(b+"animation-delay")));0<v.length&&(r=k.getAttribute("style")||"",k.setAttribute("style",r+" "+q));var E=Date.now(),F=
H+" "+c;u.on(F,m);a.closeAnimationFn=function(){f();w()};k=(x*(Math.max(s.animationDelay,s.transitionDelay)||0)+(y+t)*l)*C;a.running++;I(u,k);return f}}else w()}function z(a,b,c){var d="";g(a.split(","),function(a,e){d+=(0<e?",":"")+(c*b+parseInt(a,10))+"s"});return d}function N(a,b,c,d){if(q(a,b,c,d))return function(a){a&&M(b,c)}}function O(a,b,c,d){if(b.data(p))return T(a,b,c,d);M(b,c);d()}function P(a,b,c,d){var e=N(a,b,c);if(e){var f=e;F(b,function(){f=O(a,b,c,d)});return function(a){(f||t)(a)}}d()}
function M(a,b){a.removeClass(b);var c=a.data(p);c&&(c.running&&c.running--,c.running&&0!==c.running||a.removeData(p))}function a(a,b){var c="";a=f.isArray(a)?a:a.split(/\s+/);g(a,function(a,d){a&&0<a.length&&(c+=(0<d?" ":"")+a+b)});return c}var b="",d,c,e,H;s.ontransitionend===Q&&s.onwebkittransitionend!==Q?(b="-webkit-",d="WebkitTransition",c="webkitTransitionEnd transitionend"):(d="transition",c="transitionend");s.onanimationend===Q&&s.onwebkitanimationend!==Q?(b="-webkit-",e="WebkitAnimation",
H="webkitAnimationEnd animationend"):(e="animation",H="animationend");var R="Duration",W="Property",y="Delay",B="IterationCount",ba="$$ngAnimateKey",p="$$ngAnimateCSS3Data",D=3,l=1.5,C=1E3,k={},A=0,U=[],v,$=null,aa=0,V=[];return{enter:function(a,b){return P("enter",a,"ng-enter",b)},leave:function(a,b){return P("leave",a,"ng-leave",b)},move:function(a,b){return P("move",a,"ng-move",b)},beforeSetClass:function(b,c,d,e){c=a(d,"-remove")+" "+a(c,"-add");if(c=N("setClass",b,c))return F(b,e),c;e()},beforeAddClass:function(b,
c,d){if(c=N("addClass",b,a(c,"-add")))return F(b,d),c;d()},beforeRemoveClass:function(b,c,d){if(c=N("removeClass",b,a(c,"-remove")))return F(b,d),c;d()},setClass:function(b,c,d,e){d=a(d,"-remove");c=a(c,"-add");return O("setClass",b,d+" "+c,e)},addClass:function(b,c,d){return O("addClass",b,a(c,"-add"),d)},removeClass:function(b,c,d){return O("removeClass",b,a(c,"-remove"),d)}}}])}])})(window,window.angular);
11 years ago
//# sourceMappingURL=angular-animate.min.js.map