'use strict'; var B=Object.create;var x=Object.defineProperty;var F=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames;var N=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty;var _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Y=(e,t,f,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of L(t))!I.call(e,o)&&o!==f&&x(e,o,{get:()=>t[o],enumerable:!(n=F(t,o))||n.enumerable});return e};var b=(e,t,f)=>(f=e!=null?B(N(e)):{},Y(t||!e||!e.__esModule?x(f,"default",{value:e,enumerable:!0}):f,e));var R=_((D,O)=>{O.exports=function(t,f){var n=String(t).replace(/^&/,"").replace(/&$/,"").split("&"),o=n.length,p=void 0,i=void 0,a=void 0,l=void 0,h=void 0,u=void 0,y=void 0,d=void 0,r=void 0,v=void 0,s=void 0,c=void 0,A=void 0,k=function(q){return decodeURIComponent(q.replace(/\+/g,"%20"))};for(p=0;p-1&&(r=r.slice(0,r.indexOf("\0"))),r&&r.charAt(0)!=="["){for(c=[],s=0,i=0;ia&&l.match(/^\d+$/g)&&(a=+l);r=a+1;}Object(u[r])!==u[r]&&(u[r]={}),u=u[r];}h[r]=v;}}};});var E=_((G,w)=>{w.exports=function(t){return t=t+"",encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")};});var C=_((J,P)=>{P.exports=function(t){return t=t+"",encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/~/g,"%7E").replace(/%20/g,"+")};});var H=_((K,U)=>{var $=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};U.exports=function(t,f,n,o){var p=void 0;switch(o){case"PHP_QUERY_RFC3986":p=E();break;case"PHP_QUERY_RFC1738":default:p=C();break}var i=void 0,a=void 0,l=[],h=function y(d,r,v){var s=void 0,c=[];if(r===!0?r="1":r===!1&&(r="0"),r!==null)if((typeof r>"u"?"undefined":$(r))==="object"){for(s in r)r[s]!==null&&c.push(y(d+"["+s+"]",r[s],v));return c.join(v)}else {if(typeof r!="function")return p(d)+"="+p(r);throw new Error("There was an error processing for http_build_query().")}else return ""};n||(n="&");for(a in t){i=t[a],f&&!isNaN(a)&&(a=String(f)+a);var u=h(a,i,n);u!==""&&l.push(u);}return l.join(n)};});var Q=b(R(),1),S=b(H(),1);function g(e){if(typeof e!="object"||e===null)return e===""?null:e;if(Array.isArray(e))return e.map(g);let f=Object.keys(e).every(n=>{let o=+n;return !isNaN(o)&&o>=0&&o<2**32})?Object.keys(e).sort((n,o)=>+n-+o):null;return !f||f.some((n,o)=>+n!==o)?Object.fromEntries(Object.entries(e).map(([n,o])=>[n,g(o)])):f.map(n=>g(e[n]))}function M(e){let t={};return (0, Q.default)(e,t),g(t)}function m(e){return typeof e!="object"||e===null?e===null?"":e:Array.isArray(e)?e.map(m):Object.fromEntries(Object.entries(e).map(([t,f])=>f!==void 0&&[t,m(f)]).filter(Boolean))}function V(e){return (0, S.default)(m(e),"","&","PHP_QUERY_RFC3986")} exports.parse = M; exports.stringify = V;