@ensembleapp/client-sdk 0.0.46 → 0.0.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,7 +13,7 @@ Error generating stack: `+n.message+`
13
13
  Use "options.replacer" or "options.ignoreUnknown"
14
14
  `)},_domwindow:function(){return _("domwindow")},_bigint:function(w){return _("bigint:"+w.toString())},_process:function(){return _("process")},_timer:function(){return _("timer")},_pipe:function(){return _("pipe")},_tcp:function(){return _("tcp")},_udp:function(){return _("udp")},_tty:function(){return _("tty")},_statwatcher:function(){return _("statwatcher")},_securecontext:function(){return _("securecontext")},_connection:function(){return _("connection")},_zlib:function(){return _("zlib")},_context:function(){return _("context")},_nodescript:function(){return _("nodescript")},_httpparser:function(){return _("httpparser")},_dataview:function(){return _("dataview")},_signal:function(){return _("signal")},_fsevent:function(){return _("fsevent")},_tlswrap:function(){return _("tlswrap")}}}function h(){return{buf:"",write:function(b){this.buf+=b},end:function(b){this.buf+=b},read:function(){return this.buf}}}a.writeToStream=function(b,L,x){return x===void 0&&(x=L,L={}),y(L=C(b,L),x).dispatch(b)}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){(function(p){"use strict";var f=typeof Uint8Array<"u"?Uint8Array:Array,m=43,S=47,C=48,g=97,y=65,h=45,b=95;function L(x){return x=x.charCodeAt(0),x===m||x===h?62:x===S||x===b?63:x<C?-1:x<C+10?x-C+26+26:x<y+26?x-y:x<g+26?x-g+26:void 0}p.toByteArray=function(x){var _,w;if(0<x.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var T=x.length,T=x.charAt(T-2)==="="?2:x.charAt(T-1)==="="?1:0,I=new f(3*x.length/4-T),q=0<T?x.length-4:x.length,O=0;function R(U){I[O++]=U}for(_=0;_<q;_+=4,0)R((16711680&(w=L(x.charAt(_))<<18|L(x.charAt(_+1))<<12|L(x.charAt(_+2))<<6|L(x.charAt(_+3))))>>16),R((65280&w)>>8),R(255&w);return T==2?R(255&(w=L(x.charAt(_))<<2|L(x.charAt(_+1))>>4)):T==1&&(R((w=L(x.charAt(_))<<10|L(x.charAt(_+1))<<4|L(x.charAt(_+2))>>2)>>8&255),R(255&w)),I},p.fromByteArray=function(x){var _,w,T,I,q=x.length%3,O="";function R(U){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(U)}for(_=0,T=x.length-q;_<T;_+=3)w=(x[_]<<16)+(x[_+1]<<8)+x[_+2],O+=R((I=w)>>18&63)+R(I>>12&63)+R(I>>6&63)+R(63&I);switch(q){case 1:O=(O+=R((w=x[x.length-1])>>2))+R(w<<4&63)+"==";break;case 2:O=(O=(O+=R((w=(x[x.length-2]<<8)+x[x.length-1])>>10))+R(w>>4&63))+R(w<<2&63)+"="}return O}})(a===void 0?this.base64js={}:a)}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(e,t,a){(function(n,r,m,i,l,s,u,c,d){var p=e("base64-js"),f=e("ieee754");function m(k,A,M){if(!(this instanceof m))return new m(k,A,M);var P,F,Y,Te,tt=typeof k;if(A==="base64"&&tt=="string")for(k=(Te=k).trim?Te.trim():Te.replace(/^\s+|\s+$/g,"");k.length%4!=0;)k+="=";if(tt=="number")P=Q(k);else if(tt=="string")P=m.byteLength(k,A);else{if(tt!="object")throw new Error("First argument needs to be a number, array or string.");P=Q(k.length)}if(m._useTypedArrays?F=m._augment(new Uint8Array(P)):((F=this).length=P,F._isBuffer=!0),m._useTypedArrays&&typeof k.byteLength=="number")F._set(k);else if(le(Te=k)||m.isBuffer(Te)||Te&&typeof Te=="object"&&typeof Te.length=="number")for(Y=0;Y<P;Y++)m.isBuffer(k)?F[Y]=k.readUInt8(Y):F[Y]=k[Y];else if(tt=="string")F.write(k,0,A);else if(tt=="number"&&!m._useTypedArrays&&!M)for(Y=0;Y<P;Y++)F[Y]=0;return F}function S(k,A,M,P){return m._charsWritten=De((function(F){for(var Y=[],Te=0;Te<F.length;Te++)Y.push(255&F.charCodeAt(Te));return Y})(A),k,M,P)}function C(k,A,M,P){return m._charsWritten=De((function(F){for(var Y,Te,tt=[],ot=0;ot<F.length;ot++)Te=F.charCodeAt(ot),Y=Te>>8,Te=Te%256,tt.push(Te),tt.push(Y);return tt})(A),k,M,P)}function g(k,A,M){var P="";M=Math.min(k.length,M);for(var F=A;F<M;F++)P+=String.fromCharCode(k[F]);return P}function y(k,A,M,Y){Y||(K(typeof M=="boolean","missing or invalid endian"),K(A!=null,"missing offset"),K(A+1<k.length,"Trying to read beyond buffer length"));var F,Y=k.length;if(!(Y<=A))return M?(F=k[A],A+1<Y&&(F|=k[A+1]<<8)):(F=k[A]<<8,A+1<Y&&(F|=k[A+1])),F}function h(k,A,M,Y){Y||(K(typeof M=="boolean","missing or invalid endian"),K(A!=null,"missing offset"),K(A+3<k.length,"Trying to read beyond buffer length"));var F,Y=k.length;if(!(Y<=A))return M?(A+2<Y&&(F=k[A+2]<<16),A+1<Y&&(F|=k[A+1]<<8),F|=k[A],A+3<Y&&(F+=k[A+3]<<24>>>0)):(A+1<Y&&(F=k[A+1]<<16),A+2<Y&&(F|=k[A+2]<<8),A+3<Y&&(F|=k[A+3]),F+=k[A]<<24>>>0),F}function b(k,A,M,P){if(P||(K(typeof M=="boolean","missing or invalid endian"),K(A!=null,"missing offset"),K(A+1<k.length,"Trying to read beyond buffer length")),!(k.length<=A))return P=y(k,A,M,!0),32768&P?-1*(65535-P+1):P}function L(k,A,M,P){if(P||(K(typeof M=="boolean","missing or invalid endian"),K(A!=null,"missing offset"),K(A+3<k.length,"Trying to read beyond buffer length")),!(k.length<=A))return P=h(k,A,M,!0),2147483648&P?-1*(4294967295-P+1):P}function x(k,A,M,P){return P||(K(typeof M=="boolean","missing or invalid endian"),K(A+3<k.length,"Trying to read beyond buffer length")),f.read(k,A,M,23,4)}function _(k,A,M,P){return P||(K(typeof M=="boolean","missing or invalid endian"),K(A+7<k.length,"Trying to read beyond buffer length")),f.read(k,A,M,52,8)}function w(k,A,M,P,F){if(F||(K(A!=null,"missing value"),K(typeof P=="boolean","missing or invalid endian"),K(M!=null,"missing offset"),K(M+1<k.length,"trying to write beyond buffer length"),E(A,65535)),F=k.length,!(F<=M))for(var Y=0,Te=Math.min(F-M,2);Y<Te;Y++)k[M+Y]=(A&255<<8*(P?Y:1-Y))>>>8*(P?Y:1-Y)}function T(k,A,M,P,F){if(F||(K(A!=null,"missing value"),K(typeof P=="boolean","missing or invalid endian"),K(M!=null,"missing offset"),K(M+3<k.length,"trying to write beyond buffer length"),E(A,4294967295)),F=k.length,!(F<=M))for(var Y=0,Te=Math.min(F-M,4);Y<Te;Y++)k[M+Y]=A>>>8*(P?Y:3-Y)&255}function I(k,A,M,P,F){F||(K(A!=null,"missing value"),K(typeof P=="boolean","missing or invalid endian"),K(M!=null,"missing offset"),K(M+1<k.length,"Trying to write beyond buffer length"),se(A,32767,-32768)),k.length<=M||w(k,0<=A?A:65535+A+1,M,P,F)}function q(k,A,M,P,F){F||(K(A!=null,"missing value"),K(typeof P=="boolean","missing or invalid endian"),K(M!=null,"missing offset"),K(M+3<k.length,"Trying to write beyond buffer length"),se(A,2147483647,-2147483648)),k.length<=M||T(k,0<=A?A:4294967295+A+1,M,P,F)}function O(k,A,M,P,F){F||(K(A!=null,"missing value"),K(typeof P=="boolean","missing or invalid endian"),K(M!=null,"missing offset"),K(M+3<k.length,"Trying to write beyond buffer length"),At(A,34028234663852886e22,-34028234663852886e22)),k.length<=M||f.write(k,A,M,P,23,4)}function R(k,A,M,P,F){F||(K(A!=null,"missing value"),K(typeof P=="boolean","missing or invalid endian"),K(M!=null,"missing offset"),K(M+7<k.length,"Trying to write beyond buffer length"),At(A,17976931348623157e292,-17976931348623157e292)),k.length<=M||f.write(k,A,M,P,52,8)}a.Buffer=m,a.SlowBuffer=m,a.INSPECT_MAX_BYTES=50,m.poolSize=8192,m._useTypedArrays=(function(){try{var k=new ArrayBuffer(0),A=new Uint8Array(k);return A.foo=function(){return 42},A.foo()===42&&typeof A.subarray=="function"}catch{return!1}})(),m.isEncoding=function(k){switch(String(k).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},m.isBuffer=function(k){return!(k==null||!k._isBuffer)},m.byteLength=function(k,A){var M;switch(k+="",A||"utf8"){case"hex":M=k.length/2;break;case"utf8":case"utf-8":M=Ce(k).length;break;case"ascii":case"binary":case"raw":M=k.length;break;case"base64":M=$(k).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":M=2*k.length;break;default:throw new Error("Unknown encoding")}return M},m.concat=function(k,A){if(K(le(k),`Usage: Buffer.concat(list, [totalLength])
