1window.RedStone=window.RedStone||{};(function(o){const d="redstone_cookie_consent",l=window.location.hostname.includes("localhost")?"localhost":".redstone.finance",u={analytics:{patterns:[/^_ga/,/^_gid/,/^_gat/,/^__utm/,/^_hj/],domains:["",".redstone.finance",".blog.redstone.finance",".app.redstone.finance"]},targeting:{patterns:[/^_fbp/,/^_fbc/,/^YSC/,/^VISITOR_INFO/,/^fr$/,/^ads/],domains:["",".youtube.com",".facebook.com",".google.com",l]},functional:{patterns:[/^lang/,/^theme/,/^user_pref/,/^RDST_AD_TOU/],domains:["",l]}},k=[/^redstone_cookie_consent/,/^session/,/^csrf/,/^auth/,/^essential/];let n={necessary:!0,analytics:!1,targeting:!1,functional:!1,timestamp:0,version:"1.0",domain:"redstone.finance",userAgent:navigator.userAgent},f=null,g=!1;function p(){return document.cookie.split(";").reduce((e,t)=>{const[s,c]=t.trim().split("=");return s&&(e[s]=decodeURIComponent(c||"")),e},{})}function C(e,t="",s="/"){const c=t?[t]:["",window.location.hostname,l],m=[s,"/","/app","/blog"];c.forEach(i=>{m.forEach(r=>{document.cookie=`${e}=;expires=Thu, 01 Jan 1970 00:00:00 UTC;path=${r}${i?`;domain=${i}`:""}`})})}function h(e){if(k.some(t=>t.test(e)))return!1;for(let t in u)if(!n[t]&&u[t].patterns.some(s=>s.test(e)))return!0;return!1}function b(e){const t=p();e.forEach(s=>{if(u[s]){const{patterns:c,domains:m}=u[s];Object.keys(t).forEach(i=>{c.some(r=>r.test(i))&&m.forEach(r=>C(i,r))})}})}function y(){g||(f=Object.getOwnPropertyDescriptor(Document.prototype,"cookie")||Object.getOwnPropertyDescriptor(HTMLDocument.prototype,"cookie"),f&&(Object.defineProperty(document,"cookie",{get(){return f.get.call(document)},set(e){const t=e.split("=")[0].trim();return h(t)?e:f.set.call(document,e)},configurable:!0}),g=!0))}function v(){document.querySelectorAll(".rs-toggle").forEach(e=>{const t=e.dataset.category;t!=="necessary"&&(n[t]?e.classList.add("active"):e.classList.remove("active"))})}function E(){n.timestamp=Date.now(),n.domain="redstone.finance";const e=JSON.stringify(n);document.cookie=`${d}=${encodeURIComponent(e)};path=/;domain=${l};max-age=${365*24*60*60};SameSite=Lax;Secure=${location.protocol==="https:"}`}function w(){const e=p();if(e[d])try{const t=JSON.parse(decodeURIComponent(e[d]));return n={...n,...t},!0}catch{}return!1}function a(){const e=Object.entries(n).filter(([t,s])=>t!=="necessary"&&t!=="timestamp"&&t!=="version"&&t!=="domain"&&t!=="userAgent"&&!s).map(([t])=>t);e.length>0&&b(e),y(),E(),document.dispatchEvent(new CustomEvent("redstoneConsentUpdate",{detail:n}))}o.openCookieSettings=function(){v();const e=document.getElementById("rsCookieModal");e&&e.classList.add("show")},o.closeCookieSettings=function(){const e=document.getElementById("rsCookieModal");e&&e.classList.remove("show")},o.acceptAll=function(){n={...n,analytics:!0,targeting:!0,functional:!0},a();const e=document.getElementById("rsCookieBanner");e&&e.classList.remove("show")},o.rejectOptional=function(){n={...n,analytics:!1,targeting:!1,functional:!1},a();const e=document.getElementById("rsCookieBanner");e&&e.classList.remove("show")},o.rejectAll=function(){n={necessary:!0,analytics:!1,targeting:!1,functional:!1,timestamp:Date.now(),version:"1.0",domain:"redstone.finance",userAgent:navigator.userAgent},a();const e=document.getElementById("rsCookieBanner");e&&e.classList.remove("show"),o.closeCookieSettings()},o.savePreferences=function(){document.querySelectorAll(".rs-toggle:not(.disabled)").forEach(t=>{const s=t.dataset.category;n[s]=t.classList.contains("active")}),a(),o.closeCookieSettings();const e=document.getElementById("rsCookieBanner");e&&e.classList.remove("show")},document.addEventListener("click",function(e){const t=e.target.closest("[data-rs-action]");if(t)switch(e.preventDefault(),t.getAttribute("data-rs-action")){case"open-settings":o.openCookieSettings();break;case"close-modal":o.closeCookieSettings();break;case"accept-all":o.acceptAll();break;case"accept-all-close":o.acceptAll(),o.closeCookieSettings();break;case"reject-optional":o.rejectOptional();break;case"reject-all":o.rejectAll();break;case"save-preferences":o.savePreferences();break}e.target.classList.contains("rs-toggle")&&!e.target.classList.contains("disabled")&&e.target.classList.toggle("active"),e.target.id==="rsCookieModal"&&o.closeCookieSettings()}),w()?a():setTimeout(()=>{const e=document.getElementById("rsCookieBanner");e&&e.classList.add("show")},2e3)})(window.RedStone);
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.