1((e,t)=>{"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("UniversalTilt",[],t):"object"==typeof exports?exports.UniversalTilt=t():e.UniversalTilt=t()})("object"!=typeof window?global.window=global:window,function(){return n=[function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(n=n(1))&&n.__esModule?n:{default:n},i=n.default;t.default=i,t.default=n.default,e.exports=t.default},function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;s=[{key:"init",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.elements,n=t.settings,i=t.callbacks,s=((e=e instanceof Node?[e]:e)instanceof NodeList&&(e=[].slice.call(e)),!0),t=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(s=(a=l.next()).done);s=!0){var r=a.value;"universalTilt"in r||(r.universalTilt=new c(r,n,i))}}catch(e){t=!0,o=e}finally{try{s||null==l.return||l.return()}finally{if(t)throw o}}}}],i((a=c).prototype,[{key:"isMobile",value:function(){return window.DeviceMotionEvent&&"ontouchstart"in document.documentElement}},{key:"addEventListeners",value:function(){navigator.userAgent.match(this.settings.exclude)||(this.isMobile()?window.addEventListener("devicemotion",this.onDeviceMove):("element"===this.settings.base?this.base=this.element:"window"===this.settings.base&&(this.base=window),this.base.addEventListener("mouseenter",this.onMouseEnter),this.base.addEventListener("mousemove",this.onMouseMove),this.base.addEventListener("mouseleave",this.onMouseLeave)))}},{key:"removeEventListeners",value:function(){window.removeEventListener("devicemotion",this.onDeviceMove),this.base.removeEventListener("mouseenter",this.onMouseEnter),this.base.removeEventListener("mousemove",this.onMouseMove),this.base.removeEventListener("mouseleave",this.onMouseLeave)}},{key:"destroy",value:function(){clearTimeout(this.timeout),null!==this.updateCall&&cancelAnimationFrame(this.updateCall),"function"==typeof this.callbacks.onDestroy&&this.callbacks.onDestroy(this.element),this.reset(),this.removeEventListeners(),this.element.universalTilt=null,delete this.element.universalTilt,this.element=null}},{key:"reset",value:function(){this.event={pageX:this.left+this.width/2,pageY:this.top+this.height/2},this.settings.reset&&(this.element.style.transform="perspective(".concat(this.settings.perspective,"px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)")),this.settings.shine&&!this.settings["shine-save"]&&Object.assign(this.shineElement.style,{transform:"rotate(180deg) translate3d(-50%, -50%, 0)",opacity:"0"})}},{key:"getValues",value:function(){this.isMobile()?(i=this.event.accelerationIncludingGravity.x/4,e=this.event.accelerationIncludingGravity.y/4,90===window.orientation?(t=(1-e)/2,e=(1+i)/2,i=t):-90===window.orientation?(t=(1+e)/2,e=(1-i)/2,i=t):0===window.orientation?(e=t=(1+e)/2,i=(1+i)/2):180===window.orientation&&(e=t=(1-e)/2,i=(1-i)/2)):"element"===this.settings.base?(i=(this.event.clientX-this.left)/this.width,e=(this.event.clientY-this.top)/this.height):"window"===this.settings.base&&(i=this.event.clientX/window.innerWidth,e=this.event.clientY/window.innerHeight),i=Math.min(Math.max(i,0),1),e=Math.min(Math.max(e,0),1);var e,t=(this.settings.max/2-i*this.settings.max).toFixed(2),n=(e*this.settings.max-this.settings.max/2).toFixed(2),i=Math.atan2(i-.5,.5-e)*(180/Math.PI);return{tiltX:this.reverse*t,tiltY:this.reverse*n,angle:i}}},{key:"updateElementPosition",value:function(){var e=this.element.getBoundingClientRect();this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.left=e.left,this.top=e.top}},{key:"update",value:function(){var e=this.getValues();this.element.style.transform="perspective(".concat(this.settings.perspective,"px)\n rotateX(").concat(this.settings.disabled&&"X"===this.settings.disabled.toUpperCase()?0:e.tiltY,"deg)\n rotateY(").concat(this.settings.disabled&&"Y"===this.settings.disabled.toUpperCase()?0:e.tiltX,"deg)\n scale3d(").concat(this.settings.scale,", ").concat(this.settings.scale,", ").concat(this.settings.scale,")"),this.settings.shine&&Object.assign(this.shineElement.style,{transform:"rotate(".concat(e.angle,"deg) translate3d(-50%, -50%, 0)"),opacity:"".concat(this.settings["shine-opacity"])}),this.element.dispatchEvent(new CustomEvent("tiltChange",{detail:e})),this.updateCall=null}},{key:"shine",value:function(){var e=document.createElement("div"),t=document.createElement("div");e.classList.add("shine"),t.classList.add("shine-inner"),e.appendChild(t),this.element.appendChild(e),this.shineWrapper=this.element.querySelector(".shine"),this.shineElement=this.element.querySelector(".shine-inner"),Object.assign(this.shineWrapper.style,{position:"absolute",top:"0",left:"0",height:"100%",width:"100%",overflow:"hidden"}
1),Object.assign(this.shineElement.style,{position:"absolute",top:"50%",left:"50%","pointer-events":"none","background-image":"linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%)",width:"".concat(2*this.element.offsetWidth,"px"),height:"".concat(2*this.element.offsetWidth,"px"),transform:"rotate(180deg) translate3d(-50%, -50%, 0)","transform-origin":"0% 0%",opacity:"0"})}},{key:"transitions",value:function(){var e=this;clearTimeout(this.timeout),this.element.style.transition="all ".concat(this.settings.speed,"ms ").concat(this.settings.easing),this.settings.shine&&(this.shineElement.style.transition="opacity ".concat(this.settings.speed,"ms ").concat(this.settings.easing)),this.timeout=setTimeout(function(){e.element.style.transition="",e.settings.shine&&(e.shineElement.style.transition="")},this.settings.speed)}},{key:"extendSettings",value:function(e){var t,n={base:"element",disabled:null,easing:"cubic-bezier(.03, .98, .52, .99)",exclude:null,max:35,perspective:1e3,reset:!0,reverse:!1,scale:1,shine:!1,"shine-opacity":0,"shine-save":!1,speed:300},i={};for(t in n)if(t in e)i[t]=e[t];else if(this.element.getAttribute("data-".concat(t))){var s=this.element.getAttribute("data-".concat(t));try{i[t]=JSON.parse(s)}catch(e){i[t]=s}}else i[t]=n[t];return i}}]),i(a,s);var s,a,l=c;function c(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},s=this;if(!(s instanceof c))throw new TypeError("Cannot call a class as a function");o(this,"onMouseEnter",function(){t.updateElementPosition(),t.transitions(),"function"==typeof t.callbacks.onMouseEnter&&t.callbacks.onMouseEnter(t.element)}),o(this,"onMouseMove",function(e){null!==t.updateCall&&cancelAnimationFrame(t.updateCall),t.event=e,t.updateElementPosition(),t.updateCall=requestAnimationFrame(function(){return t.update()}),"function"==typeof t.callbacks.onMouseMove&&t.callbacks.onMouseMove(t.element)}),o(this,"onMouseLeave",function(){t.transitions(),requestAnimationFrame(function(){return t.reset()}),"function"==typeof t.callbacks.onMouseLeave&&t.callbacks.onMouseLeave(t.element)}),o(this,"onDeviceMove",function(e){t.event=e,t.update(),t.updateElementPosition(),t.transitions(),"function"==typeof t.callbacks.onDeviceMove&&t.callbacks.onDeviceMove(t.element)}),this.element=e,this.callbacks=i,this.settings=this.extendSettings(n),"function"==typeof this.callbacks.onInit&&this.callbacks.onInit(this.element),this.reverse=this.settings.reverse?-1:1,this.settings.shine&&this.shine(),this.element.style.transform="perspective(".concat(this.settings.perspective,"px)"),this.addEventListeners()}t.default=l,"undefined"!=typeof document&&(window.UniversalTilt=l,(a=document.querySelectorAll("[data-tilt]")).length)&&l.init({elements:a}),window.jQuery&&(window.jQuery.fn.universalTilt=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l.init({elements:this,settings:e.settings||{},callbacks:e.callbacks||{}})})}],i={},s.m=n,s.c=i,s.d=function(e,t,n){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)s.d(n,i,function(e){return t[e]}.bind(null,i));return n},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=0);function s(e){var t;return(i[e]||(t=i[e]={i:e,l:!1,exports:{}},n[e].call(t.exports,t,t.exports,s),t.l=!0,t)).exports}var n,i});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.