1var e=`/dashboard/pricing`,t=`/dashboard`,n=`/report?onboarding=1`,r=/^price_[A-Za-z0-9_]{1,200}$/,i=/^(https?:\/\/)?([a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}(\/[^\s<>"'`]*)?$/i,a=10,o=2e3,s=/^\/(signup|sign-up|login|sign-in)(\/|$)/i,c=`https://same-origin.invalid`;function l(e){return typeof e==`string`&&r.test(e)}function u(e){if(typeof e!=`string`)return null;let t=e.trim();if(!t.startsWith(`/`)||t.startsWith(`//`)||/[\\\u0000-\u001f\u007f]/.test(t))return null;let n;try{n=new URL(t,c)}catch{return null}return n.origin!==c||s.test(n.pathname)?null:`${n.pathname}${n.search}${n.hash}`}function d(e){if(typeof e!=`string`)return null;let t=e.trim();if(!t||t.length>o)return null;let n=t.split(`,`).map(e=>e.trim()).filter(e=>i.test(e)).slice(0,a);return n.length>0?n.join(`,`):null}function f(e){if(e.get(`billing`)!==`checkout`)return null;let t=e.get(`priceId`);return l(t)?{priceId:t}:null}function p(e){let t=typeof e==`string`?new URLSearchParams(e):e,n=u(t.get(`redirect`)),r=l(t.get(`priceId`))?t.get(`priceId`):null;if(!r&&n){let e=f(new URL(n,c).searchParams);e&&(r=e.priceId)}return{priceId:r,redirect:n,urls:d(t.get(`urls`))}}function m(t){return`${e}?billing=checkout&priceId=${encodeURIComponent(t)}`}function h(e){return`/signup?priceId=${encodeURIComponent(e)}`}function g(e,t,n){let r=new URL(e,c);return r.searchParams.set(t,n),`${r.pathname}${r.search}${r.hash}`}function _(e,t){return e.priceId?m(e.priceId):e.redirect?e.redirect:e.urls?g(t,`urls`,e.urls):t}function v(e){return e.priceId?m(e.priceId):e.redirect?e.redirect:e.urls?`/report?urls=${encodeURIComponent(e.urls)}`:t}function y(e,t){let n=d(new URLSearchParams(e).get(`urls`));if(!n)return null;let r=`urls=${encodeURIComponent(n)}`;return t?`/report?${r}`:`/signup?${r}`}function b(e,t){t.priceId&&e.set(`priceId`,t.priceId),t.redirect&&e.set(`redirect`,t.redirect),t.urls&&e.set(`urls`,t.urls)}function x(e,t){let n=new URLSearchParams;return n.set(`email`,e),b(n,t),`/verify-email?${n.toString()}`}function S(e){let t=new URLSearchParams;b(t,e);let n=t.toString();return n?`/signup?${n}`:`/signup`}var C=`/dashboard/report?onboarding=1`;function w(e){let t=new URLSearchParams(e).get(`error`);return t===`TOKEN_EXPIRED`?`expired`:t===`INVALID_TOKEN`?`invalid`:null}function T(e){return _(p(e),C)}function E(){return typeof window>`u`?``:window.location.search}function D(e,t,n=fetch,r=E()){return n(`/api/auth/send-verification-email`,{method:`POST`,headers:{"Content-Type":`application/json`},credentials:`include`,body:JSON.stringify({email:e,callbackURL:`${t}${T(r)}`})})}export{p as a,f as c,h as d,S as f,n as i,u as l,w as n,_ as o,x as p,D as r,y as s,C as t,v 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.