PageSourceSearch

https://www.fedramp.gov/_app/immutable/chunks/mpPM_jtR.js

js fedramp.gov collected 2026-09-27 20:54:06 UTC 2,190 bytes, 1 lines download raw bytes

1import"./B9pf7GWL.js";const w=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,$=/^\/\((?:[^)]+)\)$/;function W(t){const s=[];return{pattern:t==="/"||$.test(t)?/^\/$/:new RegExp(`^${_(t).map(i=>{const o=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(i);if(o)return s.push({name:o[1],matcher:o[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const u=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(i);if(u)return s.push({name:u[1],matcher:u[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!i)return;const n=i.split(/\[(.+?)\](?!\])/);return"/"+n.map((e,r)=>{if(r%2){if(e.startsWith("x+"))return h(String.fromCharCode(parseInt(e.slice(2),16)));if(e.startsWith("u+"))return h(String.fromCharCode(...e.slice(2).split("-").map(g=>parseInt(g,16))));const c=w.exec(e),[,l,f,m,d]=c;return s.push({name:m,matcher:d,optional:!!l,rest:!!f,chained:f?r===1&&n[0]==="":!1}),f?"([^]*?)":l?"([^/]*)?":"([^/]+?)"}return h(e)}).join("")}).join("")}/?$`),params:s}}function x(t){return t!==""&&!/^\([^)]+\)$/.test(t)}function _(t){return t.slice(1).split("/").filter(x)}function b(t,s,p){const i={},o=t.slice(1),u=o.filter(a=>a!==void 0);let n=0;for(let a=0;a<s.length;a+=1){const e=s[a];let r=o[a-n];if(e.chained&&e.rest&&n&&(r=o.slice(a-n,a+1).filter(c=>c).join("/"),n=0),r===void 0)if(e.rest)r="";else continue;if(!e.matcher||p[e.matcher](r)){i[e.name]=r;const c=s[a+1],l=o[a+1];c&&!c.rest&&c.optional&&l&&e.chained&&(n=0),!c&&!l&&Object.keys(i).length===u.length&&(n=0);continue}if(e.optional&&e.chained){n++;continue}return}if(!n)return i}function h(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}const v=/\[(\[)?(\.\.\.)?(\w+?)(?:=(\w+))?\]\]?/g;function C(t,s){const p=_(t),i=t!="/"&&t.endsWith("/");return"/"+p.map(o=>o.replace(v,(u,n,a,e)=>{const r=s[e];if(!r){if(n||a&&r!==void 0)return"";throw new Error(`Missing parameter '${e}' in route ${t}`)}if(r.startsWith("/")||r.endsWith("/"))throw new Error(`Parameter '${e}' in route ${t} cannot start or end with a slash -- this would cause an invalid route like foo//bar`);return r})).filter(Boolean).join("/")+(i?"/":"")}export{b as e,W as p,C as r};

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.