PageSourceSearch

https://www.macupdate.com/_next/static/chunks/5959-11be6e55a58729542ad8.js

js macupdate.com collected 2026-09-24 08:45:53 UTC 10,140 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5959],{31974:function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n={update:function(){if("undefined"!==typeof window&&"function"===typeof window.addEventListener){var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}}),a=function(){};window.addEventListener("testPassiveEventSupport",a,e),window.removeEventListener("testPassiveEventSupport",a,e),n.hasSupport=t}}};n.update(),e.default=n},85959:function(t,e,n){var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),o=l(n(67294)),r=l(n(41e3)),u=l(n(45697)),s=l(n(31974));function l(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.state={ToggleScrollUp:""},n.Animation={StartPosition:0,CurrentAnimationTime:0,StartTime:null,AnimationFrame:null},n.HandleScroll=n.HandleScroll.bind(n),n.StopScrollingFrame=n.StopScrollingFrame.bind(n),n.ScrollingFrame=n.ScrollingFrame.bind(n),n.HandleClick=n.HandleClick.bind(n),n}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"componentDidMount",value:function(){this.HandleScroll(),window.addEventListener("scroll",this.HandleScroll),window.addEventListener("wheel",this.StopScrollingFrame,!!s.default.hasSupport&&{passive:!0}),window.addEventListener("touchstart",this.StopScrollingFrame,!!s.default.hasSupport&&{passive:!0})}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.HandleScroll),window.removeEventListener("wheel",this.StopScrollingFrame,!1),window.removeEventListener("touchstart",this.StopScrollingFrame,!1)}},{key:"HandleScroll",value:function(){var t=this.props,e=t.ShowAtPosition,n=t.TransitionClassName;window.pageYOffset>e?this.setState({ToggleScrollUp:n}):this.setState({ToggleScrollUp:""})}},{key:"HandleClick",value:function(){this.StopScrollingFrame(),this.Animation.StartPosition=window.pageYOffset,this.Animation.CurrentAnimationTime=0,this.Animation.StartTime=null,this.Animation.AnimationFrame=window.requestAnimationFrame(this.ScrollingFrame)}},{key:"ScrollingFrame",value:function(){var t=this.props,e=t.StopPosition,n=t.EasingType,a=t.AnimationDuration,i=Math.floor(Date.now());if(this.Animation.StartTime||(this.Animation.StartTime=i),this.Animation.CurrentAnimationTime=i-this.Animation.StartTime,window.pageYOffset<=e)this.StopScrollingFrame();else{var o=r.default[n](this.Animation.CurrentAnimationTime,this.Animation.StartPosition,e,a);o<=e&&(o=e),window.scrollTo(0,o),this.Animation.AnimationFrame=window.requestAnimationFrame(this.ScrollingFrame)}}},{key:"StopScrollingFrame",value:function(){window.cancelAnimationFrame(this.Animation.AnimationFrame)}},{key:"render",value:function(){var t=this,e={MainStyle:{backgroundColor:"rgba(50, 50, 50, 0.5)",height:50,position:"fixed",bottom:20,width:50,WebkitTransition:"all 0.5s ease-in-out",transition:"all 0.5s ease-in-out",transitionProperty:"opacity, right",cursor:"pointer",opacity:0,right:-50,zIndex:1e3},SvgStyle:{display:"inline-block",width:"100%",height:"100%",strokeWidth:0,stroke:"white",fill:"white"},ToggledStyle:{opacity:1,right:20}},n=this.props,i=n.children,r=n.style,u=n.ToggledStyle,s=n.ContainerClassName,l=this.state.ToggleScrollUp;if(i){var c=o.default.Children.map(i,(function(e){return o.default.cloneElement(e,{className:t.className})}));return o.default.createElement("aside",{role:"button","aria-label":"Scroll to top of page",tabIndex:l?0:-1,"data-testid":"react-scroll-up-button",style:a({},r,l&&u),className:s+" "+l,onClick:this.HandleClick,onKeyPress:this.HandleClick},c)}return o.default.createElement("aside",{role:"button","aria-label":"Scroll to top of page",tabIndex:l?0:-1,"data-testid":"react-scroll-up-button",className:s+" "+l,style:a({},e.MainStyle,r,l&&e.ToggledStyle,l&&u),onClick:this.HandleClick,onKeyPress:this.HandleClick},o.default.createElement("svg",{viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",xmlSpace:"preserve",style:e.SvgStyle},o.default.createElement("path",{transform:"scale(1.4) translate(1,-5)",d:"M19.196 23.429q0 0.232-0.179 0.411l-0.893 0.893q-0.179 0.179-0.411 0.179t-0.411-0.179l-7.018-7.018-7.018 7.018q-0.179 0.179-0.411 0.179t-0.411-0.179l-0.893-0.893q-0.179-0.179-0.179-0.411t0.179-0.411l8.321-8.321q0.179-0.179 0.411-0.179t0.411 0.179l8.321 8.321q0.179 0.179 0.179 0.411zM19.196 16.571q0 0.232-0.179 0.411l-0.893 0.893q-0.179 0.179-0.411 0.179t-0.411-0.179l-7.018-7.018-7.018 7.018q-0.179 0.179-0.411 0.179t-0.411-0.179l-0.893-0.893q-0.179-0.179-0.179-0.411t0.179-0.411l8.321-8.321q0.179-0.179 0.411-0.179t0.411 0.179l8.321 8.321q0.179 0.179 0.179 0.411z"})))}}]),e}(o.default.Component);e.ZP=c;c.defaultProps={ContainerClassName:"ScrollUpButton__Container",StopPosition:0,ShowAtPosition:150,EasingType:"easeOutCubic",AnimationDuration:500,TransitionClassName:"ScrollUpButton__Toggled",style:{},ToggledStyle:{},children:null},c.propTypes={children:u.default.oneOfType([u.default.arrayOf(u.default.node),u.default.node]),StopPosition:function(t,e,n){var a=t.ShowAtPosition;if(t[e]){var i=t[e];return"number"===typeof i?i>=a?new Error(e+" ("+i+") in "+n+" must be less then prop: ShowAtPosition ("+a+")"):null:new Error(e+" in "+n+" must be a number.")}return null},ShowAtPosition:u.default.number,EasingType:u.default.oneOf(["linear","easeInQuad","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInQuint","easeOutQuint","easeInOutQuint","easeInSine","easeOutSine","easeInOutSine","easeInExpo","easeOutExpo","easeInOutExpo","easeInCirc","easeOutCirc","easeInOutCirc","easeInElastic","easeOutElastic","easeInOutElastic","easeInBack","easeOutBack","easeInOutBack","easeInBounce","easeOutBounce","easeInOutBounce"]),AnimationDuration:u.default.number,style:u.default.object,ToggledStyle:u.default.object,ContainerClassName:u.default.string,TransitionClassName:u.default.string}},41e3:function(t){var e={linear:function(t,e,n,a){return(n-e)*t/a+e},easeInQuad:function(t,e,n,a){return(n-e)*(t/=a)*t+e},easeOutQuad:function(t,e,n,a){return-(n-e)*(t/=a)*(t-2)+e},easeInOutQuad:function(t,e,n,a){var i=n-e;return(t/=a/2)<1?i/2*t*t+e:-i/2*(--t*(t-2)-1)+e},easeInCubic:function(t,e,n,a){return(n-e)*(t/=a)*t*t+e},easeOutCubic:function(t,e,n,a){return(n-e)*((t=t/a-1)*t*t+1)+e},easeInOutCubic:function(t,e,n,a){var i=n-e;return(t/=a/2)<1?i/2*t*t*t+e:i/2*((t-=2)*t*t+2)+e},easeInQuart:function(t,e,n,a){return(n-e)*(t/=a)*t*t*t+e},easeOutQuart:function(t,e,n,a){return-(n-e)*((t=t/a-1)*t*t*t-1)+e},easeInOutQuart:function(t,e,n,a){var i=n-e;return(t/=a/2)<1?i/2*t*t*t*t+e:-i/2*((t-=2)*t*t*t-2)+e},easeInQuint:function(t,e,n,a){return(n-e)*(t/=a)*t*t*t*t+e},easeOutQuint:function(t,e,n,a){return(n-e)*((t=t/a-1)*t*t*t*t+1)+e},easeInOutQuint:function(t,e,n,a){var i=n-e;return(t/=a/2)<1?i/2*t*t*t*t*t+e:i/2*((t-=2)*t*t*t*t+2)+e},easeInSine:function(t,e,n,a){var i=n-e;return-i*Math.cos(t/a*(Math.PI/2))+i+e},easeOutSine:function(t,e,n,a){return(n-e)*Math.sin(t/a*(Math.PI/2))+e},easeInOutSine:function(t,e,n,a){return-(n-e)/2*(Math.cos(Math.PI*t/a)-1)+e},easeInExpo:function(t,e,n,a){return 0==t?e:(n-e)*Math.pow(2,10*(t/a-1))+e},easeOutExpo:function(t,e,n,a){var i=n-e;return t==a?e+i:i*(1-Math.pow(2,-10*t/a))+e},easeInOutExpo:function(t,e,n,a){var i=n-e;return 0===t?e:t===a?e+i:(t/=a/2)<1?i/2*Math.pow(2,10*(t-1))+e:i/2*(2-Math.pow(2,-10*--t))+e},easeInCirc:function(t,e,n,a){return-(n-e)*(Math.sqrt(1-(t/=a)*t)-1)+e},easeOutCirc:function(t,e,n,a){return(n-e)*Math.sqrt(1-(t=t/a-1)*t)+e},easeInOutCirc:function(t,e,n,a){var i=n-e;return(t/=a/2)<1?-i/2*(Math.sqrt(1-t*t)-1)+e:i/2*(Math.sqrt(1-(t-=2)*t)+1)+e},easeInElastic:function(t,e,n,a){var i,o,r,u=n-e;return r=1.70158,0===t?e:1===(t/=a)?e+u:((o=0)||(o=.3*a),(i=u)<Math.abs(u)?(i=u,r=o/4):r=o/(2*Math.PI)*Math.asin(u/i),-i*Math.pow(2,10*(t-=1))*Math.sin((t*a-r)*(2*Math.PI)/o)+e)},easeOutElastic:function(t,e,n,a){var i,o,r,u=n-e;return r=1.70158,0===t?e:1===(t/=a)?e+u:((o=0)||(o=.3*a),(i=u)<Math.abs(u)?(i=u,r=o/4):r=o/(2*Math.PI)*Math.asin(u/i),i*Math.pow(2,-10*t)*Math.sin((t*a-r)*(2*Math.PI)/o)+u+e)},easeInOutElastic:function(t,e,n,a){var i,o,r,u=n-e;return r=1.70158,0===t?e:2===(t/=a/2)?e+u:((o=0)||(o=a*(.3*1.5)),(i=u)<Math.abs(u)?(i=u,r=o/4):r=o/(2*Math.PI)*Math.asin(u/i),t<1?i*Math.pow(2,10*(t-=1))*Math.sin((t*a-r)*(2*Math.PI)/o)*-.5+e:i*Math.pow(2,-10*(t-=1))*Math.sin((t*a-r)*(2*Math.PI)/o)*.5+u+e)},easeInBack:function(t,e,n,a,i){return void 0===i&&(i=1.70158),(n-e)*(t/=a)*t*((i+1)*t-i)+e},easeOutBack:function(t,e,n,a,i){return void 0===i&&(i=1.70158),(n-e)*((t=t/a-1)*t*((i+1)*t+i)+1)+e},easeInOutBack:function(t,e,n,a,i){var o=n-e;return void 0===i&&(i=1.70158),(t/=a/2)<1?o/2*(t*t*((1+(i*=1.525))*t-i))+e:o/2*((t-=2)*t*((1+(i*=1.525))*t+i)+2)+e},easeInBounce:function(t,n,a,i){var o=a-n;return o-e.easeOutBounce(i-t,0,o,i)+n},easeOutBounce:function(t,e,n,a){var i=n-e;return(t/=a)<1/2.75?i*(7.5625*t*t)+e:t<2/2.75?i*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?i*(7.5625*(t-=2.25/2.75)*t+.9375)+e:i*(7.5625*(t-=2.625/2.75)*t+.984375)+e},easeInOutBounce:function(t,n,a,i){var o=a-n;return t<i/2?.5*e.easeInBounce(2*t,0,o,i)+n:.5*e.easeOutBounce(2*t-i,0,o,i)+.5*o+n}};t.exports=e}}]);

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.