perf-cascade
Advanced tools
Comparing version 2.1.1 to 2.2.0
@@ -1,3 +0,3 @@ | ||
/*! github.com/micmro/PerfCascade Version:2.1.1 (26/06/2017) */ | ||
/*! github.com/micmro/PerfCascade Version:2.2.0 (21/10/2017) */ | ||
!function(e){"use strict";function t(){this.crc=-1}function i(){}function n(e,t,i){if(t<0||i<0||t+i>e.size)throw new RangeError("offset:"+t+", length:"+i+", size:"+e.size);return e.slice?e.slice(t,t+i):e.webkitSlice?e.webkitSlice(t,t+i):e.mozSlice?e.mozSlice(t,t+i):e.msSlice?e.msSlice(t,t+i):void 0}function r(e,t){var i,n;return i=new ArrayBuffer(e),n=new Uint8Array(i),t&&n.set(t,0),{buffer:i,array:n,view:new DataView(i)}}function a(){}function o(e){var t,i=this;i.size=0,i.init=function(n,r){var a=new Blob([e],{type:j});(t=new f(a)).init(function(){i.size=t.size,n()},r)},i.readUint8Array=function(e,i,n,r){t.readUint8Array(e,i,n,r)}}function s(t){var i,n=this;n.size=0,n.init=function(e){for(var r=t.length;"="==t.charAt(r-1);)r--;i=t.indexOf(",")+1,n.size=Math.floor(.75*(r-i)),e()},n.readUint8Array=function(n,a,o){var s,f=r(a),l=4*Math.floor(n/3),d=4*Math.ceil((n+a)/3),u=e.atob(t.substring(l+i,d+i)),_=n-3*Math.floor(l/4);for(s=_;s<_+a;s++)f.array[s-_]=u.charCodeAt(s);o(f.array)}}function f(e){var t=this;t.size=0,t.init=function(i){t.size=e.size,i()},t.readUint8Array=function(t,i,r,a){var o=new FileReader;o.onload=function(e){r(new Uint8Array(e.target.result))},o.onerror=a;try{o.readAsArrayBuffer(n(e,t,i))}catch(e){a(e)}}}function l(){}function d(e){var t,i=this;i.init=function(e){t=new Blob([],{type:j}),e()},i.writeUint8Array=function(e,i){t=new Blob([t,F?e:e.buffer],{type:j}),i()},i.getData=function(i,n){var r=new FileReader;r.onload=function(e){i(e.target.result)},r.onerror=n,r.readAsText(t,e)}}function u(t){var i=this,n="",r="";i.init=function(e){n+="data:"+(t||"")+";base64,",e()},i.writeUint8Array=function(t,i){var a,o=r.length,s=r;for(r="",a=0;a<3*Math.floor((o+t.length)/3)-o;a++)s+=String.fromCharCode(t[a]);for(;a<t.length;a++)r+=String.fromCharCode(t[a]);s.length>2?n+=e.btoa(s):r=s,i()},i.getData=function(t){t(n+e.btoa(r))}}function _(e){var t,i=this;i.init=function(i){t=new Blob([],{type:e}),i()},i.writeUint8Array=function(i,n){t=new Blob([t,F?i:i.buffer],{type:e}),n()},i.getData=function(e){e(t)}}function c(e,t,i,n,r,a,o,s,f,l){function d(){e.removeEventListener("message",u,!1),s(w,b)}function u(t){var i=t.data,r=i.data,s=i.error;if(s)return s.toString=function(){return"Error: "+this.message},void f(s);if(i.sn===x)switch("number"==typeof i.codecTime&&(e.codecTime+=i.codecTime),"number"==typeof i.crcTime&&(e.crcTime+=i.crcTime),i.type){case"append":r?(w+=r.length,n.writeUint8Array(r,function(){_()},l)):_();break;case"flush":b=i.crc,r?(w+=r.length,n.writeUint8Array(r,function(){d()},l)):d();break;case"progress":o&&o(c+i.loaded,a);break;case"importScripts":case"newTask":case"echo":break;default:console.warn("zip.js:launchWorkerProcess: unknown message: ",i)}}function _(){(c=v*P)<=a?i.readUint8Array(r+c,Math.min(P,a-c),function(i){o&&o(c,a);var n=0===c?t:{sn:x};n.type="append",n.data=i;try{e.postMessage(n,[i.buffer])}catch(t){e.postMessage(n)}v++},f):e.postMessage({sn:x,type:"flush"})}var c,w,b,v=0,x=t.sn;w=0,e.addEventListener("message",u,!1),_()}function w(e,i,n,r,a,o,s,f,l,d){function u(){var t;if((_=c*P)<a)i.readUint8Array(r+_,Math.min(P,a-_),function(t){var i;try{i=e.append(t,function(e){s&&s(_+e,a)})}catch(e){return void l(e)}i?(w+=i.length,n.writeUint8Array(i,function(){c++,setTimeout(u,1)},d),v&&x.append(i)):(c++,setTimeout(u,1)),b&&x.append(t),s&&s(_,a)},l);else{try{t=e.flush()}catch(e){return void l(e)}t?(v&&x.append(t),w+=t.length,n.writeUint8Array(t,function(){f(w,x.get())},d)):f(w,x.get())}}var _,c=0,w=0,b="input"===o,v="output"===o,x=new t;u()}function b(t,i,n,r,a,o,s,f,l,d,u){var _=s?"output":"none";e.zip.useWebWorkers?c(t,{sn:i,codecClass:"Inflater",crcType:_},n,r,a,o,l,f,d,u):w(new e.zip.Inflater,n,r,a,o,_,l,f,d,u)}function v(t,i,n,r,a,o,s,f,l){e.zip.useWebWorkers?c(t,{sn:i,options:{level:a},codecClass:"Deflater",crcType:"input"},n,r,0,n.size,s,o,f,l):w(new e.zip.Deflater,n,r,0,n.size,"input",s,o,f,l)}function x(t,n,r,a,o,s,f,l,d,u,_){e.zip.useWebWorkers&&f?c(t,{sn:n,codecClass:"NOOP",crcType:"input"},r,a,o,s,d,l,u,_):w(new i,r,a,o,s,"input",d,l,u,_)}function h(e){var t,i,n="",r=["Ç","ü","é","â","ä","à","å","ç","ê","ë","è","ï","î","ì","Ä","Å","É","æ","Æ","ô","ö","ò","û","ù","ÿ","Ö","Ü","ø","£","Ø","×","ƒ","á","í","ó","ú","ñ","Ñ","ª","º","¿","®","¬","½","¼","¡","«","»","_","_","_","¦","¦","Á","Â","À","©","¦","¦","+","+","¢","¥","+","+","-","-","+","-","+","ã","Ã","+","+","-","-","¦","-","+","¤","ð","Ð","Ê","Ë","È","i","Í","Î","Ï","+","+","_","_","¦","Ì","_","Ó","ß","Ô","Ò","õ","Õ","µ","þ","Þ","Ú","Û","Ù","ý","Ý","¯","´","","±","_","¾","¶","§","÷","¸","°","¨","·","¹","³","²","_"," "];for(t=0;t<e.length;t++)n+=(i=255&e.charCodeAt(t))>127?r[i-128]:String.fromCharCode(i);return n}function p(e){return decodeURIComponent(escape(e))}function y(e){var t,i="";for(t=0;t<e.length;t++)i+=String.fromCharCode(e[t]);return i}function m(e){var t=(4294901760&e)>>16,i=65535&e;try{return new Date(1980+((65024&t)>>9),((480&t)>>5)-1,31&t,(63488&i)>>11,(2016&i)>>5,2*(31&i),0)}catch(e){}}function g(e,t,i,n,r){e.version=t.view.getUint16(i,!0),e.bitFlag=t.view.getUint16(i+2,!0),e.compressionMethod=t.view.getUint16(i+4,!0),e.lastModDateRaw=t.view.getUint32(i+6,!0),e.lastModDate=m(e.lastModDateRaw),1!=(1&e.bitFlag)?((n||8!=(8&e.bitFlag))&&(e.crc32=t.view.getUint32(i+10,!0),e.compressedSize=t.view.getUint32(i+14,!0),e.uncompressedSize=t.view.getUint32(i+18,!0)),4294967295!==e.compressedSize&&4294967295!==e.uncompressedSize?(e.filenameLength=t.view.getUint16(i+22,!0),e.extraFieldLength=t.view.getUint16(i+24,!0)):r(C)):r(W)}function k(t,i,n){function a(){}function o(e){function i(i,a){t.readUint8Array(t.size-i,i,function(t){for(var i=t.length-r;i>=0;i--)if(80===t[i]&&75===t[i+1]&&5===t[i+2]&&6===t[i+3])return void e(new DataView(t.buffer,i,r));a()},function(){n(R)})}var r=22;if(t.size<r)n(L);else{var a=r+65536;i(r,function(){i(Math.min(a,t.size),function(){n(L)})})}}var s=0;a.prototype.getData=function(e,i,a,o){function f(e){var t=r(4);return t.view.setUint32(0,e),_.crc32==t.view.getUint32(0)}function l(t,r){o&&!f(r)?n(M):e.getData(function(e){i(e)})}function d(e){n(e||B)}function u(e){n(e||I)}var _=this;t.readUint8Array(_.offset,30,function(i){var f,c=r(i.length,i);1347093252==c.view.getUint32(0)?(g(_,c,4,!1,n),f=_.offset+30+_.filenameLength+_.extraFieldLength,e.init(function(){0===_.compressionMethod?x(_._worker,s++,t,e,f,_.compressedSize,o,l,a,d,u):b(_._worker,s++,t,e,f,_.compressedSize,o,l,a,d,u)},u)):n(L)},d)};var f={getEntries:function(e){var i=this._worker;o(function(o){var s,f;s=o.getUint32(16,!0),f=o.getUint16(8,!0),s<0||s>=t.size?n(L):t.readUint8Array(s,t.size-s,function(t){var o,s,l,d,u=0,_=[],c=r(t.length,t);for(o=0;o<f;o++){if(s=new a,s._worker=i,1347092738!=c.view.getUint32(u))return void n(L);g(s,c,u+6,!0,n),s.commentLength=c.view.getUint16(u+32,!0),s.directory=16==(16&c.view.getUint8(u+38)),s.offset=c.view.getUint32(u+42,!0),l=y(c.array.subarray(u+46,u+46+s.filenameLength)),s.filename=2048==(2048&s.bitFlag)?p(l):h(l),s.directory||"/"!=s.filename.charAt(s.filename.length-1)||(s.directory=!0),d=y(c.array.subarray(u+46+s.filenameLength+s.extraFieldLength,u+46+s.filenameLength+s.extraFieldLength+s.commentLength)),s.comment=2048==(2048&s.bitFlag)?p(d):h(d),_.push(s),u+=46+s.filenameLength+s.extraFieldLength+s.commentLength}e(_)},function(){n(R)})})},close:function(e){this._worker&&(this._worker.terminate(),this._worker=null),e&&e()},_worker:null};e.zip.useWebWorkers?E("inflater",function(e){f._worker=e,i(f)},function(e){n(e)}):i(f)}function U(e){return unescape(encodeURIComponent(e))}function z(e){var t,i=[];for(t=0;t<e.length;t++)i.push(e.charCodeAt(t));return i}function A(t,i,n,a){function o(e){n(e||T)}function s(e){n(e||B)}var f={},l=[],d=0,u=0,_={add:function(e,i,_,c,w){function b(i){var n;g=w.lastModDate||new Date,y=r(26),f[e]={headerArray:y.array,directory:w.directory,filename:m,offset:d,comment:z(U(w.comment||""))},y.view.setUint32(0,335546376),w.version&&y.view.setUint8(0,w.version),a||0===w.level||w.directory||y.view.setUint16(4,2048),y.view.setUint16(6,(g.getHours()<<6|g.getMinutes())<<5|g.getSeconds()/2,!0),y.view.setUint16(8,(g.getFullYear()-1980<<4|g.getMonth()+1)<<5|g.getDate(),!0),y.view.setUint16(22,m.length,!0),(n=r(30+m.length)).view.setUint32(0,1347093252),n.array.set(y.array,4),n.array.set(m,30),d+=n.array.length,t.writeUint8Array(n.array,i,o)}function h(e,n){var a=r(16);d+=e||0,a.view.setUint32(0,1347094280),void 0!==n&&(y.view.setUint32(10,n,!0),a.view.setUint32(4,n,!0)),i&&(a.view.setUint32(8,e,!0),y.view.setUint32(14,e,!0),a.view.setUint32(12,i.size,!0),y.view.setUint32(18,i.size,!0)),t.writeUint8Array(a.array,function(){d+=16,_()},o)}function p(){w=w||{},e=e.trim(),w.directory&&"/"!=e.charAt(e.length-1)&&(e+="/"),f.hasOwnProperty(e)?n(O):(m=z(U(e)),l.push(e),b(function(){i?a||0===w.level?x(k,u++,i,t,0,i.size,!0,h,c,s,o):v(k,u++,i,t,w.level,h,c,s,o):h()},o))}var y,m,g,k=this._worker;i?i.init(p,s):p()},close:function(e){this._worker&&(this._worker.terminate(),this._worker=null);var i,n,a,s=0,u=0;for(n=0;n<l.length;n++)s+=46+(a=f[l[n]]).filename.length+a.comment.length;for(i=r(s+22),n=0;n<l.length;n++)a=f[l[n]],i.view.setUint32(u,1347092738),i.view.setUint16(u+4,5120),i.array.set(a.headerArray,u+6),i.view.setUint16(u+32,a.comment.length,!0),a.directory&&i.view.setUint8(u+38,16),i.view.setUint32(u+42,a.offset,!0),i.array.set(a.filename,u+46),i.array.set(a.comment,u+46+a.filename.length),u+=46+a.filename.length+a.comment.length;i.view.setUint32(u,1347093766),i.view.setUint16(u+8,l.length,!0),i.view.setUint16(u+10,l.length,!0),i.view.setUint32(u+12,s,!0),i.view.setUint32(u+16,d,!0),t.writeUint8Array(i.array,function(){t.getData(e)},o)},_worker:null};e.zip.useWebWorkers?E("deflater",function(e){_._worker=e,i(_)},function(e){n(e)}):i(_)}function S(e){var t=document.createElement("a");return e.map(function(e){return t.href=e,t.href})}function E(t,i,n){function r(e){var t=e.data;if(t.error)return s.terminate(),void n(t.error);"importScripts"===t.type&&(s.removeEventListener("message",r),s.removeEventListener("error",a),i(s))}function a(e){s.terminate(),n(e)}if(null===e.zip.workerScripts||null===e.zip.workerScriptsPath){var o;if(e.zip.workerScripts){if(o=e.zip.workerScripts[t],!Array.isArray(o))return void n(new Error("zip.workerScripts."+t+" is not an array!"));o=S(o)}else(o=q[t].slice(0))[0]=(e.zip.workerScriptsPath||"")+o[0];var s=new Worker(o[0]);s.codecTime=s.crcTime=0,s.postMessage({type:"importScripts",scripts:o.slice(1)}),s.addEventListener("message",r),s.addEventListener("error",a)}else n(new Error("Either zip.workerScripts or zip.workerScriptsPath may be set, not both."))}function D(e){console.error(e)}var F,L="File format is not recognized.",M="CRC failed.",W="File contains encrypted entry.",C="File is using Zip64 (4gb+ file size).",R="Error while reading zip file.",T="Error while writing zip file.",I="Error while writing file data.",B="Error while reading file data.",O="File already exists.",P=524288,j="text/plain";try{F=0===new Blob([new DataView(new ArrayBuffer(0))]).size}catch(e){}t.prototype.append=function(e){for(var t=0|this.crc,i=this.table,n=0,r=0|e.length;n<r;n++)t=t>>>8^i[255&(t^e[n])];this.crc=t},t.prototype.get=function(){return~this.crc},t.prototype.table=function(){var e,t,i,n=[];for(e=0;e<256;e++){for(i=e,t=0;t<8;t++)1&i?i=i>>>1^3988292384:i>>>=1;n[e]=i}return n}(),i.prototype.append=function(e,t){return e},i.prototype.flush=function(){},(o.prototype=new a).constructor=o,(s.prototype=new a).constructor=s,(f.prototype=new a).constructor=f,l.prototype.getData=function(e){e(this.data)},(d.prototype=new l).constructor=d,(u.prototype=new l).constructor=u,(_.prototype=new l).constructor=_;var q={deflater:["z-worker.js","deflate.js"],inflater:["z-worker.js","inflate.js"]};e.zip={Reader:a,Writer:l,BlobReader:f,Data64URIReader:s,TextReader:o,BlobWriter:_,Data64URIWriter:u,TextWriter:d,createReader:function(e,t,i){i=i||D,e.init(function(){k(e,t,i)},i)},createWriter:function(e,t,i,n){i=i||D,n=!!n,e.init(function(){A(e,t,i,n)},i)},useWebWorkers:!0,workerScriptsPath:null,workerScripts:null}}(this),function(e){"use strict";function t(){function e(e,t,i,n,l,u,c,b,v,x,h){var p,y,m,g,U,z,A,S,E,D,F,L,M,W,C;D=0,U=i;do{r[e[t+D]]++,D++,U--}while(0!==U);if(r[0]==i)return c[0]=-1,b[0]=0,o;for(S=b[0],z=1;z<=k&&0===r[z];z++);for(A=z,S<z&&(S=z),U=k;0!==U&&0===r[U];U--);for(m=U,S>U&&(S=U),b[0]=S,W=1<<z;z<U;z++,W<<=1)if((W-=r[z])<0)return d;if((W-=r[U])<0)return d;for(r[U]+=W,f[1]=z=0,D=1,M=2;0!=--U;)f[M]=z+=r[D],M++,D++;U=0,D=0;do{0!==(z=e[t+D])&&(h[f[z]++]=U),D++}while(++U<i);for(i=f[m],f[0]=U=0,D=0,g=-1,L=-S,s[0]=0,F=0,C=0;A<=m;A++)for(p=r[A];0!=p--;){for(;A>L+S;){if(g++,L+=S,C=m-L,C=C>S?S:C,(y=1<<(z=A-L))>p+1&&(y-=p+1,M=A,z<C))for(;++z<C&&!((y<<=1)<=r[++M]);)y-=r[M];if(C=1<<z,x[0]+C>w)return d;s[g]=F=x[0],x[0]+=C,0!==g?(f[g]=U,a[0]=z,a[1]=S,z=U>>>L-S,a[2]=F-s[g-1]-z,v.set(a,3*(s[g-1]+z))):c[0]=F}for(a[1]=A-L,D>=i?a[0]=192:h[D]<n?(a[0]=h[D]<256?0:96,a[2]=h[D++]):(a[0]=u[h[D]-n]+16+64,a[2]=l[h[D++]-n]),y=1<<A-L,z=U>>>L;z<C;z+=y)v.set(a,3*(F+z));for(z=1<<A-1;0!=(U&z);z>>>=1)U^=z;for(U^=z,E=(1<<L)-1;(U&E)!=f[g];)g--,E=(1<<(L-=S))-1}return 0!==W&&1!=m?_:o}function t(e){var t;for(i||(i=[],n=[],r=new Int32Array(k+1),a=[],s=new Int32Array(k),f=new Int32Array(k+1)),n.length<e&&(n=[]),t=0;t<e;t++)n[t]=0;for(t=0;t<k+1;t++)r[t]=0;for(t=0;t<3;t++)a[t]=0;s.set(r.subarray(0,k),0),f.set(r.subarray(0,k+1),0)}var i,n,r,a,s,f,l=this;l.inflate_trees_bits=function(r,a,o,s,f){var l;return t(19),i[0]=0,l=e(r,0,19,19,null,null,o,a,s,i,n),l==d?f.msg="oversubscribed dynamic bit lengths tree":l!=_&&0!==a[0]||(f.msg="incomplete dynamic bit lengths tree",l=d),l},l.inflate_trees_dynamic=function(r,a,s,f,l,c,w,b,v){var x;return t(288),i[0]=0,(x=e(s,0,r,257,p,y,c,f,b,i,n))!=o||0===f[0]?(x==d?v.msg="oversubscribed literal/length tree":x!=u&&(v.msg="incomplete literal/length tree",x=d),x):(t(288),x=e(s,r,a,0,m,g,w,l,b,i,n),x!=o||0===l[0]&&r>257?(x==d?v.msg="oversubscribed distance tree":x==_?(v.msg="incomplete distance tree",x=d):x!=u&&(v.msg="empty distance tree with lengths",x=d),x):o)}}function i(){function e(e,t,i,n,r,a,f,l){var u,_,w,b,v,x,h,p,y,m,g,k,U,z,A,S;h=l.next_in_index,p=l.avail_in,v=f.bitb,x=f.bitk,m=(y=f.write)<f.read?f.read-y-1:f.end-y,g=c[e],k=c[t];do{for(;x<20;)p--,v|=(255&l.read_byte(h++))<<x,x+=8;if(u=v&g,_=i,w=n,S=3*(w+u),0!==(b=_[S]))for(;;){if(v>>=_[S+1],x-=_[S+1],0!=(16&b)){for(b&=15,U=_[S+2]+(v&c[b]),v>>=b,x-=b;x<15;)p--,v|=(255&l.read_byte(h++))<<x,x+=8;for(b=(_=r)[S=3*((w=a)+(u=v&k))];;){if(v>>=_[S+1],x-=_[S+1],0!=(16&b)){for(b&=15;x<b;)p--,v|=(255&l.read_byte(h++))<<x,x+=8;if(z=_[S+2]+(v&c[b]),v>>=b,x-=b,m-=U,y>=z)y-(A=y-z)>0&&2>y-A?(f.window[y++]=f.window[A++],f.window[y++]=f.window[A++],U-=2):(f.window.set(f.window.subarray(A,A+2),y),y+=2,A+=2,U-=2);else{A=y-z;do{A+=f.end}while(A<0);if(b=f.end-A,U>b){if(U-=b,y-A>0&&b>y-A)do{f.window[y++]=f.window[A++]}while(0!=--b);else f.window.set(f.window.subarray(A,A+b),y),y+=b,A+=b,b=0;A=0}}if(y-A>0&&U>y-A)do{f.window[y++]=f.window[A++]}while(0!=--U);else f.window.set(f.window.subarray(A,A+U),y),y+=U,A+=U,U=0;break}if(0!=(64&b))return l.msg="invalid distance code",U=l.avail_in-p,U=x>>3<U?x>>3:U,p+=U,h-=U,x-=U<<3,f.bitb=v,f.bitk=x,l.avail_in=p,l.total_in+=h-l.next_in_index,l.next_in_index=h,f.write=y,d;u+=_[S+2],b=_[S=3*(w+(u+=v&c[b]))]}break}if(0!=(64&b))return 0!=(32&b)?(U=l.avail_in-p,U=x>>3<U?x>>3:U,p+=U,h-=U,x-=U<<3,f.bitb=v,f.bitk=x,l.avail_in=p,l.total_in+=h-l.next_in_index,l.next_in_index=h,f.write=y,s):(l.msg="invalid literal/length code",U=l.avail_in-p,U=x>>3<U?x>>3:U,p+=U,h-=U,x-=U<<3,f.bitb=v,f.bitk=x,l.avail_in=p,l.total_in+=h-l.next_in_index,l.next_in_index=h,f.write=y,d);if(u+=_[S+2],u+=v&c[b],S=3*(w+u),0===(b=_[S])){v>>=_[S+1],x-=_[S+1],f.window[y++]=_[S+2],m--;break}}else v>>=_[S+1],x-=_[S+1],f.window[y++]=_[S+2],m--}while(m>=258&&p>=10);return U=l.avail_in-p,U=x>>3<U?x>>3:U,p+=U,h-=U,x-=U<<3,f.bitb=v,f.bitk=x,l.avail_in=p,l.total_in+=h-l.next_in_index,l.next_in_index=h,f.write=y,o}var t,i,n,r,a=this,f=0,u=0,_=0,w=0,b=0,v=0,x=0,h=0,p=0,y=0;a.init=function(e,a,o,s,f,l){t=U,x=e,h=a,n=o,p=s,r=f,y=l,i=null},a.proc=function(a,m,g){var k,C,R,T,I,B,O,P=0,j=0,q=0;for(q=m.next_in_index,T=m.avail_in,P=a.bitb,j=a.bitk,B=(I=a.write)<a.read?a.read-I-1:a.end-I;;)switch(t){case U:if(B>=258&&T>=10&&(a.bitb=P,a.bitk=j,m.avail_in=T,m.total_in+=q-m.next_in_index,m.next_in_index=q,a.write=I,g=e(x,h,n,p,r,y,a,m),q=m.next_in_index,T=m.avail_in,P=a.bitb,j=a.bitk,I=a.write,B=I<a.read?a.read-I-1:a.end-I,g!=o)){t=g==s?L:W;break}_=x,i=n,u=p,t=z;case z:for(k=_;j<k;){if(0===T)return a.bitb=P,a.bitk=j,m.avail_in=T,m.total_in+=q-m.next_in_index,m.next_in_index=q,a.write=I,a.inflate_flush(m,g);g=o,T--,P|=(255&m.read_byte(q++))<<j,j+=8}if(C=3*(u+(P&c[k])),P>>>=i[C+1],j-=i[C+1],0===(R=i[C])){w=i[C+2],t=F;break}if(0!=(16&R)){b=15&R,f=i[C+2],t=A;break}if(0==(64&R)){_=R,u=C/3+i[C+2];break}if(0!=(32&R)){t=L;break}return t=W,m.msg="invalid literal/length code",g=d,a.bitb=P,a.bitk=j,m.avail_in=T,m.total_in+=q-m.next_in_index,m.next_in_index=q,a.write=I,a.inflate_flush(m,g);case A:for(k=b;j<k;){if(0===T)return a.bitb=P,a.bitk=j,m.avail_in=T,m.total_in+=q-m.next_in_index,m.next_in_index=q,a.write=I,a.inflate_flush(m,g);g=o,T--,P|=(255&m.read_byte(q++))<<j,j+=8}f+=P&c[k],P>>=k,j-=k,_=h,i=r,u=y,t=S;case S:for(k=_;j<k;){if(0===T)return a.bitb=P,a.bitk=j,m.avail_in=T,m.total_in+=q-m.next_in_index,m.next_in_index=q,a.write=I,a.inflate_flush(m,g);g=o,T--,P|=(255&m.read_byte(q++))<<j,j+=8}if(C=3*(u+(P&c[k])),P>>=i[C+1],j-=i[C+1],0!=(16&(R=i[C]))){b=15&R,v=i[C+2],t=E;break}if(0==(64&R)){_=R,u=C/3+i[C+2];break}return t=W,m.msg="invalid distance code",g=d,a.bitb=P,a.bitk=j,m.avail_in=T,m.total_in+=q-m.next_in_index,m.next_in_index=q,a.write=I,a.inflate_flush(m,g);case E:for(k=b;j<k;){if(0===T)return a.bitb=P,a.bitk=j,m.avail_in=T,m.total_in+=q-m.next_in_index,m.next_in_index=q,a.write=I,a.inflate_flush(m,g);g=o,T--,P|=(255&m.read_byte(q++))<<j,j+=8}v+=P&c[k],P>>=k,j-=k,t=D;case D:for(O=I-v;O<0;)O+=a.end;for(;0!==f;){if(0===B&&(I==a.end&&0!==a.read&&(B=(I=0)<a.read?a.read-I-1:a.end-I),0===B&&(a.write=I,g=a.inflate_flush(m,g),I=a.write,B=I<a.read?a.read-I-1:a.end-I,I==a.end&&0!==a.read&&(B=(I=0)<a.read?a.read-I-1:a.end-I),0===B)))return a.bitb=P,a.bitk=j,m.avail_in=T,m.total_in+=q-m.next_in_index,m.next_in_index=q,a.write=I,a.inflate_flush(m,g);a.window[I++]=a.window[O++],B--,O==a.end&&(O=0),f--}t=U;break;case F:if(0===B&&(I==a.end&&0!==a.read&&(B=(I=0)<a.read?a.read-I-1:a.end-I),0===B&&(a.write=I,g=a.inflate_flush(m,g),I=a.write,B=I<a.read?a.read-I-1:a.end-I,I==a.end&&0!==a.read&&(B=(I=0)<a.read?a.read-I-1:a.end-I),0===B)))return a.bitb=P,a.bitk=j,m.avail_in=T,m.total_in+=q-m.next_in_index,m.next_in_index=q,a.write=I,a.inflate_flush(m,g);g=o,a.window[I++]=w,B--,t=U;break;case L:if(j>7&&(j-=8,T++,q--),a.write=I,g=a.inflate_flush(m,g),I=a.write,B=I<a.read?a.read-I-1:a.end-I,a.read!=a.write)return a.bitb=P,a.bitk=j,m.avail_in=T,m.total_in+=q-m.next_in_index,m.next_in_index=q,a.write=I,a.inflate_flush(m,g);t=M;case M:return g=s,a.bitb=P,a.bitk=j,m.avail_in=T,m.total_in+=q-m.next_in_index,m.next_in_index=q,a.write=I,a.inflate_flush(m,g);case W:return g=d,a.bitb=P,a.bitk=j,m.avail_in=T,m.total_in+=q-m.next_in_index,m.next_in_index=q,a.write=I,a.inflate_flush(m,g);default:return g=l,a.bitb=P,a.bitk=j,m.avail_in=T,m.total_in+=q-m.next_in_index,m.next_in_index=q,a.write=I,a.inflate_flush(m,g)}},a.free=function(){}}function n(e,n){var r,a=this,f=R,u=0,b=0,v=0,x=[0],h=[0],p=new i,y=0,m=new Int32Array(3*w),g=new t;a.bitk=0,a.bitb=0,a.window=new Uint8Array(n),a.end=n,a.read=0,a.write=0,a.reset=function(e,t){t&&(t[0]=0),f==j&&p.free(e),f=R,a.bitk=0,a.bitb=0,a.read=a.write=0},a.reset(e,null),a.inflate_flush=function(e,t){var i,n,r;return n=e.next_out_index,r=a.read,(i=(r<=a.write?a.write:a.end)-r)>e.avail_out&&(i=e.avail_out),0!==i&&t==_&&(t=o),e.avail_out-=i,e.total_out+=i,e.next_out.set(a.window.subarray(r,r+i),n),n+=i,(r+=i)==a.end&&(r=0,a.write==a.end&&(a.write=0),(i=a.write-r)>e.avail_out&&(i=e.avail_out),0!==i&&t==_&&(t=o),e.avail_out-=i,e.total_out+=i,e.next_out.set(a.window.subarray(r,r+i),n),n+=i,r+=i),e.next_out_index=n,a.read=r,t},a.proc=function(e,i){var n,_,w,k,U,z,A,S;for(k=e.next_in_index,U=e.avail_in,_=a.bitb,w=a.bitk,A=(z=a.write)<a.read?a.read-z-1:a.end-z;;)switch(f){case R:for(;w<3;){if(0===U)return a.bitb=_,a.bitk=w,e.avail_in=U,e.total_in+=k-e.next_in_index,e.next_in_index=k,a.write=z,a.inflate_flush(e,i);i=o,U--,_|=(255&e.read_byte(k++))<<w,w+=8}switch(n=7&_,y=1&n,n>>>1){case 0:_>>>=3,_>>>=n=7&(w-=3),w-=n,f=T;break;case 1:var E=[],D=[],F=[[]],L=[[]];t.inflate_trees_fixed(E,D,F,L),p.init(E[0],D[0],F[0],0,L[0],0),_>>>=3,w-=3,f=j;break;case 2:_>>>=3,w-=3,f=B;break;case 3:return _>>>=3,w-=3,f=V,e.msg="invalid block type",i=d,a.bitb=_,a.bitk=w,e.avail_in=U,e.total_in+=k-e.next_in_index,e.next_in_index=k,a.write=z,a.inflate_flush(e,i)}break;case T:for(;w<32;){if(0===U)return a.bitb=_,a.bitk=w,e.avail_in=U,e.total_in+=k-e.next_in_index,e.next_in_index=k,a.write=z,a.inflate_flush(e,i);i=o,U--,_|=(255&e.read_byte(k++))<<w,w+=8}if((~_>>>16&65535)!=(65535&_))return f=V,e.msg="invalid stored block lengths",i=d,a.bitb=_,a.bitk=w,e.avail_in=U,e.total_in+=k-e.next_in_index,e.next_in_index=k,a.write=z,a.inflate_flush(e,i);u=65535&_,_=w=0,f=0!==u?I:0!==y?q:R;break;case I:if(0===U)return a.bitb=_,a.bitk=w,e.avail_in=U,e.total_in+=k-e.next_in_index,e.next_in_index=k,a.write=z,a.inflate_flush(e,i);if(0===A&&(z==a.end&&0!==a.read&&(A=(z=0)<a.read?a.read-z-1:a.end-z),0===A&&(a.write=z,i=a.inflate_flush(e,i),z=a.write,A=z<a.read?a.read-z-1:a.end-z,z==a.end&&0!==a.read&&(A=(z=0)<a.read?a.read-z-1:a.end-z),0===A)))return a.bitb=_,a.bitk=w,e.avail_in=U,e.total_in+=k-e.next_in_index,e.next_in_index=k,a.write=z,a.inflate_flush(e,i);if(i=o,(n=u)>U&&(n=U),n>A&&(n=A),a.window.set(e.read_buf(k,n),z),k+=n,U-=n,z+=n,A-=n,0!=(u-=n))break;f=0!==y?q:R;break;case B:for(;w<14;){if(0===U)return a.bitb=_,a.bitk=w,e.avail_in=U,e.total_in+=k-e.next_in_index,e.next_in_index=k,a.write=z,a.inflate_flush(e,i);i=o,U--,_|=(255&e.read_byte(k++))<<w,w+=8}if(b=n=16383&_,(31&n)>29||(n>>5&31)>29)return f=V,e.msg="too many length or distance symbols",i=d,a.bitb=_,a.bitk=w,e.avail_in=U,e.total_in+=k-e.next_in_index,e.next_in_index=k,a.write=z,a.inflate_flush(e,i);if(n=258+(31&n)+(n>>5&31),!r||r.length<n)r=[];else for(S=0;S<n;S++)r[S]=0;_>>>=14,w-=14,v=0,f=O;case O:for(;v<4+(b>>>10);){for(;w<3;){if(0===U)return a.bitb=_,a.bitk=w,e.avail_in=U,e.total_in+=k-e.next_in_index,e.next_in_index=k,a.write=z,a.inflate_flush(e,i);i=o,U--,_|=(255&e.read_byte(k++))<<w,w+=8}r[C[v++]]=7&_,_>>>=3,w-=3}for(;v<19;)r[C[v++]]=0;if(x[0]=7,(n=g.inflate_trees_bits(r,x,h,m,e))!=o)return(i=n)==d&&(r=null,f=V),a.bitb=_,a.bitk=w,e.avail_in=U,e.total_in+=k-e.next_in_index,e.next_in_index=k,a.write=z,a.inflate_flush(e,i);v=0,f=P;case P:for(;;){if(n=b,v>=258+(31&n)+(n>>5&31))break;var M,W;for(n=x[0];w<n;){if(0===U)return a.bitb=_,a.bitk=w,e.avail_in=U,e.total_in+=k-e.next_in_index,e.next_in_index=k,a.write=z,a.inflate_flush(e,i);i=o,U--,_|=(255&e.read_byte(k++))<<w,w+=8}if(n=m[3*(h[0]+(_&c[n]))+1],(W=m[3*(h[0]+(_&c[n]))+2])<16)_>>>=n,w-=n,r[v++]=W;else{for(S=18==W?7:W-14,M=18==W?11:3;w<n+S;){if(0===U)return a.bitb=_,a.bitk=w,e.avail_in=U,e.total_in+=k-e.next_in_index,e.next_in_index=k,a.write=z,a.inflate_flush(e,i);i=o,U--,_|=(255&e.read_byte(k++))<<w,w+=8}if(_>>>=n,w-=n,M+=_&c[S],_>>>=S,w-=S,S=v,n=b,S+M>258+(31&n)+(n>>5&31)||16==W&&S<1)return r=null,f=V,e.msg="invalid bit length repeat",i=d,a.bitb=_,a.bitk=w,e.avail_in=U,e.total_in+=k-e.next_in_index,e.next_in_index=k,a.write=z,a.inflate_flush(e,i);W=16==W?r[S-1]:0;do{r[S++]=W}while(0!=--M);v=S}}h[0]=-1;var H=[],J=[],Y=[],Z=[];if(H[0]=9,J[0]=6,n=b,(n=g.inflate_trees_dynamic(257+(31&n),1+(n>>5&31),r,H,J,Y,Z,m,e))!=o)return n==d&&(r=null,f=V),i=n,a.bitb=_,a.bitk=w,e.avail_in=U,e.total_in+=k-e.next_in_index,e.next_in_index=k,a.write=z,a.inflate_flush(e,i);p.init(H[0],J[0],m,Y[0],m,Z[0]),f=j;case j:if(a.bitb=_,a.bitk=w,e.avail_in=U,e.total_in+=k-e.next_in_index,e.next_in_index=k,a.write=z,(i=p.proc(a,e,i))!=s)return a.inflate_flush(e,i);if(i=o,p.free(e),k=e.next_in_index,U=e.avail_in,_=a.bitb,w=a.bitk,z=a.write,A=z<a.read?a.read-z-1:a.end-z,0===y){f=R;break}f=q;case q:if(a.write=z,i=a.inflate_flush(e,i),z=a.write,A=z<a.read?a.read-z-1:a.end-z,a.read!=a.write)return a.bitb=_,a.bitk=w,e.avail_in=U,e.total_in+=k-e.next_in_index,e.next_in_index=k,a.write=z,a.inflate_flush(e,i);f=N;case N:return i=s,a.bitb=_,a.bitk=w,e.avail_in=U,e.total_in+=k-e.next_in_index,e.next_in_index=k,a.write=z,a.inflate_flush(e,i);case V:return i=d,a.bitb=_,a.bitk=w,e.avail_in=U,e.total_in+=k-e.next_in_index,e.next_in_index=k,a.write=z,a.inflate_flush(e,i);default:return i=l,a.bitb=_,a.bitk=w,e.avail_in=U,e.total_in+=k-e.next_in_index,e.next_in_index=k,a.write=z,a.inflate_flush(e,i)}},a.free=function(e){a.reset(e,null),a.window=null,m=null},a.set_dictionary=function(e,t,i){a.window.set(e.subarray(t,t+i),0),a.read=a.write=i},a.sync_point=function(){return f==T?1:0}}function r(){function e(e){return e&&e.istate?(e.total_in=e.total_out=0,e.msg=null,e.istate.mode=ee,e.istate.blocks.reset(e,null),o):l}var t=this;t.mode=0,t.method=0,t.was=[0],t.need=0,t.marker=0,t.wbits=0,t.inflateEnd=function(e){return t.blocks&&t.blocks.free(e),t.blocks=null,o},t.inflateInit=function(i,r){return i.msg=null,t.blocks=null,r<8||r>15?(t.inflateEnd(i),l):(t.wbits=r,i.istate.blocks=new n(i,1<<r),e(i),o)},t.inflate=function(e,t){var i,n;if(!e||!e.istate||!e.next_in)return l;for(t=t==v?_:o,i=_;;)switch(e.istate.mode){case Y:if(0===e.avail_in)return i;if(i=t,e.avail_in--,e.total_in++,(15&(e.istate.method=e.read_byte(e.next_in_index++)))!=J){e.istate.mode=ie,e.msg="unknown compression method",e.istate.marker=5;break}if(8+(e.istate.method>>4)>e.istate.wbits){e.istate.mode=ie,e.msg="invalid window size",e.istate.marker=5;break}e.istate.mode=Z;case Z:if(0===e.avail_in)return i;if(i=t,e.avail_in--,e.total_in++,n=255&e.read_byte(e.next_in_index++),((e.istate.method<<8)+n)%31!=0){e.istate.mode=ie,e.msg="incorrect header check",e.istate.marker=5;break}if(0==(n&H)){e.istate.mode=ee;break}e.istate.mode=$;case $:if(0===e.avail_in)return i;i=t,e.avail_in--,e.total_in++,e.istate.need=(255&e.read_byte(e.next_in_index++))<<24&4278190080,e.istate.mode=G;case G:if(0===e.avail_in)return i;i=t,e.avail_in--,e.total_in++,e.istate.need+=(255&e.read_byte(e.next_in_index++))<<16&16711680,e.istate.mode=K;case K:if(0===e.avail_in)return i;i=t,e.avail_in--,e.total_in++,e.istate.need+=(255&e.read_byte(e.next_in_index++))<<8&65280,e.istate.mode=Q;case Q:return 0===e.avail_in?i:(i=t,e.avail_in--,e.total_in++,e.istate.need+=255&e.read_byte(e.next_in_index++),e.istate.mode=X,f);case X:return e.istate.mode=ie,e.msg="need dictionary",e.istate.marker=0,l;case ee:if((i=e.istate.blocks.proc(e,i))==d){e.istate.mode=ie,e.istate.marker=0;break}if(i==o&&(i=t),i!=s)return i;i=t,e.istate.blocks.reset(e,e.istate.was),e.istate.mode=te;case te:return s;case ie:return d;default:return l}},t.inflateSetDictionary=function(e,t,i){var n=0,r=i;return e&&e.istate&&e.istate.mode==X?(r>=1<<e.istate.wbits&&(n=i-(r=(1<<e.istate.wbits)-1)),e.istate.blocks.set_dictionary(t,n,r),e.istate.mode=ee,o):l},t.inflateSync=function(t){var i,n,r,a,s;if(!t||!t.istate)return l;if(t.istate.mode!=ie&&(t.istate.mode=ie,t.istate.marker=0),0===(i=t.avail_in))return _;for(n=t.next_in_index,r=t.istate.marker;0!==i&&r<4;)t.read_byte(n)==ne[r]?r++:r=0!==t.read_byte(n)?0:4-r,n++,i--;return t.total_in+=n-t.next_in_index,t.next_in_index=n,t.avail_in=i,t.istate.marker=r,4!=r?d:(a=t.total_in,s=t.total_out,e(t),t.total_in=a,t.total_out=s,t.istate.mode=ee,o)},t.inflateSyncPoint=function(e){return e&&e.istate&&e.istate.blocks?e.istate.blocks.sync_point():l}}function a(){}var o=0,s=1,f=2,l=-2,d=-3,u=-4,_=-5,c=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],w=1440,b=0,v=4,x=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],h=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],p=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],y=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],m=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],g=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],k=15;t.inflate_trees_fixed=function(e,t,i,n){return e[0]=9,t[0]=5,i[0]=x,n[0]=h,o};var U=0,z=1,A=2,S=3,E=4,D=5,F=6,L=7,M=8,W=9,C=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],R=0,T=1,I=2,B=3,O=4,P=5,j=6,q=7,N=8,V=9,H=32,J=8,Y=0,Z=1,$=2,G=3,K=4,Q=5,X=6,ee=7,te=12,ie=13,ne=[0,0,255,255];a.prototype={inflateInit:function(e){var t=this;return t.istate=new r,e||(e=15),t.istate.inflateInit(t,e)},inflate:function(e){var t=this;return t.istate?t.istate.inflate(t,e):l},inflateEnd:function(){var e=this;if(!e.istate)return l;var t=e.istate.inflateEnd(e);return e.istate=null,t},inflateSync:function(){var e=this;return e.istate?e.istate.inflateSync(e):l},inflateSetDictionary:function(e,t){var i=this;return i.istate?i.istate.inflateSetDictionary(i,e,t):l},read_byte:function(e){return this.next_in.subarray(e,e+1)[0]},read_buf:function(e,t){return this.next_in.subarray(e,e+t)}};var re=e.zip||e;re.Inflater=re._jzlib_Inflater=function(){var e=this,t=new a,i=b,n=new Uint8Array(512),r=!1;t.inflateInit(),t.next_out=n,e.append=function(e,a){var f,l,d=[],u=0,c=0,w=0;if(0!==e.length){t.next_in_index=0,t.next_in=e,t.avail_in=e.length;do{if(t.next_out_index=0,t.avail_out=512,0!==t.avail_in||r||(t.next_in_index=0,r=!0),f=t.inflate(i),r&&f===_){if(0!==t.avail_in)throw new Error("inflating: bad input")}else if(f!==o&&f!==s)throw new Error("inflating: "+t.msg);if((r||f===s)&&t.avail_in===e.length)throw new Error("inflating: bad input");t.next_out_index&&(512===t.next_out_index?d.push(new Uint8Array(n)):d.push(new Uint8Array(n.subarray(0,t.next_out_index)))),w+=t.next_out_index,a&&t.next_in_index>0&&t.next_in_index!=u&&(a(t.next_in_index),u=t.next_in_index)}while(t.avail_in>0||0===t.avail_out);return l=new Uint8Array(w),d.forEach(function(e){l.set(e,c),c+=e.length}),l}},e.flush=function(){t.inflateEnd()}}}(this),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).perfCascadeFileReader=e()}}(function(){return function e(t,i,n){function r(o,s){if(!i[o]){if(!t[o]){var f="function"==typeof require&&require;if(!s&&f)return f(o,!0);if(a)return a(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var d=i[o]={exports:{}};t[o][0].call(d.exports,function(e){var i=t[o][1][e];return r(i||e)},d,d.exports,e,t,i,n)}return i[o].exports}for(var a="function"==typeof require&&require,o=0;o<n.length;o++)r(n[o]);return r}({1:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),zip.useWebWorkers=!1,i.readFile=function(e,t,i,n){function r(e){try{var t=JSON.parse(e);i(null,t.log)}catch(e){i(e)}}if(!e)return i(new Error("Failed to load HAR file"));var a=t.match(/\.[0-9a-z]+$/i)[0];if(-1!==[".zhar",".zip"].indexOf(a))zip.createReader(new zip.BlobReader(e),function(e){e.getEntries(function(t){t[0].getData(new zip.TextWriter,function(t){r(t),e.close()},n)})});else{var o=new FileReader;o.addEventListener("load",function(e){r(e.target.result)}),o.readAsText(e)}}},{}]},{},[1])(1)}); |
@@ -1,3 +0,3 @@ | ||
/*! github.com/micmro/PerfCascade Version:2.1.1 (26/06/2017) */ | ||
/*! github.com/micmro/PerfCascade Version:2.2.0 (21/10/2017) */ | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).perfCascade=e()}}(function(){return function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return i(n||e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){"use strict";function r(e,t,n){t in e.style?e.style[t]=n:console.warn(new Error("Trying to set non-existing style "+t+" = "+n+" on a <"+e.tagName.toLowerCase()+">."))}function i(e,t,n){t in e||console.warn(new Error("Trying to set non-existing attribute "+t+" = "+n+" on a <"+e.tagName.toLowerCase()+">.")),e.setAttributeNS(null,t,n)}function o(e,t){Object.keys(t).forEach(function(n){r(e,n,t[n].toString())})}Object.defineProperty(n,"__esModule",{value:!0}),n.addClass=function(e,t){var n=e.classList;return n?t.split(" ").forEach(function(e){return n.add(e)}):e.setAttribute("class",e.getAttribute("class")+" "+t),e},n.removeClass=function(e,t){var n=e.classList;return n?n.remove(t):e.setAttribute("class",e.getAttribute("class").replace(new RegExp("(\\s|^)"+t+"(\\s|$)","g"),"$2")),e},n.getParentByClassName=function(e,t){if("function"==typeof e.closest)return e.closest("."+t);for(;e;){if(e.classList.contains(t))return e;e=e.parentElement}},n.removeChildren=function(e){for(;e.hasChildNodes();)e.removeChild(e.lastChild);return e},n.getLastItemOfNodeList=function(e){if(e&&0!==e.length)return e.item(e.length-1)},n.forEachNodeList=function(e,t){Array.prototype.forEach.call(e,t)},n.safeSetStyle=r,n.safeSetAttribute=i,n.safeSetStyles=o,n.safeSetAttributes=function(e,t){Object.keys(t).forEach(function(n){i(e,n,t[n].toString())})},n.makeHtmlEl=function(){var e=document.createElement("html");return e.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/xmlns/"),e},n.makeBodyEl=function(e,t){void 0===e&&(e={}),void 0===t&&(t="");var n=document.createElement("body");return n.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),o(n,e),n.innerHTML=t,n}},{}],2:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(e){return function(t){return t.name.toLowerCase()===e}};n.hasHeader=function(e,t){var n=r(t.toLowerCase());return e.some(n)};var i=!!Array.prototype.find;n.getHeader=function(e,t){var n,o=r(t.toLowerCase());return n=i?e.find(o):e.map(o).pop(),n?n.value:void 0},n.getHeaders=function(e,t){var n=r(t.toLowerCase());return e.filter(n).map(function(e){return[t,e.value]})}},{}],3:[function(e,t,n){"use strict";function r(e,t,n,r){if(void 0===r&&(r=1),void 0===p){p=a.newPath("M6 6q0 .75-.525 1.275Q4.95 7.8 4.2 7.8q-.75 0-1.275-.525Q2.4 6.75 2.4\n 6q0-.75.525-1.275Q3.45 4.2 4.2 4.2q.75 0 1.275.525Q6 5.25 6 6zm9.6 3.6v4.2H2.4V12l3-3\n 1.5 1.5 4.8-4.8zm.9-6.6h-15q-.122 0-.21.09-.09.088-.09.21v11.4q0\n .122.09.21.088.09.21.09h15q.122 0 .21-.09.09-.088.09-.21V3.3q0-.122-.09-.21Q16.623\n 3 16.5 3zm1.5.3v11.4q0 .62-.44 1.06-.44.44-1.06.44h-15q-.62 0-1.06-.44Q0 15.32 0\n 14.7V3.3q0-.62.44-1.06.44-.44 1.06-.44h15q.62 0 1.06.44.44.44.44 1.06z")}return s(e,t,n,"icon-image",r,p.cloneNode(!1))}function i(e,t,n,r){if(void 0===r&&(r=1),void 0===v){v=a.newPath("M6 6q0 .75-.525 1.275Q4.95 7.8 4.2 7.8q-.75 0-1.275-.525Q2.4 6.75 2.4\n 6q0-.75.525-1.275Q3.45 4.2 4.2 4.2q.75 0 1.275.525Q6 5.25 6 6zm9.6 3.6v4.2H2.4V12l3-3\n 1.5 1.5 4.8-4.8zm.9-6.6h-15q-.122 0-.21.09-.09.088-.09.21v11.4q0\n .122.09.21.088.09.21.09h15q.122 0 .21-.09.09-.088.09-.21V3.3q0-.122-.09-.21Q16.623\n 3 16.5 3zm1.5.3v11.4q0 .62-.44 1.06-.44.44-1.06.44h-15q-.62 0-1.06-.44Q0 15.32 0\n 14.7V3.3q0-.62.44-1.06.44-.44 1.06-.44h15q.62 0 1.06.44.44.44.44 1.06z")}return s(e,t,n,"icon-warning",r,v.cloneNode(!1))}Object.defineProperty(n,"__esModule",{value:!0});var o,a=e("./svg"),s=function(e,t,n,r,i,o){var s=a.newSvg("",{x:e,y:t}),l=a.newG("icon "+r,{transform:"scale("+i+")"});return l.appendChild(o),l.appendChild(a.newTitle(n)),s.appendChild(l),s};n.noTls=function(e,t,n,r){void 0===r&&(r=1),void 0===o&&(o=a.newPath("M18 6.216v2.77q0 .28-.206.486-.205.206-.486.206h-.693q-.28 0-.486-.206-.21-.205-.21\n -.487v-2.77q0-1.145-.81-1.957-.813-.81-1.96-.81-1.146 0-1.957.81-.81.812-.81 1.958v2.077h1.037q.434\n 0 .737.303.302.303.302.736v6.23q0 .433-.305.736t-.737.303H1.038q-.433 0-.736-.3Q0 15.996 0\n 15.56V9.33q0-.433.303-.736t.735-.303h7.27V6.218q0-2 1.422-3.423 1.423-1.423 3.424-1.423 2\n 0 3.424 1.424Q18 4.214 18 6.216"));return s(e,t,n,"icon-no-tls",r,o.cloneNode(!1))};var l;n.err3xx=function(e,t,n,r){void 0===r&&(r=1),void 0===l&&(l=a.newPath("M17 2.333V7q0 .27-.198.47-.198.197-.47.197h-4.665q-.438 0-.615-.417-.177-.406.146-.72l1.437-1.436Q11.095\n 3.667 9 3.667q-1.083 0-2.068.422-.984.42-1.703 1.14-.72.715-1.14 1.7-.426.984-.426 2.07 0 1.08.422 2.065.42.984\n 1.14 1.703.718.72 1.702 1.14.984.422 2.067.422 1.24 0 2.344-.54 1.104-.543 1.864-1.533.073-.105.24-.126.146 0\n .26.095l1.427 1.436q.095.084.1.214.006.13-.08.234-1.133 1.376-2.75 2.13Q10.793 17 9 17q-1.625\n 0-3.104-.635-1.48-.636-2.552-1.71-1.073-1.072-1.71-2.55Q1 10.625 1 9t.635-3.104q.636-1.48 1.71-2.552\n 1.072-1.073 2.55-1.71Q7.375 1 9 1q1.53 0 2.964.578 1.432.578 2.546\n 1.63l1.355-1.343q.302-.323.73-.146.405.173.405.61z"));return s(e,t,n,"icon-redirect",r,l.cloneNode(!1))},n.err4xx=function(e,t,n,r){return void 0===r&&(r=1),i(e,t,n,r)},n.err5xx=function(e,t,n,r){return void 0===r&&(r=1),i(e,t,n,r)};var u;n.plain=function(e,t,n,r){void 0===r&&(r=1),void 0===u&&(u=a.newPath("M15.247 4.393q.25.25.43.678.177.43.177.79v10.287q0\n .357-.25.607t-.607.25h-12q-.357 0-.607-.25t-.25-.606V1.858q0-.358.25-.608T2.997 1h8q.357 0\n .786.18.428.177.678.427zm-3.964-2.18V5.57h3.357q-.09-.256-.196-.364L11.65 2.41q-.108-.106-.367\n -.196zm3.428 13.644V6.714H11q-.357 0-.607-.25t-.25-.607V2.143h-6.86v13.714H14.71zM5.57\n 8.143q0-.125.08-.205.08-.08.204-.08h6.286q.125 0 .205.08.08.08.08.205v.57q0 .126-.08.207-.08.08\n -.205.08H5.854q-.125 0-.205-.08-.08-.08-.08-.206v-.57zm6.57 2q.125 0 .205.08.08.08.08.206V11q0\n .125-.08.205-.08.08-.205.08H5.854q-.125 0-.205-.08-.08-.08-.08-.205v-.57q0-.126.08-.207.08-.08.2\n -.08h6.286zm0 2.286q.125 0 .205.08.08.08.08.2v.572q0 .125-.08.205-.08.08-.205.08H5.854q-.125 0-.205\n -.08-.08-.08-.08-.205v-.572q0-.124.08-.204.08-.08.2-.08h6.286z"));return s(e,t,n,"icon-plain",r,u.cloneNode(!1))};var c;n.other=function(e,t,n,r){void 0===r&&(r=1),void 0===c&&(c=a.newPath("M10.8 13.5v3q0 .2-.15.35-.15.15-.35.15h-3q-.2 0-.35-.15-.15-.15-.15-.35v-3q0-.2.15-.35.15\n -.15.35-.15h3q.2 0 .35.15.15.15.15.35zM14.75 6q0 .675-.193 1.262-.193.588-.437.957-.244.365\n -.688.74-.443.375-.718.543-.275.17-.763.444-.51.286-.852.81-.344.526-.344.84 0 .21-.15.405-.15.194\n -.35.194h-3q-.186 0-.318-.23-.13-.234-.13-.47v-.564q0-1.037.812-1.956.812-.917 1.787-1.355.74-.336\n 1.05-.7.314-.362.314-.95 0-.524-.583-.924-.58-.4-1.343-.4-.814 0-1.35.362-.44.312-1.34 1.437-.16.2\n -.386.2-.15 0-.313-.1L3.4 4.987q-.16-.124-.193-.312-.03-.188.07-.35Q5.277 1 9.077 1q1 0 2.01.387\n 1.01.388 1.825 1.038.812.65 1.325 1.594.51.94.51 1.98z"));return s(e,t,n,"icon-other",r,c.cloneNode(!1))};var d;n.javascript=function(e,t,n,r){void 0===r&&(r=1),void 0===d&&(d=a.newPath("M13.516 2.9c-2.766 0-4.463 1.522-4.463 3.536 0 1.733 1.295 2.82 3.256 3.52\n 1.413.49 1.973.926 1.973 1.644 0 .787-.647 1.296-1.873 1.296-1.137 0-2.26-.368-2.96-.736l-.54\n 2.19c.665.367 1.996.734 3.344.734 3.238 0 4.744-1.68 4.744-3.658\n 0-1.68-.966-2.767-3.05-3.537-1.54-.6-2.186-.93-2.186-1.68 0-.6.56-1.14 1.714-1.14\n 1.137 0 1.996.33 2.45.56l.596-2.138c-.7-.332-1.663-.596-3.01-.596zm-9.032.192v7.44c0\n 1.822-.702 2.33-1.822 2.33-.525 0-.997-.09-1.365-.212L1 14.805c.525.175 1.33.28 1.96.28\n 2.574 0 4.185-1.173 4.185-4.534V3.097h-2.66z"));return s(e,t,n,"icon-js",r,d.cloneNode(!1))};var p;n.image=r,n.svg=function(e,t,n,i){return void 0===i&&(i=1),r(e,t,n,i)};var h;n.html=function(e,t,n,r){void 0===r&&(r=1),void 0===h&&(h=a.newPath("M5.626 13.31l-.492.492q-.098.098-.226.098t-.226-.098L.098 9.22Q0 9.12 0\n 8.99q0-.127.098-.226L4.682 4.18q.098-.097.226-.097t.226.098l.492.49q.1.1.1.23t-.1.23L1.76\n 8.99l3.866 3.866q.1.098.1.226t-.1.226zM11.44 2.815l-3.67\n 12.7q-.04.127-.152.19-.113.065-.23.026l-.61-.162q-.13-.04-.193-.152-.064-.112-.024-.24l3.67-12.698q.04\n -.128.157-.192.113-.064.23-.025l.61.167q.13.04.193.152.063.113.023.24zM17.9\n 9.22l-4.582 4.58q-.098.098-.226.098t-.226-.098l-.492-.492q-.1-.098-.1-.226t.1-.226L16.24\n 8.99l-3.867-3.865q-.1-.098-.1-.226t.1-.23l.492-.49q.098-.1.226-.1t.23.1l4.58 4.583q.1.1.1.226 0 .13-.1.23z"));return s(e,t,n,"icon-html",r,h.cloneNode(!1))};var f;n.css=function(e,t,n,r){void 0===r&&(r=1),void 0===f&&(f=a.newPath("M15.436.99q.625 0 1.095.416.47.415.47 1.04 0 .564-.4 1.35-2.97 5.624-4.16 6.724-.865.814\n -1.946.814-1.127 0-1.935-.827-.81-.827-.81-1.962 0-1.144.822-1.895l5.705-5.175Q14.8.99\n 15.435.99zM7.31 10.232q.35.68.953 1.162.603.483 1.345.68l.01.634q.035 1.904-1.16 3.102-1.192\n 1.198-3.114 1.198-1.1 0-1.948-.416-.85-.415-1.364-1.14-.514-.723-.773-1.635Q1 12.905 1\n 11.85l.366.268q.304.224.555.398.25.175.53.327.277.15.41.15.368 0 .493-.33.224-.59.515-1.005.29\n -.415.62-.68.332-.263.788-.424.455-.16.92-.228.465-.066 1.118-.094z"));return s(e,t,n,"icon-css",r,f.cloneNode(!1))};var v;n.warning=i;var m;n.error=function(e,t,n,r){void 0===r&&(r=1),void 0===m&&(m=a.newPath("M9 1q2.177 0 4.016 1.073 1.838 1.073 2.91 2.91Q17 6.823 17 9q0 2.177-1.073 4.016-1.073\n 1.838-2.91 2.91Q11.177 17 9 17q-2.177 0-4.016-1.073-1.838-1.073-2.91-2.91Q1 11.177 1 9q0-2.177 1.073-4.016\n 1.073-1.838 2.91-2.91Q6.823 1 9 1zm1.333 12.99v-1.98q0-.145-.093-.244-.094-.1-.23-.1h-2q-.135 0-.24.105\n -.103.106-.103.24v1.98q0 .136.104.24.106.104.24.104h2q.137 0 .23-.1.094-.098.094-.243zm-.02-3.584l.187\n -6.468q0-.125-.104-.188-.104-.084-.25-.084H7.854q-.146 0-.25.084-.104.062-.104.188l.177 6.468q0\n .104.104.183.106.076.25.076h1.93q.146 0 .245-.078.1-.08.11-.184z"));return s(e,t,n,"icon-no-gzip",r,m.cloneNode(!1))};var g;n.font=function(e,t,n,r){void 0===r&&(r=1),void 0===g&&(g=a.newPath("M7.97 5.754L6.338 10.08q.317 0 1.312.02.994.02 1.542.02.183 0 .548-.02-.836-2.432-1.77\n -4.345zM1 16.38l.02-.76q.22-.068.538-.12.317-.053.548-.102.23-.048.476-.14.245-.09.428-.278.182\n -.187.298-.485l2.28-5.923 2.69-6.962H9.51q.077.135.105.202l1.972 4.615q.317.75 1.02 2.476.7 1.726\n 1.095 2.64.144.327.558 1.39.413 1.062.692 1.62.192.432.336.547.183.145.847.284.663.14.807.197.058.37.058.55\n 0 .04-.005.13t-.005.128q-.605 0-1.827-.076-1.22-.08-1.836-.08-.73 0-2.067.07-1.337.067-1.712.076 0-.412.04\n -.75l1.258-.27q.01 0 .12-.022l.15-.033q.038-.01.14-.044.1-.034.143-.06l.1-.08q.06-.048.082-.106.024-.056.024\n -.133 0-.152-.298-.926t-.693-1.71q-.392-.93-.402-.96l-4.325-.02q-.25.56-.734 1.88-.487 1.32-.487 1.56 0\n .213.136.362.134.15.418.235.285.087.467.13.185.044.55.08.366.04.395.04.01.183.01.558 0 .087-.02.26-.558\n 0-1.678-.095-1.12-.098-1.678-.098-.08 0-.26.04-.18.037-.208.037-.77.136-1.808.136Z"));return s(e,t,n,"icon-font",r,g.cloneNode(!1))};var y;n.flash=function(e,t,n,r){void 0===r&&(r=1),void 0===y&&(y=a.newPath("M13.724 4.738q.195.216.076.476L7.96 17.73q-.142.27-.456.27-.043 0-.15-.022-.185-.054-.277\n -.205-.092-.15-.05-.325l2.132-8.74L4.765 9.8q-.044.01-.13.01-.195 0-.336-.118-.193-.162-.14-.422L6.337.346q.043\n -.15.173-.25Q6.64 0 6.81 0h3.548q.206 0 .346.135.14.135.14.32 0 .086-.053.194L8.94 5.654l4.285\n -1.06q.086-.02.13-.02.205 0 .367.16z"));return s(e,t,n,"icon-flash",r,y.cloneNode(!1))};var w;n.video=function(e,t,n,r){void 0===r&&(r=1),void 0===w&&(w=a.newPath("M17 4.107v9.714q0 .38-.348.53-.116.05-.223.05-.25 0-.41-.17l-3.6-3.6v1.48q0 1.067-.757 1.82-.754.756\n -1.817.756H3.57q-1.06 0-1.816-.753Q1 13.17 1 12.106V5.82q0-1.06.754-1.816.755-.754 1.817-.754h6.29q1.07 0\n 1.82.754.76.755.76 1.817V7.3l3.597-3.59q.16-.17.4-.17.107 0 .22.045.35.153.35.528z"));return s(e,t,n,"icon-video",r,w.cloneNode(!1))};var b;n.audio=function(e,t,n,r){void 0===r&&(r=1),void 0===b&&(b=a.newPath("M8.385 3.756v10.46q0 .252-.183.434-.183.183-.433.183t-.44-.183l-3.2-3.202H1.61q-.25\n 0-.43-.183-.18-.182-.18-.432V7.14q0-.25.182-.432.182-.183.432-.183h2.52l3.202-3.202q.182-.183.432\n -.183t.43.183q.182.183.182.433zm3.692 5.23q0 .73-.41 1.36-.407.63-1.08.9-.097.048-.24.048-.25 0\n -.434-.178-.182-.177-.182-.437 0-.21.12-.35.12-.14.28-.24.16-.1.33-.22.166-.12.28-.34.117-.22.117\n -.55 0-.33-.115-.55-.115-.224-.28-.344-.163-.12-.326-.22-.165-.1-.28-.24-.116-.14-.116-.34 0-.26.183\n -.44t.43-.176q.146 0 .24.048.676.26 1.08.894.41.636.41 1.367zm2.46 0q0 1.472-.816 2.717t-2.16 1.813q\n -.12.048-.24.048-.26 0-.44-.183-.18-.18-.18-.43 0-.37.378-.56.54-.28.73-.42.713-.52 1.11-1.302.4\n -.783.4-1.667 0-.886-.4-1.67-.4-.783-1.11-1.303-.192-.145-.73-.424-.376-.192-.376-.567 0-.25.183\n -.434.183-.18.433-.18.123 0 .25.047 1.344.567 2.16 1.812.82 1.244.82 2.716zm2.463 0q0 2.212\n -1.22 4.063-1.222 1.85-3.25 2.72-.126.05-.25.05-.25 0-.434-.19-.183-.183-.183-.433 0-.346.375\n -.568.068-.04.217-.1.15-.064.216-.1.45-.244.79-.494 1.19-.875 1.85-2.183.67-1.306.67-2.777 0\n -1.47-.663-2.78-.664-1.304-1.846-2.18-.346-.25-.79-.49-.065-.035-.214-.1-.15-.06-.22-.1\n -.375-.22-.375-.57 0-.25.183-.43.183-.182.433-.182.123 0 .25.047 2.027.876 3.25 2.727Q17 6.775 17 8.99Z"));return s(e,t,n,"icon-audio",r,b.cloneNode(!1))};var C;n.push=function(e,t,n,r){void 0===r&&(r=1),void 0===C&&(C=a.newPath("M14.668 9q0 .416-.285.7L9.37 14.716Q9.067 15 8.667 15q-.393 0-.694-.285l-.577\n -.578q-.293-.292-.293-.7 0-.41.293-.7l2.256-2.258H4.23q-.4 0-.65-.29t-.25-.698v-.986q0-.408.25\n -.697.25-.29.65-.29h5.423L7.397 5.257q-.293-.278-.293-.693 0-.416.293-.694l.577-.576Q8.267 3 8.668\n 3q.408 0 .7.293l5.015 5.014q.285.27.285.693z"));return s(e,t,n,"icon-push",r,C.cloneNode(!1))}},{"./svg":6}],4:[function(e,t,n){"use strict";function r(e){var t=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),n=e.match(t);return{authority:n[4],fragment:n[9],path:n[5],query:n[7],scheme:n[2]}}function i(e,t){var n=0;if(e&&!(e.length<1))for(var r=e.length;n<r;){if(t(e[n],n))return n;n++}}Object.defineProperty(n,"__esModule",{value:!0}),n.contains=function(e,t){return e.some(function(e){return e===t})},n.findIndex=i,n.find=function(e,t){var n=i(e,t);if(void 0!==n)return e[n]},n.resourceUrlFormatter=function(e,t){if(e.length<t)return e.replace(/https?:\/\//,"");var n=r(e);if((n.authority+n.path).length<t)return n.authority+n.path;var i=Math.floor(t/2)-3,o=Math.floor(t/2)-5,a=n.path.split("/");return n.authority.length>i?n.authority.substr(0,i)+"..."+a[a.length-1].substr(-o):n.authority+"..."+a[a.length-1].substr(-o)},n.roundNumber=function(e,t){return void 0===t&&(t=2),Math.round(e*Math.pow(10,t))/Math.pow(10,t)},n.isInStatusCodeRange=function(e,t,n){return e>=t&&e<=n};var o=/[^a-z-]/g;n.toCssClass=function(e){return e.toLowerCase().replace(o,"")},n.pluralize=function(e,t){return e+(t>1?"s":"")},n.isTabUp=function(e){return 9===e.which&&e.shiftKey},n.isTabDown=function(e){return 9===e.which&&!e.shiftKey}},{}],5:[function(e,t,n){"use strict";function r(e){return e}function i(e){if("function"==typeof e.toString)return e.toString();throw TypeError("Can't convert type ${typeof source} to string")}function o(e,t){var n=function(e){return t(e)?e:void 0};if("string"==typeof e){var r=parseInt(e,10);if(!isFinite(r))return;return n(r)}return n(e)}function a(e){return"number"==typeof e?e:"string"==typeof e?parseInt(e,10):void 0}Object.defineProperty(n,"__esModule",{value:!0});var s=e("./misc");n.parseAndFormat=function(e,t,n){if(void 0===t&&(t=r),void 0===n&&(n=i),void 0!==e){var o=t(e);if(void 0!==o)return n(o)}},n.parseNonEmpty=function(e){return e.trim().length>0?e:void 0},n.parseDate=function(e){var t=new Date(e);if(!isNaN(t.getTime()))return t},n.parseNonNegative=function(e){return o(e,function(e){return e>=0})},n.parsePositive=function(e){return o(e,function(e){return e>0})},n.formatMilliseconds=function(e){return s.roundNumber(e,3)+" ms"};var l=60,u=60*l,c=24*u;n.formatSeconds=function(e){var t=s.roundNumber(e,3)+" s";return e>c?t+" (~"+s.roundNumber(e/c,0)+" days)":e>u?t+" (~"+s.roundNumber(e/u,0)+" hours)":e>l?t+" (~"+s.roundNumber(e/l,0)+" minutes)":t},n.formatDateLocalized=function(e){return e.toUTCString()+"<br/>(local time: "+e.toLocaleString()+")"};var d=1024,p=1024*d;n.formatBytes=function(e){var t=e+" bytes";return e>=p?t+" (~"+s.roundNumber(e/p,1)+" MB)":e>=d?t+" (~"+s.roundNumber(e/d,0)+" kB)":t};var h={'"':""","&":"&","'":"'","<":"<",">":">"},f=new RegExp(Object.keys(h).join("|"),"g");n.escapeHtml=function(e){if(void 0===e&&(e=""),"string"!=typeof e){if("function"!=typeof e.toString)throw TypeError("Invalid parameter");e=e.toString()}return e.replace(f,function(e){return h[e]})};var v=new RegExp("[^-A-Za-z0-9+&@#/%?=~_|!:,.;()]","g");n.sanitizeUrlForLink=function(e){var t=e.replace(v,"_");return 0===t.indexOf("http://")||0===t.indexOf("https://")?t:(console.warn("skipped link, due to potentially unsafe url",e),"")};var m=new RegExp("[^a-zA-Z0-9]","g");n.sanitizeAlphaNumeric=function(e){return e.toString().replace(m,"")},n.toInt=a,n.validateOptions=function(e){var t=function(t){if(e[t]=a(e[t]),void 0===e[t])throw TypeError('option "'+t+'" needs to be a number')},n=function(t){e[t]=!!e[t]};return t("leftColumnWith"),t("rowHeight"),t("selectedPage"),n("showAlignmentHelpers"),n("showIndicatorIcons"),n("showMimeTypeIcon"),e}},{"./misc":4}],6:[function(e,t,n){"use strict";function r(e,t){var n=void 0===t?{}:t,r=n.attributes,i=void 0===r?{}:r,s=n.css,l=void 0===s?{}:s,u=n.text,c=void 0===u?"":u,d=n.className,p=void 0===d?"":d,h=document.createElementNS(a,e);return p&&o.addClass(h,p),c&&(h.textContent=c),o.safeSetStyles(h,l),o.safeSetAttributes(h,i),h}function i(e,t,n){return void 0===n&&(n={}),r("svg",{className:e,attributes:t,css:n})}Object.defineProperty(n,"__esModule",{value:!0});var o=e("./dom"),a="http://www.w3.org/2000/svg";n.newSvg=i,n.newG=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),r("g",{className:e,attributes:t,css:n})},n.newClipPath=function(e){return r("clipPath",{attributes:{id:e}})},n.newForeignObject=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n={}),r("foreignObject",{attributes:e,className:t,css:n})},n.newA=function(e){return r("a",{className:e})},n.newRect=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n={}),r("rect",{attributes:e,className:t,css:n})},n.newLine=function(e,t){return void 0===t&&(t=""),r("line",{className:t,attributes:e})},n.newTitle=function(e){var t=document.createElementNS(a,"title");return t.setAttribute("text",e),t},n.newTextEl=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),r("text",{text:e,attributes:t,css:n})},n.newPath=function(e){var t=document.createElementNS(a,"path");return t.setAttribute("d",e),t};var s=function(){var e,t;return function(){return void 0===e&&(e=i("water-fall-chart temp",{className:"water-fall-chart temp",width:"9999px"},{left:"0px",position:"absolute",top:"0px",visibility:"hidden","z-index":"99999"})),void 0===e.parentElement&&window.document.body.appendChild(e),clearTimeout(t),t=setTimeout(function(){e.parentNode.removeChild(e)},500),e}}();n.getNodeTextWidth=function(e,t){if(void 0===t&&(t=!1),0===e.textContent.length)return 0;var n,r,i=s();t?(r=e.style.textShadow,n=e):((n=e.cloneNode(!0)).setAttribute("x","0"),n.setAttribute("y","0")),n.style.textShadow="0",i.appendChild(n),window.document.body.appendChild(i);var o=n.getComputedTextLength();return t&&void 0!==r&&(e.style.textShadow=r),o}},{"./dom":1}],7:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.makeLegend=function(){var e=document.createElement("ul");return e.className="resource-legend",e.innerHTML='\n <li class="legend-blocked" title="Time spent in a queue waiting for a network connection.">Blocked</li>\n <li class="legend-dns" title="DNS resolution time.">DNS</li>\n <li class="legend-connect" title="Time required to create TCP connection.">Connect</li>\n <li class="legend-ssl" title="Time required for SSL/TLS negotiation.">SSL (TLS)</li>\n <li class="legend-send" title="Time required to send HTTP request to the server.">Send</li>\n <li class="legend-wait" title="Waiting for a response from the server.">Wait</li>\n <li class="legend-receive"\n title="Time required to read entire response from the server (or cache).">Receive</li>',e}},{}],8:[function(e,t,n){"use strict";function r(e,t){void 0===t&&(t={});var n=o.validateOptions(i({},c,t)),r=new s.default(e,n.selectedPage),l=u.createWaterfallSvg(r.getSelectedPage(),n);return r.onPageUpdate(function(e,t){var r=l.parentElement,i=u.createWaterfallSvg(t,n);r.replaceChild(i,l),l=i}),n.pageSelector&&r.initPagingSelectBox(n.pageSelector),n.legendHolder&&(n.legendHolder.innerHTML="",n.legendHolder.appendChild(a.makeLegend())),l}var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e};Object.defineProperty(n,"__esModule",{value:!0});var o=e("./helpers/parse"),a=e("./legend/legend"),s=e("./paging/paging"),l=e("./transformers/har"),u=e("./waterfall/svg-chart"),c={leftColumnWith:25,legendHolder:void 0,onParsed:void 0,pageSelector:void 0,rowHeight:23,selectedPage:0,showAlignmentHelpers:!0,showIndicatorIcons:!0,showMimeTypeIcon:!0},d={showUserTiming:!1,showUserTimingEndMarker:!1};n.makeLegend=function(){return a.makeLegend()},n.fromHar=function(e,t){void 0===t&&(t={});var n=i({},d,t),o=l.transformDoc(e,n);return"function"==typeof t.onParsed&&t.onParsed(o),r(o,t)}},{"./helpers/parse":5,"./legend/legend":7,"./paging/paging":9,"./transformers/har":13,"./waterfall/svg-chart":27}],9:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("../helpers/dom"),i=function(){function e(e,t){void 0===t&&(t=0),this.doc=e,this.selectedPageIndex=t,this.onPageUpdateCbs=[],t>=this.doc.pages.length&&(this.selectedPageIndex=this.doc.pages.length-1)}return e.prototype.getPageCount=function(){return this.doc.pages.length},e.prototype.getSelectedPage=function(){return this.doc.pages[this.selectedPageIndex]},e.prototype.getSelectedPageIndex=function(){return this.selectedPageIndex},e.prototype.setSelectedPageIndex=function(e){var t=this;if(this.selectedPageIndex!==e){if(e<0||e>=this.getPageCount())throw new Error("Page does not exist - Invalid pageIndex selected");this.selectedPageIndex=e;var n=this.doc.pages[this.selectedPageIndex];this.onPageUpdateCbs.forEach(function(e){e(t.selectedPageIndex,n)})}},e.prototype.onPageUpdate=function(e){if(this.getPageCount()>1)return this.onPageUpdateCbs.push(e)},e.prototype.initPagingSelectBox=function(e){var t=this,n=this;this.getPageCount()<=1?e.style.display="none":(r.removeChildren(e),this.doc.pages.forEach(function(n,r){var i=new Option(n.title,r.toString(),!1,r===t.selectedPageIndex);e.add(i)}),e.style.display="block",e.addEventListener("change",function(e){var t=parseInt(e.target.value,10);n.setSelectedPageIndex(t)}))},e}();n.default=i},{"../helpers/dom":1}],10:[function(e,t,n){"use strict";function r(e,t,n){return[["Request Number","#"+n],["Started",new Date(e.startedDateTime).toLocaleString()+(t>0?" ("+l.formatMilliseconds(t)+" after page request started)":"")],["Duration",l.formatMilliseconds(e.time)],["Error/Status Code",e.response.status+" "+e.response.statusText],["Server IPAddress",e.serverIPAddress],["Connection",e.connection],["Browser Priority",e._priority||e._initialPriority],["Was pushed",l.parseAndFormat(e._was_pushed,l.parsePositive,function(){return"yes"})],["Initiator (Loaded by)",e._initiator],["Initiator Line",e._initiator_line],["Host",s.getHeader(e.request.headers,"Host")],["IP",e._ip_addr],["Client Port",l.parseAndFormat(e._client_port,l.parsePositive)],["Expires",e._expires],["Cache Time",l.parseAndFormat(e._cache_time,l.parsePositive,l.formatSeconds)],["CDN Provider",e._cdn_provider],c("ObjectSize",e._objectSize),c("Bytes In (downloaded)",e._bytesIn),c("Bytes Out (uploaded)",e._bytesOut),c("JPEG Scan Count",e._jpeg_scan_count),c("Gzip Total",e._gzip_total),c("Gzip Save",e._gzip_save),c("Minify Total",e._minify_total),c("Minify Save",e._minify_save),c("Image Total",e._image_total),c("Image Save",e._image_save)].filter(p)}function i(e){var t=e.request,n=function(e){return s.getHeaders(t.headers,e)};return u.flattenKvTuple([["Method",t.method],["HTTP Version",t.httpVersion],c("Bytes Out (uploaded)",e._bytesOut),c("Headers Size",t.headersSize),c("Body Size",t.bodySize),["Comment",l.parseAndFormat(t.comment,l.parseNonEmpty)],n("User-Agent"),n("Host"),n("Connection"),n("Accept"),n("Accept-Encoding"),n("Expect"),n("Forwarded"),n("If-Modified-Since"),n("If-Range"),n("If-Unmodified-Since"),d("Querystring parameters count",t.queryString.length),d("Cookies count",t.cookies.length)]).filter(p)}function o(e){var t,n=e.response,r=n.content,i=n.headers,o=function(e,t){return void 0===t&&(t=e),s.getHeaders(i,t)},a=function(e){var t=s.getHeader(i,e);return[e,l.parseAndFormat(t,l.parseDate,l.formatDateLocalized)]},d=s.getHeader(i,"Content-Length");-1!==r.size&&d!==r.size.toString()&&(t=r.size);var h=s.getHeader(i,"Content-Type");return e._contentType&&e._contentType!==h&&(h=h+" | "+e._contentType),u.flattenKvTuple([["Status",n.status+" "+n.statusText],["HTTP Version",n.httpVersion],c("Bytes In (downloaded)",e._bytesIn),c("Headers Size",n.headersSize),c("Body Size",n.bodySize),["Content-Type",h],o("Cache-Control"),o("Content-Encoding"),a("Expires"),a("Last-Modified"),o("Pragma"),c("Content-Length",d),c("Content Size",t),c("Content Compression",r.compression),o("Connection"),o("ETag"),o("Accept-Patch"),["Age",l.parseAndFormat(s.getHeader(i,"Age"),l.parseNonNegative,l.formatSeconds)],o("Allow"),o("Content-Disposition"),o("Location"),o("Strict-Transport-Security"),o("Trailer (for chunked transfer coding)","Trailer"),o("Transfer-Encoding"),o("Upgrade"),o("Vary"),o("Timing-Allow-Origin"),["Redirect URL",l.parseAndFormat(n.redirectURL,l.parseNonEmpty)],["Comment",l.parseAndFormat(n.comment,l.parseNonEmpty)]]).filter(p)}function a(e,t,n){var r=e.timings,i=function(e){return l.parseAndFormat(e,l.parseNonNegative,l.formatMilliseconds)},o="number"!=typeof t||"number"!=typeof n?void 0:n-t,a=i(r.connect);return r.ssl>0&&(a=a+" (without TLS: "+i(r.connect-r.ssl)+")"),[["Total",l.formatMilliseconds(o)],["Blocked",i(r.blocked)],["DNS",i(r.dns)],["Connect",a],["SSL (TLS)",i(r.ssl)],["Send",l.formatMilliseconds(r.send)],["Wait",l.formatMilliseconds(r.wait)],["Receive",l.formatMilliseconds(r.receive)]]}Object.defineProperty(n,"__esModule",{value:!0});var s=e("../helpers/har"),l=e("../helpers/parse"),u=e("./helpers"),c=function(e,t){return[e,l.parseAndFormat(t,l.parsePositive,l.formatBytes)]},d=function(e,t){return[e,l.parseAndFormat(t,l.parsePositive)]},p=function(e){return e.length>1&&void 0!==e[1]&&""!==e[1]};n.getKeys=function(e,t,n,s){var l=e.request.headers,u=e.response.headers,c=function(e){return[e.name,e.value]};return{general:r(e,n,t),request:i(e),requestHeaders:l.map(c),response:o(e),responseHeaders:u.map(c),timings:a(e,n,s)}}},{"../helpers/har":2,"../helpers/parse":5,"./helpers":14}],11:[function(e,t,n){"use strict";function r(e,t){if(e.response.bodySize<1e3)return!1;if(u.contains(["html","css","javascript","svg","plain"],t))return!0;var n=e.response.content.mimeType,r=["application/vnd.ms-fontobject","application/x-font-opentype","application/x-font-truetype","application/x-font-ttf","application/xml","font/eot","font/opentype","font/otf","image/vnd.microsoft.icon"];return!(!u.contains(["text"],n.split("/")[0])&&!u.contains(r,n.split(";")[0]))}function i(e){if("get"!==e.request.method.toLowerCase())return!1;if(204===e.response.status||!u.isInStatusCodeRange(e.response.status,200,299))return!1;var t=e.response.headers;return!(l.hasHeader(t,"Cache-Control")||l.hasHeader(t,"Expires"))}function o(e,t){var n=e.response.headers;return!l.hasHeader(n,"Content-Encoding")&&r(e,t)}function a(e){return 0===e.request.url.indexOf("https://")}function s(e){return 1===function(e){return"string"==typeof e?parseInt(e,10):e}(e._was_pushed)}Object.defineProperty(n,"__esModule",{value:!0});var l=e("../helpers/har"),u=e("../helpers/misc");n.documentIsSecure=function(e){var t=e.filter(function(e){return!e.response.redirectURL})[0];return void 0===t?e.length>0&&a(e[0]):a(t)},n.collectIndicators=function(e,t,n){var r=[];return s(e)&&r.push({description:"Response was pushed by the server using HTTP2 push.",icon:"push",id:"push",title:"Response was pushed by the server",type:"info"}),t&&!a(e)&&r.push({description:"Insecure request, it should use HTTPS.",id:"noTls",title:"Insecure Connection",type:"error"}),i(e)&&r.push({description:"The response is not allow to be cached on the client. Consider setting 'Cache-Control' headers.",id:"noCache",title:"Response not cached",type:"error"}),o(e,n)&&r.push({description:"The response is not compressed. Consider enabling HTTP compression on your server.",id:"noGzip",title:"no gzip",type:"error"}),!e.response.content.mimeType&&u.isInStatusCodeRange(e.response.status,200,299)&&204!==e.response.status&&r.push({description:"Response doesn't contain a 'Content-Type' header.",id:"warning",title:"No MIME Type defined",type:"warning"}),r}},{"../helpers/har":2,"../helpers/misc":4}],12:[function(e,t,n){"use strict";function r(e,t,n){return void 0===n&&(n=""),{content:t,tabClass:n,title:e}}function i(e,t,n){return void 0===n&&(n=""),{renderContent:t,tabClass:n,title:e}}function o(e,t){var n=h.makeDefinitionList(e);if(0===t.length)return r("General",n);var i="<h2>General</h2>\n<dl>"+n+"<dl>",o="",a=t.filter(function(e){return"error"===e.type}).map(function(e){return[e.title,e.description]}),s=t.filter(function(e){return"warning"===e.type}).map(function(e){return[e.title,e.description]}),l=t.filter(function(e){return"error"!==e.type&&"warning"!==e.type}).map(function(e){return[e.title,e.description]});a.length>0&&(o+='<h2 class="no-boder">'+c.pluralize("Error",a.length)+"</h2>\n <dl>"+h.makeDefinitionList(a)+"</dl>"),s.length>0&&(o+='<h2 class="no-boder">'+c.pluralize("Warning",s.length)+"</h2>\n <dl>"+h.makeDefinitionList(s)+"</dl>"),l.length>0&&(o+='<h2 class="no-boder">Info</h2>\n <dl>'+h.makeDefinitionList(l)+"</dl>"),r("General",o+i)}function a(e,t){return r("Request","<dl>\n "+h.makeDefinitionList(e)+"\n </dl>\n <h2>All Request Headers</h2>\n <dl>\n "+h.makeDefinitionList(t)+"\n </dl>")}function s(e,t){return r("Response","<dl>\n "+h.makeDefinitionList(e)+"\n </dl>\n <h2>All Response Headers</h2>\n <dl>\n "+h.makeDefinitionList(t)+"\n </dl>")}function l(e){return i("Raw Data",function(){return"<pre><code>"+d.escapeHtml(JSON.stringify(e,null,2))+"</code></pre>"},"raw-data")}function u(e){return i("Preview",function(t){return'<img class="preview" style="max-height:'+(t-100)+'px"\n data-src="'+d.sanitizeUrlForLink(e.request.url)+'" />'})}Object.defineProperty(n,"__esModule",{value:!0});var c=e("../helpers/misc"),d=e("../helpers/parse"),p=e("./extract-details-keys"),h=e("./helpers");n.makeTabs=function(e,t,n,i,c,d){var f=[],v=p.getKeys(e,t,i,c);return f.push(o(v.general,d)),f.push(a(v.request,v.requestHeaders)),f.push(s(v.response,v.responseHeaders)),f.push(r("Timings",h.makeDefinitionList(v.timings,!0))),f.push(l(e)),"image"===n&&f.push(u(e)),f.filter(function(e){return void 0!==e})}},{"../helpers/misc":4,"../helpers/parse":5,"./extract-details-keys":10,"./helpers":14}],13:[function(e,t,n){"use strict";function r(e,t,n,r){n=Math.round(n);var i=Math.round(o.toInt(e._all_end)||n+e.time),u=l.mimeToRequestType(e.response.content.mimeType),c=a.collectIndicators(e,r,u),d=f(e,c);return l.createWaterfallEntry(e.request.url,n,i,p(n,e),d,s.makeTabs(e,t+1,u,n,i,c))}Object.defineProperty(n,"__esModule",{value:!0});var i=e("../helpers/misc"),o=e("../helpers/parse"),a=e("./har-heuristics"),s=e("./har-tabs"),l=e("./helpers");n.transformDoc=function(e,t){var n=this,r=void 0!==e.log?e.log:e;return{pages:u(r).map(function(e,i){return n.transformPage(r,i,t)})}};var u=function(e){return e.pages&&e.pages.length>0?e.pages:[{id:"",pageTimings:{},startedDateTime:e.entries.reduce(function(e,t){var n=Date.parse(t.startedDateTime);return Date.parse(e)<n?e:t.startedDateTime},e.entries[0].startedDateTime),title:"n/a"}]};n.transformPage=function(e,t,n){void 0===t&&(t=0);var i=void 0!==e.log?e.log:e,o=u(i),s=o[t],l=new Date(s.startedDateTime).getTime(),d=s.pageTimings,p=0,h=a.documentIsSecure(i.entries),f=i.entries.filter(function(e){return 0!==e.request.url.indexOf("data:")&&0!==e.request.url.indexOf("javascript:")&&(1===o.length&&""===s.id||e.pageref===s.id)}).map(function(e,t){var n=new Date(e.startedDateTime).getTime()-l;return p=Math.max(p,n+e.time),r(e,t,n,h)}),v=c(d,s,n);return v.forEach(function(e){e.startTime>p&&(p=e.startTime)}),p+=100,{docIsTLS:h,durationMs:p,entries:f,marks:v,title:s.title}};var c=function(e,t,n){var r=function(e,t){return e.startTime-t.startTime},a=Object.keys(e).filter(function(t){return"number"==typeof e[t]&&e[t]>=0}).map(function(t){return{name:o.escapeHtml(t.replace(/^[_]/,""))+" ("+i.roundNumber(e[t],0)+" ms)",startTime:e[t]}});return n.showUserTiming?d(t,n).concat(a).sort(r):a.sort(r)},d=function(e,t){var n=t.showUserTimingEndMarker?function(e){return 0===e.indexOf("_userTime.")}:function(e){return 0===e.indexOf("_userTime.")&&0!==e.indexOf("_userTime.endTimer-")},r=n;if(Array.isArray(t.showUserTiming)){var i=t.showUserTiming;r=function(e){return n(e)&&i.indexOf(e.replace(/^_userTime\./,""))>=0}}var a=/^_userTime\.((?:startTimer-)?(.+))$/;return Object.keys(e).filter(r).map(function(n){var r,i,s;return l=a.exec(n),i=l[1],r=l[2],i=o.escapeHtml(i),r=o.escapeHtml(r),i!==r&&e["_userTime.endTimer-"+r]?(s=e["_userTime.endTimer-"+r]-e[n],{duration:s,name:(t.showUserTimingEndMarker?i:r)+" ("+e[n]+" - "+(e[n]+s)+" ms)",startTime:e[n]}):{name:i,startTime:e[n]};var l})},p=function(e,t){var n=t.timings;return["blocked","dns","connect","send","wait","receive"].reduce(function(r,i){var o=h(i,t,r,e);if(o.end&&o.start>=o.end)return r;if("connect"===i&&n.ssl&&-1!==n.ssl){var a=parseInt(t._ssl_start,10)||o.start,s=parseInt(t._ssl_end,10)||o.start+n.ssl,u=parseInt(t._ssl_start,10)?o.start:s;return r.concat([l.createWaterfallEntryTiming("ssl",Math.round(a),Math.round(s))]).concat([l.createWaterfallEntryTiming(i,Math.round(u),Math.round(o.end))])}return r.concat([l.createWaterfallEntryTiming(i,Math.round(o.start),Math.round(o.end))])},[])},h=function(e,t,n,r){var i;switch(e){case"wait":i="ttfb";break;case"receive":i="download";break;default:i=e}var o=parseInt(t["_"+i+"_start"],10),a=parseInt(t["_"+i+"_end"],10),s=isNaN(o)?n.length>0?n[n.length-1].end:r:o,l=isNaN(a)?s+t.timings[e]:a;return{end:Math.round(l),start:Math.round(s)}},f=function(e,t){var n=l.mimeToRequestType(e.response.content.mimeType),r=o.toInt(e.response.status);return{icon:l.makeMimeTypeIcon(r,e.response.statusText,n,e.response.redirectURL),indicators:t,requestType:n,rowClass:l.makeRowCssClasses(r),statusCode:r}}},{"../helpers/misc":4,"../helpers/parse":5,"./har-heuristics":11,"./har-tabs":12,"./helpers":14}],14:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("../helpers/misc"),i=e("../helpers/parse"),o=e("../waterfall/row/svg-indicators"),a=function(e){return i.escapeHtml(e).replace("<br/>","<br/>")};n.makeDefinitionList=function(e,t){void 0===t&&(t=!1);var n=function(e){return t?'class="'+(r.toCssClass(e)||"no-colour")+'"':""};return e.filter(function(e){return void 0!==e[1]}).map(function(e){return"\n <dt "+n(e[0])+">"+a(e[0])+"</dt>\n <dd>"+a(e[1])+"</dd>\n "}).join("")},n.mimeToRequestType=function(e){if(void 0===e)return"other";var t=e.split("/"),n=t[1];switch(void 0!==n&&(n=n.indexOf(";")>-1?n.split(";")[0]:n),t[0]){case"image":return"svg+xml"===n?"svg":"image";case"font":return"font";case"video":return"video";case"audio":return"audio"}switch(n){case"xml":case"html":return"html";case"plain":return"plain";case"css":return"css";case"vnd.ms-fontobject":case"font-woff":case"font-woff2":case"x-font-truetype":case"x-font-opentype":case"x-font-woff":return"font";case"javascript":case"x-javascript":case"script":case"json":return"javascript";case"x-shockwave-flash":return"flash";default:return"other"}},n.createWaterfallEntry=function(e,t,n,r,i,o){return void 0===r&&(r=[]),{end:n,responseDetails:i,segments:r,start:t,tabs:o,total:"number"!=typeof t||"number"!=typeof n?void 0:n-t,url:e}},n.createWaterfallEntryTiming=function(e,t,n){return{end:n,start:t,total:"number"!=typeof t||"number"!=typeof n?void 0:n-t,type:i.sanitizeAlphaNumeric(e)}},n.makeRowCssClasses=function(e){var t=["row-item"];return r.isInStatusCodeRange(e,500,599)?t.push("status5xx"):r.isInStatusCodeRange(e,400,499)?t.push("status4xx"):304!==e&&r.isInStatusCodeRange(e,300,399)&&t.push("status3xx"),t.join(" ")},n.makeMimeTypeIcon=function(e,t,n,a){if(void 0===a&&(a=""),a){var s=encodeURI(a.split("?")[0]||"");return o.makeIcon("err3xx",e+" response status: Redirect to "+i.escapeHtml(s)+"...")}return r.isInStatusCodeRange(e,400,499)?o.makeIcon("err4xx",e+" response status: "+i.escapeHtml(t)):r.isInStatusCodeRange(e,500,599)?o.makeIcon("err5xx",e+" response status: "+i.escapeHtml(t)):204===e?o.makeIcon("plain","No content"):o.makeIcon(i.sanitizeAlphaNumeric(n),i.escapeHtml(n))},n.flattenKvTuple=function(e){var t=[];return e.forEach(function(e){void 0!==e&&0!==e.length&&(Array.isArray(e[0])?t.push.apply(t,e):t.push(e))}),t}},{"../helpers/misc":4,"../helpers/parse":5,"../waterfall/row/svg-indicators":20}],15:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.requestTypeToCssClass=function(e){return"block-"+e},n.timingTypeToCssClass=function(e){return"block-"+e}},{}],16:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("../../helpers/dom"),i=e("../../helpers/parse");n.createDetailsBody=function(e,t,n){var o=r.makeHtmlEl(),a=r.makeBodyEl(),s=n.tabs.map(function(e){return'<li><button class="tab-button">'+e.title+"</button></li>"}).join("\n"),l=n.tabs.map(function(e){var n="tab";e.tabClass&&(n+=" "+e.tabClass);var r="";if(e.content)r=e.content;else{if("function"!=typeof e.renderContent)throw TypeError("Invalid Details Tab");r=e.renderContent(t),e.content=r}return'<div class="tab '+n+'">'+r+"</div>"}).join("\n");return a.innerHTML='\n <div class="wrapper">\n <header class="type-'+n.responseDetails.requestType+'">\n <h3><strong>#'+e+'</strong> <a href="'+i.sanitizeUrlForLink(n.url)+'">\n '+i.escapeHtml(n.url)+'\n </a></h3>\n <nav class="tab-nav">\n <ul>\n '+s+"\n </ul>\n </nav>\n </header>\n "+l+"\n </div>\n ",o.appendChild(a),o}},{"../../helpers/dom":1,"../../helpers/parse":5}],17:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("../../helpers/dom"),i=e("../../helpers/misc"),o=e("./svg-details-overlay"),a=function(){function e(e){this.context=e,this.openOverlays=[],this.realignRow=function(e,t){e.setAttribute("transform","translate(0, "+t+")")}}return e.prototype.getCombinedOverlayHeight=function(){return this.openOverlays.reduce(function(e,t){return e+t.height},0)},e.prototype.openOverlay=function(e,t,n,r,i){if(!this.openOverlays.some(function(t){return t.index===e})){var o=this,a={defaultY:t,entry:r,index:e,onClose:function(){o.closeOverlay(e,n,i)},openTabIndex:0};this.openOverlays.push(a),this.openOverlays=this.openOverlays.sort(function(e,t){return e.index>t.index?1:-1}),this.renderOverlays(n,i),this.context.pubSub.publishToOverlayChanges({changedIndex:e,combinedOverlayHeight:o.getCombinedOverlayHeight(),type:"open"})}},e.prototype.toggleOverlay=function(e,t,n,r,i){this.openOverlays.some(function(t){return t.index===e})?this.closeOverlay(e,n,i):this.openOverlay(e,t,n,r,i)},e.prototype.closeOverlay=function(e,t,n){var r=this;this.openOverlays.splice(this.openOverlays.reduce(function(t,n,r){return n.index===e?r:t},-1),1),this.renderOverlays(t,n),this.context.pubSub.publishToOverlayChanges({changedIndex:e,combinedOverlayHeight:r.getCombinedOverlayHeight(),type:"closed"})},e.prototype.renderOverlays=function(t,n){var a=this,s=0,l=function(e,t,n){s+=n,e.actualY=t,e.height=n},u=function(n,i){var a=i.defaultY+s,u=o.createRowInfoOverlay(i,a,t),c=u.querySelector("img.preview");c&&!c.src&&c.setAttribute("src",c.attributes.getNamedItem("data-src").value),u.querySelector("a").addEventListener("keydown",e.firstElKeypress),r.getLastItemOfNodeList(u.querySelectorAll("button")).addEventListener("keydown",e.lastElKeypress),n.appendChild(u),l(i,a,u.getBoundingClientRect().height)};n.forEach(function(t,n){var o=i.find(a.openOverlays,function(e){return e.index===n}),c=t.nextElementSibling.firstElementChild;if(a.realignRow(t,s),void 0!==o){if(c){var d=c.querySelector(".info-overlay-bg"),p=c.querySelector("foreignObject"),h=c.querySelector(".info-overlay-close-btn rect"),f=c.querySelector(".info-overlay-close-btn text");return l(o,o.defaultY+s,o.height),d.setAttribute("y",o.actualY.toString()),p.setAttribute("y",o.actualY.toString()),f.setAttribute("y",o.actualY.toString()),void h.setAttribute("y",o.actualY.toString())}u(t.nextElementSibling,o)}else c&&(t.nextElementSibling.querySelector("a").removeEventListener("keydown",e.firstElKeypress),r.getLastItemOfNodeList(t.nextElementSibling.querySelectorAll("button")).removeEventListener("keydown",e.lastElKeypress),r.removeChildren(t.nextElementSibling))})},e}();a.showFullName=function(e){e.getElementsByClassName("row-fixed").item(0).dispatchEvent(new MouseEvent("mouseenter"))},a.firstElKeypress=function(e){if(i.isTabUp(e)){var t=r.getParentByClassName(e.target,"row-overlay-holder");t&&t.previousElementSibling&&a.showFullName(t.previousElementSibling)}},a.lastElKeypress=function(e){if(i.isTabDown(e)){var t=r.getParentByClassName(e.target,"row-overlay-holder");t&&t.nextElementSibling&&a.showFullName(t.nextElementSibling)}},n.OverlayManager=a,n.default=a},{"../../helpers/dom":1,"../../helpers/misc":4,"./svg-details-overlay":19}],18:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(){this.subscribers=[]}return e.prototype.subscribeToOverlayChanges=function(e){this.subscribers.push(e)},e.prototype.subscribeToSpecificOverlayChanges=function(e,t){this.subscribers.push(function(n){n.changedIndex===e&&t(n)})},e.prototype.publishToOverlayChanges=function(e){this.subscribers.forEach(function(t){return t(e)})},e}();n.PubSub=r,n.default=r},{}],19:[function(e,t,n){"use strict";function r(e){var t=a.newA("info-overlay-close-btn");return t.appendChild(a.newRect({height:23,width:23,x:"100%",y:e})),t.appendChild(a.newTextEl("✕",{dx:7,dy:16,x:"100%",y:e})),t.appendChild(a.newTitle("Close Overlay")),t}function i(e,t){var n=a.newG("info-overlay-holder"),r=a.newRect({height:t,rx:2,ry:2,width:"100%",x:"0",y:e},"info-overlay-bg");return n.appendChild(r),n}Object.defineProperty(n,"__esModule",{value:!0});var o=e("../../helpers/dom"),a=e("../../helpers/svg"),s=e("./html-details-body");n.createRowInfoOverlay=function(e,t,n){var l=e.index+1,u=i(t,n),c=a.newForeignObject({height:n,width:"100%",x:"0",y:t}),d=r(t);d.addEventListener("click",function(){return e.onClose(e.index)});var p=s.createDetailsBody(l,n,e.entry),h=p.getElementsByClassName("tab-button"),f=p.getElementsByClassName("tab"),v=function(t){e.openTabIndex=t,o.forEachNodeList(f,function(e,n){e.style.display=t===n?"block":"none",h.item(n).classList.toggle("active",t===n)})};return o.forEachNodeList(h,function(e,t){e.addEventListener("click",function(){return v(t)})}),v(e.openTabIndex),c.appendChild(p),u.appendChild(c),u.appendChild(d),u}},{"../../helpers/dom":1,"../../helpers/svg":6,"./html-details-body":16}],20:[function(e,t,n){"use strict";function r(e,t){return{type:e,title:t,width:20}}Object.defineProperty(n,"__esModule",{value:!0});var i=e("../../helpers/misc");n.makeIcon=r,n.getIndicatorIcons=function(e){var t=e.responseDetails.indicators;if(0===t.length)return[];var n=[],o="",a=t.filter(function(e){return"error"===e.type}),s=t.filter(function(e){return"warning"===e.type}),l=t.filter(function(e){return"error"!==e.type&&"warning"!==e.type});return a.length>0&&(n.push(i.pluralize("Error",a.length)+":\n "+a.map(function(e){return e.title}).join("\n")),o="error"),s.length>0&&(n.push(i.pluralize("Warning",s.length)+":\n"+s.map(function(e){return e.title}).join("\n")),o=o||"warning"),l.length>0&&(n.push("Info:\n"+l.map(function(e){return e.title}).join("\n")),o=o||1!==l.length?o||"info":l[0].icon||l[0].type),[r(o,n.join("\n"))]}},{"../../helpers/misc":4}],21:[function(e,t,n){"use strict";function r(e,t){var n=u.newG(""),r=e.height-1,i=l.roundNumber(e.x/e.unit)+"%",o=u.newRect({height:r,width:l.roundNumber(e.width/e.unit)+"%",x:i,y:e.y},t);if(n.appendChild(o),e.label){var a,c;o.addEventListener("mouseenter",function(){c||(c=s.getParentByClassName(o,"water-fall-chart").querySelector(".tooltip")),a=setTimeout(function(){a=null,d.onHoverInShowTooltip(o,e,c)},100)}),o.addEventListener("mouseleave",function(){a?clearTimeout(a):d.onHoverOutShowTooltip(o)})}return e.showOverlay&&e.hideOverlay&&(o.addEventListener("mouseenter",e.showOverlay(e)),o.addEventListener("mouseleave",e.hideOverlay(e))),n}function i(e,t){return{cssClass:c.timingTypeToCssClass(e.type),height:t.height-6,hideOverlay:t.hideOverlay,label:"<strong>"+e.type+"</strong><br/>"+Math.round(e.start)+"ms - "+Math.round(e.end)+"ms<br/>total: "+Math.round(e.total)+"ms",showOverlay:t.showOverlay,unit:t.unit,width:e.total,x:e.start||.001,y:t.y}}function o(e,t,n){var r=e.y+e.height/1.5,i=Math.round(t)+" ms",o=(e.x+e.width)/e.unit+1,a=u.newTextEl(i,{x:l.roundNumber(o)+"%",y:r});return o+8*i.length/500*100>100&&(o=n/e.unit-1,a=u.newTextEl(i,{x:l.roundNumber(o)+"%",y:r},{textAnchor:"end"})),a}function a(e,t,n,r){var i=l.resourceUrlFormatter(n,125);t=t+Math.round(r/2)+5;var o=u.newTextEl(i,{x:e,y:t});return o.appendChild(u.newTitle(n)),o.style.opacity=n.match(/js.map$/)?"0.5":"1",o}Object.defineProperty(n,"__esModule",{value:!0});var s=e("../../helpers/dom"),l=e("../../helpers/misc"),u=e("../../helpers/svg"),c=e("../../transformers/styling-converters"),d=e("./svg-tooltip");n.createRect=function(e,t,n){var a=r(e,"time-block "+e.cssClass),s=u.newG("rect-holder"),l=e.x;return s.appendChild(a),t&&t.length>0&&(t.forEach(function(t){if(t.total>0&&"number"==typeof t.start){var n=i(t,e),o=r(n,"segment "+n.cssClass);l=Math.min(l,n.x),s.appendChild(o)}}),s.appendChild(o(e,n,l))),s},n.createRequestNumberLabel=function(e,t,n,r,i){return t+=Math.round(r/2)+5,e+=i,u.newTextEl(n,{x:e,y:t},{"text-anchor":"end"})},n.createRequestLabelClipped=function(e,t,n,r){var i=a(e,t,n,r);return i.style.clipPath="url(#titleClipPath)",i},n.createRequestLabelFull=function(e,t,n,r){var i=a(e,t,n,r),o=u.newG("full-label",{},{clipPath:"url(#titleFullClipPath)"});return o.appendChild(u.newRect({height:r-4,rx:5,ry:5,width:500,x:e-3,y:t+3},"label-full-bg")),o.appendChild(i),o};var p="function"==typeof window.requestAnimationFrame&&"function"==typeof window.cancelAnimationFrame;n.appendRequestLabels=function(e,t,n,r){var i=r.getElementsByTagName("rect")[0],o=r.getElementsByTagName("text")[0];r.style.display="none",r.style.visibility="hidden",e.appendChild(t),e.appendChild(n),e.appendChild(r);var a,s=!1;e.addEventListener("mouseenter",function(){r.style.display="block",n.style.display="none",r.style.visibility="visible";var e=function(){var e=o.getComputedTextLength()+10;i.setAttribute("width",e.toString()),s=!0,a=void 0};s||(p?a=window.requestAnimationFrame(e):e())}),e.addEventListener("mouseleave",function(){n.style.display="block",r.style.display="none",r.style.visibility="hidden",p&&void 0!==a&&cancelAnimationFrame(a)})},n.createBgStripe=function(e,t,n){var r=n?"even":"odd";return u.newRect({height:t,width:"100%",x:0,y:e},r)},n.createNameRowBg=function(e,t){var n=u.newG("row row-fixed");return n.appendChild(u.newRect({height:t,width:"100%",x:"0",y:e},"",{opacity:0})),n},n.createRowBg=function(e,t){var n=u.newG("row row-flex");return n.appendChild(u.newRect({height:t,width:"100%",x:"0",y:e},"",{opacity:0})),n}},{"../../helpers/dom":1,"../../helpers/misc":4,"../../helpers/svg":6,"../../transformers/styling-converters":15,"./svg-tooltip":23}],22:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("../../helpers/icons"),i=e("../../helpers/misc"),o=e("../../helpers/svg"),a=e("./svg-indicators"),s=e("./svg-row-subcomponents"),l=o.newClipPath("titleClipPath");l.appendChild(o.newRect({height:"100%",width:"100%"}));var u=o.newClipPath("titleFullClipPath");u.appendChild(o.newRect({height:"100%",width:"100%"}));var c=3;n.createRow=function(e,t,n,d,p,h,f){var v=p.y,m=p.height,g=e.options.leftColumnWith,y=o.newA(h.responseDetails.rowClass);y.setAttribute("tabindex","0"),y.setAttribute("xlink:href","javascript:void(0)");var w=o.newSvg("left-fixed-holder",{width:g+"%",x:"0"}),b=o.newSvg("flex-scale-waterfall",{width:100-g+"%",x:g+"%"}),C=s.createRect(p,h.segments,h.total),x=s.createNameRowBg(v,m),q=s.createRowBg(v,m),T=s.createBgStripe(v,m,t%2==0),S=c+n;if(e.options.showMimeTypeIcon){var E=h.responseDetails.icon;S-=E.width,x.appendChild(r[E.type](S,v+3,E.title))}e.options.showIndicatorIcons&&a.getIndicatorIcons(h).forEach(function(e){S-=e.width,x.appendChild(r[e.type](S,v+3,e.title))}),S=c+n;var M=""+(t+1),L=s.createRequestNumberLabel(S,v,M,m,d);S+=d+4;var P=s.createRequestLabelClipped(S,v,i.resourceUrlFormatter(h.url,40),m),_=s.createRequestLabelFull(S,v,h.url,m);q.appendChild(C),s.appendRequestLabels(x,L,P,_),e.pubSub.subscribeToSpecificOverlayChanges(t,function(e){O="open"===e.type}),t>0&&e.pubSub.subscribeToSpecificOverlayChanges(t-1,function(e){N="open"===e.type});var O,N;return y.addEventListener("click",function(e){e.preventDefault(),f(e)}),y.addEventListener("keydown",function(e){if(32===e.which||13===e.which)return e.preventDefault(),f(e);i.isTabUp(e)&&!N&&t>0?y.previousSibling.previousSibling.lastChild.lastChild.dispatchEvent(new MouseEvent("mouseenter")):!i.isTabDown(e)||O||y.nextSibling&&y.nextSibling.nextSibling&&y.nextSibling.nextSibling.lastChild.lastChild.dispatchEvent(new MouseEvent("mouseenter"))}),y.addEventListener("focusout",function(){x.dispatchEvent(new MouseEvent("mouseleave"))}),b.appendChild(q),w.appendChild(l.cloneNode(!0)),w.appendChild(x),y.appendChild(u.cloneNode(!0)),y.appendChild(T),y.appendChild(b),y.appendChild(w),y}},{"../../helpers/icons":3,"../../helpers/misc":4,"../../helpers/svg":6,"./svg-indicators":20,"./svg-row-subcomponents":21}],23:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("../../helpers/dom"),i=e("../../helpers/svg"),o=/(?:translate)\(.+[, ]+(.+)\)/,a=function(e){void 0===e&&(e="");var t=o.exec(e);return t&&t.length>=2?parseInt(t[1],10):0};n.onHoverInShowTooltip=function(e,t,n){var i=n.querySelector(".tooltip-payload"),o=r.getParentByClassName(e,"row-item"),s=a(o.getAttribute("transform")),l=parseInt(e.getAttribute("y"),10),u=e.getAttribute("x"),c=parseFloat(u),d=50,p=e.width.baseVal.value||e.getBoundingClientRect().width,h=p/(t.width/t.unit),f=t.width/t.unit/p,v=c>50&&(95-c)*h<200;i.innerHTML=t.label,r.addClass(i,"no-anim"),n.style.display="block",i.style.opacity="0.01";var m=i.clientHeight+5;if(d=l+s-m>0?s-m:s+t.height+10,v){var g=c-(i.clientWidth+5)*f,y=parseInt(n.querySelector("body").style.left,10);y*=1/(.01*(100-y)),i.style.left=g>-y?g+"%":-y+"%"}else i.style.left=u;n.setAttribute("y",""+(l+d)),n.setAttribute("height",m.toString()),r.removeClass(i,"no-anim"),i.style.opacity="1";var w=i.clientHeight+5-m;0!==w&&(n.setAttribute("height",(m+w).toString()),n.setAttribute("y",""+(l+d-w)))},n.onHoverOutShowTooltip=function(e){var t=r.getParentByClassName(e,"water-fall-chart").querySelector(".tooltip"),n=t.querySelector(".tooltip-payload");t.style.display="none",t.setAttribute("height","250"),n.style.opacity="0"},n.makeTooltip=function(e){var t=e.leftColumnWith,n=i.newSvg("tooltip-holder",{width:"100%",x:"0",y:"0"}),o=i.newForeignObject({width:"100%",x:"0",y:t+"%"},"tooltip",{display:"none"}),a=r.makeHtmlEl(),s=r.makeBodyEl({left:t+"%",width:100-t+"%"},'<div class="tooltip-payload" style="max-width: 200px; opacity: 0;"></div>');return a.appendChild(s),o.appendChild(a),n.appendChild(o),n}},{"../../helpers/dom":1,"../../helpers/svg":6}],24:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("../../helpers/dom"),i=e("../../helpers/svg");n.createAlignmentLines=function(e){return{endline:i.newLine({x1:"0",x2:"0",y1:"0",y2:e},"line-end"),startline:i.newLine({x1:"0",x2:"0",y1:"0",y2:e},"line-start")}},n.makeHoverEvtListeners=function(e){return{onMouseEnterPartial:function(){return function(t){var n=t.target;r.addClass(n,"active");var i=n.x.baseVal.valueInSpecifiedUnits+n.width.baseVal.valueInSpecifiedUnits+"%",o=n.x.baseVal.valueInSpecifiedUnits+"%";e.endline.x1.baseVal.valueAsString=i,e.endline.x2.baseVal.valueAsString=i,e.startline.x1.baseVal.valueAsString=o,e.startline.x2.baseVal.valueAsString=o,r.addClass(e.endline,"active"),r.addClass(e.startline,"active")}},onMouseLeavePartial:function(){return function(t){var n=t.target;r.removeClass(n,"active"),r.removeClass(e.endline,"active"),r.removeClass(e.startline,"active")}}}}},{"../../helpers/dom":1,"../../helpers/svg":6}],25:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("../../helpers/misc"),i=e("../../helpers/svg"),o=function(e,t,n,o,a){void 0===a&&(a=!1);var s,l=e.diagramHeight,u=100/n,c="sub-second-line";if(a){var d=o>n-.2;c="second-line";var p=r.roundNumber(u*o)+.5+"%",h={};d&&(p=r.roundNumber(u*o)-.5+"%",h["text-anchor"]="end"),s=i.newTextEl(o+"s",{x:p,y:l},h)}var f=r.roundNumber(u*o)+"%",v=i.newLine({x1:f,x2:f,y1:0,y2:l},c);e.pubSub.subscribeToOverlayChanges(function(e){var t=e.combinedOverlayHeight,n=(l+t)/l;v.setAttribute("transform","scale(1, "+n+")"),a&&s.setAttribute("transform","translate(0, "+t+")")}),t.appendChild(v),a&&t.appendChild(s)};n.createTimeScale=function(e,t){for(var n=i.newG("time-scale full-width"),r=200*Math.ceil(t/1e4),a=1e3/r,s=t/1e3,l=t/r,u=0;u<=l;u++)o(e,n,s,u/a,u%a<1e-9);return n}},{"../../helpers/misc":4,"../../helpers/svg":6}],26:[function(e,t,n){"use strict";function r(e,t){var n=a.newG("line-mark-holder line-marker-"+o.toCssClass(t.name));return n.appendChild(a.newTitle(t.name.replace(/^startTimer-/,""))),n.appendChild(a.newRect({height:e.diagramHeight,width:(t.duration||1)/e.unit+"%",x:(t.startTime||.001)/e.unit+"%",y:0},"line-mark")),n}Object.defineProperty(n,"__esModule",{value:!0});var i=e("../../helpers/dom"),o=e("../../helpers/misc"),a=e("../../helpers/svg");n.createMarks=function(e,t){var n=e.diagramHeight,s=a.newG("marker-holder",{transform:"scale(1, 1)"});return t.forEach(function(l,u){var c=o.roundNumber(l.startTime/e.unit),d=a.newG("mark-holder type-"+l.name.toLowerCase().replace(/([0-9]+[ ]?ms)|\W/g,"")),p=a.newG("line-holder"),h=a.newG("line-label-holder"),f=a.newTextEl(l.name,{x:c+"%",y:n+25});f.setAttribute("writing-mode","tb");var v;l.x=c;var m=a.newLine({x1:c+"%",x2:c+"%",y1:0,y2:n}),g=t[u-1];g&&l.x-g.x<2.5&&(f.setAttribute("x",g.x+2.5+"%"),l.x=g.x+2.5);var y=a.newLine({x1:c+"%",x2:l.x+"%",y1:n,y2:n+23});p.appendChild(m),p.appendChild(y),l.duration&&(v=r(e,l),p.appendChild(v)),e.pubSub.subscribeToOverlayChanges(function(e){var t=e.combinedOverlayHeight,r=(n+t)/n;m.setAttribute("transform","scale(1, "+r+")"),h.setAttribute("transform","translate(0, "+t+")"),y.setAttribute("transform","translate(0, "+t+")"),v&&v.setAttribute("transform","translate(0, "+t+")")});var w=!1,b=!1;f.addEventListener("mouseenter",function(){w||(d.parentNode.appendChild(d),w=!0,"function"==typeof window.requestAnimationFrame?window.requestAnimationFrame(function(){return i.addClass(p,"active")}):i.addClass(p,"active"))}),f.addEventListener("mouseleave",function(){w=!1,b||i.removeClass(p,"active")}),f.addEventListener("click",function(){b?(w=!1,i.removeClass(p,"active")):w?w=!1:i.addClass(p,"active"),b=!b}),h.appendChild(f),d.appendChild(a.newTitle(l.name)),d.appendChild(p),d.appendChild(h),s.appendChild(d)}),s},n.createLineRect=r},{"../../helpers/dom":1,"../../helpers/misc":4,"../../helpers/svg":6}],27:[function(e,t,n){"use strict";function r(e){for(var t=Math.floor(Math.log(e)/Math.LN10)+1,n="",r=0;r<t;r++)n+="0";return n}function i(e,t){var n=e.reduce(function(e,t){var n={x:0,y:0};return Math.max(e,a.getNodeTextWidth(a.newTextEl(t.name,n),!0))},0);return Math.floor(t+n+35)}function o(e,t,n){var r=e.durationMs/100,i={diagramHeight:(n.length+1)*t.rowHeight,options:t,overlayManager:void 0,pubSub:new u.PubSub,unit:r};return i.overlayManager=new l.default(i),i}Object.defineProperty(n,"__esModule",{value:!0});var a=e("../helpers/svg"),s=e("../transformers/styling-converters"),l=e("./details-overlay/overlay-manager"),u=e("./details-overlay/pub-sub"),c=e("./row/svg-row"),d=e("./row/svg-tooltip"),p=e("./sub-components/svg-alignment-helper"),h=e("./sub-components/svg-general-components"),f=e("./sub-components/svg-marks");n.createWaterfallSvg=function(e,t){function n(){return w+y.overlayManager.getCombinedOverlayHeight()}var l,u,v=e.entries.filter(function(e){return"number"==typeof e.start&&"number"==typeof e.total}).sort(function(e,t){return(e.start||0)-(t.start||0)}),m=a.newG("overlays"),g=a.newG("rows-holder"),y=o(e,t,v),w=i(e.marks,y.diagramHeight),b=a.newSvg("water-fall-chart",{height:w}),C=a.newSvg("scale-and-marks-holder",{width:100-t.leftColumnWith+"%",x:t.leftColumnWith+"%"});if(t.showAlignmentHelpers){l=a.newG("hover-overlays");var x=p.createAlignmentLines(y.diagramHeight);l.appendChild(x.startline),l.appendChild(x.endline),u=p.makeHoverEvtListeners(x)}C.appendChild(h.createTimeScale(y,e.durationMs)),C.appendChild(f.createMarks(y,e.marks));var q=v[0].responseDetails.icon.width,T=0;if(t.showMimeTypeIcon&&(T+=1),t.showIndicatorIcons){var S=v.map(function(e){return e.responseDetails.indicators.length>0?1:0});T+=Math.max.apply(null,S)}var E=T*q,M=r(v.length),L=a.getNodeTextWidth(a.newTextEl(""+M),!0),P=[];return y.pubSub.subscribeToOverlayChanges(function(){var e=n();b.classList.toggle("closing",e<b.clientHeight),b.style.height=e+"px"}),v.forEach(function(e,n){var r=e.total||1,i=t.rowHeight*n,o=e.start||.001,l={cssClass:s.requestTypeToCssClass(e.responseDetails.requestType),height:t.rowHeight,hideOverlay:t.showAlignmentHelpers?u.onMouseLeavePartial:void 0,label:"<strong>"+e.url+"</strong><br/>"+Math.round(e.start)+"ms - "+Math.round(e.end)+"ms<br/>total: "+Math.round(e.total)+"ms",showOverlay:t.showAlignmentHelpers?u.onMouseEnterPartial:void 0,unit:y.unit,width:r,x:o,y:i},d=c.createRow(y,n,E,L,l,e,function(){y.overlayManager.toggleOverlay(n,i+t.rowHeight,450,e,P)});P.push(d),g.appendChild(d),g.appendChild(a.newG("row-overlay-holder"))}),t.showAlignmentHelpers&&C.appendChild(l),b.appendChild(C),b.appendChild(g),b.appendChild(m),b.appendChild(d.makeTooltip(t)),b}},{"../helpers/svg":6,"../transformers/styling-converters":15,"./details-overlay/overlay-manager":17,"./details-overlay/pub-sub":18,"./row/svg-row":22,"./row/svg-tooltip":23,"./sub-components/svg-alignment-helper":24,"./sub-components/svg-general-components":25,"./sub-components/svg-marks":26}]},{},[8])(8)}); | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).perfCascade=e()}}(function(){return function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return i(n||e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){"use strict";function r(e,t,n){t in e.style?e.style[t]=n:console.warn(new Error("Trying to set non-existing style "+t+" = "+n+" on a <"+e.tagName.toLowerCase()+">."))}function i(e,t,n){t in e||console.warn(new Error("Trying to set non-existing attribute "+t+" = "+n+" on a <"+e.tagName.toLowerCase()+">.")),e.setAttributeNS(null,t,n)}function o(e,t){Object.keys(t).forEach(function(n){r(e,n,t[n].toString())})}Object.defineProperty(n,"__esModule",{value:!0}),n.addClass=function(e,t){var n=e.classList;return n?t.split(" ").forEach(function(e){return n.add(e)}):e.setAttribute("class",e.getAttribute("class")+" "+t),e},n.removeClass=function(e,t){var n=e.classList;return n?n.remove(t):e.setAttribute("class",e.getAttribute("class").replace(new RegExp("(\\s|^)"+t+"(\\s|$)","g"),"$2")),e},n.getParentByClassName=function(e,t){if("function"==typeof e.closest)return e.closest("."+t);for(;e;){if(e.classList.contains(t))return e;e=e.parentElement}},n.removeChildren=function(e){for(;e.hasChildNodes();)e.removeChild(e.lastChild);return e},n.getLastItemOfNodeList=function(e){if(e&&0!==e.length)return e.item(e.length-1)},n.forEachNodeList=function(e,t){Array.prototype.forEach.call(e,t)},n.safeSetStyle=r,n.safeSetAttribute=i,n.safeSetStyles=o,n.safeSetAttributes=function(e,t){Object.keys(t).forEach(function(n){i(e,n,t[n].toString())})},n.makeHtmlEl=function(){var e=document.createElement("html");return e.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/xmlns/"),e},n.makeBodyEl=function(e,t){void 0===e&&(e={}),void 0===t&&(t="");var n=document.createElement("body");return n.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),o(n,e),n.innerHTML=t,n}},{}],2:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(e){return function(t){return t.name.toLowerCase()===e}};n.hasHeader=function(e,t){var n=r(t.toLowerCase());return e.some(n)};var i=!!Array.prototype.find;n.getHeader=function(e,t){var n,o=r(t.toLowerCase());return n=i?e.find(o):e.map(o).pop(),n?n.value:void 0},n.getHeaders=function(e,t){var n=r(t.toLowerCase());return e.filter(n).map(function(e){return[t,e.value]})}},{}],3:[function(e,t,n){"use strict";function r(e,t,n,r){if(void 0===r&&(r=1),void 0===p){p=a.newPath("M6 6q0 .75-.525 1.275Q4.95 7.8 4.2 7.8q-.75 0-1.275-.525Q2.4 6.75 2.4\n 6q0-.75.525-1.275Q3.45 4.2 4.2 4.2q.75 0 1.275.525Q6 5.25 6 6zm9.6 3.6v4.2H2.4V12l3-3\n 1.5 1.5 4.8-4.8zm.9-6.6h-15q-.122 0-.21.09-.09.088-.09.21v11.4q0\n .122.09.21.088.09.21.09h15q.122 0 .21-.09.09-.088.09-.21V3.3q0-.122-.09-.21Q16.623\n 3 16.5 3zm1.5.3v11.4q0 .62-.44 1.06-.44.44-1.06.44h-15q-.62 0-1.06-.44Q0 15.32 0\n 14.7V3.3q0-.62.44-1.06.44-.44 1.06-.44h15q.62 0 1.06.44.44.44.44 1.06z")}return s(e,t,n,"icon-image",r,p.cloneNode(!1))}function i(e,t,n,r){if(void 0===r&&(r=1),void 0===v){v=a.newPath("M6 6q0 .75-.525 1.275Q4.95 7.8 4.2 7.8q-.75 0-1.275-.525Q2.4 6.75 2.4\n 6q0-.75.525-1.275Q3.45 4.2 4.2 4.2q.75 0 1.275.525Q6 5.25 6 6zm9.6 3.6v4.2H2.4V12l3-3\n 1.5 1.5 4.8-4.8zm.9-6.6h-15q-.122 0-.21.09-.09.088-.09.21v11.4q0\n .122.09.21.088.09.21.09h15q.122 0 .21-.09.09-.088.09-.21V3.3q0-.122-.09-.21Q16.623\n 3 16.5 3zm1.5.3v11.4q0 .62-.44 1.06-.44.44-1.06.44h-15q-.62 0-1.06-.44Q0 15.32 0\n 14.7V3.3q0-.62.44-1.06.44-.44 1.06-.44h15q.62 0 1.06.44.44.44.44 1.06z")}return s(e,t,n,"icon-warning",r,v.cloneNode(!1))}Object.defineProperty(n,"__esModule",{value:!0});var o,a=e("./svg"),s=function(e,t,n,r,i,o){var s=a.newSvg("",{x:e,y:t}),l=a.newG("icon "+r,{transform:"scale("+i+")"});return l.appendChild(o),l.appendChild(a.newTitle(n)),s.appendChild(l),s};n.noTls=function(e,t,n,r){void 0===r&&(r=1),void 0===o&&(o=a.newPath("M18 6.216v2.77q0 .28-.206.486-.205.206-.486.206h-.693q-.28 0-.486-.206-.21-.205-.21\n -.487v-2.77q0-1.145-.81-1.957-.813-.81-1.96-.81-1.146 0-1.957.81-.81.812-.81 1.958v2.077h1.037q.434\n 0 .737.303.302.303.302.736v6.23q0 .433-.305.736t-.737.303H1.038q-.433 0-.736-.3Q0 15.996 0\n 15.56V9.33q0-.433.303-.736t.735-.303h7.27V6.218q0-2 1.422-3.423 1.423-1.423 3.424-1.423 2\n 0 3.424 1.424Q18 4.214 18 6.216"));return s(e,t,n,"icon-no-tls",r,o.cloneNode(!1))};var l;n.err3xx=function(e,t,n,r){void 0===r&&(r=1),void 0===l&&(l=a.newPath("M17 2.333V7q0 .27-.198.47-.198.197-.47.197h-4.665q-.438 0-.615-.417-.177-.406.146-.72l1.437-1.436Q11.095\n 3.667 9 3.667q-1.083 0-2.068.422-.984.42-1.703 1.14-.72.715-1.14 1.7-.426.984-.426 2.07 0 1.08.422 2.065.42.984\n 1.14 1.703.718.72 1.702 1.14.984.422 2.067.422 1.24 0 2.344-.54 1.104-.543 1.864-1.533.073-.105.24-.126.146 0\n .26.095l1.427 1.436q.095.084.1.214.006.13-.08.234-1.133 1.376-2.75 2.13Q10.793 17 9 17q-1.625\n 0-3.104-.635-1.48-.636-2.552-1.71-1.073-1.072-1.71-2.55Q1 10.625 1 9t.635-3.104q.636-1.48 1.71-2.552\n 1.072-1.073 2.55-1.71Q7.375 1 9 1q1.53 0 2.964.578 1.432.578 2.546\n 1.63l1.355-1.343q.302-.323.73-.146.405.173.405.61z"));return s(e,t,n,"icon-redirect",r,l.cloneNode(!1))},n.err4xx=function(e,t,n,r){return void 0===r&&(r=1),i(e,t,n,r)},n.err5xx=function(e,t,n,r){return void 0===r&&(r=1),i(e,t,n,r)};var u;n.plain=function(e,t,n,r){void 0===r&&(r=1),void 0===u&&(u=a.newPath("M15.247 4.393q.25.25.43.678.177.43.177.79v10.287q0\n .357-.25.607t-.607.25h-12q-.357 0-.607-.25t-.25-.606V1.858q0-.358.25-.608T2.997 1h8q.357 0\n .786.18.428.177.678.427zm-3.964-2.18V5.57h3.357q-.09-.256-.196-.364L11.65 2.41q-.108-.106-.367\n -.196zm3.428 13.644V6.714H11q-.357 0-.607-.25t-.25-.607V2.143h-6.86v13.714H14.71zM5.57\n 8.143q0-.125.08-.205.08-.08.204-.08h6.286q.125 0 .205.08.08.08.08.205v.57q0 .126-.08.207-.08.08\n -.205.08H5.854q-.125 0-.205-.08-.08-.08-.08-.206v-.57zm6.57 2q.125 0 .205.08.08.08.08.206V11q0\n .125-.08.205-.08.08-.205.08H5.854q-.125 0-.205-.08-.08-.08-.08-.205v-.57q0-.126.08-.207.08-.08.2\n -.08h6.286zm0 2.286q.125 0 .205.08.08.08.08.2v.572q0 .125-.08.205-.08.08-.205.08H5.854q-.125 0-.205\n -.08-.08-.08-.08-.205v-.572q0-.124.08-.204.08-.08.2-.08h6.286z"));return s(e,t,n,"icon-plain",r,u.cloneNode(!1))};var c;n.other=function(e,t,n,r){void 0===r&&(r=1),void 0===c&&(c=a.newPath("M10.8 13.5v3q0 .2-.15.35-.15.15-.35.15h-3q-.2 0-.35-.15-.15-.15-.15-.35v-3q0-.2.15-.35.15\n -.15.35-.15h3q.2 0 .35.15.15.15.15.35zM14.75 6q0 .675-.193 1.262-.193.588-.437.957-.244.365\n -.688.74-.443.375-.718.543-.275.17-.763.444-.51.286-.852.81-.344.526-.344.84 0 .21-.15.405-.15.194\n -.35.194h-3q-.186 0-.318-.23-.13-.234-.13-.47v-.564q0-1.037.812-1.956.812-.917 1.787-1.355.74-.336\n 1.05-.7.314-.362.314-.95 0-.524-.583-.924-.58-.4-1.343-.4-.814 0-1.35.362-.44.312-1.34 1.437-.16.2\n -.386.2-.15 0-.313-.1L3.4 4.987q-.16-.124-.193-.312-.03-.188.07-.35Q5.277 1 9.077 1q1 0 2.01.387\n 1.01.388 1.825 1.038.812.65 1.325 1.594.51.94.51 1.98z"));return s(e,t,n,"icon-other",r,c.cloneNode(!1))};var d;n.javascript=function(e,t,n,r){void 0===r&&(r=1),void 0===d&&(d=a.newPath("M13.516 2.9c-2.766 0-4.463 1.522-4.463 3.536 0 1.733 1.295 2.82 3.256 3.52\n 1.413.49 1.973.926 1.973 1.644 0 .787-.647 1.296-1.873 1.296-1.137 0-2.26-.368-2.96-.736l-.54\n 2.19c.665.367 1.996.734 3.344.734 3.238 0 4.744-1.68 4.744-3.658\n 0-1.68-.966-2.767-3.05-3.537-1.54-.6-2.186-.93-2.186-1.68 0-.6.56-1.14 1.714-1.14\n 1.137 0 1.996.33 2.45.56l.596-2.138c-.7-.332-1.663-.596-3.01-.596zm-9.032.192v7.44c0\n 1.822-.702 2.33-1.822 2.33-.525 0-.997-.09-1.365-.212L1 14.805c.525.175 1.33.28 1.96.28\n 2.574 0 4.185-1.173 4.185-4.534V3.097h-2.66z"));return s(e,t,n,"icon-js",r,d.cloneNode(!1))};var p;n.image=r,n.svg=function(e,t,n,i){return void 0===i&&(i=1),r(e,t,n,i)};var h;n.html=function(e,t,n,r){void 0===r&&(r=1),void 0===h&&(h=a.newPath("M5.626 13.31l-.492.492q-.098.098-.226.098t-.226-.098L.098 9.22Q0 9.12 0\n 8.99q0-.127.098-.226L4.682 4.18q.098-.097.226-.097t.226.098l.492.49q.1.1.1.23t-.1.23L1.76\n 8.99l3.866 3.866q.1.098.1.226t-.1.226zM11.44 2.815l-3.67\n 12.7q-.04.127-.152.19-.113.065-.23.026l-.61-.162q-.13-.04-.193-.152-.064-.112-.024-.24l3.67-12.698q.04\n -.128.157-.192.113-.064.23-.025l.61.167q.13.04.193.152.063.113.023.24zM17.9\n 9.22l-4.582 4.58q-.098.098-.226.098t-.226-.098l-.492-.492q-.1-.098-.1-.226t.1-.226L16.24\n 8.99l-3.867-3.865q-.1-.098-.1-.226t.1-.23l.492-.49q.098-.1.226-.1t.23.1l4.58 4.583q.1.1.1.226 0 .13-.1.23z"));return s(e,t,n,"icon-html",r,h.cloneNode(!1))};var f;n.css=function(e,t,n,r){void 0===r&&(r=1),void 0===f&&(f=a.newPath("M15.436.99q.625 0 1.095.416.47.415.47 1.04 0 .564-.4 1.35-2.97 5.624-4.16 6.724-.865.814\n -1.946.814-1.127 0-1.935-.827-.81-.827-.81-1.962 0-1.144.822-1.895l5.705-5.175Q14.8.99\n 15.435.99zM7.31 10.232q.35.68.953 1.162.603.483 1.345.68l.01.634q.035 1.904-1.16 3.102-1.192\n 1.198-3.114 1.198-1.1 0-1.948-.416-.85-.415-1.364-1.14-.514-.723-.773-1.635Q1 12.905 1\n 11.85l.366.268q.304.224.555.398.25.175.53.327.277.15.41.15.368 0 .493-.33.224-.59.515-1.005.29\n -.415.62-.68.332-.263.788-.424.455-.16.92-.228.465-.066 1.118-.094z"));return s(e,t,n,"icon-css",r,f.cloneNode(!1))};var v;n.warning=i;var m;n.error=function(e,t,n,r){void 0===r&&(r=1),void 0===m&&(m=a.newPath("M9 1q2.177 0 4.016 1.073 1.838 1.073 2.91 2.91Q17 6.823 17 9q0 2.177-1.073 4.016-1.073\n 1.838-2.91 2.91Q11.177 17 9 17q-2.177 0-4.016-1.073-1.838-1.073-2.91-2.91Q1 11.177 1 9q0-2.177 1.073-4.016\n 1.073-1.838 2.91-2.91Q6.823 1 9 1zm1.333 12.99v-1.98q0-.145-.093-.244-.094-.1-.23-.1h-2q-.135 0-.24.105\n -.103.106-.103.24v1.98q0 .136.104.24.106.104.24.104h2q.137 0 .23-.1.094-.098.094-.243zm-.02-3.584l.187\n -6.468q0-.125-.104-.188-.104-.084-.25-.084H7.854q-.146 0-.25.084-.104.062-.104.188l.177 6.468q0\n .104.104.183.106.076.25.076h1.93q.146 0 .245-.078.1-.08.11-.184z"));return s(e,t,n,"icon-no-gzip",r,m.cloneNode(!1))};var g;n.font=function(e,t,n,r){void 0===r&&(r=1),void 0===g&&(g=a.newPath("M7.97 5.754L6.338 10.08q.317 0 1.312.02.994.02 1.542.02.183 0 .548-.02-.836-2.432-1.77\n -4.345zM1 16.38l.02-.76q.22-.068.538-.12.317-.053.548-.102.23-.048.476-.14.245-.09.428-.278.182\n -.187.298-.485l2.28-5.923 2.69-6.962H9.51q.077.135.105.202l1.972 4.615q.317.75 1.02 2.476.7 1.726\n 1.095 2.64.144.327.558 1.39.413 1.062.692 1.62.192.432.336.547.183.145.847.284.663.14.807.197.058.37.058.55\n 0 .04-.005.13t-.005.128q-.605 0-1.827-.076-1.22-.08-1.836-.08-.73 0-2.067.07-1.337.067-1.712.076 0-.412.04\n -.75l1.258-.27q.01 0 .12-.022l.15-.033q.038-.01.14-.044.1-.034.143-.06l.1-.08q.06-.048.082-.106.024-.056.024\n -.133 0-.152-.298-.926t-.693-1.71q-.392-.93-.402-.96l-4.325-.02q-.25.56-.734 1.88-.487 1.32-.487 1.56 0\n .213.136.362.134.15.418.235.285.087.467.13.185.044.55.08.366.04.395.04.01.183.01.558 0 .087-.02.26-.558\n 0-1.678-.095-1.12-.098-1.678-.098-.08 0-.26.04-.18.037-.208.037-.77.136-1.808.136Z"));return s(e,t,n,"icon-font",r,g.cloneNode(!1))};var y;n.flash=function(e,t,n,r){void 0===r&&(r=1),void 0===y&&(y=a.newPath("M13.724 4.738q.195.216.076.476L7.96 17.73q-.142.27-.456.27-.043 0-.15-.022-.185-.054-.277\n -.205-.092-.15-.05-.325l2.132-8.74L4.765 9.8q-.044.01-.13.01-.195 0-.336-.118-.193-.162-.14-.422L6.337.346q.043\n -.15.173-.25Q6.64 0 6.81 0h3.548q.206 0 .346.135.14.135.14.32 0 .086-.053.194L8.94 5.654l4.285\n -1.06q.086-.02.13-.02.205 0 .367.16z"));return s(e,t,n,"icon-flash",r,y.cloneNode(!1))};var w;n.video=function(e,t,n,r){void 0===r&&(r=1),void 0===w&&(w=a.newPath("M17 4.107v9.714q0 .38-.348.53-.116.05-.223.05-.25 0-.41-.17l-3.6-3.6v1.48q0 1.067-.757 1.82-.754.756\n -1.817.756H3.57q-1.06 0-1.816-.753Q1 13.17 1 12.106V5.82q0-1.06.754-1.816.755-.754 1.817-.754h6.29q1.07 0\n 1.82.754.76.755.76 1.817V7.3l3.597-3.59q.16-.17.4-.17.107 0 .22.045.35.153.35.528z"));return s(e,t,n,"icon-video",r,w.cloneNode(!1))};var b;n.audio=function(e,t,n,r){void 0===r&&(r=1),void 0===b&&(b=a.newPath("M8.385 3.756v10.46q0 .252-.183.434-.183.183-.433.183t-.44-.183l-3.2-3.202H1.61q-.25\n 0-.43-.183-.18-.182-.18-.432V7.14q0-.25.182-.432.182-.183.432-.183h2.52l3.202-3.202q.182-.183.432\n -.183t.43.183q.182.183.182.433zm3.692 5.23q0 .73-.41 1.36-.407.63-1.08.9-.097.048-.24.048-.25 0\n -.434-.178-.182-.177-.182-.437 0-.21.12-.35.12-.14.28-.24.16-.1.33-.22.166-.12.28-.34.117-.22.117\n -.55 0-.33-.115-.55-.115-.224-.28-.344-.163-.12-.326-.22-.165-.1-.28-.24-.116-.14-.116-.34 0-.26.183\n -.44t.43-.176q.146 0 .24.048.676.26 1.08.894.41.636.41 1.367zm2.46 0q0 1.472-.816 2.717t-2.16 1.813q\n -.12.048-.24.048-.26 0-.44-.183-.18-.18-.18-.43 0-.37.378-.56.54-.28.73-.42.713-.52 1.11-1.302.4\n -.783.4-1.667 0-.886-.4-1.67-.4-.783-1.11-1.303-.192-.145-.73-.424-.376-.192-.376-.567 0-.25.183\n -.434.183-.18.433-.18.123 0 .25.047 1.344.567 2.16 1.812.82 1.244.82 2.716zm2.463 0q0 2.212\n -1.22 4.063-1.222 1.85-3.25 2.72-.126.05-.25.05-.25 0-.434-.19-.183-.183-.183-.433 0-.346.375\n -.568.068-.04.217-.1.15-.064.216-.1.45-.244.79-.494 1.19-.875 1.85-2.183.67-1.306.67-2.777 0\n -1.47-.663-2.78-.664-1.304-1.846-2.18-.346-.25-.79-.49-.065-.035-.214-.1-.15-.06-.22-.1\n -.375-.22-.375-.57 0-.25.183-.43.183-.182.433-.182.123 0 .25.047 2.027.876 3.25 2.727Q17 6.775 17 8.99Z"));return s(e,t,n,"icon-audio",r,b.cloneNode(!1))};var C;n.push=function(e,t,n,r){void 0===r&&(r=1),void 0===C&&(C=a.newPath("M14.668 9q0 .416-.285.7L9.37 14.716Q9.067 15 8.667 15q-.393 0-.694-.285l-.577\n -.578q-.293-.292-.293-.7 0-.41.293-.7l2.256-2.258H4.23q-.4 0-.65-.29t-.25-.698v-.986q0-.408.25\n -.697.25-.29.65-.29h5.423L7.397 5.257q-.293-.278-.293-.693 0-.416.293-.694l.577-.576Q8.267 3 8.668\n 3q.408 0 .7.293l5.015 5.014q.285.27.285.693z"));return s(e,t,n,"icon-push",r,C.cloneNode(!1))}},{"./svg":6}],4:[function(e,t,n){"use strict";function r(e){var t=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),n=e.match(t);return{authority:n[4],fragment:n[9],path:n[5],query:n[7],scheme:n[2]}}function i(e,t){var n=0;if(e&&!(e.length<1))for(var r=e.length;n<r;){if(t(e[n],n))return n;n++}}Object.defineProperty(n,"__esModule",{value:!0}),n.contains=function(e,t){return e.some(function(e){return e===t})},n.findIndex=i,n.find=function(e,t){var n=i(e,t);if(void 0!==n)return e[n]},n.resourceUrlFormatter=function(e,t){if(e.length<t)return e.replace(/https?:\/\//,"");var n=r(e);if((n.authority+n.path).length<t)return n.authority+n.path;var i=Math.floor(t/2)-3,o=Math.floor(t/2)-5,a=n.path.split("/");return n.authority.length>i?n.authority.substr(0,i)+"..."+a[a.length-1].substr(-o):n.authority+"..."+a[a.length-1].substr(-o)},n.roundNumber=function(e,t){return void 0===t&&(t=2),Math.round(e*Math.pow(10,t))/Math.pow(10,t)},n.isInStatusCodeRange=function(e,t,n){return e>=t&&e<=n};var o=/[^a-z-]/g;n.toCssClass=function(e){return e.toLowerCase().replace(o,"")},n.pluralize=function(e,t){return e+(t>1?"s":"")},n.isTabUp=function(e){return 9===e.which&&e.shiftKey},n.isTabDown=function(e){return 9===e.which&&!e.shiftKey}},{}],5:[function(e,t,n){"use strict";function r(e){if("function"==typeof e.toString)return e.toString();throw TypeError("Can't convert type ${typeof source} to string")}function i(e,t){var n=function(e){return t(e)?e:void 0};if("string"==typeof e){var r=parseInt(e,10);if(!isFinite(r))return;return n(r)}return n(e)}function o(e){return"number"==typeof e?e:"string"==typeof e?parseInt(e,10):void 0}Object.defineProperty(n,"__esModule",{value:!0});var a=e("./misc");n.parseAndFormat=function(e,t,n){if(void 0===n&&(n=r),void 0!==e){var i=t(e);if(void 0!==i)return n(i)}},n.parseNonEmpty=function(e){return e.trim().length>0?e:void 0},n.parseDate=function(e){var t=new Date(e);if(!isNaN(t.getTime()))return t},n.parseNonNegative=function(e){return i(e,function(e){return e>=0})},n.parsePositive=function(e){return i(e,function(e){return e>0})},n.formatMilliseconds=function(e){return a.roundNumber(e,3)+" ms"};var s=60,l=60*s,u=24*l;n.formatSeconds=function(e){var t=a.roundNumber(e,3)+" s";return e>u?t+" (~"+a.roundNumber(e/u,0)+" days)":e>l?t+" (~"+a.roundNumber(e/l,0)+" hours)":e>s?t+" (~"+a.roundNumber(e/s,0)+" minutes)":t},n.formatDateLocalized=function(e){return e.toUTCString()+"<br/>(local time: "+e.toLocaleString()+")"};var c=1024,d=1024*c;n.formatBytes=function(e){var t=e+" bytes";return e>=d?t+" (~"+a.roundNumber(e/d,1)+" MB)":e>=c?t+" (~"+a.roundNumber(e/c,0)+" kB)":t};var p={'"':""","&":"&","'":"'","<":"<",">":">"},h=new RegExp(Object.keys(p).join("|"),"g");n.escapeHtml=function(e){if(void 0===e&&(e=""),"string"!=typeof e){if("function"!=typeof e.toString)throw TypeError("Invalid parameter");e=e.toString()}return e.replace(h,function(e){return p[e]})};var f=new RegExp("[^-A-Za-z0-9+&@#/%?=~_|!:,.;()]","g");n.sanitizeUrlForLink=function(e){var t=e.replace(f,"_");return 0===t.indexOf("http://")||0===t.indexOf("https://")?t:(console.warn("skipped link, due to potentially unsafe url",e),"")};var v=new RegExp("[^a-zA-Z0-9]","g");n.sanitizeAlphaNumeric=function(e){return e.toString().replace(v,"")},n.toInt=o,n.validateOptions=function(e){var t=function(t){if(e[t]=o(e[t]),void 0===e[t])throw TypeError('option "'+t+'" needs to be a number')},n=function(t){e[t]=!!e[t]};return t("leftColumnWith"),t("rowHeight"),t("selectedPage"),n("showAlignmentHelpers"),n("showIndicatorIcons"),n("showMimeTypeIcon"),e}},{"./misc":4}],6:[function(e,t,n){"use strict";function r(e,t){var n=void 0===t?{}:t,r=n.attributes,i=void 0===r?{}:r,s=n.css,l=void 0===s?{}:s,u=n.text,c=void 0===u?"":u,d=n.className,p=void 0===d?"":d,h=document.createElementNS(a,e);return p&&o.addClass(h,p),c&&(h.textContent=c),o.safeSetStyles(h,l),o.safeSetAttributes(h,i),h}function i(e,t,n){return void 0===n&&(n={}),r("svg",{className:e,attributes:t,css:n})}Object.defineProperty(n,"__esModule",{value:!0});var o=e("./dom"),a="http://www.w3.org/2000/svg";n.newSvg=i,n.newG=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),r("g",{className:e,attributes:t,css:n})},n.newClipPath=function(e){return r("clipPath",{attributes:{id:e}})},n.newForeignObject=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n={}),r("foreignObject",{attributes:e,className:t,css:n})},n.newA=function(e){return r("a",{className:e})},n.newRect=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n={}),r("rect",{attributes:e,className:t,css:n})},n.newLine=function(e,t){return void 0===t&&(t=""),r("line",{className:t,attributes:e})},n.newTitle=function(e){var t=document.createElementNS(a,"title");return t.setAttribute("text",e),t},n.newTextEl=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),r("text",{text:e,attributes:t,css:n})},n.newPath=function(e){var t=document.createElementNS(a,"path");return t.setAttribute("d",e),t};var s=function(){var e,t;return function(){return void 0===e&&(e=i("water-fall-chart temp",{className:"water-fall-chart temp",width:"9999px"},{left:"0px",position:"absolute",top:"0px",visibility:"hidden","z-index":"99999"})),void 0===e.parentElement&&window.document.body.appendChild(e),clearTimeout(t),t=setTimeout(function(){e.parentNode.removeChild(e)},500),e}}();n.getNodeTextWidth=function(e,t){if(void 0===t&&(t=!1),0===e.textContent.length)return 0;var n,r,i=s();t?(r=e.style.textShadow,n=e):((n=e.cloneNode(!0)).setAttribute("x","0"),n.setAttribute("y","0")),n.style.textShadow="0",i.appendChild(n),window.document.body.appendChild(i);var o=n.getComputedTextLength();return t&&void 0!==r&&(e.style.textShadow=r),o}},{"./dom":1}],7:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.makeLegend=function(){var e=document.createElement("ul");return e.className="resource-legend",e.innerHTML='\n <li class="legend-blocked" title="Time spent in a queue waiting for a network connection.">Blocked</li>\n <li class="legend-dns" title="DNS resolution time.">DNS</li>\n <li class="legend-connect" title="Time required to create TCP connection.">Connect</li>\n <li class="legend-ssl" title="Time required for SSL/TLS negotiation.">SSL (TLS)</li>\n <li class="legend-send" title="Time required to send HTTP request to the server.">Send</li>\n <li class="legend-wait" title="Waiting for a response from the server.">Wait</li>\n <li class="legend-receive"\n title="Time required to read entire response from the server (or cache).">Receive</li>',e}},{}],8:[function(e,t,n){"use strict";function r(e,t){void 0===t&&(t={});var n=o.validateOptions(i({},c,t)),r=new s.default(e,n.selectedPage),l=u.createWaterfallSvg(r.getSelectedPage(),n);return r.onPageUpdate(function(e,t){var r=l.parentElement,i=u.createWaterfallSvg(t,n);r.replaceChild(i,l),l=i}),n.pageSelector&&r.initPagingSelectBox(n.pageSelector),n.legendHolder&&(n.legendHolder.innerHTML="",n.legendHolder.appendChild(a.makeLegend())),l}var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e};Object.defineProperty(n,"__esModule",{value:!0});var o=e("./helpers/parse"),a=e("./legend/legend"),s=e("./paging/paging"),l=e("./transformers/har"),u=e("./waterfall/svg-chart"),c={leftColumnWith:25,legendHolder:void 0,onParsed:void 0,pageSelector:void 0,rowHeight:23,selectedPage:0,showAlignmentHelpers:!0,showIndicatorIcons:!0,showMimeTypeIcon:!0},d={showUserTiming:!1,showUserTimingEndMarker:!1};n.makeLegend=function(){return a.makeLegend()},n.fromHar=function(e,t){void 0===t&&(t={});var n=i({},d,t),o=l.transformDoc(e,n);return"function"==typeof t.onParsed&&t.onParsed(o),r(o,t)}},{"./helpers/parse":5,"./legend/legend":7,"./paging/paging":9,"./transformers/har":13,"./waterfall/svg-chart":27}],9:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("../helpers/dom"),i=function(){function e(e,t){void 0===t&&(t=0),this.doc=e,this.selectedPageIndex=t,this.onPageUpdateCbs=[],t>=this.doc.pages.length&&(this.selectedPageIndex=this.doc.pages.length-1)}return e.prototype.getPageCount=function(){return this.doc.pages.length},e.prototype.getSelectedPage=function(){return this.doc.pages[this.selectedPageIndex]},e.prototype.getSelectedPageIndex=function(){return this.selectedPageIndex},e.prototype.setSelectedPageIndex=function(e){var t=this;if(this.selectedPageIndex!==e){if(e<0||e>=this.getPageCount())throw new Error("Page does not exist - Invalid pageIndex selected");this.selectedPageIndex=e;var n=this.doc.pages[this.selectedPageIndex];this.onPageUpdateCbs.forEach(function(e){e(t.selectedPageIndex,n)})}},e.prototype.onPageUpdate=function(e){if(this.getPageCount()>1)return this.onPageUpdateCbs.push(e)},e.prototype.initPagingSelectBox=function(e){var t=this,n=this;this.getPageCount()<=1?e.style.display="none":(r.removeChildren(e),this.doc.pages.forEach(function(n,r){var i=new Option(n.title,r.toString(),!1,r===t.selectedPageIndex);e.add(i)}),e.style.display="block",e.addEventListener("change",function(e){var t=parseInt(e.target.value,10);n.setSelectedPageIndex(t)}))},e}();n.default=i},{"../helpers/dom":1}],10:[function(e,t,n){"use strict";function r(e,t,n){return[["Request Number","#"+n],["Started",new Date(e.startedDateTime).toLocaleString()+(t>0?" ("+l.formatMilliseconds(t)+" after page request started)":"")],["Duration",l.formatMilliseconds(e.time)],["Error/Status Code",e.response.status+" "+e.response.statusText],["Server IPAddress",e.serverIPAddress],["Connection",e.connection],["Browser Priority",e._priority||e._initialPriority],["Was pushed",l.parseAndFormat(e._was_pushed,l.parsePositive,function(){return"yes"})],["Initiator (Loaded by)",e._initiator],["Initiator Line",e._initiator_line],["Host",s.getHeader(e.request.headers,"Host")],["IP",e._ip_addr],["Client Port",l.parseAndFormat(e._client_port,l.parsePositive)],["Expires",e._expires],["Cache Time",l.parseAndFormat(e._cache_time,l.parsePositive,l.formatSeconds)],["CDN Provider",e._cdn_provider],c("ObjectSize",e._objectSize),c("Bytes In (downloaded)",e._bytesIn),c("Bytes Out (uploaded)",e._bytesOut),c("JPEG Scan Count",e._jpeg_scan_count),c("Gzip Total",e._gzip_total),c("Gzip Save",e._gzip_save),c("Minify Total",e._minify_total),c("Minify Save",e._minify_save),c("Image Total",e._image_total),c("Image Save",e._image_save)].filter(p)}function i(e){var t=e.request,n=function(e){return s.getHeaders(t.headers,e)};return u.flattenKvTuple([["Method",t.method],["HTTP Version",t.httpVersion],c("Bytes Out (uploaded)",e._bytesOut),c("Headers Size",t.headersSize),c("Body Size",t.bodySize),["Comment",l.parseAndFormat(t.comment,l.parseNonEmpty)],n("User-Agent"),n("Host"),n("Connection"),n("Accept"),n("Accept-Encoding"),n("Expect"),n("Forwarded"),n("If-Modified-Since"),n("If-Range"),n("If-Unmodified-Since"),d("Querystring parameters count",t.queryString.length),d("Cookies count",t.cookies.length)]).filter(p)}function o(e){var t,n=e.response,r=n.content,i=n.headers,o=function(e,t){return void 0===t&&(t=e),s.getHeaders(i,t)},a=function(e){var t=s.getHeader(i,e);return[e,l.parseAndFormat(t,l.parseDate,l.formatDateLocalized)]},d=s.getHeader(i,"Content-Length");-1!==r.size&&d!==r.size.toString()&&(t=r.size);var h=s.getHeader(i,"Content-Type");return e._contentType&&e._contentType!==h&&(h=h+" | "+e._contentType),u.flattenKvTuple([["Status",n.status+" "+n.statusText],["HTTP Version",n.httpVersion],c("Bytes In (downloaded)",e._bytesIn),c("Headers Size",n.headersSize),c("Body Size",n.bodySize),["Content-Type",h],o("Cache-Control"),o("Content-Encoding"),a("Expires"),a("Last-Modified"),o("Pragma"),c("Content-Length",d),c("Content Size",t),c("Content Compression",r.compression),o("Connection"),o("ETag"),o("Accept-Patch"),["Age",l.parseAndFormat(s.getHeader(i,"Age"),l.parseNonNegative,l.formatSeconds)],o("Allow"),o("Content-Disposition"),o("Location"),o("Strict-Transport-Security"),o("Trailer (for chunked transfer coding)","Trailer"),o("Transfer-Encoding"),o("Upgrade"),o("Vary"),o("Timing-Allow-Origin"),["Redirect URL",l.parseAndFormat(n.redirectURL,l.parseNonEmpty)],["Comment",l.parseAndFormat(n.comment,l.parseNonEmpty)]]).filter(p)}function a(e,t,n){var r=e.timings,i=function(e){return l.parseAndFormat(e,l.parseNonNegative,l.formatMilliseconds)},o="number"!=typeof t||"number"!=typeof n?void 0:n-t,a=i(r.connect);return r.ssl>0&&(a=a+" (without TLS: "+i(r.connect-r.ssl)+")"),[["Total",l.formatMilliseconds(o)],["Blocked",i(r.blocked)],["DNS",i(r.dns)],["Connect",a],["SSL (TLS)",i(r.ssl)],["Send",l.formatMilliseconds(r.send)],["Wait",l.formatMilliseconds(r.wait)],["Receive",l.formatMilliseconds(r.receive)]]}Object.defineProperty(n,"__esModule",{value:!0});var s=e("../helpers/har"),l=e("../helpers/parse"),u=e("./helpers"),c=function(e,t){return[e,l.parseAndFormat(t,l.parsePositive,l.formatBytes)]},d=function(e,t){return[e,l.parseAndFormat(t,l.parsePositive)]},p=function(e){return e.length>1&&void 0!==e[1]&&""!==e[1]};n.getKeys=function(e,t,n,s){var l=e.request.headers,u=e.response.headers,c=function(e){return[e.name,e.value]};return{general:r(e,n,t),request:i(e),requestHeaders:l.map(c),response:o(e),responseHeaders:u.map(c),timings:a(e,n,s)}}},{"../helpers/har":2,"../helpers/parse":5,"./helpers":14}],11:[function(e,t,n){"use strict";function r(e,t){if(e.response.bodySize<1e3)return!1;if(u.contains(["html","css","javascript","svg","plain"],t))return!0;var n=e.response.content.mimeType,r=["application/vnd.ms-fontobject","application/x-font-opentype","application/x-font-truetype","application/x-font-ttf","application/xml","font/eot","font/opentype","font/otf","image/vnd.microsoft.icon"];return!(!u.contains(["text"],n.split("/")[0])&&!u.contains(r,n.split(";")[0]))}function i(e){if("get"!==e.request.method.toLowerCase())return!1;if(204===e.response.status||!u.isInStatusCodeRange(e.response.status,200,299))return!1;var t=e.response.headers;return!(l.hasHeader(t,"Cache-Control")||l.hasHeader(t,"Expires"))}function o(e,t){var n=e.response.headers;return!l.hasHeader(n,"Content-Encoding")&&r(e,t)}function a(e){return 0===e.request.url.indexOf("https://")}function s(e){return 1===function(e){return"string"==typeof e?parseInt(e,10):e}(e._was_pushed)}Object.defineProperty(n,"__esModule",{value:!0});var l=e("../helpers/har"),u=e("../helpers/misc");n.documentIsSecure=function(e){var t=e.filter(function(e){return!e.response.redirectURL})[0];return void 0===t?e.length>0&&a(e[0]):a(t)},n.collectIndicators=function(e,t,n){var r=[];return s(e)&&r.push({description:"Response was pushed by the server using HTTP2 push.",icon:"push",id:"push",title:"Response was pushed by the server",type:"info"}),t&&!a(e)&&r.push({description:"Insecure request, it should use HTTPS.",id:"noTls",title:"Insecure Connection",type:"error"}),i(e)&&r.push({description:"The response is not allow to be cached on the client. Consider setting 'Cache-Control' headers.",id:"noCache",title:"Response not cached",type:"error"}),o(e,n)&&r.push({description:"The response is not compressed. Consider enabling HTTP compression on your server.",id:"noGzip",title:"no gzip",type:"error"}),!e.response.content.mimeType&&u.isInStatusCodeRange(e.response.status,200,299)&&204!==e.response.status&&r.push({description:"Response doesn't contain a 'Content-Type' header.",id:"warning",title:"No MIME Type defined",type:"warning"}),r}},{"../helpers/har":2,"../helpers/misc":4}],12:[function(e,t,n){"use strict";function r(e,t,n){return void 0===n&&(n=""),{content:t,tabClass:n,title:e}}function i(e,t,n){return void 0===n&&(n=""),{renderContent:t,tabClass:n,title:e}}function o(e,t){var n=h.makeDefinitionList(e);if(0===t.length)return r("General",n);var i="<h2>General</h2>\n<dl>"+n+"<dl>",o="",a=t.filter(function(e){return"error"===e.type}).map(function(e){return[e.title,e.description]}),s=t.filter(function(e){return"warning"===e.type}).map(function(e){return[e.title,e.description]}),l=t.filter(function(e){return"error"!==e.type&&"warning"!==e.type}).map(function(e){return[e.title,e.description]});a.length>0&&(o+='<h2 class="no-boder">'+c.pluralize("Error",a.length)+"</h2>\n <dl>"+h.makeDefinitionList(a)+"</dl>"),s.length>0&&(o+='<h2 class="no-boder">'+c.pluralize("Warning",s.length)+"</h2>\n <dl>"+h.makeDefinitionList(s)+"</dl>"),l.length>0&&(o+='<h2 class="no-boder">Info</h2>\n <dl>'+h.makeDefinitionList(l)+"</dl>"),r("General",o+i)}function a(e,t){return r("Request","<dl>\n "+h.makeDefinitionList(e)+"\n </dl>\n <h2>All Request Headers</h2>\n <dl>\n "+h.makeDefinitionList(t)+"\n </dl>")}function s(e,t){return r("Response","<dl>\n "+h.makeDefinitionList(e)+"\n </dl>\n <h2>All Response Headers</h2>\n <dl>\n "+h.makeDefinitionList(t)+"\n </dl>")}function l(e){return i("Raw Data",function(){return"<pre><code>"+d.escapeHtml(JSON.stringify(e,null,2))+"</code></pre>"},"raw-data")}function u(e){return i("Preview",function(t){return'<img class="preview" style="max-height:'+(t-100)+'px"\n data-src="'+d.sanitizeUrlForLink(e.request.url)+'" />'})}Object.defineProperty(n,"__esModule",{value:!0});var c=e("../helpers/misc"),d=e("../helpers/parse"),p=e("./extract-details-keys"),h=e("./helpers");n.makeTabs=function(e,t,n,i,c,d){var f=[],v=p.getKeys(e,t,i,c);return f.push(o(v.general,d)),f.push(a(v.request,v.requestHeaders)),f.push(s(v.response,v.responseHeaders)),f.push(r("Timings",h.makeDefinitionList(v.timings,!0))),f.push(l(e)),"image"===n&&f.push(u(e)),f.filter(function(e){return void 0!==e})}},{"../helpers/misc":4,"../helpers/parse":5,"./extract-details-keys":10,"./helpers":14}],13:[function(e,t,n){"use strict";function r(e,t,n,r){n=Math.round(n);var i=Math.round(o.toInt(e._all_end)||n+e.time),u=l.mimeToRequestType(e.response.content.mimeType),c=a.collectIndicators(e,r,u),d=f(e,c);return l.createWaterfallEntry(e.request.url,n,i,p(n,e),d,s.makeTabs(e,t+1,u,n,i,c))}Object.defineProperty(n,"__esModule",{value:!0});var i=e("../helpers/misc"),o=e("../helpers/parse"),a=e("./har-heuristics"),s=e("./har-tabs"),l=e("./helpers");n.transformDoc=function(e,t){var n=this,r=void 0!==e.log?e.log:e;return{pages:u(r).map(function(e,i){return n.transformPage(r,i,t)})}};var u=function(e){return e.pages&&e.pages.length>0?e.pages:[{id:"",pageTimings:{},startedDateTime:e.entries.reduce(function(e,t){var n=Date.parse(t.startedDateTime);return Date.parse(e)<n?e:t.startedDateTime},e.entries[0].startedDateTime),title:"n/a"}]};n.transformPage=function(e,t,n){void 0===t&&(t=0);var i=void 0!==e.log?e.log:e,o=u(i),s=o[t],l=new Date(s.startedDateTime).getTime(),d=s.pageTimings,p=0,h=a.documentIsSecure(i.entries),f=i.entries.filter(function(e){return 0!==e.request.url.indexOf("data:")&&0!==e.request.url.indexOf("javascript:")&&(1===o.length&&""===s.id||e.pageref===s.id)}).map(function(e,t){var n=new Date(e.startedDateTime).getTime()-l;return p=Math.max(p,n+e.time),r(e,t,n,h)}),v=c(d,s,n);return v.forEach(function(e){e.startTime>p&&(p=e.startTime)}),n.fixedLengthMs&&(p=n.fixedLengthMs),p+=100,{docIsTLS:h,durationMs:p,entries:f,marks:v,title:s.title}};var c=function(e,t,n){var r=function(e,t){return e.startTime-t.startTime},a=Object.keys(e).filter(function(t){return"number"==typeof e[t]&&e[t]>=0}).map(function(t){return{name:o.escapeHtml(t.replace(/^[_]/,""))+" ("+i.roundNumber(e[t],0)+" ms)",startTime:e[t]}});return n.showUserTiming?d(t,n).concat(a).sort(r):a.sort(r)},d=function(e,t){var n=t.showUserTimingEndMarker?function(e){return 0===e.indexOf("_userTime.")}:function(e){return 0===e.indexOf("_userTime.")&&0!==e.indexOf("_userTime.endTimer-")},r=n;if(Array.isArray(t.showUserTiming)){var i=t.showUserTiming;r=function(e){return n(e)&&i.indexOf(e.replace(/^_userTime\./,""))>=0}}var a=/^_userTime\.((?:startTimer-)?(.+))$/;return Object.keys(e).filter(r).map(function(n){var r,i,s;return l=a.exec(n),i=l[1],r=l[2],i=o.escapeHtml(i),r=o.escapeHtml(r),i!==r&&e["_userTime.endTimer-"+r]?(s=e["_userTime.endTimer-"+r]-e[n],{duration:s,name:(t.showUserTimingEndMarker?i:r)+" ("+e[n]+" - "+(e[n]+s)+" ms)",startTime:e[n]}):{name:i,startTime:e[n]};var l})},p=function(e,t){var n=t.timings;return["blocked","dns","connect","send","wait","receive"].reduce(function(r,i){var o=h(i,t,r,e);if(o.end&&o.start>=o.end)return r;if("connect"===i&&n.ssl&&-1!==n.ssl){var a=parseInt(t._ssl_start,10)||o.start,s=parseInt(t._ssl_end,10)||o.start+n.ssl,u=parseInt(t._ssl_start,10)?o.start:s;return r.concat([l.createWaterfallEntryTiming("ssl",Math.round(a),Math.round(s))]).concat([l.createWaterfallEntryTiming(i,Math.round(u),Math.round(o.end))])}return r.concat([l.createWaterfallEntryTiming(i,Math.round(o.start),Math.round(o.end))])},[])},h=function(e,t,n,r){var i;switch(e){case"wait":i="ttfb";break;case"receive":i="download";break;default:i=e}var o=parseInt(t["_"+i+"_start"],10),a=parseInt(t["_"+i+"_end"],10),s=isNaN(o)?n.length>0?n[n.length-1].end:r:o,l=isNaN(a)?s+t.timings[e]:a;return{end:Math.round(l),start:Math.round(s)}},f=function(e,t){var n=l.mimeToRequestType(e.response.content.mimeType),r=o.toInt(e.response.status);return{icon:l.makeMimeTypeIcon(r,e.response.statusText,n,e.response.redirectURL),indicators:t,requestType:n,rowClass:l.makeRowCssClasses(r),statusCode:r}}},{"../helpers/misc":4,"../helpers/parse":5,"./har-heuristics":11,"./har-tabs":12,"./helpers":14}],14:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("../helpers/misc"),i=e("../helpers/parse"),o=e("../waterfall/row/svg-indicators"),a=function(e){return i.escapeHtml(e).replace("<br/>","<br/>")};n.makeDefinitionList=function(e,t){void 0===t&&(t=!1);var n=function(e){return t?'class="'+(r.toCssClass(e)||"no-colour")+'"':""};return e.filter(function(e){return void 0!==e[1]}).map(function(e){return"\n <dt "+n(e[0])+">"+a(e[0])+"</dt>\n <dd>"+a(e[1])+"</dd>\n "}).join("")},n.mimeToRequestType=function(e){if(void 0===e)return"other";var t=e.split("/"),n=t[1];switch(void 0!==n&&(n=n.indexOf(";")>-1?n.split(";")[0]:n),t[0]){case"image":return"svg+xml"===n?"svg":"image";case"font":return"font";case"video":return"video";case"audio":return"audio"}switch(n){case"xml":case"html":return"html";case"plain":return"plain";case"css":return"css";case"vnd.ms-fontobject":case"font-woff":case"font-woff2":case"x-font-truetype":case"x-font-opentype":case"x-font-woff":return"font";case"javascript":case"x-javascript":case"script":case"json":return"javascript";case"x-shockwave-flash":return"flash";default:return"other"}},n.createWaterfallEntry=function(e,t,n,r,i,o){return void 0===r&&(r=[]),{end:n,responseDetails:i,segments:r,start:t,tabs:o,total:"number"!=typeof t||"number"!=typeof n?void 0:n-t,url:e}},n.createWaterfallEntryTiming=function(e,t,n){return{end:n,start:t,total:"number"!=typeof t||"number"!=typeof n?void 0:n-t,type:i.sanitizeAlphaNumeric(e)}},n.makeRowCssClasses=function(e){var t=["row-item"];return r.isInStatusCodeRange(e,500,599)?t.push("status5xx"):r.isInStatusCodeRange(e,400,499)?t.push("status4xx"):304!==e&&r.isInStatusCodeRange(e,300,399)&&t.push("status3xx"),t.join(" ")},n.makeMimeTypeIcon=function(e,t,n,a){if(void 0===a&&(a=""),a){var s=encodeURI(a.split("?")[0]||"");return o.makeIcon("err3xx",e+" response status: Redirect to "+i.escapeHtml(s)+"...")}return r.isInStatusCodeRange(e,400,499)?o.makeIcon("err4xx",e+" response status: "+i.escapeHtml(t)):r.isInStatusCodeRange(e,500,599)?o.makeIcon("err5xx",e+" response status: "+i.escapeHtml(t)):204===e?o.makeIcon("plain","No content"):o.makeIcon(i.sanitizeAlphaNumeric(n),i.escapeHtml(n))},n.flattenKvTuple=function(e){var t=[];return e.forEach(function(e){void 0!==e&&0!==e.length&&(Array.isArray(e[0])?t.push.apply(t,e):t.push(e))}),t}},{"../helpers/misc":4,"../helpers/parse":5,"../waterfall/row/svg-indicators":20}],15:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.requestTypeToCssClass=function(e){return"block-"+e},n.timingTypeToCssClass=function(e){return"block-"+e}},{}],16:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("../../helpers/dom"),i=e("../../helpers/parse");n.createDetailsBody=function(e,t,n){var o=r.makeHtmlEl(),a=r.makeBodyEl(),s=n.tabs.map(function(e){return'<li><button class="tab-button">'+e.title+"</button></li>"}).join("\n"),l=n.tabs.map(function(e){var n="tab";e.tabClass&&(n+=" "+e.tabClass);var r="";if(e.content)r=e.content;else{if("function"!=typeof e.renderContent)throw TypeError("Invalid Details Tab");r=e.renderContent(t),e.content=r}return'<div class="tab '+n+'">'+r+"</div>"}).join("\n");return a.innerHTML='\n <div class="wrapper">\n <header class="type-'+n.responseDetails.requestType+'">\n <h3><strong>#'+e+'</strong> <a href="'+i.sanitizeUrlForLink(n.url)+'">\n '+i.escapeHtml(n.url)+'\n </a></h3>\n <nav class="tab-nav">\n <ul>\n '+s+"\n </ul>\n </nav>\n </header>\n "+l+"\n </div>\n ",o.appendChild(a),o}},{"../../helpers/dom":1,"../../helpers/parse":5}],17:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("../../helpers/dom"),i=e("../../helpers/misc"),o=e("./svg-details-overlay"),a=function(){function e(e){this.context=e,this.openOverlays=[],this.realignRow=function(e,t){e.setAttribute("transform","translate(0, "+t+")")}}return e.prototype.getCombinedOverlayHeight=function(){return this.openOverlays.reduce(function(e,t){return e+t.height},0)},e.prototype.openOverlay=function(e,t,n,r,i){if(!this.openOverlays.some(function(t){return t.index===e})){var o=this,a={defaultY:t,entry:r,index:e,onClose:function(){o.closeOverlay(e,n,i)},openTabIndex:0};this.openOverlays.push(a),this.openOverlays=this.openOverlays.sort(function(e,t){return e.index>t.index?1:-1}),this.renderOverlays(n,i),this.context.pubSub.publishToOverlayChanges({changedIndex:e,combinedOverlayHeight:o.getCombinedOverlayHeight(),type:"open"})}},e.prototype.toggleOverlay=function(e,t,n,r,i){this.openOverlays.some(function(t){return t.index===e})?this.closeOverlay(e,n,i):this.openOverlay(e,t,n,r,i)},e.prototype.closeOverlay=function(e,t,n){var r=this;this.openOverlays.splice(this.openOverlays.reduce(function(t,n,r){return n.index===e?r:t},-1),1),this.renderOverlays(t,n),this.context.pubSub.publishToOverlayChanges({changedIndex:e,combinedOverlayHeight:r.getCombinedOverlayHeight(),type:"closed"})},e.prototype.renderOverlays=function(t,n){var a=this,s=0,l=function(e,t,n){s+=n,e.actualY=t,e.height=n},u=function(n,i){var a=i.defaultY+s,u=o.createRowInfoOverlay(i,a,t),c=u.querySelector("img.preview");c&&!c.src&&c.setAttribute("src",c.attributes.getNamedItem("data-src").value),u.querySelector("a").addEventListener("keydown",e.firstElKeypress),r.getLastItemOfNodeList(u.querySelectorAll("button")).addEventListener("keydown",e.lastElKeypress),n.appendChild(u),l(i,a,u.getBoundingClientRect().height)};n.forEach(function(t,n){var o=i.find(a.openOverlays,function(e){return e.index===n}),c=t.nextElementSibling.firstElementChild;if(a.realignRow(t,s),void 0!==o){if(c){var d=c.querySelector(".info-overlay-bg"),p=c.querySelector("foreignObject"),h=c.querySelector(".info-overlay-close-btn rect"),f=c.querySelector(".info-overlay-close-btn text");return l(o,o.defaultY+s,o.height),d.setAttribute("y",o.actualY.toString()),p.setAttribute("y",o.actualY.toString()),f.setAttribute("y",o.actualY.toString()),void h.setAttribute("y",o.actualY.toString())}u(t.nextElementSibling,o)}else c&&(t.nextElementSibling.querySelector("a").removeEventListener("keydown",e.firstElKeypress),r.getLastItemOfNodeList(t.nextElementSibling.querySelectorAll("button")).removeEventListener("keydown",e.lastElKeypress),r.removeChildren(t.nextElementSibling))})},e}();a.showFullName=function(e){e.getElementsByClassName("row-fixed").item(0).dispatchEvent(new MouseEvent("mouseenter"))},a.firstElKeypress=function(e){if(i.isTabUp(e)){var t=r.getParentByClassName(e.target,"row-overlay-holder");t&&t.previousElementSibling&&a.showFullName(t.previousElementSibling)}},a.lastElKeypress=function(e){if(i.isTabDown(e)){var t=r.getParentByClassName(e.target,"row-overlay-holder");t&&t.nextElementSibling&&a.showFullName(t.nextElementSibling)}},n.OverlayManager=a,n.default=a},{"../../helpers/dom":1,"../../helpers/misc":4,"./svg-details-overlay":19}],18:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(){this.subscribers=[]}return e.prototype.subscribeToOverlayChanges=function(e){this.subscribers.push(e)},e.prototype.subscribeToSpecificOverlayChanges=function(e,t){this.subscribers.push(function(n){n.changedIndex===e&&t(n)})},e.prototype.publishToOverlayChanges=function(e){this.subscribers.forEach(function(t){return t(e)})},e}();n.PubSub=r,n.default=r},{}],19:[function(e,t,n){"use strict";function r(e){var t=a.newA("info-overlay-close-btn");return t.appendChild(a.newRect({height:23,width:23,x:"100%",y:e})),t.appendChild(a.newTextEl("✕",{dx:7,dy:16,x:"100%",y:e})),t.appendChild(a.newTitle("Close Overlay")),t}function i(e,t){var n=a.newG("info-overlay-holder"),r=a.newRect({height:t,rx:2,ry:2,width:"100%",x:"0",y:e},"info-overlay-bg");return n.appendChild(r),n}Object.defineProperty(n,"__esModule",{value:!0});var o=e("../../helpers/dom"),a=e("../../helpers/svg"),s=e("./html-details-body");n.createRowInfoOverlay=function(e,t,n){var l=e.index+1,u=i(t,n),c=a.newForeignObject({height:n,width:"100%",x:"0",y:t}),d=r(t);d.addEventListener("click",function(){return e.onClose(e.index)});var p=s.createDetailsBody(l,n,e.entry),h=p.getElementsByClassName("tab-button"),f=p.getElementsByClassName("tab"),v=function(t){e.openTabIndex=t,o.forEachNodeList(f,function(e,n){e.style.display=t===n?"block":"none",h.item(n).classList.toggle("active",t===n)})};return o.forEachNodeList(h,function(e,t){e.addEventListener("click",function(){return v(t)})}),v(e.openTabIndex),c.appendChild(p),u.appendChild(c),u.appendChild(d),u}},{"../../helpers/dom":1,"../../helpers/svg":6,"./html-details-body":16}],20:[function(e,t,n){"use strict";function r(e,t){return{type:e,title:t,width:20}}Object.defineProperty(n,"__esModule",{value:!0});var i=e("../../helpers/misc");n.makeIcon=r,n.getIndicatorIcons=function(e){var t=e.responseDetails.indicators;if(0===t.length)return[];var n=[],o="",a=t.filter(function(e){return"error"===e.type}),s=t.filter(function(e){return"warning"===e.type}),l=t.filter(function(e){return"error"!==e.type&&"warning"!==e.type});return a.length>0&&(n.push(i.pluralize("Error",a.length)+":\n "+a.map(function(e){return e.title}).join("\n")),o="error"),s.length>0&&(n.push(i.pluralize("Warning",s.length)+":\n"+s.map(function(e){return e.title}).join("\n")),o=o||"warning"),l.length>0&&(n.push("Info:\n"+l.map(function(e){return e.title}).join("\n")),o=o||1!==l.length?o||"info":l[0].icon||l[0].type),[r(o,n.join("\n"))]}},{"../../helpers/misc":4}],21:[function(e,t,n){"use strict";function r(e,t){var n=u.newG(""),r=e.height-1,i=l.roundNumber(e.x/e.unit)+"%",o=u.newRect({height:r,width:l.roundNumber(e.width/e.unit)+"%",x:i,y:e.y},t);if(n.appendChild(o),e.label){var a,c;o.addEventListener("mouseenter",function(){c||(c=s.getParentByClassName(o,"water-fall-chart").querySelector(".tooltip")),a=setTimeout(function(){a=null,d.onHoverInShowTooltip(o,e,c)},100)}),o.addEventListener("mouseleave",function(){a?clearTimeout(a):d.onHoverOutShowTooltip(o)})}return e.showOverlay&&e.hideOverlay&&(o.addEventListener("mouseenter",e.showOverlay(e)),o.addEventListener("mouseleave",e.hideOverlay(e))),n}function i(e,t){return{cssClass:c.timingTypeToCssClass(e.type),height:t.height-6,hideOverlay:t.hideOverlay,label:"<strong>"+e.type+"</strong><br/>"+Math.round(e.start)+"ms - "+Math.round(e.end)+"ms<br/>total: "+Math.round(e.total)+"ms",showOverlay:t.showOverlay,unit:t.unit,width:e.total,x:e.start||.001,y:t.y}}function o(e,t,n){var r=e.y+e.height/1.5,i=Math.round(t)+" ms",o=(e.x+e.width)/e.unit+1,a=u.newTextEl(i,{x:l.roundNumber(o)+"%",y:r});return o+8*i.length/500*100>100&&(o=n/e.unit-1,a=u.newTextEl(i,{x:l.roundNumber(o)+"%",y:r},{textAnchor:"end"})),a}function a(e,t,n,r){var i=l.resourceUrlFormatter(n,125);t=t+Math.round(r/2)+5;var o=u.newTextEl(i,{x:e,y:t});return o.appendChild(u.newTitle(n)),o.style.opacity=n.match(/js.map$/)?"0.5":"1",o}Object.defineProperty(n,"__esModule",{value:!0});var s=e("../../helpers/dom"),l=e("../../helpers/misc"),u=e("../../helpers/svg"),c=e("../../transformers/styling-converters"),d=e("./svg-tooltip");n.createRect=function(e,t,n){var a=r(e,"time-block "+e.cssClass),s=u.newG("rect-holder"),l=e.x;return s.appendChild(a),t&&t.length>0&&(t.forEach(function(t){if(t.total>0&&"number"==typeof t.start){var n=i(t,e),o=r(n,"segment "+n.cssClass);l=Math.min(l,n.x),s.appendChild(o)}}),s.appendChild(o(e,n,l))),s},n.createRequestNumberLabel=function(e,t,n,r,i){return t+=Math.round(r/2)+5,e+=i,u.newTextEl(n,{x:e,y:t},{"text-anchor":"end"})},n.createRequestLabelClipped=function(e,t,n,r){var i=a(e,t,n,r);return i.style.clipPath="url(#titleClipPath)",i},n.createRequestLabelFull=function(e,t,n,r){var i=a(e,t,n,r),o=u.newG("full-label",{},{clipPath:"url(#titleFullClipPath)"});return o.appendChild(u.newRect({height:r-4,rx:5,ry:5,width:500,x:e-3,y:t+3},"label-full-bg")),o.appendChild(i),o};var p="function"==typeof window.requestAnimationFrame&&"function"==typeof window.cancelAnimationFrame;n.appendRequestLabels=function(e,t,n,r){var i=r.getElementsByTagName("rect")[0],o=r.getElementsByTagName("text")[0];r.style.display="none",r.style.visibility="hidden",e.appendChild(t),e.appendChild(n),e.appendChild(r);var a,s=!1;e.addEventListener("mouseenter",function(){r.style.display="block",n.style.display="none",r.style.visibility="visible";var e=function(){var e=o.getComputedTextLength()+10;i.setAttribute("width",e.toString()),s=!0,a=void 0};s||(p?a=window.requestAnimationFrame(e):e())}),e.addEventListener("mouseleave",function(){n.style.display="block",r.style.display="none",r.style.visibility="hidden",p&&void 0!==a&&cancelAnimationFrame(a)})},n.createBgStripe=function(e,t,n){var r=n?"even":"odd";return u.newRect({height:t,width:"100%",x:0,y:e},r)},n.createNameRowBg=function(e,t){var n=u.newG("row row-fixed");return n.appendChild(u.newRect({height:t,width:"100%",x:"0",y:e},"",{opacity:0})),n},n.createRowBg=function(e,t){var n=u.newG("row row-flex");return n.appendChild(u.newRect({height:t,width:"100%",x:"0",y:e},"",{opacity:0})),n}},{"../../helpers/dom":1,"../../helpers/misc":4,"../../helpers/svg":6,"../../transformers/styling-converters":15,"./svg-tooltip":23}],22:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("../../helpers/icons"),i=e("../../helpers/misc"),o=e("../../helpers/svg"),a=e("./svg-indicators"),s=e("./svg-row-subcomponents"),l=o.newClipPath("titleClipPath");l.appendChild(o.newRect({height:"100%",width:"100%"}));var u=o.newClipPath("titleFullClipPath");u.appendChild(o.newRect({height:"100%",width:"100%"}));var c=3;n.createRow=function(e,t,n,d,p,h,f){var v=p.y,m=p.height,g=e.options.leftColumnWith,y=o.newA(h.responseDetails.rowClass);y.setAttribute("tabindex","0"),y.setAttribute("xlink:href","javascript:void(0)");var w=o.newSvg("left-fixed-holder",{width:g+"%",x:"0"}),b=o.newSvg("flex-scale-waterfall",{width:100-g+"%",x:g+"%"}),C=s.createRect(p,h.segments,h.total),x=s.createNameRowBg(v,m),q=s.createRowBg(v,m),T=s.createBgStripe(v,m,t%2==0),S=c+n;if(e.options.showMimeTypeIcon){var E=h.responseDetails.icon;S-=E.width,x.appendChild(r[E.type](S,v+3,E.title))}e.options.showIndicatorIcons&&a.getIndicatorIcons(h).forEach(function(e){S-=e.width,x.appendChild(r[e.type](S,v+3,e.title))}),S=c+n;var M=""+(t+1),L=s.createRequestNumberLabel(S,v,M,m,d);S+=d+4;var P=s.createRequestLabelClipped(S,v,i.resourceUrlFormatter(h.url,40),m),_=s.createRequestLabelFull(S,v,h.url,m);q.appendChild(C),s.appendRequestLabels(x,L,P,_),e.pubSub.subscribeToSpecificOverlayChanges(t,function(e){O="open"===e.type}),t>0&&e.pubSub.subscribeToSpecificOverlayChanges(t-1,function(e){N="open"===e.type});var O,N;return y.addEventListener("click",function(e){e.preventDefault(),f(e)}),y.addEventListener("keydown",function(e){if(32===e.which||13===e.which)return e.preventDefault(),f(e);i.isTabUp(e)&&!N&&t>0?y.previousSibling.previousSibling.lastChild.lastChild.dispatchEvent(new MouseEvent("mouseenter")):!i.isTabDown(e)||O||y.nextSibling&&y.nextSibling.nextSibling&&y.nextSibling.nextSibling.lastChild.lastChild.dispatchEvent(new MouseEvent("mouseenter"))}),y.addEventListener("focusout",function(){x.dispatchEvent(new MouseEvent("mouseleave"))}),b.appendChild(q),w.appendChild(l.cloneNode(!0)),w.appendChild(x),y.appendChild(u.cloneNode(!0)),y.appendChild(T),y.appendChild(b),y.appendChild(w),y}},{"../../helpers/icons":3,"../../helpers/misc":4,"../../helpers/svg":6,"./svg-indicators":20,"./svg-row-subcomponents":21}],23:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("../../helpers/dom"),i=e("../../helpers/svg"),o=/(?:translate)\(.+[, ]+(.+)\)/,a=function(e){void 0===e&&(e="");var t=o.exec(e);return t&&t.length>=2?parseInt(t[1],10):0};n.onHoverInShowTooltip=function(e,t,n){var i=n.querySelector(".tooltip-payload"),o=r.getParentByClassName(e,"row-item"),s=a(o.getAttribute("transform")),l=parseInt(e.getAttribute("y"),10),u=e.getAttribute("x"),c=parseFloat(u),d=50,p=e.width.baseVal.value||e.getBoundingClientRect().width,h=p/(t.width/t.unit),f=t.width/t.unit/p,v=c>50&&(95-c)*h<200;i.innerHTML=t.label,r.addClass(i,"no-anim"),n.style.display="block",i.style.opacity="0.01";var m=i.clientHeight+5;if(d=l+s-m>0?s-m:s+t.height+10,v){var g=c-(i.clientWidth+5)*f,y=parseInt(n.querySelector("body").style.left,10);y*=1/(.01*(100-y)),i.style.left=g>-y?g+"%":-y+"%"}else i.style.left=u;n.setAttribute("y",""+(l+d)),n.setAttribute("height",m.toString()),r.removeClass(i,"no-anim"),i.style.opacity="1";var w=i.clientHeight+5-m;0!==w&&(n.setAttribute("height",(m+w).toString()),n.setAttribute("y",""+(l+d-w)))},n.onHoverOutShowTooltip=function(e){var t=r.getParentByClassName(e,"water-fall-chart").querySelector(".tooltip"),n=t.querySelector(".tooltip-payload");t.style.display="none",t.setAttribute("height","250"),n.style.opacity="0"},n.makeTooltip=function(e){var t=e.leftColumnWith,n=i.newSvg("tooltip-holder",{width:"100%",x:"0",y:"0"}),o=i.newForeignObject({width:"100%",x:"0",y:t+"%"},"tooltip",{display:"none"}),a=r.makeHtmlEl(),s=r.makeBodyEl({left:t+"%",width:100-t+"%"},'<div class="tooltip-payload" style="max-width: 200px; opacity: 0;"></div>');return a.appendChild(s),o.appendChild(a),n.appendChild(o),n}},{"../../helpers/dom":1,"../../helpers/svg":6}],24:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("../../helpers/dom"),i=e("../../helpers/svg");n.createAlignmentLines=function(e){return{endline:i.newLine({x1:"0",x2:"0",y1:"0",y2:e},"line-end"),startline:i.newLine({x1:"0",x2:"0",y1:"0",y2:e},"line-start")}},n.makeHoverEvtListeners=function(e){return{onMouseEnterPartial:function(){return function(t){var n=t.target;r.addClass(n,"active");var i=n.x.baseVal.valueInSpecifiedUnits+n.width.baseVal.valueInSpecifiedUnits+"%",o=n.x.baseVal.valueInSpecifiedUnits+"%";e.endline.x1.baseVal.valueAsString=i,e.endline.x2.baseVal.valueAsString=i,e.startline.x1.baseVal.valueAsString=o,e.startline.x2.baseVal.valueAsString=o,r.addClass(e.endline,"active"),r.addClass(e.startline,"active")}},onMouseLeavePartial:function(){return function(t){var n=t.target;r.removeClass(n,"active"),r.removeClass(e.endline,"active"),r.removeClass(e.startline,"active")}}}}},{"../../helpers/dom":1,"../../helpers/svg":6}],25:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("../../helpers/misc"),i=e("../../helpers/svg"),o=function(e,t,n,o,a){void 0===a&&(a=!1);var s,l=e.diagramHeight,u=100/n,c="sub-second-line";if(a){var d=o>n-.2;c="second-line";var p=r.roundNumber(u*o)+.5+"%",h={};d&&(p=r.roundNumber(u*o)-.5+"%",h["text-anchor"]="end"),s=i.newTextEl(o+"s",{x:p,y:l},h)}var f=r.roundNumber(u*o)+"%",v=i.newLine({x1:f,x2:f,y1:0,y2:l},c);e.pubSub.subscribeToOverlayChanges(function(e){var t=e.combinedOverlayHeight,n=(l+t)/l;v.setAttribute("transform","scale(1, "+n+")"),a&&s.setAttribute("transform","translate(0, "+t+")")}),t.appendChild(v),a&&t.appendChild(s)};n.createTimeScale=function(e,t){for(var n=i.newG("time-scale full-width"),r=200*Math.ceil(t/1e4),a=1e3/r,s=t/1e3,l=t/r,u=0;u<=l;u++)o(e,n,s,u/a,u%a<1e-9);return n}},{"../../helpers/misc":4,"../../helpers/svg":6}],26:[function(e,t,n){"use strict";function r(e,t){var n=a.newG("line-mark-holder line-marker-"+o.toCssClass(t.name));return n.appendChild(a.newTitle(t.name.replace(/^startTimer-/,""))),n.appendChild(a.newRect({height:e.diagramHeight,width:(t.duration||1)/e.unit+"%",x:(t.startTime||.001)/e.unit+"%",y:0},"line-mark")),n}Object.defineProperty(n,"__esModule",{value:!0});var i=e("../../helpers/dom"),o=e("../../helpers/misc"),a=e("../../helpers/svg");n.createMarks=function(e,t){var n=e.diagramHeight,s=a.newG("marker-holder",{transform:"scale(1, 1)"});return t.forEach(function(l,u){var c=o.roundNumber(l.startTime/e.unit),d=a.newG("mark-holder type-"+l.name.toLowerCase().replace(/([0-9]+[ ]?ms)|\W/g,"")),p=a.newG("line-holder"),h=a.newG("line-label-holder"),f=a.newTextEl(l.name,{x:c+"%",y:n+25});f.setAttribute("writing-mode","tb");var v;l.x=c;var m=a.newLine({x1:c+"%",x2:c+"%",y1:0,y2:n}),g=t[u-1];g&&l.x-g.x<2.5&&(f.setAttribute("x",g.x+2.5+"%"),l.x=g.x+2.5);var y=a.newLine({x1:c+"%",x2:l.x+"%",y1:n,y2:n+23});p.appendChild(m),p.appendChild(y),l.duration&&(v=r(e,l),p.appendChild(v)),e.pubSub.subscribeToOverlayChanges(function(e){var t=e.combinedOverlayHeight,r=(n+t)/n;m.setAttribute("transform","scale(1, "+r+")"),h.setAttribute("transform","translate(0, "+t+")"),y.setAttribute("transform","translate(0, "+t+")"),v&&v.setAttribute("transform","translate(0, "+t+")")});var w=!1,b=!1;f.addEventListener("mouseenter",function(){w||(d.parentNode.appendChild(d),w=!0,"function"==typeof window.requestAnimationFrame?window.requestAnimationFrame(function(){return i.addClass(p,"active")}):i.addClass(p,"active"))}),f.addEventListener("mouseleave",function(){w=!1,b||i.removeClass(p,"active")}),f.addEventListener("click",function(){b?(w=!1,i.removeClass(p,"active")):w?w=!1:i.addClass(p,"active"),b=!b}),h.appendChild(f),d.appendChild(a.newTitle(l.name)),d.appendChild(p),d.appendChild(h),s.appendChild(d)}),s},n.createLineRect=r},{"../../helpers/dom":1,"../../helpers/misc":4,"../../helpers/svg":6}],27:[function(e,t,n){"use strict";function r(e){for(var t=Math.floor(Math.log(e)/Math.LN10)+1,n="",r=0;r<t;r++)n+="0";return n}function i(e,t){var n=e.reduce(function(e,t){var n={x:0,y:0};return Math.max(e,a.getNodeTextWidth(a.newTextEl(t.name,n),!0))},0);return Math.floor(t+n+35)}function o(e,t,n){var r=e.durationMs/100,i={diagramHeight:(n.length+1)*t.rowHeight,options:t,overlayManager:void 0,pubSub:new u.PubSub,unit:r};return i.overlayManager=new l.default(i),i}Object.defineProperty(n,"__esModule",{value:!0});var a=e("../helpers/svg"),s=e("../transformers/styling-converters"),l=e("./details-overlay/overlay-manager"),u=e("./details-overlay/pub-sub"),c=e("./row/svg-row"),d=e("./row/svg-tooltip"),p=e("./sub-components/svg-alignment-helper"),h=e("./sub-components/svg-general-components"),f=e("./sub-components/svg-marks");n.createWaterfallSvg=function(e,t){function n(){return w+y.overlayManager.getCombinedOverlayHeight()}var l,u,v=e.entries.filter(function(e){return"number"==typeof e.start&&"number"==typeof e.total}).sort(function(e,t){return(e.start||0)-(t.start||0)}),m=a.newG("overlays"),g=a.newG("rows-holder"),y=o(e,t,v),w=i(e.marks,y.diagramHeight),b=a.newSvg("water-fall-chart",{height:w}),C=a.newSvg("scale-and-marks-holder",{width:100-t.leftColumnWith+"%",x:t.leftColumnWith+"%"});if(t.showAlignmentHelpers){l=a.newG("hover-overlays");var x=p.createAlignmentLines(y.diagramHeight);l.appendChild(x.startline),l.appendChild(x.endline),u=p.makeHoverEvtListeners(x)}C.appendChild(h.createTimeScale(y,e.durationMs)),C.appendChild(f.createMarks(y,e.marks));var q=v[0].responseDetails.icon.width,T=0;if(t.showMimeTypeIcon&&(T+=1),t.showIndicatorIcons){var S=v.map(function(e){return e.responseDetails.indicators.length>0?1:0});T+=Math.max.apply(null,S)}var E=T*q,M=r(v.length),L=a.getNodeTextWidth(a.newTextEl(""+M),!0),P=[];return y.pubSub.subscribeToOverlayChanges(function(){var e=n();b.classList.toggle("closing",e<b.clientHeight),b.style.height=e+"px"}),v.forEach(function(e,n){var r=e.total||1,i=t.rowHeight*n,o=e.start||.001,l={cssClass:s.requestTypeToCssClass(e.responseDetails.requestType),height:t.rowHeight,hideOverlay:t.showAlignmentHelpers?u.onMouseLeavePartial:void 0,label:"<strong>"+e.url+"</strong><br/>"+Math.round(e.start)+"ms - "+Math.round(e.end)+"ms<br/>total: "+Math.round(e.total)+"ms",showOverlay:t.showAlignmentHelpers?u.onMouseEnterPartial:void 0,unit:y.unit,width:r,x:o,y:i},d=c.createRow(y,n,E,L,l,e,function(){y.overlayManager.toggleOverlay(n,i+t.rowHeight,450,e,P)});P.push(d),g.appendChild(d),g.appendChild(a.newG("row-overlay-holder"))}),t.showAlignmentHelpers&&C.appendChild(l),b.appendChild(C),b.appendChild(g),b.appendChild(m),b.appendChild(d.makeTooltip(t)),b}},{"../helpers/svg":6,"../transformers/styling-converters":15,"./details-overlay/overlay-manager":17,"./details-overlay/pub-sub":18,"./row/svg-row":22,"./row/svg-tooltip":23,"./sub-components/svg-alignment-helper":24,"./sub-components/svg-general-components":25,"./sub-components/svg-marks":26}]},{},[8])(8)}); |
@@ -85,2 +85,3 @@ /** | ||
else { | ||
// tslint:disable-next-line:no-console | ||
console.warn(new Error(`Trying to set non-existing style ` + | ||
@@ -93,2 +94,3 @@ `${property} = ${value} on a <${el.tagName.toLowerCase()}>.`)); | ||
if (!(name in el)) { | ||
// tslint:disable-next-line:no-console | ||
console.warn(new Error(`Trying to set non-existing attribute ` + | ||
@@ -95,0 +97,0 @@ `${name} = ${value} on a <${el.tagName.toLowerCase()}>.`)); |
@@ -11,3 +11,3 @@ import { roundNumber } from "./misc"; | ||
*/ | ||
export function parseAndFormat(input, parseFn = identity, formatFn = toString) { | ||
export function parseAndFormat(input, parseFn, formatFn = toString) { | ||
if (input === undefined) { | ||
@@ -22,6 +22,2 @@ return undefined; | ||
} | ||
/** Fallback dummy function - just maintains the type */ | ||
function identity(source) { | ||
return source; | ||
} | ||
function toString(source) { | ||
@@ -136,2 +132,3 @@ if (typeof source["toString"] === "function") { | ||
} | ||
// tslint:disable-next-line:no-console | ||
console.warn("skipped link, due to potentially unsafe url", unsafeUrl); | ||
@@ -138,0 +135,0 @@ return ""; |
@@ -57,3 +57,3 @@ import { roundNumber } from "../helpers/misc"; | ||
* @param {number=0} pageIndex - page to parse (for multi-page HAR) | ||
* @param {HarTransformerOptions} options - HAR-parser-specific options | ||
* @param {ChartOptions} options - HAR-parser-specific options | ||
* @returns WaterfallData | ||
@@ -93,2 +93,6 @@ */ | ||
}); | ||
// if we configured fixed length from the outside, use that! | ||
if (options.fixedLengthMs) { | ||
doneTime = options.fixedLengthMs; | ||
} | ||
// Add 100ms margin to make room for labels | ||
@@ -108,3 +112,3 @@ doneTime += 100; | ||
* @param {Page} currPage - active page | ||
* @param {HarTransformerOptions} options - HAR-parser-specific options | ||
* @param {ChartOptions} options - HAR options | ||
*/ | ||
@@ -129,3 +133,3 @@ const getMarks = (pageTimings, currPage, options) => { | ||
* @param {Page} currPage - active page | ||
* @param {HarTransformerOptions} options - HAR-parser-specific options | ||
* @param {ChartOptions} options - HAR options | ||
*/ | ||
@@ -132,0 +136,0 @@ const getUserTimimngs = (currPage, options) => { |
{ | ||
"name": "perf-cascade", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"description": "Har file visualizer", | ||
@@ -52,5 +52,5 @@ "main": "./index.js", | ||
"tsify": "^3.0.1", | ||
"tslint": "^5.4.3", | ||
"tslint": "~5.4", | ||
"tslint-eslint-rules": "^4.1.1", | ||
"typescript": "^2.3.4", | ||
"typescript": "~2.3", | ||
"whatwg-fetch": "^2.0.3" | ||
@@ -57,0 +57,0 @@ }, |
@@ -11,3 +11,3 @@ import { ChartRenderOption } from "../typing/options"; | ||
*/ | ||
export declare function parseAndFormat<S, T>(input?: S, parseFn?: ((_: S) => T), formatFn?: ((_: T) => string)): string; | ||
export declare function parseAndFormat<S, T>(input: S, parseFn: ((_: S) => T), formatFn?: ((_: T) => string)): string; | ||
export declare function parseNonEmpty(input: string): string; | ||
@@ -14,0 +14,0 @@ export declare function parseDate(input: string): Date; |
import { Har, Log } from "har-format"; | ||
import { HarTransformerOptions } from "../typing/options"; | ||
import { ChartOptions, HarTransformerOptions } from "../typing/options"; | ||
import { WaterfallData, WaterfallDocs } from "../typing/waterfall"; | ||
@@ -15,5 +15,5 @@ /** | ||
* @param {number=0} pageIndex - page to parse (for multi-page HAR) | ||
* @param {HarTransformerOptions} options - HAR-parser-specific options | ||
* @param {ChartOptions} options - HAR-parser-specific options | ||
* @returns WaterfallData | ||
*/ | ||
export declare function transformPage(harData: Har | Log, pageIndex: number, options: HarTransformerOptions): WaterfallData; | ||
export declare function transformPage(harData: Har | Log, pageIndex: number, options: ChartOptions): WaterfallData; |
@@ -21,2 +21,4 @@ import { WaterfallDocs } from "./waterfall"; | ||
onParsed: (data: WaterfallDocs) => void; | ||
/** Set a row length time in ms (if not set the time is calculated from the HAR) */ | ||
fixedLengthMs: number; | ||
} | ||
@@ -23,0 +25,0 @@ export interface HarTransformerOptions { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
582480
12782