define(["exports"],function(_exports){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0;var queryString={parse:function(str){return"string"==typeof str&&(str=str.trim().replace(/^(\?|#|&)/,""))?str.split("&").reduce(function(ret,param){var param=param.replace(/\+/g," ").split("="),key=param[0],param=param[1],key=decodeURIComponent(key),param=void 0===param?null:decodeURIComponent(param);return Object.hasOwn(ret,key)?Array.isArray(ret[key])?ret[key].push(param):ret[key]=[ret[key],param]:ret[key]=param,ret},{}):{}},paramsToString:function(params){var key,values=[];for(key in params){var value=params[key];null!=value&&""!==value&&values.push("".concat(encodeURIComponent(key),"=").concat(encodeURIComponent(value)))}return values.join("&")}};_exports.default=queryString});