{"version":3,"file":"combineUrlSegments.chunk-7PTbD1u3.js","sources":["../../shared/utils/combineUrlSegments.ts"],"sourcesContent":["export function combineUrlSegments(...segments: string[]): string {\r\n    const baseSegments = segments.filter((segment) => !segment.startsWith('?'));\r\n    const queryParams = segments.filter((segment) => segment.startsWith('?')).join('');\r\n\r\n    const combinedBaseUrl = baseSegments.map((segment) => segment.trim().replace(/\\/+$/, '')).join('/');\r\n\r\n    return combinedBaseUrl + (queryParams ? (combinedBaseUrl.includes('?') ? '&' : '?') + queryParams.slice(1) : '');\r\n}\r\n"],"names":["combineUrlSegments","segments","baseSegments","segment","queryParams","combinedBaseUrl"],"mappings":"AAAO,SAASA,KAAsBC,EAA4B,CACxD,MAAAC,EAAeD,EAAS,OAAQE,GAAY,CAACA,EAAQ,WAAW,GAAG,CAAC,EACpEC,EAAcH,EAAS,OAAQE,GAAYA,EAAQ,WAAW,GAAG,CAAC,EAAE,KAAK,EAAE,EAE3EE,EAAkBH,EAAa,IAAKC,GAAYA,EAAQ,OAAO,QAAQ,OAAQ,EAAE,CAAC,EAAE,KAAK,GAAG,EAE3F,OAAAE,GAAmBD,GAAeC,EAAgB,SAAS,GAAG,EAAI,IAAM,KAAOD,EAAY,MAAM,CAAC,EAAI,GACjH"}