PageSourceSearch

https://revivall.net/assets/useRateLimit-sELg8ROg.js

js revivall.net collected 2026-10-09 22:17:08 UTC 871 bytes, 1 lines download raw bytes

1import{t as e}from"./client-DIzADazv.js";var t=()=>{let e=[navigator.userAgent,navigator.language,new Date().getTimezoneOffset().toString(),screen.width+`x`+screen.height,screen.colorDepth.toString()],t=0,n=e.join(`|`);for(let e=0;e<n.length;e++){let r=n.charCodeAt(e);t=(t<<5)-t+r,t&=t}return Math.abs(t).toString(36)},n=async(n,r=5,i=60)=>{try{let a=t(),{data:o,error:s}=await e.rpc(`check_rate_limit`,{p_identifier:a,p_action_type:n,p_max_requests:r,p_window_minutes:i});return s?(console.error(`Rate limit check error:`,s),{allowed:!0}):{allowed:!!o,error:o?void 0:`Too many submissions. Please try again later.`}}catch(e){return console.error(`Rate limit error:`,e),{allowed:!0}}},r=async n=>{try{let r=t();await e.rpc(`record_rate_limit_entry`,{p_identifier:r,p_action_type:n})}catch(e){console.error(`Failed to record rate limit entry:`,e)}};export{r as n,n as t};

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.