/*! ATOGOV - SPA 2025-03-18, Copyright (c) 2025 Australian Taxation Office */ jQuery.fn.highlight=function(e){return this.length&&e&&e.length?this.each(function(){!function r(e,t){var i=0;if(3==e.nodeType){var h,n,s,a=e.data.toUpperCase().indexOf(t);0<=(a-=e.data.substr(0,a).toUpperCase().length-e.data.substr(0,a).length)&&((h=document.createElement("span")).className="highlight",(n=e.splitText(a)).splitText(t.length),s=n.cloneNode(!0),h.appendChild(s),n.parentNode.replaceChild(h,n),i=1)}else if(1==e.nodeType&&e.childNodes&&!/(script|style)/i.test(e.tagName))for(var l=0;l