PageSourceSearch

https://storyblok-assets-ng.mindvalley.com/_nuxt/Bg7opIwV.js

js mindvalley.com collected 2026-09-24 08:24:01 UTC 1,687 bytes, 1 lines download raw bytes

1import{D as P,Y as g}from"./D0rPpKiU.js";const y=(i={})=>{const d=g(),u={...{utm_source:t=>`itm_source=${t}`,utm_medium:t=>`itm_medium=${t}`,utm_campaign:t=>`itm_campaign=${t}`,utm_term:t=>`itm_term=${t}`,utm_content:t=>`itm_content=${t}`},...i.transformParams},f=P(()=>{const t=new URLSearchParams(d.fullPath.split("?")[1]||""),s=new URLSearchParams,e={};for(const[r,a]of t.entries())i.excludeParams?.includes(r)||(e[r]||(e[r]=[]),e[r].push(a));for(const[r,a]of Object.entries(e))if(u[r]){const n=u[r](a.join(",")),[m,p]=n.split("=");s.set(m,p)}else s.set(r,a.join(","));return s}),o=t=>{try{if(!t.startsWith("http")&&!t.startsWith("/"))return t;const s=t.startsWith("http"),e=s?t:`${window.location.origin}${t}`,r=new URL(e),a=f.value;for(const[n,m]of a.entries())i.preserveParams?.includes(n)&&r.searchParams.has(n)||r.searchParams.set(n,m);return s?r.toString():r.pathname+r.search+r.hash}catch{return t}},h=(t="a[href]")=>{document.querySelectorAll(t).forEach(e=>{const r=e.getAttribute("href");r&&!r.startsWith("#")&&!r.startsWith("javascript:")&&(e.href=o(r))})},l=t=>{if(t.tagName==="A"){const e=t.getAttribute("href");e&&!e.startsWith("#")&&!e.startsWith("javascript:")&&(t.href=o(e))}t.querySelectorAll("a[href]").forEach(e=>{const r=e.getAttribute("href");r&&!r.startsWith("#")&&!r.startsWith("javascript:")&&(e.href=o(r))})};let c=null;return{resolveUrl:o,updatePageLinks:h,updateLinksInNode:l,startParamForwarding:()=>{h(),c=new MutationObserver(t=>{for(const s of t)for(const e of Array.from(s.addedNodes))e instanceof Element&&l(e)}),c.observe(document.body,{childList:!0,subtree:!0})},stopParamForwarding:()=>{c?.disconnect(),c=null},currentUrlParams:f}};export{y as u};

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.