1var e=()=>({}),t=(e,t)=>({[t?.mergeQuery?`mergeQuery`:`query`]:{_method:e.toUpperCase(),...t?.query??t?.mergeQuery}}),n=e=>e===!0?`1`:e===!1?`0`:e.toString(),r=(e,t,i)=>{Object.entries(e).forEach(([e,a])=>{if(a===void 0)return;let o=`${t}[${e}]`;Array.isArray(a)?a.forEach(e=>i.append(`${o}[]`,n(e))):typeof a==`object`&&a?r(a,o,i):[`string`,`number`,`boolean`].includes(typeof a)&&i.set(o,n(a))})},i=e=>{if(!e||!e.query&&!e.mergeQuery)return``;let t=e.query??e.mergeQuery,i=e.mergeQuery!==void 0,a=new URLSearchParams(i&&typeof window<`u`?window.location.search:``);for(let e in t){let i=t[e];if(i==null){a.delete(e);continue}Array.isArray(i)?(a.has(`${e}[]`)&&a.delete(`${e}[]`),i.forEach(t=>{a.append(`${e}[]`,t.toString())})):typeof i==`object`?(a.forEach((t,n)=>{n.startsWith(`${e}[`)&&a.delete(n)}),r(i,e,a)):a.set(e,n(i))}let o=a.toString();return o.length>0?`?${o}`:``},a=(e,t)=>{let n=t.filter(t=>{let n=e?.[t];return n==null||n===``||n===!1}),r=t.slice(n.length*-1);for(let e=0;e<n.length;e++)if(n[e]!==r[e])throw Error(`Unexpected optional parameters missing. Unable to generate a URL.`)},o=t=>{let n={...t??{}},r=e();for(let e in r)n[e]===void 0&&r[e]!==void 0&&(n[e]=r[e]);return n};export{a as i,t as n,i as r,o 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.