15
15
  list should be an Array.`),k.length===0)return new m(0);if(k.length===1)return k[0];if(typeof A!="number")for(F=A=0;F<k.length;F++)A+=k[F].length;for(var M=new m(A),P=0,F=0;F<k.length;F++){var Y=k[F];Y.copy(M,P),P+=Y.length}return M},m.prototype.write=function(k,A,M,P){isFinite(A)?isFinite(M)||(P=M,M=void 0):(ot=P,P=A,A=M,M=ot),A=Number(A)||0;var F,Y,Te,tt,ot=this.length-A;switch((!M||ot<(M=Number(M)))&&(M=ot),P=String(P||"utf8").toLowerCase()){case"hex":F=(function(ia,jt,Gt,xt){Gt=Number(Gt)||0;var lt=ia.length-Gt;(!xt||lt<(xt=Number(xt)))&&(xt=lt),K((lt=jt.length)%2==0,"Invalid hex string"),lt/2<xt&&(xt=lt/2);for(var Ir=0;Ir<xt;Ir++){var Hi=parseInt(jt.substr(2*Ir,2),16);K(!isNaN(Hi),"Invalid hex string"),ia[Gt+Ir]=Hi}return m._charsWritten=2*Ir,Ir})(this,k,A,M);break;case"utf8":case"utf-8":Y=this,Te=A,tt=M,F=m._charsWritten=De(Ce(k),Y,Te,tt);break;case"ascii":case"binary":F=S(this,k,A,M);break;case"base64":Y=this,Te=A,tt=M,F=m._charsWritten=De($(k),Y,Te,tt);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":F=C(this,k,A,M);break;default:throw new Error("Unknown encoding")}return F},m.prototype.toString=function(k,A,M){var P,F,Y,Te,tt=this;if(k=String(k||"utf8").toLowerCase(),A=Number(A)||0,(M=M!==void 0?Number(M):tt.length)===A)return"";switch(k){case"hex":P=(function(ot,ia,jt){var Gt=ot.length;(!ia||ia<0)&&(ia=0),(!jt||jt<0||Gt<jt)&&(jt=Gt);for(var xt="",lt=ia;lt<jt;lt++)xt+=ce(ot[lt]);return xt})(tt,A,M);break;case"utf8":case"utf-8":P=(function(ot,ia,jt){var Gt="",xt="";jt=Math.min(ot.length,jt);for(var lt=ia;lt<jt;lt++)ot[lt]<=127?(Gt+=Lt(xt)+String.fromCharCode(ot[lt]),xt=""):xt+="%"+ot[lt].toString(16);return Gt+Lt(xt)})(tt,A,M);break;case"ascii":case"binary":P=g(tt,A,M);break;case"base64":F=tt,Te=M,P=(Y=A)===0&&Te===F.length?p.fromByteArray(F):p.fromByteArray(F.slice(Y,Te));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":P=(function(ot,ia,jt){for(var Gt=ot.slice(ia,jt),xt="",lt=0;lt<Gt.length;lt+=2)xt+=String.fromCharCode(Gt[lt]+256*Gt[lt+1]);return xt})(tt,A,M);break;default:throw new Error("Unknown encoding")}return P},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},m.prototype.copy=function(k,A,M,P){if(A=A||0,(P=P||P===0?P:this.length)!==(M=M||0)&&k.length!==0&&this.length!==0){K(M<=P,"sourceEnd < sourceStart"),K(0<=A&&A<k.length,"targetStart out of bounds"),K(0<=M&&M<this.length,"sourceStart out of bounds"),K(0<=P&&P<=this.length,"sourceEnd out of bounds"),P>this.length&&(P=this.length);var F=(P=k.length-A<P-M?k.length-A+M:P)-M;if(F<100||!m._useTypedArrays)for(var Y=0;Y<F;Y++)k[Y+A]=this[Y+M];else k._set(this.subarray(M,M+F),A)}},m.prototype.slice=function(k,A){var M=this.length;if(k=B(k,M,0),A=B(A,M,M),m._useTypedArrays)return m._augment(this.subarray(k,A));for(var P=A-k,F=new m(P,void 0,!0),Y=0;Y<P;Y++)F[Y]=this[Y+k];return F},m.prototype.get=function(k){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(k)},m.prototype.set=function(k,A){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(k,A)},m.prototype.readUInt8=function(k,A){if(A||(K(k!=null,"missing offset"),K(k<this.length,"Trying to read beyond buffer length")),!(k>=this.length))return this[k]},m.prototype.readUInt16LE=function(k,A){return y(this,k,!0,A)},m.prototype.readUInt16BE=function(k,A){return y(this,k,!1,A)},m.prototype.readUInt32LE=function(k,A){return h(this,k,!0,A)},m.prototype.readUInt32BE=function(k,A){return h(this,k,!1,A)},m.prototype.readInt8=function(k,A){if(A||(K(k!=null,"missing offset"),K(k<this.length,"Trying to read beyond buffer length")),!(k>=this.length))return 128&this[k]?-1*(255-this[k]+1):this[k]},m.prototype.readInt16LE=function(k,A){return b(this,k,!0,A)},m.prototype.readInt16BE=function(k,A){return b(this,k,!1,A)},m.prototype.readInt32LE=function(k,A){return L(this,k,!0,A)},m.prototype.readInt32BE=function(k,A){return L(this,k,!1,A)},m.prototype.readFloatLE=function(k,A){return x(this,k,!0,A)},m.prototype.readFloatBE=function(k,A){return x(this,k,!1,A)},m.prototype.readDoubleLE=function(k,A){return _(this,k,!0,A)},m.prototype.readDoubleBE=function(k,A){return _(this,k,!1,A)},m.prototype.writeUInt8=function(k,A,M){M||(K(k!=null,"missing value"),K(A!=null,"missing offset"),K(A<this.length,"trying to write beyond buffer length"),E(k,255)),A>=this.length||(this[A]=k)},m.prototype.writeUInt16LE=function(k,A,M){w(this,k,A,!0,M)},m.prototype.writeUInt16BE=function(k,A,M){w(this,k,A,!1,M)},m.prototype.writeUInt32LE=function(k,A,M){T(this,k,A,!0,M)},m.prototype.writeUInt32BE=function(k,A,M){T(this,k,A,!1,M)},m.prototype.writeInt8=function(k,A,M){M||(K(k!=null,"missing value"),K(A!=null,"missing offset"),K(A<this.length,"Trying to write beyond buffer length"),se(k,127,-128)),A>=this.length||(0<=k?this.writeUInt8(k,A,M):this.writeUInt8(255+k+1,A,M))},m.prototype.writeInt16LE=function(k,A,M){I(this,k,A,!0,M)},m.prototype.writeInt16BE=function(k,A,M){I(this,k,A,!1,M)},m.prototype.writeInt32LE=function(k,A,M){q(this,k,A,!0,M)},m.prototype.writeInt32BE=function(k,A,M){q(this,k,A,!1,M)},m.prototype.writeFloatLE=function(k,A,M){O(this,k,A,!0,M)},m.prototype.writeFloatBE=function(k,A,M){O(this,k,A,!1,M)},m.prototype.writeDoubleLE=function(k,A,M){R(this,k,A,!0,M)},m.prototype.writeDoubleBE=function(k,A,M){R(this,k,A,!1,M)},m.prototype.fill=function(k,A,M){if(A=A||0,M=M||this.length,K(typeof(k=typeof(k=k||0)=="string"?k.charCodeAt(0):k)=="number"&&!isNaN(k),"value is not a number"),K(A<=M,"end < start"),M!==A&&this.length!==0){K(0<=A&&A<this.length,"start out of bounds"),K(0<=M&&M<=this.length,"end out of bounds");for(var P=A;P<M;P++)this[P]=k}},m.prototype.inspect=function(){for(var k=[],A=this.length,M=0;M<A;M++)if(k[M]=ce(this[M]),M===a.INSPECT_MAX_BYTES){k[M+1]="...";break}return"<Buffer "+k.join(" ")+">"},m.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(m._useTypedArrays)return new m(this).buffer;for(var k=new Uint8Array(this.length),A=0,M=k.length;A<M;A+=1)k[A]=this[A];return k.buffer};var U=m.prototype;function B(k,A,M){return typeof k!="number"?M:A<=(k=~~k)?A:0<=k||0<=(k+=A)?k:0}function Q(k){return(k=~~Math.ceil(+k))<0?0:k}function le(k){return(Array.isArray||function(A){return Object.prototype.toString.call(A)==="[object Array]"})(k)}function ce(k){return k<16?"0"+k.toString(16):k.toString(16)}function Ce(k){for(var A=[],M=0;M<k.length;M++){var P=k.charCodeAt(M);if(P<=127)A.push(k.charCodeAt(M));else for(var F=M,Y=(55296<=P&&P<=57343&&M++,encodeURIComponent(k.slice(F,M+1)).substr(1).split("%")),Te=0;Te<Y.length;Te++)A.push(parseInt(Y[Te],16))}return A}function $(k){return p.toByteArray(k)}function De(k,A,M,P){for(var F=0;F<P&&!(F+M>=A.length||F>=k.length);F++)A[F+M]=k[F];return F}function Lt(k){try{return decodeURIComponent(k)}catch{return"\uFFFD"}}function E(k,A){K(typeof k=="number","cannot write a non-number as a number"),K(0<=k,"specified a negative value for writing an unsigned value"),K(k<=A,"value is larger than maximum value for type"),K(Math.floor(k)===k,"value has a fractional component")}function se(k,A,M){K(typeof k=="number","cannot write a non-number as a number"),K(k<=A,"value larger than maximum allowed value"),K(M<=k,"value smaller than minimum allowed value"),K(Math.floor(k)===k,"value has a fractional component")}function At(k,A,M){K(typeof k=="number","cannot write a non-number as a number"),K(k<=A,"value larger than maximum allowed value"),K(M<=k,"value smaller than minimum allowed value")}function K(k,A){if(!k)throw new Error(A||"Failed assertion")}m._augment=function(k){return k._isBuffer=!0,k._get=k.get,k._set=k.set,k.get=U.get,k.set=U.set,k.write=U.write,k.toString=U.toString,k.toLocaleString=U.toString,k.toJSON=U.toJSON,k.copy=U.copy,k.slice=U.slice,k.readUInt8=U.readUInt8,k.readUInt16LE=U.readUInt16LE,k.readUInt16BE=U.readUInt16BE,k.readUInt32LE=U.readUInt32LE,k.readUInt32BE=U.readUInt32BE,k.readInt8=U.readInt8,k.readInt16LE=U.readInt16LE,k.readInt16BE=U.readInt16BE,k.readInt32LE=U.readInt32LE,k.readInt32BE=U.readInt32BE,k.readFloatLE=U.readFloatLE,k.readFloatBE=U.readFloatBE,k.readDoubleLE=U.readDoubleLE,k.readDoubleBE=U.readDoubleBE,k.writeUInt8=U.writeUInt8,k.writeUInt16LE=U.writeUInt16LE,k.writeUInt16BE=U.writeUInt16BE,k.writeUInt32LE=U.writeUInt32LE,k.writeUInt32BE=U.writeUInt32BE,k.writeInt8=U.writeInt8,k.writeInt16LE=U.writeInt16LE,k.writeInt16BE=U.writeInt16BE,k.writeInt32LE=U.writeInt32LE,k.writeInt32BE=U.writeInt32BE,k.writeFloatLE=U.writeFloatLE,k.writeFloatBE=U.writeFloatBE,k.writeDoubleLE=U.writeDoubleLE,k.writeDoubleBE=U.writeDoubleBE,k.fill=U.fill,k.inspect=U.inspect,k.toArrayBuffer=U.toArrayBuffer,k}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(e,t,a){(function(n,r,p,i,l,s,u,c,d){var p=e("buffer").Buffer,f=4,m=new p(f);m.fill(0),t.exports={hash:function(S,C,g,y){for(var h=C((function(w,T){w.length%f!=0&&(I=w.length+(f-w.length%f),w=p.concat([w,m],I));for(var I,q=[],O=T?w.readInt32BE:w.readInt32LE,R=0;R<w.length;R+=f)q.push(O.call(w,R));return q})(S=p.isBuffer(S)?S:new p(S),y),8*S.length),C=y,b=new p(g),L=C?b.writeInt32BE:b.writeInt32LE,x=0;x<h.length;x++)L.call(b,h[x],4*x,!0);return b}}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(e,t,a){(function(n,r,p,i,l,s,u,c,d){var p=e("buffer").Buffer,f=e("./sha"),m=e("./sha256"),S=e("./rng"),C={sha1:f,sha256:m,md5:e("./md5")},g=64,y=new p(g);function h(w,T){var I=C[w=w||"sha1"],q=[];return I||b("algorithm:",w,"is not yet supported"),{update:function(O){return p.isBuffer(O)||(O=new p(O)),q.push(O),O.length,this},digest:function(O){var R=p.concat(q),R=T?(function(U,B,Q){p.isBuffer(B)||(B=new p(B)),p.isBuffer(Q)||(Q=new p(Q)),B.length>g?B=U(B):B.length<g&&(B=p.concat([B,y],g));for(var le=new p(g),ce=new p(g),Ce=0;Ce<g;Ce++)le[Ce]=54^B[Ce],ce[Ce]=92^B[Ce];return Q=U(p.concat([le,Q])),U(p.concat([ce,Q]))})(I,T,R):I(R);return q=null,O?R.toString(O):R}}}function b(){var w=[].slice.call(arguments).join(" ");throw new Error([w,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
16
- `))}y.fill(0),a.createHash=function(w){return h(w)},a.createHmac=h,a.randomBytes=function(w,T){if(!T||!T.call)return new p(S(w));try{T.call(this,void 0,new p(S(w)))}catch(I){T(I)}};var L,x=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],_=function(w){a[w]=function(){b("sorry,",w,"is not implemented yet")}};for(L in x)_(x[L],L)}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){var p=e("./helpers");function f(b,L){b[L>>5]|=128<<L%32,b[14+(L+64>>>9<<4)]=L;for(var x=1732584193,_=-271733879,w=-1732584194,T=271733878,I=0;I<b.length;I+=16){var q=x,O=_,R=w,U=T,x=S(x,_,w,T,b[I+0],7,-680876936),T=S(T,x,_,w,b[I+1],12,-389564586),w=S(w,T,x,_,b[I+2],17,606105819),_=S(_,w,T,x,b[I+3],22,-1044525330);x=S(x,_,w,T,b[I+4],7,-176418897),T=S(T,x,_,w,b[I+5],12,1200080426),w=S(w,T,x,_,b[I+6],17,-1473231341),_=S(_,w,T,x,b[I+7],22,-45705983),x=S(x,_,w,T,b[I+8],7,1770035416),T=S(T,x,_,w,b[I+9],12,-1958414417),w=S(w,T,x,_,b[I+10],17,-42063),_=S(_,w,T,x,b[I+11],22,-1990404162),x=S(x,_,w,T,b[I+12],7,1804603682),T=S(T,x,_,w,b[I+13],12,-40341101),w=S(w,T,x,_,b[I+14],17,-1502002290),x=C(x,_=S(_,w,T,x,b[I+15],22,1236535329),w,T,b[I+1],5,-165796510),T=C(T,x,_,w,b[I+6],9,-1069501632),w=C(w,T,x,_,b[I+11],14,643717713),_=C(_,w,T,x,b[I+0],20,-373897302),x=C(x,_,w,T,b[I+5],5,-701558691),T=C(T,x,_,w,b[I+10],9,38016083),w=C(w,T,x,_,b[I+15],14,-660478335),_=C(_,w,T,x,b[I+4],20,-405537848),x=C(x,_,w,T,b[I+9],5,568446438),T=C(T,x,_,w,b[I+14],9,-1019803690),w=C(w,T,x,_,b[I+3],14,-187363961),_=C(_,w,T,x,b[I+8],20,1163531501),x=C(x,_,w,T,b[I+13],5,-1444681467),T=C(T,x,_,w,b[I+2],9,-51403784),w=C(w,T,x,_,b[I+7],14,1735328473),x=g(x,_=C(_,w,T,x,b[I+12],20,-1926607734),w,T,b[I+5],4,-378558),T=g(T,x,_,w,b[I+8],11,-2022574463),w=g(w,T,x,_,b[I+11],16,1839030562),_=g(_,w,T,x,b[I+14],23,-35309556),x=g(x,_,w,T,b[I+1],4,-1530992060),T=g(T,x,_,w,b[I+4],11,1272893353),w=g(w,T,x,_,b[I+7],16,-155497632),_=g(_,w,T,x,b[I+10],23,-1094730640),x=g(x,_,w,T,b[I+13],4,681279174),T=g(T,x,_,w,b[I+0],11,-358537222),w=g(w,T,x,_,b[I+3],16,-722521979),_=g(_,w,T,x,b[I+6],23,76029189),x=g(x,_,w,T,b[I+9],4,-640364487),T=g(T,x,_,w,b[I+12],11,-421815835),w=g(w,T,x,_,b[I+15],16,530742520),x=y(x,_=g(_,w,T,x,b[I+2],23,-995338651),w,T,b[I+0],6,-198630844),T=y(T,x,_,w,b[I+7],10,1126891415),w=y(w,T,x,_,b[I+14],15,-1416354905),_=y(_,w,T,x,b[I+5],21,-57434055),x=y(x,_,w,T,b[I+12],6,1700485571),T=y(T,x,_,w,b[I+3],10,-1894986606),w=y(w,T,x,_,b[I+10],15,-1051523),_=y(_,w,T,x,b[I+1],21,-2054922799),x=y(x,_,w,T,b[I+8],6,1873313359),T=y(T,x,_,w,b[I+15],10,-30611744),w=y(w,T,x,_,b[I+6],15,-1560198380),_=y(_,w,T,x,b[I+13],21,1309151649),x=y(x,_,w,T,b[I+4],6,-145523070),T=y(T,x,_,w,b[I+11],10,-1120210379),w=y(w,T,x,_,b[I+2],15,718787259),_=y(_,w,T,x,b[I+9],21,-343485551),x=h(x,q),_=h(_,O),w=h(w,R),T=h(T,U)}return Array(x,_,w,T)}function m(b,L,x,_,w,T){return h((L=h(h(L,b),h(_,T)))<<w|L>>>32-w,x)}function S(b,L,x,_,w,T,I){return m(L&x|~L&_,b,L,w,T,I)}function C(b,L,x,_,w,T,I){return m(L&_|x&~_,b,L,w,T,I)}function g(b,L,x,_,w,T,I){return m(L^x^_,b,L,w,T,I)}function y(b,L,x,_,w,T,I){return m(x^(L|~_),b,L,w,T,I)}function h(b,L){var x=(65535&b)+(65535&L);return(b>>16)+(L>>16)+(x>>16)<<16|65535&x}t.exports=function(b){return p.hash(b,f,16)}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){var p;t.exports=p||function(f){for(var m,S=new Array(f),C=0;C<f;C++)(3&C)==0&&(m=4294967296*Math.random()),S[C]=m>>>((3&C)<<3)&255;return S}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){var p=e("./helpers");function f(C,g){C[g>>5]|=128<<24-g%32,C[15+(g+64>>9<<4)]=g;for(var y,h,b,L=Array(80),x=1732584193,_=-271733879,w=-1732584194,T=271733878,I=-1009589776,q=0;q<C.length;q+=16){for(var O=x,R=_,U=w,B=T,Q=I,le=0;le<80;le++){L[le]=le<16?C[q+le]:S(L[le-3]^L[le-8]^L[le-14]^L[le-16],1);var ce=m(m(S(x,5),(ce=_,h=w,b=T,(y=le)<20?ce&h|~ce&b:!(y<40)&&y<60?ce&h|ce&b|h&b:ce^h^b)),m(m(I,L[le]),(y=le)<20?1518500249:y<40?1859775393:y<60?-1894007588:-899497514)),I=T,T=w,w=S(_,30),_=x,x=ce}x=m(x,O),_=m(_,R),w=m(w,U),T=m(T,B),I=m(I,Q)}return Array(x,_,w,T,I)}function m(C,g){var y=(65535&C)+(65535&g);return(C>>16)+(g>>16)+(y>>16)<<16|65535&y}function S(C,g){return C<<g|C>>>32-g}t.exports=function(C){return p.hash(C,f,20,!0)}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){function p(g,y){var h=(65535&g)+(65535&y);return(g>>16)+(y>>16)+(h>>16)<<16|65535&h}function f(g,y){var h,b=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),L=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),x=new Array(64);g[y>>5]|=128<<24-y%32,g[15+(y+64>>9<<4)]=y;for(var _,w,T=0;T<g.length;T+=16){for(var I=L[0],q=L[1],O=L[2],R=L[3],U=L[4],B=L[5],Q=L[6],le=L[7],ce=0;ce<64;ce++)x[ce]=ce<16?g[ce+T]:p(p(p((w=x[ce-2],S(w,17)^S(w,19)^C(w,10)),x[ce-7]),(w=x[ce-15],S(w,7)^S(w,18)^C(w,3))),x[ce-16]),h=p(p(p(p(le,S(w=U,6)^S(w,11)^S(w,25)),U&B^~U&Q),b[ce]),x[ce]),_=p(S(_=I,2)^S(_,13)^S(_,22),I&q^I&O^q&O),le=Q,Q=B,B=U,U=p(R,h),R=O,O=q,q=I,I=p(h,_);L[0]=p(I,L[0]),L[1]=p(q,L[1]),L[2]=p(O,L[2]),L[3]=p(R,L[3]),L[4]=p(U,L[4]),L[5]=p(B,L[5]),L[6]=p(Q,L[6]),L[7]=p(le,L[7])}return L}var m=e("./helpers"),S=function(g,y){return g>>>y|g<<32-y},C=function(g,y){return g>>>y};t.exports=function(g){return m.hash(g,f,32,!0)}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){a.read=function(p,f,m,S,T){var g,y,h=8*T-S-1,b=(1<<h)-1,L=b>>1,x=-7,_=m?T-1:0,w=m?-1:1,T=p[f+_];for(_+=w,g=T&(1<<-x)-1,T>>=-x,x+=h;0<x;g=256*g+p[f+_],_+=w,x-=8);for(y=g&(1<<-x)-1,g>>=-x,x+=S;0<x;y=256*y+p[f+_],_+=w,x-=8);if(g===0)g=1-L;else{if(g===b)return y?NaN:1/0*(T?-1:1);y+=Math.pow(2,S),g-=L}return(T?-1:1)*y*Math.pow(2,g-S)},a.write=function(p,f,m,S,C,I){var y,h,b=8*I-C-1,L=(1<<b)-1,x=L>>1,_=C===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=S?0:I-1,T=S?1:-1,I=f<0||f===0&&1/f<0?1:0;for(f=Math.abs(f),isNaN(f)||f===1/0?(h=isNaN(f)?1:0,y=L):(y=Math.floor(Math.log(f)/Math.LN2),f*(S=Math.pow(2,-y))<1&&(y--,S*=2),2<=(f+=1<=y+x?_/S:_*Math.pow(2,1-x))*S&&(y++,S/=2),L<=y+x?(h=0,y=L):1<=y+x?(h=(f*S-1)*Math.pow(2,C),y+=x):(h=f*Math.pow(2,x-1)*Math.pow(2,C),y=0));8<=C;p[m+w]=255&h,w+=T,h/=256,C-=8);for(y=y<<C|h,b+=C;0<b;p[m+w]=255&y,w+=T,y/=256,b-=8);p[m+w-T]|=128*I}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){var p,f,m;function S(){}(n=t.exports={}).nextTick=(f=typeof window<"u"&&window.setImmediate,m=typeof window<"u"&&window.postMessage&&window.addEventListener,f?function(C){return window.setImmediate(C)}:m?(p=[],window.addEventListener("message",function(C){var g=C.source;g!==window&&g!==null||C.data!=="process-tick"||(C.stopPropagation(),0<p.length&&p.shift()())},!0),function(C){p.push(C),window.postMessage("process-tick","*")}):function(C){setTimeout(C,0)}),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.on=S,n.addListener=S,n.once=S,n.off=S,n.removeListener=S,n.removeAllListeners=S,n.emit=S,n.binding=function(C){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(C){throw new Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)})});var JZ={};function ha(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&a.firstChild?a.insertBefore(n,a.firstChild):a.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}ha(`:root[data-chat-widget],[data-chat-widget]{--chat-primary: #3b82f6;--chat-primary-text: #ffffff;--chat-primary-hover: #2563eb;--chat-primary-subtle: rgba(59, 130, 246, .1);--chat-background: #ffffff;--chat-background-secondary: #f9fafb;--chat-background-tertiary: #f3f4f6;--chat-border: #e5e7eb;--chat-border-light: #f3f4f6;--chat-widget-border-width: 1px;--chat-text: #111827;--chat-text-secondary: #4b5563;--chat-text-muted: #6b7280;--chat-text-disabled: #9ca3af;--chat-link: #2563eb;--chat-link-hover: #1d4ed8;--chat-success: #22c55e;--chat-success-bg: rgba(34, 197, 94, .1);--chat-error: #ef4444;--chat-error-bg: rgba(239, 68, 68, .1);--chat-header-text: #ffffff;--chat-user-text: #ffffff;--chat-assistant-bg: transparent;--chat-assistant-text: var(--chat-text);--chat-input-bg: var(--chat-background);--chat-input-text: var(--chat-text);--chat-input-placeholder: var(--chat-text-muted);--chat-thought-border: var(--chat-border);--chat-font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;--chat-radius: .75rem;--chat-font-size: .925rem;--chat-thought-font-size: .75rem;--chat-shadow: 0 20px 45px rgba(0, 0, 0, .12);--chat-shadow-sm: 0 4px 12px rgba(0, 0, 0, .1);--chat-overlay-bg: rgba(0, 0, 0, .3)}.chat-widget{position:relative;display:flex;flex-direction:column;width:100%;height:100%;min-height:24rem;background:var(--chat-background);border:var(--chat-widget-border-width) solid var(--chat-border);border-radius:0;box-shadow:var(--chat-shadow);overflow:hidden;font-family:var(--chat-font-family);color:var(--chat-assistant-text)}.chat-widget--popup-content{border:0;border-radius:inherit;box-shadow:none;min-height:0}.chat-widget__header{display:flex;align-items:center;justify-content:space-between;height:40px;padding:.75rem 1rem;background:var(--chat-primary);color:var(--chat-header-text)}.chat-widget__title{margin:0;font-size:.875rem;font-weight:600}.chat-widget__messages{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:1rem}.chat-widget__message{display:flex;flex-direction:column;gap:0}.chat-widget__message-row{display:flex}.chat-widget__message-row--user{justify-content:flex-end}.chat-widget__message-row--assistant{justify-content:flex-start}.chat-widget__bubble{max-width:90%;padding:.5rem .25rem;border-radius:calc(var(--chat-radius) * .65);font-size:var(--chat-font-size)}.chat-widget__bubble--user{background:var(--chat-primary);color:var(--chat-user-text);border-bottom-right-radius:.35rem;padding-left:.375rem;padding-right:.375rem}.chat-widget__bubble--assistant{width:90%;background:var(--chat-assistant-bg);color:var(--chat-assistant-text);border-bottom-left-radius:.35rem}.chat-widget__widget{width:100%}.chat-widget__markdown{white-space:normal;font-size:var(--chat-font-size)}.chat-widget__markdown h1{font-size:calc(var(--chat-font-size) * 1.4)}.chat-widget__markdown h2{font-size:calc(var(--chat-font-size) * 1.25)}.chat-widget__markdown h3{font-size:calc(var(--chat-font-size) * 1.1)}.chat-widget__markdown h4{font-size:calc(var(--chat-font-size) * 1.05)}.chat-widget__markdown h5{font-size:calc(var(--chat-font-size) * 1)}.chat-widget__markdown h6{font-size:calc(var(--chat-font-size) * .95)}.chat-widget__anchor-button{position:fixed;bottom:20px;right:20px;display:inline-flex;align-items:center;gap:.5rem;padding:.65rem .85rem;background:var(--chat-primary);color:var(--chat-primary-text);border:none;border-radius:999px;box-shadow:var(--chat-shadow);cursor:pointer;font-weight:600;z-index:99999}.chat-widget__anchor-button:hover{background:var(--chat-primary-hover)}.chat-widget__anchor--left{right:auto;left:20px}.chat-widget__anchor-icon{width:1.1rem;height:1.1rem}.chat-widget__popup{position:fixed;bottom:80px;right:20px;z-index:99998}.chat-widget__anchor--left.chat-widget__popup{right:auto;left:20px}.chat-widget__popup-inner{width:384px;max-width:calc(100vw - 40px);height:500px;max-height:calc(100vh - 140px);box-shadow:var(--chat-shadow);border-radius:12px;overflow:hidden}.chat-widget__markdown a{color:var(--chat-link);text-decoration:underline}.chat-widget__markdown a:hover{color:var(--chat-link-hover)}.chat-widget__markdown table{width:100%;border-collapse:collapse;margin:.5rem 0}.chat-widget__markdown th,.chat-widget__markdown td{border:1px solid var(--chat-border);padding:.5rem;text-align:left;vertical-align:top}.chat-widget__markdown thead th{background:var(--chat-assistant-bg);color:var(--chat-assistant-text);font-weight:600}.chat-widget__thoughts{min-width:0;--chat-font-size: var(--chat-thought-font-size)}.chat-widget__details{border:0}.chat-widget__thoughts-summary{list-style:none;display:flex;align-items:center;gap:.35rem;cursor:pointer;color:var(--chat-text-muted);font-size:.8125rem}.chat-widget__thoughts-summary:hover{color:var(--chat-assistant-text)}.chat-widget__thoughts-icon-container{display:flex;border:1px solid var(--chat-border);border-radius:999px;align-items:center;justify-content:center;width:1rem;height:1rem}.chat-widget__thoughts-icon{width:.75rem;height:.75rem;transition:transform .2s ease}.chat-widget__details[open] .chat-widget__thoughts-icon{transform:rotate(90deg)}.chat-widget__thoughts-content{margin-top:.5rem;margin-left:.4rem;padding:.75rem;border-left:2px solid var(--chat-thought-border);border-color:var(--chat-primary);max-width:100%;overflow-x:auto}.chat-widget__thoughts-text{margin:0;line-height:1.5;color:var(--chat-text-secondary);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere;display:block}.chat-widget__loading{display:flex;justify-content:flex-start}.chat-widget__loading-bubble{background:var(--chat-assistant-bg);color:var(--chat-assistant-text);border-radius:calc(var(--chat-radius) * .65);border-bottom-left-radius:.35rem;padding:.5rem .75rem}.chat-widget__loading-dots{display:flex;gap:.35rem}.chat-widget__loading-dot{width:.5rem;height:.5rem;border-radius:999px;background:var(--chat-text-disabled);animation:chat-widget-bounce 1s infinite ease-in-out}.chat-widget__loading-dot[data-delay="1"]{animation-delay:.1s}.chat-widget__loading-dot[data-delay="2"]{animation-delay:.2s}@keyframes chat-widget-bounce{0%,80%,to{transform:scale(.6);opacity:.4}40%{transform:scale(1);opacity:1}}.chat-widget__input{border-top:1px solid var(--chat-border);padding:.25rem 0 .75rem;background:var(--chat-input-bg)}.chat-widget__form{position:relative}.chat-widget__textarea{width:100%;border:0;padding:.75rem 5.25rem .75rem .75rem;background:transparent;font-size:.925rem;resize:none;color:var(--chat-input-text);font-family:inherit}.chat-widget__textarea::-moz-placeholder{color:var(--chat-input-placeholder)}.chat-widget__textarea::placeholder{color:var(--chat-input-placeholder)}.chat-widget__textarea:focus-visible{outline:none}.chat-widget__textarea:disabled{opacity:.5;cursor:not-allowed}.chat-widget__toolbar{position:absolute;top:0;right:3.75rem;height:100%;display:flex;align-items:center;padding:0 .5rem;border-right:1px solid var(--chat-border)}.chat-widget__submit{position:absolute;top:50%;right:.75rem;transform:translateY(-50%);background:transparent;border:0;width:2.5rem;height:2.5rem;display:grid;place-items:center;color:var(--chat-primary);cursor:pointer}.chat-widget__submit:disabled{color:var(--chat-text-disabled);cursor:not-allowed}.chat-widget__submit:not(:disabled):hover{color:var(--chat-primary-hover)}.chat-widget__send-icon{width:1.2rem;height:1.2rem}.chat-widget__mic-button{position:relative;border:none;background:transparent;width:2.25rem;height:2.25rem;display:grid;place-items:center;color:var(--chat-primary);cursor:pointer;border-radius:999px}.chat-widget__mic-button:disabled{color:var(--chat-text-disabled);cursor:not-allowed}.chat-widget__mic-button--active{color:var(--chat-primary-hover);background:var(--chat-primary-subtle)}.chat-widget__mic-icon{width:1rem;height:1rem}.chat-widget__mic-bar{position:absolute;bottom:.1rem;left:50%;width:16px;height:2px;border-radius:999px;background:var(--chat-border);overflow:hidden;display:block;transform:translate(-50%);pointer-events:none}.chat-widget__mic-bar-fill{display:block;width:100%;height:100%;background:currentColor;transform-origin:left;transition:transform .12s linear}.chat-widget__voice{display:flex;margin-top:.25rem}.chat-widget__voice-button{border:none;background:none;display:inline-flex;align-items:center;gap:.35rem;padding:.1rem 0;font-size:.8rem;font-weight:500;color:var(--chat-primary);cursor:pointer}.chat-widget__voice-button:disabled{color:var(--chat-text-disabled);cursor:not-allowed}.chat-widget__voice-button--active{color:var(--chat-primary-hover)}.chat-widget__voice-icon{width:.95rem;height:.95rem}.chat-widget__voice-icon--spin{animation:chat-widget-spin 1s linear infinite}@keyframes chat-widget-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.chat-widget__collapsed{position:relative;margin-bottom:.25rem}.chat-widget__collapsed-content{display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s ease-out}.chat-widget__collapsed-content--expanded{grid-template-rows:1fr}.chat-widget__collapsed-content-inner{overflow:hidden}.chat-widget__collapsed-preview{position:relative;max-height:1.5em;overflow:hidden;opacity:.6;pointer-events:none;transition:opacity .3s ease-out,max-height .3s ease-out}.chat-widget__collapsed-preview--hidden{opacity:0;max-height:0;pointer-events:none}.chat-widget__collapsed-gradient{position:absolute;top:0;right:0;width:70%;height:100%;background:linear-gradient(to right,transparent 0%,var(--chat-background) 90%);pointer-events:none}.chat-widget__collapsed-toggle{display:inline-block;padding:0;font-size:.75rem;font-weight:500;color:var(--chat-primary);background:transparent;border:none;cursor:pointer}.chat-widget__collapsed-toggle:hover{text-decoration:underline}@keyframes chat-widget-slide-up{0%{opacity:1;transform:translateY(0);max-height:200px}to{opacity:.6;transform:translateY(-8px);max-height:1.5em}}.chat-widget__collapsed--animating .chat-widget__collapsed-preview{animation:chat-widget-slide-up .3s ease-out forwards}
16
+ `))}y.fill(0),a.createHash=function(w){return h(w)},a.createHmac=h,a.randomBytes=function(w,T){if(!T||!T.call)return new p(S(w));try{T.call(this,void 0,new p(S(w)))}catch(I){T(I)}};var L,x=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],_=function(w){a[w]=function(){b("sorry,",w,"is not implemented yet")}};for(L in x)_(x[L],L)}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){var p=e("./helpers");function f(b,L){b[L>>5]|=128<<L%32,b[14+(L+64>>>9<<4)]=L;for(var x=1732584193,_=-271733879,w=-1732584194,T=271733878,I=0;I<b.length;I+=16){var q=x,O=_,R=w,U=T,x=S(x,_,w,T,b[I+0],7,-680876936),T=S(T,x,_,w,b[I+1],12,-389564586),w=S(w,T,x,_,b[I+2],17,606105819),_=S(_,w,T,x,b[I+3],22,-1044525330);x=S(x,_,w,T,b[I+4],7,-176418897),T=S(T,x,_,w,b[I+5],12,1200080426),w=S(w,T,x,_,b[I+6],17,-1473231341),_=S(_,w,T,x,b[I+7],22,-45705983),x=S(x,_,w,T,b[I+8],7,1770035416),T=S(T,x,_,w,b[I+9],12,-1958414417),w=S(w,T,x,_,b[I+10],17,-42063),_=S(_,w,T,x,b[I+11],22,-1990404162),x=S(x,_,w,T,b[I+12],7,1804603682),T=S(T,x,_,w,b[I+13],12,-40341101),w=S(w,T,x,_,b[I+14],17,-1502002290),x=C(x,_=S(_,w,T,x,b[I+15],22,1236535329),w,T,b[I+1],5,-165796510),T=C(T,x,_,w,b[I+6],9,-1069501632),w=C(w,T,x,_,b[I+11],14,643717713),_=C(_,w,T,x,b[I+0],20,-373897302),x=C(x,_,w,T,b[I+5],5,-701558691),T=C(T,x,_,w,b[I+10],9,38016083),w=C(w,T,x,_,b[I+15],14,-660478335),_=C(_,w,T,x,b[I+4],20,-405537848),x=C(x,_,w,T,b[I+9],5,568446438),T=C(T,x,_,w,b[I+14],9,-1019803690),w=C(w,T,x,_,b[I+3],14,-187363961),_=C(_,w,T,x,b[I+8],20,1163531501),x=C(x,_,w,T,b[I+13],5,-1444681467),T=C(T,x,_,w,b[I+2],9,-51403784),w=C(w,T,x,_,b[I+7],14,1735328473),x=g(x,_=C(_,w,T,x,b[I+12],20,-1926607734),w,T,b[I+5],4,-378558),T=g(T,x,_,w,b[I+8],11,-2022574463),w=g(w,T,x,_,b[I+11],16,1839030562),_=g(_,w,T,x,b[I+14],23,-35309556),x=g(x,_,w,T,b[I+1],4,-1530992060),T=g(T,x,_,w,b[I+4],11,1272893353),w=g(w,T,x,_,b[I+7],16,-155497632),_=g(_,w,T,x,b[I+10],23,-1094730640),x=g(x,_,w,T,b[I+13],4,681279174),T=g(T,x,_,w,b[I+0],11,-358537222),w=g(w,T,x,_,b[I+3],16,-722521979),_=g(_,w,T,x,b[I+6],23,76029189),x=g(x,_,w,T,b[I+9],4,-640364487),T=g(T,x,_,w,b[I+12],11,-421815835),w=g(w,T,x,_,b[I+15],16,530742520),x=y(x,_=g(_,w,T,x,b[I+2],23,-995338651),w,T,b[I+0],6,-198630844),T=y(T,x,_,w,b[I+7],10,1126891415),w=y(w,T,x,_,b[I+14],15,-1416354905),_=y(_,w,T,x,b[I+5],21,-57434055),x=y(x,_,w,T,b[I+12],6,1700485571),T=y(T,x,_,w,b[I+3],10,-1894986606),w=y(w,T,x,_,b[I+10],15,-1051523),_=y(_,w,T,x,b[I+1],21,-2054922799),x=y(x,_,w,T,b[I+8],6,1873313359),T=y(T,x,_,w,b[I+15],10,-30611744),w=y(w,T,x,_,b[I+6],15,-1560198380),_=y(_,w,T,x,b[I+13],21,1309151649),x=y(x,_,w,T,b[I+4],6,-145523070),T=y(T,x,_,w,b[I+11],10,-1120210379),w=y(w,T,x,_,b[I+2],15,718787259),_=y(_,w,T,x,b[I+9],21,-343485551),x=h(x,q),_=h(_,O),w=h(w,R),T=h(T,U)}return Array(x,_,w,T)}function m(b,L,x,_,w,T){return h((L=h(h(L,b),h(_,T)))<<w|L>>>32-w,x)}function S(b,L,x,_,w,T,I){return m(L&x|~L&_,b,L,w,T,I)}function C(b,L,x,_,w,T,I){return m(L&_|x&~_,b,L,w,T,I)}function g(b,L,x,_,w,T,I){return m(L^x^_,b,L,w,T,I)}function y(b,L,x,_,w,T,I){return m(x^(L|~_),b,L,w,T,I)}function h(b,L){var x=(65535&b)+(65535&L);return(b>>16)+(L>>16)+(x>>16)<<16|65535&x}t.exports=function(b){return p.hash(b,f,16)}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){var p;t.exports=p||function(f){for(var m,S=new Array(f),C=0;C<f;C++)(3&C)==0&&(m=4294967296*Math.random()),S[C]=m>>>((3&C)<<3)&255;return S}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){var p=e("./helpers");function f(C,g){C[g>>5]|=128<<24-g%32,C[15+(g+64>>9<<4)]=g;for(var y,h,b,L=Array(80),x=1732584193,_=-271733879,w=-1732584194,T=271733878,I=-1009589776,q=0;q<C.length;q+=16){for(var O=x,R=_,U=w,B=T,Q=I,le=0;le<80;le++){L[le]=le<16?C[q+le]:S(L[le-3]^L[le-8]^L[le-14]^L[le-16],1);var ce=m(m(S(x,5),(ce=_,h=w,b=T,(y=le)<20?ce&h|~ce&b:!(y<40)&&y<60?ce&h|ce&b|h&b:ce^h^b)),m(m(I,L[le]),(y=le)<20?1518500249:y<40?1859775393:y<60?-1894007588:-899497514)),I=T,T=w,w=S(_,30),_=x,x=ce}x=m(x,O),_=m(_,R),w=m(w,U),T=m(T,B),I=m(I,Q)}return Array(x,_,w,T,I)}function m(C,g){var y=(65535&C)+(65535&g);return(C>>16)+(g>>16)+(y>>16)<<16|65535&y}function S(C,g){return C<<g|C>>>32-g}t.exports=function(C){return p.hash(C,f,20,!0)}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){function p(g,y){var h=(65535&g)+(65535&y);return(g>>16)+(y>>16)+(h>>16)<<16|65535&h}function f(g,y){var h,b=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),L=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),x=new Array(64);g[y>>5]|=128<<24-y%32,g[15+(y+64>>9<<4)]=y;for(var _,w,T=0;T<g.length;T+=16){for(var I=L[0],q=L[1],O=L[2],R=L[3],U=L[4],B=L[5],Q=L[6],le=L[7],ce=0;ce<64;ce++)x[ce]=ce<16?g[ce+T]:p(p(p((w=x[ce-2],S(w,17)^S(w,19)^C(w,10)),x[ce-7]),(w=x[ce-15],S(w,7)^S(w,18)^C(w,3))),x[ce-16]),h=p(p(p(p(le,S(w=U,6)^S(w,11)^S(w,25)),U&B^~U&Q),b[ce]),x[ce]),_=p(S(_=I,2)^S(_,13)^S(_,22),I&q^I&O^q&O),le=Q,Q=B,B=U,U=p(R,h),R=O,O=q,q=I,I=p(h,_);L[0]=p(I,L[0]),L[1]=p(q,L[1]),L[2]=p(O,L[2]),L[3]=p(R,L[3]),L[4]=p(U,L[4]),L[5]=p(B,L[5]),L[6]=p(Q,L[6]),L[7]=p(le,L[7])}return L}var m=e("./helpers"),S=function(g,y){return g>>>y|g<<32-y},C=function(g,y){return g>>>y};t.exports=function(g){return m.hash(g,f,32,!0)}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){a.read=function(p,f,m,S,T){var g,y,h=8*T-S-1,b=(1<<h)-1,L=b>>1,x=-7,_=m?T-1:0,w=m?-1:1,T=p[f+_];for(_+=w,g=T&(1<<-x)-1,T>>=-x,x+=h;0<x;g=256*g+p[f+_],_+=w,x-=8);for(y=g&(1<<-x)-1,g>>=-x,x+=S;0<x;y=256*y+p[f+_],_+=w,x-=8);if(g===0)g=1-L;else{if(g===b)return y?NaN:1/0*(T?-1:1);y+=Math.pow(2,S),g-=L}return(T?-1:1)*y*Math.pow(2,g-S)},a.write=function(p,f,m,S,C,I){var y,h,b=8*I-C-1,L=(1<<b)-1,x=L>>1,_=C===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=S?0:I-1,T=S?1:-1,I=f<0||f===0&&1/f<0?1:0;for(f=Math.abs(f),isNaN(f)||f===1/0?(h=isNaN(f)?1:0,y=L):(y=Math.floor(Math.log(f)/Math.LN2),f*(S=Math.pow(2,-y))<1&&(y--,S*=2),2<=(f+=1<=y+x?_/S:_*Math.pow(2,1-x))*S&&(y++,S/=2),L<=y+x?(h=0,y=L):1<=y+x?(h=(f*S-1)*Math.pow(2,C),y+=x):(h=f*Math.pow(2,x-1)*Math.pow(2,C),y=0));8<=C;p[m+w]=255&h,w+=T,h/=256,C-=8);for(y=y<<C|h,b+=C;0<b;p[m+w]=255&y,w+=T,y/=256,b-=8);p[m+w-T]|=128*I}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){var p,f,m;function S(){}(n=t.exports={}).nextTick=(f=typeof window<"u"&&window.setImmediate,m=typeof window<"u"&&window.postMessage&&window.addEventListener,f?function(C){return window.setImmediate(C)}:m?(p=[],window.addEventListener("message",function(C){var g=C.source;g!==window&&g!==null||C.data!=="process-tick"||(C.stopPropagation(),0<p.length&&p.shift()())},!0),function(C){p.push(C),window.postMessage("process-tick","*")}):function(C){setTimeout(C,0)}),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.on=S,n.addListener=S,n.once=S,n.off=S,n.removeListener=S,n.removeAllListeners=S,n.emit=S,n.binding=function(C){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(C){throw new Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)})});var JZ={};function ha(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&a.firstChild?a.insertBefore(n,a.firstChild):a.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}ha(`:root[data-chat-widget],[data-chat-widget]{--chat-primary: #3b82f6;--chat-primary-text: #ffffff;--chat-primary-hover: #2563eb;--chat-primary-subtle: rgba(59, 130, 246, .1);--chat-background: #ffffff;--chat-background-secondary: #f9fafb;--chat-background-tertiary: #f3f4f6;--chat-border: #e5e7eb;--chat-border-light: #f3f4f6;--chat-widget-border-width: 1px;--chat-text: #111827;--chat-text-secondary: #4b5563;--chat-text-muted: #6b7280;--chat-text-disabled: #9ca3af;--chat-link: #2563eb;--chat-link-hover: #1d4ed8;--chat-success: #22c55e;--chat-success-bg: rgba(34, 197, 94, .1);--chat-error: #ef4444;--chat-error-bg: rgba(239, 68, 68, .1);--chat-header-text: #ffffff;--chat-user-text: #ffffff;--chat-assistant-bg: transparent;--chat-assistant-text: var(--chat-text);--chat-input-bg: var(--chat-background);--chat-input-text: var(--chat-text);--chat-input-placeholder: var(--chat-text-muted);--chat-thought-border: var(--chat-border);--chat-font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;--chat-radius: .75rem;--chat-font-size: .925rem;--chat-thought-font-size: .75rem;--chat-shadow: 0 20px 45px rgba(0, 0, 0, .12);--chat-shadow-sm: 0 4px 12px rgba(0, 0, 0, .1);--chat-overlay-bg: rgba(0, 0, 0, .3)}.chat-widget{position:relative;display:flex;flex-direction:column;width:100%;height:100%;min-height:24rem;background:var(--chat-background);border:var(--chat-widget-border-width) solid var(--chat-border);border-radius:0;box-shadow:var(--chat-shadow);overflow:hidden;font-family:var(--chat-font-family);color:var(--chat-assistant-text)}.chat-widget--popup-content{border:0;border-radius:inherit;box-shadow:none;min-height:0}.chat-widget__header{display:flex;align-items:center;justify-content:space-between;height:40px;padding:.75rem 1rem;background:var(--chat-primary);color:var(--chat-header-text)}.chat-widget__title{margin:0;font-size:.875rem;font-weight:600}.chat-widget__messages{flex:1;overflow-y:auto;overflow-x:hidden;padding:1rem;display:flex;flex-direction:column;gap:1rem;min-width:0}.chat-widget__message{display:flex;flex-direction:column;gap:0;min-width:0}.chat-widget__message-row{display:flex;min-width:0}.chat-widget__message-row--user{justify-content:flex-end}.chat-widget__message-row--assistant{justify-content:flex-start}.chat-widget__bubble{max-width:90%;padding:.5rem .25rem;border-radius:calc(var(--chat-radius) * .65);font-size:var(--chat-font-size);min-width:0;overflow-x:hidden}.chat-widget__bubble--user{background:var(--chat-primary);color:var(--chat-user-text);border-bottom-right-radius:.35rem;padding-left:.375rem;padding-right:.375rem}.chat-widget__bubble--assistant{width:90%;max-width:90%;background:var(--chat-assistant-bg);color:var(--chat-assistant-text);border-bottom-left-radius:.35rem}.chat-widget__widget,.widget-customer-root{width:100%;max-width:100%;min-width:0;overflow-x:hidden}.chat-widget__markdown{white-space:normal;font-size:var(--chat-font-size)}.chat-widget__markdown h1{font-size:calc(var(--chat-font-size) * 1.4)}.chat-widget__markdown h2{font-size:calc(var(--chat-font-size) * 1.25)}.chat-widget__markdown h3{font-size:calc(var(--chat-font-size) * 1.1)}.chat-widget__markdown h4{font-size:calc(var(--chat-font-size) * 1.05)}.chat-widget__markdown h5{font-size:calc(var(--chat-font-size) * 1)}.chat-widget__markdown h6{font-size:calc(var(--chat-font-size) * .95)}.chat-widget__anchor-button{position:fixed;bottom:20px;right:20px;display:inline-flex;align-items:center;gap:.5rem;padding:.65rem .85rem;background:var(--chat-primary);color:var(--chat-primary-text);border:none;border-radius:999px;box-shadow:var(--chat-shadow);cursor:pointer;font-weight:600;z-index:99999}.chat-widget__anchor-button:hover{background:var(--chat-primary-hover)}.chat-widget__anchor--left{right:auto;left:20px}.chat-widget__anchor-icon{width:1.1rem;height:1.1rem}.chat-widget__popup{position:fixed;bottom:80px;right:20px;z-index:99998}.chat-widget__anchor--left.chat-widget__popup{right:auto;left:20px}.chat-widget__popup-inner{width:384px;max-width:calc(100vw - 40px);height:500px;max-height:calc(100vh - 140px);box-shadow:var(--chat-shadow);border-radius:12px;overflow:hidden}.chat-widget__markdown a{color:var(--chat-link);text-decoration:underline}.chat-widget__markdown a:hover{color:var(--chat-link-hover)}.chat-widget__markdown table{width:100%;border-collapse:collapse;margin:.5rem 0}.chat-widget__markdown th,.chat-widget__markdown td{border:1px solid var(--chat-border);padding:.5rem;text-align:left;vertical-align:top}.chat-widget__markdown thead th{background:var(--chat-assistant-bg);color:var(--chat-assistant-text);font-weight:600}.chat-widget__thoughts{min-width:0;--chat-font-size: var(--chat-thought-font-size)}.chat-widget__details{border:0}.chat-widget__thoughts-summary{list-style:none;display:flex;align-items:center;gap:.35rem;cursor:pointer;color:var(--chat-text-muted);font-size:.8125rem}.chat-widget__thoughts-summary:hover{color:var(--chat-assistant-text)}.chat-widget__thoughts-icon-container{display:flex;border:1px solid var(--chat-border);border-radius:999px;align-items:center;justify-content:center;width:1rem;height:1rem}.chat-widget__thoughts-icon{width:.75rem;height:.75rem;transition:transform .2s ease}.chat-widget__details[open] .chat-widget__thoughts-icon{transform:rotate(90deg)}.chat-widget__thoughts-content{margin-top:.5rem;margin-left:.4rem;padding:.75rem;border-left:2px solid var(--chat-thought-border);border-color:var(--chat-primary);max-width:100%;overflow-x:auto}.chat-widget__thoughts-text{margin:0;line-height:1.5;color:var(--chat-text-secondary);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere;display:block}.chat-widget__loading{display:flex;justify-content:flex-start}.chat-widget__loading-bubble{background:var(--chat-assistant-bg);color:var(--chat-assistant-text);border-radius:calc(var(--chat-radius) * .65);border-bottom-left-radius:.35rem;padding:.5rem .75rem}.chat-widget__loading-dots{display:flex;gap:.35rem}.chat-widget__loading-dot{width:.5rem;height:.5rem;border-radius:999px;background:var(--chat-text-disabled);animation:chat-widget-bounce 1s infinite ease-in-out}.chat-widget__loading-dot[data-delay="1"]{animation-delay:.1s}.chat-widget__loading-dot[data-delay="2"]{animation-delay:.2s}@keyframes chat-widget-bounce{0%,80%,to{transform:scale(.6);opacity:.4}40%{transform:scale(1);opacity:1}}.chat-widget__input{border-top:1px solid var(--chat-border);padding:.25rem 0 .75rem;background:var(--chat-input-bg)}.chat-widget__form{position:relative}.chat-widget__textarea{width:100%;border:0;padding:.75rem 5.25rem .75rem .75rem;background:transparent;font-size:.925rem;resize:none;color:var(--chat-input-text);font-family:inherit}.chat-widget__textarea::-moz-placeholder{color:var(--chat-input-placeholder)}.chat-widget__textarea::placeholder{color:var(--chat-input-placeholder)}.chat-widget__textarea:focus-visible{outline:none}.chat-widget__textarea:disabled{opacity:.5;cursor:not-allowed}.chat-widget__toolbar{position:absolute;top:0;right:3.75rem;height:100%;display:flex;align-items:center;padding:0 .5rem;border-right:1px solid var(--chat-border)}.chat-widget__submit{position:absolute;top:50%;right:.75rem;transform:translateY(-50%);background:transparent;border:0;width:2.5rem;height:2.5rem;display:grid;place-items:center;color:var(--chat-primary);cursor:pointer}.chat-widget__submit:disabled{color:var(--chat-text-disabled);cursor:not-allowed}.chat-widget__submit:not(:disabled):hover{color:var(--chat-primary-hover)}.chat-widget__send-icon{width:1.2rem;height:1.2rem}.chat-widget__mic-button{position:relative;border:none;background:transparent;width:2.25rem;height:2.25rem;display:grid;place-items:center;color:var(--chat-primary);cursor:pointer;border-radius:999px}.chat-widget__mic-button:disabled{color:var(--chat-text-disabled);cursor:not-allowed}.chat-widget__mic-button--active{color:var(--chat-primary-hover);background:var(--chat-primary-subtle)}.chat-widget__mic-icon{width:1rem;height:1rem}.chat-widget__mic-bar{position:absolute;bottom:.1rem;left:50%;width:16px;height:2px;border-radius:999px;background:var(--chat-border);overflow:hidden;display:block;transform:translate(-50%);pointer-events:none}.chat-widget__mic-bar-fill{display:block;width:100%;height:100%;background:currentColor;transform-origin:left;transition:transform .12s linear}.chat-widget__voice{display:flex;margin-top:.25rem}.chat-widget__voice-button{border:none;background:none;display:inline-flex;align-items:center;gap:.35rem;padding:.1rem 0;font-size:.8rem;font-weight:500;color:var(--chat-primary);cursor:pointer}.chat-widget__voice-button:disabled{color:var(--chat-text-disabled);cursor:not-allowed}.chat-widget__voice-button--active{color:var(--chat-primary-hover)}.chat-widget__voice-icon{width:.95rem;height:.95rem}.chat-widget__voice-icon--spin{animation:chat-widget-spin 1s linear infinite}@keyframes chat-widget-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.chat-widget__collapsed{position:relative;margin-bottom:.25rem}.chat-widget__collapsed-content{display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s ease-out}.chat-widget__collapsed-content--expanded{grid-template-rows:1fr}.chat-widget__collapsed-content-inner{overflow:hidden}.chat-widget__collapsed-preview{position:relative;max-height:1.5em;overflow:hidden;opacity:.6;pointer-events:none;transition:opacity .3s ease-out,max-height .3s ease-out}.chat-widget__collapsed-preview--hidden{opacity:0;max-height:0;pointer-events:none}.chat-widget__collapsed-gradient{position:absolute;top:0;right:0;width:70%;height:100%;background:linear-gradient(to right,transparent 0%,var(--chat-background) 90%);pointer-events:none}.chat-widget__collapsed-toggle{display:inline-block;padding:0;font-size:.75rem;font-weight:500;color:var(--chat-primary);background:transparent;border:none;cursor:pointer}.chat-widget__collapsed-toggle:hover{text-decoration:underline}@keyframes chat-widget-slide-up{0%{opacity:1;transform:translateY(0);max-height:200px}to{opacity:.6;transform:translateY(-8px);max-height:1.5em}}.chat-widget__collapsed--animating .chat-widget__collapsed-preview{animation:chat-widget-slide-up .3s ease-out forwards}
17
17
  `);var KO=ne(NL(),1);var pA="vercel.ai.error",JP=Symbol.for(pA),UL,FL,Ue=class mA extends(FL=Error,UL=JP,FL){constructor({name:t,message:a,cause:n}){super(a),this[UL]=!0,this.name=t,this.cause=n}static isInstance(t){return mA.hasMarker(t,pA)}static hasMarker(t,a){let n=Symbol.for(a);return t!=null&&typeof t=="object"&&n in t&&typeof t[n]=="boolean"&&t[n]===!0}},hA="AI_APICallError",gA=`vercel.ai.error.${hA}`,XP=Symbol.for(gA),jL,BL,l7=class extends(BL=Ue,jL=XP,BL){constructor({message:e,url:t,requestBodyValues:a,statusCode:n,responseHeaders:r,responseBody:o,cause:i,isRetryable:l=n!=null&&(n===408||n===409||n===429||n>=500),data:s}){super({name:hA,message:e,cause:i}),this[jL]=!0,this.url=t,this.requestBodyValues=a,this.statusCode=n,this.responseHeaders=r,this.responseBody=o,this.isRetryable=l,this.data=s}static isInstance(e){return Ue.hasMarker(e,gA)}},vA="AI_EmptyResponseBodyError",yA=`vercel.ai.error.${vA}`,KP=Symbol.for(yA),qL,ZL,s7=class extends(ZL=Ue,qL=KP,ZL){constructor({message:e="Empty response body"}={}){super({name:vA,message:e}),this[qL]=!0}static isInstance(e){return Ue.hasMarker(e,yA)}};function xA(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var bA="AI_InvalidArgumentError",SA=`vercel.ai.error.${bA}`,YP=Symbol.for(SA),HL,VL,wA=class extends(VL=Ue,HL=YP,VL){constructor({message:e,cause:t,argument:a}){super({name:bA,message:e,cause:t}),this[HL]=!0,this.argument=a}static isInstance(e){return Ue.hasMarker(e,SA)}},_A="AI_InvalidPromptError",IA=`vercel.ai.error.${_A}`,QP=Symbol.for(IA),GL,WL,u7=class extends(WL=Ue,GL=QP,WL){constructor({prompt:e,message:t,cause:a}){super({name:_A,message:`Invalid prompt: ${t}`,cause:a}),this[GL]=!0,this.prompt=e}static isInstance(e){return Ue.hasMarker(e,IA)}},kA="AI_InvalidResponseDataError",CA=`vercel.ai.error.${kA}`,eN=Symbol.for(CA),JL,XL,c7=class extends(XL=Ue,JL=eN,XL){constructor({data:e,message:t=`Invalid response data: ${JSON.stringify(e)}.`}){super({name:kA,message:t}),this[JL]=!0,this.data=e}static isInstance(e){return Ue.hasMarker(e,CA)}},TA="AI_JSONParseError",LA=`vercel.ai.error.${TA}`,tN=Symbol.for(LA),KL,YL,Ry=class extends(YL=Ue,KL=tN,YL){constructor({text:e,cause:t}){super({name:TA,message:`JSON parsing failed: Text: ${e}.
18
18
  Error message: ${xA(t)}`,cause:t}),this[KL]=!0,this.text=e}static isInstance(e){return Ue.hasMarker(e,LA)}},AA="AI_LoadAPIKeyError",EA=`vercel.ai.error.${AA}`,aN=Symbol.for(EA),QL,eA,d7=class extends(eA=Ue,QL=aN,eA){constructor({message:e}){super({name:AA,message:e}),this[QL]=!0}static isInstance(e){return Ue.hasMarker(e,EA)}},$A="AI_LoadSettingError",MA=`vercel.ai.error.${$A}`,rN=Symbol.for(MA),tA,aA,f7=class extends(aA=Ue,tA=rN,aA){constructor({message:e}){super({name:$A,message:e}),this[tA]=!0}static isInstance(e){return Ue.hasMarker(e,MA)}},DA="AI_NoContentGeneratedError",zA=`vercel.ai.error.${DA}`,nN=Symbol.for(zA),rA,nA,p7=class extends(nA=Ue,rA=nN,nA){constructor({message:e="No content generated."}={}){super({name:DA,message:e}),this[rA]=!0}static isInstance(e){return Ue.hasMarker(e,zA)}},OA="AI_NoSuchModelError",RA=`vercel.ai.error.${OA}`,oN=Symbol.for(RA),oA,iA,m7=class extends(iA=Ue,oA=oN,iA){constructor({errorName:e=OA,modelId:t,modelType:a,message:n=`No such ${a}: ${t}`}){super({name:e,message:n}),this[oA]=!0,this.modelId=t,this.modelType=a}static isInstance(e){return Ue.hasMarker(e,RA)}},PA="AI_TooManyEmbeddingValuesForCallError",NA=`vercel.ai.error.${PA}`,iN=Symbol.for(NA),lA,sA,h7=class extends(sA=Ue,lA=iN,sA){constructor(e){super({name:PA,message:`Too many values for a single embedding call. The ${e.provider} model "${e.modelId}" can only embed up to ${e.maxEmbeddingsPerCall} values per call, but ${e.values.length} values were provided.`}),this[lA]=!0,this.provider=e.provider,this.modelId=e.modelId,this.maxEmbeddingsPerCall=e.maxEmbeddingsPerCall,this.values=e.values}static isInstance(e){return Ue.hasMarker(e,NA)}},UA="AI_TypeValidationError",FA=`vercel.ai.error.${UA}`,lN=Symbol.for(FA),uA,cA,Gr=class Oy extends(cA=Ue,uA=lN,cA){constructor({value:t,cause:a,context:n}){let r="Type validation failed";if(n?.field&&(r+=` for ${n.field}`),n?.entityName||n?.entityId){r+=" (";let o=[];n.entityName&&o.push(n.entityName),n.entityId&&o.push(`id: "${n.entityId}"`),r+=o.join(", "),r+=")"}super({name:UA,message:`${r}: Value: ${JSON.stringify(t)}.
19
19
  Error message: ${xA(a)}`,cause:a}),this[uA]=!0,this.value=t,this.context=n}static isInstance(t){return Ue.hasMarker(t,FA)}static wrap({value:t,cause:a,context:n}){var r,o,i;return Oy.isInstance(a)&&a.value===t&&((r=a.context)==null?void 0:r.field)===n?.field&&((o=a.context)==null?void 0:o.entityName)===n?.entityName&&((i=a.context)==null?void 0:i.entityId)===n?.entityId?a:new Oy({value:t,cause:a,context:n})}},jA="AI_UnsupportedFunctionalityError",BA=`vercel.ai.error.${jA}`,sN=Symbol.for(BA),dA,fA,g7=class extends(fA=Ue,dA=sN,fA){constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:jA,message:t}),this[dA]=!0,this.functionality=e}static isInstance(e){return Ue.hasMarker(e,BA)}};var v={};Tr(v,{$brand:()=>up,$input:()=>aS,$output:()=>tS,NEVER:()=>Py,TimePrecision:()=>iS,ZodAny:()=>Ww,ZodArray:()=>Yw,ZodBase64:()=>Om,ZodBase64URL:()=>Rm,ZodBigInt:()=>hs,ZodBigIntFormat:()=>Um,ZodBoolean:()=>ms,ZodCIDRv4:()=>Dm,ZodCIDRv6:()=>zm,ZodCUID:()=>Cm,ZodCUID2:()=>Tm,ZodCatch:()=>b_,ZodCodec:()=>Gm,ZodCustom:()=>Rc,ZodCustomStringFormat:()=>fs,ZodDate:()=>$c,ZodDefault:()=>m_,ZodDiscriminatedUnion:()=>e_,ZodE164:()=>Pm,ZodEmail:()=>_m,ZodEmoji:()=>Im,ZodEnum:()=>cs,ZodError:()=>RU,ZodExactOptional:()=>d_,ZodFile:()=>u_,ZodFirstPartyTypeKind:()=>M_,ZodFunction:()=>A_,ZodGUID:()=>Cc,ZodIPv4:()=>$m,ZodIPv6:()=>Mm,ZodISODate:()=>vm,ZodISODateTime:()=>gm,ZodISODuration:()=>xm,ZodISOTime:()=>ym,ZodIntersection:()=>t_,ZodIssueCode:()=>NU,ZodJWT:()=>Nm,ZodKSUID:()=>Em,ZodLazy:()=>C_,ZodLiteral:()=>s_,ZodMAC:()=>jw,ZodMap:()=>i_,ZodNaN:()=>w_,ZodNanoID:()=>km,ZodNever:()=>Xw,ZodNonOptional:()=>Hm,ZodNull:()=>Vw,ZodNullable:()=>p_,ZodNumber:()=>ps,ZodNumberFormat:()=>Si,ZodObject:()=>Dc,ZodOptional:()=>Zm,ZodPipe:()=>Vm,ZodPrefault:()=>g_,ZodPromise:()=>L_,ZodReadonly:()=>__,ZodRealError:()=>Oa,ZodRecord:()=>Oc,ZodSet:()=>l_,ZodString:()=>ds,ZodStringFormat:()=>Qe,ZodSuccess:()=>x_,ZodSymbol:()=>Zw,ZodTemplateLiteral:()=>k_,ZodTransform:()=>c_,ZodTuple:()=>r_,ZodType:()=>Ie,ZodULID:()=>Lm,ZodURL:()=>Ec,ZodUUID:()=>Kr,ZodUndefined:()=>Hw,ZodUnion:()=>zc,ZodUnknown:()=>Jw,ZodVoid:()=>Kw,ZodXID:()=>Am,ZodXor:()=>Qw,_ZodString:()=>wm,_default:()=>h_,_function:()=>S$,any:()=>Q2,array:()=>Mc,base64:()=>R2,base64url:()=>P2,bigint:()=>W2,boolean:()=>qw,catch:()=>S_,check:()=>w$,cidrv4:()=>z2,cidrv6:()=>O2,clone:()=>xa,codec:()=>y$,coerce:()=>D_,config:()=>It,core:()=>An,cuid:()=>C2,cuid2:()=>T2,custom:()=>_$,date:()=>t$,decode:()=>zw,decodeAsync:()=>Rw,describe:()=>I$,discriminatedUnion:()=>l$,e164:()=>N2,email:()=>g2,emoji:()=>I2,encode:()=>Dw,encodeAsync:()=>Ow,endsWith:()=>Ql,enum:()=>Bm,exactOptional:()=>f_,file:()=>m$,flattenError:()=>fc,float32:()=>Z2,float64:()=>H2,formatError:()=>pc,fromJSONSchema:()=>$$,function:()=>S$,getErrorMap:()=>FU,globalRegistry:()=>oa,gt:()=>Jr,gte:()=>ba,guid:()=>v2,hash:()=>q2,hex:()=>B2,hostname:()=>j2,httpUrl:()=>_2,includes:()=>Kl,instanceof:()=>C$,int:()=>Sm,int32:()=>V2,int64:()=>J2,intersection:()=>a_,ipv4:()=>$2,ipv6:()=>D2,iso:()=>us,json:()=>L$,jwt:()=>U2,keyof:()=>a$,ksuid:()=>E2,lazy:()=>T_,length:()=>xi,literal:()=>p$,locales:()=>Sc,looseObject:()=>o$,looseRecord:()=>u$,lowercase:()=>Jl,lt:()=>Wr,lte:()=>Ka,mac:()=>M2,map:()=>c$,maxLength:()=>yi,maxSize:()=>Co,meta:()=>k$,mime:()=>es,minLength:()=>Ln,minSize:()=>Xr,multipleOf:()=>ko,nan:()=>v$,nanoid:()=>k2,nativeEnum:()=>f$,negative:()=>lm,never:()=>Fm,nonnegative:()=>um,nonoptional:()=>y_,nonpositive:()=>sm,normalize:()=>ts,null:()=>Gw,nullable:()=>Lc,nullish:()=>h$,number:()=>Bw,object:()=>r$,optional:()=>Tc,overwrite:()=>Mr,parse:()=>Ew,parseAsync:()=>$w,partialRecord:()=>s$,pipe:()=>Ac,positive:()=>im,prefault:()=>v_,preprocess:()=>A$,prettifyError:()=>Jy,promise:()=>b$,property:()=>cm,readonly:()=>I_,record:()=>o_,refine:()=>E_,regex:()=>Wl,regexes:()=>hr,registry:()=>Up,safeDecode:()=>Nw,safeDecodeAsync:()=>Fw,safeEncode:()=>Pw,safeEncodeAsync:()=>Uw,safeParse:()=>Mw,safeParseAsync:()=>kc,set:()=>d$,setErrorMap:()=>UU,size:()=>vi,slugify:()=>os,startsWith:()=>Yl,strictObject:()=>n$,string:()=>bm,stringFormat:()=>F2,stringbool:()=>T$,success:()=>g$,superRefine:()=>$_,symbol:()=>K2,templateLiteral:()=>x$,toJSONSchema:()=>ss,toLowerCase:()=>rs,toUpperCase:()=>ns,transform:()=>qm,treeifyError:()=>Wy,trim:()=>as,tuple:()=>n_,uint32:()=>G2,uint64:()=>X2,ulid:()=>L2,undefined:()=>Y2,union:()=>jm,unknown:()=>bi,uppercase:()=>Xl,url:()=>w2,util:()=>G,uuid:()=>y2,uuidv4:()=>x2,uuidv6:()=>b2,uuidv7:()=>S2,void:()=>e$,xid:()=>A2,xor:()=>i$});var An={};Tr(An,{$ZodAny:()=>_b,$ZodArray:()=>Lb,$ZodAsyncError:()=>$r,$ZodBase64:()=>pb,$ZodBase64URL:()=>mb,$ZodBigInt:()=>Mp,$ZodBigIntFormat:()=>xb,$ZodBoolean:()=>vc,$ZodCIDRv4:()=>cb,$ZodCIDRv6:()=>db,$ZodCUID:()=>Yx,$ZodCUID2:()=>Qx,$ZodCatch:()=>Vb,$ZodCheck:()=>rt,$ZodCheckBigIntFormat:()=>Lx,$ZodCheckEndsWith:()=>Fx,$ZodCheckGreaterThan:()=>kp,$ZodCheckIncludes:()=>Nx,$ZodCheckLengthEquals:()=>zx,$ZodCheckLessThan:()=>Ip,$ZodCheckLowerCase:()=>Rx,$ZodCheckMaxLength:()=>Mx,$ZodCheckMaxSize:()=>Ax,$ZodCheckMimeType:()=>Bx,$ZodCheckMinLength:()=>Dx,$ZodCheckMinSize:()=>Ex,$ZodCheckMultipleOf:()=>Cx,$ZodCheckNumberFormat:()=>Tx,$ZodCheckOverwrite:()=>qx,$ZodCheckProperty:()=>jx,$ZodCheckRegex:()=>Ox,$ZodCheckSizeEquals:()=>$x,$ZodCheckStartsWith:()=>Ux,$ZodCheckStringFormat:()=>Vl,$ZodCheckUpperCase:()=>Px,$ZodCodec:()=>xc,$ZodCustom:()=>eS,$ZodCustomStringFormat:()=>vb,$ZodDate:()=>Tb,$ZodDefault:()=>Bb,$ZodDiscriminatedUnion:()=>$b,$ZodE164:()=>hb,$ZodEmail:()=>Wx,$ZodEmoji:()=>Xx,$ZodEncodeError:()=>bo,$ZodEnum:()=>Rb,$ZodError:()=>dc,$ZodExactOptional:()=>Fb,$ZodFile:()=>Nb,$ZodFunction:()=>Kb,$ZodGUID:()=>Vx,$ZodIPv4:()=>lb,$ZodIPv6:()=>sb,$ZodISODate:()=>nb,$ZodISODateTime:()=>rb,$ZodISODuration:()=>ib,$ZodISOTime:()=>ob,$ZodIntersection:()=>Mb,$ZodJWT:()=>gb,$ZodKSUID:()=>ab,$ZodLazy:()=>Qb,$ZodLiteral:()=>Pb,$ZodMAC:()=>ub,$ZodMap:()=>zb,$ZodNaN:()=>Gb,$ZodNanoID:()=>Kx,$ZodNever:()=>kb,$ZodNonOptional:()=>Zb,$ZodNull:()=>wb,$ZodNullable:()=>jb,$ZodNumber:()=>$p,$ZodNumberFormat:()=>yb,$ZodObject:()=>hE,$ZodObjectJIT:()=>Ab,$ZodOptional:()=>zp,$ZodPipe:()=>Wb,$ZodPrefault:()=>qb,$ZodPromise:()=>Yb,$ZodReadonly:()=>Jb,$ZodRealError:()=>za,$ZodRecord:()=>Db,$ZodRegistry:()=>Np,$ZodSet:()=>Ob,$ZodString:()=>gi,$ZodStringFormat:()=>Ye,$ZodSuccess:()=>Hb,$ZodSymbol:()=>bb,$ZodTemplateLiteral:()=>Xb,$ZodTransform:()=>Ub,$ZodTuple:()=>Dp,$ZodType:()=>ve,$ZodULID:()=>eb,$ZodURL:()=>Jx,$ZodUUID:()=>Gx,$ZodUndefined:()=>Sb,$ZodUnion:()=>yc,$ZodUnknown:()=>Ib,$ZodVoid:()=>Cb,$ZodXID:()=>tb,$ZodXor:()=>Eb,$brand:()=>up,$constructor:()=>D,$input:()=>aS,$output:()=>tS,Doc:()=>gc,JSONSchema:()=>m2,JSONSchemaGenerator:()=>mm,NEVER:()=>Py,TimePrecision:()=>iS,_any:()=>TS,_array:()=>zS,_base64:()=>am,_base64url:()=>rm,_bigint:()=>bS,_boolean:()=>yS,_catch:()=>LU,_check:()=>p2,_cidrv4:()=>em,_cidrv6:()=>tm,_coercedBigint:()=>SS,_coercedBoolean:()=>xS,_coercedDate:()=>MS,_coercedNumber:()=>fS,_coercedString:()=>nS,_cuid:()=>Gp,_cuid2:()=>Wp,_custom:()=>RS,_date:()=>$S,_decode:()=>hp,_decodeAsync:()=>vp,_default:()=>kU,_discriminatedUnion:()=>pU,_e164:()=>nm,_email:()=>Fp,_emoji:()=>Hp,_encode:()=>mp,_encodeAsync:()=>gp,_endsWith:()=>Ql,_enum:()=>xU,_file:()=>OS,_float32:()=>mS,_float64:()=>hS,_gt:()=>Jr,_gte:()=>ba,_guid:()=>wc,_includes:()=>Kl,_int:()=>pS,_int32:()=>gS,_int64:()=>wS,_intersection:()=>mU,_ipv4:()=>Yp,_ipv6:()=>Qp,_isoDate:()=>sS,_isoDateTime:()=>lS,_isoDuration:()=>cS,_isoTime:()=>uS,_jwt:()=>om,_ksuid:()=>Kp,_lazy:()=>MU,_length:()=>xi,_literal:()=>SU,_lowercase:()=>Jl,_lt:()=>Wr,_lte:()=>Ka,_mac:()=>oS,_map:()=>vU,_max:()=>Ka,_maxLength:()=>yi,_maxSize:()=>Co,_mime:()=>es,_min:()=>ba,_minLength:()=>Ln,_minSize:()=>Xr,_multipleOf:()=>ko,_nan:()=>DS,_nanoid:()=>Vp,_nativeEnum:()=>bU,_negative:()=>lm,_never:()=>AS,_nonnegative:()=>um,_nonoptional:()=>CU,_nonpositive:()=>sm,_normalize:()=>ts,_null:()=>CS,_nullable:()=>IU,_number:()=>dS,_optional:()=>_U,_overwrite:()=>Mr,_parse:()=>Bl,_parseAsync:()=>ql,_pipe:()=>AU,_positive:()=>im,_promise:()=>DU,_property:()=>cm,_readonly:()=>EU,_record:()=>gU,_refine:()=>PS,_regex:()=>Wl,_safeDecode:()=>xp,_safeDecodeAsync:()=>Sp,_safeEncode:()=>yp,_safeEncodeAsync:()=>bp,_safeParse:()=>Zl,_safeParseAsync:()=>Hl,_set:()=>yU,_size:()=>vi,_slugify:()=>os,_startsWith:()=>Yl,_string:()=>rS,_stringFormat:()=>is,_stringbool:()=>jS,_success:()=>TU,_superRefine:()=>NS,_symbol:()=>IS,_templateLiteral:()=>$U,_toLowerCase:()=>rs,_toUpperCase:()=>ns,_transform:()=>wU,_trim:()=>as,_tuple:()=>hU,_uint32:()=>vS,_uint64:()=>_S,_ulid:()=>Jp,_undefined:()=>kS,_union:()=>dU,_unknown:()=>LS,_uppercase:()=>Xl,_url:()=>_c,_uuid:()=>jp,_uuidv4:()=>Bp,_uuidv6:()=>qp,_uuidv7:()=>Zp,_void:()=>ES,_xid:()=>Xp,_xor:()=>fU,clone:()=>xa,config:()=>It,createStandardJSONSchemaMethod:()=>ls,createToJSONSchemaMethod:()=>BS,decode:()=>RN,decodeAsync:()=>NN,describe:()=>US,encode:()=>ON,encodeAsync:()=>PN,extractDefs:()=>Lo,finalize:()=>Ao,flattenError:()=>fc,formatError:()=>pc,globalConfig:()=>nc,globalRegistry:()=>oa,initializeContext:()=>To,isValidBase64:()=>fb,isValidBase64URL:()=>dE,isValidJWT:()=>fE,locales:()=>Sc,meta:()=>FS,parse:()=>fp,parseAsync:()=>pp,prettifyError:()=>Jy,process:()=>qe,regexes:()=>hr,registry:()=>Up,safeDecode:()=>FN,safeDecodeAsync:()=>BN,safeEncode:()=>UN,safeEncodeAsync:()=>jN,safeParse:()=>Xy,safeParseAsync:()=>Ky,toDotPath:()=>GA,toJSONSchema:()=>ss,treeifyError:()=>Wy,util:()=>G,version:()=>Zx});var Py=Object.freeze({status:"aborted"});function D(e,t,a){function n(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:i,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);let u=i.prototype,c=Object.keys(u);for(let d=0;d<c.length;d++){let p=c[d];p in l||(l[p]=u[p].bind(l))}}let r=a?.Parent??Object;class o extends r{}Object.defineProperty(o,"name",{value:e});function i(l){var s;let u=a?.Parent?new o:this;n(u,l),(s=u._zod).deferred??(s.deferred=[]);for(let c of u._zod.deferred)c();return u}return Object.defineProperty(i,"init",{value:n}),Object.defineProperty(i,Symbol.hasInstance,{value:l=>a?.Parent&&l instanceof a.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}var up=Symbol("zod_brand"),$r=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},bo=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},nc={};function It(e){return e&&Object.assign(nc,e),nc}var G={};Tr(G,{BIGINT_FORMAT_RANGES:()=>Gy,Class:()=>Uy,NUMBER_FORMAT_RANGES:()=>Vy,aborted:()=>Io,allowsEval:()=>By,assert:()=>pN,assertEqual:()=>uN,assertIs:()=>dN,assertNever:()=>fN,assertNotEqual:()=>cN,assignProp:()=>wo,base64ToUint8Array:()=>ZA,base64urlToUint8Array:()=>EN,cached:()=>Fl,captureStackTrace:()=>dp,cleanEnum:()=>AN,cleanRegex:()=>lc,clone:()=>xa,cloneDef:()=>hN,createTransparentProxy:()=>SN,defineLazy:()=>Ae,esc:()=>cp,escapeRegex:()=>mr,extend:()=>IN,finalizeIssue:()=>Da,floatSafeRemainder:()=>Fy,getElementAtPath:()=>gN,getEnumValues:()=>ic,getLengthableOrigin:()=>cc,getParsedType:()=>bN,getSizableOrigin:()=>uc,hexToUint8Array:()=>MN,isObject:()=>mi,isPlainObject:()=>_o,issue:()=>jl,joinValues:()=>z,jsonStringifyReplacer:()=>Ul,merge:()=>CN,mergeDefs:()=>Tn,normalizeParams:()=>X,nullish:()=>So,numKeys:()=>xN,objectClone:()=>mN,omit:()=>_N,optionalKeys:()=>Hy,parsedType:()=>V,partial:()=>TN,pick:()=>wN,prefixIssues:()=>Xa,primitiveTypes:()=>Zy,promiseAllObject:()=>vN,propertyKeyTypes:()=>sc,randomString:()=>yN,required:()=>LN,safeExtend:()=>kN,shallowClone:()=>qy,slugify:()=>jy,stringifyPrimitive:()=>Z,uint8ArrayToBase64:()=>HA,uint8ArrayToBase64url:()=>$N,uint8ArrayToHex:()=>DN,unwrapMessage:()=>oc});function uN(e){return e}function cN(e){return e}function dN(e){}function fN(e){throw new Error("Unexpected value in exhaustive check")}function pN(e){}function ic(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,r])=>t.indexOf(+n)===-1).map(([n,r])=>r)}function z(e,t="|"){return e.map(a=>Z(a)).join(t)}function Ul(e,t){return typeof t=="bigint"?t.toString():t}function Fl(e){return{get value(){{let a=e();return Object.defineProperty(this,"value",{value:a}),a}throw new Error("cached value already set")}}}function So(e){return e==null}function lc(e){let t=e.startsWith("^")?1:0,a=e.endsWith("$")?e.length-1:e.length;return e.slice(t,a)}function Fy(e,t){let a=(e.toString().split(".")[1]||"").length,n=t.toString(),r=(n.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(n)){let s=n.match(/\d?e-(\d?)/);s?.[1]&&(r=Number.parseInt(s[1]))}let o=a>r?a:r,i=Number.parseInt(e.toFixed(o).replace(".","")),l=Number.parseInt(t.toFixed(o).replace(".",""));return i%l/10**o}var qA=Symbol("evaluating");function Ae(e,t,a){let n;Object.defineProperty(e,t,{get(){if(n!==qA)return n===void 0&&(n=qA,n=a()),n},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function mN(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function wo(e,t,a){Object.defineProperty(e,t,{value:a,writable:!0,enumerable:!0,configurable:!0})}function Tn(...e){let t={};for(let a of e){let n=Object.getOwnPropertyDescriptors(a);Object.assign(t,n)}return Object.defineProperties({},t)}function hN(e){return Tn(e._zod.def)}function gN(e,t){return t?t.reduce((a,n)=>a?.[n],e):e}function vN(e){let t=Object.keys(e),a=t.map(n=>e[n]);return Promise.all(a).then(n=>{let r={};for(let o=0;o<t.length;o++)r[t[o]]=n[o];return r})}function yN(e=10){let t="abcdefghijklmnopqrstuvwxyz",a="";for(let n=0;n<e;n++)a+=t[Math.floor(Math.random()*t.length)];return a}function cp(e){return JSON.stringify(e)}function jy(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var dp="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function mi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var By=Fl(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function _o(e){if(mi(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let a=t.prototype;return!(mi(a)===!1||Object.prototype.hasOwnProperty.call(a,"isPrototypeOf")===!1)}function qy(e){return _o(e)?{...e}:Array.isArray(e)?[...e]:e}function xN(e){let t=0;for(let a in e)Object.prototype.hasOwnProperty.call(e,a)&&t++;return t}var bN=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},sc=new Set(["string","number","symbol"]),Zy=new Set(["string","number","bigint","boolean","symbol","undefined"]);function mr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function xa(e,t,a){let n=new e._zod.constr(t??e._zod.def);return(!t||a?.parent)&&(n._zod.parent=e),n}function X(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function SN(e){let t;return new Proxy({},{get(a,n,r){return t??(t=e()),Reflect.get(t,n,r)},set(a,n,r,o){return t??(t=e()),Reflect.set(t,n,r,o)},has(a,n){return t??(t=e()),Reflect.has(t,n)},deleteProperty(a,n){return t??(t=e()),Reflect.deleteProperty(t,n)},ownKeys(a){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(a,n){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)},defineProperty(a,n,r){return t??(t=e()),Reflect.defineProperty(t,n,r)}})}function Z(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Hy(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Vy={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Gy={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function wN(e,t){let a=e._zod.def,n=a.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=Tn(e._zod.def,{get shape(){let i={};for(let l in t){if(!(l in a.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(i[l]=a.shape[l])}return wo(this,"shape",i),i},checks:[]});return xa(e,o)}function _N(e,t){let a=e._zod.def,n=a.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=Tn(e._zod.def,{get shape(){let i={...e._zod.def.shape};for(let l in t){if(!(l in a.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete i[l]}return wo(this,"shape",i),i},checks:[]});return xa(e,o)}function IN(e,t){if(!_o(t))throw new Error("Invalid input to extend: expected a plain object");let a=e._zod.def.checks;if(a&&a.length>0){let o=e._zod.def.shape;for(let i in t)if(Object.getOwnPropertyDescriptor(o,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=Tn(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return wo(this,"shape",o),o}});return xa(e,r)}function kN(e,t){if(!_o(t))throw new Error("Invalid input to safeExtend: expected a plain object");let a=Tn(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return wo(this,"shape",n),n}});return xa(e,a)}function CN(e,t){let a=Tn(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return wo(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return xa(e,a)}function TN(e,t,a){let r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let i=Tn(t._zod.def,{get shape(){let l=t._zod.def.shape,s={...l};if(a)for(let u in a){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);a[u]&&(s[u]=e?new e({type:"optional",innerType:l[u]}):l[u])}else for(let u in l)s[u]=e?new e({type:"optional",innerType:l[u]}):l[u];return wo(this,"shape",s),s},checks:[]});return xa(t,i)}function LN(e,t,a){let n=Tn(t._zod.def,{get shape(){let r=t._zod.def.shape,o={...r};if(a)for(let i in a){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);a[i]&&(o[i]=new e({type:"nonoptional",innerType:r[i]}))}else for(let i in r)o[i]=new e({type:"nonoptional",innerType:r[i]});return wo(this,"shape",o),o}});return xa(t,n)}function Io(e,t=0){if(e.aborted===!0)return!0;for(let a=t;a<e.issues.length;a++)if(e.issues[a]?.continue!==!0)return!0;return!1}function Xa(e,t){return t.map(a=>{var n;return(n=a).path??(n.path=[]),a.path.unshift(e),a})}function oc(e){return typeof e=="string"?e:e?.message}function Da(e,t,a){let n={...e,path:e.path??[]};if(!e.message){let r=oc(e.inst?._zod.def?.error?.(e))??oc(t?.error?.(e))??oc(a.customError?.(e))??oc(a.localeError?.(e))??"Invalid input";n.message=r}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function uc(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function cc(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function V(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let a=e;if(a&&Object.getPrototypeOf(a)!==Object.prototype&&"constructor"in a&&a.constructor)return a.constructor.name}}return t}function jl(...e){let[t,a,n]=e;return typeof t=="string"?{message:t,code:"custom",input:a,inst:n}:{...t}}function AN(e){return Object.entries(e).filter(([t,a])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function ZA(e){let t=atob(e),a=new Uint8Array(t.length);for(let n=0;n<t.length;n++)a[n]=t.charCodeAt(n);return a}function HA(e){let t="";for(let a=0;a<e.length;a++)t+=String.fromCharCode(e[a]);return btoa(t)}function EN(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),a="=".repeat((4-t.length%4)%4);return ZA(t+a)}function $N(e){return HA(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function MN(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let a=new Uint8Array(t.length/2);for(let n=0;n<t.length;n+=2)a[n/2]=Number.parseInt(t.slice(n,n+2),16);return a}function DN(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Uy=class{constructor(...t){}};var VA=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Ul,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},dc=D("$ZodError",VA),za=D("$ZodError",VA,{Parent:Error});function fc(e,t=a=>a.message){let a={},n=[];for(let r of e.issues)r.path.length>0?(a[r.path[0]]=a[r.path[0]]||[],a[r.path[0]].push(t(r))):n.push(t(r));return{formErrors:n,fieldErrors:a}}function pc(e,t=a=>a.message){let a={_errors:[]},n=r=>{for(let o of r.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(i=>n({issues:i}));else if(o.code==="invalid_key")n({issues:o.issues});else if(o.code==="invalid_element")n({issues:o.issues});else if(o.path.length===0)a._errors.push(t(o));else{let i=a,l=0;for(;l<o.path.length;){let s=o.path[l];l===o.path.length-1?(i[s]=i[s]||{_errors:[]},i[s]._errors.push(t(o))):i[s]=i[s]||{_errors:[]},i=i[s],l++}}};return n(e),a}function Wy(e,t=a=>a.message){let a={errors:[]},n=(r,o=[])=>{var i,l;for(let s of r.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(u=>n({issues:u},s.path));else if(s.code==="invalid_key")n({issues:s.issues},s.path);else if(s.code==="invalid_element")n({issues:s.issues},s.path);else{let u=[...o,...s.path];if(u.length===0){a.errors.push(t(s));continue}let c=a,d=0;for(;d<u.length;){let p=u[d],f=d===u.length-1;typeof p=="string"?(c.properties??(c.properties={}),(i=c.properties)[p]??(i[p]={errors:[]}),c=c.properties[p]):(c.items??(c.items=[]),(l=c.items)[p]??(l[p]={errors:[]}),c=c.items[p]),f&&c.errors.push(t(s)),d++}}};return n(e),a}function GA(e){let t=[],a=e.map(n=>typeof n=="object"?n.key:n);for(let n of a)typeof n=="number"?t.push(`[${n}]`):typeof n=="symbol"?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&&t.push("."),t.push(n));return t.join("")}function Jy(e){let t=[],a=[...e.issues].sort((n,r)=>(n.path??[]).length-(r.path??[]).length);for(let n of a)t.push(`\u2716 ${n.message}`),n.path?.length&&t.push(` \u2192 at ${GA(n.path)}`);return t.join(`