1"use strict";(()=>{var k="hr_utm_touches",v="hr_utm_touches",A=20,E=180,$=E*864e5,x=E*24*60*60,a=1,N=3500,P=["co.uk","org.uk","gov.uk","ac.uk","com.au","net.au","org.au","co.nz","co.jp","com.br","com.mx","com.sg","co.in","co.za"],j=[{match:/(^|\.)google\./,source:"google",medium:"organic"},{match:/(^|\.)bing\.com$/,source:"bing",medium:"organic"},{match:/(^|\.)duckduckgo\.com$/,source:"duckduckgo",medium:"organic"},{match:/(^|\.)yahoo\./,source:"yahoo",medium:"organic"},{match:/(^|\.)ecosia\.org$/,source:"ecosia",medium:"organic"},{match:/(^|\.)baidu\.com$/,source:"baidu",medium:"organic"},{match:/(^|\.)yandex\./,source:"yandex",medium:"organic"},{match:/(^|\.)linkedin\.com$/,source:"linkedin",medium:"organic_social"},{match:/(^|\.)lnkd\.in$/,source:"linkedin",medium:"organic_social"},{match:/(^|\.)facebook\.com$/,source:"facebook",medium:"organic_social"},{match:/(^|\.)fb\.com$/,source:"facebook",medium:"organic_social"},{match:/(^|\.)instagram\.com$/,source:"instagram",medium:"organic_social"},{match:/(^|\.)(x|twitter)\.com$/,source:"x",medium:"organic_social"},{match:/(^|\.)t\.co$/,source:"x",medium:"organic_social"},{match:/(^|\.)reddit\.com$/,source:"reddit",medium:"organic_social"},{match:/(^|\.)youtube\.com$/,source:"youtube",medium:"organic_social"},{match:/(^|\.)youtu\.be$/,source:"youtube",medium:"organic_social"}];function d(t){if(t==null)return null;let n=t.trim().toLowerCase();return n===""?null:n}function _(t){if(t==null)return null;let n=t.trim();return n===""?null:n}function O(t){return/^\d{1,3}(\.\d{1,3}){3}$/.test(t)||t.indexOf(":")!==-1}function y(t){let n=t.toLowerCase();if(n==="localhost"||O(n)||n.indexOf(".")===-1)return n;let e=n.split(".");if(e.length<=2)return n;let o=e.slice(-2).join(".");return P.indexOf(o)!==-1?e.slice(-3).join("."):e.slice(-2).join(".")}function U(t){let n;try{n=new URL(t).hostname.toLowerCase().replace(/^www\./,"")}catch{return null}if(!n)return null;for(let e of j)if(e.match.test(n))return{source:e.source,medium:e.medium};return{source:n,medium:"referral"}}function H(t){if(!t)return!1;try{let n=new URL(t).hostname;return y(n)!==y(window.location.hostname)}catch{return!1}}function w(t){return[t.source,t.medium,t.campaign,t.content,t.term,t.gclid,t.li_fat_id,t.fbclid].map(n=>n??"").join("�")}function D(t,n){return w(t)===w(n)}function M(){let t;try{t=new URLSearchParams(window.location.search)}catch{t=new URLSearchParams("")}let n=d(t.get("utm_source")),e=d(t.get("utm_medium")),o=d(t.get("utm_campaign")),i=d(t.get("utm_content")),r=d(t.get("utm_term")),u=_(t.get("gclid")),c=_(t.get("li_fat_id")),s=_(t.get("fbclid")),m=document.referrer||null,S=m?H(m):!1;if(!!!(n||e||o||i||r||u||c||s)&&!S)return null;if(n||(u?(n="google",e||(e="cpc")):c?(n="linkedin",e||(e="paid_social")):s&&(n="meta",e||(e="paid_social"))),!n&&S&&m){let h=U(m);h&&(n=h.source,e=e||h.medium)}if(!n&&!e&&!o&&!i&&!r&&!u&&!c&&!s)return null;let g=null;try{g=window.location.pathname.toLowerCase()+window.location.search}catch{g=null}return{ts:Date.now(),source:n,medium:e,campaign:o,content:i,term:r,gclid:u,li_fat_id:c,fbclid:s,referrer:m,landing_path:g}}function J(t){return!!t&&typeof t=="object"&&typeof t.ts=="number"}function I(t){if(!t||typeof t!="object")return null;let n=t;if(n.v!==a||!Array.isArray(n.touches))return null;let e=n.touches.filter(J);return{v:a,touches:e}}function L(t){if(t.length===0)return t;let n=Date.now();return t.filter((e,o)=>o===0||n-e.ts<=$)}function C(t,n=A){return t.length<=n?t:[t[0],...t.slice(t.length-(n-1))]}function b(t,n){let e=[];t&&e.push(...t.touches),n&&e.push(...n.touches);let o={},i=[];for(let r of e){let u=r.ts+"�"+w(r);o[u]||(o[u]=!0,i.push(r))}return i.sort((r,u)=>r.ts-u.ts),{v:a,touches:C(L(i))}}function K(){try{let n=(document.cookie||"").split(";");for(let e of n){let o=e.indexOf("=");if(o===-1||e.slice(0,o).trim()!==k)continue;let r=e.slice(o+1).trim();return I(JSON.parse(decodeURIComponent(r)))}}catch{}return null}function F(){let t="; path=/; max-age="+x+"; SameSite=Lax";try{window.location.protocol==="https:"&&(t+="; Secure");let n=y(window.location.hostname);!O(n)&&n.indexOf(".")!==-1&&(t+="; Domain=."+n)}catch{}return t}function Y(t){try{let n=F(),e=t.touches;for(;;){let o=encodeURIComponent(JSON.stringify({v:a,touches:e}));if(o.length<=N||e.length<=2){document.cookie=k+"="+o+n;return}e=[e[0],...e.slice(2)]}}catch{}}function z(){try{let t=window.localStorage.getItem(v);return t?I(JSON.parse(t)):null}catch{return null}}function G(t){try{window.localStorage.setItem(v,JSON.stringify(t))}catch{}}var W=["advertising","analytics"];function l(){try{let t=window.Termly&&window.Termly.getConsentState&&window.Termly.getConsentState();if(!t)return!1;for(let n of W)if(t[n]===!0)return!0;return!1}catch{return!1}}function q(t){try{if(window.Termly&&typeof window.Termly.on=="function"){t(window.Termly);return}let n=0,e=setInterval(()=>{try{window.Termly&&typeof window.Termly.on=="function"?(clearInterval(e),t(window.Termly)):++n>50&&clearInterval(e)}catch{clearInterval(e)}},300)}catch{}}var p={v:a,touches:[]};function f(){return b(b(K(),z()),p)}function R(t){let n=t.touches;return{first:n.length?n[0]:null,last:n.length?n[n.length-1]:null,history_json:JSON.stringify(n)}}var V=["source","medium","campaign","content","term"];function X(t=document){let n=0;if(!l())return n;try{let e=R(f()),o=e.first,i=e.last,r={};for(let c of V)r["utm_first_"+c]=o&&o[c]||"",r["utm_last_"+c]=i&&i[c]||"";r.gclid=i&&i.gclid||o&&o.gclid||"",r.li_fat_id=i&&i.li_fat_id||o&&o.li_fat_id||"",r.fbclid=i&&i.fbclid||o&&o.fbclid||"",r.utm_history=e.history_json,t.querySelectorAll('input[name^="utm_"], input[name="gclid"], input[name="li_fat_id"], input[name="fbclid"], input[name="utm_history"]').forEach(c=>{let s=c.name;
1Object.prototype.hasOwnProperty.call(r,s)&&(c.value=r[s],n++)})}catch{}return n}function T(){if(!l())return p;let t=f().touches,n=M();n&&(t.length===0||!D(n,t[t.length-1]))&&(t=t.concat(n));let e={v:a,touches:C(L(t))};return p=e,e.touches.length>0&&(G(e),Y(e)),e}function B(){let t={getPayload:()=>l()?R(f()):{first:null,last:null,history_json:"[]"},getTouches:()=>l()?f().touches.slice():[],capture:()=>{T()},fillHiddenFields:X,version:a};try{window.hrTracking=t}catch{}}function Q(){if(!window.__hrTrackingInit){window.__hrTrackingInit=!0,B();try{if(l()){T();return}q(t=>{let n=()=>{try{l()&&T()}catch{}};try{t.on&&(t.on("initialized",n),t.on("consent",n))}catch{}n()})}catch{}}}Q();})();
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.