Liferay.Loader.define("frontend-js-web@5.0.32/liferay/util/add_params",["module","exports","require"],(function(e,r,a){window;Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,r){if(!e||"object"!=typeof e&&"string"!=typeof e)throw new TypeError("Parameter params must be an object or string");if("string"!=typeof r)throw new TypeError("Parameter baseUrl must be a string");const a=r.startsWith("/")?new URL(r,location.href):new URL(r);if("object"==typeof e)Object.entries(e).forEach((([e,r])=>{a.searchParams.append(e,r)}));else{new URLSearchParams(e.trim()).forEach(((e,r)=>{e?a.searchParams.append(r,e):a.searchParams.append(r,"")}))}return a.toString()}}));
//# sourceMappingURL=add_params.js.map