(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,_)=>winp?ye(p,w,{enumerable:!0,configurable:!0,writable:!0,value:_}):p[w]=_;varP=(p,w,_)=>(be(p,typeofw!="symbol"?w+"":w,_),_),le=(p,w,_)=>{if(!w.has(p))throwTypeError("Cannot "+_)};varf=(p,w,_)=>(le(p,w,"read from private field"),_?_.call(p):w.get(p)),C=(p,w,_)=>{if(w.has(p))throwTypeError("Cannot add the same private member more than once");winstanceofWeakSet?w.add(p):w.set(p,_)},q=(p,w,_,Y)=>(le(p,w,"write to private field"),Y?Y.call(p,_):w.set(p,_),_);varG,B,z,J,Q,W,L,X,Z,H,K,k,M,D;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(vari=0;i<t.length;i++){varh=t.charAt(i),y=h.charCodeAt(0);if(e[y]!==255)thrownewTypeError(h+" is ambiguous");e[y]=i}varl=t.length,x=t.charAt(0),V=Math.log(l)/Math.log(256),F=Math.log(256)/Math.log(l);functionj(s){if(sinstanceofUint8Array||(ArrayBuffer.isView(s)?s=newUint8Array(s.buffer,s.byteOffset,s.byteLength):Array.isArray(s)&&(s=Uint8Array.from(s))),!(sinstanceofUint8Array))thrownewTypeError("Expected Uint8Array");if(s.length===0)return"";for(vara=0,c=0,d=0,o=s.length;d!==o&&s[d]===0;)d++,a++;for(varu=(o-d)*F+1>>>0,g=newUint8Array(u);d!==o;){for(varA=s[d],T=0,b=u-1;(A!==0||T<c)&&b!==-1;b--,T++)A+=256*g[b]>>>0,g[b]=A%l>>>0,A=A/l>>>0;if(A!==0)thrownewError("Non-zero carry");c=T,d++}for(varn=u-c;n!==u&&g[n]===0;)n++;for(varE=x.repeat(a);n<u;++n)E+=t.charAt(g[n]);returnE}functionU(s){if(typeofs!="string")thrownewTypeError("Expected String");if(s.length===0)returnnewUint8Array;for(vara=0,c=0,d=0;s[a]===x;)c++,a++;for(varo=(s.length-a)*V+1>>>0,u=newUint8Array(o);s[a];){varg=e[s.charCodeAt(a)];if(g===255)return;for(varA=0,T=o-1;(g!==0||A<d)&&T!==-1;T--,A++)g+=l*u[T]>>>0,u[T]=g%256>>>0,g=g/256>>>0;if(g!==0)thrownewError("Non-zero carry");d=A,a++}for(varb=o-d;b!==o&&u[b]===0;)b++;for(varn=newUint8Array(c+(o-b)),E=c;b!==o;)n[E++]=u[b++];returnn}functionv(s){vara=U(s);if(a)returna;thrownewError("Non-base"+l+" character")}return{encode:j,decodeUnsafe:U,decode:v}}varY=_;constce=w(Y);varne={};(function(t){(function(e){e([],function(){varr=-1,i=-2,h=-3,y=-4,l=-5,x=function(a,c){c=c||{};vard=c.verbose||!1;d&&console.log("Normalize the JSON Object"),a=typeofa=="string"?this.JSON.parse(a):a,d&&console.log("Creating a empty dictionary");varo={strings:[],integers:[],floats:[]};d&&console.log("Creating the AST");varu=functionb(n){d&&console.log("Calling recursiveAstBuilder with "+this.JSON.stringify(n));varE=typeofn;if(n===null)return{type:"null",index:h};if(typeofn>"u")return{type:"undefined",index:l};if(ninstanceofArray){varm=["@"];for(varSinn)n.hasOwnProperty(S)&&m.push(b(n[S]));returnm}if(E==="object"){varm=["$"];for(varIinn)n.hasOwnProperty(I)&&(m.push(b(I)),m.push(b(n[I])));returnm}if(n==="")return{type:"empty",index:y};if(E==="string"){varN=s.call(o.strings,n);returnN==-1&&(o.strings.push(F(n)),N=o.strings.length-1),{type:"strings",index:N}}if(E==="number"&&n%1===0){varN=s.call(o.integers,n);returnN==-1&&(o.integers.push(U(n)),N=o.integers.length-1),{type:"integers",index:N}}if(E==="number"){varN=s.call(o.floats,n);returnN==-1&&(o.floats.push(n),N=o.floats.length-1),{type:"floats",index:N}}if(E==="boolean")return{type:"boolean",index:n?r:i};thrownewError("Unexpected argument of type "+typeofn)}(a),g=o.strings.length,A=o.integers.length;o.floats.length,d&&console.log("Parsing the dictionary");varT=o.strings.join("|");returnT+="^"+o.integers.join("|"),T+="^"+o.floats.join("|"),d&&console.log("Parsing the structure"),T+="^"+functionb(n){if(d&&console.log("Calling a recursiveParser with "+this.JSON.stringify(n)),ninstanceofArray){varE=n.shift();for(varminn)n.hasOw