@pendo/agent 2.283.0 → 2.285.0

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.
@@ -1,4 +1,4 @@
1
- !function(){"use strict";var e,r=(e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),{uint8ToBase64:function(r){var t,a,n,s,i=r.length%3,o="";for(t=0,n=r.length-i;t<n;t+=3)a=(r[t]<<16)+(r[t+1]<<8)+r[t+2],o+=e[(s=a)>>18&63]+e[s>>12&63]+e[s>>6&63]+e[63&s];switch(i){case 1:a=r[r.length-1],o+=e[a>>2],o+=e[a<<4&63];break;case 2:a=(r[r.length-2]<<8)+r[r.length-1],o+=e[a>>10],o+=e[a>>4&63],o+=e[a<<2&63]}return o}});function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var a={exports:{}};
2
1
  /*
3
- * @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License
4
- */(function(){var e=void 0,r=!0,t=this;function a(r,a){var n,s=r.split("."),i=t;!(s[0]in i)&&i.execScript&&i.execScript("var "+s[0]);for(;s.length&&(n=s.shift());)s.length||a===e?i=i[n]?i[n]:i[n]={}:i[n]=a}var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function s(e,r){if(this.index="number"==typeof r?r:0,this.e=0,this.buffer=e instanceof(n?Uint8Array:Array)?e:new(n?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&i(this)}function i(e){var r,t=e.buffer,a=t.length,s=new(n?Uint8Array:Array)(a<<1);if(n)s.set(t);else for(r=0;r<a;++r)s[r]=t[r];return e.buffer=s}s.prototype.b=function(e,r,t){var a,n=this.buffer,s=this.index,o=this.e,h=n[s];if(t&&1<r&&(e=8<r?(l[255&e]<<24|l[e>>>8&255]<<16|l[e>>>16&255]<<8|l[e>>>24&255])>>32-r:l[e]>>8-r),8>r+o)h=h<<r|e,o+=r;else for(a=0;a<r;++a)h=h<<1|e>>r-a-1&1,8==++o&&(o=0,n[s++]=l[h],h=0,s===n.length&&(n=i(this)));n[s]=h,this.buffer=n,this.e=o,this.index=s},s.prototype.finish=function(){var e,r=this.buffer,t=this.index;return 0<this.e&&(r[t]<<=8-this.e,r[t]=l[r[t]],t++),n?e=r.subarray(0,t):(r.length=t,e=r),e};var o,h=new(n?Uint8Array:Array)(256);for(o=0;256>o;++o){for(var f=u=o,c=7,u=u>>>1;u;u>>>=1)f<<=1,f|=1&u,--c;h[o]=(f<<c&255)>>>0}var l=h;function y(e){this.buffer=new(n?Uint16Array:Array)(2*e),this.length=0}function b(e,r){this.d=p,this.i=0,this.input=n&&e instanceof Array?new Uint8Array(e):e,this.c=0,r&&(r.lazy&&(this.i=r.lazy),"number"==typeof r.compressionType&&(this.d=r.compressionType),r.outputBuffer&&(this.a=n&&r.outputBuffer instanceof Array?new Uint8Array(r.outputBuffer):r.outputBuffer),"number"==typeof r.outputIndex&&(this.c=r.outputIndex)),this.a||(this.a=new(n?Uint8Array:Array)(32768))}y.prototype.getParent=function(e){return 2*((e-2)/4|0)},y.prototype.push=function(e,r){var t,a,n,s=this.buffer;for(t=this.length,s[this.length++]=r,s[this.length++]=e;0<t&&(a=this.getParent(t),s[t]>s[a]);)n=s[t],s[t]=s[a],s[a]=n,n=s[t+1],s[t+1]=s[a+1],s[a+1]=n,t=a;return this.length},y.prototype.pop=function(){var e,r,t,a,n,s=this.buffer;for(r=s[0],e=s[1],this.length-=2,s[0]=s[this.length],s[1]=s[this.length+1],n=0;!((a=2*n+2)>=this.length)&&(a+2<this.length&&s[a+2]>s[a]&&(a+=2),s[a]>s[n]);)t=s[n],s[n]=s[a],s[a]=t,t=s[n+1],s[n+1]=s[a+1],s[a+1]=t,n=a;return{index:e,value:r,length:this.length}};var g,p=2,d={NONE:0,h:1,g:p,n:3},A=[];for(g=0;288>g;g++)switch(r){case 143>=g:A.push([g+48,8]);break;case 255>=g:A.push([g-144+400,9]);break;case 279>=g:A.push([g-256+0,7]);break;case 287>=g:A.push([g-280+192,8]);break;default:throw"invalid literal: "+g}function v(e,r){this.length=e,this.k=r}b.prototype.f=function(){var t,a,i,o,h=this.input;switch(this.d){case 0:for(i=0,o=h.length;i<o;){var f,c,u,l=a=n?h.subarray(i,i+65535):h.slice(i,i+65535),y=(i+=a.length)===o,b=e,g=e,d=this.a,v=this.c;if(n){for(d=new Uint8Array(this.a.buffer);d.length<=v+l.length+5;)d=new Uint8Array(d.length<<1);d.set(this.a)}if(f=y?1:0,d[v++]=0|f,u=65536+~(c=l.length)&65535,d[v++]=255&c,d[v++]=c>>>8&255,d[v++]=255&u,d[v++]=u>>>8&255,n)d.set(l,v),v+=l.length,d=d.subarray(0,v);else{for(b=0,g=l.length;b<g;++b)d[v++]=l[b];d.length=v}this.c=v,this.a=d}break;case 1:var w=new s(n?new Uint8Array(this.a.buffer):this.a,this.c);w.b(1,1,r),w.b(1,2,r);var k,m,O,T=U(this,h);for(k=0,m=T.length;k<m;k++)if(O=T[k],s.prototype.b.apply(w,A[O]),256<O)w.b(T[++k],T[++k],r),w.b(T[++k],5),w.b(T[++k],T[++k],r);else if(256===O)break;this.a=w.finish(),this.c=this.a.length;break;case p:var E,M,N,P,S,D,B,C,j,z,R,q,Z,F,J,K=new s(n?new Uint8Array(this.a.buffer):this.a,this.c),L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],_=Array(19);for(E=p,K.b(1,1,r),K.b(E,2,r),M=U(this,h),B=I(D=x(this.m,15)),j=I(C=x(this.l,7)),N=286;257<N&&0===D[N-1];N--);for(P=30;1<P&&0===C[P-1];P--);var G,X,Y,H,Q,V,W=N,$=P,ee=new(n?Uint32Array:Array)(W+$),re=new(n?Uint32Array:Array)(316),te=new(n?Uint8Array:Array)(19);for(G=X=0;G<W;G++)ee[X++]=D[G];for(G=0;G<$;G++)ee[X++]=C[G];if(!n)for(G=0,H=te.length;G<H;++G)te[G]=0;for(G=Q=0,H=ee.length;G<H;G+=X){for(X=1;G+X<H&&ee[G+X]===ee[G];++X);if(Y=X,0===ee[G])if(3>Y)for(;0<Y--;)re[Q++]=0,te[0]++;else for(;0<Y;)(V=138>Y?Y:138)>Y-3&&V<Y&&(V=Y-3),10>=V?(re[Q++]=17,re[Q++]=V-3,te[17]++):(re[Q++]=18,re[Q++]=V-11,te[18]++),Y-=V;else if(re[Q++]=ee[G],te[ee[G]]++,3>--Y)for(;0<Y--;)re[Q++]=ee[G],te[ee[G]]++;else for(;0<Y;)(V=6>Y?Y:6)>Y-3&&V<Y&&(V=Y-3),re[Q++]=16,re[Q++]=V-3,te[16]++,Y-=V}for(t=n?re.subarray(0,Q):re.slice(0,Q),z=x(te,7),F=0;19>F;F++)_[F]=z[L[F]];for(S=19;4<S&&0===_[S-1];S--);for(R=I(z),K.b(N-257,5,r),K.b(P-1,5,r),K.b(S-4,4,r),F=0;F<S;F++)K.b(_[F],3,r);for(F=0,J=t.length;F<J;F++)if(q=t[F],K.b(R[q],z[q],r),16<=q){switch(F++,q){case 16:Z=2;break;case 17:Z=3;break;case 18:Z=7;break;default:throw"invalid code: "+q}K.b(t[F],Z,r)}var ae,ne,se,ie,oe,he,fe,ce,ue=[B,D],le=[j,C];for(oe=ue[0],he=ue[1],fe=le[0],ce=le[1],ae=0,ne=M.length;ae<ne;++ae)if(se=M[ae],K.b(oe[se],he[se],r),256<se)K.b(M[++ae],M[++ae],r),ie=M[++ae],K.b(fe[ie],ce[ie],r),K.b(M[++ae],M[++ae],r);else if(256===se)break;this.a=K.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var w=function(){function e(e){switch(r){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case 12>=e:return[265,e-11,1];case 14>=e:return[266,e-13,1];case 16>=e:return[267,e-15,1];case 18>=e:return[268,e-17,1];case 22>=e:return[269,e-19,2];case 26>=e:return[270,e-23,2];case 30>=e:return[271,e-27,2];case 34>=e:return[272,e-31,2];case 42>=e:return[273,e-35,3];case 50>=e:return[274,e-43,3];case 58>=e:return[275,e-51,3];case 66>=e:return[276,e-59,3];case 82>=e:return[277,e-67,4];case 98>=e:return[278,e-83,4];case 114>=e:return[279,e-99,4];case 130>=e:return[280,e-115,4];case 162>=e:return[281,e-131,5];case 194>=e:return[282,e-163,5];case 226>=e:return[283,e-195,5];case 257>=e:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}var t,a,n=[];for(t=3;258>=t;t++)a=e(t),n[t]=a[2]<<24|a[1]<<16|a[0];return n}(),k=n?new Uint32Array(w):w;function U(t,a){function s(e,t){var a,n,s,i,o=e.k,h=[],f=0;switch(a=k[e.length],h[f++]=65535&a,h[f++]=a>>16&255,h[f++]=a>>24,r){case 1===o:n=[0,o-1,0];break;case 2===o:n=[1,o-2,0];break;case 3===o:n=[2,o-3,0];break;case 4===o:n=[3,o-4,0];break;case 6>=o:n=[4,o-5,1];break;case 8>=o:n=[5,o-7,1];break;case 12>=o:n=[6,o-9,2];break;case 16>=o:n=[7,o-13,2];break;case 24>=o:n=[8,o-17,3];break;case 32>=o:n=[9,o-25,3];break;case 48>=o:n=[10,o-33,4];break;case 64>=o:n=[11,o-49,4];break;case 96>=o:n=[12,o-65,5];break;case 128>=o:n=[13,o-97,5];break;case 192>=o:n=[14,o-129,6];break;case 256>=o:n=[15,o-193,6];break;case 384>=o:n=[16,o-257,7];break;case 512>=o:n=[17,o-385,7];break;case 768>=o:n=[18,o-513,8];break;case 1024>=o:n=[19,o-769,8];break;case 1536>=o:n=[20,o-1025,9];break;case 2048>=o:n=[21,o-1537,9];break;case 3072>=o:n=[22,o-2049,10];break;case 4096>=o:n=[23,o-3073,10];break;case 6144>=o:n=[24,o-4097,11];break;case 8192>=o:n=[25,o-6145,11];break;case 12288>=o:n=[26,o-8193,12];break;case 16384>=o:n=[27,o-12289,12];break;case 24576>=o:n=[28,o-16385,13];break;case 32768>=o:n=[29,o-24577,13];break;default:throw"invalid distance"}for(a=n,h[f++]=a[0],h[f++]=a[1],h[f++]=a[2],s=0,i=h.length;s<i;++s)p[d++]=h[s];v[h[0]]++,w[h[3]]++,A=e.length+t-1,y=null}var i,o,h,f,c,u,l,y,b,g={},p=n?new Uint16Array(2*a.length):[],d=0,A=0,v=new(n?Uint32Array:Array)(286),w=new(n?Uint32Array:Array)(30),U=t.i;if(!n){for(h=0;285>=h;)v[h++]=0;for(h=0;29>=h;)w[h++]=0}for(v[256]=1,i=0,o=a.length;i<o;++i){for(h=c=0,f=3;h<f&&i+h!==o;++h)c=c<<8|a[i+h];if(g[c]===e&&(g[c]=[]),u=g[c],!(0<A--)){for(;0<u.length&&32768<i-u[0];)u.shift();if(i+3>=o){for(y&&s(y,-1),h=0,f=o-i;h<f;++h)b=a[i+h],p[d++]=b,++v[b];break}0<u.length?(l=m(a,i,u),y?y.length<l.length?(b=a[i-1],p[d++]=b,++v[b],s(l,0)):s(y,-1):l.length<U?y=l:s(l,0)):y?s(y,-1):(b=a[i],p[d++]=b,++v[b])}u.push(i)}return p[d++]=256,v[256]++,t.m=v,t.l=w,n?p.subarray(0,d):p}function m(e,r,t){var a,n,s,i,o,h,f=0,c=e.length;i=0,h=t.length;e:for(;i<h;i++){if(a=t[h-i-1],s=3,3<f){for(o=f;3<o;o--)if(e[a+o-1]!==e[r+o-1])continue e;s=f}for(;258>s&&r+s<c&&e[a+s]===e[r+s];)++s;if(s>f&&(n=a,f=s),258===s)break}return new v(f,r-n)}function x(e,r){var t,a,s,i,o,h=e.length,f=new y(572),c=new(n?Uint8Array:Array)(h);if(!n)for(i=0;i<h;i++)c[i]=0;for(i=0;i<h;++i)0<e[i]&&f.push(i,e[i]);if(t=Array(f.length/2),a=new(n?Uint32Array:Array)(f.length/2),1===t.length)return c[f.pop().index]=1,c;for(i=0,o=f.length/2;i<o;++i)t[i]=f.pop(),a[i]=t[i].value;for(s=function(e,r,t){function a(e){var t=b[e][g[e]];t===r?(a(e+1),a(e+1)):--l[t],++g[e]}var s,i,o,h,f,c=new(n?Uint16Array:Array)(t),u=new(n?Uint8Array:Array)(t),l=new(n?Uint8Array:Array)(r),y=Array(t),b=Array(t),g=Array(t),p=(1<<t)-r,d=1<<t-1;for(c[t-1]=r,i=0;i<t;++i)p<d?u[i]=0:(u[i]=1,p-=d),p<<=1,c[t-2-i]=(c[t-1-i]/2|0)+r;for(c[0]=u[0],y[0]=Array(c[0]),b[0]=Array(c[0]),i=1;i<t;++i)c[i]>2*c[i-1]+u[i]&&(c[i]=2*c[i-1]+u[i]),y[i]=Array(c[i]),b[i]=Array(c[i]);for(s=0;s<r;++s)l[s]=t;for(o=0;o<c[t-1];++o)y[t-1][o]=e[o],b[t-1][o]=o;for(s=0;s<t;++s)g[s]=0;for(1===u[t-1]&&(--l[0],++g[t-1]),i=t-2;0<=i;--i){for(h=s=0,f=g[i+1],o=0;o<c[i];o++)(h=y[i+1][f]+y[i+1][f+1])>e[s]?(y[i][o]=h,b[i][o]=r,f+=2):(y[i][o]=e[s],b[i][o]=s,++s);g[i]=0,1===u[i]&&a(i)}return l}(a,a.length,r),i=0,o=t.length;i<o;++i)c[t[i].index]=s[i];return c}function I(e){var r,t,a,s,i=new(n?Uint16Array:Array)(e.length),o=[],h=[],f=0;for(r=0,t=e.length;r<t;r++)o[e[r]]=1+(0|o[e[r]]);for(r=1,t=16;r<=t;r++)h[r]=f,f+=0|o[r],f<<=1;for(r=0,t=e.length;r<t;r++)for(f=h[e[r]],h[e[r]]+=1,a=i[r]=0,s=e[r];a<s;a++)i[r]=i[r]<<1|1&f,f>>>=1;return i}function O(e,r){this.input=e,this.a=new(n?Uint8Array:Array)(32768),this.d=T.g;var t,a={};for(t in!r&&(r={})||"number"!=typeof r.compressionType||(this.d=r.compressionType),r)a[t]=r[t];a.outputBuffer=this.a,this.j=new b(this.input,a)}var T=d;O.prototype.f=function(){var e,r,t,a,s,i=0;switch(s=this.a,e=Math.LOG2E*Math.log(32768)-8<<4|8,s[i++]=e,this.d){case T.NONE:t=0;break;case T.h:t=1;break;case T.g:t=2;break;default:throw Error("unsupported compression type")}r=t<<6|0,s[i++]=r|31-(256*e+r)%31;var o=this.input;if("string"==typeof o){var h,f,c=o.split("");for(h=0,f=c.length;h<f;h++)c[h]=(255&c[h].charCodeAt(0))>>>0;o=c}for(var u,l=1,y=0,b=o.length,g=0;0<b;){b-=u=1024<b?1024:b;do{y+=l+=o[g++]}while(--u);l%=65521,y%=65521}return a=(y<<16|l)>>>0,this.j.c=i,i=(s=this.j.f()).length,n&&((s=new Uint8Array(s.buffer)).length<=i+4&&(this.a=new Uint8Array(s.length+4),this.a.set(s),s=this.a),s=s.subarray(0,i+4)),s[i++]=a>>24&255,s[i++]=a>>16&255,s[i++]=a>>8&255,s[i++]=255&a,s},a("Zlib.Deflate",O),a("Zlib.Deflate.compress",(function(e,r){return new O(e,r).f()})),a("Zlib.Deflate.prototype.compress",O.prototype.f);var E,M,N,P,S={NONE:T.NONE,FIXED:T.h,DYNAMIC:T.g};if(Object.keys)E=Object.keys(S);else for(M in E=[],N=0,S)E[N++]=M;for(N=0,P=E.length;N<P;++N)a("Zlib.Deflate.CompressionType."+(M=E[N]),S[M])}).call(a.exports);var n={Deflate:t(a.exports).Zlib.Deflate},s="base64url";self.onmessage=function(e){try{if(e.data.url&&e.data.payload){var t=e.data,a=t.url,i=t.payload,o=t.shouldCacheResources,h=i.sequence,f=JSON.stringify(i.recordingPayload),c=(new TextEncoder).encode(f).length,u=c>=104857600;if(postMessage({type:"recordingPayloadSize",recordingPayloadSize:c,exceedsPayloadSizeLimit:u}),u)return;if(o){var l=function(e,r){var t=r.match(/https:\/\/[^\s]+?\.(woff|woff2|ttf|otf|eot)\b/g);return{type:"recording",visitorId:e.visitorId,accountId:e.accountId,keyFrame:!1,lastKeyFrame:e.lastKeyFrame,recordingId:e.recordingId,recordingSessionId:e.recordingSessionId,url:e.url,subType:"hostedResources",recordingPayload:[],recordingPayloadMetadata:[],sequence:0,recordingPayloadCount:0,hostedResources:t||[]}}(i,f);l.hostedResources.length&&postMessage({type:"hostedResources",hostedResourcesEvent:l})}i.recordingSize=c;var y=function(e,t){t||(t=s);var a=function(e){for(var r=[],t=0;t<e.length;t++){var a=e.charCodeAt(t);a<128?r.push(a):a<2048?r.push(192|a>>6,128|63&a):a<55296||a>=57344?r.push(224|a>>12,128|a>>6&63,128|63&a):(t++,a=65536+((1023&a)<<10|1023&e.charCodeAt(t)),r.push(240|a>>18,128|a>>12&63,128|a>>6&63,128|63&a))}return r}("string"==typeof e?e:JSON.stringify(e)),i=new n.Deflate(a).compress();return t===s?r.uint8ToBase64(i):i}(i,"binary");a="".concat(a,"&ct=").concat((new Date).getTime()),fetch(a,{method:"POST",body:y}).then((function(e){e.status<200||e.status>=300?postMessage({error:new Error("received status code ".concat(e.status,": ").concat(e.statusText)),status:e.status,sequence:h}):postMessage({sequence:h})}))["catch"]((function(e){postMessage({error:e,sequence:h})}))}}catch(e){postMessage({error:e})}}}();
2
+ @license https://agent.pendo.io/licenses
3
+ */
4
+ !function(){"use strict";i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");var i,t={uint8ToBase64:function(e){var r,t,a,n=e.length%3,s="";for(r=0,a=e.length-n;r<a;r+=3)t=(e[r]<<16)+(e[r+1]<<8)+e[r+2],s+=function(e){return i[e>>18&63]+i[e>>12&63]+i[e>>6&63]+i[63&e]}(t);switch(n){case 1:t=e[e.length-1],s=(s+=i[t>>2])+i[t<<4&63];break;case 2:t=(e[e.length-2]<<8)+e[e.length-1],s=(s=(s+=i[t>>10])+i[t>>4&63])+i[t<<2&63]}return s}};function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var r={exports:{}};!function(){var W=void 0,$=!0,s=this;function e(e,r){var t,a=e.split("."),n=s;a[0]in n||!n.execScript||n.execScript("var "+a[0]);for(;a.length&&(t=a.shift());)a.length||r===W?n=n[t]||(n[t]={}):n[t]=r}var ee="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function re(e,r){if(this.index="number"==typeof r?r:0,this.e=0,this.buffer=e instanceof(ee?Uint8Array:Array)?e:new(ee?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&h(this)}function h(e){var r,t=e.buffer,a=t.length,n=new(ee?Uint8Array:Array)(a<<1);if(ee)n.set(t);else for(r=0;r<a;++r)n[r]=t[r];return e.buffer=n}re.prototype.b=function(e,r,t){var a,n=this.buffer,s=this.index,i=this.e,o=n[s];if(t&&1<r&&(e=8<r?(f[255&e]<<24|f[e>>>8&255]<<16|f[e>>>16&255]<<8|f[e>>>24&255])>>32-r:f[e]>>8-r),r+i<8)o=o<<r|e,i+=r;else for(a=0;a<r;++a)o=o<<1|e>>r-a-1&1,8==++i&&(i=0,n[s++]=f[o],o=0,s===n.length)&&(n=h(this));n[s]=o,this.buffer=n,this.e=i,this.index=s},re.prototype.finish=function(){var e=this.buffer,r=this.index;return 0<this.e&&(e[r]<<=8-this.e,e[r]=f[e[r]],r++),ee?e.subarray(0,r):(e.length=r,e)};for(var r=new(ee?Uint8Array:Array)(256),t=0;t<256;++t){for(var a=i=t,n=7,i=i>>>1;i;i>>>=1)a=a<<1|1&i,--n;r[t]=(a<<n&255)>>>0}var f=r;function c(e){this.buffer=new(ee?Uint16Array:Array)(2*e),this.length=0}function o(e,r){this.d=te,this.i=0,this.input=ee&&e instanceof Array?new Uint8Array(e):e,this.c=0,r&&(r.lazy&&(this.i=r.lazy),"number"==typeof r.compressionType&&(this.d=r.compressionType),r.outputBuffer&&(this.a=ee&&r.outputBuffer instanceof Array?new Uint8Array(r.outputBuffer):r.outputBuffer),"number"==typeof r.outputIndex)&&(this.c=r.outputIndex),this.a||(this.a=new(ee?Uint8Array:Array)(32768))}c.prototype.getParent=function(e){return 2*((e-2)/4|0)},c.prototype.push=function(e,r){var t,a,n=this.buffer,s=this.length;for(n[this.length++]=r,n[this.length++]=e;0<s&&(t=this.getParent(s),n[s]>n[t]);)a=n[s],n[s]=n[t],n[t]=a,a=n[s+1],n[s+1]=n[t+1],n[t+1]=a,s=t;return this.length},c.prototype.pop=function(){var e,r,t,a=this.buffer,n=a[0],s=a[1];for(this.length-=2,a[0]=a[this.length],a[1]=a[this.length+1],t=0;!((r=2*t+2)>=this.length)&&(r+2<this.length&&a[r+2]>a[r]&&(r+=2),a[r]>a[t]);)e=a[t],a[t]=a[r],a[r]=e,e=a[t+1],a[t+1]=a[r+1],a[r+1]=e,t=r;return{index:s,value:n,length:this.length}};for(var te=2,u={NONE:0,h:1,g:te,n:3},ae=[],l=0;l<288;l++)switch($){case l<=143:ae.push([l+48,8]);break;case l<=255:ae.push([l-144+400,9]);break;case l<=279:ae.push([l-256,7]);break;case l<=287:ae.push([l-280+192,8]);break;default:throw"invalid literal: "+l}function v(e,r){this.length=e,this.k=r}o.prototype.f=function(){var e,r,j,t=this.input;switch(this.d){case 0:for(r=0,j=t.length;r<j;){var z,R,a=n=ee?t.subarray(r,r+65535):t.slice(r,r+65535),n=(r+=n.length)===j,s=W,i=this.a,o=this.c;if(ee){for(i=new Uint8Array(this.a.buffer);i.length<=o+a.length+5;)i=new Uint8Array(i.length<<1);i.set(this.a)}if(i[o++]=0|(n?1:0),z=65536+~(n=a.length)&65535,i[o++]=255&n,i[o++]=n>>>8&255,i[o++]=255&z,i[o++]=z>>>8&255,ee)i.set(a,o),o+=a.length,i=i.subarray(0,o);else{for(s=0,R=a.length;s<R;++s)i[o++]=a[s];i.length=o}this.c=o,this.a=i}break;case 1:for(var h,f=new re(ee?new Uint8Array(this.a.buffer):this.a,this.c),c=(f.b(1,1,$),f.b(1,2,$),ne(this,t)),u=0,q=c.length;u<q;u++)if(h=c[u],re.prototype.b.apply(f,ae[h]),256<h)f.b(c[++u],c[++u],$),f.b(c[++u],5),f.b(c[++u],c[++u],$);else if(256===h)break;this.a=f.finish(),this.c=this.a.length;break;case te:var l,y,b,g,p,d,A,Z,v,w,k,F,U=new re(ee?new Uint8Array(this.a.buffer):this.a,this.c),J=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],K=Array(19),m=te;for(U.b(1,1,$),U.b(m,2,$),l=ne(this,t),m=ie(p=se(this.m,15)),B=ie(d=se(this.l,7)),y=286;257<y&&0===p[y-1];y--);for(b=30;1<b&&0===d[b-1];b--);for(var x,I,O,T,E,L=y,_=b,M=new(ee?Uint32Array:Array)(L+_),N=new(ee?Uint32Array:Array)(316),P=new(ee?Uint8Array:Array)(19),S=x=0;S<L;S++)M[x++]=p[S];for(S=0;S<_;S++)M[x++]=d[S];if(!ee)for(S=0,O=P.length;S<O;++S)P[S]=0;for(S=T=0,O=M.length;S<O;S+=x){for(x=1;S+x<O&&M[S+x]===M[S];++x);if(I=x,0===M[S])if(I<3)for(;0<I--;)P[N[T++]=0]++;else for(;0<I;)(E=I-3<(E=I<138?I:138)&&E<I?I-3:E)<=10?(N[T++]=17,N[T++]=E-3,P[17]++):(N[T++]=18,N[T++]=E-11,P[18]++),I-=E;else if(N[T++]=M[S],P[M[S]]++,--I<3)for(;0<I--;)N[T++]=M[S],P[M[S]]++;else for(;0<I;)I-3<(E=I<6?I:6)&&E<I&&(E=I-3),N[T++]=16,N[T++]=E-3,P[16]++,I-=E}for(e=ee?N.subarray(0,T):N.slice(0,T),A=se(P,7),k=0;k<19;k++)K[k]=A[J[k]];for(g=19;4<g&&0===K[g-1];g--);for(Z=ie(A),U.b(y-257,5,$),U.b(b-1,5,$),U.b(g-4,4,$),k=0;k<g;k++)U.b(K[k],3,$);for(k=0,F=e.length;k<F;k++)if(v=e[k],U.b(Z[v],A[v],$),16<=v){switch(k++,v){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+v}U.b(e[k],w,$)}for(var D,G,m=[m,p],B=[B,d],X=m[0],Y=m[1],H=B[0],Q=B[1],C=0,V=l.length;C<V;++C)if(D=l[C],U.b(X[D],Y[D],$),256<D)U.b(l[++C],l[++C],$),G=l[++C],U.b(H[G],Q[G],$),U.b(l[++C],l[++C],$);else if(256===D)break;this.a=U.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var y=function(){for(var e,r=[],t=3;t<=258;t++)e=function(e){switch($){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(t),r[t]=e[2]<<24|e[1]<<16|e[0];return r}(),w=ee?new Uint32Array(y):y;function ne(e,r){function t(e,r){var t,a,n,s=e.k,i=[],o=0,h=w[e.length];switch(i[o++]=65535&h,i[o++]=h>>16&255,i[o++]=h>>24,$){case 1===s:t=[0,s-1,0];break;case 2===s:t=[1,s-2,0];break;case 3===s:t=[2,s-3,0];break;case 4===s:t=[3,s-4,0];break;case s<=6:t=[4,s-5,1];break;case s<=8:t=[5,s-7,1];break;case s<=12:t=[6,s-9,2];break;case s<=16:t=[7,s-13,2];break;case s<=24:t=[8,s-17,3];break;case s<=32:t=[9,s-25,3];break;case s<=48:t=[10,s-33,4];break;case s<=64:t=[11,s-49,4];break;case s<=96:t=[12,s-65,5];break;case s<=128:t=[13,s-97,5];break;case s<=192:t=[14,s-129,6];break;case s<=256:t=[15,s-193,6];break;case s<=384:t=[16,s-257,7];break;case s<=512:t=[17,s-385,7];break;case s<=768:t=[18,s-513,8];break;case s<=1024:t=[19,s-769,8];break;case s<=1536:t=[20,s-1025,9];break;case s<=2048:t=[21,s-1537,9];break;case s<=3072:t=[22,s-2049,10];break;case s<=4096:t=[23,s-3073,10];break;case s<=6144:t=[24,s-4097,11];break;case s<=8192:t=[25,s-6145,11];break;case s<=12288:t=[26,s-8193,12];break;case s<=16384:t=[27,s-12289,12];break;case s<=24576:t=[28,s-16385,13];break;case s<=32768:t=[29,s-24577,13];break;default:throw"invalid distance"}for(h=t,i[o++]=h[0],i[+o]=h[1],i[5]=h[2],a=0,n=i.length;a<n;++a)y[b++]=i[a];p[i[0]]++,d[i[3]]++,g=e.length+r-1,c=null}var a,n,s,i,o,h,f,c,u,l={},y=ee?new Uint16Array(2*r.length):[],b=0,g=0,p=new(ee?Uint32Array:Array)(286),d=new(ee?Uint32Array:Array)(30),A=e.i;if(!ee){for(s=0;s<=285;)p[s++]=0;for(s=0;s<=29;)d[s++]=0}for(p[256]=1,a=0,n=r.length;a<n;++a){for(s=o=0,i=3;s<i&&a+s!==n;++s)o=o<<8|r[a+s];if(l[o]===W&&(l[o]=[]),h=l[o],!(0<g--)){for(;0<h.length&&32768<a-h[0];)h.shift();if(n<=a+3){for(c&&t(c,-1),s=0,i=n-a;s<i;++s)u=r[a+s],y[b++]=u,++p[u];break}0<h.length?(f=function(e,r,t){var a,n,s,i,o,h,f=0,c=e.length;i=0,h=t.length;e:for(;i<h;i++){if(a=t[h-i-1],(s=3)<f){for(o=f;3<o;o--)if(e[a+o-1]!==e[r+o-1])continue e;s=f}for(;s<258&&r+s<c&&e[a+s]===e[r+s];)++s;if(f<s&&(n=a,f=s),258===s)break}return new v(f,r-n)}(r,a,h),c?c.length<f.length?(u=r[a-1],y[b++]=u,++p[u],t(f,0)):t(c,-1):f.length<A?c=f:t(f,0)):c?t(c,-1):(u=r[a],y[b++]=u,++p[u])}h.push(a)}return y[b++]=256,p[256]++,e.m=p,e.l=d,ee?y.subarray(0,b):y}function se(e,r){var t,a,n,s,i,o=e.length,h=new c(572),f=new(ee?Uint8Array:Array)(o);if(!ee)for(s=0;s<o;s++)f[s]=0;for(s=0;s<o;++s)0<e[s]&&h.push(s,e[s]);if(t=Array(h.length/2),a=new(ee?Uint32Array:Array)(h.length/2),1===t.length)f[h.pop().index]=1;else{for(s=0,i=h.length/2;s<i;++s)t[s]=h.pop(),a[s]=t[s].value;for(n=function(e,t,r){var a,n,s,i,o,h=new(ee?Uint16Array:Array)(r),f=new(ee?Uint8Array:Array)(r),c=new(ee?Uint8Array:Array)(t),u=Array(r),l=Array(r),y=Array(r),b=(1<<r)-t,g=1<<r-1;for(h[r-1]=t,n=0;n<r;++n)b<g?f[n]=0:(f[n]=1,b-=g),b<<=1,h[r-2-n]=(h[r-1-n]/2|0)+t;for(h[0]=f[0],u[0]=Array(h[0]),l[0]=Array(h[0]),n=1;n<r;++n)h[n]>2*h[n-1]+f[n]&&(h[n]=2*h[n-1]+f[n]),u[n]=Array(h[n]),l[n]=Array(h[n]);for(a=0;a<t;++a)c[a]=r;for(s=0;s<h[r-1];++s)u[r-1][s]=e[s],l[r-1][s]=s;for(a=0;a<r;++a)y[a]=0;for(1===f[r-1]&&(--c[0],++y[r-1]),n=r-2;0<=n;--n){for(i=a=0,o=y[n+1],s=0;s<h[n];s++)(i=u[n+1][o]+u[n+1][o+1])>e[a]?(u[n][s]=i,l[n][s]=t,o+=2):(u[n][s]=e[a],l[n][s]=a,++a);y[n]=0,1===f[n]&&function p(e){var r=l[e][y[e]];r===t?(p(e+1),p(e+1)):--c[r],++y[e]}(n)}return c}(a,a.length,r),s=0,i=t.length;s<i;++s)f[t[s].index]=n[s]}return f}function ie(e){for(var r,t,a=new(ee?Uint16Array:Array)(e.length),n=[],s=[],i=0,o=0,h=e.length;o<h;o++)n[e[o]]=1+(0|n[e[o]]);for(o=1,h=16;o<=h;o++)i=(s[o]=i)+(0|n[o])<<1;for(o=0,h=e.length;o<h;o++)for(i=s[e[o]],s[e[o]]+=1,r=a[o]=0,t=e[o];r<t;r++)a[o]=a[o]<<1|1&i,i>>>=1;return a}function b(e,r){this.input=e,this.a=new(ee?Uint8Array:Array)(32768),this.d=k.g;var t,a={};for(t in(r?"number"==typeof r.compressionType:(r={},0))&&(this.d=r.compressionType),r)a[t]=r[t];a.outputBuffer=this.a,this.j=new o(this.input,a)}var g,p,d,A,k=u,U=(b.prototype.f=function(){var e,r,t=0,a=this.a,n=Math.LOG2E*Math.log(32768)-8<<4|8;switch(a[t++]=n,8,this.d){case k.NONE:r=0;break;case k.h:r=1;break;case k.g:r=2;break;default:throw Error("unsupported compression type")}a[+t]=(e=r<<6|0)|31-(256*n+e)%31;var s=this.input;if("string"==typeof s){for(var i=s.split(""),o=0,h=i.length;o<h;o++)i[o]=(255&i[o].charCodeAt(0))>>>0;s=i}for(var f,c=1,u=0,l=s.length,y=0;0<l;){for(l-=f=1024<l?1024:l;u+=c+=s[y++],--f;);c%=65521,u%=65521}return n=(u<<16|c)>>>0,this.j.c=2,t=(a=this.j.f()).length,ee&&((a=new Uint8Array(a.buffer)).length<=t+4&&(this.a=new Uint8Array(a.length+4),this.a.set(a),a=this.a),a=a.subarray(0,t+4)),a[t++]=n>>24&255,a[t++]=n>>16&255,a[t++]=n>>8&255,a[+t]=255&n,a},e("Zlib.Deflate",b),e("Zlib.Deflate.compress",function(e,r){return new b(e,r).f()}),e("Zlib.Deflate.prototype.compress",b.prototype.f),{NONE:k.NONE,FIXED:k.h,DYNAMIC:k.g});if(Object.keys)g=Object.keys(U);else for(p in g=[],d=0,U)g[d++]=p;for(d=0,A=g.length;d<A;++d)e("Zlib.Deflate.CompressionType."+(p=g[d]),U[p])}.call(r.exports);var a={Deflate:e(r.exports).Zlib.Deflate},n="base64url";function y(e,r){r=r||n;e=function(e){for(var r=[],t=0;t<e.length;t++){var a=e.charCodeAt(t);a<128?r.push(a):a<2048?r.push(192|a>>6,128|63&a):a<55296||57344<=a?r.push(224|a>>12,128|a>>6&63,128|63&a):(t++,a=65536+((1023&a)<<10|1023&e.charCodeAt(t)),r.push(240|a>>18,128|a>>12&63,128|a>>6&63,128|63&a))}return r}("string"==typeof e?e:JSON.stringify(e)),e=new a.Deflate(e).compress();return r===n?t.uint8ToBase64(e):e}self.onmessage=function(e){try{var r,t,a,n,s,i,o,h,f,c;e.data.url&&e.data.payload&&(c=(r=e.data).url,t=r.payload,a=r.shouldCacheResources,n=t.sequence,s=JSON.stringify(t.recordingPayload),o=104857600<=(i=(new TextEncoder).encode(s).length),postMessage({type:"recordingPayloadSize",recordingPayloadSize:i,exceedsPayloadSizeLimit:o}),o||(a&&(u=t,l=(l=s).match(/https:\/\/[^\s]+?\.(woff|woff2|ttf|otf|eot)\b/g),(h={type:"recording",visitorId:u.visitorId,accountId:u.accountId,keyFrame:!1,lastKeyFrame:u.lastKeyFrame,recordingId:u.recordingId,recordingSessionId:u.recordingSessionId,url:u.url,subType:"hostedResources",recordingPayload:[],recordingPayloadMetadata:[],sequence:0,recordingPayloadCount:0,hostedResources:l||[]}).hostedResources.length)&&postMessage({type:"hostedResources",hostedResourcesEvent:h}),t.recordingSize=i,f=y(t,"binary"),c="".concat(c,"&ct=").concat((new Date).getTime()),fetch(c,{method:"POST",body:f}).then(function(e){e.status<200||300<=e.status?postMessage({error:new Error("received status code ".concat(e.status,": ").concat(e.statusText)),status:e.status,sequence:n}):postMessage({sequence:n})})["catch"](function(e){postMessage({error:e,sequence:n})})))}catch(e){postMessage({error:e})}var u,l}}();
package/package.json CHANGED
@@ -12,5 +12,5 @@
12
12
  "engines": {
13
13
  "node": ">=12"
14
14
  },
15
- "version": "2.283.0"
15
+ "version": "2.285.0"
16
16
  }