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