// source --> https://afdu.fr/wp-content/plugins/to-top/public/js/to-top-public.js?ver=3.1 
(function($) {
    "use strict";
    $(function() {
        var container = $("#to_top_scrollup").css({
            'opacity': 0
        });
        var data = to_top_options;

        var mouse_over = false;
        var hideEventID = 0;

        var fnHide = function() {
            clearTimeout(hideEventID);
            if (container.is(":visible")) {
                container.stop().fadeTo(200, 0, function() {
                    container.hide();
                    mouse_over = false;
                });
            }
        };

        var fnHideEvent = function() {
            if (!mouse_over && data.enable_autohide == 1 ) {
                clearTimeout(hideEventID);
                hideEventID = setTimeout(function() {
                    fnHide();
                }, data.autohide_time * 1000);
            }
        };

        var scrollHandled = false;
        var fnScroll = function() {
            if (scrollHandled)
                return;

            scrollHandled = true;

            if ($(window).scrollTop() > data.scroll_offset) {
                container.stop().css("opacity", mouse_over ? 1 : parseFloat(data.icon_opacity/100)).show();

                    fnHideEvent();

            } else {
                fnHide();
            }

            scrollHandled = false;
        };

        if ("undefined" != typeof to_top_options.enable_hide_small_device && "1" == to_top_options.enable_hide_small_device) {
            if ($(window).width() > to_top_options.small_device_max_width) {
                $(window).on( "scroll", fnScroll);
                $(document).on( "scroll", fnScroll);
            }
        }else{
            $(window).on( "scroll", fnScroll);
            $(document).on( "scroll", fnScroll);
        }

        container.on( "hover", function() {
                clearTimeout(hideEventID);
                mouse_over = true;
                $(this).css("opacity", 1);
            }, function() {
                $(this).css("opacity", parseFloat(data.icon_opacity/100));
                mouse_over = false;
                fnHideEvent();
            })
            .on( "click", function() {
                $("html, body").animate({
                    scrollTop: 0
                }, 400);
                return false;
            });
    });
})(jQuery);
// source --> https://afdu.fr/wp-content/uploads/dynamic_avia/avia-head-scripts-4a33c1a84ddde976baef9068c3b72d91---69cf4c4f7fdbe.js 
;var aviaJS=aviaJS||{};(function(){'use strict';if(!aviaJS.aviaJSHelpers){class aviaJSHelpers{constructor(){this.wpHooks()};debounce(callback,wait,immediate){var i;return function(){var e=this,s=arguments,t=function(){i=null;if(!immediate){callback.apply(e,s)}},l=immediate&&!i;clearTimeout(i);i=setTimeout(t,wait);if(l){callback.apply(e,s)}}};wpHooks(){if(window['wp']&&wp.hooks){return};if(!window['wp']){window['wp']={hooks:{}}}
else{window['wp'].hooks={}};let obj=window['wp'].hooks;obj.applyFilters=this.wpHooks_applyFilters;obj.doAction=this.wpHooks_applyFilters;obj.hasFilter=this.wpHooks_hasFilters;obj.hasAction=this.wpHooks_hasFilters};wpHooks_applyFilters(handle,value){return value};wpHooks_hasFilters(handle,namespace){return!1}};aviaJS.aviaJSHelpers=new aviaJSHelpers()};if(!aviaJS.aviaPlugins){class aviaPlugins{plugins=[];defaultPlugin={classFactory:null,selector:''};constructor(){this.plugins=[]};register(classFactory,selector){if('function'!=typeof classFactory){return!1};let newPlugin=Object.assign({},this.defaultPlugin);if('string'!=typeof selector){selector='body'};newPlugin.classFactory=classFactory;newPlugin.selector=selector;this.plugins.push(newPlugin);this.check_bind()};check_bind(){if(document.readyState==='complete'){this.bind_plugins()}
else{document.addEventListener('readystatechange',this.bind_plugins.bind(this))}};bind_plugins(e){if(document.readyState!=='complete'){return};let plugins=this.plugins;this.plugins=[];for(let plugin of plugins){let elements=document.querySelectorAll(plugin.selector);for(let element of elements){plugin.classFactory(element)}}}};aviaJS.aviaPlugins=new aviaPlugins()}})();