PageSourceSearch

https://static.alanrogers.com/dist/js/build/common.74072d12.js

js alanrogers.com collected 2026-10-02 06:52:34 UTC 78,472 bytes, 3 lines download raw bytes

1(()=>{(function(){try{var st=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},H=new Error().stack;H&&(st._sentryDebugIds=st._sentryDebugIds||{},st._sentryDebugIds[H]="9a8cbfa1-2b47-4b4a-8760-890b45ed0f61",st._sentryDebugIdIdentifier="sentry-dbid-9a8cbfa1-2b47-4b4a-8760-890b45ed0f61")}catch{}})();(self.webpackChunkalan_rogers_main_website=self.webpackChunkalan_rogers_main_website||[]).push([[76],{950:(st,H,n)=>{n.p=window.STATIC_URL_PREFIX+"/dist/js/build/"},4101:(st,H,n)=>{"use strict";n.d(H,{A:()=>r,v:()=>L});var T=n(5613);let F;async function p(){return typeof F<"u"?F:n.e(64).then(n.bind(n,9064)).then(o=>(o.init({dsn:window.sentry_config.dsn,environment:window.sentry_config.environment,release:window.sentry_config.release,integrations:a=>[...a,o.breadcrumbsIntegration({console:location.href.indexOf("dev")===-1})].filter(y=>y.name!=="TryCatch"),allowUrls:[/https?:\/\/(?:[a-z]+\.)?alanrogers\.com/]}),F=o,o))}async function L(o,a){return p().then(y=>{o instanceof T.A?y.withScope(S=>{S.setContext("ar_ctx",{data:o.data,...a}),y.captureException(o)}):y.captureException(o),console.error(o)})}var r=p},2066:(st,H,n)=>{"use strict";n.d(H,{My:()=>T,UM:()=>F,lw:()=>L});function T(r,o,a,y,S){let P="";if(a===0)P="0";else{const j=new Date;j.setTime(j.getTime()+a*24*60*60*1e3),P=j.toUTCString()}y||(y=window.location.hostname),S||(S="/"),document.cookie=encodeURIComponent(r)+"="+encodeURIComponent(o)+"; expires="+P+"; domain="+encodeURIComponent(y)+"; path="+S+"; secure; samesite=strict"}function F(r){const o=encodeURIComponent(r)+"=",a=document.cookie.split(";");for(let y=0;y<a.length;y++){const S=a[y].trim();if(S.indexOf(o)===0)return decodeURIComponent(S.substring(o.length,S.length))}return""}function p(r,o,a){return T(r,"",-365,o,a)}function L(){if(navigator.cookieEnabled)return!0;document.cookie="cookietest=1";const r=document.cookie.indexOf("cookietest=")!==-1;return document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",r}},1317:(st,H,n)=>{"use strict";n.d(H,{Wv:()=>L,XO:()=>p,bQ:()=>F});const T={loaded_data:new Map,_parse:function(r){const o=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/;return r==="true"?!0:r==="false"?!1:r==="null"?null:r===+r+""?+r:o.test(r)?JSON.parse(r):r},get:function(r,o,a){if(!(r instanceof HTMLElement))return null;
1if(!a&&this.loaded_data.has(r)&&this.loaded_data.get(r)[o])return this.loaded_data.get(r)[o];if(!a&&r.dataset instanceof DOMStringMap){if(r.dataset[o]){const S=this._parse(r.dataset[o]);return this.loaded_data.set(r,{[o]:S}),S}return this.loaded_data.set(r,{[o]:null}),null}const y=this._parse(r.getAttribute("data-"+o));return this.loaded_data.set(r,{[o]:y}),y},set:function(r,o,a){if(!this.loaded_data.has(r))this.loaded_data.set(r,{[o]:a});else{const y=this.loaded_data.get(r);y[o]=a}requestAnimationFrame(()=>{r.setAttribute("data-"+o,JSON.stringify(a).replace(/^"|"$/g,""))})},delete:function(r,o,a){if(typeof a>"u"&&(a=!1),this.loaded_data.has(r)){const y=this.loaded_data.get(r);typeof y[o]<"u"&&delete y[o],Object.keys(y).length===0?this.loaded_data.delete(r):this.loaded_data.set(r,y)}a&&r.removeAttribute("data-"+o)}};function F(r,o,a){return T.get(r,o,a)}function p(r,o,a){return T.set(r,o,a)}function L(r,o,a){return T.delete(r,o,a)}},3964:(st,H,n)=>{"use strict";n.d(H,{$t:()=>c,AH:()=>$,BC:()=>S,BW:()=>U,CF:()=>tt,Hs:()=>Pt,Ie:()=>q,K$:()=>Ht,K2:()=>Z,Lt:()=>F,M8:()=>v,Pe:()=>x,Pl:()=>y,TF:()=>Tt,Ub:()=>p,YL:()=>Y,bG:()=>Qt,cY:()=>s,gM:()=>P,iQ:()=>L,is:()=>B,kp:()=>Q,nB:()=>o,o8:()=>w,p1:()=>a,pb:()=>at,qy:()=>b,ts:()=>Nt,uJ:()=>At,vy:()=>r,wE:()=>et});var T=n(7968);function F(e,d){return d?d.querySelector(e):document.querySelector(e)}function p(e,d){return d?d.querySelectorAll(e):document.querySelectorAll(e)}function L(e,d){if(e instanceof NodeList)for(const O of e)O instanceof HTMLElement&&O.classList.add(d);else e&&e.classList.add(d)}function r(e,d){if(Array.isArray(d)||(d=[d]),e instanceof NodeList){for(const O of e)if(O instanceof HTMLElement)for(const dt of d)O.classList.remove(dt)}else if(e)for(const O of d)e.classList.remove(O)}function o(e,d){return e?e.classList.contains(d):!1}function a(e,d){return e?e.classList.toggle(d):!1}function y(e,d){return typeof e=="string"&&(e=U(e,!0)),e instanceof DocumentFragment?(d.after(e),e):z(e)?(d.insertAdjacentElement("afterend",e),e):null}function S(e,d){if(typeof e=="string")return d.insertAdjacentHTML("beforeend",e),d;if(e instanceof NodeList||Array.isArray(e))for(const O of e)d.appendChild(O);else z(e)&&d.appendChild(e);return d}function P(e,d){if(typeof e=="string"&&(e=U(e,!1)),e instanceof NodeList||Array.isArray(e))for(const O of e)d.insertAdjacentElement("beforebegin",O);else if(z(e))return d.insertAdjacentElement("beforebegin",e);return null}function j(e){return e?e.children:null}function w(e){return e?e.cloneNode(!0):null}function C(e,d){return!e||!d?!1:e!==d&&d.contains(e)}function I(e,d){return e?!!F(d,e):!1}function G(e,d){const O=p(e);Array.prototype.forEach.call(O,d)}function q(e){if(e)for(;e.firstChild;)e.removeChild(e.firstChild)}function at(e,d){if((0,T.Tn)(d))return Array.prototype.filter.call(e,d);const O=typeof d=="string";if(!O&&"nodeType"in d){for(const St of e)if(St===d)return St}if(!O){const St=[];for(const $t of e)for(const se of d)$t===se&&St.push(se);return St}const dt=[];for(const St of e)St.matches(d)&&dt.push(St);return dt}function tt(e,d,O){if(!z(e))throw new Error("attr(): first parameter must be an element");if(typeof O>"u")return e.hasAttribute(d)?e.getAttribute(d):null;e.setAttribute(d,String(O))}function vt(e,d){return z(e)?e.hasAttribute(d):!1}function Nt(e,d){[...e.attributes].forEach(O=>{d.setAttribute(O.nodeName,O.nodeValue)})}function At(e,d){if(typeof d>"u")return parseFloat(getComputedStyle(e,null).height.replace("px",""));typeof d=="function"&&(d=d()),typeof d=="string"?e.style.height=d:e.style.height=d+"px"}function Ft(e,d){if(typeof d>"u")return parseFloat(getComputedStyle(e,null).width.replace("px",""));typeof d=="function"&&(d=d()),typeof d=="string"?e.style.height=d:e.style.height=d+"px"}function b(e,d){if(typeof d<"u"){e.innerHTML=d;return}return e?e.outerHTML:""}function U(e,d){typeof d>"u"&&(d=!0);const O=document.createElement("div");return O.innerHTML=(0,T.Bq)(e),d?O.firstChild??document.createTextNode(""):O.childNodes}function $(e,d,O){if(e)if(typeof O<"u")e.style[d]=O;else return getComputedStyle(e)[d]}function m(e,d){if(typeof d<"u"){e&&(e.textContent=d);return}return e?e.textContent:null}function x(e,d){d instanceof NodeList||(d=e?e.parentNode.childNodes:[]);let O=0;for(let dt=0;dt<d.length;dt++){if(d[dt]===e)return O;d[dt].nodeType===1&&O++}return-1}
1function B(e,d){return typeof d=="string"?d===":visible"?!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length):e.matches.call(e,d):e===d}function z(e){try{return e instanceof HTMLElement}catch{return typeof e=="object"&&e.nodeType===1&&typeof e.style=="object"&&typeof e.ownerDocument=="object"}}function Z(e,d){const O=e?e.nextElementSibling:null;return d&&O?O.matches(d)?O:null:O}function Y(e,d){const O=e?e.previousElementSibling:null;return d&&O?O.matches(d)?O:null:e.previousElementSibling}function s(e){if(e){const d=e.getBoundingClientRect();return{top:d.top+document.body.scrollTop,left:d.left+document.body.scrollLeft}}return{top:0,left:0}}function h(e){return(e?e.offsetParent:!1)||e}function i(e,d){if(!e)return 0;if(typeof d>"u"&&(d=!1),d){let O=e.offsetHeight;const dt=getComputedStyle(e);return O+=parseInt(dt.marginTop,10)+parseInt(dt.marginBottom,10),O}return e.offsetHeight}function l(e,d){if(typeof d>"u"&&(d=!1),d){let O=e.offsetWidth;const dt=getComputedStyle(e);return O+=parseInt(dt.marginLeft,10)+parseInt(dt.marginRight,10),O}return e.offsetWidth}function c(e){return e?e.parentNode:null}function v(e,d){const O=[];for(;e&&!(e instanceof Document);e=e.parentNode)d?e.matches(d)&&O.push(e):O.push(e);return O}function g(e,d,O){const dt=[];for(;e&&!(d&&e.matches(d));e=e.parentNode){if(O){e.matches(O)&&dt.push(e);continue}dt.push(e)}return dt}function E(e){return e?{left:e.offsetLeft,top:e.offsetTop}:{left:0,top:0}}function Pt(e,d){return e&&d?d.insertBefore(e,d.firstChild):null}function Tt(e){if(Symbol.iterator in Object(e))for(const d of e)d.parentNode?d.parentNode.removeChild(d):d.ownerDocument.removeChild(d);else if(e instanceof HTMLElement)if(e.parentNode)e.parentNode.removeChild(e);else try{e.ownerDocument.removeChild(e)}catch{}}function Ht(e,d){e&&e.removeAttribute(d)}function Qt(e,d){e&&(d instanceof HTMLElement?e.replaceWith(d):e.outerHTML=d)}function et(e){if(e)return Array.prototype.filter.call(e.parentNode.children,function(d){return d!==e})}function Q(e,d){for(;e&&e.nodeType===1;e=e.parentNode)if(e.matches(d))return e;return null}function rt(e,d){return d||(d=document.createElement("div")),e instanceof NodeList?(e.forEach(O=>d.appendChild(O)),d):([...e.childNodes].forEach(O=>d.appendChild(O)),e.appendChild(d),d)}function mt(e){const d=e.parentNode;for(;e.firstChild;)d.insertBefore(e.firstChild,e);d.removeChild(e)}},3164:(st,H,n)=>{"use strict";n.d(H,{Mm:()=>F,on:()=>p,qG:()=>a});var T=n(3964);function F(y,S,P,j,w){let C=[];typeof j>"u"?C.push(document):typeof j=="string"?C=Array.from((0,T.Ub)(j)):j&&C.push(j);for(const I of C)I.addEventListener(y,function(G){const q=G.target;let at=q;for(;at!==this;at=at.parentNode||this)if(at.nodeType===1&&!(G.type==="click"&&"disabled"in at&&at.disabled===!0)&&at.matches(S)){G.delegateTarget=q.closest(S),P.call(at,G);break}},w||!1)}function p(y,S,P,j){let w;typeof y=="string"?w=(0,T.Ub)(y):w=[y],typeof j>"u"&&(j={once:!1,passive:!1});for(const C of S.split(" ")){const I=function(G){G.targetElement=G.target,P.call(G.target,G)};for(const G of w)G&&G.addEventListener(C,I,j)}}function L(y,S,P){P?y.removeEventListener(S,P):y.removeEventListeners(S)}function r(y){if(typeof y=="function"){if(document.readyState==="interactive"||document.readyState==="complete")return y();document.addEventListener("DOMContentLoaded",y,!1)}}function o(y,S,P){const j=new CustomEvent(S,{detail:P});y.dispatchEvent(j)}function a(y,S){let P;Symbol.iterator in Object(y)?P=y:P=[y];for(const j of P){const w=new Event(S,{bubbles:!0,cancelable:!0});j.dispatchEvent(w)}}},3171:(st,H,n)=>{"use strict";n.d(H,{aH:()=>T,cv:()=>p,hx:()=>F});function T(y=!1){return new Promise(S=>{!y||y&&a()?setTimeout(S,0):S()})}function F(y,S=0){setTimeout(y,S)}async function p(y,S=!0){const P=async j=>(S&&a()&&await T(),j);return Object.getPrototypeOf(y).constructor.name==="AsyncFunction"?y().then(P):new Promise(j=>{j(y())}).then(P)}function L(y,S=!0){return new Promise(async(P,j)=>{let w=0,C;async function I(){if(w>=y.length){P(C);return}const G=y[w];w++;try{if(G instanceof Promise){G.then(async()=>{C=await I()}).catch(j);return}const q=G();q instanceof Promise?q.then(async()=>{C=await I()}).catch(j):C=await I()}catch(q){j(q)}}C=await I()})}function r(y,S=!0){const P=[];for(const j of y)j instanceof Promise?(P.push(j),S&&P.push(T(!0))):P.push(p(j,S));return o(P)}function o(y){return Promise.all(y)}function a(){return typeof navigator.scheduling<"u"&&typeof navigator.scheduling.isInputPending=="function"?navigator.scheduling.isInputPending():!0}},7968:(st,H,n)=>{"use strict";n.d(H,{BW:()=>I,Bq:()=>w,Ch:()=>at,F1:()=>P,I0:()=>tt,L5:()=>Ft,Lt:()=>At,Tn:()=>a,Yv:()=>q,hu:()=>vt,zw:()=>p});function T(b,U,$){if(Object.prototype.toString.call(b)==="[object Object]")for(const m in b)Object.prototype.hasOwnProperty.call(b,m)&&U.call($,b[m],m,b);else if("length"in b)for(let m=0,x=b.length;m<x;m++)U.call($,b[m],m,b)}function F(b,U){return b.bind(U)}function p(b,...U){b=b||{};for(let $=1;$<arguments.length;$++){const m=arguments[$];if(m)for(const x in m)m.hasOwnProperty(x)&&(typeof m[x]=="object"?m[x]instanceof Array?b[x]=m[x].slice(0):b[x]=p(b[x],m[x]):b[x]=m[x])}return b}function L(b,...U){b=b||{};for(let $=1;$<arguments.length;$++)if(arguments[$])for(const m in arguments[$])arguments[$].hasOwnProperty(m)&&(b[m]=arguments[$][m]);return b}function r(b,U){return b.indexOf(U)}function o(b){return Array.isArray(b)}function a(b){return typeof b=="function"&&typeof b.nodeType!="number"&&typeof b.item!="function"}function y(b,U){return b.map(U)}function S(){return Date.now()}function P(b,U){if(typeof U>"u"&&(U=window),typeof b=="number"){U.scrollTo(0,b);return}const $=document.body,m=document.documentElement;return window.pageYOffset||m.scrollTop||$.scrollTop}function j(b){return JSON.parse(b)}function w(b){return b.replace(/^\s+|\s+$/gm,"")}function C(b){return Object.prototype.toString.call(b).replace(/^\[object (.+)\]$/,"$1").toLowerCase()}function I(b,U){const $=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,m=/<([\w:]+)/,x=/<|&#?\w+;/,B={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};
1U=U||document,b=w(b);let z,Z,Y,s;const h=U.createDocumentFragment();if(!x.test(b))h.appendChild(U.createTextNode(b));else{for(z=h.appendChild(U.createElement("div")),Z=(m.exec(b)||["",""])[1].toLowerCase(),Y=B[Z]||B._default,z.innerHTML=Y[1]+b.replace($,"<$1></$2>")+Y[2],s=Y[0];s--;)z=z.lastChild;for(h.removeChild(h.firstChild);z.firstChild;)h.appendChild(z.firstChild)}return h}function G(b){let U;isElement(b)?U=[b]:U=b;const $=document.createElement("div");for(const m of U)$.appendChild(m);return $.childNodes}function q(b){b=b.replace(/^\s+|\s+$/g,""),b=b.toLowerCase();const U="\xC1\xC4\xC2\xC0\xC3\xC5\u010C\xC7\u0106\u010E\xC9\u011A\xCB\xC8\xCA\u1EBC\u0114\u0206\xCD\xCC\xCE\xCF\u0147\xD1\xD3\xD6\xD2\xD4\xD5\xD8\u0158\u0154\u0160\u0164\xDA\u016E\xDC\xD9\xDB\xDD\u0178\u017D\xE1\xE4\xE2\xE0\xE3\xE5\u010D\xE7\u0107\u010F\xE9\u011B\xEB\xE8\xEA\u1EBD\u0115\u0207\xED\xEC\xEE\xEF\u0148\xF1\xF3\xF6\xF2\xF4\xF5\xF8\xF0\u0159\u0155\u0161\u0165\xFA\u016F\xFC\xF9\xFB\xFD\xFF\u017E\xFE\xDE\u0110\u0111\xDF\xC6a\xB7/_,:;",$="AAAAAACCCDEEEEEEEEIIIINNOOOOOORRSTUUUUUYYZaaaaaacccdeeeeeeeeiiiinnooooooorrstuuuuuyyzbBDdBAa------";for(let m=0,x=U.length;m<x;m++)b=b.replace(new RegExp(U.charAt(m),"g"),$.charAt(m));return b=b.replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-"),b}function at(){return window.doNotTrack&&window.doNotTrack=="1"||navigator.doNotTrack&&(navigator.doNotTrack=="yes"||navigator.doNotTrack=="1")||navigator.msDoNotTrack&&navigator.msDoNotTrack=="1"||window.external&&"msTrackingProtectionEnabled"in window.external&&window.external.msTrackingProtectionEnabled()}function tt(b){return typeof b.scrollY<"u"?Math.floor(b.scrollY):typeof b.scrollTop<"u"?Math.floor(b.scrollTop):document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop?document.body.scrollTop:0}function vt(b){let U=b.offsetTop,$=b;for(;$.offsetParent&&$.offsetParent!==document.body;)$=$.offsetParent,U+=$.offsetTop;return U}function Nt(b){const U="0123456789abcdef";function $(et){let Q,rt="";for(Q=0;Q<=3;Q++)rt+=U.charAt(et>>Q*8+4&15)+U.charAt(et>>Q*8&15);return rt}function m(et,Q){let rt=(et&65535)+(Q&65535);return(et>>16)+(Q>>16)+(rt>>16)<<16|rt&65535}function x(et,Q){return et<<Q|et>>>32-Q}function B(et,Q,rt,mt,e,d){return m(x(m(m(Q,et),m(mt,d)),e),rt)}function z(et,Q,rt,mt,e,d,O){return B(Q&rt|~Q&mt,et,Q,e,d,O)}function Z(et,Q,rt,mt,e,d,O){return B(Q&mt|rt&~mt,et,Q,e,d,O)}function Y(et,Q,rt,mt,e,d,O){return B(Q^rt^mt,et,Q,e,d,O)}function s(et,Q,rt,mt,e,d,O){return B(rt^(Q|~mt),et,Q,e,d,O)}function h(et){let Q,rt=(et.length+8>>6)+1;const mt=new Array(rt*16);for(Q=0;Q<rt*16;Q++)mt[Q]=0;for(Q=0;Q<et.length;Q++)mt[Q>>2]|=et.charCodeAt(Q)<<Q%4*8;return mt[Q>>2]|=128<<Q%4*8,mt[rt*16-2]=et.length*8,mt}let i,l=h(b),c=1732584193,v=-271733879,g=-1732584194,E=271733878,Pt,Tt,Ht,Qt;for(i=0;i<l.length;i+=16)Pt=c,Tt=v,Ht=g,Qt=E,c=z(c,v,g,E,l[i],7,-680876936),E=z(E,c,v,g,l[i+1],12,-389564586),g=z(g,E,c,v,l[i+2],17,606105819),v=z(v,g,E,c,l[i+3],22,-1044525330),c=z(c,v,g,E,l[i+4],7,-176418897),E=z(E,c,v,g,l[i+5],12,1200080426),g=z(g,E,c,v,l[i+6],17,-1473231341),v=z(v,g,E,c,l[i+7],22,-45705983),c=z(c,v,g,E,l[i+8],7,1770035416),E=z(E,c,v,g,l[i+9],12,-1958414417),g=z(g,E,c,v,l[i+10],17,-42063),v=z(v,g,E,c,l[i+11],22,-1990404162),c=z(c,v,g,E,l[i+12],7,1804603682),E=z(E,c,v,g,l[i+13],12,-40341101),g=z(g,E,c,v,l[i+14],17,-1502002290),v=z(v,g,E,c,l[i+15],22,1236535329),c=Z(c,v,g,E,l[i+1],5,-165796510),E=Z(E,c,v,g,l[i+6],9,-1069501632),g=Z(g,E,c,v,l[i+11],14,643717713),v=Z(v,g,E,c,l[i],20,-373897302),c=Z(c,v,g,E,l[i+5],5,-701558691),E=Z(E,c,v,g,l[i+10],9,38016083),g=Z(g,E,c,v,l[i+15],14,-660478335),v=Z(v,g,E,c,l[i+4],20,-405537848),c=Z(c,v,g,E,l[i+9],5,568446438),E=Z(E,c,v,g,l[i+14],9,-1019803690),g=Z(g,E,c,v,l[i+3],14,-187363961),v=Z(v,g,E,c,l[i+8],20,1163531501),c=Z(c,v,g,E,l[i+13],5,-1444681467),E=Z(E,c,v,g,l[i+2],9,-51403784),g=Z(g,E,c,v,l[i+7],14,1735328473),v=Z(v,g,E,c,l[i+12],20,-1926607734),c=Y(c,v,g,E,l[i+5],4,-378558),E=Y(E,c,v,g,l[i+8],11,-2022574463),g=Y(g,E,c,v,l[i+11],16,1839030562),v=Y(v,g,E,c,l[i+14],23,-35309556),c=Y(c,v,g,E,l[i+1],4,-1530992060),E=Y(E,
1c,v,g,l[i+4],11,1272893353),g=Y(g,E,c,v,l[i+7],16,-155497632),v=Y(v,g,E,c,l[i+10],23,-1094730640),c=Y(c,v,g,E,l[i+13],4,681279174),E=Y(E,c,v,g,l[i],11,-358537222),g=Y(g,E,c,v,l[i+3],16,-722521979),v=Y(v,g,E,c,l[i+6],23,76029189),c=Y(c,v,g,E,l[i+9],4,-640364487),E=Y(E,c,v,g,l[i+12],11,-421815835),g=Y(g,E,c,v,l[i+15],16,530742520),v=Y(v,g,E,c,l[i+2],23,-995338651),c=s(c,v,g,E,l[i],6,-198630844),E=s(E,c,v,g,l[i+7],10,1126891415),g=s(g,E,c,v,l[i+14],15,-1416354905),v=s(v,g,E,c,l[i+5],21,-57434055),c=s(c,v,g,E,l[i+12],6,1700485571),E=s(E,c,v,g,l[i+3],10,-1894986606),g=s(g,E,c,v,l[i+10],15,-1051523),v=s(v,g,E,c,l[i+1],21,-2054922799),c=s(c,v,g,E,l[i+8],6,1873313359),E=s(E,c,v,g,l[i+15],10,-30611744),g=s(g,E,c,v,l[i+6],15,-1560198380),v=s(v,g,E,c,l[i+13],21,1309151649),c=s(c,v,g,E,l[i+4],6,-145523070),E=s(E,c,v,g,l[i+11],10,-1120210379),g=s(g,E,c,v,l[i+2],15,718787259),v=s(v,g,E,c,l[i+9],21,-343485551),c=m(c,Pt),v=m(v,Tt),g=m(g,Ht),E=m(E,Qt);return $(c)+$(v)+$(g)+$(E)}function At(b,U=!0,$=!0){const m=document.createElement("div");return U&&(b=b.replace(/<script[^>]*>([\S\s]*?)<\/script>/gmi,"")),$&&(b=b.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi,"")),m.innerHTML=b,b=m.textContent,m.textContent="",b}async function Ft(b,U=3,$=1e3){try{return await b()}catch(m){if(U<=0)throw m;return await((x=0)=>new Promise(B=>setTimeout(B,x)))($),Ft(b,U-1,$)}}},5613:(st,H,n)=>{"use strict";n.d(H,{A:()=>p});var T=n(2036);class F extends Error{constructor(r){super(),this.message=r,this.name=this.constructor.name;try{this.stack=new Error().stack}catch{this.stack=null}}}class p extends F{constructor(r,o){super(r),this.url=null,this.data=null,this.promise=null,this.os="",this.user_agent="",this.response=null,this.request=null,this.config=null,this.previous=null,this.name="ARError",this.os=(0,T.oK)(),this.user_agent=navigator.userAgent,o&&Object.assign(this,o)}static newError(r,o){const a=new p(r);return o&&Object.assign(a,o),a}}},6768:(st,H,n)=>{"use strict";n.d(H,{A:()=>T});class T{constructor(){this._handlers=[],this._dispatched={}}addEventListener(p,L){this._handlers.push({type:p,fn:L})}removeEventListener(p,L){this._handlers=this._handlers.filter(r=>!(r.type===p&&(L===!0||r.fn===L)))}dispatchEvent(p,L){const r=this._handlers.filter(o=>new RegExp("^"+o.type.split("*").join(".*")+"$").test(p));for(const o of r){const a=o.fn(L,p);if(this.setLastDispatched(p,L),a===!1)return!1}return!0}setLastDispatched(p,L){this._dispatched[p]=L}getLastDispatched(p){if(this._dispatched[p])return this._dispatched[p]}clearEventListeners(p){p?this.removeEventListener(p,!0):this._handlers=[]}getEventListeners(p){return this._handlers.filter(L=>L.type===p||L.type!==p&&!p)}on(p,L,r=!1){if(r){const o=this.getLastDispatched(p);if(o){L(o.data,o.type);return}}return this.addEventListener(p,L),this}off(p,L){return this.removeEventListener(p,L),this}emit(p,L){return this.dispatchEvent(p,L)}clear(p){return this.clearEventListeners(p),this}list(p){return this.getEventListeners(p)}}},9509:(st,H,n)=>{"use strict";n.d(H,{A:()=>T});class T{constructor(){this.enabled={local:!0,session:!0};try{this.local=window.localStorage,this.session=window.sessionStorage}catch{console.warn("Browser storage disabled due to no support or blocked by browser.")}this.local instanceof Storage||(this.enabled.local=!1),this.session instanceof Storage||(this.enabled.session=!1)}getSessionValue(p){return this._getStoreData("session",p)}getLocalValue(p){return this._getStoreData("local",p)}setSessionValue(p,L,r){if(!this.enabled.session)return;r||(r=31622400);const o=this._makeStoreObject(L,r);try{this.session.setItem(p,JSON.stringify(o))}catch(a){(a.code==="22"||a.code==="1024")&&(this.session.clear(),this.session.setItem(p,JSON.stringify(o)))}}setLocalValue(p,L,r){if(!this.enabled.local)return;r||(r=31622400);const o=this._makeStoreObject(L,r);try{this.local.setItem(p,JSON.stringify(o))}catch(a){(a.code==="22"||a.code==="1024")&&(this.local.clear(),this.local.setItem(p,JSON.stringify(o)))}}modifyLocalValue(p,L){if(!this.enabled.local)return;let r=this.local.getItem(p);if(!r)return;const o=JSON.parse(r);if(o){o.val=L;try{this.local.setItem(p,JSON.stringify(o))}catch(a){(a.code==="22"||a.code==="1024")&&(this.local.clear(),this.local.setItem(p,JSON.stringify(o)))}}}_makeStoreObject(p,L){L||(L=31622400);const r=new Date(new Date().getTime()+1e3*L);return{val:p,expires:r.toISOString()}}_getStoreData(p,L){if(!this.enabled[p])return null;const r=this[p].getItem(L);if(r!==null){let o;try{o=JSON.parse(r)}catch{o=r}if(o){if(typeof o.expires<"u")return new Date(o.expires)>new Date?o.val:null}else return this[p].removeItem(L),null;return o}return null}}},8391:(st,H,n)=>{"use strict";n.d(H,{A:()=>L});var T=n(3964),F=n(1317);let p=null;class L{constructor(){const o=(0,T.Lt)("#campsite-listing-data"),a=(0,T.Lt)("#page-data");this._items={google_maps_api_key:"AIzaSyDTmNMpOPv7UlOY8id6CO5JCkcnxItWm4A",mobile_breakpoint:768,tablet_breakpoint:769,static_url_prefix:(0,F.bQ)(a,"static_prefix"),nav_bar_scroll_depth:50,user_min_update_frequency:120,release_monitor_frequency:30,tracking_enabled:!0,tracking_cookie_name:"__ar-tracking",tracking_cookie_expiry:30,tracking_cookie_domain:"alanrogers.com",tracking_cookie_path:"/",cluster_icon_src:"",map_default_selector:"#google-map",map_default_icon_url:"https://maps.gstatic.
1com/mapfiles/ms/icons/red-dot.png",map_default_zoom:4,map_default_height:400,map_default_center_lat:47.047201,map_default_center_lng:-13.864746,adverts_enabled:!!(0,F.bQ)(a,"adverts_enabled"),advert_network_code:"17367472",advert_sizes:window.advert_sizes??{},advert_size_maps:window.advert_size_maps??{},listing_storage_ttl:14400,listing_total_count:0,listing_per_page:20,listing_category_ids:[],campsite_map_zoom:12,campsite_min_map_zoom:4,campsite_map_show_street_view:!1,google_consent_mode_defaults:{ad_storage:"denied",analytics_storage:"denied",functionality_storage:"denied",personalization_storage:"denied",security_storage:"denied"},cookie_consent:window.cc_config},o&&(this._items.listing_per_page=parseInt((0,F.bQ)(o,"per_page"),10),this._items.cluster_icon_src=(0,F.bQ)(o,"cluster_icon_src"),this._items.listing_total_count=parseInt((0,F.bQ)(o,"total_count"),10),this._items.listing_category_ids=(0,F.bQ)(o,"category_ids"))}static instance(){return p===null&&(p=new L),p}get(o){if(typeof this._items[o]<"u")return this._items[o];throw new Error(`Config with name "${o}" does not exist.`)}}},4038:(st,H,n)=>{"use strict";n.d(H,{A:()=>L});var T=n(5613),F=n(2036),p=n(4101);class L{constructor(o){this.sm=o}init(){window.addEventListener("error",o=>{this.report(T.A.newError(o.message))})}static create(o,a,y){const S=new T.A(o);return a&&(S.data=a),y&&(S.promise=y),S}static convert(o){const a=new T.A(o.message);return a.stack=o.stack,a}report(o,a){o instanceof T.A||(o=L.convert(o));const y=L._makeReportData(o);a&&(a instanceof T.A||(a=L.convert(a)),y.previous=JSON.stringify(L._makeReportData(a))),this.sm.ga.sendEvent("exception",{description:y.msg,fatal:!1}),window.sentry_config.enabled?this._toSentry(o,y):this._toServer(y)}static _makeReportData(o){const a={url:window.location.pathname+window.location.search,referrer:document.referrer,msg:o.message,os:null,ua:null,stack:o.stack,data:null,promise:null,previous:null,axois:{}};return o instanceof T.A&&(a.os=o.os,a.ua=o.user_agent,a.data=o.data,a.promise=o.promise,o.response&&(a.axois.status=typeof o.response.status<"u"?o.response.status:null,a.axois.statusText=typeof o.response.statusText<"u"?o.response.statusText:null),o.config&&(a.axois.url=typeof o.config.url<"u"?o.config.url:null,a.axois.method=typeof o.config.method<"u"?o.config.method:null)),a}_toServer(o){const a=new XMLHttpRequest;a.open("POST","/actions/ar/error/report"),a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.onload=()=>{a.status!==200&&console.error&&console.error("Unable to report error to the server.",a)},o.data&&(o.data=JSON.stringify(o.data)),a.send((0,F.ug)(o))}_toSentry(o,a){const y={tags:{url:a.url},contexts:void 0};o instanceof T.A&&o.previous&&(y.contexts={previous:o.previous}),(0,p.A)().then(S=>{S.captureException(o,y)})}}},8260:(st,H,n)=>{"use strict";n.d(H,{A:()=>p});var T=n(3964),F=n(7968);class p{constructor(r){this.sm=r}init(){this.initElementSpecificModules().then(()=>this.initPageSpecificModules())}async initPageSpecificModules(){if(!(typeof window.is_error<"u"&&window.is_error)){if(p.checkUrlPathStartsWith("/camping/"))return p.checkUrlPathSegment(["groups"],2)?this.sm.loader.load("campsite_groups",[this.sm]):p.checkUrlPathSegment(["campsites-near-me"],2)?this.sm.loader.load("campsites_near_me",[this.sm]):p.checkUrlPathSegment(["map"],2)?this.sm.loader.load("interactive-campsite-map",[this.sm]):this.sm.loader.load("campsite_listing",[this.sm]).then(()=>this.sm.loader.load("campsite_filter",[this.sm]));if(p.checkUrlPathStartsWith("/campsite"))return this.sm.loader.load("campsite",[this.sm]);if(p.checkUrlPathStartsWith("/account"))return this.sm.loader.load("account",[this.sm]);if(p.checkUrlPathStartsWith("/contact"))return this.sm.loader.load("contact",[this.sm])}}async initElementSpecificModules(){const r=[];(0,T.Ub)("form.ar-form").length>0&&r.push(this.loadFormHandler()),r.push(this.sm.loader.load("iframe-loader",[this.sm])),r.push(this.sm.loader.load("html-loader",[this.sm]));const o=(0,T.Ub)(".tabs"),a=[];o.length>0&&(0,F.L5)(()=>n.e(575).then(n.bind(n,7413))).then(({default:C})=>{for(const I of o){const G=new C(I,!1);G.init(),a.push(G)}});const y=(0,T.Ub)(".accordions");y.length>0&&r.push(this.sm.loader.load("accordion",[this.sm,y]));const S=Array.from(document.getElementsByClassName("toc"));S.length>0&&r.push((0,F.L5)(()=>n.e(326).then(n.bind(n,1326))).then(({default:C})=>{this.sm.addModule("toc",new C(this.sm,S)).toc.init()}));const P=(0,T.Ub)(".search-form");if(P.length>0)for(const C of P)r.push(this.sm.loader.load("sayt",[this.sm,C]));document.getElementById("apply-for-listing-form-wrap")&&r.push((0,F.L5)(()=>n.e(771).then(n.bind(n,8771))).then(({default:C})=>{this.sm.addModule("apply_for_listing",new C(this.sm)).apply_for_listing.init(
1)}));const w=(0,T.Ub)(".issuu-publication");if(w.length>0)for(const C of w)r.push((0,F.L5)(()=>n.e(49).then(n.bind(n,6049))).then(({default:I})=>{new I(C).init()}));return Promise.all(r)}async loadFormHandler(){const r=this.sm.getModule("form_handler");return r||(0,F.L5)(()=>n.e(938).then(n.bind(n,7458))).then(({default:o})=>{this.sm.addModule("form_handler",new o(this.sm)).form_handler.init()})}static checkUrlPath(r){return r.test(window.location.pathname)}static checkUrlPathStartsWith(r){return window.location.pathname.indexOf(r)===0}static checkUrlPathSegment(r,o){try{const a=window.location.pathname.split("/")[o];return r.indexOf(a)>-1}catch{return!1}}}},1794:(st,H,n)=>{"use strict";n.d(H,{A:()=>r});var T=n(8528),F=n(5613),p=n(3964),L=n(7968);class r{constructor(a){this._axios=null,this._dirty=!0,this._valid_status_values=["OK","ERROR","VALIDATION_FAILED","REFRESH"],a||(a={}),this._$loader=a.$loader?a.$loader:document.getElementById("loader"),this._loadingStart=a.loadingStart?a.loadingStart:null,this._loadingEnd=a.loadingEnd?a.loadingEnd:null,this._axiosInterceptors()}hasLoadingStartCallback(){return typeof this._loadingStart=="function"}setLoadingStartCallback(a){typeof a=="function"&&(this._dirty=!0,this._loadingStart=a)}hasLoadingEndCallback(){return typeof this._loadingEnd=="function"}setLoadingEndCallback(a){typeof a=="function"&&(this._dirty=!0,this._loadingEnd=a)}_axiosInterceptors(){this._requestFulfilled=a=>(this._$loader&&((0,p.vy)(this._$loader,"fade-out"),(0,p.iQ)(this._$loader,"fade-in")),typeof this._loadingStart=="function"&&this._loadingStart(),a),this._requestRejected=a=>(this._$loader&&((0,p.vy)(this._$loader,"fade-in"),(0,p.iQ)(this._$loader,"fade-out")),typeof this._loadingEnd=="function"&&this._loadingEnd(),Promise.reject(a)),this._responseFulfilled=a=>(this._$loader&&((0,p.vy)(this._$loader,"fade-in"),(0,p.iQ)(this._$loader,"fade-out")),typeof this._loadingEnd=="function"&&this._loadingEnd(),a),this._responseRejected=a=>(this._$loader&&((0,p.vy)(this._$loader,"fade-in"),(0,p.iQ)(this._$loader,"fade-out")),typeof this._loadingEnd=="function"&&this._loadingEnd(),Promise.reject(a))}async getAxios(){return this._axios===null||this._dirty?(this._dirty=!1,(0,L.L5)(()=>n.e(702).then(n.bind(n,702))).then(({default:a})=>(this._axios=a.create(),this._axios.interceptors.request.use(this._requestFulfilled,this._requestRejected),this._axios.interceptors.response.use(this._responseFulfilled,this._responseRejected),this._axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",this._axios)).catch(a=>{throw T.A.instance().errors.report(a),a})):this._axios}async getRequest(a,y,S){return this.getAxios().then(P=>(typeof S>"u"&&(S={}),typeof y<"u"&&(typeof S.params>"u"&&(S.params={}),S.params={...S.params,...y},Object.keys(S.params).length===0&&(S.params=void 0)),P.get(a,S).then(this._responseHandler()).catch(j=>(T.A.instance().errors.report(j),j.response)))).catch(P=>{P&&(T.A.instance().errors.report(P),console.error(P))})}async postRequest(a,y,S,P,j){return typeof P>"u"&&(P=!0),typeof j>"u"&&(j=!0),this.getAxios().then(w=>{typeof S>"u"&&(S={});let C;if(j){if(y instanceof FormData)C=y;else{C=new FormData;for(const I in y)y.hasOwnProperty(I)&&C.append(I,y[I])}P&&!C.has(window.csrfTokenName)&&C.append(window.csrfTokenName,window.csrfTokenValue)}else C=y,P&&typeof C[window.csrfTokenName]>"u"&&(C[window.csrfTokenName]=window.csrfTokenValue);return w.post(a,C,S).then(this._responseHandler()).then(I=>{if(typeof I.data.status<"u"&&this._valid_status_values.indexOf(I.data.status)>-1){if(I.headers["response-type"]="ar",I.data.status!=="ERROR")return I;throw F.A.newError(`Server status: ${I.data.status}`,{response:I})}else return I.headers["response-type"]="cr",I}).catch(I=>(T.A.instance().errors.report(I),I.response))})}async getCSRFToken(){return window.csrfTokenName&&window.csrfTokenValue?{field:window.csrfTokenName,token:window.csrfTokenValue}:this.getRequest("/api/csrf/fetch").then(a=>{if(a&&a.status===200&&a.data.status==="OK")return{field:a.data.data.field,token:a.data.data.token}})}_responseHandler(){return a=>{if(a&&a.status===200){if(a.data.error){if(typeof a.data.error=="boolean")throw F.A.newError(a.data.message,{response:a});return a}else a.data.status==="SESSION_EXPIRED"&&this._handleSessionExpired();return a}else{if(a&&!a.data)throw F.A.newError(`Empty response data during "${a.config.method}" request.`,{response:a,data:a.config});if(!a)throw F.A.newError("No response available.")}throw F.A.newError(`Error ${a.status} during "${a.config.method}" request. Response text: ${a.statusText}`,{response:a,data:a})}}_handleSessionExpired(){const a=T.A.instance();a.account&&a.account.stopSessionPing(),a.getMessageHandler().info("Your session has expired, redirecting you to the login page in 5 seconds...",5e3,()=>{const y=window.location.href;window.location.href="/account/sign-in?r="+encodeURIComponent(y)})}}},8528:(st,H,n)=>{"use strict";n.d(H,{A:()=>se});
1var T=n(1794),F=n(4038),p=n(8260),L=n(8391),r=n(3964),o=n(1317),a=n(3164),y=n(7968);class S{constructor(t){this.$splides=[],this.sm=t}init(){this.clickEvents(),this.initTileSliders()}async initTileSliders(){if(this.$splides=Array.from((0,r.Ub)(".splide:not(.no-global-init)")),this.$splides.length>0){const{default:t}=await(0,y.L5)(()=>n.e(46).then(n.bind(n,6333)));for(const f of this.$splides)new t(f).mount()}}clickEvents(){const t=this;(0,a.Mm)("click","a.campsite-link",function(f){f.preventDefault();const u=(0,r.CF)(this,"href");if(t.sm.tracking_active)return t.sm.tracking.push(["campsiteHit",u,(0,o.bQ)(this,"ar_ref"),()=>{window.location.href=u}]);window.location.href=u}),(0,a.Mm)("click",".nav-link",function(f){f.preventDefault();const u=(0,r.CF)(this,"href");if(t.sm.tracking_active){const A=(0,o.bQ)((0,r.kp)(this,"nav"),"name");t.sm.ga.event("NavLinkClick",A||"Unknown Nav",u)}window.location.href=u}),(0,a.Mm)("click",".website-link",function(f){f.preventDefault();const u=(0,o.bQ)(this,"href"),A=()=>{const N=window.open(u,"_blank");N?(N.opener=null,N.focus()):window.location=u};t.sm.tracking_active?(t.sm.ga.event("website_click","campsite"),t.sm.tracking.push(["officialWebsiteHit",u,(0,o.bQ)(this,"ar_ref"),A])):A()}),(0,a.Mm)("click",".password-visible-icon",function(f){const u=f.delegateTarget,A=(0,r.Lt)("input",(0,r.kp)(u,".control"));(0,r.CF)(A,"type")==="password"?(0,r.CF)(A,"type","text"):(0,r.CF)(A,"type","password");const N=(0,r.qy)(u);(0,r.qy)(u,(0,o.bQ)(u,"icon")),(0,o.XO)(u,"icon",N)})}}var P=n(9509);class j{constructor(t){this.sm=t}async load(t,f,u){const A=this.import(t);return this.resolve(t,A,f,u)}async loadCSS(t){return t=this.sm.config.get("static_url_prefix")+t,this.sm.server.getRequest(t).then(f=>{const u=(0,r.BW)('<link rel="stylesheet" type="text/css" href="">',!0);return(0,r.CF)(u,"href",t),(0,r.BC)(u,(0,r.Lt)("head")),f})}async import(t){switch(t){case"account":return(0,y.L5)(()=>n.e(644).then(n.bind(n,7025)));case"campsite":return(0,y.L5)(()=>Promise.all([n.e(946),n.e(93)]).then(n.bind(n,9870)));case"campsite_groups":return(0,y.L5)(()=>n.e(778).then(n.bind(n,8613)));case"campsites_near_me":return(0,y.L5)(()=>Promise.all([n.e(946),n.e(146)]).then(n.bind(n,9153)));case"campsite_listing":return(0,y.L5)(()=>Promise.all([n.e(946),n.e(834)]).then(n.bind(n,5817)));case"campsite_filter":return(0,y.L5)(()=>Promise.all([n.e(946),n.e(834)]).then(n.bind(n,9264)));case"interactive-campsite-map":return(0,y.L5)(()=>Promise.all([n.e(946),n.e(589)]).then(n.bind(n,7216)));case"contact":return(0,y.L5)(()=>n.e(353).then(n.bind(n,1528)));case"iframe-loader":return(0,y.L5)(()=>n.e(137).then(n.bind(n,645)));case"html-loader":return(0,y.L5)(()=>n.e(137).then(n.bind(n,506)));case"accordion":return(0,y.L5)(()=>n.e(131).then(n.bind(n,3755)));case"sayt":return(0,y.L5)(()=>n.e(756).then(n.bind(n,576)));default:throw new Error("Unknown import: "+t)}}async resolve(t,f,u,A){return(typeof u>"u"||!u)&&(u=[]),f.then(({default:N})=>this.initClass(t,N,u,A))}async initClass(t,f,u,A){(typeof u>"u"||!u)&&(u=[]);const N=new(f.bind.apply(f,[null].concat(u)));this.sm.addModule(t,N);let V;return typeof this.sm.modules[t].init=="function"&&(V=this.sm.modules[t].init()),(!V||!(V instanceof Promise))&&(V=Promise.resolve()),V.then(()=>(typeof A=="function"&&A(t,this.sm.modules[t],this.sm,u),this.sm.modules[t])).then(()=>this.sm.modules[t])}async loadIcon(t){const f=new P.A,u=f.getLocalValue(t);return u||this.sm.server.getRequest(t,null,{responseType:"text"}).then(async A=>(f.setLocalValue(t,A.data),A.data)).catch(A=>{throw new Error(`Error loading icon from url "${t}": ${A}`)})}async mdiIcon(t){const f=(0,o.bQ)(document.getElementById("page-data"),"static_prefix");return this.loadIcon(`${f}/assets/icons/mdi/${t}.svg`)}async brandIcon(t){const f=(0,o.bQ)(document.getElementById("page-data"),"static_prefix");return this.loadIcon(`${f}/assets/icons/brand/${t}.svg`)}}var w=n(2018);class C{constructor(){this.features={}}async supportsWebP(){return this.supportsWebPFeature("lossy")}async supportsWebPFeature(t){if(typeof this.features[t]<"u")return this.features[t];const f={lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"};if(typeof f[t]>"u")throw new Error(`Unknown feature "${t}"`);return new Promise(u=>{const A=new Image;A.onload=()=>{this.features[t]=A.width>0&&A.height>0,u(this.features[t])},A.onerror=()=>{this.features[t]=!1,u(!1)},A.src="data:image/webp;base64,"+f[t]})}}var I=n(3171);const G=class ce{constructor(){this._enabled=!1,this.custom_dimensions={},this.analytics_ids=[window.GA4_ID,window.GA4_ROLL_UP_ID],this.queued_events=[],this.queue_processing=!1,this.excluded_patterns=[/account\/set-password/],typeof window.ga_config<"u"&&(ce.config=Object.assign(ce.config,window.ga_config))}set enabled(t){this._enabled=t,this._enabled&&this.queued_events.length>0&&this.processQueue()}init(){if(this.allowed())for(const t of this.analytics_ids)gtag("config",t,ce.config)}processQueue(){let t;if(!this.queue_processing){for(this.queue_processing=!0;t=this.queued_events.shift();)this.sendEvent(t.action,t.params);this.queue_processing=!1}}set(t){this.custom_dimensions=t}allowed(){if(!this._enabled)return!1;for(const t of this.excluded_patterns)if(t.test(window.location.href))return!1;return!0}event(t,f,u){const A={};typeof f<"u"&&(A.event_category=f),typeof u<"u"&&(A.event_label=u),this.sendEvent(t,A)}pageView(t,f,u){this.sendEvent("page_view",{page_title:t||void 0,page_location:f||void 0,page_path:u||void 0})}sendEvent(t,f,u=!0){u&&(this._enabled||this.queued_events.push({action:t,params:f}),!this.allowed())||(typeof f=="object"?f.send_to=this.analytics_ids:f={send_to:this.analytics_ids},Object.keys(this.custom_dimensions).length>0&&(f=Object.assign(f,this.custom_dimensions)),(0,I.hx)(()=>{gtag("event",t,f)}))}sendAdConversion(t){this.sendEvent("conversion",{send_to:window.AW_ACCOUNT_ID+"/"+t})}};G.config={send_page_view:!0,anonymize_ip:!0,link_attribution:!1,allow_display_features:!1,transport_type:"beacon"};let q=G;class at{constructor(t){this.mutation_observer=null,this.supports_webp=!1,this.sm=t}
1async init(){this.supports_webp=await this.sm.browser_support.supportsWebP(),(0,r.iQ)(document.getElementsByTagName("body")[0],this.supports_webp?"webp":"no-webp"),this.processImages(),this.observeDOM()}processImages(t){typeof t>"u"&&(t=document.getElementsByTagName("body")[0]);const f=(0,r.Ub)("img.dynamic-image",t);for(const u of f)this.maybeSwapImages(u)}maybeSwapImages(t){let f="",u="",A="",N="";(0,r.nB)(t,"dynamic-image")&&(f=(0,o.bQ)(t,"webp_srcset",!0),u=(0,o.bQ)(t,"jpg_srcset",!0),(f||u)&&((0,r.CF)(t,"data-srcset",this.supports_webp?f:u),(0,r.K$)(t,"data-webp_srcset"),(0,r.K$)(t,"data-jpg_srcset"),(0,r.vy)(t,"dynamic-image")),A=(0,o.bQ)(t,"webp_src",!0),N=(0,o.bQ)(t,"jpg_src",!0),(A||N)&&((0,r.CF)(t,"data-src",this.supports_webp?A:N),(0,r.K$)(t,"data-webp_src"),(0,r.K$)(t,"data-jpg_src"),(0,r.vy)(t,"dynamic-image")))}observeDOM(){const t=document.getElementsByTagName("body")[0];this.mutation_observer=new MutationObserver(this._domChanged.bind(this)),this.mutation_observer.observe(t,{attributes:!0,attributeFilter:["data-src","data-srcset","data-jpg_srcset","data-webp_srcset","data-jpg_src","data-webp_src"],childList:!0,subtree:!0})}_domChanged(t,f){for(const u of t)if(u.type==="childList")for(const A of u.addedNodes)["IMG"].indexOf(A.tagName)>-1&&this.maybeSwapImages(A);else if(u.type==="attributes"){const A=u.target;this.maybeSwapImages(A)}}}var tt=Object.getOwnPropertyNames,vt=(D,t)=>function(){return t||(0,D[tt(D)[0]])((t={exports:{}}).exports,t),t.exports},Nt=vt({"/Users/matt/Documents/projects/alan-rogers/node_modules/lazysizes/lazysizes.js"(D,t){(function(f,u){var A=u(f,f.document,Date);f.lazySizes=A,typeof t=="object"&&t.exports&&(t.exports=A)})(typeof window<"u"?window:{},function(u,A,N){"use strict";var V,M;if(function(){var R,k={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};M=u.lazySizesConfig||u.lazysizesConfig||{};for(R in k)R in M||(M[R]=k[R])}(),!A||!A.getElementsByClassName)return{init:function(){},cfg:M,noSupport:!0};var ot=A.documentElement,Ct=u.HTMLPictureElement,ct="addEventListener",W="getAttribute",Ot=u[ct].bind(u),ft=u.setTimeout,Kt=u.requestAnimationFrame||ft,Vt=u.requestIdleCallback,Yt=/^picture$/i,le=["load","error","lazyincluded","_lazyloaded"],Et={},Xt=Array.prototype.forEach,gt=function(R,k){return Et[k]||(Et[k]=new RegExp("(\\s|^)"+k+"(\\s|$)")),Et[k].test(R[W]("class")||"")&&Et[k]},Dt=function(R,k){gt(R,k)||R.setAttribute("class",(R[W]("class")||"").trim()+" "+k)},de=function(R,k){var J;(J=gt(R,k))&&R.setAttribute("class",(R[W]("class")||"").replace(J," "))},fe=function(R,k,J){var ht=J?ct:"removeEventListener";J&&fe(R,k),le.forEach(function(ut){R[ht](ut,k)})},Zt=function(R,k,J,ht,ut){var X=A.createEvent("Event");return J||(J={}),J.instance=V,X.initEvent(k,!ht,!ut),X.detail=J,R.dispatchEvent(X),X},ue=function(R,k){var J;!Ct&&(J=u.picturefill||M.pf)?(k&&k.src&&!R[W]("srcset")&&R.setAttribute("srcset",k.src),J({reevaluate:!0,elements:[R]})):k&&k.src&&(R.src=k.src)},qt=function(R,k){return(getComputedStyle(R,null)||{})[k]},me=function(R,k,J){for(J=J||R.offsetWidth;J<M.minSize&&k&&!R._lazysizesWidth;)J=k.offsetWidth,k=k.parentNode;return J},te=function(){var R,k,J=[],ht=[],ut=J,X=function(){var nt=ut;for(ut=J.length?ht:J,R=!0,k=!1;nt.length;)nt.shift()();R=!1},pt=function(nt,lt){R&&!lt?nt.apply(this,arguments):(ut.push(nt),k||(k=!0,(A.hidden?ft:Kt)(X)))};return pt._lsFlush=X,pt}(),re=function(R,k){return k?function(){te(R)}:function(){var J=this,ht=arguments;te(function(){R.apply(J,ht)})}},Ce=function(R){var k,J=0,ht=M.throttleDelay,ut=M.ricTimeout,X=function(){k=!1,J=N.now(),R()},pt=Vt&&ut>49?function(){Vt(X,{timeout:ut}),ut!==M.ricTimeout&&(ut=M.ricTimeout)}:re(function(){ft(X)},!0);return function(nt){var lt;(nt=nt===!0)&&(ut=33),!k&&(k=!0,lt=ht-(N.now()-J),lt<0&&(lt=0),nt||lt<9?pt():ft(pt,lt))}},ge=function(R){var k,J,ht=99,ut=function(){k=null,R()},X=function(){var pt=N.now()-J;pt<ht?ft(X,ht-pt):(Vt||ut)(ut)};return function(){J=N.now(),k||(k=ft(X,ht))}}
1,pe=function(){var R,k,J,ht,ut,X,pt,nt,lt,xt,It,jt,xe=/^img$/i,_e=/^iframe$/i,Se="onscroll"in u&&!/(gle|ing)bot/.test(navigator.userAgent),Le=0,ee=0,Mt=0,Jt=-1,ye=function(_){Mt--,(!_||Mt<0||!_.target)&&(Mt=0)},ve=function(_){return jt==null&&(jt=qt(A.body,"visibility")=="hidden"),jt||!(qt(_.parentNode,"visibility")=="hidden"&&qt(_,"visibility")=="hidden")},Oe=function(_,K){var it,yt=_,bt=ve(_);for(nt-=K,It+=K,lt-=K,xt+=K;bt&&(yt=yt.offsetParent)&&yt!=A.body&&yt!=ot;)bt=(qt(yt,"opacity")||1)>0,bt&&qt(yt,"overflow")!="visible"&&(it=yt.getBoundingClientRect(),bt=xt>it.left&&lt<it.right&&It>it.top-1&&nt<it.bottom+1);return bt},Ae=function(){var _,K,it,yt,bt,wt,kt,Ut,Rt,zt,Bt,Gt,Lt=V.elements;if((ht=M.loadMode)&&Mt<8&&(_=Lt.length)){for(K=0,Jt++;K<_;K++)if(!(!Lt[K]||Lt[K]._lazyRace)){if(!Se||V.prematureUnveil&&V.prematureUnveil(Lt[K])){ne(Lt[K]);continue}if((!(Ut=Lt[K][W]("data-expand"))||!(wt=Ut*1))&&(wt=ee),zt||(zt=!M.expand||M.expand<1?ot.clientHeight>500&&ot.clientWidth>500?500:370:M.expand,V._defEx=zt,Bt=zt*M.expFactor,Gt=M.hFac,jt=null,ee<Bt&&Mt<1&&Jt>2&&ht>2&&!A.hidden?(ee=Bt,Jt=0):ht>1&&Jt>1&&Mt<6?ee=zt:ee=Le),Rt!==wt&&(X=innerWidth+wt*Gt,pt=innerHeight+wt,kt=wt*-1,Rt=wt),it=Lt[K].getBoundingClientRect(),(It=it.bottom)>=kt&&(nt=it.top)<=pt&&(xt=it.right)>=kt*Gt&&(lt=it.left)<=X&&(It||xt||lt||nt)&&(M.loadHidden||ve(Lt[K]))&&(k&&Mt<3&&!Ut&&(ht<3||Jt<4)||Oe(Lt[K],wt))){if(ne(Lt[K]),bt=!0,Mt>9)break}else!bt&&k&&!yt&&Mt<4&&Jt<4&&ht>2&&(R[0]||M.preloadAfterLoad)&&(R[0]||!Ut&&(It||xt||lt||nt||Lt[K][W](M.sizesAttr)!="auto"))&&(yt=R[0]||Lt[K])}yt&&!bt&&ne(yt)}},_t=Ce(Ae),Ee=function(_){var K=_.target;if(K._lazyCache){delete K._lazyCache;return}ye(_),Dt(K,M.loadedClass),de(K,M.loadingClass),fe(K,be),Zt(K,"lazyloaded")},Me=re(Ee),be=function(_){Me({target:_.target})},Te=function(_,K){var it=_.getAttribute("data-load-mode")||M.iframeLoadMode;it==0?_.contentWindow.location.replace(K):it==1&&(_.src=K)},Ie=function(_){var K,it=_[W](M.srcsetAttr);(K=M.customMedia[_[W]("data-media")||_[W]("media")])&&_.setAttribute("media",K),it&&_.setAttribute("srcset",it)},Ne=re(function(_,K,it,yt,bt){var wt,kt,Ut,Rt,zt,Bt;(zt=Zt(_,"lazybeforeunveil",K)).defaultPrevented||(yt&&(it?Dt(_,M.autosizesClass):_.setAttribute("sizes",yt)),kt=_[W](M.srcsetAttr),wt=_[W](M.srcAttr),bt&&(Ut=_.parentNode,Rt=Ut&&Yt.test(Ut.nodeName||"")),Bt=K.firesLoad||"src"in _&&(kt||wt||Rt),zt={target:_},Dt(_,M.loadingClass),Bt&&(clearTimeout(J),J=ft(ye,2500),fe(_,be,!0)),Rt&&Xt.call(Ut.getElementsByTagName("source"),Ie),kt?_.setAttribute("srcset",kt):wt&&!Rt&&(_e.test(_.nodeName)?Te(_,wt):_.src=wt),bt&&(kt||Rt)&&ue(_,{src:wt})),_._lazyRace&&delete _._lazyRace,de(_,M.lazyClass),te(function(){var Gt=_.complete&&_.naturalWidth>1;(!Bt||Gt)&&(Gt&&Dt(_,M.fastLoadedClass),Ee(zt),_._lazyCache=!0,ft(function(){"_lazyCache"in _&&delete _._lazyCache},9)),_.loading=="lazy"&&Mt--},!0)}),ne=function(_){if(!_._lazyRace){var K,it=xe.test(_.nodeName),yt=it&&(_[W](M.sizesAttr)||_[W]("sizes")),bt=yt=="auto";(bt||!k)&&it&&(_[W]("src")||_.srcset)&&!_.complete&&!gt(_,M.errorClass)&&gt(_,M.lazyClass)||(K=Zt(_,"lazyunveilread").detail,bt&&he.updateElem(_,!0,_.offsetWidth),_._lazyRace=!0,Mt++,Ne(_,K,bt,yt,it))}},Fe=ge(function(){M.loadMode=3,_t()}),we=function(){M.loadMode==3&&(M.loadMode=2),Fe()},ae=function(){if(!k){if(N.now()-ut<999){ft(ae,999);return}k=!0,M.loadMode=3,_t(),Ot("scroll",we,!0)}};return{_:function(){ut=N.now(),V.elements=A.getElementsByClassName(M.lazyClass),R=A.getElementsByClassName(M.lazyClass+" "+M.preloadClass),Ot("scroll",_t,!0),Ot("resize",_t,!0),Ot("pageshow",function(_){if(_.persisted){var K=A.querySelectorAll("."+M.loadingClass);K.length&&K.forEach&&Kt(function(){K.forEach(function(it){it.complete&&ne(it)})})}}),u.MutationObserver?new MutationObserver(_t).observe(ot,{childList:!0,subtree:!0,attributes:!0}):(ot[ct]("DOMNodeInserted",_t,!0),ot[ct]("DOMAttrModified",_t,!0),setInterval(_t,999)),Ot("hashchange",_t,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(_){A[ct](_,_t,!0)}),/d$|^c/.test(A.readyState)?ae():(Ot("load",ae),A[ct]("DOMContentLoaded",_t),ft(ae,2e4)),V.elements.length?(Ae(),te._lsFlush()):_t()},checkElems:_t,unveil:ne,_aLSL:we}}(),he=function(){var R,k=re(function(X,pt,nt,lt){var xt,It,jt;if(X._lazysizesWidth=lt,lt+="px",X.setAttribute("sizes",lt),Yt.test(pt.nodeName||""))for(xt=pt.getElementsByTagName("source"),It=0,jt=xt.length;It<jt;It++)xt[It].setAttribute("sizes",lt);nt.detail.dataAttr||ue(X,nt.detail)}),J=function(X,pt,nt){var lt,xt=X.parentNode;xt&&(nt=me(X,xt,nt),lt=Zt(X,"lazybeforesizes",{width:nt,dataAttr:!!pt}),lt.defaultPrevented||(nt=lt.detail.width,nt&&nt!==X._lazysizesWidth&&k(X,xt,lt,nt)))},ht=function(){var X,pt=R.length;if(pt)for(X=0;X<pt;X++)J(R[X])},ut=ge(ht);return{_:function(){R=A.getElementsByClassName(M.autosizesClass),Ot("resize",ut)},checkElems:ut,updateElem:J}}(),oe=function(){!oe.i&&A.getElementsByClassName&&(oe.i=!0,he._(),pe._())};return ft(function(){M.init&&oe()}),V={cfg:M,autoSizer:he,loader:pe,init:oe,uP:ue,aC:Dt,rC:de,hC:gt,fire:Zt,gW:me,rAF:te},V})}});const At=Nt();At.cfg.init=!1,At.cfg.loadMode=1,At.cfg.lazyClass="lazy";class Ft{init(){document.addEventListener("lazybeforeunveil",function(t){const f=t.target,u=f.getAttribute("data-bg");u&&(f.style.backgroundImage="url("+u+")")}),window.addEventListener("beforeprint",()=>{this.printHandler()}),At.init()}printHandler(){const t=document.getElementsByClassName(At.cfg.lazyClass);let f,u;for(f=0,u=t.length;f<u;f++)At.loader.unveil(t[f])}resetImagesInContext(t){for(const f of(0,r.Ub)(".lazyloaded",t))(0,r.vy)(f,"lazyloaded"),(0,r.vy)(f,"lazyautosizes"),(0,r.iQ)(f,"lazy")}loadAll(t){t&&this.resetImagesInContext(t);for(const f of(0,r.Ub)(".lazy:not(.lazyloaded)"))this.load(f)}load(t){t&&(0,I.hx)(()=>{At.loader.unveil(t)})}}const b=2e3,U=25;
1class ${constructor(t){this.$queued_images=[],this.images={},this.interval=null,this.monitoring=!1,this.poll_count=0,this.sm=t}init(){this.updateQueuedImages()}updateQueuedImages(t){typeof t>"u"&&(t=document.getElementsByTagName("body")[0]);const f=[...(0,r.Ub)("img.transform-queued",t)];if(this.$queued_images.length>0)for(let u=0;u<f.length;u++)this.$queued_images.indexOf(f[u])>-1&&f.splice(u,1);if(f.length>0){this.poll_count=0,this.$queued_images=[...this.$queued_images,...f];for(const u of f){let A=(0,o.bQ)(u,"transform_job_id");if(A)if(!Number.isInteger(A)&&A.indexOf(",")>-1)for(const N of A.split(","))this.images[N]||(this.images[N]=[]),this.images[N].push(u);else A=String(A),this.images[A]?this.images[A].push(u):this.images[A]=[u]}}!this.monitoring&&this.$queued_images.length>0&&this._startMonitoring()}_startMonitoring(){this.monitoring||(this.monitoring=!0,this.interval=setInterval(async()=>{const t=await this._doAssetsExist();if(t){for(const f in t)for(const u of t[f])if(this.images[u])for(const A of this.images[u])this._updateImageElement(A,f,parseInt(u,10));this.poll_count>=U&&this.stopMonitoring()}},b))}stopMonitoring(){clearInterval(this.interval),this.monitoring=!1}async _doAssetsExist(){const t=Object.keys(this.images).filter((f,u,A)=>A.indexOf(f)===u);if(this.poll_count++,t.length>0)return this.sm.server.getRequest("/actions/ar/image-transform/status",{ids:t.join(",")}).then(f=>f.data.status==="OK"?f.data.data:(console.error("Unexpected response while polling server for transformed images."),!1)).catch(f=>(console.error("Exception while polling server for transformed images.",f),!1))}_updateImageElement(t,f,u){if(f!=="processed"&&f!=="invalid")return;(0,r.vy)(t,"transform-queued");const A=(0,r.CF)(t,"data-transform_job_id");let N=[];A!==null&&(N=A.split(","));for(let ct=0,W=N.length;ct<W;ct++)N[ct]===""+u&&N.splice(ct,1);if(N.length>0){(0,r.CF)(t,"data-transform_job_id",N.join(","));return}else(0,o.Wv)(t,"transform_job_id",!0);const V=(0,o.bQ)(t,"transformed_src");V&&((0,r.CF)(t,"src",V),(0,r.K$)(t,"data-transformed_src"));const M=(0,o.bQ)(t,"transformed_srcset");M&&((0,r.CF)(t,"srcset",M),(0,r.K$)(t,"data-transformed_srcset"));const ot=(0,o.bQ)(t,"transformed_webp_srcset");ot&&((0,r.CF)(t,"data-webp_srcset",ot),(0,r.K$)(t,"data-transformed_webp_srcset"));const Ct=(0,o.bQ)(t,"transformed_jpg_srcset");Ct&&((0,r.CF)(t,"data-jpg_srcset",Ct),(0,r.K$)(t,"data-transformed_jpg_srcset")),this.removeQueuedImage(t)}removeQueuedImage(t){const f=this.$queued_images.indexOf(t);f>-1&&this.$queued_images.splice(f,1);for(const[u,A]of Object.entries(this.images)){const N=A.indexOf(t);N>-1&&(this.images[u].splice(N,1),this.images[u].length===0&&delete this.images[u])}Object.keys(this.images).length===0&&this.$queued_images.length===0&&this.stopMonitoring()}}class m{constructor(t){this.lazy_loader=new Ft,this.modern_images=new at(t),this.async_transformer=new $(t)}
1async init(){return this.modern_images.init().then(()=>{this.lazy_loader.init(),this.async_transformer.init()})}async resetContext(t){this.modern_images.processImages(t),this.lazy_loader.loadAll(t),await Promise.all([window.sm.getModule("iframe-loader").addEmbedsFromContext(t),window.sm.getModule("html-loader").addEmbedsFromContext(t)])}}var x=n(2036);class B{constructor(){this._confirm_noty_instances={},this.Noty=null,this.noty_defaults={theme:"ar",layout:"topRight"}}async info(t,f,u){typeof f>"u"&&(f=!1),typeof u!="function"&&(u=()=>{});const A={text:(0,x.HA)(t),type:"info",timeout:f,closeWith:["button"],callbacks:{afterClose:u}},N=await this.newNotyInstance(A);return N.show(),N}async error(t,f,u){typeof f>"u"&&(f=!1),typeof u!="function"&&(u=()=>{});const A=await this.newNotyInstance({text:(0,x.HA)(t),type:"error",timeout:f,closeWith:["button"],callbacks:{afterClose:u}});return A.show(),A}async confirm(t,f,u){u||(u=(0,x.bO)());const A=[{text:"OK",class_attr:"button is-primary",resolve:!0,cb:()=>{}},{text:"Cancel",class_attr:"button",resolve:!1,cb:()=>{}}];if(!f)f=A;else for(const[V,M]of f.entries())A[V]&&(f[V]=Object.assign(A[V],M));const N=await this.loadNotyConstructor();return new Promise(async V=>{const M=()=>{const Ct=[];for(const ct of f)Ct.push(N.button(ct.text,ct.class_attr,()=>{this._confirm_noty_instances[u]&&(this._confirm_noty_instances[u].close(),delete this._confirm_noty_instances[u]),typeof ct.cb=="function"&&ct.cb(),V(ct.resolve)}));return Ct},ot=await this.newNotyInstance({text:(0,x.HA)(t),closeWith:"button",buttons:M()});ot.show(),this._confirm_noty_instances[u]=ot})}async prompt(t,f,u,A,N){A||(A="OK"),N||(N="Cancel"),u||(u=(0,r.BW)('<input class="noty-input" type="text" value="">')),(0,r.CF)(u,"value",f);const V=await this.loadNotyConstructor();return new Promise(M=>this.newNotyInstance({text:(0,x.HA)(t)+u.outerHTML,closeWith:"button",buttons:[V.button(A,"button is-primary",ot=>{const ct=(0,r.Lt)("input.noty-input","layoutDom"in ot?ot.layoutDom:void 0).value;ot.close(),M({ok:!0,text:ct})}),V.button(N,"button",ot=>{ot.close(),M({ok:!1,text:f})})]}).then(ot=>(ot.show(),ot)))}getNotyConfirmInstanceById(t){return this._confirm_noty_instances[t]?this._confirm_noty_instances[t]:null}async loadNotyConstructor(){return this.Noty===null&&await(0,y.L5)(()=>Promise.all([n.e(538),n.e(188)]).then(n.bind(n,538))).then(({default:t})=>(this.Noty=t,t.overrideDefaults(this.noty_defaults),this.Noty)),this.Noty}async newNotyInstance(t){const f=await this.loadNotyConstructor();return new f(t)}async clearAllVisibleMessages(){return(await this.loadNotyConstructor()).closeAll()}}var z=n(5613);class Z{constructor(t){this._$tpl_el=null,this._tpl=f=>"",this.enabled=!1,this.$widgets=[],this.storage=new P.A,this.sm=t}init(){if(this.uiEvents(),this.$widgets=Array.from((0,r.Ub)(".dark-mode-widget")),!window.matchMedia||this.$widgets.length===0)return;const t=window.matchMedia("(prefers-color-scheme: dark)"),f=this.recallState();f!==null?this.enabled=f:this.enabled=t.matches;const u=A=>(this.enabled=A.matches,this.handleModeChange(),this.rememberState(),this.updateWidgets());this.handleModeChange(),this.updateWidgets().then(()=>{try{t.addEventListener("change",u)}catch{}})}uiEvents(){(0,a.Mm)("click",".dark-mode-icon",t=>(t.preventDefault(),this.enabled=!this.enabled,this.handleModeChange(),this.rememberState(),this.updateWidgets()),(0,r.Lt)(".main-nav-top",document.body))}async updateWidgets(){const[t,f]=await Promise.all([this.sm.getEJS(),this.enabled?this.sm.loader.mdiIcon("weather-night"):this.sm.loader.mdiIcon("weather-sunny")]);if(this._$tpl_el===null){if(this._$tpl_el=document.getElementById("dark-mode-widget-tpl"),!this._$tpl_el)throw z.A.newError("No dark mode widget template found.");this._tpl=t.compile(this._$tpl_el.innerText)}const u=this._tpl({icon_src:f});for(const A of this.$widgets)A.innerHTML=u}handleModeChange(){if(this.enabled){if(document.getElementById("dark-mode-css")===null){const t=document.createElement("link");t.rel="stylesheet",t.href=window.dark_mode_css_url,t.id="dark-mode-css",document.head.appendChild(t)}(0,r.iQ)(document.body,"dark")}else(0,r.vy)(document.body,"dark")}rememberState(){this.storage.setLocalValue("dark_mode",this.enabled?"1":"0")}recallState(){return this.storage.getLocalValue("dark_mode")==="1"}}var Y=n(9480),s=Object.create,h=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=(D,t)=>(t=Symbol[D])?t:Symbol.for("Symbol."+D),c=D=>{throw TypeError(D)},v=(D,t,f)=>t in D?h(D,t,{enumerable:!0,configurable:!0,writable:!0,value:f}):D[t]=f,g=(D,t)=>h(D,"name",{value:t,configurable:!0}),E=D=>[,,,s(D?.[l("metadata")]??null)],Pt=["class","method","getter","setter","accessor","field","value","get","set"],Tt=D=>D!==void 0&&typeof D!="function"?c("Function expected"):D,Ht=(D,t,f,u,A)=>({kind:Pt[D],name:t,metadata:u,addInitializer:N=>f._?c("Already initialized"):A.push(Tt(N||null))}),Qt=(D,t)=>v(t,l("metadata"),D[3]),et=(D,t,f,u)=>{for(var A=0,N=D[t>>1],V=N&&N.length;A<V;A++)t&1?N[A].call(f):u=N[A].call(f,u);return u},Q=(D,t,f,u,A,N)=>{var V,M,ot,Ct,ct,W=t&7,Ot=!!(t&8),ft=!!(t&16),Kt=W>3?D.length+1:W?Ot?1:2:0,Vt=Pt[W+5],Yt=W>3&&(D[Kt-1]=[]),le=D[Kt]||(D[Kt]=[]),Et=W&&(!ft&&!Ot&&(A=A.prototype),W<5&&(W>3||!ft)&&i(W<4?A:{get[f](){return e(this,N)},set[f](gt){return d(this,N,gt)}},f));W?ft&&W<4&&g(N,(W>2?"set ":W>1?"get ":"")+f):g(A,f);for(var Xt=u.length-1;Xt>=0;Xt--)Ct=Ht(W,f,ot={},D[3],le),W&&(Ct.static=Ot,Ct.private=ft,ct=Ct.access={has:ft?gt=>mt(A,gt):gt=>f in gt},W^3&&(ct.get=ft?gt=>(W^1?e:O)(gt,A,W^4?N:Et.get):gt=>gt[f]),W>2&&(ct.set=ft?(gt,Dt)=>d(gt,A,Dt,W^4?N:Et.set):(gt,Dt)=>gt[f]=Dt)),M=(0,u[Xt])(W?W<4?ft?N:Et[Vt]:W>4?void 0:{get:Et.get,set:Et.set}:A,Ct),ot._=1,W^4||M===void 0?Tt(M)&&(W>4?Yt.unshift(M):W?ft?N=M:Et[Vt]=M:A=M):typeof M!="object"||M===null?c("Object expected"):(Tt(V=M.get)&&(Et.get=V),Tt(V=M.set)&&(Et.set=V),Tt(V=M.init)&&Yt.unshift(V));return W||Qt(D,A),Et&&h(A,f,Et),ft?W^4?N:Et:A},rt=(D,t,f)=>t.has(D)||c("Cannot "+f),mt=(D,t)=>Object(t)!==t?c('Cannot use the "in" operator on this value'):D.has(t),e=(D,t,f)=>(rt(D,t,"read from private field"),f?f.call(D):t.get(D)),d=(D,t,f,u)=>(rt(D,t,"write to private field"),u?u.call(D,f):t.set(D,f),f),O=(D,t,f)=>(rt(D,t,"access private method"),f),dt,St;dt=[(0,Y.V)()];let $t=class Wt{constructor(){this.modules={}
1,this.config=L.A.instance(),this.errors=new F.A(this),this.loader=new j(this),this.server=new T.A,this.router=new p.A(this),this.tracking=[],this.tracking_active=!1,this.ga=new q,this.browser_support=new C,this.cookie_consent=new w.A(this),this.images=new m(this),this.account=null,this.notifications=null,this._ejs=null,this._modal=null,this.adverts=null,this.global_events=new S(this),this.message_handler=new B,this.dark_mode=new Z(this)}static instance(){return Wt._instance===null&&(Wt._instance=new Wt,window.sm=Wt._instance,Wt._instance.init()),Wt._instance}init(){this.dark_mode.init(),this.router.init(),this.errors.init(),this.images.init(),w.A.events.on("post-init",()=>{w.A.events.on("tracking-tags-allowed",()=>{this.ga.enabled=!0,this.ga.init()},!0)},!0),window.addEventListener("load",()=>{this.cookie_consent.init().then(()=>{this.cookie_consent.isCategoryAllowed("tracking")&&this.config.get("tracking_enabled")&&(0,y.L5)(()=>n.e(60).then(n.bind(n,456))).then(({default:t})=>{this.tracking=new t(this,Array.isArray(this.tracking)?this.tracking:[]),this.tracking.init(),this.tracking_active=!0}),this.cookie_consent.isCategoryAllowed("targeting")&&this.config.get("adverts_enabled")&&(0,y.L5)(()=>n.e(8).then(n.bind(n,6906))).then(({default:t})=>{this.adverts=new t(this),this.adverts.init()})}),Promise.all([(0,y.L5)(()=>Promise.all([n.e(538),n.e(188)]).then(n.bind(n,8019))),(0,y.L5)(()=>Promise.all([n.e(538),n.e(188)]).then(n.bind(n,3474))),(0,y.L5)(()=>Promise.all([n.e(538),n.e(188)]).then(n.bind(n,9161))),(0,y.L5)(()=>Promise.all([n.e(538),n.e(188)]).then(n.bind(n,4915))),(0,y.L5)(()=>Promise.all([n.e(538),n.e(188)]).then(n.bind(n,6709))),(0,y.L5)(()=>Promise.all([n.e(538),n.e(188)]).then(n.bind(n,243)))]).then(([{default:t},{default:f},{default:u},{default:A},{default:N},{default:V}])=>{this.release_monitor=new V,this.nav_bar=new t(this),this.scroll_to_top=new f,this.login_widget=new u(this),this.print_handler=new A(this),this.notifications=new N(this),this.release_monitor.init(),this.nav_bar.init(),this.scroll_to_top.init(),this.login_widget.init(),this.print_handler.init(),this.notifications.init()}),this.global_events.init()})}async getEJS(){return this._ejs===null?(0,y.L5)(()=>n.e(437).then(n.bind(n,9246))).then(({default:t})=>(this._ejs=t,this._ejs)):this._ejs}addModule(t,f){return this.modules[t]=f,this.modules}getModule(t){return this.modules[t]?this.modules[t]:null}getMessageHandler(){return this.message_handler}async getModal(){return this._modal===null?(0,y.L5)(()=>Promise.all([n.e(538),n.e(188)]).then(n.bind(n,2592))).then(({default:t})=>(this._modal=new t,this._modal.init(),this._modal)):this._modal}};St=E(null),$t=Q(St,0,"SiteManager",dt,$t),$t._instance=null,et(St,1,$t);let se=$t},2036:(st,H,n)=>{"use strict";n.d(H,{$J:()=>$,AS:()=>L,HA:()=>C,J1:()=>a,JO:()=>y,LK:()=>r,VG:()=>At,bO:()=>q,cG:()=>P,ew:()=>G,gR:()=>w,i0:()=>o,j6:()=>U,kf:()=>j,oK:()=>I,q5:()=>Nt,ug:()=>Ft});var T=n(2021);let F=null;function p(){return Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.documentElement.clientWidth)}function L(m){if(!m)return!1;const x=m.getBoundingClientRect().left,B=m.getBoundingClientRect().top,z=Math.max(document.documentElement.clientWidth,window.innerWidth||0),Z=Math.max(document.documentElement.clientHeight,window.innerHeight||0),Y=m.clientWidth,s=m.clientHeight;return B<Z&&B+s>0&&x<z&&x+Y>0}function r(m,x,B){return typeof x>"u"&&(x=null),typeof B>"u"&&(B=!1),(F===null||B)&&(F=y(window.location.search.substring(1))),F[m]?F[m]:x}function o(){return window.location.hash?window.location.hash.substring(1):""}function a(m){Array.isArray(m)||(m=[m]);const x=o();for(let B=0;B<m.length;B++)if(x.indexOf(m[B])>-1)return m[B];return!1}function y(m){return T.A.parse(m,{arrayFormat:"bracket"})}function S(m){return m.map(P)}function P(m){return m===""?0:parseInt(m,10)}function j(m){return!isNaN(parseFloat(m))&&isFinite(m)}function w(m,x){return m.indexOf(x)!==-1}function C(m,x){if(typeof m>"u"||m===null)return"";const B=x||typeof x>"u"?"<br />":"<br>";return(m+"").replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g,"$1"+B+"$2")}function I(){let m="Unknown";return navigator.userAgent.indexOf("Win")!==-1&&(m="Windows"),navigator.userAgent.indexOf("Mac")!==-1&&(m="Macintosh"),navigator.userAgent.indexOf("Linux")!==-1&&(m="Linux"),navigator.userAgent.indexOf("Android")!==-1&&(m="Android"),navigator.userAgent.indexOf("like Mac")!==-1&&(m="iOS"),m}function G(){return navigator.userAgent}function q(){let m=new Date().getTime(),x=performance&&performance.now&&performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(B){let z=Math.random()*16;return m>0?(z=(m+z)%16|0,m=Math.floor(m/16)):(z=(x+z)%16|0,x=Math.floor(x/16)),(B==="x"?z:z&3|8).toString(16)})}function at(m){return m.replace(/(<([^>]+)>)/ig,"")}function tt(m){const x=document.createElement("textarea");return x.innerHTML=m,x.value}
1function vt(){const m=document.createElement("fake_element"),x={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(const B in x)if(m.style[B]!==void 0)return x[B];return""}function Nt(){const m=document.createElement("fake_element"),x={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(const B in x)if(m.style[B]!==void 0)return x[B];return""}function At(m,x){if(window.scrollTo){const B=m.toFixed(),z=function(){window.scrollY.toFixed()===B&&(window.removeEventListener("scroll",z),typeof x=="function"&&x())};window.addEventListener("scroll",z),z(),window.scrollTo({top:m,behavior:"smooth"})}else document.body.scrollTop=0,document.documentElement.scrollTop=0,typeof x=="function"&&x()}function Ft(m){let x="";for(const B in m)m.hasOwnProperty(B)&&(x.length>0&&(x+="&"),x+=encodeURI(B+"="+m[B]));return x}let b=null;function U(m){const x="https://maps.googleapis.com/maps/api/js",B=["channel","client","key","language","region","v"];return typeof m>"u"&&(m={}),b=b||new Promise(function(z,Z){const Y=setTimeout(function(){window.__googleMapsApiOnLoadCallback=function(){},Z(new Error("Could not load the Google Maps API"))},m.timeout||1e4);window.__googleMapsApiOnLoadCallback=function(){Y!==null&&clearTimeout(Y),z(window.google.maps),delete window.__googleMapsApiOnLoadCallback};const s=document.createElement("script"),h=["callback=__googleMapsApiOnLoadCallback"];B.forEach(function(i){m[i]&&h.push(`${i}=${m[i]}`)}),m.libraries&&m.libraries.length&&h.push(`libraries=${m.libraries.join(",")}`),s.src=`${m.apiUrl||x}?${h.join("&")}`,document.body.appendChild(s)}),b}function $(m,x){"requestIdleCallback"in window?requestIdleCallback(m,x??null):"requestAnimationFrame"in window?requestAnimationFrame(m):setTimeout(m,0)}},9480:(st,H,n)=>{"use strict";n.d(H,{V:()=>T});function T(){return F=>{}}},886:(st,H,n)=>{"use strict";n.d(H,{A:()=>T});class T{constructor(p){this._unknown_error="An unknown error occurred",this.sm=p}errorHandler(p){return p.response?this.displayError("RESPONSE",p.message?p.message:this._unknown_error,p.response.status):p.request?this.displayError("REQUEST",p.message?p.message:this._unknown_error,0):this.displayError("REQUEST",p.message,0),this.sm.errors.report(p),p}displayError(p,L,r){r?r="("+r+") ":r="";const o=`Server Error: [${p}] ${r}${L}`;return this.sm.getMessageHandler().error(o)}}},2018:(st,H,n)=>{"use strict";n.d(H,{A:()=>P});var T=n(2066),F=n(3964),p=n(3164),L=n(6768);class r extends L.A{}var o=n(7968),a=n(3171),y=n(5613);const S=class ie{constructor(w){this._$tpl_el=null,this._tpl=C=>"",this._$widget_tpl_el=null,this._widget_tpl=C=>"",this._gtm_events_fired=[],this._app_events_fired=[],this._user_cookie={shown:!1,categories:[]},this.sm=w,this.config=this.sm.config.get("cookie_consent"),this._loadClientCookie()}
1async init(){if(ie.events.emit("pre-init",{cookie_consent:this}),this._defaultGAConsentMode(),!!this.config.enabled)return await this._displayConsentWidget(),ie.events.emit("post-init",{cookie_consent:this}),this.maybeShowModal()}async maybeShowModal(){if(this.showConsentModal()){if((0,T.lw)())return this.displayConsentModal()}else this._fireGTMEvents(this._user_cookie.categories),this._fireAppEvents(this._user_cookie.categories),this._updateGAConsentMode(this._user_cookie.categories)}_defaultGAConsentMode(){gtag("consent","default",this.sm.config.get("google_consent_mode_defaults"))}_updateGAConsentMode(w){const C={...this.sm.config.get("google_consent_mode_defaults")};C.ad_storage="denied",C.analytics_storage=w.indexOf("tracking")>-1?"granted":"denied",C.functionality_storage=w.indexOf("functionality")>-1?"granted":"denied",C.personalization_storage=w.indexOf("targeting")>-1?"granted":"denied",C.security_storage=w.indexOf("required")>-1?"granted":"denied",gtag("consent","update",C)}_loadClientCookie(){const w=(0,T.UM)(this.config.cookie_name);w&&(this._user_cookie=JSON.parse(w))}_setClientCookie(){return(0,T.lw)()?((0,T.My)(this.config.cookie_name,JSON.stringify(this._user_cookie),this.config.cookie_expiry,this.config.cookie_domain,this.config.cookie_path),!0):(this.sm.getMessageHandler().error("Cannot set cookie consent state because cookies are disabled in the browser."),!1)}_afterUpdateConsent(w){(0,a.hx)(()=>{this._fireGTMEvents(w),this._fireAppEvents(w),this._updateGAConsentMode(w)})}_fireAppEvents(w){this.config.active||(w=this.getAllCategoryHandles()),this._fireTagsAllowedEvents(w),this._fireSpecificCategoryEvents(w)}_fireTagsAllowedEvents(w){ie.events.emit("tags-allowed",{allowed_categories:w,cookie_consent:this})}_fireSpecificCategoryEvents(w){for(const C of w)this._app_events_fired.indexOf(C)<0&&(ie.events.emit(C+"-tags-allowed",{allowed_categories:w,cookie_consent:this}),this._app_events_fired.push(C))}_fireGTMEvents(w){this.config.active||(w=this.getAllCategoryHandles());for(const C of w)this._gtm_events_fired.indexOf(C)<0&&(window.dataLayer.push({event:C+"-tags-allowed"}),this._gtm_events_fired.push(C))}showConsentModal(){return!this._user_cookie.shown&&this.config.active&&window.location.href.indexOf("about/cookies")<0&&window.location.hash.indexOf("#suppress-consent-dialog")<0&&!(0,o.Ch)()}async displayConsentModal(w){typeof w>"u"&&(w={prevent_close:()=>!1});const[C,I]=await Promise.all([this.sm.getEJS(),this.sm.getModal()]);if(this._$tpl_el===null){if(this._$tpl_el=document.getElementById("cookie-consent-template"),this._$tpl_el===null)throw y.A.newError("No cookie consent template found.");this._tpl=C.compile(this._$tpl_el.innerText)}const G=this._tpl({cc:this,config:this.config});return this._user_cookie.shown=!0,new Promise(q=>{I.showModal(this.config.dialog_title,G,[{label:"Necessary",class:"button is-secondary cc-necessary",click:()=>{this._actionAllowNecessary(),w.prevent_close(this._user_cookie.categories)||I.closeModal(),q()}},{label:"Selected",class:"button is-secondary cc-selected",click:()=>{this._actionAllowSelected(I.getElement()),w.prevent_close(this._user_cookie.categories)||I.closeModal(),q()}},{label:"Allow All",class:"button is-secondary cc-all",click:()=>{this._actionAllowAll(I.getElement()).then(()=>{w.prevent_close(this._user_cookie.categories)||I.closeModal(),q()}).catch(()=>{w.prevent_close(this._user_cookie.categories)||I.closeModal()})}}],!1,"alertdialog")})}async _displayConsentWidget(){const[w,C]=await Promise.all([this.sm.getEJS(),this.sm.loader.mdiIcon("cookie-outline")]);await(0,a.aH)(),this._$widget_tpl_el===null&&(this._$widget_tpl_el=document.getElementById("c-consent-widget-tpl"),this._widget_tpl=w.compile(this._$widget_tpl_el.innerText));const I=this._widget_tpl({title:"Modify cookie consent settings.",icon_src:C,label:""}),G=(0,F.Ub)(".consent-widget");for(const q of G)(0,F.BC)(I,q),(0,p.Mm)("click",".button",at=>{at.preventDefault(),this.displayConsentModal()},q);await(0,a.aH)()}async _actionAllowAll(w){const C=(0,F.Ub)(".cookie-consent-checkbox",w);let I=0,G=0;for(const q of C)q.checked&&G++;if(G===this.getAllCategoryHandles().length){this._actionAllowSelected(w);return}return new Promise(q=>{for(const at of C)(function(){setTimeout(()=>{at.checked||(at.checked=!0)},I),I+=100})();setTimeout(()=>{this._actionAllowSelected(w),q()},I)})}_actionAllowSelected(w){this.clearUserCategories();const C=(0,F.Ub)(".cookie-consent-checkbox",w);for(const I of C)I.checked&&this.allowCategory(I.name);this._setClientCookie()?this._afterUpdateConsent(this._user_cookie.categories):this.clearUserCategories()}_actionAllowNecessary(){this.clearUserCategories();for(const w of this.config.categories)w.required&&this.allowCategory(w.handle);this._setClientCookie()?this._afterUpdateConsent(this._user_cookie.categories):this.clearUserCategories()}clearUserCategories(){this._user_cookie.categories=[]}allowCategory(w){this._user_cookie.categories.indexOf(w)===-1&&(this._user_cookie.categories.push(w),this._user_cookie.categories.sort())}saveToCookie(w){typeof w>"u"&&(w=!1);const C=this._setClientCookie();return w&&this._fireAppEvents(this._user_cookie.categories),C}isCategoryAllowed(w){if(!this.config.enabled)return!0;Array.isArray(w)||(w=[w]);let C=0;for(const I of w)this._user_cookie.categories.indexOf(I)>-1&&C++;return C===w.length}categoryChecker(w,C){return w.every(I=>C.includes(I))}getConsentCategoriesForType(w){return this.config.iframe_types[w]??null}getAllCategoryHandles(){const w=[];for(const C of this.config.categories)w.push(C.handle);return w}};S.events=new r;let P=S},2021:(st,H,n)=>{"use strict";n.d(H,{A:()=>Y});var T={};n.r(T),n.d(T,{exclude:()=>Z,extract:()=>U,parse:()=>$,parseUrl:()=>x,pick:()=>z,stringify:()=>m,stringifyUrl:()=>B});const F="%[a-f0-9]{2}",p=new RegExp("("+F+")|([^%]+?)","gi"),L=new RegExp("("+F+")+","gi");function r(s,h){try{return[decodeURIComponent(s.join(""))]}catch{}if(s.length===1)return s;h=h||1;const i=s.slice(0,h),l=s.slice(h);return Array.prototype.concat.call([],r(i),r(l))}function o(s){try{return decodeURIComponent(s)}catch{let h=s.match(p)||[];for(let i=1;i<h.length;i++)s=r(h,i).join(""),h=s.match(p)||[];return s}}function a(s){const h={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"};let i=L.exec(s);for(;i;){try{h[i[0]]=decodeURIComponent(i[0])}catch{const c=o(i[0]);c!==i[0]&&(h[i[0]]=c)}i=L.exec(s)}h["%C2"]="\uFFFD";const l=Object.keys(h);for(const c of l)s=s.replace(new RegExp(c,"g"),h[c]);return s}
1function y(s){if(typeof s!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof s+"`");try{return decodeURIComponent(s)}catch{return a(s)}}function S(s,h){if(!(typeof s=="string"&&typeof h=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(s===""||h==="")return[];const i=s.indexOf(h);return i===-1?[]:[s.slice(0,i),s.slice(i+h.length)]}function P(s,h){const i={};if(Array.isArray(h))for(const l of h){const c=Object.getOwnPropertyDescriptor(s,l);c?.enumerable&&Object.defineProperty(i,l,c)}else for(const l of Reflect.ownKeys(s)){const c=Object.getOwnPropertyDescriptor(s,l);if(c.enumerable){const v=s[l];h(l,v,s)&&Object.defineProperty(i,l,c)}}return i}function j(s,h){if(Array.isArray(h)){const i=new Set(h);return P(s,l=>!i.has(l))}return P(s,(i,l,c)=>!h(i,l,c))}const w=s=>s==null,C=s=>encodeURIComponent(s).replaceAll(/[!'()*]/g,h=>`%${h.charCodeAt(0).toString(16).toUpperCase()}`),I=Symbol("encodeFragmentIdentifier");function G(s){switch(s.arrayFormat){case"index":return h=>(i,l)=>{const c=i.length;return l===void 0||s.skipNull&&l===null||s.skipEmptyString&&l===""?i:l===null?[...i,[tt(h,s),"[",c,"]"].join("")]:[...i,[tt(h,s),"[",tt(c,s),"]=",tt(l,s)].join("")]};case"bracket":return h=>(i,l)=>l===void 0||s.skipNull&&l===null||s.skipEmptyString&&l===""?i:l===null?[...i,[tt(h,s),"[]"].join("")]:[...i,[tt(h,s),"[]=",tt(l,s)].join("")];case"colon-list-separator":return h=>(i,l)=>l===void 0||s.skipNull&&l===null||s.skipEmptyString&&l===""?i:l===null?[...i,[tt(h,s),":list="].join("")]:[...i,[tt(h,s),":list=",tt(l,s)].join("")];case"comma":case"separator":case"bracket-separator":{const h=s.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(l,c)=>c===void 0||s.skipNull&&c===null||s.skipEmptyString&&c===""?l:(c=c===null?"":c,l.length===0?[[tt(i,s),h,tt(c,s)].join("")]:[[l,tt(c,s)].join(s.arrayFormatSeparator)])}default:return h=>(i,l)=>l===void 0||s.skipNull&&l===null||s.skipEmptyString&&l===""?i:l===null?[...i,tt(h,s)]:[...i,[tt(h,s),"=",tt(l,s)].join("")]}}function q(s){let h;switch(s.arrayFormat){case"index":return(i,l,c)=>{if(h=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!h){c[i]=l;return}c[i]===void 0&&(c[i]={}),c[i][h[1]]=l};case"bracket":return(i,l,c)=>{if(h=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!h){c[i]=l;return}if(c[i]===void 0){c[i]=[l];return}c[i]=[...c[i],l]};case"colon-list-separator":return(i,l,c)=>{if(h=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!h){c[i]=l;return}if(c[i]===void 0){c[i]=[l];return}c[i]=[...c[i],l]};case"comma":case"separator":return(i,l,c)=>{const v=typeof l=="string"&&l.includes(s.arrayFormatSeparator),g=typeof l=="string"&&!v&&vt(l,s).includes(s.arrayFormatSeparator);l=g?vt(l,s):l;const E=v||g?l.split(s.arrayFormatSeparator).map(Pt=>vt(Pt,s)):l===null?l:vt(l,s);c[i]=E};case"bracket-separator":return(i,l,c)=>{const v=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!v){c[i]=l&&vt(l,s);return}const g=l===null?[]:l.split(s.arrayFormatSeparator).map(E=>vt(E,s));if(c[i]===void 0){c[i]=g;return}c[i]=[...c[i],...g]};default:return(i,l,c)=>{if(c[i]===void 0){c[i]=l;return}c[i]=[...[c[i]].flat(),l]}}}function at(s){if(typeof s!="string"||s.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function tt(s,h){return h.encode?h.strict?C(s):encodeURIComponent(s):s}function vt(s,h){return h.decode?y(s):s}function Nt(s){return Array.isArray(s)?s.sort():typeof s=="object"?Nt(Object.keys(s)).sort((h,i)=>Number(h)-Number(i)).map(h=>s[h]):s}function At(s){const h=s.indexOf("#");return h!==-1&&(s=s.slice(0,h)),s}function Ft(s){let h="";const i=s.indexOf("#");return i!==-1&&(h=s.slice(i)),h}function b(s,h){return h.parseNumbers&&!Number.isNaN(Number(s))&&typeof s=="string"&&s.trim()!==""?s=Number(s):h.parseBooleans&&s!==null&&(s.toLowerCase()==="true"||s.toLowerCase()==="false")&&(s=s.toLowerCase()==="true"),s}function U(s){s=At(s);const h=s.indexOf("?");return h===-1?"":s.slice(h+1)}function $(s,h){h={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...h},at(h.arrayFormatSeparator);const i=q(h),l=Object.create(null);
1if(typeof s!="string"||(s=s.trim().replace(/^[?#&]/,""),!s))return l;for(const c of s.split("&")){if(c==="")continue;const v=h.decode?c.replaceAll("+"," "):c;let[g,E]=S(v,"=");g===void 0&&(g=v),E=E===void 0?null:["comma","separator","bracket-separator"].includes(h.arrayFormat)?E:vt(E,h),i(vt(g,h),E,l)}for(const[c,v]of Object.entries(l))if(typeof v=="object"&&v!==null)for(const[g,E]of Object.entries(v))v[g]=b(E,h);else l[c]=b(v,h);return h.sort===!1?l:(h.sort===!0?Object.keys(l).sort():Object.keys(l).sort(h.sort)).reduce((c,v)=>{const g=l[v];return c[v]=g&&typeof g=="object"&&!Array.isArray(g)?Nt(g):g,c},Object.create(null))}function m(s,h){if(!s)return"";h={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...h},at(h.arrayFormatSeparator);const i=g=>h.skipNull&&w(s[g])||h.skipEmptyString&&s[g]==="",l=G(h),c={};for(const[g,E]of Object.entries(s))i(g)||(c[g]=E);const v=Object.keys(c);return h.sort!==!1&&v.sort(h.sort),v.map(g=>{const E=s[g];return E===void 0?"":E===null?tt(g,h):Array.isArray(E)?E.length===0&&h.arrayFormat==="bracket-separator"?tt(g,h)+"[]":E.reduce(l(g),[]).join("&"):tt(g,h)+"="+tt(E,h)}).filter(g=>g.length>0).join("&")}function x(s,h){h={decode:!0,...h};let[i,l]=S(s,"#");return i===void 0&&(i=s),{url:i?.split("?")?.[0]??"",query:$(U(s),h),...h&&h.parseFragmentIdentifier&&l?{fragmentIdentifier:vt(l,h)}:{}}}function B(s,h){h={encode:!0,strict:!0,[I]:!0,...h};const i=At(s.url).split("?")[0]||"",l=U(s.url),c={...$(l,{sort:!1}),...s.query};let v=m(c,h);v&&(v=`?${v}`);let g=Ft(s.url);if(typeof s.fragmentIdentifier=="string"){const E=new URL(i);E.hash=s.fragmentIdentifier,g=h[I]?E.hash:`#${s.fragmentIdentifier}`}return`${i}${v}${g}`}function z(s,h,i){i={parseFragmentIdentifier:!0,[I]:!1,...i};const{url:l,query:c,fragmentIdentifier:v}=x(s,i);return B({url:l,query:P(c,h),fragmentIdentifier:v},i)}function Z(s,h,i){const l=Array.isArray(h)?c=>!h.includes(c):(c,v)=>!h(c,v);return z(s,l,i)}var Y=T}}]);})();
2
3//# sourceMappingURL=common.74072d12.js.map

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.