import{__exports as r}from"../../../../../../../_virtual/querystring.js_commonjs-exports";export{__exports as default}from"../../../../../../../_virtual/querystring.js_commonjs-exports";function e(r){return"string"==typeof r||"number"==typeof r&&!isNaN(r)||"boolean"==typeof r?String(r):""}r.__esModule=!0,r.searchParamsToUrlQuery=function(r){const e={};return r.forEach(((r,o)=>{void 0===e[o]?e[o]=r:Array.isArray(e[o])?e[o].push(r):e[o]=[e[o],r]})),e},r.urlQueryToSearchParams=function(r){const o=new URLSearchParams;return Object.entries(r).forEach((([r,a])=>{Array.isArray(a)?a.forEach((a=>o.append(r,e(a)))):o.set(r,e(a))})),o},r.assign=function(r,...e){return e.forEach((e=>{Array.from(e.keys()).forEach((e=>r.delete(e))),e.forEach(((e,o)=>r.append(o,e)))})),r};
//# sourceMappingURL=querystring.js.map
