import{s as e}from"./side-channel.ceede872.js";var r=String.prototype.replace,t=/%20/g,o="RFC3986",n={default:o,formatters:{RFC1738:function(e){return r.call(e,t,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:o},a=n,i=Object.prototype.hasOwnProperty,l=Array.isArray,c=function(){for(var e=[],r=0;r<256;++r)e.push("%"+((r<16?"0":"")+r.toString(16)).toUpperCase());return e}(),s=function(e,r){for(var t=r&&r.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(t[o]=e[o]);return t},p={arrayToObject:s,assign:function(e,r){return Object.keys(r).reduce((function(e,t){return e[t]=r[t],e}),e)},combine:function(e,r){return[].concat(e,r)},compact:function(e){for(var r=[{obj:{o:e},prop:"o"}],t=[],o=0;o<r.length;++o)for(var n=r[o],a=n.obj[n.prop],i=Object.keys(a),c=0;c<i.length;++c){var s=i[c],p=a[s];"object"==typeof p&&null!==p&&-1===t.indexOf(p)&&(r.push({obj:a,prop:s}),t.push(p))}return function(e){for(;e.length>1;){var r=e.pop(),t=r.obj[r.prop];if(l(t)){for(var o=[],n=0;n<t.length;++n)void 0!==t[n]&&o.push(t[n]);r.obj[r.prop]=o}}}(r),e},decode:function(e,r,t){var o=e.replace(/\+/g," ");if("iso-8859-1"===t)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(n){return o}},encode:function(e,r,t,o,n){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===t)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",s=0;s<i.length;++s){var p=i.charCodeAt(s);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||n===a.RFC1738&&(40===p||41===p)?l+=i.charAt(s):p<128?l+=c[p]:p<2048?l+=c[192|p>>6]+c[128|63&p]:p<55296||p>=57344?l+=c[224|p>>12]+c[128|p>>6&63]+c[128|63&p]:(s+=1,p=65536+((1023&p)<<10|1023&i.charCodeAt(s)),l+=c[240|p>>18]+c[128|p>>12&63]+c[128|p>>6&63]+c[128|63&p])}return l},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,r){if(l(e)){for(var t=[],o=0;o<e.length;o+=1)t.push(r(e[o]));return t}return r(e)},merge:function e(r,t,o){if(!t)return r;if("object"!=typeof t){if(l(r))r.push(t);else{if(!r||"object"!=typeof r)return[r,t];(o&&(o.plainObjects||o.allowPrototypes)||!i.call(Object.prototype,t))&&(r[t]=!0)}return r}if(!r||"object"!=typeof r)return[r].concat(t);var n=r;return l(r)&&!l(t)&&(n=s(r,o)),l(r)&&l(t)?(t.forEach((function(t,n){if(i.call(r,n)){var a=r[n];a&&"object"==typeof a&&t&&"object"==typeof t?r[n]=e(a,t,o):r.push(t)}else r[n]=t})),r):Object.keys(t).reduce((function(r,n){var a=t[n];return i.call(r,n)?r[n]=e(r[n],a,o):r[n]=a,r}),n)}},f=e,u=p,d=n,y=Object.prototype.hasOwnProperty,m={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},h=Array.isArray,b=Array.prototype.push,v=function(e,r){b.apply(e,h(r)?r:[r])},w=Date.prototype.toISOString,g=d.default,j={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:u.encode,encodeValuesOnly:!1,format:g,formatter:d.formatters[g],indices:!1,serializeDate:function(e){return w.call(e)},skipNulls:!1,strictNullHandling:!1},E={},O=function e(r,t,o,n,a,i,l,c,s,p,d,y,m,b,w,g,O,D){for(var A,S=r,N=D,I=0,x=!1;void 0!==(N=N.get(E))&&!x;){var P=N.get(r);if(I+=1,void 0!==P){if(P===I)throw new RangeError("Cyclic object value");x=!0}void 0===N.get(E)&&(I=0)}if("function"==typeof p?S=p(t,S):S instanceof Date?S=m(S):"comma"===o&&h(S)&&(S=u.maybeMap(S,(function(e){return e instanceof Date?m(e):e}))),null===S){if(i)return s&&!g?s(t,j.encoder,O,"key",b):t;S=""}if("string"==typeof(A=S)||"number"==typeof A||"boolean"==typeof A||"symbol"==typeof A||"bigint"==typeof A||u.isBuffer(S))return s?[w(g?t:s(t,j.encoder,O,"key",b))+"="+w(s(S,j.encoder,O,"value",b))]:[w(t)+"="+w(String(S))];var T,K=[];if(void 0===S)return K;if("comma"===o&&h(S))g&&s&&(S=u.maybeMap(S,s)),T=[{value:S.length>0?S.join(",")||null:void 0}];else if(h(p))T=p;else{var k=Object.keys(S);T=d?k.sort(d):k}var R=c?t.replace(/\./g,"%2E"):t,C=n&&h(S)&&1===S.length?R+"[]":R;if(a&&h(S)&&0===S.length)return C+"[]";for(var F=0;F<T.length;++F){var L=T[F],H="object"==typeof L&&void 0!==L.value?L.value:S[L];if(!l||null!==H){var Q=y&&c?L.replace(/\./g,"%2E"):L,_=h(S)?"function"==typeof o?o(C,Q):C:C+(y?"."+Q:"["+Q+"]");D.set(r,I);var B=f();B.set(E,D),v(K,e(H,_,o,n,a,i,l,c,"comma"===o&&g&&h(S)?null:s,p,d,y,m,b,w,g,O,B))}}return K},D=p,A=Object.prototype.hasOwnProperty,S=Array.isArray,N={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!0,decoder:D.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},I=function(e){return e.replace(/&#(\d+);/g,(function(e,r){return String.fromCharCode(parseInt(r,10))}))},x=function(e,r){return e&&"string"==typeof e&&r.comma&&e.indexOf(",")>-1?e.split(","):e},P=function(e,r,t,o){if(e){var n=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,i=t.depth>0&&/(\[[^[\]]*])/.exec(n),l=i?n.slice(0,i.index):n,c=[];if(l){if(!t.plainObjects&&A.call(Object.prototype,l)&&!t.allowPrototypes)return;c.push(l)}for(var s=0;t.depth>0&&null!==(i=a.exec(n))&&s<t.depth;){if(s+=1,!t.plainObjects&&A.call(Object.prototype,i[1].slice(1,-1))&&!t.allowPrototypes)return;c.push(i[1])}return i&&c.push("["+n.slice(i.index)+"]"),function(e,r,t,o){for(var n=o?r:x(r,t),a=e.length-1;a>=0;--a){var i,l=e[a];if("[]"===l&&t.parseArrays)i=t.allowEmptyArrays&&""===n?[]:[].concat(n);else{i=t.plainObjects?Object.create(null):{};var c="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,s=t.decodeDotInKeys?c.replace(/%2E/g,"."):c,p=parseInt(s,10);t.parseArrays||""!==s?!isNaN(p)&&l!==s&&String(p)===s&&p>=0&&t.parseArrays&&p<=t.arrayLimit?(i=[])[p]=n:"__proto__"!==s&&(i[s]=n):i={0:n}}n=i}return n}(c,r,t,o)}},T={formats:n,parse:function(e,r){var t=function(e){if(!e)return N;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=void 0===e.charset?N.charset:e.charset,t=void 0===e.duplicates?N.duplicates:e.duplicates;if("combine"!==t&&"first"!==t&&"last"!==t)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||N.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:N.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:N.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:N.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:N.arrayLimit,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:N.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:N.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:N.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:N.decoder,delimiter:"string"==typeof e.delimiter||D.isRegExp(e.delimiter)?e.delimiter:N.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:N.depth,duplicates:t,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:N.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:N.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:N.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:N.strictNullHandling}}(r);if(""===e||null==e)return t.plainObjects?Object.create(null):{};for(var o="string"==typeof e?function(e,r){var t,o={__proto__:null},n=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=r.parameterLimit===1/0?void 0:r.parameterLimit,i=n.split(r.delimiter,a),l=-1,c=r.charset;if(r.charsetSentinel)for(t=0;t<i.length;++t)0===i[t].indexOf("utf8=")&&("utf8=%E2%9C%93"===i[t]?c="utf-8":"utf8=%26%2310003%3B"===i[t]&&(c="iso-8859-1"),l=t,t=i.length);for(t=0;t<i.length;++t)if(t!==l){var s,p,f=i[t],u=f.indexOf("]="),d=-1===u?f.indexOf("="):u+1;-1===d?(s=r.decoder(f,N.decoder,c,"key"),p=r.strictNullHandling?null:""):(s=r.decoder(f.slice(0,d),N.decoder,c,"key"),p=D.maybeMap(x(f.slice(d+1),r),(function(e){return r.decoder(e,N.decoder,c,"value")}))),p&&r.interpretNumericEntities&&"iso-8859-1"===c&&(p=I(p)),f.indexOf("[]=")>-1&&(p=S(p)?[p]:p);var y=A.call(o,s);y&&"combine"===r.duplicates?o[s]=D.combine(o[s],p):y&&"last"!==r.duplicates||(o[s]=p)}return o}(e,t):e,n=t.plainObjects?Object.create(null):{},a=Object.keys(o),i=0;i<a.length;++i){var l=a[i],c=P(l,o[l],t,"string"==typeof e);n=D.merge(n,c,t)}return!0===t.allowSparse?n:D.compact(n)},stringify:function(e,r){var t,o=e,n=function(e){if(!e)return j;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var r=e.charset||j.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=d.default;if(void 0!==e.format){if(!y.call(d.formatters,e.format))throw new TypeError("Unknown format option provided.");t=e.format}var o,n=d.formatters[t],a=j.filter;if(("function"==typeof e.filter||h(e.filter))&&(a=e.filter),o=e.arrayFormat in m?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":j.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var i=void 0===e.allowDots?!0===e.encodeDotInKeys||j.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:j.addQueryPrefix,allowDots:i,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:j.allowEmptyArrays,arrayFormat:o,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:j.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?j.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:j.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:j.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:j.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:j.encodeValuesOnly,filter:a,format:t,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:j.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:j.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:j.strictNullHandling}}(r);"function"==typeof n.filter?o=(0,n.filter)("",o):h(n.filter)&&(t=n.filter);var a=[];if("object"!=typeof o||null===o)return"";var i=m[n.arrayFormat],l="comma"===i&&n.commaRoundTrip;t||(t=Object.keys(o)),n.sort&&t.sort(n.sort);for(var c=f(),s=0;s<t.length;++s){var p=t[s];n.skipNulls&&null===o[p]||v(a,O(o[p],p,i,l,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,c))}var u=a.join(n.delimiter),b=!0===n.addQueryPrefix?"?":"";return n.charsetSentinel&&("iso-8859-1"===n.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),u.length>0?b+u:""}};export{T as Q};
