(function(p,w){typeofexports=="object"&&typeofmodule<"u"?w(exports):typeofdefine=="function"&&define.amd?define(["exports"],w):(p=typeofglobalThis<"u"?globalThis:p||self,w(p["ff-request"]={}))})(this,function(p){"use strict";varye=Object.defineProperty;varbe=(p,w,A)=>winp?ye(p,w,{enumerable:!0,configurable:!0,writable:!0,value:A}):p[w]=A;var_=(p,w,A)=>(be(p,typeofw!="symbol"?w+"":w,A),A),ue=(p,w,A)=>{if(!w.has(p))throwTypeError("Cannot "+A)};varh=(p,w,A)=>(ue(p,w,"read from private field"),A?A.call(p):w.get(p)),N=(p,w,A)=>{if(w.has(p))throwTypeError("Cannot add the same private member more than once");winstanceofWeakSet?w.add(p):w.set(p,A)},D=(p,w,A,Y)=>(ue(p,w,"write to private field"),Y?Y.call(p,A):w.set(p,A),A);varG,B,J,q,Q,W,L,X,Z,H,K,k,I,$;functionw(t){returnt&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}functionA(t){if(t.length>=255)thrownewTypeError("Alphabet too long");for(vare=newUint8Array(256),r=0;r<e.length;r++)e[r]=255;for(vari=0;i<t.length;i++){varu=t.charAt(i),y=u.charCodeAt(0);if(e[y]!==255)thrownewTypeError(u+" is ambiguous");e[y]=i}varc=t.length,m=t.charAt(0),V=Math.log(c)/Math.log(256),z=Math.log(256)/Math.log(c);functionF(a){if(ainstanceofUint8Array||(ArrayBuffer.isView(a)?a=newUint8Array(a.buffer,a.byteOffset,a.byteLength):Array.isArray(a)&&(a=Uint8Array.from(a))),!(ainstanceofUint8Array))thrownewTypeError("Expected Uint8Array");if(a.length===0)return"";for(varo=0,n=0,g=0,f=a.length;g!==f&&a[g]===0;)g++,o++;for(varl=(f-g)*z+1>>>0,d=newUint8Array(l);g!==f;){for(varP=a[g],T=0,b=l-1;(P!==0||T<n)&&b!==-1;b--,T++)P+=256*d[b]>>>0,d[b]=P%c>>>0,P=P/c>>>0;if(P!==0)thrownewError("Non-zero carry");n=T,g++}for(vars=l-n;s!==l&&d[s]===0;)s++;for(varE=m.repeat(o);s<l;++s)E+=t.charAt(d[s]);returnE}functionM(a){if(typeofa!="string")thrownewTypeError("Expected String");if(a.length===0)returnnewUint8Array;for(varo=0,n=0,g=0;a[o]===m;)n++,o++;for(varf=(a.length-o)*V+1>>>0,l=newUint8Array(f);a[o];){vard=e[a.charCodeAt(o)];if(d===255)return;for(varP=0,T=f-1;(d!==0||P<g)&&T!==-1;T--,P++)d+=c*l[T]>>>0,l[T]=d%256>>>0,d=d/256>>>0;if(d!==0)thrownewError("Non-zero carry");g=P,o++}for(varb=f-g;b!==f&&l[b]===0;)b++;for(vars=newUint8Array(n+(f-b)),E=n;b!==f;)s[E++]=l[b++];returns}functionv(a){varo=M(a);if(o)returno;thrownewError("Non-base"+c+" character")}return{encode:F,decodeUnsafe:M,decode:v}}varY=A;constce=w(Y);varne={};(function(t){(function(e){e([],function(){varr=-1,i=-2,u=-3,y=-4,c=-5,m=function(o,n){n=n||{};varg=n.verbose||!1;g&&console.log("Normalize the JSON Object"),o=typeofo=="string"?this.JSON.parse(o):o,g&&console.log("Creating a empty dictionary");varf={strings:[],integers:[],floats:[]};g&&console.log("Creating the AST");varl=functionb(s){g&&console.log("Calling recursiveAstBuilder with "+this.JSON.stringify(s));varE=typeofs;if(s===null)return{type:"null",index:u};if(typeofs>"u")return{type:"undefined",index:c};if(sinstanceofArray){varU=["@"];for(varSins)s.hasOwnProperty(S)&&U.push(b(s[S]));returnU}if(E==="object"){varU=["$"];for(varjins)s.hasOwnProperty(j)&&(U.push(b(j)),U.push(b(s[j])));returnU}if(s==="")return{type:"empty",index:y};if(E==="string"){varC=a.call(f.strings,s);returnC==-1&&(f.strings.push(z(s)),C=f.strings.length-1),{type:"strings",index:C}}if(E==="number"&&s%1===0){varC=a.call(f.integers,s);returnC==-1&&(f.integers.push(M(s)),C=f.integers.length-1),{type:"integers",index:C}}if(E==="number"){varC=a.call(f.floats,s);returnC==-1&&(f.floats.push(s),C=f.floats.length-1),{type:"floats",index:C}}if(E==="boolean")return{type:"boolean",index:s?r:i};thrownewError("Unexpected argument of type "+typeofs)}(o),d=f.strings.length,P=f.integers.length;f.floats.length,g&&console.log("Parsing the dictionary");varT=f.strings.join("|");returnT+="^"+f.integers.join("|"),T+="^"+f.floats.join("|"),g&&console.log("Parsing the structure"),T+="^"+functionb(s){if(g&&console.log("Calling a recursiveParser with "+this.JSON.stringify(s)),sinstanceofArray){varE=s.shift();for(varUins)s.hasOw