1var Ct=Object.defineProperty;var qt=(e,t,n)=>t in e?Ct(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var F=(e,t,n)=>qt(e,typeof t!="symbol"?t+"":t,n);import{c as yt}from"./locales-en-core-Bs6rsBqu.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&a(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function a(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();const x=new Map,V="apicache:";function Y(){try{return typeof sessionStorage<"u"?sessionStorage:null}catch{return null}}function $t(e){const t=x.get(e);if(t){if(Date.now()<t.expires)return t.data;x.delete(e)}const n=Y();if(n)try{const a=n.getItem(V+e);if(a){const o=JSON.parse(a);if(Date.now()<o.expires)return x.set(e,o),o.data;n.removeItem(V+e)}}catch{}return null}function Ht(e,t,n=3e4){const a={data:t,expires:Date.now()+n};x.set(e,a);const o=Y();if(o)try{o.setItem(V+e,JSON.stringify(a))}catch{}}function Vt(e){x.delete(e);const t=Y();if(t)try{t.removeItem(V+e)}catch{}}function Ut(e){for(const n of x.keys())n.startsWith(e)&&x.delete(n);const t=Y();if(t)try{const n=V+e;for(let a=t.length-1;a>=0;a--){const o=t.key(a);o&&o.startsWith(n)&&t.removeItem(o)}}catch{}}function ge(){x.clear();const e=Y();if(e)try{for(let t=e.length-1;t>=0;t--){const n=e.key(t);n&&n.startsWith(V)&&e.removeItem(n)}}catch{}}const ga=Object.freeze(Object.defineProperty({__proto__:null,clearAllCache:ge,getCached:$t,invalidateCache:Vt,invalidateCacheByPrefix:Ut,
1setCache:Ht},Symbol.toStringTag,{value:"Module"})),Pe="ui.preferences",Qe={selectedProject:null,pendingTdsSiteId:null,selectedProjectAccountId:null};function W(){try{const e=localStorage.getItem(Pe);if(e)return{...Qe,...JSON.parse(e)}}catch(e){console.warn("Failed to load UI preferences:",e)}return{...Qe}}function Ie(e){try{localStorage.setItem(Pe,JSON.stringify(e))}catch(t){console.warn("Failed to save UI preferences:",t)}}const Oe="ui.domains.view",Ft=new Set(["health"]);function jt(e){if(typeof e!="object"||e===null||Array.isArray(e))return null;const t={};for(const[n,a]of Object.entries(e))Ft.has(n)?Array.isArray(a)&&a.every(o=>typeof o=="string")&&(t[n]=a):typeof a=="string"&&(t[n]=a);return t}function ma(e){try{const t=sessionStorage.getItem(Oe);if(!t)return null;const n=JSON.parse(t);if(typeof n!="object"||n===null||e===null||n.accountId!==e)return null;const a=jt(n.filters);return a?{search:typeof n.search=="string"?n.search:"",filters:a,sort:n.sort&&typeof n.sort=="object"&&typeof n.sort.key=="string"?{key:n.sort.key,dir:n.sort.dir==="desc"?"desc":"asc"}:null}:null}catch(t){return console.warn("Failed to load domains view:",t),null}}function ha(e,t){if(t!==null)try{sessionStorage.setItem(Oe,JSON.stringify({...e,accountId:t}))}catch(n){console.warn("Failed to save domains view:",n)}}function pa(e){var n;const t=W();return e===null||t.selectedProjectAccountId!==e?null:((n=t.selectedProject)==null?void 0:n.name)??null}function ya(e){var t;return((t=W().selectedProject)==null?void 0:t.id)??null}function zt(e,t){const n=W();n.selectedProject=e,n.selectedProjectAccountId=e===null?null:t,Ie(n)}function wa(){zt(null,null)}function _a(e){const t=W();t.pendingTdsSiteId=e,Ie(t)}function va(){const e=W(),t=e.pendingTdsSiteId;return t!==null&&(e.pendingTdsSiteId=null,Ie(e)),t}function Bt(){try{localStorage.removeItem(Pe)}catch(e){console.warn("Failed to clear UI preferences:",e)}try{sessionStorage.removeItem(Oe)}catch(e){console.warn("Failed to clear domains view:",e)}}class S extends Error{constructor(n){super(n.message);F(this,"code");F(this,"details");F(this,"recoverable");F(this,"status");this.name="NormalizedError",this.code=n.code,this.details=n.details,this.recoverable=n.recoverable,this.status=n.status}}function oe(e){if(e instanceof S)return e;if(e instanceof Error&&e.name==="AbortError")return new S({code:"ABORTED",message:"Request was cancelled",details:e,recoverable:!1});if(e instanceof TypeError&&e.message.includes("fetch"))return new S({code:"NETWORK_ERROR",message:"Network error. Please check your connection.",details:e,recoverable:!0});if(e&&typeof e=="object"&&"status"in e&&"body"in e){const t=e,n=t.status,a=t.body,o=(a==null?void 0:a.recoverable)??void 0;return n===401?new S({code:"UNAUTHORIZED",message:(a==null?void 0:a.message)||"Unauthorized. Please log in.",details:a,recoverable:!1,status:n}):n===403?new S({code:"FORBIDDEN",message:(a==null?void 0:a.message)||"Access forbidden.",details:a,recoverable:!1,status:n}):n===404?new S({code:"NOT_FOUND",message:(a==null?void 0:a.message)||"Resource not found.",details:a,recoverable:!1,status:n}):n===400||n===422?new S({code:"VALIDATION_ERROR",message:(a==null?void 0:a.message)||(a==null?void 0:a.error)||"Validation error.",details:a,recoverable:o??!1,status:n}):n===409?new S({code:"CONFLICT",message:(a==null?void 0:a.message)||"Conflict.",details:a,recoverable:o??!1,status:n}):n===429?new S({code:"RATE_LIMITED",message:(a==null?void 0:a.message)||"Too many requests. Please try again later.",details:a,recoverable:!0,status:n}):n>=500?new S({code:"SERVER_ERROR",message:(a==null?void 0:a.message)||"Server error. Please try again.",details:a,recoverable:o??!0,status:n}):new S({code:"API_ERROR",message:(a==null?void 0:a.message)||t.message||"Request failed.",details:a,recoverable:o??!1,status:n})}return new S({code:"API_ERROR",message:e instanceof Error?e.message:"Unknown error",details:e,recoverable:!1})}const te=new Map;async function U(e,t){if(te.has(e))return te.get(e);const n=t().finally(()=>{te.delete(e)});return te.set(e,n),n}const Ze=new Map;function wt(e){var n;(n=Ze.get(e))==null||n.abort();const t=new AbortController;return Ze.set(e,t),t.signal}async function Gt(e,t={}){const{lockKey:n,abortKey:a,retryOn401:o=!0,onError:r}=t,s=async()=>{const i=a?wt(a):void 0;try{return await e(i)}catch(c){const m=oe(c);if(m.code==="UNAUTHORIZED"&&o){try{const g=await U("auth-refresh",()=>$e());g!=null&&g.access_token&&R(g.access_token),g!=null&&g.user&&b(g.user)}catch(g){await Ee();const l=oe(g);throw r&&r(l),l}try{return await e(i)}catch(g){const l=oe(g);throw l.code==="UNAUTHORIZED"&&await Ee(),r&&r(l),l}}throw r&&r(m),m}};return n?U(n,s):s()}const ba=Object.freeze(Object.defineProperty({__proto__:null,NormalizedError:S,abortPrevious:wt,normalizeError:oe,safeCall:Gt,withInFlight:U},Symbol.toStringTag,{value:"Module"})),Re="[301-ui]",Jt=typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname.startsWith("192.168."));function Kt(e,...t){console.info(Re,e,...t)}function B(e,...t){Jt&&console.debug(Re,e,...t)}function Ea(e,...t){console.error(Re,e,...t)}const Yt=10*60*1e3;let re=null;const be=new Set;let _={token:null,user:null,accounts:null,accountId:null,defaultProjectId:null,defaultSiteId:null,loading:!1,isLoggedIn:!1};
1function Wt(){be.forEach(e=>e({..._}))}function k(e){_={..._,...e},_.isLoggedIn=!!(_.token&&_.user),Wt()}function _t(e){return be.add(e),e({..._}),()=>be.delete(e)}function me(){return{..._}}function De(){return _.token}function R(e){if(k({token:e}),e){try{localStorage.setItem("ui.returning","1")}catch{}nn()}else vt(),ge()}function xe(){R(null)}function Ne(){R(null),Bt()}function Xt(){return _.accountId}function Qt(e){var o;const t=_.defaultProjectId,n=t!=null&&e.length===1&&((o=e[0])==null?void 0:o.id)===t,a=t==null&&e.length===1;return n||a}function Zt(){var n;const{accounts:e,accountId:t}=_;return!e||t==null?null:((n=e.find(a=>a.id===t))==null?void 0:n.role)??null}function b(e){k({user:e})}async function en(){return U("auth-me",async()=>{try{k({loading:!0});const e=await St();return b(e.user??null),k({accounts:e.accounts??null,accountId:e.active_account_id??_.accountId,defaultProjectId:e.default_project_id??null,defaultSiteId:e.default_site_id??null}),e.user??null}catch(e){return B("Failed to load user",e),b(null),null}finally{k({loading:!1})}})}async function tn(){return U("auth-refresh",async()=>{try{const e=await $e();e.access_token&&R(e.access_token),e.user&&b(e.user??null)}catch(e){B("Refresh failed",e),xe(),b(null)}})}function nn(){vt(),De()&&(re=setTimeout(tn,Yt))}function vt(){re&&clearTimeout(re),re=null}async function bt(){if(typeof window<"u"&&window.__authCheckDone){B("Auth check already done by inline script, skipping initAuthState refresh"),k({loading:!1});return}if(_.token&&_.user){B("Auth state already loaded (cached), skipping refresh"),k({loading:!1});return}return U("auth-init",async()=>{try{k({loading:!0});const e=await $e();if(e&&e.access_token){const t=e.access_token;R(t??null);const n=await St();b(n.user??null),k({accounts:n.accounts??null,accountId:n.active_account_id??null,defaultProjectId:n.default_project_id??null,defaultSiteId:n.default_site_id??null})}else Ne(),b(null),k({accounts:null,accountId:null,defaultProjectId:null,defaultSiteId:null})}catch(e){B("Auth init failed",e),R(null),b(null)}finally{k({loading:!1}),Kt("Auth state initialized")}})}const Sa=Object.freeze(Object.defineProperty({__proto__:null,clearAuthToken:xe,endSession:Ne,getAccountId:Xt,getAuthState:me,getAuthToken:De,getCurrentAccountRole:Zt,initAuthState:bt,isSingleDefaultWorkspace:Qt,loadUser:en,onAuthChange:_t,setAuthToken:R,setUser:b},Symbol.toStringTag,{value:"Module"}));function an(e,t,n="Request failed"){const a=typeof t=="object"&&t&&"message"in t?String(t.message):n,o=new Error(a);return o.status=e,o.body=t,o}let p=null,z=null;function on(){if(p)return p;const e=document.querySelector(".utility-bar");return e?(p=document.createElement("div"),p.className="loading-bar",e.appendChild(p)):(p=document.createElement("div"),p.className="loading-bar",p.style.position="fixed",p.style.top="0",document.body.insertBefore(p,document.body.firstChild)),p}const rn=1e4,A={brand:0,cf:0,primary:0};function we(){return A.brand+A.cf+A.primary}function Et(){return A.cf>0?"cf":A.primary>0?"primary":"brand"}function Me(e="brand"){const t=on();A[e]=(A[e]??0)+1,t.dataset.type=Et(),t.dataset.loading="true"}function Ce(e){if(e&&A[e]>0)A[e]--;else if(we()>0){const t=A.brand>0?"brand":A.primary>0?"primary":"cf";A[t]--}if(p){if(we()>0){p.dataset.type=Et(),z=null;return}if(z){const t=z;z=null,p.dataset.type=t,p.dataset.loading="flushing",setTimeout(()=>{if(!p||we()>0)return;delete p.dataset.loading;const n=document.querySelector(".utility-bar");n&&(n.dataset.borderFlash=t,setTimeout(()=>{n.dataset.borderFlash===t&&delete n.dataset.borderFlash},600)),setTimeout(()=>{p&&!p.dataset.loading&&(p.dataset.type="brand")},200)},1500);return}delete p.dataset.loading,setTimeout(()=>{p&&!p.dataset.loading&&(p.dataset.type="brand")},200)}}function sn(e){z=e}function cn(){return(p==null?void 0:p.dataset.loading)==="true"}async function La(e,t="brand"){Me(t);try{return await e}finally{Ce(t)}}function Aa(){if(document.readyState==="loading"||document.readyState==="interactive"){const e=Date.now();Me("brand");let t=!1;const n=()=>{t||(t=!0,Ce("brand"))},a=()=>{const o=Date.now()-e,s=Math.max(0,600-o);setTimeout(n,s),window.removeEventListener("load",a)};setTimeout(n,rn),window.addEventListener("load",a)}}const qe="en",ln=qe==="ru",Ta=Object.freeze(Object.defineProperty({__proto__:null,DEPLOY_REGION:qe,IS_RU:ln},Symbol.toStringTag,{value:"Module"})),dn="https://api.301.st";function un(e,t){if(!e)return null;try{return JSON.parse(e)}catch{return t?null:{message:e.trim()}}}async function E(e,t={}){var r;const n=new Headers(t.headers??{}),a=De(),o=t.showLoading===!1?!1:t.showLoading||"brand";a&&!n.has("authorization")&&n.set("authorization",`Bearer ${a}`),typeof window<"u"&&((r=window.location)!=null&&r.host)&&!n.has("x-redirect-host")&&n.set("x-redirect-host",window.location.host),t.body&&!(t.body instanceof FormData)&&n.set("content-type","application/json"),o&&Me(o);try{const s=await fetch(`${dn}${e}`,{credentials:"include",...t,headers:n}),i=un(await s.text(),s.ok);if(!s.ok)throw an(s.status,i,s.statusText);return i??{}}finally{o&&Ce(o)}}async function ka(e){const t=await E("/auth/login",{method:"POST",body:JSON.stringify(e),showLoading:"brand"});return t.access_token&&R(t.access_token),t.user&&b(t.user),ge(),t}async function $e(){return E("/auth/refresh",{method:"POST",showLoading:!1})}async function Pa(e){return await E("/auth/register",{method:"POST",body:JSON.stringify(e),showLoading:"brand"})}async function Ia(e){return E("/auth/reset_password",{method:"POST",body:JSON.stringify(e),showLoading:"brand"})}async function Oa(e){const t=await E("/auth/verify",{method:"POST",body:JSON.stringify(e),showLoading:"brand"});return"access_token"in t&&t.access_token&&R(t.access_token),"user"in t&&t.user&&b(t.user),"access_token"in t&&t.access_token&&ge(),t}async function Ra(e){return E("/auth/confirm_password",{method:"POST",body:JSON.stringify(e),showLoading:"brand"})}async function Da(e){const t=encodeURIComponent(window.location.host);return E(`/auth/oauth/${e}/link?redirect_host=${t}`,{method:"POST",showLoading:"brand"})}async function xa(){return E("/auth/methods")}async function Na(e){return E(`/auth/methods/${e}`,{method:"DELETE"})}async function Ma(){return E("/auth/telegram/link",{method:"POST",showLoading:"brand"})}async function Ca(e){return E("/auth/methods/password",{method:"POST",body:JSON.stringify(e),showLoading:"brand"})}async function Ee(){try{await E("/auth/logout",{method:"POST",showLoading:"brand"})}catch(e){console.debug("Logout request failed",e)}Ne(),b(null)}async function St(){return E("/auth/me")}const T={en:{code:"en",htmlLang:"en",intlTag:"en-US",label:"English",origin:"https://301.st",urlPrefix:"",scope:"full"},ru:{code:"ru",htmlLang:"ru",intlTag:"ru-RU",label:"Ð ÑÑÑкий",origin:"https://301.ru",urlPrefix:"",scope:"full"},de:{code:"de",htmlLang:"de",intlTag:"de-DE",label:"Deutsch",origin:"https://301.st",urlPrefix:"/de",scope:"full"},es:{code:"es",htmlLang:"es",intlTag:"es-ES",label:"Español",origin:"https://301.st",urlPrefix:"/es",scope:"marketing"},pt:{code:"pt",htmlLang:"pt-BR",intlTag:"pt-BR",label:"Português",origin:"https://301.st",urlPrefix:"/pt",scope:"marketing"},tr:{code:"tr",htmlLang:"tr",intlTag:"tr-TR",label:"Türkçe",origin:"https://301.st",urlPrefix:"/tr",scope:"marketing"},uk:{code:"uk",htmlLang:"uk",intlTag:"uk-UA",label:"УкÑаÑнÑÑка",origin:"https://301.st",urlPrefix:"/uk",scope:"marketing"},pl:{code:"pl",htmlLang:"pl",intlTag:"pl-PL",label:"Polski",origin:"https://301.st",urlPrefix:"/pl",scope:"marketing"}},ie=Object.keys(T),fn=ie.filter(e=>T[e].urlPrefix!=="");ie.filter(e=>T[e].urlPrefix==="");const gn=[{asset:"index",path:"/",kind:"marketing"},{asset:"features",path:"/features",kind:"marketing"},{asset:"pricing",path:"/pricing",kind:"marketing"},{asset:"contact",path:"/contact",kind:"marketing"},{asset:"about",path:"/about",kind:"marketing"},{asset:"partners",path:"/partners",kind:"marketing"},{asset:"docs",path:"/docs",kind:"docs",ns:"docsPage"},{asset:"docs-getting-started",path:"/docs/getting-started",kind:"docs",ns:"docsGettingStarted"},{asset:"docs-cloudflare-integration",path:"/docs/cloudflare-integration",kind:"docs",ns:"docsCfIntegration"},{asset:"docs-domain-management",path:"/docs/domain-management",kind:"docs",ns:"docsDomainMgmt"},{asset:"docs-projects-and-sites",path:"/docs/projects-and-sites",kind:"docs",ns:"docsProjectsSites"},{asset:"docs-redirects",path:"/docs/redirects",kind:"docs",ns:"docsRedirects"},{asset:"docs-tds",path:"/docs/tds",kind:"docs",ns:"docsTds"},{asset:"docs-shield-vs-smartlink",path:"/docs/shield-vs-smartlink",kind:"docs",ns:"docsShieldVs"},{asset:"docs-postbacks",path:"/docs/postbacks",kind:"docs",ns:"docsPostbacks"},{asset:"docs-bot-filtering",path:"/docs/bot-filtering",kind:"docs",ns:"docsBots"},{asset:"privacy",path:"/privacy",kind:"legal"},{asset:"terms",path:"/terms",kind:"legal"},{asset:"security",path:"/security",kind:"legal"},{asset:"requisites",path:"/requisites",kind:"legal"},{asset:"forms-to-telegram",path:"/forms-to-telegram",kind:"addon",locales:["en"]}],Lt=gn.filter(e=>e.kind==="marketing"),mn=Lt.map(e=>e.path);Lt.map(e=>e.asset);function X(e){const n=(e.length>1?e.replace(/\/+$/,""):e).replace(/\.html$/,"");return n==="/index"||n==="index"?"/":n||"/"}function He(e){return mn.includes(X(e))}function At(e){const t=Ve(e),n=t?t.base:X(e);return He(n)?ie:ie.filter(a=>T[a].scope==="full")}function Ve(e){for(const t of fn){const n=T[t].urlPrefix;if(e===n||e===`${n}/`)return{locale:t,base:"/"};if(e.startsWith(`${n}/`))return{locale:t,base:X(e.slice(n.length))}}return null}function hn(e,t){const n=T[e].urlPrefix,a=X(t);return n?a==="/"?n:`${n}${a}`:a}const pn="modulepreload",yn=function(e){return"/"+e},et={}
1,u=function(t,n,a){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),i=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=Promise.allSettled(n.map(c=>{if(c=yn(c),c in et)return;et[c]=!0;const m=c.endsWith(".css"),g=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${g}`))return;const l=document.createElement("link");if(l.rel=m?"stylesheet":pn,m||(l.as="script"),l.crossOrigin="",l.href=c,i&&l.setAttribute("nonce",i),document.head.appendChild(l),m)return new Promise((h,v)=>{l.addEventListener("load",h),l.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(s){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s}return o.then(s=>{for(const i of s||[])i.status==="rejected"&&r(i.reason);return t().catch(r)})},wn='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 513 342"><g fill="#FFF"><path d="M0 0h513v341.3H0V0z"/><path d="M311.7 230 513 341.3v-31.5L369.3 230h-57.6zM200.3 111.3 0 0v31.5l143.7 79.8h56.6z"/></g><g fill="#012169"><path d="M393.8 230 513 295.7V230H393.8zm-82.1 0L513 341.3v-31.5L369.3 230h-57.6zm146.9 111.3-147-81.7v81.7h147zM90.3 230 0 280.2V230h90.3zm110 14.2v97.2H25.5l174.8-97.2zM118.2 111.3 0 45.6v65.7h118.2zm82.1 0L0 0v31.5l143.7 79.8h56.6zM53.4 0l147 81.7V0h-147zM421.7 111.3 513 61.1v50.2h-91.3zm-110-14.2V0h174.9L311.7 97.1z"/></g><g fill="#c8102e"><path d="M288 0h-64v138.7H0v64h224v138.7h64V202.7h224v-64H288V0z"/><path d="M311.7 230 513 341.3v-31.5L369.3 230h-57.6zM143.7 230 0 309.9v31.5L200.3 230h-56.6zM200.3 111.3 0 0v31.5l143.7 79.8h56.6zM368.3 111.3 513 31.5V0L311.7 111.3h56.6z"/></g></svg>',_n='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 513 342"><path fill="#000" d="M0 0h513v114H0z"/><path fill="#d00" d="M0 114h513v114H0z"/><path fill="#ffce00" d="M0 228h513v114H0z"/></svg>',vn='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 513 342"><path fill="#c60b1e" d="M0 0h513v342H0z"/><path fill="#ffc400" d="M0 85.5h513v171H0z"/></svg>',bn='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 513 342"><path fill="#009b3a" d="M0 0h513v342H0z"/><path fill="#fedf00" d="M256.5 34 468 171 256.5 308 45 171z"/><circle cx="256.5" cy="171" r="72" fill="#002776"/></svg>',En='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 513 342"><path fill="#e30a17" d="M0 0h513v342H0z"/><circle cx="200" cy="171" r="80" fill="#fff"/><circle cx="220" cy="171" r="64" fill="#e30a17"/><path fill="#fff" d="m290 171 62-20-38 52v-64l38 52z"/></svg>',Sn='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 513 342"><path fill="#005bbb" d="M0 0h513v171H0z"/><path fill="#ffd500" d="M0 171h513v171H0z"/></svg>',Ln='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 513 342"><path fill="#fff" d="M0 0h513v171H0z"/><path fill="#dc143c" d="M0 171h513v171H0z"/></svg>',An=e=>`data:image/svg+xml,${encodeURIComponent(e)}`,he=["en","de","es","pt","tr","uk","pl"],$="en",Tn={en:wn,de:_n,es:vn,pt:bn,tr:En,uk:Sn,pl:Ln},ce={en:{...yt}},N={docsPage:async()=>({docsPage:(await u(async()=>{const{docsPage:e}=await import("./locales-en-docsPage-Cr1ZlYhC.js");return{docsPage:e}},[])).docsPage}),docsGettingStarted:async()=>({docsGettingStarted:(await u(async()=>{const{docsGettingStarted:e}=await import("./locales-en-docsGettingStarted-Ba3IMKGn.js");return{docsGettingStarted:e}},[])).docsGettingStarted}),docsCfIntegration:async()=>({docsCfIntegration:(await u(async()=>{const{docsCfIntegration:e}=await import("./locales-en-docsCfIntegration-BpW55-JL.js");return{docsCfIntegration:e}},[])).docsCfIntegration}),docsDomainMgmt:async()=>({docsDomainMgmt:(await u(async()=>{const{docsDomainMgmt:e}=await import("./locales-en-docsDomainMgmt-urt8S93b.js");return{docsDomainMgmt:e}},[])).docsDomainMgmt}),docsProjectsSites:async()=>({docsProjectsSites:(await u(async()=>{const{docsProjectsSites:e}=await import("./locales-en-docsProjectsSites-B0MUeVfD.js");return{docsProjectsSites:e}},[])).docsProjectsSites}),docsRedirects:async()=>({docsRedirects:(await u(async()=>{const{docsRedirects:e}=await import("./locales-en-docsRedirects-DBzZBag0.js");return{docsRedirects:e}},[])).docsRedirects}),docsTds:async()=>({docsTds:(await u(async()=>{const{docsTds:e}=await import("./locales-en-docsTds-BaICxi3q.js");return{docsTds:e}},[])).docsTds}),docsShieldVs:async()=>({docsShieldVs:(await u(async()=>{const{docsShieldVs:e}=await import("./locales-en-docsShieldVs-Bu0dvXIp.js");return{docsShieldVs:e}},[])).docsShieldVs}),docsPostbacks:async()=>({docsPostbacks:(await u(async()=>{const{docsPostbacks:e}=await import("./locales-en-docsPostbacks-C0VMv_tr.js");return{docsPostbacks:e}},[])).docsPostbacks}),docsBots:async()=>({docsBots:(await u(async()=>{const{docsBots:e}=await import("./locales-en-docsBots-D9A2uuKS.js");return{docsBots:e}},[])).docsBots})}
1,kn={en:{core:async()=>yt,marketing:async()=>(await u(async()=>{const{marketing:e}=await import("./locales-en-marketing-CbEHa01E.js");return{marketing:e}},[])).marketing,legal:async()=>(await u(async()=>{const{legal:e}=await import("./locales-en-legal-CFSCqRnM.js");return{legal:e}},[])).legal,...N,app:async()=>(await u(async()=>{const{app:e}=await import("./locales-en-app-FhqYcVrC.js");return{app:e}},[])).app},de:{core:async()=>(await u(async()=>{const{core:e}=await import("./locales-de-core-L3XloeRk.js");return{core:e}},[])).core,marketing:async()=>(await u(async()=>{const{marketing:e}=await import("./locales-de-marketing-BwOipVmp.js");return{marketing:e}},[])).marketing,legal:async()=>(await u(async()=>{const{legal:e}=await import("./locales-en-legal-CFSCqRnM.js");return{legal:e}},[])).legal,...N,app:async()=>(await u(async()=>{const{app:e}=await import("./locales-de-app-5L_7RM1l.js");return{app:e}},[])).app},es:{core:async()=>(await u(async()=>{const{core:e}=await import("./locales-es-core-CvLNKaAY.js");return{core:e}},[])).core,marketing:async()=>(await u(async()=>{const{marketing:e}=await import("./locales-es-marketing-9TFKKyeO.js");return{marketing:e}},[])).marketing,legal:async()=>(await u(async()=>{const{legal:e}=await import("./locales-en-legal-CFSCqRnM.js");return{legal:e}},[])).legal,...N,app:async()=>(await u(async()=>{const{app:e}=await import("./locales-en-app-FhqYcVrC.js");return{app:e}},[])).app},pt:{core:async()=>(await u(async()=>{const{core:e}=await import("./locales-pt-core-D-UHgHgW.js");return{core:e}},[])).core,marketing:async()=>(await u(async()=>{const{marketing:e}=await import("./locales-pt-marketing-DYFsixMD.js");return{marketing:e}},[])).marketing,legal:async()=>(await u(async()=>{const{legal:e}=await import("./locales-en-legal-CFSCqRnM.js");return{legal:e}},[])).legal,...N,app:async()=>(await u(async()=>{const{app:e}=await import("./locales-en-app-FhqYcVrC.js");return{app:e}},[])).app},tr:{core:async()=>(await u(async()=>{const{core:e}=await import("./locales-tr-core-CKU3-uDM.js");return{core:e}},[])).core,marketing:async()=>(await u(async()=>{const{marketing:e}=await import("./locales-tr-marketing-DrwMW5bc.js");return{marketing:e}},[])).marketing,legal:async()=>(await u(async()=>{const{legal:e}=await import("./locales-en-legal-CFSCqRnM.js");return{legal:e}},[])).legal,...N,app:async()=>(await u(async()=>{const{app:e}=await import("./locales-en-app-FhqYcVrC.js");return{app:e}},[])).app},uk:{core:async()=>(await u(async()=>{const{core:e}=await import("./locales-uk-core-BDO-F4cU.js");return{core:e}},[])).core,marketing:async()=>(await u(async()=>{const{marketing:e}=await import("./locales-uk-marketing-C0Z2CnCS.js");return{marketing:e}},[])).marketing,legal:async()=>(await u(async()=>{const{legal:e}=await import("./locales-en-legal-CFSCqRnM.js");return{legal:e}},[])).legal,...N,app:async()=>(await u(async()=>{const{app:e}=await import("./locales-en-app-FhqYcVrC.js");return{app:e}},[])).app},pl:{core:async()=>(await u(async()=>{const{core:e}=await import("./locales-pl-core-CsiCGRAx.js");return{core:e}},[])).core,marketing:async()=>(await u(async()=>{const{marketing:e}=await import("./locales-pl-marketing-BrYTaY4W.js");return{marketing:e}},[])).marketing,legal:async()=>(await u(async()=>{const{legal:e}=await import("./locales-en-legal-CFSCqRnM.js");return{legal:e}},[])).legal,...N,app:async()=>(await u(async()=>{const{app:e}=await import("./locales-en-app-FhqYcVrC.js");return{app:e}},[])).app}},Pn=["core","marketing","legal","app","docsPage","docsGettingStarted","docsCfIntegration","docsDomainMgmt","docsProjectsSites","docsRedirects","docsTds","docsShieldVs","docsPostbacks","docsBots"];function In(e){return Pn.includes(e)}function Ue(e=typeof document>"u"?null:document){var a,o;const n=(((o=(a=e==null?void 0:e.documentElement)==null?void 0:a.dataset)==null?void 0:o.i18nSurface)??"").split(",").map(r=>r.trim()).filter(In);return[...new Set(["core",...n])]}let L=$;function tt(){return he}function Se(){return $}function Le(e){var t;typeof window<"u"&&((t=window.document)!=null&&t.documentElement)&&(window.document.documentElement.lang=T[e].htmlLang)}function Tt(e){L=he.includes(e)?e:Se(),typeof window<"u"&&(window.localStorage.setItem("locale",L),Le(L))}function kt(){if(typeof window>"u")return null;const e=Ve(window.location.pathname);return!e||!He(e.base)?null:he.includes(e.locale)?e.locale:null}function P(){if(typeof window>"u")return L;const e=kt();if(e)return L=e,window.localStorage.getItem("locale")!==e&&window.localStorage.setItem("locale",L),Le(L),L;const t=window.localStorage.getItem("locale");return t&&he.includes(t)?L=At(window.location.pathname).includes(t)?t:Se():(L=Se(),t&&window.localStorage.setItem("locale",L)),Le(L),L}function nt(e,t){const n=t.split(".").reduce((a,o)=>a&&a[o]!=null?a[o]:null,e);return typeof n=="string"?n:null}function d(e){return nt(ce[P()],e)??nt(ce[$],e)??e}async function se(e=P(),t=Ue()){const n=kn[e]??{},a=ce[e]??{};return ce[e]=a,(await Promise.all(t.map(async r=>{const s=n[r];if(!s)return console.error(`i18n: no loader for the ${e} "${r}" surface â check active-locales.*.ts`),!1;try{return Object.assign(a,await s()),!0}catch(i){return console.error(`i18n: could not load the ${e} "${r}" strings`,i),!1}}))).every(Boolean)}async function qa(e=Ue()){const t=P();return await se(t,e)?!0:kt()===t?(await se($,e),!1):(Tt($),se($,e))}function $a(e){const t=d(e);return t===e?null:t}function Ha(e,t){let n=d(e);return Object.entries(t).forEach(([a,o])=>{n=n.replace(new RegExp(`{{${a}}}`,"g"),()=>o)}),n}
1const On=(e,t=document)=>t.querySelector(e),M=(e,t=document)=>Array.from(t.querySelectorAll(e));function Va(e,t,n){e.dataset.state=t;const a=On("[data-form-status], [data-status]",e);a&&(a.hidden=!1,a.dataset.type=t,n!==void 0&&(a.textContent=n));const o=e.querySelector('button[type="submit"]');o&&(o.dataset.labelReady||(o.dataset.labelReady=o.textContent??""),o.disabled=t==="pending",o.textContent=t==="pending"?o.dataset.labelLoading||d("common.pleaseWait"):o.dataset.labelReady)}const Rn=["/dashboard","/integrations","/account","/domains","/projects","/sites","/redirects","/streams","/postbacks","/billing","/referral"];let Pt=!1;function Dn(){Pt=!0,le(me())}function xn(){(/(^|\/)(index\.html)?$/.test(location.pathname)||location.pathname.endsWith("/login")||!!location.hash.match(/^#(login|register|reset)/))&&location.assign("/dashboard")}function Nn(){const e=location.pathname.replace(/\.html$/,"");Rn.includes(e)&&location.assign("/")}document.querySelectorAll("[data-onlogin]").forEach(e=>{e.hidden=!0});document.querySelectorAll("[data-onlogout]").forEach(e=>{e.hidden=!1});function le(e){var r,s,i;const t=!!(e!=null&&e.user),n=((r=e==null?void 0:e.user)==null?void 0:r.email)||"",a=((s=e==null?void 0:e.user)==null?void 0:s.name)||"",o=((i=e==null?void 0:e.user)==null?void 0:i.user_type)||"client";M("[data-onlogin]").forEach(c=>{c.hidden=!t,c.toggleAttribute("aria-hidden",!t)}),M("[data-onlogout]").forEach(c=>{c.hidden=t,c.toggleAttribute("aria-hidden",t)}),M("[data-auth-email], [data-user-email]").forEach(c=>{c.textContent=n||a}),M("[data-user-name]").forEach(c=>{c.textContent=a||n||"User"}),M("[data-user-role]").forEach(c=>{c.textContent=o}),M("a[data-cta-onlogin-href]").forEach(c=>{const g=c.getAttribute("data-cta-onlogin-href")||c.getAttribute("data-cta-onlogin-href"),l=c.getAttribute("data-cta-onlogin-i18n");if(g){if(t)c.dataset.ctaOriginalHref||(c.dataset.ctaOriginalHref=c.getAttribute("href")||"",c.dataset.ctaOriginalI18n=c.getAttribute("data-i18n")||""),c.setAttribute("href",g),l&&(c.setAttribute("data-i18n",l),c.textContent=d(l));else if(c.dataset.ctaOriginalHref){c.setAttribute("href",c.dataset.ctaOriginalHref);const h=c.dataset.ctaOriginalI18n;h&&(c.setAttribute("data-i18n",h),c.textContent=d(h))}}}),t?xn():Pt&&Nn()}function Ua(){Mn(),le(me()),_t(e=>{le(e)})}function Mn(){M("[data-region]").forEach(e=>{e.hidden=e.getAttribute("data-region")!==qe})}function Cn(){le(me())}const qn={success:"#i-mono-success",error:"#i-mono-alert",info:"#i-mono-info",warning:"#i-mono-alert",danger:"#i-mono-alert"},at={success:"app-alert--success",error:"app-alert--error",info:"app-alert--info",warning:"app-alert--warning",danger:"app-alert--danger"};let C=null,G=null,q=null;function ot(){G!=null&&(window.clearTimeout(G),G=null)}function $n(){q!=null&&(window.clearTimeout(q),q=null)}function Fe(){return document.getElementById("GlobalNotice")}function Hn(){return document.getElementById("GlobalNoticeText")}function Vn(){return document.querySelector("#GlobalNotice .app-alert__icon use")}function Un(e,t){e.dataset.type=t,Object.values(at).forEach(n=>e.classList.remove(n)),e.classList.add(at[t])}function Ae(e,t,n={}){const a=Fe(),o=Hn(),r=Vn();if(!a||!o)return;const s=n.autoHideMs??6e3,i=e==="error"||e==="danger";if(cn()&&!i){sn(e==="warning"?"info":e),ot(),G=window.setTimeout(()=>{G=null,rt(e,t,s,a,o,r)},2200);return}ot(),rt(e,t,s,a,o,r)}function rt(e,t,n,a,o,r){C!=null&&(window.clearTimeout(C),C=null),a.dataset.state="hidden",a.dataset.notice="hidden",a.offsetHeight,Un(a,e),a.setAttribute("role",e==="error"||e==="danger"?"alert":"status"),a.setAttribute("aria-live","polite"),r&&r.setAttribute("href",qn[e]),o.textContent=t,q!=null&&window.clearTimeout(q),q=window.setTimeout(()=>{q=null,a.dataset.state="visible",a.dataset.notice="visible"},50),n>0&&(C=window.setTimeout(()=>{je()},n))}function je(){$n();const e=Fe();e&&(e.dataset.state="hidden",e.dataset.notice="hidden",C!=null&&(window.clearTimeout(C),C=null))}function Fa(){const e=Fe();if(!e)return;const t=e.querySelector(".app-alert__close");t&&t.addEventListener("click",()=>je());const n=new URL(window.location.href),a=n.searchParams.get("status"),o=n.searchParams.get("msg");a&&o&&(Ae(a==="success"||a==="error"||a==="info"?a:"info",o),n.searchParams.delete("status"),n.searchParams.delete("msg"),window.history.replaceState({},"",n.toString()));try{const r=window.sessionStorage.getItem("globalNotice");if(r){const s=JSON.parse(r);Ae(s.type,s.message),window.sessionStorage.removeItem("globalNotice")}}catch{}}function Fn(e,t){Ae(e,t)}function ja(){je()}async function za(){await bt(),Dn()}function Ba(e){e&&b(e)}function jn(){xe(),b(null)}function Ga(e){document.addEventListener("click",async t=>{var a;(a=t.target)!=null&&a.closest('[data-action="logout"], [data-action="logout-utility"]')&&(t.preventDefault(),await Ee(),jn(),Fn("success",d("auth.messages.logoutSuccess")),e())})}async function Ja(){const e=await fetch("/icons-sprite.svg",{cache:"force-cache"});if(!e.ok)return;let t=await e.text();t=t.replace(/<script[\s\S]*?>[\s\S]*?<\/script>/gi,""),t.includes('xmlns="http://www.w3.org/2000/svg"')||(t=t.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));const n=document.createElement("div");n.style.position="absolute",n.style.width="0",n.style.height="0",n.style.overflow="hidden",n.innerHTML=t;const a=n.querySelector("svg");a&&document.body.prepend(a)}function J(e){const t=e.getAttribute("data-icon");if(!t)return;const n=`i-${t.replace("/","-")}`,a=e.querySelector(":scope > svg > use");if(a){const s=`/icons-sprite.svg#${n}`;a.getAttribute("href")!==s&&a.setAttribute("href",s);return}if(e.querySelector("svg"))return;const o=document.createElementNS("http://www.w3.org/2000/svg","svg");o.setAttribute("aria-hidden","true");const r=document.createElementNS("http://www.w3.org/2000/svg","use");r.setAttribute("href",`/icons-sprite.svg#${n}
1`),o.appendChild(r),e.appendChild(o)}function Ka(e=document){e instanceof Element&&e.hasAttribute("data-icon")&&J(e),e.querySelectorAll("[data-icon]").forEach(J)}function Ya(){new MutationObserver(t=>{t.forEach(n=>{if(n.type==="attributes"){n.target.nodeType===Node.ELEMENT_NODE&&J(n.target);return}n.addedNodes.forEach(a=>{if(a.nodeType!==Node.ELEMENT_NODE)return;const o=a;o.hasAttribute("data-icon")&&J(o),o.querySelectorAll("[data-icon]").forEach(J)})})}).observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-icon"]})}function It(){if(typeof document>"u")return;const e=P();document.documentElement.lang=T[e].htmlLang,document.documentElement.dataset.locale=e}function ze(){return T[P()].intlTag}const zn={month:"short",day:"numeric",year:"numeric"},Bn={month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit"};function Wa(e,t=zn){return(e instanceof Date?e:new Date(e)).toLocaleDateString(ze(),t)}function Xa(e,t=Bn){return(e instanceof Date?e:new Date(e)).toLocaleString(ze(),t)}function Qa(e,t){return e.toLocaleString(ze(),t)}function Gn(e,t,n="",a="",o={}){const r=o.defaultLocale??$,s=Ve(t),i=s??{locale:r,base:X(t)};return e===i.locale?null:He(i.base)?T[e].urlPrefix===""&&e!==r?null:hn(e,i.base)+n+a:s&&e===r?i.base+n+a:null}function Jn(e=document){It(),e.querySelectorAll("[data-i18n-html]").forEach(t=>{const n=t.dataset.i18nHtml;n&&(t.innerHTML=d(n))}),e.querySelectorAll("[data-i18n]").forEach(t=>{const n=t.dataset.i18n;n&&(t.textContent=d(n))}),e.querySelectorAll("[data-i18n-content]").forEach(t=>{const n=t.dataset.i18nContent;n&&t.setAttribute("content",d(n))}),e.querySelectorAll("[data-i18n-href]").forEach(t=>{const n=t.dataset.i18nHref;n&&t.setAttribute("href",d(n))}),e.querySelectorAll("[data-i18n-aria]").forEach(t=>{const n=t.dataset.i18nAria;n&&t.setAttribute("aria-label",d(n))}),e.querySelectorAll("[data-i18n-title]").forEach(t=>{const n=t.dataset.i18nTitle;n&&t.setAttribute("title",d(n))}),e.querySelectorAll("[data-i18n-placeholder]").forEach(t=>{const n=t.dataset.i18nPlaceholder;n&&t.setAttribute("placeholder",d(n))}),e.querySelectorAll("[data-i18n-tooltip]").forEach(t=>{const n=t.dataset.i18nTooltip;n&&t.setAttribute("data-tooltip-content",d(n))})}function Kn(e){return{code:e,label:T[e].label,flag:An(Tn[e]??"")}}function Yn(e){if(typeof window>"u")return!1;const{pathname:t,search:n,hash:a}=window.location,o=Gn(e,t,n,a);return o?(window.localStorage.setItem("locale",e),window.location.assign(o),!0):!1}let st=0;function Za(e=document){const t=typeof window<"u"?At(window.location.pathname):tt(),n=tt().filter(a=>t.includes(a)).map(Kn);e.querySelectorAll(".lang-switcher").forEach(a=>{if(n.length<=1){a.style.display="none";return}if(a.dataset.langInit==="1")return;const o=a.querySelector(".dropdown__trigger"),r=a.querySelector("[data-lang-menu]"),s=a.querySelector("[data-lang-flag]"),i=a.querySelector("[data-lang-label]");if(!o||!r||!s||!i)return;a.dataset.langInit="1";const c=l=>{const h=n.find(v=>v.code===l)??n[0];s.innerHTML=`<img src="${h.flag}" alt="" />`,i.textContent=h.label},m=l=>{r.querySelectorAll(".lang-switcher__item").forEach(h=>{const v=h.dataset.lang===l;h.classList.toggle("is-active",v),h.setAttribute("aria-selected",String(v))})};r.innerHTML="",n.forEach(l=>{const h=document.createElement("button");h.type="button",h.className="dropdown__item lang-switcher__item",h.dataset.lang=l.code,h.setAttribute("role","option"),h.innerHTML=`<span class="lang-flag"><img src="${l.flag}" alt="" /></span><span class="dropdown__item-label">${l.label}</span>`,r.appendChild(h),h.addEventListener("click",async()=>{const v=l.code,Q=++st;if(P()!==v){if(Yn(v))return;const I=await se(v,Ue());if(Q!==st)return;I&&(Tt(v),It(),Jn(document),Cn(),document.dispatchEvent(new CustomEvent("locale-change",{detail:{locale:v}})))}c(P()),m(P()),a.classList.remove("dropdown--open"),o.setAttribute("aria-expanded","false")})});const g=P();c(g),m(g)})}const Be="theme";function Te(e){const t=document.documentElement;t.dataset.theme=e;try{window.localStorage.setItem(Be,e)}catch{}document.dispatchEvent(new CustomEvent("theme-change",{detail:e}))}function Ge(){var a;const e=document.documentElement;try{const o=window.localStorage.getItem(Be);if(o==="dark"||o==="light")return o}catch{}const t=e.dataset.theme;return t==="dark"||t==="light"?t:((a=window.matchMedia)==null?void 0:a.call(window,"(prefers-color-scheme: dark)").matches)?"dark":"light"}function eo(){const e=Ge();Te(e);try{window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",n=>
1{window.localStorage.getItem(Be)||Te(n.matches?"dark":"light")})}catch{}}function Wn(){const e=Ge();Te(e==="dark"?"light":"dark")}function to(e=document){const t=e.querySelectorAll("[data-theme-toggle]");if(t.length===0)return;const n=()=>{const a=Ge();e.querySelectorAll("[data-theme-icon]").forEach(o=>{const r=o.dataset.themeIcon;o.hidden=r!==a})};t.forEach(a=>{a.addEventListener("click",()=>{Wn(),n()})}),n()}let _e=0;const Xn=5,Qn=300;let H=null,ne=null,j=!0,it=0;function no(){const e=document.querySelector(".site-header"),t=document.querySelector(".utility-bar");if(!e)return;function n(){it=((e==null?void 0:e.offsetHeight)||0)+((t==null?void 0:t.offsetHeight)||0)}n(),window.addEventListener("resize",n);function a(){const m=document.querySelector("#GlobalNotice");if(!e||!m)return;const g=e.getBoundingClientRect();m.style.top=`${g.height}px`}function o(){const m=window.scrollY||document.documentElement.scrollTop,g=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight);return j=m<=it||m===0||g<=window.innerHeight,j}function r(){!t||j||(t.classList.add("utility-bar-hidden"),a())}function s(){t&&(t.classList.remove("utility-bar-hidden"),a())}function i(){!e||j||(e.classList.add("header-hidden"),a())}function c(){e&&(e.classList.remove("header-hidden"),a())}window.addEventListener("scroll",()=>{const m=window.scrollY||document.documentElement.scrollTop;if(Math.abs(_e-m)<=Xn)return;n();const g=m>_e?"down":"up";H!==null&&ne!==g&&(window.clearTimeout(H),H=null,ne=null);const l=h=>{H===null&&(ne=g,H=window.setTimeout(()=>{H=null,ne=null,h()},Qn))};o()?(c(),s()):g==="down"?(r(),l(i)):(c(),l(s)),_e=m}),window.addEventListener("load",()=>{o(),j&&(c(),s()),a()}),window.addEventListener("resize",a)}function ao(){if(document.body.classList.contains("layout-dashboard"))return;const e=document.querySelector("[data-mobile-menu-toggle]");if(!e)return;e.addEventListener("click",()=>{const n=document.body.classList.toggle("mobile-menu-open");e.setAttribute("aria-expanded",String(n)),Ot(e,n?"close":"backburger")}),document.addEventListener("click",n=>{if(!document.body.classList.contains("mobile-menu-open"))return;const a=n.target;a.closest("[data-mobile-menu-toggle]")||a.closest(".primary-nav")||ae(e)}),document.addEventListener("keydown",n=>{n.key==="Escape"&&document.body.classList.contains("mobile-menu-open")&&(ae(e),e.focus())}),document.addEventListener("click",n=>{n.target.closest(".primary-nav a")&&document.body.classList.contains("mobile-menu-open")&&ae(e)}),window.matchMedia("(min-width: 1024px)").addEventListener("change",n=>{n.matches&&ae(e)})}function ae(e){document.body.classList.remove("mobile-menu-open"),e.setAttribute("aria-expanded","false"),Ot(e,"backburger")}function Ot(e,t){const n=e.querySelector(".icon");if(!n)return;n.setAttribute("data-icon",`mono/${t}`);const a=n.querySelector("svg use");a&&a.setAttribute("href",`/icons-sprite.svg#i-mono-${t}`)}const Zn=6,ea=160,ct={},ve={};function ta(e){const t=ct[e];if(t)return Promise.resolve(t);const n=ve[e];if(n)return n;const o=import(`/pagefind/${e}/pagefind.js`).then(async r=>(typeof r.init=="function"&&await r.init(),ct[e]=r,r)).catch(r=>{throw delete ve[e],r});return ve[e]=o,o}function na(e){const t=e.replace(/index\.html$/,"").replace(/\.html(?=$|[?#])/,""),n=T[P()].urlPrefix;return!n||t===n||t.startsWith(`${n}/`)?t:t==="/"?n:`${n}${t}`}function aa(e){const t=e.replace(/[#?].*$/,"").replace(/index\.html$/,"").replace(/\.html$/,"").replace(/\/+$/,"");if(t==="")return d("layout.nav.home");if(/(^|\/)docs(\/|$|-)/.test(t))return d("layout.nav.docs");const n=t.split("/").filter(Boolean)[0]??"";return{pricing:d("layout.nav.pricing"),features:d("layout.nav.features"),about:d("layout.footer.about"),privacy:d("layout.footer.privacy"),terms:d("layout.footer.terms"),security:d("layout.footer.security"),requisites:d("layout.footer.requisites"),contact:d("layout.footer.contact")}[n]??""}function w(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function oa(){const e=document.createElement("div");return e.className="search search--inline",e.innerHTML=` 2 <div class="search-trigger" data-search-trigger>
3 <span class="icon" aria-hidden="true"><svg><use href="#i-mono-magnify"></use></svg></span> 4 <input 5 class="search-trigger__input" 6 type="search" 7 autocomplete="off" 8 spellcheck="false" 9 data-search-input 10 data-i18n-placeholder="layout.search.placeholder" 11 data-i18n-aria="layout.search.ariaLabel" 12 placeholder="${w(d("layout.search.placeholder"))}" 13 aria-label="${w(d("layout.search.ariaLabel"))}" 14 /> 15 <span class="search-trigger__hint" aria-hidden="true"><kbd>${navigator.platform.includes("Mac")?"âK":"Ctrl K"}</kbd></span> 16 <button type="button" class="search-trigger__close" data-search-close data-i18n-aria="layout.search.hintClose" aria-label="${w(d("layout.search.hintClose"))}"> 17 <svg class="icon" aria-hidden="true"><use href="#i-mono-close"></use></svg> 18 </button> 19 </div> 20 <div class="search-palette" data-search-palette role="listbox" hidden> 21 <div class="search-palette__results" data-search-results></div> 22 <div class="search-palette__footer"> 23 <span class="cluster"><kbd>â</kbd><kbd>â</kbd> <span data-i18n="layout.search.hintNavigate">${w(d("layout.search.hintNavigate"))}</span></span> 24 <span class="cluster"><kbd>âµ</kbd> <span data-i18n="layout.search.hintOpen">${w(d("layout.search.hintOpen"))}</span></span> 25 <span class="cluster"><kbd>esc</kbd> <span data-i18n="layout.search.hintClose">${w(d("layout.search.hintClose"))}</span></span> 26 </div> 27 </div>`,e}function oo(){var Xe;if(document.body.classList.contains("layout-dashboard"))return;const e=document.querySelector(".utility-bar__inner");if(!e||e.querySelector("[data-search-trigger]"))return;const t=oa(),n=e.querySelector(".utility-right");e.insertBefore(t,n??null);const a=t.querySelector("[data-search-input]"),o=t.querySelector("[data-search-palette]"),r=t.querySelector("[data-search-results]");let s=-1,i=[],c=null,m="",g=0;function l(){t.classList.contains("is-open")||(t.classList.add("is-open"),o.hidden=!1)}function h(){t.classList.remove("is-open"),o.hidden=!0,s=-1}function v(){document.body.appendChild(t),document.body.classList.add("search-mobile-open"),l(),r.innerHTML||I(`<div class="search-empty">${w(d("layout.search.idle"))}</div>`),a.focus()}function Q(){document.body.classList.remove("search-mobile-open"),h(),e&&t.parentElement===document.body&&e.insertBefore(t,n??null)}function I(f){r.innerHTML=f,i=[],s=-1}function Mt(f){if(!f.length){I(`<div class="search-no-results">${w(d("layout.search.noResults").replace("{q}",m))}</div>`);return}r.innerHTML=f.map(y=>{var ee;const D=w(((ee=y.meta)==null?void 0:ee.title)||y.url),O=aa(y.url),pe=O?`<span class="badge badge--neutral">${w(O)}</span>`:"",ye=y.excerpt||"";return`<a class="card card--interactive search-result" href="${w(na(y.url))}" role="option"> 28 <div class="search-result__head"> 29 <span class="search-result__title">${D}</span> 30 ${pe} 31 </div> 32 <p class="search-result__excerpt">${ye}</p> 33 </a>`}).join(""),i=Array.from(r.querySelectorAll(".search-result")),s=-1}function Ye(f){var y;i.length&&(s=(f+i.length)%i.length,i.forEach((D,O)=>D.classList.toggle("is-active",O===s)),(y=i[s])==null||y.scrollIntoView({block:"nearest"}))}async function We(f){if(m=f,!f.trim()){I(`<div class="search-empty">${w(d("layout.search.idle"))}</div>`);return}const y=++g;I(`<div class="search-loading">${w(d("layout.search.loading"))}</div>`);let D;try{D=await ta(P())}catch{y===g&&I(`<div class="search-no-results">${w(d("layout.search.unavailable"))}</div>`);return}if(y!==g)return;const O=await D.search(f);if(y!==g)return;const pe=O.results.slice(0,Zn),ye=await Promise.all(pe.map(ee=>ee.data()));y===g&&Mt(ye)}a.addEventListener("input",()=>{l(),c&&clearTimeout(c),c=setTimeout(()=>void We(a.value),ea)}),a.addEventListener("focus",()=>{l(),r.innerHTML||I(`<div class="search-empty">${w(d("layout.search.idle"))}</div>`)}),a.addEventListener("keydown",f=>{f.key==="ArrowDown"?(f.preventDefault(),Ye(s+1)):f.key==="ArrowUp"?(f.preventDefault(),Ye(s-1)):f.key==="Enter"?s>=0&&i[s]&&(f.preventDefault(),i[s].click()):f.key==="Escape"&&(Q(),a.blur()
33)}),document.addEventListener("keydown",f=>{var O;if(typeof f.key!="string")return;const y=f.key.toLowerCase(),D=(O=f.target)==null?void 0:O.closest("input, textarea, select, [contenteditable]");(f.metaKey||f.ctrlKey)&&y==="k"?(f.preventDefault(),a.focus(),a.select()):y==="/"&&!D&&(f.preventDefault(),a.focus())}),document.addEventListener("click",f=>{!document.body.classList.contains("search-mobile-open")&&!t.contains(f.target)&&h()}),(Xe=t.querySelector("[data-search-close]"))==null||Xe.addEventListener("click",()=>{document.body.classList.contains("search-mobile-open")?Q():(h(),a.blur())});const Z=document.querySelector(".site-header__inner .header-actions");if(Z&&!Z.querySelector("[data-search-mobile-toggle]")){const f=document.createElement("button");f.type="button",f.className="btn-icon btn-icon--compact search-mobile-toggle",f.setAttribute("aria-label",d("layout.search.ariaLabel")),f.setAttribute("data-search-mobile-toggle","true"),f.innerHTML='<span class="icon" aria-hidden="true"><svg><use href="#i-mono-magnify"></use></svg></span>',Z.insertBefore(f,Z.firstChild),f.addEventListener("click",v)}document.addEventListener("locale-change",()=>{t.classList.contains("is-open")&&(m.trim()?We(m):I(`<div class="search-empty">${w(d("layout.search.idle"))}</div>`))})}function Rt(e){const t=e.querySelector(".dropdown__menu");if(!t)return;t.classList.remove("dropdown__menu--up","dropdown__menu--right");const n=t.getBoundingClientRect(),a=e.getBoundingClientRect(),o=window.innerWidth,r=window.innerHeight,s=16,i=r-a.bottom,c=a.top;!(a.top<r*.3)&&c>=150&&c>i&&t.classList.add("dropdown__menu--up");const l=o-n.right,h=a.left;l<s&&h>Math.abs(l)&&t.classList.add("dropdown__menu--right")}let lt=!1;function ke(e){e.classList.remove("dropdown--open");const t=e.querySelector(".dropdown__trigger");t&&t.setAttribute("aria-expanded","false");const n=e.querySelector(".dropdown__menu");n&&(n.classList.remove("dropdown__menu--up","dropdown__menu--right"),e.hasAttribute("data-sync-chip")&&(n.style.display="none"))}function dt(e){document.querySelectorAll(".dropdown--open, [data-dropdown].dropdown--open").forEach(t=>{t!==e&&ke(t)})}function ro(){lt||(lt=!0,document.addEventListener("click",e=>{const t=e.target,n=t.closest(".dropdown__trigger");if(n){const a=n.closest(".dropdown, [data-dropdown]");if(!a||a.hasAttribute("data-filter-id"))return;e.stopPropagation();const o=a.classList.contains("dropdown--open");if(dt(a),o)ke(a);else{if(a.classList.add("dropdown--open"),n.setAttribute("aria-expanded","true"),a.hasAttribute("data-sync-chip")){const r=a.querySelector(".dropdown__menu");r&&(r.style.display="block")}requestAnimationFrame(()=>{Rt(a)})}}else{const a=t.closest(".dropdown__item"),o=a==null?void 0:a.closest(".dropdown, [data-dropdown]");if(a&&o&&!o.hasAttribute("data-filter-id")&&!a.querySelector('input[type="checkbox"]')){ke(o);return}!t.closest(".dropdown")&&!t.closest("[data-dropdown]")&&dt()}}))}function so(e){e.addEventListener("click",t=>{const n=t.target.closest(".dropdown__trigger");if(!n){ut(e);return}t.stopPropagation();const a=n.closest(".dropdown, [data-dropdown]");if(!a)return;const o=a.classList.contains("dropdown--open");ut(e,a),o?(a.classList.remove("dropdown--open"),n.setAttribute("aria-expanded","false")):(a.classList.add("dropdown--open"),n.setAttribute("aria-expanded","true"),requestAnimationFrame(()=>{Rt(a)}))})}function ut(e,t){e.querySelectorAll(".dropdown--open, [data-dropdown].dropdown--open").forEach(a=>{if(a===t)return;a.classList.remove("dropdown--open");const o=a.querySelector(".dropdown__menu");o&&o.classList.remove("dropdown__menu--up");const r=a.querySelector(".dropdown__trigger");r&&r.setAttribute("aria-expanded","false")})}const K="referral_attribution",ft=30*24*60*60*1e3;let Je=null,de=!1;function gt(e,t="ref",n=Date.now()){const a=e.trim();if(!a)return;const o={code:a,kind:t,at:n};Je=o;try{localStorage.setItem(K,JSON.stringify(o)),de=!1}catch{de=!0}}function io(e=Date.now()){const t=s=>s&&e-s.at<=ft?s:void 0;let n,a=!0;try{const s=localStorage.getItem(K);if(s){const i=JSON.parse(s);typeof(i==null?void 0:i.code)=="string"&&typeof(i==null?void 0:i.at)=="number"?e-i.at>ft?localStorage.removeItem(K):n={code:i.code,kind:i.kind==="promo"?"promo":"ref",at:i.at}:localStorage.removeItem(K)}}catch{a=!1}const o=a&&!de?void 0:t(Je),r=n&&o?o.at>n.at?o:n:n??o;return t(r)}function co(){Je=null,de=!1;try{localStorage.removeItem(K)}catch{}}const ue="referral_pending_registration",Ke=30*60*1e3,ra=5;function Dt(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619)>>>0;return t.toString(16)}
33function lo(e,t,n=Date.now()){if(!e||!t)return;const a={token:Dt(e),code:t,at:n};try{const o=xt().filter(r=>n-r.at<=Ke);o.push(a),localStorage.setItem(ue,JSON.stringify(o.slice(-ra)))}catch{}}function uo(e,t,n=Date.now()){if(!e)return!1;try{const a=xt();if(a.length===0)return!1;const o=a.filter(i=>n-i.at<=Ke),r=Dt(e),s=o.find(i=>i.token===r);return s?(mt(o.filter(i=>i!==s)),s.code===t):(o.length!==a.length&&mt(o),!1)}catch{return!1}}function xt(){try{const e=localStorage.getItem(ue);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(n=>typeof(n==null?void 0:n.token)=="string"&&typeof(n==null?void 0:n.code)=="string"&&typeof(n==null?void 0:n.at)=="number"):[]}catch{return[]}}function mt(e){try{e.length===0?localStorage.removeItem(ue):localStorage.setItem(ue,JSON.stringify(e))}catch{}}const fe="referral_pending_oauth";function fo(e,t=Date.now()){try{if(!e){sessionStorage.removeItem(fe);return}sessionStorage.setItem(fe,JSON.stringify({code:e,at:t}))}catch{}}function go(e=Date.now()){try{const t=sessionStorage.getItem(fe);if(sessionStorage.removeItem(fe),!t)return null;const n=JSON.parse(t);if(typeof(n==null?void 0:n.code)!="string"||typeof(n==null?void 0:n.at)!="number")return null;const a=n;return e-a.at>Ke?null:a}catch{return null}}function sa(e){return E("/referral/visit",{method:"POST",body:JSON.stringify(e),showLoading:!1,keepalive:!0})}const ht="referral_visitor",Nt=["source","medium","campaign","content","term"],ia=128;function ca(e){var a;const t=new URLSearchParams(e),n={};for(const o of Nt){const r=(a=t.get(`utm_${o}`))==null?void 0:a.trim();!r||r.length>ia||(n[o]=r)}return Object.keys(n).length>0?n:void 0}function la(){try{const e=localStorage.getItem(ht);if(e)return e;const t=crypto.randomUUID();return localStorage.setItem(ht,t),t}catch{return crypto.randomUUID()}}const pt=["ref","promo",...Nt.map(e=>`utm_${e}`)];function da(){try{const e=new URL(window.location.href);if(!pt.some(a=>e.searchParams.has(a)))return;for(const a of pt)e.searchParams.delete(a);const n=e.searchParams.toString();window.history.replaceState(null,"",e.pathname+(n?`?${n}`:"")+e.hash)}catch{}}async function mo(e=window.location.search){var o,r;const t=new URLSearchParams(e),n=(o=t.get("ref"))==null?void 0:o.trim(),a=(r=t.get("promo"))==null?void 0:r.trim();if(n?gt(n,"ref"):a&>(a,"promo"),da(),!!n)try{await sa({code:n,visitor:la(),utm:ca(e)})}catch{}}export{ha as $,Ht as A,Ut as B,Gt as C,Vt as D,so as E,Fn as F,Xt as G,sn as H,Zt as I,Qa as J,me as K,Na as L,Da as M,Ma as N,xa as O,Ca as P,S as Q,_t as R,Rt as S,ke as T,B as U,Ea as V,wt as W,ma as X,pa as Y,wa as Z,u as _,Ja as a,zt as a0,Ae as a1,ya as a2,_a as a3,P as a4,va as a5,Qt as a6,ln as a7,Nt as a8,ia as a9,De as aa,Me as ab,Ce as ac,La as ad,Va as ae,ja as af,ka as ag,en as ah,io as ai,fo as aj,Pa as ak,lo as al,Ia as am,Ra as an,Oa as ao,Ba as ap,uo as aq,co as ar,R as as,ge as at,go as au,ga as av,ba as aw,Sa as ax,Ta as ay,Ya as b,eo as c,Jn as d,qa as e,Za as f,ro as g,Fa as h,Aa as i,Ua as j,za as k,Ga as l,to as m,no as n,ao as o,Ka as p,oo as q,$a as r,d as s,mo as t,Ha as u,Wa as v,Xa as w,$t as x,U as y,E as z};
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.