import{cW as ee}from"./index-0d8158eb.js";var re=String.prototype.replace,ne=/%20/g,Q={RFC1738:"RFC1738",RFC3986:"RFC3986"},H={default:Q.RFC3986,formatters:{RFC1738:function(a){return re.call(a,ne,"+")},RFC3986:function(a){return String(a)}},RFC1738:Q.RFC1738,RFC3986:Q.RFC3986},te=H,R=Object.prototype.hasOwnProperty,O=Array.isArray,b=function(){for(var a=[],e=0;e<256;++e)a.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return a}(),ae=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(O(n)){for(var f=[],l=0;l=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||l===te.RFC1738&&(i===40||i===41)){u+=t.charAt(o);continue}if(i<128){u=u+b[i];continue}if(i<2048){u=u+(b[192|i>>6]+b[128|i&63]);continue}if(i<55296||i>=57344){u=u+(b[224|i>>12]+b[128|i>>6&63]+b[128|i&63]);continue}o+=1,i=65536+((i&1023)<<10|t.charCodeAt(o)&1023),u+=b[240|i>>18]+b[128|i>>12&63]+b[128|i>>6&63]+b[128|i&63]}return u},ue=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],f=0;f"u"&&(E=0)}if(typeof u=="function"?s=u(r,s):s instanceof Date?s=c(s):n==="comma"&&x(s)&&(s=$.maybeMap(s,function(A){return A instanceof Date?c(A):A})),s===null){if(f)return t&&!m?t(r,v.encoder,y,"key",p):r;s=""}if(be(s)||$.isBuffer(s)){if(t){var I=m?r:t(r,v.encoder,y,"key",p);if(n==="comma"&&m){for(var M=pe.call(String(s),","),V="",C=0;C"u")return D;var j;if(n==="comma"&&x(s))j=[{value:s.length>0?s.join(",")||null:void 0}];else if(x(u))j=u;else{var _=Object.keys(s);j=o?_.sort(o):_}for(var P=0;P"u"?v.allowDots:!!e.allowDots,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:v.charsetSentinel,delimiter:typeof e.delimiter>"u"?v.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:v.encode,encoder:typeof e.encoder=="function"?e.encoder:v.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:v.encodeValuesOnly,filter:l,format:n,formatter:f,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:v.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:v.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:v.strictNullHandling}},xe=function(a,e){var r=a,n=Oe(e),f,l;typeof n.filter=="function"?(l=n.filter,r=l("",r)):x(n.filter)&&(l=n.filter,f=l);var t=[];if(typeof r!="object"||r===null)return"";var u;e&&e.arrayFormat in K?u=e.arrayFormat:e&&"indices"in e?u=e.indices?"indices":"repeat":u="indices";var o=K[u];f||(f=Object.keys(r)),n.sort&&f.sort(n.sort);for(var i=Y(),c=0;c0?m+h:""},w=X,L=Object.prototype.hasOwnProperty,we=Array.isArray,d={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:w.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Se=function(a){return a.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},q=function(a,e){return a&&typeof a=="string"&&e.comma&&a.indexOf(",")>-1?a.split(","):a},je="utf8=%26%2310003%3B",Fe="utf8=%E2%9C%93",Ne=function(e,r){var n={},f=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=r.parameterLimit===1/0?void 0:r.parameterLimit,t=f.split(r.delimiter,l),u=-1,o,i=r.charset;if(r.charsetSentinel)for(o=0;o-1&&(y=we(y)?[y]:y),L.call(n,m)?n[m]=w.combine(n[m],y):n[m]=y}return n},Ee=function(a,e,r,n){for(var f=n?e:q(e,r),l=a.length-1;l>=0;--l){var t,u=a[l];if(u==="[]"&&r.parseArrays)t=[].concat(f);else{t=r.plainObjects?Object.create(null):{};var o=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,i=parseInt(o,10);!r.parseArrays&&o===""?t={0:f}:!isNaN(i)&&u!==o&&String(i)===o&&i>=0&&r.parseArrays&&i<=r.arrayLimit?(t=[],t[i]=f):o!=="__proto__"&&(t[o]=f)}f=t}return f},Ce=function(e,r,n,f){if(e){var l=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,t=/(\[[^[\]]*])/,u=/(\[[^[\]]*])/g,o=n.depth>0&&t.exec(l),i=o?l.slice(0,o.index):l,c=[];if(i){if(!n.plainObjects&&L.call(Object.prototype,i)&&!n.allowPrototypes)return;c.push(i)}for(var p=0;n.depth>0&&(o=u.exec(l))!==null&&p"u"?d.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?d.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:d.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:d.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:d.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:d.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:d.comma,decoder:typeof e.decoder=="function"?e.decoder:d.decoder,delimiter:typeof e.delimiter=="string"||w.isRegExp(e.delimiter)?e.delimiter:d.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:d.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:d.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:d.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:d.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:d.strictNullHandling}},Pe=function(a,e){var r=De(e);if(a===""||a===null||typeof a>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof a=="string"?Ne(a,r):a,f=r.plainObjects?Object.create(null):{},l=Object.keys(n),t=0;t