PageSourceSearch

https://xn--cardeajimeno-ehb.es/themes,_toools_base,_js,_custom.js…==10.2.7.pagespeed.jc.8gg08C1NlD.js

js xn--cardeajimeno-ehb.es collected 2026-09-24 10:17:53 UTC 55,531 bytes, 12 lines download raw bytes

1var mod_pagespeed_sPjdqbQOzF = "/* ASAC Ocultar enlace del pide página para el formulario de contacto*/\nvar enlacesPie = document.querySelector('.sec__login');\nif(enlacesPie){\n	enlacesPie.style.backgroundColor='transparent';\n}\n\nvar enlaceFormularioContacto = document.querySelector('.sec__login a[href=\"/contacto\"]');\nif(enlaceFormularioContacto){\n	console.log(\"Encontrado\");\n	enlaceFormularioContacto.style.display=\"none\";\n}else{\n	console.log(\"No encontrado\");\n}\n\nvar formulario = document.getElementById('webform-submission-contacto-add-form');\n\nif(formulario){\n	var botonEnvio = formulario.querySelector('input[type=\"submit\"]');\n	if (botonEnvio){\n		botonEnvio.disabled = true;\n	}\n}\n\n\n\n/*-- -- */\n\n//Arreglo resultados de una busqueda\nif((location.pathname.split('/').slice(1)[0] == 'search') || (location.pathname.split('/').slice(2)[0] == 'search')){\n    var queryString = window.location.search;\n    var urlParams = new URLSearchParams(queryString);\n    var valorbuscado = urlParams.get('keys');\n    $(\"#block-tema-toools-breadcrumbs > div.container > nav > ol > li:nth-child(3)\").text(valorbuscado);\n    $(\"#content > section > div\").addClass(\"container\");\n    $(\"#content > section > div > div.container\").css({ \"margin-bottom\": \"3em\", \"margin-bottom\": \"5em\" });\n    $(\"#content > section > div > div.item-list > ol\").css(\"list-style-type\",\"none\");\n    $(\".region.region-content.container > *\").css({ \"padding-right\": \"15px\", \"padding-left\": \"15px\" });\n}\n$(\"#block-formulariodebusqueda\").addClass(\"container\");\n$(\"#edit-keys\").attr(\"placeholder\",\"¿En qué podemos ayudarte...?\");\n\n/*var pruebaa;\n\ndocument.addEventListener('scroll', pruebaa => {\n    window.mr.masonry.windowLoad();\n});\n$(\".masonry__filters\").click(function() {\n    document.removeEventListener('scroll', pruebaa);\n});*/\n\n/*\ndocument.addEventListener('click', (e) => {\n    element.removeEventListener(\"scroll\", e);\n    console.log(\"hhhhh\");\n});*/\n/*\n\nwindow.mr.masonry.windowLoad().delay( 8000 );\ndocument.addEventListener('scroll', (e) => {\n    window.mr.masonry.windowLoad().delay( 8000 );\n}, {once : true});\n\ndocument.addEventListener('scroll',listenergaleriahome);\nfunction listenergaleriahome() {\n    window.mr.masonry.windowLoad();\n    borrarlistener();\n}\nfunction borrarlistener() {\n    document.removeEventListener(\"scroll\", listenergaleriahome);\n}\n\n\n */\n/*\nvar recolocar=0;\n\n\n\ndocument.addEventListener('scroll', (e) => {\nif ((recolocar == 0) && ($(window).scrollTop()<1800)) {\n    document.querySelector(\"div.masonry__filters > ul > li:nth-child(2)\").click();\n    console.log(\"Primer click\");\n    setTimeout(\n        function()\n        {\n            document.querySelector(\"div.masonry__filters > ul > li.active\").click();\n            console.log(\"Segundo click\");\n        }, 10);\n\n    $('.masonry__filters').mouseover(function () {\n        recolocar = 1;\n        console.log(\"Pausa\");\n    });\n}\n});\nif ($(window).scrollTop()>1800){\n    document.querySelector(\"div.masonry__filters > ul > li.active\").click();\n}*/\n\n/* CAPTCHA REQUIRED */\nwindow.onload = function() {\n    var $recaptcha = document.querySelector('#g-recaptcha-response');\n\n    if($recaptcha) {\n        $recaptcha.setAttribute(\"required\", \"required\");\n    }\n};\n\nif (window.performance) {\n    //console.info(\"window.performance works fine on this browser\");\n}\n//console.info(performance.navigation.type);\n\n\n\n\n/* Arreglo Galerias */\nif ($(\"#bloque-galeria-imagenes\")[0]) {\n\n    let isChrome = !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime);\n    let isFirefox = typeof InstallTrigger !== 'undefined';\n    let isSafari = /constructor/i.test(window.HTMLElement) || (function (p) { return p.toString() === \"[object SafariRemoteNotification]\"; })(!window['safari'] || (typeof safari !== 'undefined' && window['safari'].pushNotification));\n\n    let isOpera = (!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0;\n    var isIE = /*@cc_on!@*/false || !!document.documentMode;\n    let isEdge = !isIE && !!window.StyleMedia;\n    let isEdgeChromium = isChrome && (navigator.userAgent.indexOf(\"Edg\") != -1);\n    let isBlink = (isChrome || isOpera) && !!window.CSS;\n/*\n    console.log(isChrome)\n    console.log(isFirefox)\n    console.log(isSafari)\n    console.log(isOpera)\n    console.log(isEdge)\n    console.log(isEdgeChromium)\n    console.log(isBlink)\n*/\n\n    if (false) {\n\n        document.addEventListener(\"scroll\", (e) => {\n            //console.log(e);\n            //window.mr.masonry.windowLoad();\n            /*\n            console.log(\"performance.navigation.type\")\n            console.log(performance.navigation.type)\n            console.log(performance.navigation.TYPE_RELOAD)\n             */\n            if (performance.navigation.type == performance.navigation.TYPE_RELOAD) {\n                document.querySelector(\"div.masonry__filters > ul > li.active\").click();\n            }\n            window.mr.masonry.updateLayout();\n            mr.forms.documentReady(mr.setContext('form.form--active'));\n        })\n        document.addEventListener(\"DOMContentLoaded\", ()=>{\n            let selectores_bloque_galeria = document.querySelectorAll(\"div.masonry__filters > ul > li\");\n            //document.querySelector(\"div.masonry__filters > ul > li.active\").click();\n            document.querySelector(\"div.masonry__filters > ul > li.active\").click();\n            let contador_evento_scroll = 0;
1\n            selectores_bloque_galeria.forEach((element) => {\n                element.onclick = (e) => {\n                    setTimeout(() => {\n                        //console.log(e);\n                        if (contador_evento_scroll != 0) {\n                            document.querySelector(\"div.masonry__filters > ul > li.active\").click();\n                        }\n                        document.querySelector(\"div.masonry__filters > ul > li.active\").click();\n                        contador_evento_scroll++;\n                        window.mr.masonry.updateLayout();\n                    }, \"3000\")\n                };\n            })\n        })\n    } else {\n\n\n        if (performance.navigation.type == performance.navigation.TYPE_RELOAD) {\n\n            //console.info(\"This page is reloaded\");\n            document.addEventListener('scroll', (e) => {\n                var element = document.querySelector('#bloque-galeria-imagenes');\n                var position = element.getBoundingClientRect();\n                if (position.top < window.innerHeight && position.bottom >= 0) {\n                    document.querySelector(\"div.masonry__filters > ul > li.active\").click();\n                }\n            });\n\n        } else {\n\n            $(\"<div style=\\\"height: 100%;position: fixed;width: 100%;background: white;z-index: 999999;\\\">\\n\" +\n                \"      </div>\").insertBefore(\"body\");\n            $(\"#bloque-galeria-imagenes\").insertBefore(\"#start\");\n            window.addEventListener(\"load\", () => {\n                window.setInterval(location.reload(true), 1000);\n            });\n\n        }\n\n\n    }\n}\n/* Fin Arreglo Galerias */\n\n\n\n\n/*\n$(window).on('unload', function() {\n    document.querySelector(\"div.masonry__filters > ul > li.active\").click();\n});*/\n\n// checking whether fully visible\n/*\nif(position.top >= 0 && position.bottom <= window.innerHeight) {\n    console.log('Element is fully visible in screen');\n}*/\n\n// checking for partial visibility\n\n\n/*\nif($(\"#block-botones-uno\")[0]){\n    $('#block-botones-uno').hover(function () {\n        document.querySelector(\"div.masonry__filters > ul > li.active\").click();\n        console.log(\"1\");\n    });\n}else{\n    if($(\"#block-botones-dos\")[0]){\n        $('#block-botones-dos').hover(function () {\n            document.querySelector(\"div.masonry__filters > ul > li.active\").click();\n            console.log(\"2\");\n        });\n    }else{\n        if($(\"#block-app-ayuntamiento\")[0]){\n            $('#block-app-ayuntamiento').hover(function () {\n                document.querySelector(\"div.masonry__filters > ul > li.active\").click();\n                console.log(\"3\");\n            });\n        }
1else{\n            if($(\"#block-mapageolocalizados\")[0]){\n                $('#block-mapageolocalizados').hover(function () {\n                    document.querySelector(\"div.masonry__filters > ul > li.active\").click();\n                    console.log(\"4\");\n                });\n            }\n        }\n    }\n}*/\n\n/*\n$('#block-botones-uno').mouseover(function () {\n    document.querySelector(\"div.masonry__filters > ul > li.active\").click();\n    console.log(\"1\");\n});\n$('#block-botones-dos').mouseover(function () {\n    document.querySelector(\"div.masonry__filters > ul > li.active\").click();\n    console.log(\"2\");\n});\n$('#block-app-ayuntamiento').mouseover(function () {\n    document.querySelector(\"div.masonry__filters > ul > li.active\").click();\n    console.log(\"3\");\n});\n$('#block-mapageolocalizados').mouseover(function () {\n    document.querySelector(\"div.masonry__filters > ul > li.active\").click();\n    console.log(\"4\");\n});*/\n\n\n\n/*\ndocument.getElementById('.masonry__filters > ul > li').onclick = function() {\n    $(this).click();\n};\n*/\n/*\nvar myInterval2 = window.setInterval(function(){\n    document.querySelector(\"div.masonry__filters > ul > li.active\").click();\n}, 500);\n$(\".masonry__filters\").click(function() {\n    console.log(\"sdasdasdasd\");\n    clearInterval(myInterval2);\n});*/\n\n(function ($) {\n\n\n    $('.sidebar-bloque-noticias,.sidebar-bloque-eventos,#block-sidebartooolsbanners').wrapAll('<div class=\"container\"></div>');\n\n    /*var pathArray = window.location.pathname.split('/');\n    if(pathArray[1]=='lugares-interes'){\n        window.location.replace(\"/lugares-de-interes\");\n    }*/\n    $( \"a\" ).each(function( index ) {\n        if($(this).attr(\"href\")==\"/lugares-interes\"){\n            $(this).attr(\"href\",\"/lugares-de-interes\");\n        }\n    });\n    /*Galería inicio*/\n    window.addEventListener(\"load\", () => {\n\n\n\n\n        if ( $(\"body\").hasClass(\"page-node-type-article\") || $(\"body\").hasClass(\"page-node-type-event-calendar\") ) {\n            $(\".sacar-fuera\").insertBefore(\"#main\");\n            $(\".sacar-fuera\").show();\n        } else {\n            if ( $(\"body\").hasClass(\"path-noticias\") || $(\"body\").hasClass(\"path-eventos\") ) {\n                $(\".sacar-fuera\").hide();\n                $(\".nodo-contenido-cont\").parent().hide();\n            }\n        }\n\n\n        $(\".masonry__filters ul\").children().first().attr(\"data-masonry-filter\", \"ultimas\");\n        $( \".sidebar-noticias\" ).show();\n        /*if($(\".sidebar-noticias\")[0]){\n            if($(window).width() > 991){\n                if($(\".sidebar-informacion-vertical\")[0]) {\n                    $(\".sidebar-noticias\").insertAfter(\".sidebar-informacion-vertical\");\n                }
1else{\n                    $(\".sidebar-noticias\").appendTo(\".bloque-sidebar\");\n                }\n                $( \".sidebar-noticias\" ).show();\n                if($(\".sidebar-informacion-instalaciones\")[0]){\n                    $(\".contenedor-geolocalizados\").addClass(\"col-md-9\");\n                }\n            }else{\n                $(\".contenedor-geolocalizados\").addClass(\"col-md-12\");\n            }\n\n        }*/\n        /*if($(\".sidebar-informacion-instalaciones\")[0] || $(\".sidebar-noticias\")[0]) {\n            if ($(window).width() > 991) {\n                $(\".contenedor-geolocalizados\").addClass(\"col-md-9\");\n            }else{\n                $(\".contenedor-geolocalizados\").addClass(\"col-md-12\");\n            }\n        }else{\n            $(\".contenedor-geolocalizados\").addClass(\"col-md-12\");\n        }*/\n\n\n\n    });\n    $('.masonry__filters ul').on('click', function (){\n        $('.fila-btn-gallery').show();\n    });\n\n\n    $(document).ready(function () {\n        $(\".masonry__filters\").one(\"click\", function(){\n            $('.masonry__item.col-lg-4.col-6').show();\n        });\n    });\n\n    //$(\".view-taxonomy-term\").addClass(\"container\");\n    $(\".visually-hidden\").css(\"width\",\"100%\");\n\n    if(location.pathname.split('/').slice(1)[0] == 'galeria-imagenes'){\n        var queryString = window.location.search;\n        var urlParams = new URLSearchParams(queryString);\n        var anuncioParam = urlParams.get('page');\n        if ((anuncioParam==null) || (Number(anuncioParam))==0){\n            $(\".pager__item--previous\").hide();\n            $(\".pager__item.is-active\").text(\"Página 1\");\n\n        }
1else{\n            $(\".pager__item.is-active\").text(\"Página \"+(Number(anuncioParam)+1));\n            $('.enlace_siguiente').attr('href', '?page='+(Number(anuncioParam)+1));\n            $('.enlace_anterior').attr('href', '?page='+(Number(anuncioParam)-1));\n        }\n    }\n\n    let localizacion = location.pathname.split('/').slice(1)[0];\n    if( localizacion == 'declaracion-de-accesibilidad' || localizacion == 'aviso-legal' || localizacion == 'politica-de-privacidad'  ) {\n        jQuery('.nodo-contenido').removeClass( \"container\" );\n    }\n    /*Galería fin*/\n\n    /* posicionamiento del footer*/\n    if ($(\"#page\").innerHeight() < $(window).height()){\n        $(\"#main-wrapper\").css(\"min-height\", $(window).height()-($(\"#header\").innerHeight()+$(\".featured-top\").innerHeight()+$(\".site-footer\").innerHeight()+29));\n    }\n\n    $(\"body\").prepend('<span id=\\\"start\\\"></span>');\n    $('<a class=\"back-to-top inner-link\" style=\"font-size: 2.3em;width: 1.9em;height: 1.9em;bottom: 1.5em;\" title=\"Volver a la parte superior de la página\" href=\"#start\" data-scroll-class=\"100vh:active\">↑</a>').insertAfter(\".site-footer\");\n\n    /*Cambios*/\n    $(window).on('resize', function(event){\n        if($(\".bar__module\").children().hasClass(\"type--uppercase\")){\n            var windowWidth = $(window).width();\n            if(windowWidth < 992){\n                $('#block-bloquemeteo .content').css(\"margin-right\",\"1rem\");\n            }
1else{\n                $('#block-bloquemeteo .content').css(\"margin-right\",\"0\");\n            }\n        }\n    });\n\n    if($(\".seccion-galeria.mb-5\")[0]){\n        if($(window).width() < 991){\n            $($(\".seccion-galeria.mb-5\").html()).insertAfter(\".region.region-content\");\n\n        }\n\n    }\n    if($(\"#sidebarInformacion\")[0]){\n        if($(window).width() < 991){\n            $($(\"#sidebarInformacion\").html()).insertAfter(\".region.region-content\");\n\n        }\n\n    }\n\n    if ($(\"#cambio-galeria-rutas\").val() == \"true\"){\n        if($(window).width() > 991) {\n            $(\".seccion-galeria\").prependTo($(\"#sidebar-first\"));\n            $(\".seccion-galeria\").removeClass(\"col-md-4 col-sm-12\");\n            $(\".seccion-galeria\").addClass(\"mb-5\");\n            $(\".seccion-body\").removeClass(\"col-md-8\");\n        }else{\n\n        }\n    }\n\n    //Ocultar Boton Home Menú\n    //document.querySelector(\"#block-menudrupal > div.content > div > nav > div > ul > li.active\").remove();\n    //Primer link migas de pan Inicio\n    /*if (document.querySelector(\"#block-enlacesdeayudaalanavegacion\") != null){\n        document.querySelector(\"#block-enlacesdeayudaalanavegacion > div.content > div > nav > ol > li.active > a\").innerHTML = \"Inicio\";\n    }*/\n\n    //----- Sidebar para informacion general en los pueblos------\n    let windowWidth = $(window).width();\n    $( window ).resize(function() {\n        controlSidebar();\n    });\n\n    controlSidebar();\n\n    function controlSidebar(){\n        let windowWidth = $(window).width();\n        if (windowWidth > 991) {\n            if (document.getElementById('sidebarsedeelectronica') || document.getElementById('sidebarovc') || document.getElementById('sidebarburgos2') || document.getElementById('sidebarburgos') || document.getElementById('sidebarappayunta') || document.getElementById('enlaceshistoriasede') || document.getElementById('custom-sidebar-block') || document.getElementById('custom-sidebar-noticias') || document.getElementById('block-bloquepatrocinadores') || document.getElementById('sidebarInformacion')) {\n                $(\"#main\").css({\"margin\":\"auto\"});\n                $(\"#main\").addClass(\"row container\");\n                $(\"#content\").addClass(\"col-lg-8 col-12\");\n                $(\"#sidebar-first\").addClass(\"col-lg-4 col-12\");\n                $(\"#sidebar-first\").css({\"margin-top\":\"70px\", \"padding-right\":\"0\"});\n                $(\"#sidebar-second\").addClass(\"col-4\");\n                if ($(\"#sidebar-second\")){\n                    $(\"#sidebar-second\").appendTo($(\"#sidebar-first\"));\n                    $(\"#sidebar-second\").removeClass(\"col-4\");\n                }\n            }\n        }\n    }\n\n\n    /*if(document.getElementById('custom-sidebar-block') || document.getElementById('custom-sidebar-noticias')){\n\n        //Contenido de destino\n        const contentRegion = document.querySelector('.nodo-contenido > .field--name-body');\n\n        //Fragmento de la informacion general\n        let infoGeneral = document.querySelector('.field__item');\n        infoGeneral.classList.add(\"col-12\");\n        infoGeneral.classList.add(\"col-md-9\");\n\n        const fragmentInfoGeneral = infoGeneral.cloneNode(true);\n\n        //Fragmento del sidebar\n        let sidebar = document.querySelector('.custom-sidebar-block');\n        const fragmentSidebar = sidebar.cloneNode(true);\n\n        //Fragmento del sidebar noticias\n        let sidebarNot = document.querySelector('.sidebar-noticias');\n        const fragmentSidebarNot = sidebarNot.cloneNode(true);\n\n        //infoGeneral.querySelector('.content').remove();\n        sidebar.remove();\n        sidebarNot.remove();\n\n        contentRegion.innerHTML = null;\n        document.querySelector(\"#content > section > div > article > div > div\").style.minWidth = \"100%\";\n\n        //Crear div con clase row\n        let contenedorInfoGeneralSidebar = document.createElement('div');\n        contenedorInfoGeneralSidebar.classList.add(\"row\");\n        contenedorInfoGeneralSidebar.id = 'custom-contenedor-con-sidebar';\n\n        //Añado fragmentos a contenedor\n        contenedorInfoGeneralSidebar.append(fragmentInfoGeneral);\n        fragmentSidebar.append(fragmentSidebarNot);\n        contenedorInfoGeneralSidebar.append(fragmentSidebar);\n\n        //Añado contenedor al destino\n        contentRegion.append(contenedorInfoGeneralSidebar);\n\n        //Elimino\n        console.log(infoGeneral.querySelector('.content'))\n\n\n    }*/\n\n    //----- Enlaces esternos menu ------\n    document.querySelectorAll(\"#block-menudrupal > div.content > div > nav > div > ul > * > div > div > div > div > ul > * > a\")\n        .forEach( e => {\n            e.text = e.text.replace(\"\\n\" ,\"\").trim();\n            if ( ( e.text == \"Transparencia\" || e.text == \"Perfil de Contratante\" || e.text == \"Tributos\" || e.text == \"Tablón de anuncios\" || e.text == \"Trámites on-line\" ) && ( e.href.includes(\"//\") ) ) {\n                e.setAttribute(\"target\", \"_blank\")\n            }\n        });\n\n    /*Imágenes en columnas de geolocalizados*/\n    $(\"#content > section > div > div.container > div > section.body__geo.seccion-body > div > p\").each(function( index ) {\n        if($(this).find(\"img\").length > 0){\n            $(this).css(\"width\",\"fit-content\");\n        }\n    });\n\n    /*$(\".clearfix.text-formatted.field.field--name-body.field--type-text-with-summary.field--label-hidden.field__item\").children().each(function () {\n        console.log($(this));\n    });*/\n\n    /*if($(\".clearfix.text-formatted.field.field--name-body.field--type-text-with-summary.field--label-hidden.field__item\")){\n        var imagenes = $(\".clearfix.text-formatted.field.field--name-body.field--type-text-with-summary.field--label-hidden.field__item\").find('img');\n        $.each( imagenes, function( key ) {\n            console.log( imagenes[key].outerHTML );\n        });\n        //console.log($(\".clearfix.text-formatted.field.field--name-body.field--type-text-with-summary.field--label-hidden.field__item\").find('img').outerHTML);\n        //$(\".clearfix.text-formatted.field.field--name-body.field--type-text-with-summary.field--label-hidden.field__item\").find('img').html();\n    }*/\n    if($(\"body[informacion-general]\").length > 0 || $(\"body[historia]\").length > 0){\n        $(\"img\").removeAttr(\"width\");\n        var imagenes = $(\".clearfix.text-formatted.field.field--name-body.field--type-text-with-summary.field--label-hidden.field__item\").find('img');\n        $.each( imagenes, function( key ) {\n            if (imagenes[key].hasClass( \"noampliar\" )){\n            }
1else{\n                $(\".clearfix.text-formatted.field.field--name-body.field--type-text-with-summary.field--label-hidden.field__item\").html(function(index,html){\n                    return html.replace(imagenes[key].outerHTML,'<div class=\"slide\" style=\"width: 100%; object-fit: cover;display: contents;\"><a style=\"padding: 1em 0 1em 0;max-width: 98%\" class=\"imgapliar geo-img-lightbox\"href=\"'+imagenes[key].currentSrc+'\" data-lightbox=\"geo\">'+imagenes[key].outerHTML+'</a></div>');\n                });\n            }\n\n        });\n    }\n    if($(\".contenedor-geolocalizados\")){\n        $(\"img\").removeAttr(\"width\");\n        window.addEventListener(\"load\", () => {\n            $(\"#content > section > div > div.container > div > section > div > p\").each(function( index ) {\n                if($(this).text()==\"\" || $(this).text()==null){\n                    $(this).addClass(\"parrafosvacios\");\n                }\n            });\n        });\n        var imagenes = $(\".contenedor-geolocalizados\").find('img');\n        $.each( imagenes, function( key ) {\n            //console.log( imagenes[key].parentElement.localName );\n            //console.log(imagenes);\n\n            var padre=imagenes[key].parentElement.localName;\n            if(imagenes[key].parentElement.localName==\"a\"){\n\n            }
1else{\n                $(\".contenedor-geolocalizados\").html(function(index,html){\n                    return html.replace(imagenes[key].outerHTML,'<div class=\"slide\" style=\"width: 100%; object-fit: cover;display: contents;\"><a style=\"padding: 1em 0 1em 0;\" class=\"imgapliar geo-img-lightbox\"href=\"'+imagenes[key].currentSrc+'\" data-lightbox=\"geo\">'+imagenes[key].outerHTML+'</a></div>');\n                });\n            }\n        });\n    }\n\n    /*\n    $(\".clearfix.text-formatted.field.field--name-body.field--type-text-with-summary.field--label-hidden.field__item\").find('img').each( obj, function( key, value ) {\n        console.log(\"holaa\");\n    });*/\n\n\n\n\n})(jQuery);\n\n";
2var mod_pagespeed_o9XfE6DZpq = "(function ($) {\r\n    window.addEventListener(\"load\", () => {\r\n        $(\".flickity-prev-next-button.previous\").html(\"<span>&#x2b9c;</span>\")\r\n        $(\".flickity-prev-next-button.next\").html(\"<span>&#x2b9e;</span>\")\r\n        $(\".slides.flickity-enabled\").attr(\"tabindex\", \"-1\");\r\n        $(\".slides.flickity-enabled\").attr(\"role\", \"presentation\");\r\n        $(\".flickity-slider li\").attr(\"role\", \"presentation\");\r\n        $(\".lb-image\").attr(\"alt\",\"Imagen ampliada\");\r\n        $(\"img\").each(function(){\r\n            if(($(this).attr(\"alt\")==null) || ($(this).attr(\"alt\")==\"\") ){\r\n                numeroaleatorio=(Math.floor(Math.random() * 1000) + 1);\r\n                $(this).attr(\"alt\",\"Diputación de Burgos \"+numeroaleatorio);\r\n            }\r\n        });\r\n        $(\"img\").each(function(){\r\n            if(($(this).attr(\"alt\").length>140) ){\r\n                $(this).attr(\"alt\",$(this).attr(\"alt\").substring(0,140)+\"...\");\r\n            }\r\n        });\r\n        $(\".tabs-content\").each(function(){\r\n            if($(this).is(':parent')){\r\n            }else{\r\n                $(this).remove();\r\n            }\r\n        });\r\n        /*$(\"br\").each(function(){\r\n            $(this).remove();\r\n        });*/\r\n        if ( $('#myFav > *').length > 0 ) {\r\n            // do something\r\n        }\r\n\r\n\r\n\r\n    });\r\n    $(\".navbar-we-mega-menu\").attr(\"role\",\"toolbar\");\r\n    $(\".navbar-we-mega-menu\").attr(\"aria-label\",\"Menú de navegación\");\r\n\r\n    $(\".nodo-contenido-container\").attr(\"aria-label\",\"Contenido principal\");\r\n\r\n    $( \"a.we-mega-menu-li\" ).each(function( index ) {\r\n        if (($( this ).text() == \"\\n\" +\r\n            \"      Ayuntamiento    \") || ($( this ).text() == \"\\n\" +\r\n            \"      Sede Electrónica    \") || ($( this ).text() == \"\\n\" +\r\n            \"      Turismo    \") || ($( this ).text() == \"\\n\" +\r\n            \"      Plenos    \")){\r\n            $( this ).attr(\"href\",\"#\");\r\n        }\r\n    });\r\n    $(\"#el__tiempo\").css(\"font-size\",\"0.8em\");\r\n\r\n\r\n    $( \"i\" ).each(function() {\r\n        $( this ).attr( \"role\",\"img\" );\r\n    });\r\n\r\n\r\n})(jQuery);\r\n";
3var mod_pagespeed_ZJcXXNbOhr = "(function($){$('.sidebar-bloque-noticias,.sidebar-bloque-eventos,#block-sidebartooolsbanners').wrapAll('<div class=\"container\"></div>');window.addEventListener(\"load\",()=>{$(\".masonry__filters ul\").children().first().attr(\"data-masonry-filter\",\"ultimas\");});$('.masonry__filters ul').on('click',function(){$('.fila-btn-gallery').show();});$(document).ready(function(){$(\".masonry__filters\").one(\"click\",function(){$('.masonry__item.col-lg-4.col-6').show();});});$(\".view-taxonomy-term\").addClass(\"container\");$(\".visually-hidden\").css(\"width\",\"100%\");if(location.pathname.split('/').slice(1)[0]=='galeria-imagenes'){var queryString=window.location.search;var urlParams=new URLSearchParams(queryString);var anuncioParam=urlParams.get('page');
3if((anuncioParam==null)||(Number(anuncioParam))==0){$(\".pager__item--previous\").hide();$(\".pager__item.is-active\").text(\"Página 1\");}else{$(\".pager__item.is-active\").text(\"Página \"+(Number(anuncioParam)+1));$('.enlace_siguiente').attr('href','?page='+(Number(anuncioParam)+1));$('.enlace_anterior').attr('href','?page='+(Number(anuncioParam)-1));}}})(jQuery);";
4var mod_pagespeed_UcWPoNaRUe = "(function(Drupal){'use strict';Drupal.behaviors.cookiesGa={consentGiven:function(){var scriptIds=['cookies_ga_ga','cookies_ga_ga_debug','cookies_ga_google_analytics_tracking_script','cookies_ga_google_analytics_tracking_file',];for(var scriptId in scriptIds){var script=document.getElementById(scriptIds[scriptId]);if(script){var content=script.innerHTML;var newScript=document.createElement('script');var attributes=Array.from(script.attributes);for(var attr in attributes){var name=attributes[attr].nodeName;if(name!=='type'&&name!=='id'){newScript.setAttribute(name,attributes[attr].nodeValue);}}newScript.innerHTML=content;script.parentNode.replaceChild(newScript,script);}}},attach:function(context){var self=this;document.addEventListener('cookiesjsrUserConsent',function(event){var service=(typeof event.detail.services==='object')?event.detail.services:{};if(typeof service.analytics!=='undefined'&&service.analytics){self.consentGiven(context);}});}};})(Drupal);";
5var mod_pagespeed_8T1wrAdvWH = "Drupal.debounce=function(func,wait,immediate){let timeout;let result;return function(...args){const context=this;const later=function(){timeout=null;if(!immediate){result=func.apply(context,args);}};const callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,wait);if(callNow){result=func.apply(context,args);}return result;};};";
6var mod_pagespeed_TzXL5XCQ6M = "/**\n * @file\n * Adds an HTML element and method to trigger audio UAs to read system messages.\n *\n * Use {@link Drupal.announce} to indicate to screen reader users that an\n * element on the page has changed state. For instance, if clicking a link\n * loads 10 more items into a list, one might announce the change like this.\n *\n * @example\n * $('#search-list')\n *   .on('itemInsert', function (event, data) {\n *     // Insert the new items.\n *     $(data.container.el).append(data.items.el);\n *     // Announce the change to the page contents.\n *     Drupal.announce(Drupal.t('@count items added to @container',\n *       {'@count': data.items.length, '@container': data.container.title}\n *     ));\n *   });\n */\n\n(function (Drupal, debounce) {\n  let liveElement;\n  const announcements = [];\n\n  /**\n   * Builds a div element with the aria-live attribute and add it to the DOM.\n   *\n   * @type {Drupal~behavior}\n   *\n   * @prop {Drupal~behaviorAttach} attach\n   *   Attaches the behavior for drupalAnnounce.\n   */\n  Drupal.behaviors.drupalAnnounce = {\n    attach(context) {\n      // Create only one aria-live element.\n      if (!liveElement) {\n        liveElement = document.createElement('div');\n        liveElement.id = 'drupal-live-announce';\n        liveElement.className = 'visually-hidden';\n        liveElement.setAttribute('aria-live', 'polite');\n        liveElement.setAttribute('aria-busy', 'false');\n        document.body.appendChild(liveElement);\n      }\n    },\n  };\n\n  /**\n   * Concatenates announcements to a single string; appends to the live region.\n   */\n  function announce() {\n    const text = [];\n    let priority = 'polite';\n    let announcement;\n\n    // Create an array of announcement strings to be joined and appended to the\n    // aria live region.\n    const il = announcements.length;\n    for (let i = 0; i < il; i++) {\n      announcement = announcements.pop();\n      text.unshift(announcement.text);\n      // If any of the announcements has a priority of assertive then the group\n      // of joined announcements will have this priority.\n      if (announcement.priority === 'assertive') {\n        priority = 'assertive';\n      }\n    }\n\n    if (text.length) {\n      // Clear the liveElement so that repeated strings will be read.\n      liveElement.innerHTML = '';\n      // Set the busy state to true until the node changes are complete.\n      liveElement.setAttribute('aria-busy', 'true');\n      // Set the priority to assertive, or default to polite.\n      liveElement.setAttribute('aria-live', priority);\n      // Print the text to the live region. Text should be run through\n      // Drupal.t() before being passed to Drupal.announce().\n      liveElement.innerHTML = text.join('\\n');\n      // The live text area is updated. Allow the AT to announce the text.\n      liveElement.setAttribute('aria-busy', 'false');\n    }\n  }\n\n  /**\n   * Triggers audio UAs to read the supplied text.\n   *\n   * The aria-live region will only read the text that currently populates its\n   * text node. Replacing text quickly in rapid calls to announce results in\n   * only the text from the most recent call to {@link Drupal.announce} being\n   * read. By wrapping the call to announce in a debounce function, we allow for\n   * time for multiple calls to {@link Drupal.announce}
6 to queue up their\n   * messages. These messages are then joined and append to the aria-live region\n   * as one text node.\n   *\n   * @param {string} text\n   *   A string to be read by the UA.\n   * @param {string} [priority='polite']\n   *   A string to indicate the priority of the message. Can be either\n   *   'polite' or 'assertive'.\n   *\n   * @return {function}\n   *   The return of the call to debounce.\n   *\n   * @see http://www.w3.org/WAI/PF/aria-practices/#liveprops\n   */\n  Drupal.announce = function (text, priority) {\n    // Save the text and priority into a closure variable. Multiple simultaneous\n    // announcements will be concatenated and read in sequence.\n    announcements.push({\n      text,\n      priority,\n    });\n    // Immediately invoke the function that debounce returns. 200 ms is right at\n    // the cusp where humans notice a pause, so we will wait\n    // at most this much time before the set of queued announcements is read.\n    return debounce(announce, 200)();\n  };\n})(Drupal, Drupal.debounce);\n";
7var mod_pagespeed_DbV$$szlWX = "/**\n * @file\n * Controls the visibility of desktop navigation.\n *\n * Shows and hides the desktop navigation based on scroll position and controls\n * the functionality of the button that shows/hides the navigation.\n */\n\n/* eslint-disable no-inner-declarations */\n((Drupal) => {\n  /**\n   * Olivero helper functions.\n   *\n   * @namespace\n   */\n  Drupal.olivero = {};\n\n  /**\n   * Checks if the mobile navigation button is visible.\n   *\n   * @return {boolean}\n   *   True if navButtons is hidden, false if not.\n   */\n  function isDesktopNav() {\n    const navButtons = document.querySelector(\n      '[data-drupal-selector=\"mobile-buttons\"]',\n    );\n    return navButtons\n      ? window.getComputedStyle(navButtons).getPropertyValue('display') ===\n          'none'\n      : false;\n  }\n\n  Drupal.olivero.isDesktopNav = isDesktopNav;\n\n  const stickyHeaderToggleButton = document.querySelector(\n    '[data-drupal-selector=\"sticky-header-toggle\"]',\n  );\n  const siteHeaderFixable = document.querySelector(\n    '[data-drupal-selector=\"site-header-fixable\"]',\n  );\n\n  /**\n   * Checks if the sticky header is enabled.\n   *\n   * @return {boolean}\n   *   True if sticky header is enabled, false if not.\n   */\n  function stickyHeaderIsEnabled() {\n    return stickyHeaderToggleButton.getAttribute('aria-checked') === 'true';\n  }\n\n  /**\n   * Save the current sticky header expanded state to localStorage, and set\n   * it to expire after two weeks.\n   *\n   * @param {boolean} expandedState\n   *   Current state of the sticky header button.\n   */\n  function setStickyHeaderStorage(expandedState) {\n    const now = new Date();\n\n    const item = {\n      value: expandedState,\n      expiry: now.getTime() + 20160000, // 2 weeks from now.\n    };\n    localStorage.setItem(\n      'Drupal.olivero.stickyHeaderState',\n      JSON.stringify(item),\n    );\n  }\n\n  /**\n   * Toggle the state of the sticky header between always pinned and\n   * only pinned when scrolled to the top of the viewport.\n   *\n   * @param {boolean} pinnedState\n   *   State to change the sticky header to.\n   */\n  function toggleStickyHeaderState(pinnedState) {\n    if (isDesktopNav()) {\n      siteHeaderFixable.classList.toggle('is-expanded', pinnedState);\n      stickyHeaderToggleButton.setAttribute('aria-checked', pinnedState);\n      setStickyHeaderStorage(pinnedState);\n    }\n  }\n\n  /**\n   * Return the sticky header's stored state from localStorage.\n   *\n   * @return {boolean}\n   *   Stored state of the sticky header.\n   */\n  function getStickyHeaderStorage() {\n    const stickyHeaderState = localStorage.getItem(\n      'Drupal.olivero.stickyHeaderState',\n    );\n\n    if (!stickyHeaderState) return false;\n\n    const item = JSON.parse(stickyHeaderState);\n    const now = new Date();\n\n    // Compare the expiry time of the item with the current time.\n    if (now.getTime() > item.expiry) {\n      // If the item is expired, delete the item from storage and return null.\n      localStorage.removeItem('Drupal.olivero.stickyHeaderState');\n      return false;\n    }\n    return item.value;\n  }\n\n  // Only enable scroll interactivity if the browser supports Intersection\n  // Observer.\n  // @see https://github.com/w3c/IntersectionObserver/blob/master/polyfill/intersection-observer.js#L19-L21\n  if (\n    'IntersectionObserver' in window &&\n    'IntersectionObserverEntry' in window &&\n    'intersectionRatio' in window.IntersectionObserverEntry.prototype\n  ) {\n    const fixableElements = document.querySelectorAll(\n      '[data-drupal-selector=\"site-header-fixable\"], [data-drupal-selector=\"social-bar-inner\"]',\n    );\n\n    function toggleDesktopNavVisibility(entries) {\n      if (!isDesktopNav()) return;
7\n\n      entries.forEach((entry) => {\n        // Firefox doesn't seem to support entry.isIntersecting properly,\n        // so we check the intersectionRatio.\n        fixableElements.forEach((el) =>\n          el.classList.toggle('is-fixed', entry.intersectionRatio < 1),\n        );\n      });\n    }\n\n    /**\n     * Gets the root margin by checking for various toolbar classes.\n     *\n     * @return {string}\n     *   Root margin for the Intersection Observer options object.\n     */\n    function getRootMargin() {\n      let rootMarginTop = 72;\n      const { body } = document;\n\n      if (body.classList.contains('toolbar-fixed')) {\n        rootMarginTop -= 39;\n      }\n\n      if (\n        body.classList.contains('toolbar-horizontal') &&\n        body.classList.contains('toolbar-tray-open')\n      ) {\n        rootMarginTop -= 40;\n      }\n\n      return `${rootMarginTop}px 0px 0px 0px`;\n    }\n\n    /**\n     * Monitor the navigation position.\n     */\n    function monitorNavPosition() {\n      const primaryNav = document.querySelector(\n        '[data-drupal-selector=\"site-header\"]',\n      );\n      const options = {\n        rootMargin: getRootMargin(),\n        threshold: [0.999, 1],\n      };\n\n      const observer = new IntersectionObserver(\n        toggleDesktopNavVisibility,\n        options,\n      );\n\n      if (primaryNav) {\n        observer.observe(primaryNav);\n      }\n    }\n\n    if (stickyHeaderToggleButton) {\n      stickyHeaderToggleButton.addEventListener('click', () => {\n        toggleStickyHeaderState(!stickyHeaderIsEnabled());\n      });\n    }\n\n    // If header is pinned open and a header element gains focus, scroll to the\n    // top of the page to ensure that the header elements can be seen.\n    const siteHeaderInner = document.querySelector(\n      '[data-drupal-selector=\"site-header-inner\"]',\n    );\n    if (siteHeaderInner) {\n      siteHeaderInner.addEventListener('focusin', () => {\n        if (isDesktopNav() && !stickyHeaderIsEnabled()) {\n          const header = document.querySelector(\n            '[data-drupal-selector=\"site-header\"]',\n          );\n          const headerNav = header.querySelector(\n            '[data-drupal-selector=\"header-nav\"]',\n          );\n          const headerMargin = header.clientHeight - headerNav.clientHeight;\n          if (window.scrollY > headerMargin) {\n            window.scrollTo(0, headerMargin);\n          }\n        }\n      });\n    }\n\n    monitorNavPosition();\n    setStickyHeaderStorage(getStickyHeaderStorage());\n    toggleStickyHeaderState(getStickyHeaderStorage());\n  }\n})(Drupal);\n";
8var mod_pagespeed_nJFV2jbL2p = "((Drupal)=>{Drupal.theme.checkbox=()=>'<input type=\"checkbox\" class=\"form-checkbox form-boolean form-boolean--type-checkbox\"/>';})(Drupal);";
9var mod_pagespeed_VHPKOaQ3pq = "/**\n * @file\n * Customization of messages.\n */\n\n((Drupal, once) => {\n  /**\n   * Adds a close button to the message.\n   *\n   * @param {object} message\n   *   The message object.\n   */\n  const closeMessage = (message) => {\n    const messageContainer = message.querySelector(\n      '[data-drupal-selector=\"messages-container\"]',\n    );\n    if (!messageContainer.querySelector('.messages__button')) {\n      const closeBtnWrapper = document.createElement('div');\n      closeBtnWrapper.setAttribute('class', 'messages__button');\n\n      const closeBtn = document.createElement('button');\n      closeBtn.setAttribute('type', 'button');\n      closeBtn.setAttribute('class', 'messages__close');\n\n      const closeBtnText = document.createElement('span');\n      closeBtnText.setAttribute('class', 'visually-hidden');\n      closeBtnText.innerText = Drupal.t('Close message');\n\n      messageContainer.appendChild(closeBtnWrapper);\n      closeBtnWrapper.appendChild(closeBtn);\n      closeBtn.appendChild(closeBtnText);\n\n      closeBtn.addEventListener('click', () => {\n        message.classList.add('hidden');\n      });\n    }\n  };\n\n  /**\n   * Get messages from context.\n   *\n   * @type {Drupal~behavior}\n   *\n   * @prop {Drupal~behaviorAttach} attach\n   *   Attaches the close button behavior for messages.\n   */\n  Drupal.behaviors.messages = {\n    attach(context) {\n      once('messages', '[data-drupal-selector=\"messages\"]', context).forEach(\n        closeMessage,\n      );\n    },\n  };\n\n  Drupal.olivero.closeMessage = closeMessage;\n})(Drupal, once);\n";
10var mod_pagespeed_dV$H7D2Vp0 = "/**\n * @file\n * Message API.\n */\n((Drupal) => {\n  /**\n   * @typedef {class} Drupal.Message~messageDefinition\n   */\n\n  /**\n   * Constructs a new instance of the Drupal.Message class.\n   *\n   * This provides a uniform interface for adding and removing messages to a\n   * specific location on the page.\n   *\n   * @param {HTMLElement} messageWrapper\n   *   The zone where to add messages. If no element is provided an attempt is\n   *   made to determine a default location.\n   *\n   * @return {Drupal.Message~messageDefinition}\n   *   Class to add and remove messages.\n   */\n  Drupal.Message = class {\n    constructor(messageWrapper = null) {\n      if (!messageWrapper) {\n        this.messageWrapper = Drupal.Message.defaultWrapper();\n      } else {\n        this.messageWrapper = messageWrapper;\n      }\n    }\n\n    /**\n     * Attempt to determine the default location for\n     * inserting JavaScript messages or create one if needed.\n     *\n     * @return {HTMLElement}\n     *   The default destination for JavaScript messages.\n     */\n    static defaultWrapper() {\n      let wrapper = document.querySelector('[data-drupal-messages]');\n      if (!wrapper) {\n        wrapper = document.querySelector('[data-drupal-messages-fallback]');\n        wrapper.removeAttribute('data-drupal-messages-fallback');\n        wrapper.setAttribute('data-drupal-messages', '');\n        wrapper.classList.remove('hidden');\n      }\n      return wrapper.innerHTML === ''\n        ? Drupal.Message.messageInternalWrapper(wrapper)\n        : wrapper.firstElementChild;\n    }
10\n\n    /**\n     * Provide an object containing the available message types.\n     *\n     * @return {Object}\n     *   An object containing message type strings.\n     */\n    static getMessageTypeLabels() {\n      return {\n        status: Drupal.t('Status message'),\n        error: Drupal.t('Error message'),\n        warning: Drupal.t('Warning message'),\n      };\n    }\n\n    /**\n     * Sequentially adds a message to the message area.\n     *\n     * @name Drupal.Message~messageDefinition.add\n     *\n     * @param {string} message\n     *   The message to display\n     * @param {object} [options]\n     *   The context of the message.\n     * @param {string} [options.id]\n     *   The message ID, it can be a simple value: `'file_validation_error'`\n     *   or several values separated by a space: `'my_module form_validation'`\n     *   which can be used as an explicit selector for a message.\n     * @param {string} [options.type=status]\n     *   Message type, can be either 'status', 'error' or 'warning'.\n     * @param {string} [options.announce]\n     *   Screen-reader version of the message if necessary. To prevent a message\n     *   being sent to Drupal.announce() this should be an empty string.\n     * @param {string} [options.priority]\n     *   Priority of the message for Drupal.announce().\n     *\n     * @return {string}\n     *   ID of message.\n     */\n    add(message, options = {}) {\n      if (!options.hasOwnProperty('type')) {\n        options.type = 'status';\n      }\n\n      if (typeof message !== 'string') {\n        throw new Error('Message must be a string.');\n      }\n\n      // Send message to screen reader.\n      Drupal.Message.announce(message, options);\n      /**\n       * Use the provided index for the message or generate a pseudo-random key\n       * to allow message deletion.\n       */\n      options.id = options.id\n        ? String(options.id)\n        : `${options.type}-${Math.random().toFixed(15).replace('0.', '')}`;\n\n      // Throw an error if an unexpected message type is used.\n      if (!Drupal.Message.getMessageTypeLabels().hasOwnProperty(options.type)) {\n        const { type } = options;\n        throw new Error(\n          `The message type, ${type}, is not present in Drupal.Message.getMessageTypeLabels().`,\n        );\n      }\n\n      this.messageWrapper.appendChild(\n        Drupal.theme('message', { text: message }, options),\n      );\n\n      return options.id;\n    }\n\n    /**\n     * Select a message based on id.\n     *\n     * @name Drupal.Message~messageDefinition.select\n     *\n     * @param {string} id\n     *   The message id to delete from the area.\n     *\n     * @return {Element}\n     *   Element found.\n     */\n    select(id) {\n      return this.messageWrapper.querySelector(\n        `[data-drupal-message-id^=\"${id}\"]`,\n      );\n    }\n\n    /**\n     * Removes messages from the message area.\n     *\n     * @name Drupal.Message~messageDefinition.remove\n     *\n     * @param {string} id\n     *   Index of the message to remove, as returned by\n     *   {@link Drupal.Message~messageDefinition.add}.\n     *\n     * @return {number}\n     *   Number of removed messages.\n     */\n    remove(id) {\n      return this.messageWrapper.removeChild(this.select(id));\n    }\n\n    /**\n     * Removes all messages from the message area.\n     *\n     * @name Drupal.Message~messageDefinition.clear\n     */\n    clear() {\n      Array.prototype.forEach.call(\n        this.messageWrapper.querySelectorAll('[data-drupal-message-id]'),\n        (message) => {\n          this.messageWrapper.removeChild(message);\n        },\n      );\n    }\n\n    /**\n     * Helper to call Drupal.announce() with the right parameters.\n     *\n     * @param {string} message\n     *   Displayed message.\n     * @param {object} options\n     *   Additional data.\n     * @param {string} [options.announce]\n     *   Screen-reader version of the message if necessary. To prevent a message\n     *   being sent to Drupal.announce() this should be `''`.\n     * @param {string} [options.priority]\n     *   Priority of the message for Drupal.announce().\n     * @param {string} [options.type]\n     *   Message type, can be either 'status', 'error' or 'warning'.\n     */\n    static announce(message, options) {\n      if (\n        !options.priority &&\n        (options.type === 'warning' || options.type === 'error')\n      ) {\n        options.priority = 'assertive';\n      }\n      /**\n       * If screen reader message is not disabled announce screen reader\n       * specific text or fallback to the displayed message.\n       */\n      if (options.announce !== '') {\n        Drupal.announce(options.announce || message, options.priority);\n      }\n    }\n\n    /**\n     * Function for creating the internal message wrapper element.\n     *\n     * @param {HTMLElement} messageWrapper\n     *   The message wrapper.\n     *\n     * @return {HTMLElement}\n     *   The internal wrapper DOM element.\n     */\n    static messageInternalWrapper(messageWrapper) {\n      const innerWrapper = document.createElement('div');\n      innerWrapper.setAttribute('class', 'messages__wrapper');\n      messageWrapper.insertAdjacentElement('afterbegin', innerWrapper);\n      return innerWrapper;\n    }\n  };\n\n  /**\n   * Theme function for a message.\n   *\n   * @param {object} message\n   *   The message object.\n   * @param {string} message.text\n   *   The message text.\n   * @param {object} options\n   *   The message context.\n   * @param {string} options.type\n   *   The message type.\n   * @param {string} options.id\n   *   ID of the message, for reference.\n   *\n   * @return {HTMLElement}\n   *   A DOM Node.\n   */\n  Drupal.theme.message = ({ text }, { type, id }) =>
10 {\n    const messagesTypes = Drupal.Message.getMessageTypeLabels();\n    const messageWrapper = document.createElement('div');\n\n    messageWrapper.setAttribute('class', `messages messages--${type}`);\n    messageWrapper.setAttribute(\n      'role',\n      type === 'error' || type === 'warning' ? 'alert' : 'status',\n    );\n    messageWrapper.setAttribute('data-drupal-message-id', id);\n    messageWrapper.setAttribute('data-drupal-message-type', type);\n\n    messageWrapper.setAttribute('aria-label', messagesTypes[type]);\n\n    messageWrapper.innerHTML = `${text}`;\n\n    return messageWrapper;\n  };\n})(Drupal);\n";
11var mod_pagespeed_GRxXMeAtrH = "/**\n * @file\n * Overriding core's message functions to add icon and a remove button to each message.\n */\n\n((Drupal) => {\n  /**\n   * Overrides message theme function.\n   *\n   * @param {object} message\n   *   The message object.\n   * @param {string} message.text\n   *   The message text.\n   * @param {object} options\n   *   The message context.\n   * @param {string} options.type\n   *   The message type.\n   * @param {string} options.id\n   *   ID of the message, for reference.\n   *\n   * @return {HTMLElement}\n   *   A DOM Node.\n   */\n  Drupal.theme.message = ({ text }, { type, id }) => {\n    const messagesTypes = Drupal.Message.getMessageTypeLabels();\n    const messageWrapper = document.createElement('div');\n\n    messageWrapper.setAttribute(\n      'class',\n      `messages-list__item messages messages--${type}`,\n    );\n    messageWrapper.setAttribute('data-drupal-selector', 'messages');\n    messageWrapper.setAttribute(\n      'role',\n      type === 'error' || type === 'warning' ? 'alert' : 'status',\n    );\n    messageWrapper.setAttribute('aria-labelledby', `${id}-title`);\n    messageWrapper.setAttribute('data-drupal-message-id', id);\n    messageWrapper.setAttribute('data-drupal-message-type', type);\n    let svg = '';\n\n    if (['error', 'warning', 'status', 'info'].indexOf(type) > -1) {\n      svg =\n        '<div class=\"messages__icon\"><svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\">';\n    }\n\n    if (type === 'error') {\n      svg +=\n        '<path d=\"M0.117801 16.7381C0.202622 17.9153 0.292289 18.562 0.481317 19.3904C0.922384 21.3161 1.6785 23.0626 2.76178 24.6589C4.58178 27.3355 7.18213 29.3823 10.1993 30.5062C12.458 31.3467 14.942 31.6495 17.3461 31.3782C22.5831 30.7872 27.1246 27.6164 29.4875 22.9027C30.3769 21.132 30.8616 19.3929 31.0797 17.1983C31.1209 16.7768 31.1209 15.1733 31.0797 14.7518C30.8786 12.7195 30.4714 11.1693 29.7032 9.49549C28.3848 6.62269 26.1722 4.18589 23.4289 2.58235C19.4399 0.249712 14.5373 -0.171762 10.1993 1.44389C5.82985 3.07165 2.38372 6.62753 0.915114 11.0215C0.512822 12.223 0.289865 13.2863 0.161423 14.604C0.127495 14.9674 0.0959901 16.4425 0.117801 16.7381ZM4.02924 14.9577C4.2837 12.2108 5.46391 9.69412 7.40024 7.76115C9.15966 6.00743 11.3529 4.89319 13.8224 4.49352C14.4234 4.39905 14.8717 4.36514 15.6012 4.36271C16.6941 4.36271 17.4793 4.45718 18.5093 4.71636C19.2969 4.91257 20.0143 5.17902 20.7873 5.55931C21.2526 5.78943 21.9409 6.18183 21.9554 6.22786C21.9651 6.25692 5.90498 22.3093 5.86621 22.3093C5.82501 22.3093 5.46391 21.6916 5.21915 21.2071C4.51877 19.8071 4.10921 18.2956 4.005 16.7138C3.98077 16.336 3.99288 15.3453 4.02924 14.9577ZM25.3725 9.6384C25.4428 9.7038 25.816 10.3602 26.0341 10.8035C26.6618 12.0776 27.0301 13.359 27.1876 14.8366C27.2385 15.2968 27.2458 16.5225 27.2022 16.9561C27.0859 18.0776 26.8847 18.9786 26.526 19.9669C26.2377 20.7663 25.7748 21.6843 25.2998 22.394C23.8748 24.5232 21.7882 26.1364 19.3987 26.9576C18.1046 27.4009 16.985 27.585 15.5891 27.585C14.8232 27.585 14.4646 27.5607 13.786 27.4541C12.2568 27.2192 10.6574 26.6209 9.40685 25.8191L9.23237 25.7077L17.2879 17.6609C23.3562 11.598 25.3507 9.61903 25.3725 9.6384Z\"/>';\n    } else if (type === 'warning') {\n      svg +=\n        '<path d=\"M16 0C7.16667 0 0 7.16667 0 16C0 24.8333 7.16667 32 16 32C24.8333 32 32 24.8333 32 16C32 7.16667 24.8333 0 16 0ZM18.6667 25.9792C18.6667 26.3542 18.375 26.6667 18.0208 26.6667H14.0208C13.6458 26.6667 13.3333 26.3542 13.3333 25.9792V22.0208C13.3333 21.6458 13.6458 21.3333 14.0208 21.3333H18.0208C18.375 21.3333 18.6667 21.6458 18.6667 22.0208V25.9792ZM18.625 18.8125C18.6042 19.1042 18.2917 19.3333 17.9167 19.3333H14.0625C13.6667 19.3333 13.3542 19.1042 13.3542 18.8125L13 5.875C13 5.72917 13.0625 5.58333 13.2083 5.5C13.3333 5.39583 13.5208 5.33333 13.7083 5.33333H18.2917C18.4792 5.33333 18.6667 5.39583 18.7917 5.5C18.9375 5.58333 19 5.72917 19 5.875L18.625 18.8125Z\"/>';\n    } else if (type === 'status') {\n      svg +=\n        '<path d=\"M26.75 12.625C26.75 12.9792 26.625 13.3125 26.375 13.5625L15.0625 24.875C14.8125 25.125 14.4583 25.2708 14.1042 25.2708C13.7708 25.2708 13.4167 25.125 13.1667 24.875L5.625 17.3333C5.375 17.0833 5.25 16.75 5.25 16.3958C5.25 16.0417 5.375 15.6875 5.625 15.4375L7.52083 13.5625C7.77083 13.3125 8.10417 13.1667 8.45833 13.1667C8.8125 13.1667 9.14583 13.3125 9.39583 13.5625L14.1042 18.2708L22.6042 9.79167C22.8542 9.54167 23.1875 9.39583 23.5417 9.39583C23.8958 9.39583 24.2292 9.54167 24.4792 9.79167L26.375 11.6667C26.625 11.9167 26.75 12.2708 26.75 12.625ZM32 16C32 7.16667 24.8333 0 16 0C7.16667 0 0 7.16667 0 16C0 24.8333 7.16667 32 16 32C24.8333 32 32 24.8333 32 16Z\"/>';\n    } else if (type === 'info') {\n      svg +=\n        '<path d=\"M32,16c0,8.8-7.2,16-16,16S0,24.8,0,16C0,7.2,7.2,0,16,0S32,7.2,32,16z M16.4,5.3c-3.5,0-5.8,1.5-7.5,4.1c-0.2,0.3-0.2,0.8,0.2,1l2.2,1.7c0.3,0.3,0.8,0.2,1.1-0.1c1.2-1.5,1.9-2.3,3.7-2.3c1.3,0,2.9,0.8,2.9,2.1c0,1-0.8,1.5-2.1,2.2c-1.5,0.9-3.5,1.9-3.5,4.6v0.3c0,0.4,0.3,0.8,0.8,0.8h3.6c0.4,0,0.8-0.3,0.8-0.8v-0.1c0-1.8,5.4-1.9,5.4-6.9C23.9,8.1,20.1,5.3,16.4,5.3z M16,21.3c-1.6,0-3,1.3-3,3c0,1.6,1.3,3,3,3s3-1.3,3-3C19,22.6,17.6,21.3,16,21.3z\"/>';\n    }\n\n    if (['error', 'warning', 'status', 'info'].indexOf(type) > -1) {\n      svg += '</svg></div>';\n    }\n\n    messageWrapper.innerHTML = `\n    <div class=\"messages__container\" data-drupal-selector=\"messages-container\">\n      <div class=\"messages__header${!svg ? ' no-icon' : ''}\">\n        <h2 class=\"visually-hidden\">${messagesTypes[type]}</h2>\n        ${svg}\n      </div>\n      <div class=\"messages__content\">\n        ${text}\n      </div>\n    </div>\n    `;\n\n    Drupal.olivero.closeMessage(messageWrapper);\n\n    return messageWrapper;\n  };\n})(Drupal);\n";
12var mod_pagespeed_vDtidsdnR7 = "(function(Drupal,drupalSettings){'use strict';document.cookiesjsr=drupalSettings.cookies.cookiesjsr;Drupal.behaviors.cookiesjsr={attach:function(){document.addEventListener('cookiesjsrCallbackResponse',function(event){var response=(typeof event.detail.response==='object')?event.detail.response:{};const messages=new Drupal.Message();messages.clear();for(var module in response){var obj=response[module];for(var i=0,arr=['status','warning','error'];
12i<arr.length;i++){var type=arr[i];if(typeof obj[type]!=='undefined'){messages.add(obj[type],{type:type});}}}});}}})(Drupal,drupalSettings);";

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.