%PDF- %PDF-
| Direktori : /data/old/home/stash/atlassian/stash/3.7.1/atlassian-stash/static/util/ |
| Current File : //data/old/home/stash/atlassian/stash/3.7.1/atlassian-stash/static/util/feature-detect-min.js |
define("util/feature-detect",["lib/react/anim-event-name","lodash","exports"],function(O,Q,R){var M=["ms","moz","webkit","o"];function C(T){var S=T.charAt(0).toUpperCase()+T.substring(1);return[T].concat(Q.map(M,function(U){return U+S}))}var I=Q.once(function(){try{window.localStorage.setItem("___stash_test","true");window.localStorage.removeItem("___stash_test");return true}catch(S){console&&console.log("Note: localStorage not supported in this browser.");return false}});var B=Q.once(function(){var S=document.createElement("canvas");return(typeof S.getContext==="function")&&!!S.getContext("2d")});var F=Q.once(function(){return !!(window.File&&window.FileList&&window.FileReader)});var A=Q.once(function(){return !!(window.FormData)});var D=Q.once(function(){return"a1a".split(/(\d)/).length===3});var L=Q.once(function(){return Q.find(C("transform"),function(S){return document.body.style[S]!==undefined})});var J=Q.once(function(){return Q.find(C("transition"),function(S){return document.body.style[S]!==undefined})});var H=Q.once(function(){return"classList" in document.documentElement});var K=Q.once(function(){return Q.find(C("animationName"),function(S){return document.documentElement.style[S]!==undefined})});var E={"pointer-events":function(){var S=document.createElement("x");S.style.cssText="pointer-events:auto";return S.style.pointerEvents==="auto"},"no-cssanimations":function(){return !K()}};var P=Q.once(function(){return !!(navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia)});var N=Q.once(function(){return !!document.createElement("video").canPlayType});(function G(S){var T=document.documentElement;Q.forEach(S,function(V,U){V()&&(H()?T.classList.add(U):T.className+=" "+U)})})(E);R.localStorage=I;R.canvas=B;R.fileReader=F;R.formData=A;R.splitCapture=D;R.cssAnimation=K;R.cssTransform=L;R.cssTransition=J;R.getUserMedia=P;R.video=N;R.transitionEndEventName=Q.once(O.transitionEndEventName);R.animationEndEventName=Q.once(O.animationEndEventName)});