(function(p,v){typeofexports=="object"&&typeofmodule<"u"?v(exports):typeofdefine=="function"&&define.amd?define(["exports"],v):(p=typeofglobalThis<"u"?globalThis:p||self,v(p["ff-request"]={}))})(this,function(p){"use strict";varye=Object.defineProperty;varbe=(p,v,S)=>vinp?ye(p,v,{enumerable:!0,configurable:!0,writable:!0,value:S}):p[v]=S;varP=(p,v,S)=>(be(p,typeofv!="symbol"?v+"":v,S),S),ue=(p,v,S)=>{if(!v.has(p))throwTypeError("Cannot "+S)};varl=(p,v,S)=>(ue(p,v,"read from private field"),S?S.call(p):v.get(p)),C=(p,v,S)=>{if(v.has(p))throwTypeError("Cannot add the same private member more than once");vinstanceofWeakSet?v.add(p):v.set(p,S)},I=(p,v,S,Y)=>(ue(p,v,"write to private field"),Y?Y.call(p,S):v.set(p,S),S);varG,B,q,D,Q,W,L,X,Z,H,K,k,j,x;functionv(t){returnt&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}functionS(t){if(t.length>=255)thrownewTypeError("Alphabet too long");for(vare=newUint8Array(256),n=0;n<e.length;n++)e[n]=255;for(vara=0;a<t.length;a++){varc=t.charAt(a),w=c.charCodeAt(0);if(e[w]!==255)thrownewTypeError(c+" is ambiguous");e[w]=a}varg=t.length,R=t.charAt(0),V=Math.log(g)/Math.log(256),J=Math.log(256)/Math.log(g);functionF(r){if(rinstanceofUint8Array||(ArrayBuffer.isView(r)?r=newUint8Array(r.buffer,r.byteOffset,r.byteLength):Array.isArray(r)&&(r=Uint8Array.from(r))),!(rinstanceofUint8Array))thrownewTypeError("Expected Uint8Array");if(r.length===0)return"";for(vars=0,f=0,i=0,h=r.length;i!==h&&r[i]===0;)i++,s++;for(varu=(h-i)*J+1>>>0,d=newUint8Array(u);i!==h;){for(varA=r[i],O=0,y=u-1;(A!==0||O<f)&&y!==-1;y--,O++)A+=256*d[y]>>>0,d[y]=A%g>>>0,A=A/g>>>0;if(A!==0)thrownewError("Non-zero carry");f=O,i++}for(varo=u-f;o!==u&&d[o]===0;)o++;for(varb=R.repeat(s);o<u;++o)b+=t.charAt(d[o]);returnb}functionm(r){if(typeofr!="string")thrownewTypeError("Expected String");if(r.length===0)returnnewUint8Array;for(vars=0,f=0,i=0;r[s]===R;)f++,s++;for(varh=(r.length-s)*V+1>>>0,u=newUint8Array(h);r[s];){vard=e[r.charCodeAt(s)];if(d===255)return;for(varA=0,O=h-1;(d!==0||A<i)&&O!==-1;O--,A++)d+=g*u[O]>>>0,u[O]=d%256>>>0,d=d/256>>>0;if(d!==0)thrownewError("Non-zero carry");i=A,s++}for(vary=h-i;y!==h&&u[y]===0;)y++;for(varo=newUint8Array(f+(h-y)),b=f;y!==h;)o[b++]=u[y++];returno}functionz(r){vars=m(r);if(s)returns;thrownewError("Non-base"+g+" character")}return{encode:F,decodeUnsafe:m,decode:z}}varY=S;constce=v(Y);varne={};(function(t){(function(e){e([],function(){varn=-1,a=-2,c=-3,w=-4,g=-5,R=function(s,f){f=f||{};vari=f.verbose||!1;i&&console.log("Normalize the JSON Object"),s=typeofs=="string"?this.JSON.parse(s):s,i&&console.log("Creating a empty dictionary");varh={strings:[],integers:[],floats:[]};i&&console.log("Creating the AST");varu=functiony(o){i&&console.log("Calling recursiveAstBuilder with "+this.JSON.stringify(o));varb=typeofo;if(o===null)return{type:"null",index:c};if(typeofo>"u")return{type:"undefined",index:g};if(oinstanceofArray){varN=["@"];for(varTino)o.hasOwnProperty(T)&&N.push(y(o[T]));returnN}if(b==="object"){varN=["$"];for(var$ino)o.hasOwnProperty($)&&(N.push(y($)),N.push(y(o[$])));returnN}if(o==="")return{type:"empty",index:w};if(b==="string"){var_=r.call(h.strings,o);return_==-1&&(h.strings.push(J(o)),_=h.strings.length-1),{type:"strings",index:_}}if(b==="number"&&o%1===0){var_=r.call(h.integers,o);return_==-1&&(h.integers.push(m(o)),_=h.integers.length-1),{type:"integers",index:_}}if(b==="number"){var_=r.call(h.floats,o);return_==-1&&(h.floats.push(o),_=h.floats.length-1),{type:"floats",index:_}}if(b==="boolean")return{type:"boolean",index:o?n:a};thrownewError("Unexpected argument of type "+typeofo)}(s),d=h.strings.length,A=h.integers.length;h.floats.length,i&&console.log("Parsing the dictionary");varO=h.strings.join("|");returnO+="^"+h.integers.join("|"),O+="^"+h.floats.join("|"),i&&console.log("Parsing the structure"),O+="^"+functiony(o){if(i&&console.log("Calling a recursiveParser with "+this.JSON.stringify(o)),oinstanceofArray){varb=o.shift();for(varNino)o.hasOw