perf-cascade
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -1,3 +0,3 @@ | ||
/*! github.com/micmro/PerfCascade Version:1.2.0 (25/03/2017) */ | ||
/*! github.com/micmro/PerfCascade Version:1.2.1 (25/03/2017) */ | ||
!function(a){"use strict";function b(){this.crc=-1}function c(){}function d(a,b,c){if(b<0||c<0||b+c>a.size)throw new RangeError("offset:"+b+", length:"+c+", size:"+a.size);return a.slice?a.slice(b,b+c):a.webkitSlice?a.webkitSlice(b,b+c):a.mozSlice?a.mozSlice(b,b+c):a.msSlice?a.msSlice(b,b+c):void 0}function e(a,b){var c,d;return c=new ArrayBuffer(a),d=new Uint8Array(c),b&&d.set(b,0),{buffer:c,array:d,view:new DataView(c)}}function f(){}function g(a){function b(b,c){d=new i(new Blob([a],{type:P})),d.init(function(){e.size=d.size,b()},c)}function c(a,b,c,e){d.readUint8Array(a,b,c,e)}var d,e=this;e.size=0,e.init=b,e.readUint8Array=c}function h(b){function c(a){for(var c=b.length;"="==b.charAt(c-1);)c--;f=b.indexOf(",")+1,g.size=Math.floor(.75*(c-f)),a()}function d(c,d,g){var h,i=e(d),j=4*Math.floor(c/3),k=4*Math.ceil((c+d)/3),l=a.atob(b.substring(j+f,k+f)),m=c-3*Math.floor(j/4);for(h=m;h<m+d;h++)i.array[h-m]=l.charCodeAt(h);g(i.array)}var f,g=this;g.size=0,g.init=c,g.readUint8Array=d}function i(a){function b(b){e.size=a.size,b()}function c(b,c,e,f){var g=new FileReader;g.onload=function(a){e(new Uint8Array(a.target.result))},g.onerror=f;try{g.readAsArrayBuffer(d(a,b,c))}catch(a){f(a)}}var e=this;e.size=0,e.init=b,e.readUint8Array=c}function j(){}function k(a){function b(a){e=new Blob([],{type:P}),a()}function c(a,b){e=new Blob([e,E?a:a.buffer],{type:P}),b()}function d(b,c){var d=new FileReader;d.onload=function(a){b(a.target.result)},d.onerror=c,d.readAsText(e,a)}var e,f=this;f.init=b,f.writeUint8Array=c,f.getData=d}function l(b){function c(a){g+="data:"+(b||"")+";base64,",a()}function d(b,c){var d,e=h.length,f=h;for(h="",d=0;d<3*Math.floor((e+b.length)/3)-e;d++)f+=String.fromCharCode(b[d]);for(;d<b.length;d++)h+=String.fromCharCode(b[d]);f.length>2?g+=a.btoa(f):h=f,c()}function e(b){b(g+a.btoa(h))}var f=this,g="",h="";f.init=c,f.writeUint8Array=d,f.getData=e}function m(a){function b(b){e=new Blob([],{type:a}),b()}function c(b,c){e=new Blob([e,E?b:b.buffer],{type:a}),c()}function d(a){a(e)}var e,f=this;f.init=b,f.writeUint8Array=c,f.getData=d}function n(a,b,c,d,e,f,g,h,i,j){function k(){a.removeEventListener("message",l,!1),h(o,p)}function l(b){var c=b.data,e=c.data,h=c.error;if(h)return h.toString=function(){return"Error: "+this.message},void i(h);if(c.sn===r)switch("number"==typeof c.codecTime&&(a.codecTime+=c.codecTime),"number"==typeof c.crcTime&&(a.crcTime+=c.crcTime),c.type){case"append":e?(o+=e.length,d.writeUint8Array(e,function(){m()},j)):m();break;case"flush":p=c.crc,e?(o+=e.length,d.writeUint8Array(e,function(){k()},j)):k();break;case"progress":g&&g(n+c.loaded,f);break;case"importScripts":case"newTask":case"echo":break;default:console.warn("zip.js:launchWorkerProcess: unknown message: ",c)}}function m(){n=q*O,n<=f?c.readUint8Array(e+n,Math.min(O,f-n),function(c){g&&g(n,f);var d=0===n?b:{sn:r};d.type="append",d.data=c;try{a.postMessage(d,[c.buffer])}catch(b){a.postMessage(d)}q++},i):a.postMessage({sn:r,type:"flush"})}var n,o,p,q=0,r=b.sn;o=0,a.addEventListener("message",l,!1),m()}function o(a,c,d,e,f,g,h,i,j,k){function l(){var b;if((m=n*O)<f)c.readUint8Array(e+m,Math.min(O,f-m),function(b){var c;try{c=a.append(b,function(a){h&&h(m+a,f)})}catch(a){return void j(a)}c?(o+=c.length,d.writeUint8Array(c,function(){n++,setTimeout(l,1)},k),q&&r.append(c)):(n++,setTimeout(l,1)),p&&r.append(b),h&&h(m,f)},j);else{try{b=a.flush()}catch(a){return void j(a)}b?(q&&r.append(b),o+=b.length,d.writeUint8Array(b,function(){i(o,r.get())},k)):i(o,r.get())}}var m,n=0,o=0,p="input"===g,q="output"===g,r=new b;l()}function p(b,c,d,e,f,g,h,i,j,k,l){var m=h?"output":"none";if(a.zip.useWebWorkers){n(b,{sn:c,codecClass:"Inflater",crcType:m},d,e,f,g,j,i,k,l)}else o(new a.zip.Inflater,d,e,f,g,m,j,i,k,l)}function q(b,c,d,e,f,g,h,i,j){if(a.zip.useWebWorkers){n(b,{sn:c,options:{level:f},codecClass:"Deflater",crcType:"input"},d,e,0,d.size,h,g,i,j)}else o(new a.zip.Deflater,d,e,0,d.size,"input",h,g,i,j)}function r(b,d,e,f,g,h,i,j,k,l,m){if(a.zip.useWebWorkers&&i){n(b,{sn:d,codecClass:"NOOP",crcType:"input"},e,f,g,h,k,j,l,m)}else o(new c,e,f,g,h,"input",k,j,l,m)}function s(a){var b,c,d="",e=["Ç","ü","é","â","ä","à","å","ç","ê","ë","è","ï","î","ì","Ä","Å","É","æ","Æ","ô","ö","ò","û","ù","ÿ","Ö","Ü","ø","£","Ø","×","ƒ","á","í","ó","ú","ñ","Ñ","ª","º","¿","®","¬","½","¼","¡","«","»","_","_","_","¦","¦","Á","Â","À","©","¦","¦","+","+","¢","¥","+","+","-","-","+","-","+","ã","Ã","+","+","-","-","¦","-","+","¤","ð","Ð","Ê","Ë","È","i","Í","Î","Ï","+","+","_","_","¦","Ì","_","Ó","ß","Ô","Ò","õ","Õ","µ","þ","Þ","Ú","Û","Ù","ý","Ý","¯","´","","±","_","¾","¶","§","÷","¸","°","¨","·","¹","³","²","_"," "];for(b=0;b<a.length;b++)c=255&a.charCodeAt(b),d+=c>127?e[c-128]:String.fromCharCode(c);return d}function t(a){return decodeURIComponent(escape(a))}function u(a){var b,c="";for(b=0;b<a.length;b++)c+=String.fromCharCode(a[b]);return c}function v(a){var b=(4294901760&a)>>16,c=65535&a;try{return new Date(1980+((65024&b)>>9),((480&b)>>5)-1,31&b,(63488&c)>>11,(2016&c)>>5,2*(31&c),0)}catch(a){}}function w(a,b,c,d,e){return a.version=b.view.getUint16(c,!0),a.bitFlag=b.view.getUint16(c+2,!0),a.compressionMethod=b.view.getUint16(c+4,!0),a.lastModDateRaw=b.view.getUint32(c+6,!0),a.lastModDate=v(a.lastModDateRaw),1==(1&a.bitFlag)?void e(H):((d||8!=(8&a.bitFlag))&&(a.crc32=b.view.getUint32(c+10,!0),a.compressedSize=b.view.getUint32(c+14,!0),a.uncompressedSize=b.view.getUint32(c+18,!0)),4294967295===a.compressedSize||4294967295===a.uncompressedSize?void e(I):(a.filenameLength=b.view.getUint16(c+22,!0),void(a.extraFieldLength=b.view.getUint16(c+24,!0))))}function x(b,c,d){function f(){}function g(a){function c(c,f){b.readUint8Array(b.size-c,c,function(b){for(var c=b.length-e;c>=0;c--)if(80===b[c]&&75===b[c+1]&&5===b[c+2]&&6===b[c+3])return void a(new DataView(b.buffer,c,e));f()},function(){d(J)})}var e=22;if(b.size<e)return void d(F);var f=e+65536;c(e,function(){c(Math.min(f,b.size),function(){d(F)})})}var h=0;f.prototype.getData=function(a,c,f,g){function i(a){var b=e(4);return b.view.setUint32(0,a),m.crc32==b.view.getUint32(0)}function j(b,e){g&&!i(e)?d(G):a.getData(function(a){c(a)})}function k(a){d(a||M)}function l(a){d(a||L)}var m=this;b.readUint8Array(m.offset,30,function(c){var i,n=e(c.length,c);if(1347093252!=n.view.getUint32(0))return void d(F);w(m,n,4,!1,d),i=m.offset+30+m.filenameLength+m.extraFieldLength,a.init(function(){0===m.compressionMethod?r(m._worker,h++,b,a,i,m.compressedSize,g,j,f,k,l):p(m._worker,h++,b,a,i,m.compressedSize,g,j,f,k,l)},l)},k)};var i={getEntries:function(a){var c=this._worker;g(function(g){var h,i;if(h=g.getUint32(16,!0),i=g.getUint16(8,!0),h<0||h>=b.size)return void d(F);b.readUint8Array(h,b.size-h,function(b){var g,h,j,k,l=0,m=[],n=e(b.length,b);for(g=0;g<i;g++){if(h=new f,h._worker=c,1347092738!=n.view.getUint32(l))return void d(F);w(h,n,l+6,!0,d),h.commentLength=n.view.getUint16(l+32,!0),h.directory=16==(16&n.view.getUint8(l+38)),h.offset=n.view.getUint32(l+42,!0),j=u(n.array.subarray(l+46,l+46+h.filenameLength)),h.filename=2048==(2048&h.bitFlag)?t(j):s(j),h.directory||"/"!=h.filename.charAt(h.filename.length-1)||(h.directory=!0),k=u(n.array.subarray(l+46+h.filenameLength+h.extraFieldLength,l+46+h.filenameLength+h.extraFieldLength+h.commentLength)),h.comment=2048==(2048&h.bitFlag)?t(k):s(k),m.push(h),l+=46+h.filenameLength+h.extraFieldLength+h.commentLength}a(m)},function(){d(J)})})},close:function(a){this._worker&&(this._worker.terminate(),this._worker=null),a&&a()},_worker:null};a.zip.useWebWorkers?C("inflater",function(a){i._worker=a,c(i)},function(a){d(a)}):c(i)}function y(a){return unescape(encodeURIComponent(a))}function z(a){var b,c=[];for(b=0;b<a.length;b++)c.push(a.charCodeAt(b));return c}function A(b,c,d,f){function g(a){d(a||K)}function h(a){d(a||M)}var i={},j=[],k=0,l=0,m={add:function(a,c,m,n,o){function p(c){var d;w=o.lastModDate||new Date,u=e(26),i[a]={headerArray:u.array,directory:o.directory,filename:v,offset:k,comment:z(y(o.comment||""))},u.view.setUint32(0,335546376),o.version&&u.view.setUint8(0,o.version),f||0===o.level||o.directory||u.view.setUint16(4,2048),u.view.setUint16(6,(w.getHours()<<6|w.getMinutes())<<5|w.getSeconds()/2,!0),u.view.setUint16(8,(w.getFullYear()-1980<<4|w.getMonth()+1)<<5|w.getDate(),!0),u.view.setUint16(22,v.length,!0),d=e(30+v.length),d.view.setUint32(0,1347093252),d.array.set(u.array,4),d.array.set(v,30),k+=d.array.length,b.writeUint8Array(d.array,c,g)}function s(a,d){var f=e(16);k+=a||0,f.view.setUint32(0,1347094280),void 0!==d&&(u.view.setUint32(10,d,!0),f.view.setUint32(4,d,!0)),c&&(f.view.setUint32(8,a,!0),u.view.setUint32(14,a,!0),f.view.setUint32(12,c.size,!0),u.view.setUint32(18,c.size,!0)),b.writeUint8Array(f.array,function(){k+=16,m()},g)}function t(){if(o=o||{},a=a.trim(),o.directory&&"/"!=a.charAt(a.length-1)&&(a+="/"),i.hasOwnProperty(a))return void d(N);v=z(y(a)),j.push(a),p(function(){c?f||0===o.level?r(x,l++,c,b,0,c.size,!0,s,n,h,g):q(x,l++,c,b,o.level,s,n,h,g):s()},g)}var u,v,w,x=this._worker;c?c.init(t,h):t()},close:function(a){this._worker&&(this._worker.terminate(),this._worker=null);var c,d,f,h=0,l=0;for(d=0;d<j.length;d++)f=i[j[d]],h+=46+f.filename.length+f.comment.length;for(c=e(h+22),d=0;d<j.length;d++)f=i[j[d]],c.view.setUint32(l,1347092738),c.view.setUint16(l+4,5120),c.array.set(f.headerArray,l+6),c.view.setUint16(l+32,f.comment.length,!0),f.directory&&c.view.setUint8(l+38,16),c.view.setUint32(l+42,f.offset,!0),c.array.set(f.filename,l+46),c.array.set(f.comment,l+46+f.filename.length),l+=46+f.filename.length+f.comment.length;c.view.setUint32(l,1347093766),c.view.setUint16(l+8,j.length,!0),c.view.setUint16(l+10,j.length,!0),c.view.setUint32(l+12,h,!0),c.view.setUint32(l+16,k,!0),b.writeUint8Array(c.array,function(){b.getData(a)},g)},_worker:null};a.zip.useWebWorkers?C("deflater",function(a){m._worker=a,c(m)},function(a){d(a)}):c(m)}function B(a){var b=document.createElement("a");return a.map(function(a){return b.href=a,b.href})}function C(b,c,d){function e(a){var b=a.data;if(b.error)return h.terminate(),void d(b.error);"importScripts"===b.type&&(h.removeEventListener("message",e),h.removeEventListener("error",f),c(h))}function f(a){h.terminate(),d(a)}if(null!==a.zip.workerScripts&&null!==a.zip.workerScriptsPath)return void d(new Error("Either zip.workerScripts or zip.workerScriptsPath may be set, not both."));var g;if(a.zip.workerScripts){if(g=a.zip.workerScripts[b],!Array.isArray(g))return void d(new Error("zip.workerScripts."+b+" is not an array!"));g=B(g)}else g=Q[b].slice(0),g[0]=(a.zip.workerScriptsPath||"")+g[0];var h=new Worker(g[0]);h.codecTime=h.crcTime=0,h.postMessage({type:"importScripts",scripts:g.slice(1)}),h.addEventListener("message",e),h.addEventListener("error",f)}function D(a){console.error(a)}var E,F="File format is not recognized.",G="CRC failed.",H="File contains encrypted entry.",I="File is using Zip64 (4gb+ file size).",J="Error while reading zip file.",K="Error while writing zip file.",L="Error while writing file data.",M="Error while reading file data.",N="File already exists.",O=524288,P="text/plain";try{E=0===new Blob([new DataView(new ArrayBuffer(0))]).size}catch(a){}b.prototype.append=function(a){for(var b=0|this.crc,c=this.table,d=0,e=0|a.length;d<e;d++)b=b>>>8^c[255&(b^a[d])];this.crc=b},b.prototype.get=function(){return~this.crc},b.prototype.table=function(){var a,b,c,d=[];for(a=0;a<256;a++){for(c=a,b=0;b<8;b++)1&c?c=c>>>1^3988292384:c>>>=1;d[a]=c}return d}(),c.prototype.append=function(a,b){return a},c.prototype.flush=function(){},g.prototype=new f,g.prototype.constructor=g,h.prototype=new f,h.prototype.constructor=h,i.prototype=new f,i.prototype.constructor=i,j.prototype.getData=function(a){a(this.data)},k.prototype=new j,k.prototype.constructor=k,l.prototype=new j,l.prototype.constructor=l,m.prototype=new j,m.prototype.constructor=m;var Q={deflater:["z-worker.js","deflate.js"],inflater:["z-worker.js","inflate.js"]};a.zip={Reader:f,Writer:j,BlobReader:i,Data64URIReader:h,TextReader:g,BlobWriter:m,Data64URIWriter:l,TextWriter:k,createReader:function(a,b,c){c=c||D,a.init(function(){x(a,b,c)},c)},createWriter:function(a,b,c,d){c=c||D,d=!!d,a.init(function(){A(a,b,c,d)},c)},useWebWorkers:!0,workerScriptsPath:null,workerScripts:null}}(this),function(a){"use strict";function b(){function a(a,b,c,d,j,k,m,o,q,r,s){var t,u,v,w,x,z,A,B,C,D,E,F,G,H,I;D=0,x=c;do{e[a[b+D]]++,D++,x--}while(0!==x);if(e[0]==c)return m[0]=-1,o[0]=0,h;for(B=o[0],z=1;z<=y&&0===e[z];z++);for(A=z,B<z&&(B=z),x=y;0!==x&&0===e[x];x--);for(v=x,B>x&&(B=x),o[0]=B,H=1<<z;z<x;z++,H<<=1)if((H-=e[z])<0)return l;if((H-=e[x])<0)return l;for(e[x]+=H,i[1]=z=0,D=1,G=2;0!=--x;)i[G]=z+=e[D],G++,D++;x=0,D=0;do{0!==(z=a[b+D])&&(s[i[z]++]=x),D++}while(++x<c);for(c=i[v],i[0]=x=0,D=0,w=-1,F=-B,g[0]=0,E=0,I=0;A<=v;A++)for(t=e[A];0!=t--;){for(;A>F+B;){if(w++,F+=B,I=v-F,I=I>B?B:I,(u=1<<(z=A-F))>t+1&&(u-=t+1,G=A,z<I))for(;++z<I&&!((u<<=1)<=e[++G]);)u-=e[G];if(I=1<<z,r[0]+I>p)return l;g[w]=E=r[0],r[0]+=I,0!==w?(i[w]=x,f[0]=z,f[1]=B,z=x>>>F-B,f[2]=E-g[w-1]-z,q.set(f,3*(g[w-1]+z))):m[0]=E}for(f[1]=A-F,D>=c?f[0]=192:s[D]<d?(f[0]=s[D]<256?0:96,f[2]=s[D++]):(f[0]=k[s[D]-d]+16+64,f[2]=j[s[D++]-d]),u=1<<A-F,z=x>>>F;z<I;z+=u)q.set(f,3*(E+z));for(z=1<<A-1;0!=(x&z);z>>>=1)x^=z;for(x^=z,C=(1<<F)-1;(x&C)!=i[w];)w--,F-=B,C=(1<<F)-1}return 0!==H&&1!=v?n:h}function b(a){var b;for(c||(c=[],d=[],e=new Int32Array(y+1),f=[],g=new Int32Array(y),i=new Int32Array(y+1)),d.length<a&&(d=[]),b=0;b<a;b++)d[b]=0;for(b=0;b<y+1;b++)e[b]=0;for(b=0;b<3;b++)f[b]=0;g.set(e.subarray(0,y),0),i.set(e.subarray(0,y+1),0)}var c,d,e,f,g,i,j=this;j.inflate_trees_bits=function(e,f,g,h,i){var j;return b(19),c[0]=0,j=a(e,0,19,19,null,null,g,f,h,c,d),j==l?i.msg="oversubscribed dynamic bit lengths tree":j!=n&&0!==f[0]||(i.msg="incomplete dynamic bit lengths tree",j=l),j},j.inflate_trees_dynamic=function(e,f,g,i,j,k,o,p,q){var r;return b(288),c[0]=0,(r=a(g,0,e,257,u,v,k,i,p,c,d))!=h||0===i[0]?(r==l?q.msg="oversubscribed literal/length tree":r!=m&&(q.msg="incomplete literal/length tree",r=l),r):(b(288),r=a(g,e,f,0,w,x,o,j,p,c,d),r!=h||0===j[0]&&e>257?(r==l?q.msg="oversubscribed distance tree":r==n?(q.msg="incomplete distance tree",r=l):r!=m&&(q.msg="empty distance tree with lengths",r=l),r):h)}}function c(){function a(a,b,c,d,e,f,g,j){var k,m,n,p,q,r,s,t,u,v,w,x,y,z,A,B;s=j.next_in_index,t=j.avail_in,q=g.bitb,r=g.bitk,u=g.write,v=u<g.read?g.read-u-1:g.end-u,w=o[a],x=o[b];do{for(;r<20;)t--,q|=(255&j.read_byte(s++))<<r,r+=8;if(k=q&w,m=c,n=d,B=3*(n+k),0!==(p=m[B]))for(;;){if(q>>=m[B+1],r-=m[B+1],0!=(16&p)){for(p&=15,y=m[B+2]+(q&o[p]),q>>=p,r-=p;r<15;)t--,q|=(255&j.read_byte(s++))<<r,r+=8;for(k=q&x,m=e,n=f,B=3*(n+k),p=m[B];;){if(q>>=m[B+1],r-=m[B+1],0!=(16&p)){for(p&=15;r<p;)t--,q|=(255&j.read_byte(s++))<<r,r+=8;if(z=m[B+2]+(q&o[p]),q>>=p,r-=p,v-=y,u>=z)A=u-z,u-A>0&&2>u-A?(g.window[u++]=g.window[A++],g.window[u++]=g.window[A++],y-=2):(g.window.set(g.window.subarray(A,A+2),u),u+=2,A+=2,y-=2);else{A=u-z;do{A+=g.end}while(A<0);if(p=g.end-A,y>p){if(y-=p,u-A>0&&p>u-A)do{g.window[u++]=g.window[A++]}while(0!=--p);else g.window.set(g.window.subarray(A,A+p),u),u+=p,A+=p,p=0;A=0}}if(u-A>0&&y>u-A)do{g.window[u++]=g.window[A++]}while(0!=--y);else g.window.set(g.window.subarray(A,A+y),u),u+=y,A+=y,y=0;break}if(0!=(64&p))return j.msg="invalid distance code",y=j.avail_in-t,y=r>>3<y?r>>3:y,t+=y,s-=y,r-=y<<3,g.bitb=q,g.bitk=r,j.avail_in=t,j.total_in+=s-j.next_in_index,j.next_in_index=s,g.write=u,l;k+=m[B+2],k+=q&o[p],B=3*(n+k),p=m[B]}break}if(0!=(64&p))return 0!=(32&p)?(y=j.avail_in-t,y=r>>3<y?r>>3:y,t+=y,s-=y,r-=y<<3,g.bitb=q,g.bitk=r,j.avail_in=t,j.total_in+=s-j.next_in_index,j.next_in_index=s,g.write=u,i):(j.msg="invalid literal/length code",y=j.avail_in-t,y=r>>3<y?r>>3:y,t+=y,s-=y,r-=y<<3,g.bitb=q,g.bitk=r,j.avail_in=t,j.total_in+=s-j.next_in_index,j.next_in_index=s,g.write=u,l);if(k+=m[B+2],k+=q&o[p],B=3*(n+k),0===(p=m[B])){q>>=m[B+1],r-=m[B+1],g.window[u++]=m[B+2],v--;break}}else q>>=m[B+1],r-=m[B+1],g.window[u++]=m[B+2],v--}while(v>=258&&t>=10);return y=j.avail_in-t,y=r>>3<y?r>>3:y,t+=y,s-=y,r-=y<<3,g.bitb=q,g.bitk=r,j.avail_in=t,j.total_in+=s-j.next_in_index,j.next_in_index=s,g.write=u,h}var b,c,d,e,f=this,g=0,j=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;f.init=function(a,f,g,h,i,j){b=z,r=a,s=f,d=g,t=h,e=i,u=j,c=null},f.proc=function(f,v,w){var x,y,J,K,L,M,N,O=0,P=0,Q=0;for(Q=v.next_in_index,K=v.avail_in,O=f.bitb,P=f.bitk,L=f.write,M=L<f.read?f.read-L-1:f.end-L;;)switch(b){case z:if(M>=258&&K>=10&&(f.bitb=O,f.bitk=P,v.avail_in=K,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=L,w=a(r,s,d,t,e,u,f,v),Q=v.next_in_index,K=v.avail_in,O=f.bitb,P=f.bitk,L=f.write,M=L<f.read?f.read-L-1:f.end-L,w!=h)){b=w==i?G:I;break}m=r,c=d,j=t,b=A;case A:for(x=m;P<x;){if(0===K)return f.bitb=O,f.bitk=P,v.avail_in=K,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=L,f.inflate_flush(v,w);w=h,K--,O|=(255&v.read_byte(Q++))<<P,P+=8}if(y=3*(j+(O&o[x])),O>>>=c[y+1],P-=c[y+1],0===(J=c[y])){n=c[y+2],b=F;break}if(0!=(16&J)){p=15&J,g=c[y+2],b=B;break}if(0==(64&J)){m=J,j=y/3+c[y+2];break}if(0!=(32&J)){b=G;break}return b=I,v.msg="invalid literal/length code",w=l,f.bitb=O,f.bitk=P,v.avail_in=K,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=L,f.inflate_flush(v,w);case B:for(x=p;P<x;){if(0===K)return f.bitb=O,f.bitk=P,v.avail_in=K,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=L,f.inflate_flush(v,w);w=h,K--,O|=(255&v.read_byte(Q++))<<P,P+=8}g+=O&o[x],O>>=x,P-=x,m=s,c=e,j=u,b=C;case C:for(x=m;P<x;){if(0===K)return f.bitb=O,f.bitk=P,v.avail_in=K,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=L,f.inflate_flush(v,w);w=h,K--,O|=(255&v.read_byte(Q++))<<P,P+=8}if(y=3*(j+(O&o[x])),O>>=c[y+1],P-=c[y+1],0!=(16&(J=c[y]))){p=15&J,q=c[y+2],b=D;break}if(0==(64&J)){m=J,j=y/3+c[y+2];break}return b=I,v.msg="invalid distance code",w=l,f.bitb=O,f.bitk=P,v.avail_in=K,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=L,f.inflate_flush(v,w);case D:for(x=p;P<x;){if(0===K)return f.bitb=O,f.bitk=P,v.avail_in=K,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=L,f.inflate_flush(v,w);w=h,K--,O|=(255&v.read_byte(Q++))<<P,P+=8}q+=O&o[x],O>>=x,P-=x,b=E;case E:for(N=L-q;N<0;)N+=f.end;for(;0!==g;){if(0===M&&(L==f.end&&0!==f.read&&(L=0,M=L<f.read?f.read-L-1:f.end-L),0===M&&(f.write=L,w=f.inflate_flush(v,w),L=f.write,M=L<f.read?f.read-L-1:f.end-L,L==f.end&&0!==f.read&&(L=0,M=L<f.read?f.read-L-1:f.end-L),0===M)))return f.bitb=O,f.bitk=P,v.avail_in=K,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=L,f.inflate_flush(v,w);f.window[L++]=f.window[N++],M--,N==f.end&&(N=0),g--}b=z;break;case F:if(0===M&&(L==f.end&&0!==f.read&&(L=0,M=L<f.read?f.read-L-1:f.end-L),0===M&&(f.write=L,w=f.inflate_flush(v,w),L=f.write,M=L<f.read?f.read-L-1:f.end-L,L==f.end&&0!==f.read&&(L=0,M=L<f.read?f.read-L-1:f.end-L),0===M)))return f.bitb=O,f.bitk=P,v.avail_in=K,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=L,f.inflate_flush(v,w);w=h,f.window[L++]=n,M--,b=z;break;case G:if(P>7&&(P-=8,K++,Q--),f.write=L,w=f.inflate_flush(v,w),L=f.write,M=L<f.read?f.read-L-1:f.end-L,f.read!=f.write)return f.bitb=O,f.bitk=P,v.avail_in=K,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=L,f.inflate_flush(v,w);b=H;case H:return w=i,f.bitb=O,f.bitk=P,v.avail_in=K,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=L,f.inflate_flush(v,w);case I:return w=l,f.bitb=O,f.bitk=P,v.avail_in=K,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=L,f.inflate_flush(v,w);default:return w=k,f.bitb=O,f.bitk=P,v.avail_in=K,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=L,f.inflate_flush(v,w)}},f.free=function(){}}function d(a,d){var e,f=this,g=K,j=0,m=0,q=0,r=[0],s=[0],t=new c,u=0,v=new Int32Array(3*p),w=new b;f.bitk=0,f.bitb=0,f.window=new Uint8Array(d),f.end=d,f.read=0,f.write=0,f.reset=function(a,b){b&&(b[0]=0),g==Q&&t.free(a),g=K,f.bitk=0,f.bitb=0,f.read=f.write=0},f.reset(a,null),f.inflate_flush=function(a,b){var c,d,e;return d=a.next_out_index,e=f.read,c=(e<=f.write?f.write:f.end)-e,c>a.avail_out&&(c=a.avail_out),0!==c&&b==n&&(b=h),a.avail_out-=c,a.total_out+=c,a.next_out.set(f.window.subarray(e,e+c),d),d+=c,e+=c,e==f.end&&(e=0,f.write==f.end&&(f.write=0),c=f.write-e,c>a.avail_out&&(c=a.avail_out),0!==c&&b==n&&(b=h),a.avail_out-=c,a.total_out+=c,a.next_out.set(f.window.subarray(e,e+c),d),d+=c,e+=c),a.next_out_index=d,f.read=e,b},f.proc=function(a,c){var d,n,p,x,y,z,A,B;for(x=a.next_in_index,y=a.avail_in,n=f.bitb,p=f.bitk,z=f.write,A=z<f.read?f.read-z-1:f.end-z;;)switch(g){case K:for(;p<3;){if(0===y)return f.bitb=n,f.bitk=p,a.avail_in=y,a.total_in+=x-a.next_in_index,a.next_in_index=x,f.write=z,f.inflate_flush(a,c);c=h,y--,n|=(255&a.read_byte(x++))<<p,p+=8}switch(d=7&n,u=1&d,d>>>1){case 0:n>>>=3,p-=3,d=7&p,n>>>=d,p-=d,g=L;break;case 1:var C=[],D=[],E=[[]],F=[[]];b.inflate_trees_fixed(C,D,E,F),t.init(C[0],D[0],E[0],0,F[0],0),n>>>=3,p-=3,g=Q;break;case 2:n>>>=3,p-=3,g=N;break;case 3:return n>>>=3,p-=3,g=T,a.msg="invalid block type",c=l,f.bitb=n,f.bitk=p,a.avail_in=y,a.total_in+=x-a.next_in_index,a.next_in_index=x,f.write=z,f.inflate_flush(a,c)}break;case L:for(;p<32;){if(0===y)return f.bitb=n,f.bitk=p,a.avail_in=y,a.total_in+=x-a.next_in_index,a.next_in_index=x,f.write=z,f.inflate_flush(a,c);c=h,y--,n|=(255&a.read_byte(x++))<<p,p+=8}if((~n>>>16&65535)!=(65535&n))return g=T,a.msg="invalid stored block lengths",c=l,f.bitb=n,f.bitk=p,a.avail_in=y,a.total_in+=x-a.next_in_index,a.next_in_index=x,f.write=z,f.inflate_flush(a,c);j=65535&n,n=p=0,g=0!==j?M:0!==u?R:K;break;case M:if(0===y)return f.bitb=n,f.bitk=p,a.avail_in=y,a.total_in+=x-a.next_in_index,a.next_in_index=x,f.write=z,f.inflate_flush(a,c);if(0===A&&(z==f.end&&0!==f.read&&(z=0,A=z<f.read?f.read-z-1:f.end-z),0===A&&(f.write=z,c=f.inflate_flush(a,c),z=f.write,A=z<f.read?f.read-z-1:f.end-z,z==f.end&&0!==f.read&&(z=0,A=z<f.read?f.read-z-1:f.end-z),0===A)))return f.bitb=n,f.bitk=p,a.avail_in=y,a.total_in+=x-a.next_in_index,a.next_in_index=x,f.write=z,f.inflate_flush(a,c);if(c=h,d=j,d>y&&(d=y),d>A&&(d=A),f.window.set(a.read_buf(x,d),z),x+=d,y-=d,z+=d,A-=d,0!=(j-=d))break;g=0!==u?R:K;break;case N:for(;p<14;){if(0===y)return f.bitb=n,f.bitk=p,a.avail_in=y,a.total_in+=x-a.next_in_index,a.next_in_index=x,f.write=z,f.inflate_flush(a,c);c=h,y--,n|=(255&a.read_byte(x++))<<p,p+=8}if(m=d=16383&n,(31&d)>29||(d>>5&31)>29)return g=T,a.msg="too many length or distance symbols",c=l,f.bitb=n,f.bitk=p,a.avail_in=y,a.total_in+=x-a.next_in_index,a.next_in_index=x,f.write=z,f.inflate_flush(a,c);if(d=258+(31&d)+(d>>5&31),!e||e.length<d)e=[];else for(B=0;B<d;B++)e[B]=0;n>>>=14,p-=14,q=0,g=O;case O:for(;q<4+(m>>>10);){for(;p<3;){if(0===y)return f.bitb=n,f.bitk=p,a.avail_in=y,a.total_in+=x-a.next_in_index,a.next_in_index=x,f.write=z,f.inflate_flush(a,c);c=h,y--,n|=(255&a.read_byte(x++))<<p,p+=8}e[J[q++]]=7&n,n>>>=3,p-=3}for(;q<19;)e[J[q++]]=0;if(r[0]=7,(d=w.inflate_trees_bits(e,r,s,v,a))!=h)return c=d,c==l&&(e=null,g=T),f.bitb=n,f.bitk=p,a.avail_in=y,a.total_in+=x-a.next_in_index,a.next_in_index=x,f.write=z,f.inflate_flush(a,c);q=0,g=P;case P:for(;;){if(d=m,q>=258+(31&d)+(d>>5&31))break;var G,H;for(d=r[0];p<d;){if(0===y)return f.bitb=n,f.bitk=p,a.avail_in=y,a.total_in+=x-a.next_in_index,a.next_in_index=x,f.write=z,f.inflate_flush(a,c);c=h,y--,n|=(255&a.read_byte(x++))<<p,p+=8}if(d=v[3*(s[0]+(n&o[d]))+1],(H=v[3*(s[0]+(n&o[d]))+2])<16)n>>>=d,p-=d,e[q++]=H;else{for(B=18==H?7:H-14,G=18==H?11:3;p<d+B;){if(0===y)return f.bitb=n,f.bitk=p,a.avail_in=y,a.total_in+=x-a.next_in_index,a.next_in_index=x,f.write=z,f.inflate_flush(a,c);c=h,y--,n|=(255&a.read_byte(x++))<<p,p+=8}if(n>>>=d,p-=d,G+=n&o[B],n>>>=B,p-=B,B=q,d=m,B+G>258+(31&d)+(d>>5&31)||16==H&&B<1)return e=null,g=T,a.msg="invalid bit length repeat",c=l,f.bitb=n,f.bitk=p,a.avail_in=y,a.total_in+=x-a.next_in_index,a.next_in_index=x,f.write=z,f.inflate_flush(a,c);H=16==H?e[B-1]:0;do{e[B++]=H}while(0!=--G);q=B}}s[0]=-1;var I=[],U=[],V=[],W=[];if(I[0]=9,U[0]=6,d=m,(d=w.inflate_trees_dynamic(257+(31&d),1+(d>>5&31),e,I,U,V,W,v,a))!=h)return d==l&&(e=null,g=T),c=d,f.bitb=n,f.bitk=p,a.avail_in=y,a.total_in+=x-a.next_in_index,a.next_in_index=x,f.write=z,f.inflate_flush(a,c);t.init(I[0],U[0],v,V[0],v,W[0]),g=Q;case Q:if(f.bitb=n,f.bitk=p,a.avail_in=y,a.total_in+=x-a.next_in_index,a.next_in_index=x,f.write=z,(c=t.proc(f,a,c))!=i)return f.inflate_flush(a,c);if(c=h,t.free(a),x=a.next_in_index,y=a.avail_in,n=f.bitb,p=f.bitk,z=f.write,A=z<f.read?f.read-z-1:f.end-z,0===u){g=K;break}g=R;case R:if(f.write=z,c=f.inflate_flush(a,c),z=f.write,A=z<f.read?f.read-z-1:f.end-z,f.read!=f.write)return f.bitb=n,f.bitk=p,a.avail_in=y,a.total_in+=x-a.next_in_index,a.next_in_index=x,f.write=z,f.inflate_flush(a,c);g=S;case S:return c=i,f.bitb=n,f.bitk=p,a.avail_in=y,a.total_in+=x-a.next_in_index,a.next_in_index=x,f.write=z,f.inflate_flush(a,c);case T:return c=l,f.bitb=n,f.bitk=p,a.avail_in=y,a.total_in+=x-a.next_in_index,a.next_in_index=x,f.write=z,f.inflate_flush(a,c);default:return c=k,f.bitb=n,f.bitk=p,a.avail_in=y,a.total_in+=x-a.next_in_index,a.next_in_index=x,f.write=z,f.inflate_flush(a,c)}},f.free=function(a){f.reset(a,null),f.window=null,v=null},f.set_dictionary=function(a,b,c){f.window.set(a.subarray(b,b+c),0),f.read=f.write=c},f.sync_point=function(){return g==L?1:0}}function e(){function a(a){return a&&a.istate?(a.total_in=a.total_out=0,a.msg=null,a.istate.mode=ba,a.istate.blocks.reset(a,null),h):k}var b=this;b.mode=0,b.method=0,b.was=[0],b.need=0,b.marker=0,b.wbits=0,b.inflateEnd=function(a){return b.blocks&&b.blocks.free(a),b.blocks=null,h},b.inflateInit=function(c,e){return c.msg=null,b.blocks=null,e<8||e>15?(b.inflateEnd(c),k):(b.wbits=e,c.istate.blocks=new d(c,1<<e),a(c),h)},b.inflate=function(a,b){var c,d;if(!a||!a.istate||!a.next_in)return k;for(b=b==r?n:h,c=n;;)switch(a.istate.mode){case W:if(0===a.avail_in)return c;if(c=b,a.avail_in--,a.total_in++,(15&(a.istate.method=a.read_byte(a.next_in_index++)))!=V){a.istate.mode=da,a.msg="unknown compression method",a.istate.marker=5;break}if(8+(a.istate.method>>4)>a.istate.wbits){a.istate.mode=da,a.msg="invalid window size",a.istate.marker=5;break}a.istate.mode=X;case X:if(0===a.avail_in)return c;if(c=b,a.avail_in--,a.total_in++,d=255&a.read_byte(a.next_in_index++),((a.istate.method<<8)+d)%31!=0){a.istate.mode=da,a.msg="incorrect header check",a.istate.marker=5;break}if(0==(d&U)){a.istate.mode=ba;break}a.istate.mode=Y;case Y:if(0===a.avail_in)return c;c=b,a.avail_in--,a.total_in++,a.istate.need=(255&a.read_byte(a.next_in_index++))<<24&4278190080,a.istate.mode=Z;case Z:if(0===a.avail_in)return c;c=b,a.avail_in--,a.total_in++,a.istate.need+=(255&a.read_byte(a.next_in_index++))<<16&16711680,a.istate.mode=$;case $:if(0===a.avail_in)return c;c=b,a.avail_in--,a.total_in++,a.istate.need+=(255&a.read_byte(a.next_in_index++))<<8&65280,a.istate.mode=_;case _:return 0===a.avail_in?c:(c=b,a.avail_in--,a.total_in++,a.istate.need+=255&a.read_byte(a.next_in_index++),a.istate.mode=aa,j);case aa:return a.istate.mode=da,a.msg="need dictionary",a.istate.marker=0,k;case ba:if((c=a.istate.blocks.proc(a,c))==l){a.istate.mode=da,a.istate.marker=0;break}if(c==h&&(c=b),c!=i)return c;c=b,a.istate.blocks.reset(a,a.istate.was),a.istate.mode=ca;case ca:return i;case da:return l;default:return k}},b.inflateSetDictionary=function(a,b,c){var d=0,e=c;return a&&a.istate&&a.istate.mode==aa?(e>=1<<a.istate.wbits&&(e=(1<<a.istate.wbits)-1,d=c-e),a.istate.blocks.set_dictionary(b,d,e),a.istate.mode=ba,h):k},b.inflateSync=function(b){var c,d,e,f,g;if(!b||!b.istate)return k;if(b.istate.mode!=da&&(b.istate.mode=da,b.istate.marker=0),0===(c=b.avail_in))return n;for(d=b.next_in_index,e=b.istate.marker;0!==c&&e<4;)b.read_byte(d)==ea[e]?e++:e=0!==b.read_byte(d)?0:4-e,d++,c--;return b.total_in+=d-b.next_in_index,b.next_in_index=d,b.avail_in=c,b.istate.marker=e,4!=e?l:(f=b.total_in,g=b.total_out,a(b),b.total_in=f,b.total_out=g,b.istate.mode=ba,h)},b.inflateSyncPoint=function(a){return a&&a.istate&&a.istate.blocks?a.istate.blocks.sync_point():k}}function f(){}function g(){var a=this,b=new f,c=q,d=new Uint8Array(512),e=!1;b.inflateInit(),b.next_out=d,a.append=function(a,f){var g,j,k=[],l=0,m=0,o=0;if(0!==a.length){b.next_in_index=0,b.next_in=a,b.avail_in=a.length;do{if(b.next_out_index=0,b.avail_out=512,0!==b.avail_in||e||(b.next_in_index=0,e=!0),g=b.inflate(c),e&&g===n){if(0!==b.avail_in)throw new Error("inflating: bad input")}else if(g!==h&&g!==i)throw new Error("inflating: "+b.msg);if((e||g===i)&&b.avail_in===a.length)throw new Error("inflating: bad input");b.next_out_index&&(512===b.next_out_index?k.push(new Uint8Array(d)):k.push(new Uint8Array(d.subarray(0,b.next_out_index)))),o+=b.next_out_index,f&&b.next_in_index>0&&b.next_in_index!=l&&(f(b.next_in_index),l=b.next_in_index)}while(b.avail_in>0||0===b.avail_out);return j=new Uint8Array(o),k.forEach(function(a){j.set(a,m),m+=a.length}),j}},a.flush=function(){b.inflateEnd()}} | ||
var h=0,i=1,j=2,k=-2,l=-3,m=-4,n=-5,o=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],p=1440,q=0,r=4,s=[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],t=[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],u=[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],v=[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],w=[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],x=[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],y=15;b.inflate_trees_fixed=function(a,b,c,d){return a[0]=9,b[0]=5,c[0]=s,d[0]=t,h};var z=0,A=1,B=2,C=3,D=4,E=5,F=6,G=7,H=8,I=9,J=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],K=0,L=1,M=2,N=3,O=4,P=5,Q=6,R=7,S=8,T=9,U=32,V=8,W=0,X=1,Y=2,Z=3,$=4,_=5,aa=6,ba=7,ca=12,da=13,ea=[0,0,255,255];f.prototype={inflateInit:function(a){var b=this;return b.istate=new e,a||(a=15),b.istate.inflateInit(b,a)},inflate:function(a){var b=this;return b.istate?b.istate.inflate(b,a):k},inflateEnd:function(){var a=this;if(!a.istate)return k;var b=a.istate.inflateEnd(a);return a.istate=null,b},inflateSync:function(){var a=this;return a.istate?a.istate.inflateSync(a):k},inflateSetDictionary:function(a,b){var c=this;return c.istate?c.istate.inflateSetDictionary(c,a,b):k},read_byte:function(a){return this.next_in.subarray(a,a+1)[0]},read_buf:function(a,b){return this.next_in.subarray(a,a+b)}};var fa=a.zip||a;fa.Inflater=fa._jzlib_Inflater=g}(this),function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.perfCascadeFileReader=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){"use strict";function d(a,b,c,d){function e(a){try{c(null,JSON.parse(a).log)}catch(a){c(a)}}if(!a)return c(new Error("Failed to load HAR file"));var f=b.match(/\.[0-9a-z]+$/i)[0];if([".zhar",".zip"].indexOf(f)!==-1)zip.createReader(new zip.BlobReader(a),function(a){a.getEntries(function(b){b[0].getData(new zip.TextWriter,function(b){e(b),a.close()},d)})});else{var g=new FileReader;g.addEventListener("load",function(a){e(a.target.result)}),g.readAsText(a)}}Object.defineProperty(c,"__esModule",{value:!0}),zip.useWebWorkers=!1,c.readFile=d},{}]},{},[1])(1)}); |
@@ -1,3 +0,3 @@ | ||
/*! github.com/micmro/PerfCascade Version:1.2.0 (25/03/2017) */ | ||
/*! github.com/micmro/PerfCascade Version:1.2.1 (25/03/2017) */ | ||
!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.perfCascade=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){"use strict";function d(a,b){var c=a.classList;return c?b.split(" ").forEach(function(a){return c.add(a)}):a.setAttribute("class",a.getAttribute("class")+" "+b),a}function e(a,b){var c=a.classList;return c?c.remove(b):a.setAttribute("class",a.getAttribute("class").replace(new RegExp("(\\s|^)"+b+"(\\s|$)","g"),"$2")),a}function f(a){for(;a.hasChildNodes();)a.removeChild(a.lastChild);return a}Object.defineProperty(c,"__esModule",{value:!0}),c.addClass=d,c.removeClass=e,c.removeChildren=f},{}],2:[function(a,b,c){"use strict";function d(a){return function(b){return b.name.toLowerCase()===a}}function e(a,b){var c=d(b.toLowerCase());return a.some(c)}function f(a,b){var c=d(b.toLowerCase()),e=a.filter(c).pop();return e?e.value:void 0}Object.defineProperty(c,"__esModule",{value:!0}),c.hasHeader=e,c.getHeader=f},{}],3:[function(a,b,c){"use strict";function d(a,b,c,d){return void 0===d&&(d=1),v(a,b,c,"icon-no-tls",d,'<path d="m 18,6.2162 0,2.7692 q 0,0.2813 -0.205529,0.4868\n -0.205529,0.2055 -0.486779,0.2055 l -0.692307,0 q -0.28125,0 -0.486779,-0.2055 -0.205529,-0.2055 -0.205529,-0.4868\n l 0,-2.7692 q 0,-1.1466 -0.811298,-1.9579 -0.811298,-0.8113 -1.957933,-0.8113 -1.146634,0 -1.957933,0.8113\n -0.811298,0.8113 -0.811298,1.9579 l 0,2.0769 1.038462,0 q 0.432692,0 0.735577,0.3029 0.302884,0.3029\n 0.302884,0.7356 l 0,6.2307 q 0,0.4327 -0.302884,0.7356 -0.302885,0.3029 -0.735577,0.3029 l -10.384615,0 q\n -0.432693,0 -0.735577,-0.3029 Q 0,15.995 0,15.5623 L 0,9.3316 Q 0,8.8989 0.302885,8.596 0.605769,8.2931\n 1.038462,8.2931 l 7.26923,0 0,-2.0769 q 0,-2.0012 1.422476,-3.4237 1.422476,-1.4225 3.423678,-1.4225 2.001202,0\n 3.423678,1.4225 Q 18,4.215 18,6.2162 Z" />')}function e(a,b,c,d){return void 0===d&&(d=1),v(a,b,c,"icon-redirect",d,'<path d="M 17,2.3333333 17,7 q 0,0.2708444 -0.19792,0.4687111\n -0.197911,0.1979556 -0.468747,0.1979556 l -4.666666,0 q -0.437503,0 -0.614587,-0.4166223 -0.177084,-0.4063111\n 0.14584,-0.7187555 L 12.635413,5.0937778 Q 11.093751,3.6666667 9,3.6666667 q -1.0833333,0 -2.0677067,0.4218666 Q\n 5.94792,4.5104 5.2291644,5.2291556 4.5104178,5.9479111 4.0885422,6.9322667 3.6666667,7.9167111 3.6666667,9 q\n 0,1.083378 0.4218755,2.067733 0.4218756,0.984356 1.1406222,1.703111 Q 5.94792,13.4896 6.9322933,13.911467\n 7.9166667,14.333333 9,14.333333 q 1.239582,0 2.343751,-0.541689 1.104169,-0.5416 1.864578,-1.5312 0.07289,-0.104177\n 0.239591,-0.125066 0.145831,0 0.260409,0.09378 l 1.427084,1.437511 q 0.09375,0.08356 0.09896,0.213511\n 0.0053,0.130222 -0.07813,0.2344 -1.135413,1.375022 -2.75,2.130222 Q 10.791662,17 9,17 7.3749956,17\n 5.8958311,16.364622 4.4166667,15.729156 3.3437511,14.656267 2.2708356,13.583378 1.6354133,12.104178 1,10.624978 1,9\n 1,7.3750222 1.6354133,5.8958222 2.2708356,4.4167111 3.3437511,3.3437333 4.4166667,2.2708444 5.8958311,1.6353778\n 7.3749956,1 9,1 q 1.531253,0 2.963538,0.5781333 1.432293,0.5781334 2.54688,1.6302223 L 15.864587,1.8646222 Q\n 16.166667,1.5416889 16.593751,1.7187556 17,1.8958222 17,2.3333333 Z" />')}function f(a,b,c,d){return void 0===d&&(d=1),v(a,b,c,"icon-4xx",d,'<path d="m 10.141566,13.833 0,-1.6945 q 0,-0.1249 -0.08472,-0.2096\n -0.084725,-0.084 -0.2006658,-0.084 l -1.7123482,0 q -0.1159402,0 -0.2006658,0.084 -0.084725,0.084 -0.084725,0.2096\n l 0,1.6945 q 0,0.1248 0.084725,0.2096 0.084725,0.084 0.2006658,0.084 l 1.7123482,0 q 0.1159402,0 0.2006658,-0.084\n 0.08472,-0.084 0.08472,-0.2096 z m -0.01784,-3.3356 0.160533,-4.0936 q 0,-0.107 -0.08919,-0.1694 -0.115941,-0.098\n -0.2140439,-0.098 l -1.9620656,0 q -0.098103,0 -0.2140436,0.098 -0.089185,0.062 -0.089185,0.1873 l 0.1516221,4.0757\n q 0,0.089 0.089185,0.1472 0.089185,0.058 0.2140435,0.058 l 1.6499188,0 q 0.1248588,0 0.2095847,-0.058 0.08473,-0.058\n 0.09364,-0.1472 z M 9.9988702,2.1676 16.848263,14.7248 q 0.312147,0.5619 -0.01784,1.1237 -0.151614,0.2587\n -0.414709,0.4103 -0.263093,0.1516 -0.566321,0.1516 l -13.6987852,0 q -0.3032283,0 -0.5663235,-0.1516 Q\n 1.3211891,16.1072 1.169575,15.8485 0.83959124,15.2867 1.151738,14.7248 L 8.0011307,2.1676 Q 8.1527449,1.8911\n 8.4202993,1.7306 8.6878537,1.57 9.0000005,1.57 q 0.3121468,0 0.5797012,0.1606 0.2675544,0.1605 0.4191685,0.437\n z" />')}function g(a,b,c,d){return void 0===d&&(d=1),v(a,b,c,"icon-5xx",d,'<path d="m 10.141566,13.833 0,-1.6945 q 0,-0.1249 -0.08472,-0.2096\n -0.084725,-0.084 -0.2006658,-0.084 l -1.7123482,0 q -0.1159402,0 -0.2006658,0.084 -0.084725,0.084 -0.084725,0.2096 l\n 0,1.6945 q 0,0.1248 0.084725,0.2096 0.084725,0.084 0.2006658,0.084 l 1.7123482,0 q 0.1159402,0 0.2006658,-0.084\n 0.08472,-0.084 0.08472,-0.2096 z m -0.01784,-3.3356 0.160533,-4.0936 q 0,-0.107 -0.08919,-0.1694 -0.115941,-0.098\n -0.2140439,-0.098 l -1.9620656,0 q -0.098103,0 -0.2140436,0.098 -0.089185,0.062 -0.089185,0.1873 l 0.1516221,4.0757\n q 0,0.089 0.089185,0.1472 0.089185,0.058 0.2140435,0.058 l 1.6499188,0 q 0.1248588,0 0.2095847,-0.058 0.08473,-0.058\n 0.09364,-0.1472 z M 9.9988702,2.1676 16.848263,14.7248 q 0.312147,0.5619 -0.01784,1.1237 -0.151614,0.2587\n -0.414709,0.4103 -0.263093,0.1516 -0.566321,0.1516 l -13.6987852,0 q -0.3032283,0 -0.5663235,-0.1516 Q\n 1.3211891,16.1072 1.169575,15.8485 0.83959124,15.2867 1.151738,14.7248 L 8.0011307,2.1676 Q 8.1527449,1.8911\n 8.4202993,1.7306 8.6878537,1.57 9.0000005,1.57 q 0.3121468,0 0.5797012,0.1606 0.2675544,0.1605 0.4191685,0.437\n z" />')}function h(a,b,c,d){return void 0===d&&(d=1),v(a,b,c,"icon-plain",d,'<path d="m 15.247139,4.3928381 q 0.250004,0.2500571 0.428571,0.6786286\n 0.178575,0.4285714 0.178575,0.7856761 l 0,10.2857142 q 0,0.357181 -0.250003,0.607162 Q 15.354285,17 14.997143,17 L\n 2.9971428,17 Q 2.64,17 2.3899962,16.750019 2.14,16.500038 2.14,16.142857 l 0,-14.2857142 Q 2.14,1.5000381\n 2.3899962,1.249981 2.64,1 2.9971428,1 l 8.0000002,0 q 0.357142,0 0.785714,0.1785905 0.428571,0.1785905\n 0.678568,0.4285714 z m -3.964282,-2.1785143 0,3.3571047 3.357143,0 Q 14.550712,5.3125333 14.443573,5.2053333 L\n 11.64893,2.4107428 q -0.107147,-0.1072 -0.366073,-0.196419 z m 3.428571,13.6428192 0,-9.1428573 -3.714285,0 q\n -0.357143,0 -0.607147,-0.2499809 Q 10.14,6.2143238 10.14,5.8571428 l 0,-3.7142856 -6.8571428,0 0,13.7142858\n 11.4285708,0 z M 5.5685715,8.1428569 q 0,-0.1250285 0.080358,-0.2053333 0.080358,-0.080382 0.2053562,-0.080382 l\n 6.2857143,0 q 0.124998,0 0.205356,0.080382 0.08036,0.080302 0.08036,0.2053333 l 0,0.5714284 q 0,0.1250294\n -0.08036,0.2053334 Q 12.264998,9 12.14,9 L 5.8542857,9 Q 5.7292876,9 5.6489295,8.9196178 5.5685713,8.8393156\n 5.5685713,8.7142844 l 0,-0.5714284 z M 12.14,10.142857 q 0.124998,0 0.205356,0.08038 0.08036,0.0803 0.08036,0.205333\n l 0,0.571429 q 0,0.125028 -0.08036,0.205333 -0.08036,0.08038 -0.205356,0.08038 l -6.2857143,0 q -0.1249981,0\n -0.2053562,-0.08038 -0.080358,-0.0803 -0.080358,-0.205333 l 0,-0.571429 q 0,-0.125028 0.080358,-0.205333\n 0.080358,-0.08038 0.2053562,-0.08038 l 6.2857143,0 z m 0,2.285715 q 0.124998,0 0.205356,0.08038 0.08036,0.0803\n 0.08036,0.205333 l 0,0.571429 q 0,0.125029 -0.08036,0.205334 -0.08036,0.08038 -0.205356,0.08038 l -6.2857143,0 q\n -0.1249981,0 -0.2053562,-0.08038 -0.080358,-0.0803 -0.080358,-0.205334 l 0,-0.571429 q 0,-0.125028\n 0.080358,-0.205333 0.080358,-0.08038 0.2053562,-0.08038 l 6.2857143,0 z" />')}function i(a,b,c,d){return void 0===d&&(d=1),v(a,b,c,"icon-other",d,'<path d="m 10.801185,13.499991 0,3.000034 q 0,0.199966\n -0.149997,0.350003 Q 10.501188,17 10.301185,17 l -2.9999954,0 q -0.200003,0 -0.350002,-0.149972 -0.149998,-0.150037\n -0.149998,-0.350003 l 0,-3.000034 q 0,-0.199966 0.149998,-0.350004 0.149999,-0.149972 0.350002,-0.149972 l\n 2.9999954,0 q 0.200003,0 0.350003,0.149972 0.149997,0.150038 0.149997,0.350004 z m 3.950001,-7.4999953 q 0,0.6749751\n -0.193752,1.2624809 -0.193746,0.5875065 -0.437493,0.956246 Q 13.876188,8.587526 13.43244,8.9624908\n 12.988685,9.337519 12.713687,9.506231 12.43869,9.675006 11.951191,9.949989 q -0.5125,0.287495 -0.856252,0.8125\n -0.343749,0.525 -0.343749,0.837523 0,0.212477 -0.150001,0.406217 -0.150004,0.193802 -0.349999,0.193802 l\n -3.0000054,0 q -0.187495,0 -0.318749,-0.231277 -0.131246,-0.231284 -0.131246,-0.468725 l 0,-0.562543 q 0,-1.037488\n 0.812497,-1.9562566 Q 8.4261846,8.0625246 9.4011886,7.6249911 10.138688,7.287504 10.451185,6.9249894\n 10.76369,6.5624748 10.76369,5.9750331 q 0,-0.525002 -0.58125,-0.9250582 -0.5812494,-0.3999918 -1.3437494,-0.3999918\n -0.812504,0 -1.35,0.3625146 -0.437502,0.3125237 -1.3375,1.4374811 -0.162499,0.2000281 -0.387504,0.2000281\n -0.149997,0 -0.312498,-0.099982 L 3.4011866,4.9875343 Q 3.2386866,4.8625246 3.2074416,4.6750106 3.1761886,4.4874957\n 3.2761906,4.3250097 5.2761886,1 9.0761896,1 q 0.9999984,0 2.0124974,0.3874782 1.012501,0.3875423 1.825003,1.0375531\n 0.812497,0.649947 1.324997,1.5937436 0.512499,0.9437319 0.512499,1.9812208 z" />')}function j(a,b,c,d){return void 0===d&&(d=1),v(a,b,c,"icon-js",d,'<g transform="matrix(0.03159732,0,0,0.03159732,0.93993349,0.955184)"\n id="Layer_1"><g><path d="m 112.155,67.644 84.212,0 0,236.019 c 0,106.375 -50.969,143.497 -132.414,143.497 -19.944,0\n -45.429,-3.324 -62.052,-8.864 L 11.32,370.15 c 11.635,3.878 26.594,6.648 43.214,6.648 35.458,0 57.621,-16.068\n 57.621,-73.687 l 0,-235.467 z" /><path id="path9" d="m 269.484,354.634 c 22.161,11.635 57.62,23.27 93.632,23.27\n 38.783,0 59.282,-16.066 59.282,-40.998 0,-22.715 -17.729,-36.565 -62.606,-52.079 -62.053,-22.162 -103.05,-56.512\n -103.05,-111.36 0,-63.715 53.741,-111.917 141.278,-111.917 42.662,0 73.132,8.313 95.295,18.838 l -18.839,67.592 c\n -14.404,-7.201 -41.553,-17.729 -77.562,-17.729 -36.567,0 -54.297,17.175 -54.297,36.013 0,23.824 20.499,34.349\n 69.256,53.188 65.928,24.378 96.4,58.728 96.4,111.915 0,62.606 -47.647,115.794 -150.143,115.794 -42.662,0\n -84.77,-11.636 -105.82,-23.27 l 17.174,-69.257 z"/></g></g>')}function k(a,b,c,d){return void 0===d&&(d=1),v(a,b,c,"icon-image",d,'<path d="M 6,6 Q 6,6.75 5.475,7.275 4.95,7.8 4.2,7.8 3.45,7.8\n 2.925,7.275 2.4,6.75 2.4,6 2.4,5.25 2.925,4.725 3.45,4.2 4.2,4.2 4.95,4.2 5.475,4.725 6,5.25 6,6 Z m 9.6,3.6 0,4.2\n -13.2,0 0,-1.8 3,-3 1.5,1.5 4.8,-4.8 z M 16.5,3 1.5,3 Q 1.378125,3 1.289063,3.089 1.200003,3.178 1.200003,3.2999 l\n 0,11.4 q 0,0.1219 0.08906,0.2109 0.08906,0.089 0.210937,0.089 l 15,0 q 0.121875,0 0.210938,-0.089 0.08906,-0.089\n 0.08906,-0.2109 l 0,-11.4 q 0,-0.1219 -0.08906,-0.2109 Q 16.621878,3 16.5,3 Z m 1.5,0.3 0,11.4 q\n 0,0.6188 -0.440625,1.0594 Q 17.11875,16.2 16.5,16.2 l -15,0 Q 0.88125,16.2 0.440625,15.7594 0,15.3188 0,14.7 L 0,3.3\n Q 0,2.6813 0.440625,2.2406 0.88125,1.8 1.5,1.8 l 15,0 q 0.61875,0 1.059375,0.4406 Q 18,2.6813 18,3.3 Z" />')}function l(a,b,c,d){return void 0===d&&(d=1),k(a,b,c,d)}function m(a,b,c,d){return void 0===d&&(d=1),v(a,b,c,"icon-html",d,'<path d="m 5.62623,13.310467 -0.491804,0.4919 q -0.09836,0.098\n -0.226229,0.098 -0.127869,0 -0.22623,-0.098 L 0.098361,9.218667 Q 0,9.120367 0,8.992467 q 0,-0.1279 0.09836,-0.2262\n l 4.583606,-4.5836 q 0.09836,-0.098 0.22623,-0.098 0.127869,0 0.226229,0.098 l 0.491804,0.4918 q 0.09836,0.098\n 0.09836,0.2262 0,0.1279 -0.09836,0.2262 l -3.865574,3.8656 3.865574,3.8656 q 0.09836,0.098 0.09836,0.2262 0,0.1279\n -0.09836,0.2262 z m 5.813114,-10.495 -3.668852,12.6983 q -0.03934,0.1279 -0.152459,0.1918 -0.113115,0.064\n -0.231148,0.025 l -0.609836,-0.1672 q -0.127869,-0.039 -0.191803,-0.1525 -0.06393,-0.1131 -0.02459,-0.2409 l\n 3.668852,-12.6984 q 0.03934,-0.1279 0.152459,-0.1918 0.113115,-0.064 0.231148,-0.025 l 0.609836,0.1672 q\n 0.127869,0.039 0.191803,0.1525 0.06393,0.1131 0.02459,0.241 z m 6.462295,6.4032 -4.583606,4.5837 q -0.09836,0.098\n -0.22623,0.098 -0.127869,0 -0.226229,-0.098 l -0.491804,-0.4919 q -0.09836,-0.098 -0.09836,-0.2262 0,-0.1278\n 0.09836,-0.2262 l 3.865574,-3.8656 -3.865574,-3.8656 q -0.09836,-0.098 -0.09836,-0.2262 0,-0.1279 0.09836,-0.2262 l\n 0.491804,-0.4918 q 0.09836,-0.098 0.226229,-0.098 0.127869,0 0.22623,0.098 l 4.583606,4.5836 Q 18,8.864567\n 18,8.992467 q 0,0.1279 -0.09836,0.2262 z" />')}function n(a,b,c,d){return void 0===d&&(d=1),v(a,b,c,"icon-css",d,'<path d="m 15.435754,0.98999905 q 0.625698,0 1.094972,0.41564445 Q\n 17,1.8212879 17,2.4469768 q 0,0.5631111 -0.402235,1.3496889 -2.967597,5.6224 -4.156425,6.7217783 -0.867039,0.813421\n -1.948602,0.813421 -1.1262576,0 -1.9351961,-0.826755 -0.8089385,-0.8268443 -0.8089385,-1.9620443 0,-1.1441778\n 0.8223463,-1.8949333 L 14.273743,1.4726657 Q 14.801117,0.98999905 15.435754,0.98999905 Z M 7.3106145,10.232488 q\n 0.3486034,0.679289 0.9519554,1.161955 0.6033519,0.482666 1.3452513,0.679378 l 0.00894,0.634577 q 0.035753,1.903911\n -1.1575432,3.101689 -1.1932962,1.197778 -3.115084,1.197778 -1.0994413,0 -1.9486032,-0.415644 Q 2.5463687,16.176576\n 2.0324022,15.452576 1.5184357,14.728576 1.2592179,13.816843 1,12.905109 1,11.850354 q 0.06257,0.04444\n 0.3664804,0.268089 0.3039107,0.223466 0.55419,0.397778 0.2502793,0.174311 0.5273743,0.326311 0.2770949,0.151911\n 0.4111732,0.151911 0.3664804,0 0.4916201,-0.330756 0.2234637,-0.589866 0.5139664,-1.005511 0.2905029,-0.415644\n 0.6212291,-0.679377 0.3307262,-0.263644 0.7865922,-0.424533 0.4558659,-0.160889 0.9206704,-0.228 0.4648044,-0.06667\n 1.1173184,-0.09378 z" />')}function o(a,b,c,d){return void 0===d&&(d=1),v(a,b,c,"icon-warning",d,'<path d="m 10.141566,13.833 0,-1.6945 q 0,-0.1249 -0.08472,-0.2096\n -0.084725,-0.084 -0.2006658,-0.084 l -1.7123482,0 q -0.1159402,0 -0.2006658,0.084 -0.084725,0.084 -0.084725,0.2096 l\n 0,1.6945 q 0,0.1248 0.084725,0.2096 0.084725,0.084 0.2006658,0.084 l 1.7123482,0 q 0.1159402,0 0.2006658,-0.084\n 0.08472,-0.084 0.08472,-0.2096 z m -0.01784,-3.3356 0.160533,-4.0936 q 0,-0.107 -0.08919,-0.1694 -0.115941,-0.098\n -0.2140439,-0.098 l -1.9620656,0 q -0.098103,0 -0.2140436,0.098 -0.089185,0.062 -0.089185,0.1873 l 0.1516221,4.0757\n q 0,0.089 0.089185,0.1472 0.089185,0.058 0.2140435,0.058 l 1.6499188,0 q 0.1248588,0 0.2095847,-0.058 0.08473,-0.058\n 0.09364,-0.1472 z M 9.9988702,2.1676 16.848263,14.7248 q 0.312147,0.5619 -0.01784,1.1237 -0.151614,0.2587\n -0.414709,0.4103 -0.263093,0.1516 -0.566321,0.1516 l -13.6987852,0 q -0.3032283,0 -0.5663235,-0.1516 Q\n 1.3211891,16.1072 1.169575,15.8485 0.83959124,15.2867 1.151738,14.7248 L 8.0011307,2.1676 Q 8.1527449,1.8911\n 8.4202993,1.7306 8.6878537,1.57 9.0000005,1.57 q 0.3121468,0 0.5797012,0.1606 0.2675544,0.1605 0.4191685,0.437\n z" />')}function p(a,b,c,d){return void 0===d&&(d=1),v(a,b,c,"icon-no-gzip",d,'<path d="m 9,1 q 2.177084,0 4.015627,1.0728889 1.838542,1.0729778\n 2.911457,2.9114667 Q 17,6.8229333 17,9 q 0,2.177067 -1.072916,4.015644 -1.072915,1.838489 -2.911457,2.911467 Q\n 11.177084,17 9,17 6.8229156,17 4.9843733,15.927111 3.1458311,14.854133 2.0729156,13.015644 1,11.177067 1,9\n 1,6.8229333 2.0729156,4.9843556 3.1458311,3.1458667 4.9843733,2.0728889 6.8229156,1 9,1 Z m 1.333333,12.9896\n 0,-1.9792 q 0,-0.145778 -0.09375,-0.2448 -0.09375,-0.09893 -0.229164,-0.09893 l -2.0000001,0 q -0.1354222,0\n -0.2395822,0.104177 -0.1041689,0.104178 -0.1041689,0.239556 l 0,1.9792 q 0,0.135378 0.1041689,0.239556\n 0.10416,0.104177 0.2395822,0.104177 l 2.0000001,0 q 0.135413,0 0.229164,-0.09893 0.09375,-0.09902 0.09375,-0.2448 z\n m -0.0208,-3.583378 0.187503,-6.4687109 q 0,-0.1249778 -0.104169,-0.1874667 -0.104169,-0.083556 -0.25,-0.083556 l\n -2.2916626,0 q -0.14584,0 -0.25,0.083556 -0.1041688,0.062222 -0.1041688,0.1874667 L 7.67712,10.406222 q 0,0.104178\n 0.1041689,0.182311 0.10416,0.07822 0.25,0.07822 l 1.9270755,0 q 0.1458396,0 0.2447996,-0.07822 0.09895,-0.07822\n 0.109369,-0.182311 z" />')}function q(a,b,c,d){return void 0===d&&(d=1),v(a,b,c,"icon-font",d,'<path d="M 7.9711534,5.7542664 6.3365384,10.0812 q 0.3173075,0\n 1.3124995,0.01956 0.9951928,0.01956 1.5432692,0.01956 0.1826924,0 0.5480773,-0.01956 Q 8.9038458,7.6680441\n 7.9711534,5.754622 Z M 1,16.379245 1.0192356,15.619601 q 0.2211537,-0.06756 0.5384613,-0.120178 0.3173075,-0.05245\n 0.5480764,-0.100978 0.2307697,-0.048 0.4759617,-0.139378 0.245192,-0.09138 0.4278844,-0.278844 0.1826925,-0.187556\n 0.2980774,-0.4856 L 5.5865429,8.5715107 8.2788503,1.61 l 1.2307688,0 q 0.076924,0.1346666 0.1057698,0.2019555 L\n 11.586543,6.427333 q 0.317307,0.7499556 1.01923,2.475911 0.701923,1.726045 1.096153,2.639467 0.144232,0.326934\n 0.557693,1.389423 0.413462,1.062489 0.692307,1.620178 0.192309,0.432711 0.336539,0.548089 0.182692,0.144266\n 0.846154,0.283644 0.663462,0.139467 0.807692,0.197156 Q 17,15.946534 17,16.129289 q 0,0.03822 -0.0048,0.124978\n -0.0048,0.08622 -0.0048,0.124978 -0.60577,0 -1.826923,-0.07644 -1.221154,-0.07733 -1.836539,-0.07733 -0.730769,0\n -2.067307,0.06756 -1.3365382,0.06755 -1.7115381,0.07733 0,-0.413511 0.038462,-0.750044 L 10.84617,15.351076 q\n 0.0096,0 0.120192,-0.024 0.110577,-0.024 0.149039,-0.03378 0.03846,-0.0098 0.139423,-0.04356 0.100961,-0.03378\n 0.144231,-0.06222 0.04327,-0.02933 0.105769,-0.07733 0.0625,-0.048 0.08653,-0.105777 0.02403,-0.05778\n 0.02403,-0.134578 0,-0.153867 -0.298077,-0.927911 -0.298068,-0.774053 -0.692299,-1.706764 -0.394231,-0.932623\n -0.403846,-0.961512 l -4.3269223,-0.01956 q -0.25,0.55769 -0.7355768,1.879823 -0.4855769,1.322044\n -0.4855769,1.562489 0,0.211555 0.1346151,0.360533 0.1346151,0.149067 0.4182693,0.235556 0.2836533,0.08622\n 0.4663458,0.129866 0.1826924,0.04356 0.5480773,0.08178 0.365384,0.03822 0.3942302,0.03822 0.00962,0.182667\n 0.00962,0.557689 0,0.08622 -0.019236,0.259644 -0.5576924,0 -1.6778843,-0.09618 -1.1201929,-0.09618\n -1.6778844,-0.09618 -0.076924,0 -0.254808,0.03822 -0.1778844,0.03822 -0.2067306,0.03822 Q 2.0384613,16.379245\n 1,16.379245 Z" />')}function r(a,b,c,d){return void 0===d&&(d=1),v(a,b,c,"icon-flash",d,'<path d="m 13.724296,4.737962 q 0.194716,0.216309 0.07572,0.475924 L\n 7.958654,17.729559 Q 7.818031,18 7.504329,18 7.461078,18 7.352885,17.97846 7.16899,17.924378 7.0770425,17.772918\n 6.9850949,17.621512 7.0283513,17.4484 L 9.15937,8.708015 4.7675305,9.800549 q -0.043251,0.01077 -0.1298072,0.01077\n -0.1947161,0 -0.3353388,-0.118981 -0.1947107,-0.162286 -0.140628,-0.4219 L 6.3360428,0.34617 Q 6.3792939,0.194711\n 6.5091226,0.097382 6.6389298,0 6.8120043,0 l 3.5480877,0 q 0.205532,0 0.346154,0.135193 0.140628,0.135248\n 0.140628,0.319132 0,0.08656 -0.05409,0.194711 l -1.849763,5.008456 4.283664,-1.06011 q 0.08654,-0.02154\n 0.129807,-0.02154 0.205532,0 0.367791,0.162285 z" />')}function s(a,b,c,d){return void 0===d&&(d=1),v(a,b,c,"icon-video",d,'<path d="m 17,4.106999 0,9.7143 q 0,0.3751 -0.348214,0.5268\n -0.116071,0.044 -0.223214,0.044 -0.241072,0 -0.401786,-0.1696 l -3.598214,-3.5983 0,1.4822 q 0,1.0625\n -0.754464,1.8169 -0.754465,0.7552 -1.8169652,0.7552 l -6.2857143,0 q -1.0625,0 -1.8169642,-0.7545 Q 1,13.169599\n 1,12.106999 l 0,-6.2857 q 0,-1.0624 0.7544643,-1.8169 0.7544642,-0.7544 1.8169642,-0.7544 l 6.2857143,0 q\n 1.0625002,0 1.8169652,0.7544 0.754464,0.7545 0.754464,1.8169 l 0,1.4733 3.598214,-3.5893 q 0.160714,-0.1696\n 0.401786,-0.1696 0.107143,0 0.223214,0.044 Q 17,3.732099 17,4.106999 Z" />')}function t(a,b,c,d){return void 0===d&&(d=1),v(a,b,c,"icon-audio",d,'<path d="m 8.384615,3.7559 0,10.4615 q 0,0.2501 -0.182692,0.4327\n -0.182692,0.1827 -0.432692,0.1827 -0.25,0 -0.432692,-0.1827 l -3.201924,-3.2019 -2.51923,0 q -0.25,0\n -0.432693,-0.1827 Q 1,11.0828 1,10.8328 L 1,7.1405 Q 1,6.8905 1.182692,6.7078 1.365385,6.5251 1.615385,6.5251 l\n 2.51923,0 3.201924,-3.2019 q 0.182692,-0.1827 0.432692,-0.1827 0.25,0 0.432692,0.1827 0.182692,0.1827\n 0.182692,0.4327 z m 3.692308,5.2308 q 0,0.7307 -0.408654,1.3605 -0.408654,0.6299 -1.08173,0.8991 -0.09615,0.048\n -0.240385,0.048 -0.25,0 -0.432693,-0.1779 -0.182692,-0.1778 -0.182692,-0.4375 0,-0.2018 0.115385,-0.3413\n 0.115385,-0.1394 0.278846,-0.2404 0.163461,-0.1009 0.326923,-0.2211 0.163462,-0.1202 0.278846,-0.3414\n 0.115385,-0.2211 0.115385,-0.548 0,-0.327 -0.115385,-0.5481 Q 10.615385,8.2174 10.451923,8.0972 10.288461,7.9771\n 10.125,7.8761 9.961539,7.7751 9.846154,7.6357 9.730769,7.4963 9.730769,7.2943 q 0,-0.2596 0.182692,-0.4374\n 0.182693,-0.178 0.432693,-0.178 0.144231,0 0.240385,0.048 0.673076,0.2597 1.08173,0.8942 0.408654,0.6347\n 0.408654,1.3655 z m 2.461538,0 q 0,1.4711 -0.817307,2.7163 -0.817308,1.2452 -2.163462,1.8125 -0.125,0.048\n -0.240384,0.048 -0.259616,0 -0.442308,-0.1827 -0.182692,-0.1827 -0.182692,-0.4327 0,-0.375 0.375,-0.5673\n 0.538461,-0.2789 0.730769,-0.4231 0.711538,-0.5192 1.110577,-1.3029 0.399038,-0.7836 0.399038,-1.6682 0,-0.8847\n -0.399038,-1.6683 -0.399039,-0.7836 -1.110577,-1.3029 -0.192308,-0.1442 -0.730769,-0.4231 -0.375,-0.1923\n -0.375,-0.5672 0,-0.2501 0.182692,-0.4328 0.182692,-0.1826 0.432692,-0.1826 0.125,0 0.25,0.048 1.346154,0.5674\n 2.163462,1.8125 0.817307,1.2452 0.817307,2.7164 z M 17,8.9867 q 0,2.2115 -1.221154,4.0624 -1.221154,1.851\n -3.25,2.726 -0.125,0.048 -0.25,0.048 -0.25,0 -0.432692,-0.1827 -0.182693,-0.1827 -0.182693,-0.4327 0,-0.3461\n 0.375,-0.5673 0.06731,-0.038 0.216347,-0.1009 0.149038,-0.062 0.216346,-0.101 0.442307,-0.2404 0.788461,-0.4904\n 1.182693,-0.875 1.846154,-2.1827 0.663462,-1.3077 0.663462,-2.7788 0,-1.4712 -0.663462,-2.7789 Q 14.442308,4.9\n 13.259615,4.0251 12.913461,3.775 12.471154,3.5347 q -0.06731,-0.038 -0.216346,-0.101 -0.149039,-0.062\n -0.216347,-0.101 -0.375,-0.2212 -0.375,-0.5673 0,-0.25 0.182693,-0.4327 0.182692,-0.1827 0.432692,-0.1827 0.125,0\n 0.25,0.048 2.028846,0.8751 3.25,2.726 Q 17,6.7751 17,8.9867 Z" />')}function u(a,b,c,d){return void 0===d&&(d=1),v(a,b,c,"icon-push",d,'<path d="m 14.667614,9 q 0,0.415934 -0.284982,0.700867 L\n 9.3685123,14.715 Q 9.0681257,15 8.6676124,15 8.2747991,15 7.9744123,14.715 L 7.3967524,14.137334 q\n -0.2926867,-0.292667 -0.2926867,-0.700867 0,-0.408201 0.2926867,-0.700934 l 2.2567399,-2.256734 -5.4223399,0 q\n -0.4005134,0 -0.6508334,-0.288798 -0.25032,-0.288868 -0.25032,-0.697068 l 0,-0.9858663 q 0,-0.4082 0.25032,\n -0.6970668 0.25032,-0.2887998 0.6508334,-0.2887998 l 5.4223399,0 L 7.3967524,5.2567334 Q 7.1040657,4.9794667\n 7.1040657,4.5635333 q 0,-0.4159334 0.2926867,-0.6932 L 7.9744123,3.2926666 Q 8.267099,3 8.6676124,3 9.0758256,3\n 9.3685123,3.2926666 L 14.382632,8.3067999 Q 14.667614,8.5764 14.667614,9 Z" />')}Object.defineProperty(c,"__esModule",{value:!0});var v=function(a,b,c,d,e,f){return(new DOMParser).parseFromString('<svg x="'+a+'" y="'+b+'" xmlns="http://www.w3.org/2000/svg">\n <g class="icon '+d+'" transform="scale('+e+')">\n '+f+"\n <title>"+c+"</title>\n </g>\n </svg>","image/svg+xml").firstChild};c.noTls=d,c.err3xx=e,c.err4xx=f,c.err5xx=g,c.plain=h,c.other=i,c.javascript=j,c.image=k,c.svg=l,c.html=m,c.css=n,c.warning=o,c.error=p,c.font=q,c.flash=r,c.video=s,c.audio=t,c.push=u},{}],4:[function(a,b,c){"use strict";function d(a){var b=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),c=a.match(b);return{authority:c[4],fragment:c[9],path:c[5],query:c[7],scheme:c[2]}}function e(a,b){return a.some(function(a){return a===b})}function f(a,b){if(a.length<b)return a.replace(/https?:\/\//,"");var c=d(a);if((c.authority+c.path).length<b)return c.authority+c.path;var e=Math.floor(b/2)-3,f=Math.floor(b/2)-5,g=c.path.split("/");return c.authority.length>e?c.authority.substr(0,e)+"..."+g[g.length-1].substr(-f):c.authority+"..."+g[g.length-1].substr(-f)}function g(a,b){return void 0===b&&(b=2),Math.round(a*Math.pow(10,b))/Math.pow(10,b)}function h(a,b,c){return a>=b&&a<=c}function i(a){return a.toLowerCase().replace(j,"")}Object.defineProperty(c,"__esModule",{value:!0}),c.contains=e,c.resourceUrlFormatter=f,c.roundNumber=g,c.isInStatusCodeRange=h;var j=/[^a-z-]/g;c.toCssClass=i},{}],5:[function(a,b,c){"use strict";function d(a,b,c){if(void 0===b&&(b=e),void 0===c&&(c=f),void 0!==a){var d=b(a);if(void 0!==d)return c(d)}}function e(a){return a}function f(a){if("function"==typeof a.toString)return a.toString();throw TypeError("Can't convert type ${typeof source} to string")}function g(a){return a.trim().length>0?a:void 0}function h(a){var b=new Date(a);if(!isNaN(b.getTime()))return b}function i(a){return k(a,function(a){return a>=0})}function j(a){return k(a,function(a){return a>0})}function k(a,b){var c=function(a){return b(a)?a:void 0};if("string"==typeof a){var d=parseInt(a,10);if(!isFinite(d))return;return c(d)}return c(a)}function l(a){return s.roundNumber(a,3)+" ms"}function m(a){var b=s.roundNumber(a,3)+" s";return a>v?b+" (~"+s.roundNumber(a/v,0)+" days)":a>u?b+" (~"+s.roundNumber(a/u,0)+" hours)":a>t?b+" (~"+s.roundNumber(a/t,0)+" minutes)":b}function n(a){return a.toUTCString()+"</br>(local time: "+a.toLocaleString()+")"}function o(a){var b=a+" bytes";return a>=x?b+" (~"+s.roundNumber(a/x,1)+" MB)":a>=w?b+" (~"+s.roundNumber(a/w,0)+" kB)":b}function p(a){if(void 0===a&&(a=""),"string"!=typeof a){if("function"!=typeof a.toString)throw TypeError("Invalid parameter");a=a.toString()}return a.replace(z,function(a){return y[a]})}function q(a){return"number"==typeof a?a:"string"==typeof a?parseInt(a,10):void 0}function r(a){var b=function(b){if(a[b]=q(a[b]),void 0===a[b])throw TypeError('option "'+b+'" needs to be a number')},c=function(b){a[b]=!!a[b]};return b("leftColumnWith"),b("rowHeight"),b("selectedPage"),c("showAlignmentHelpers"),c("showIndicatorIcons"),c("showMimeTypeIcon"),a}Object.defineProperty(c,"__esModule",{value:!0});var s=a("./misc");c.parseAndFormat=d,c.parseNonEmpty=g,c.parseDate=h,c.parseNonNegative=i,c.parsePositive=j,c.formatMilliseconds=l;var t=60,u=60*t,v=24*u;c.formatSeconds=m,c.formatDateLocalized=n;var w=1024,x=1024*w;c.formatBytes=o;var y={'"':""","&":"&","'":"'","<":"<",">":">"},z=new RegExp(Object.keys(y).join("|"),"g");c.escapeHtml=p,c.toInt=q,c.validateOptions=r},{"./misc":4}],6:[function(a,b,c){"use strict";function d(a){for(var b=[],c=0,d=Object.keys(a);c<d.length;c++){var e=d[c];b.push([e,String(a[e])])}return b}function e(a,b,c){b in a||console.warn(new Error("Trying to set non-existing attribute "+b+" = "+c+" on a <"+a.tagName.toLowerCase()+">.")),a.setAttributeNS(null,b,c)}function f(a,b,c){b in a.style?a.style[b]=c:console.warn(new Error("Trying to set non-existing style "+b+" = "+c+" on a <"+a.tagName.toLowerCase()+">."))}function g(a,b){var c=void 0===b?{}:b,g=c.attributes,h=void 0===g?{}:g,i=c.css,j=void 0===i?{}:i,k=c.text,l=void 0===k?"":k,m=c.className,n=void 0===m?"":m,o=document.createElementNS("http://www.w3.org/2000/svg",a);return n&&r.addClass(o,n),l&&(o.textContent=l),d(j).forEach(function(a){return f(o,a[0],a[1])}),d(h).forEach(function(a){return e(o,a[0],a[1])}),o}function h(a,b,c){return void 0===c&&(c={}),g("svg",{className:a,attributes:b,css:c})}function i(a,b,c){return void 0===b&&(b={}),void 0===c&&(c={}),g("g",{className:a,attributes:b,css:c})}function j(a){return g("clipPath",{attributes:{id:a}})}function k(a){return g("foreignObject",{attributes:a})}function l(a){return g("a",{className:a})}function m(a,b,c){return void 0===b&&(b=""),void 0===c&&(c={}),g("rect",{attributes:a,className:b,css:c})}function n(a,b){return void 0===b&&(b=""),g("line",{className:b,attributes:a})}function o(a){return g("title",{text:a})}function p(a,b,c){return void 0===b&&(b={}),void 0===c&&(c={}),g("text",{text:a,attributes:b,css:c})}function q(a,b){void 0===b&&(b=!1);var c,d=s();return c=b?a:a.cloneNode(!1),d.appendChild(c),c.style.textShadow="0",window.document.body.appendChild(d),c.getBBox().width}Object.defineProperty(c,"__esModule",{value:!0});var r=a("./dom");c.newSvg=h,c.newG=i,c.newClipPath=j,c.newForeignObject=k,c.newA=l,c.newRect=m,c.newLine=n,c.newTitle=o,c.newTextEl=p;var s=function(){var a,b;return function(){if(void 0===a){a=h("water-fall-chart temp",{className:"water-fall-chart temp",width:"9999px"},{left:"0px",position:"absolute",top:"0px",visibility:"hidden","z-index":"99999"})}return void 0===a.parentElement&&window.document.body.appendChild(a),clearTimeout(b),b=setTimeout(function(){a.parentNode.removeChild(a)},1e3),a}}();c.getNodeTextWidth=q},{"./dom":1}],7:[function(a,b,c){"use strict";function d(){var a=document.createElement("ul");return a.className="resource-legend",a.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>',a}Object.defineProperty(c,"__esModule",{value:!0}),c.makeLegend=d},{}],8:[function(a,b,c){"use strict";function d(){return i.makeLegend()}function e(a,b){void 0===b&&(b={});var c=h.validateOptions(g({},m,b)),d=new j.default(a,c.selectedPage),e=l.createWaterfallSvg(d.getSelectedPage(),c);return d.onPageUpdate(function(a,b){var d=e.parentElement,f=l.createWaterfallSvg(b,c);d.replaceChild(f,e),e=f}),c.pageSelector&&d.initPagingSelectBox(c.pageSelector),c.legendHolder&&(c.legendHolder.innerHTML="",c.legendHolder.appendChild(i.makeLegend())),e}function f(a,b){void 0===b&&(b={});var c=g({},n,b),d=k.transformDoc(a,c);return"function"==typeof b.onParsed&&b.onParsed(d),e(d,b)}var g=this&&this.__assign||Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++){b=arguments[c];for(var e in b)Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e])}return a};Object.defineProperty(c,"__esModule",{value:!0});var h=a("./helpers/parse"),i=a("./legend/legend"),j=a("./paging/paging"),k=a("./transformers/har"),l=a("./waterfall/svg-chart"),m={leftColumnWith:25,legendHolder:void 0,onParsed:void 0,pageSelector:void 0,rowHeight:23,selectedPage:0,showAlignmentHelpers:!0,showIndicatorIcons:!0,showMimeTypeIcon:!0},n={showUserTiming:!1,showUserTimingEndMarker:!1};c.makeLegend=d,c.fromHar=f},{"./helpers/parse":5,"./legend/legend":7,"./paging/paging":9,"./transformers/har":13,"./waterfall/svg-chart":26}],9:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d=a("../helpers/dom"),e=function(){function a(a,b){void 0===b&&(b=0),this.doc=a,this.selectedPageIndex=b,this.onPageUpdateCbs=[],b>=this.doc.pages.length&&(this.selectedPageIndex=this.doc.pages.length-1)}return a.prototype.getPageCount=function(){return this.doc.pages.length},a.prototype.getSelectedPage=function(){return this.doc.pages[this.selectedPageIndex]},a.prototype.getSelectedPageIndex=function(){return this.selectedPageIndex},a.prototype.setSelectedPageIndex=function(a){var b=this;if(this.selectedPageIndex!==a){ | ||
if(a<0||a>=this.getPageCount())throw new Error("Page does not exist - Invalid pageIndex selected");this.selectedPageIndex=a;var c=this.doc.pages[this.selectedPageIndex];this.onPageUpdateCbs.forEach(function(a){a(b.selectedPageIndex,c)})}},a.prototype.onPageUpdate=function(a){if(this.getPageCount()>1)return this.onPageUpdateCbs.push(a)},a.prototype.initPagingSelectBox=function(a){var b=this,c=this;if(this.getPageCount()<=1)return void(a.style.display="none");d.removeChildren(a),this.doc.pages.forEach(function(c,d){var e=new Option(c.title,d.toString(),!1,d===b.selectedPageIndex);a.add(e)}),a.style.display="block",a.addEventListener("change",function(a){var b=parseInt(a.target.value,10);c.setSelectedPageIndex(b)})},a}();c.default=e},{"../helpers/dom":1}],10:[function(a,b,c){"use strict";function d(a,b,c){return[["Request Number","#"+c],["Started",new Date(a.startedDateTime).toLocaleString()+(b>0?" ("+j.formatMilliseconds(b)+" after page request started)":"")],["Duration",j.formatMilliseconds(a.time)],["Error/Status Code",a.response.status+" "+a.response.statusText],["Server IPAddress",a.serverIPAddress],["Connection",a.connection],["Browser Priority",a._priority||a._initialPriority],["Was pushed",j.parseAndFormat(a._was_pushed,j.parsePositive,function(){return"yes"})],["Initiator (Loaded by)",a._initiator],["Initiator Line",a._initiator_line],["Host",i.getHeader(a.request.headers,"Host")],["IP",a._ip_addr],["Client Port",j.parseAndFormat(a._client_port,j.parsePositive)],["Expires",a._expires],["Cache Time",j.parseAndFormat(a._cache_time,j.parsePositive,j.formatSeconds)],["CDN Provider",a._cdn_provider],k("ObjectSize",a._objectSize),k("Bytes In (downloaded)",a._bytesIn),k("Bytes Out (uploaded)",a._bytesOut),k("JPEG Scan Count",a._jpeg_scan_count),k("Gzip Total",a._gzip_total),k("Gzip Save",a._gzip_save),k("Minify Total",a._minify_total),k("Minify Save",a._minify_save),k("Image Total",a._image_total),k("Image Save",a._image_save)].filter(function(a){return void 0!==a[1]&&""!==a[1]})}function e(a){var b=a.request,c=function(a){return[a,i.getHeader(b.headers,a)]};return[["Method",b.method],["HTTP Version",b.httpVersion],k("Bytes Out (uploaded)",a._bytesOut),k("Headers Size",b.headersSize),k("Body Size",b.bodySize),["Comment",j.parseAndFormat(b.comment,j.parseNonEmpty)],c("User-Agent"),c("Host"),c("Connection"),c("Accept"),c("Accept-Encoding"),c("Expect"),c("Forwarded"),c("If-Modified-Since"),c("If-Range"),c("If-Unmodified-Since"),l("Querystring parameters count",b.queryString.length),l("Cookies count",b.cookies.length)].filter(function(a){return void 0!==a[1]&&""!==a[1]})}function f(a){var b=a.response,c=b.content,d=b.headers,e=function(a,b){return void 0===b&&(b=a),[a,i.getHeader(d,b)]},f=function(a){var b=i.getHeader(d,a);return[a,j.parseAndFormat(b,j.parseDate,j.formatDateLocalized)]},g=i.getHeader(d,"Content-Length"),h=void 0;c.size!==-1&&g!==c.size.toString()&&(h=c.size);var l=i.getHeader(d,"Content-Type");return a._contentType&&a._contentType!==l&&(l=l+" | "+a._contentType),[["Status",b.status+" "+b.statusText],["HTTP Version",b.httpVersion],k("Bytes In (downloaded)",a._bytesIn),k("Headers Size",b.headersSize),k("Body Size",b.bodySize),["Content-Type",l],e("Cache-Control"),e("Content-Encoding"),f("Expires"),f("Last-Modified"),e("Pragma"),k("Content-Length",g),k("Content Size",h),k("Content Compression",c.compression),e("Connection"),e("ETag"),e("Accept-Patch"),["Age",j.parseAndFormat(i.getHeader(d,"Age"),j.parseNonNegative,j.formatSeconds)],e("Allow"),e("Content-Disposition"),e("Location"),e("Strict-Transport-Security"),e("Trailer (for chunked transfer coding)","Trailer"),e("Transfer-Encoding"),e("Upgrade"),e("Vary"),e("Timing-Allow-Origin"),["Redirect URL",j.parseAndFormat(b.redirectURL,j.parseNonEmpty)],["Comment",j.parseAndFormat(b.comment,j.parseNonEmpty)]]}function g(a,b,c){var d=a.timings,e=function(a){return j.parseAndFormat(a,j.parseNonNegative,j.formatMilliseconds)},f="number"!=typeof b||"number"!=typeof c?void 0:c-b;return[["Total",j.formatMilliseconds(f)],["Blocked",e(d.blocked)],["DNS",e(d.dns)],["Connect",e(d.connect)],["SSL (TLS)",e(d.ssl)],["Send",j.formatMilliseconds(d.send)],["Wait",j.formatMilliseconds(d.wait)],["Receive",j.formatMilliseconds(d.receive)]]}function h(a,b,c,h){var i=a.request.headers,j=a.response.headers,k=function(a){return[a.name,a.value]};return{general:d(a,c,b),request:e(a),requestHeaders:i.map(k),response:f(a),responseHeaders:j.map(k),timings:g(a,c,h)}}Object.defineProperty(c,"__esModule",{value:!0});var i=a("../helpers/har"),j=a("../helpers/parse"),k=function(a,b){return[a,j.parseAndFormat(b,j.parsePositive,j.formatBytes)]},l=function(a,b){return[a,j.parseAndFormat(b,j.parsePositive)]};c.getKeys=h},{"../helpers/har":2,"../helpers/parse":5}],11:[function(a,b,c){"use strict";function d(a,b){if(a.response.bodySize<1e3)return!1;if(l.contains(["html","css","javascript","svg","plain"],b))return!0;var c=a.response.content.mimeType,d=["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!(!l.contains(["text"],c.split("/")[0])&&!l.contains(d,c.split(";")[0]))}function e(a){if("get"!==a.request.method.toLowerCase())return!1;if(204===a.response.status||!l.isInStatusCodeRange(a.response.status,200,299))return!1;var b=a.response.headers;return!(k.hasHeader(b,"Cache-Control")||k.hasHeader(b,"Expires"))}function f(a,b){var c=a.response.headers;return!k.hasHeader(c,"Content-Encoding")&&d(a,b)}function g(a){return 0===a.request.url.indexOf("https://")}function h(a){return 1===function(a){return"string"==typeof a?parseInt(a,10):a}(a._was_pushed)}function i(a){var b=a.filter(function(a){return!a.response.redirectURL})[0];return void 0===b?a.length>0&&g(a[0]):g(b)}function j(a,b,c){var d=[];return h(a)&&d.push({description:"Response was pushed by the server using HTTP2 push.",icon:"push",id:"push",title:"Response was pushed by the server",type:"info"}),b&&!g(a)&&d.push({description:"Insecure request, it should use HTTPS.",id:"noTls",title:"Insecure Connection",type:"error"}),e(a)&&d.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"}),f(a,c)&&d.push({description:"The response is not compressed. Consider enabling HTTP compression on your server.",id:"noGzip",title:"no gzip",type:"error"}),!a.response.content.mimeType&&l.isInStatusCodeRange(a.response.status,200,299)&&204!==a.response.status&&d.push({description:"Response doesn't contain a 'Content-Type' header.",id:"warning",title:"No MIME Type defined",type:"warning"}),d}Object.defineProperty(c,"__esModule",{value:!0});var k=a("../helpers/har"),l=a("../helpers/misc");c.documentIsSecure=i,c.collectIndicators=j},{"../helpers/har":2,"../helpers/misc":4}],12:[function(a,b,c){"use strict";function d(a,b,c,d,f,l){var o=[],p=m.getKeys(a,b,d,f);return o.push(g(p.general,l)),o.push(h(p.request,p.requestHeaders)),o.push(i(p.response,p.responseHeaders)),o.push(e("Timings",n.makeDefinitionList(p.timings,!0))),o.push(j(a)),"image"===c&&o.push(k(a)),o.filter(function(a){return void 0!==a})}function e(a,b,c){return void 0===c&&(c=""),{title:a,content:b,tabClass:c}}function f(a,b,c){return void 0===c&&(c=""),{title:a,renderContent:b,tabClass:c}}function g(a,b){var c=n.makeDefinitionList(a);if(0===b.length)return e("General",c);var d="<h2>General</h2>\n <dl>"+c+"<dl>";c="";var f=b.filter(function(a){return"error"===a.type}).map(function(a){return[a.title,a.description]}),g=b.filter(function(a){return"warning"===a.type}).map(function(a){return[a.title,a.description]}),h=b.filter(function(a){return"error"!==a.type&&"warning"!==a.type}).map(function(a){return[a.title,a.description]});f.length>0&&(c+='<h2 class="no-boder">Error'+(f.length>1?"s":"")+"</h2>\n <dl>"+n.makeDefinitionList(f)+"</dl>"),g.length>0&&(c+='<h2 class="no-boder">Warning'+(g.length>1?"s":"")+"</h2>\n <dl>"+n.makeDefinitionList(g)+"</dl>"),h.length>0&&(c+='<h2 class="no-boder">Info</h2>\n <dl>'+n.makeDefinitionList(h)+"</dl>"),e("General",c+d)}function h(a,b){return e("Request","<dl>\n "+n.makeDefinitionList(a)+"\n </dl>\n <h2>All Request Headers</h2>\n <dl>\n "+n.makeDefinitionList(b)+"\n </dl>")}function i(a,b){return e("Response","<dl>\n "+n.makeDefinitionList(a)+"\n </dl>\n <h2>All Response Headers</h2>\n <dl>\n "+n.makeDefinitionList(b)+"\n </dl>")}function j(a){return f("Raw Data",function(){return"<pre><code>"+l.escapeHtml(JSON.stringify(a,null,2))+"</code></pre>"},"raw-data")}function k(a){return f("Preview",function(b){return'<img class="preview" style="max-height:'+(b-100)+'px"\n data-src="'+a.request.url+'" />'})}Object.defineProperty(c,"__esModule",{value:!0});var l=a("../helpers/parse"),m=a("./extract-details-keys"),n=a("./helpers");c.makeTabs=d},{"../helpers/parse":5,"./extract-details-keys":10,"./helpers":14}],13:[function(a,b,c){"use strict";function d(a,b){var c=this,d=void 0!==a.log?a.log:a;return{pages:l(d).map(function(a,e){return c.transformPage(d,e,b)})}}function e(a,b,c,d){c=Math.round(c);var e=Math.round(h.toInt(a._all_end)||c+a.time),f=k.mimeToRequestType(a.response.content.mimeType),g=i.collectIndicators(a,d,f),l=q(a,g);return k.createWaterfallEntry(a.request.url,c,e,o(c,a),l,j.makeTabs(a,b+1,f,c,e,g))}function f(a,b,c){void 0===b&&(b=0);var d=void 0!==a.log?a.log:a,f=l(d),g=f[b],h=new Date(g.startedDateTime).getTime(),j=g.pageTimings,k=0,n=i.documentIsSecure(d.entries),o=d.entries.filter(function(a){return 0!==a.request.url.indexOf("data:")&&(1===f.length&&""===g.id||a.pageref===g.id)}).map(function(a,b){var c=new Date(a.startedDateTime).getTime()-h;return k=Math.max(k,c+a.time),e(a,b,c,n)}),p=m(j,g,c);return k+=100,{docIsTLS:n,durationMs:k,entries:o,marks:p,title:g.title}}Object.defineProperty(c,"__esModule",{value:!0});var g=a("../helpers/misc"),h=a("../helpers/parse"),i=a("./har-heuristics"),j=a("./har-tabs"),k=a("./helpers");c.transformDoc=d;var l=function(a){return a.pages&&a.pages.length>0?a.pages:[{id:"",pageTimings:{},startedDateTime:a.entries.reduce(function(a,b){var c=Date.parse(b.startedDateTime);return Date.parse(a)<c?a:b.startedDateTime},a.entries[0].startedDateTime),title:"n/a"}]};c.transformPage=f;var m=function(a,b,c){var d=function(a,b){return a.startTime-b.startTime},e=Object.keys(a).filter(function(b){return"number"==typeof a[b]&&a[b]>=0}).map(function(b){return{name:b.replace(/^[_]/,"")+" ("+g.roundNumber(a[b],0)+" ms)",startTime:a[b]}});return c.showUserTiming?n(b,c).concat(e).sort(d):e.sort(d)},n=function(a,b){var c=b.showUserTimingEndMarker?function(a){return 0===a.indexOf("_userTime.")}:function(a){return 0===a.indexOf("_userTime.")&&0!==a.indexOf("_userTime.endTimer-")},d=c;if(Array.isArray(b.showUserTiming)){var e=b.showUserTiming;d=function(a){return c(a)&&e.indexOf(a.replace(/^_userTime\./,""))>=0}}var f=/^_userTime\.((?:startTimer-)?(.+))$/,g=function(c){var d,e,g;return h=f.exec(c),e=h[1],d=h[2],e!==d&&a["_userTime.endTimer-"+d]?(g=a["_userTime.endTimer-"+d]-a[c],{name:(b.showUserTimingEndMarker?e:d)+" ("+a[c]+" - "+(a[c]+g)+" ms)",duration:g,startTime:a[c]}):{name:e,startTime:a[c]};var h};return Object.keys(a).filter(d).map(g)},o=function(a,b){var c=b.timings;return["blocked","dns","connect","send","wait","receive"].reduce(function(d,e){var f=p(e,b,d,a);if(f.end&&f.start>=f.end)return d;if("connect"===e&&c.ssl&&c.ssl!==-1){var g=parseInt(b._ssl_start,10)||f.start,h=parseInt(b._ssl_end,10)||f.start+c.ssl,i=parseInt(b._ssl_start,10)?f.start:h;return d.concat([k.createWaterfallEntryTiming("ssl",Math.round(g),Math.round(h))]).concat([k.createWaterfallEntryTiming(e,Math.round(i),Math.round(f.end))])}return d.concat([k.createWaterfallEntryTiming(e,Math.round(f.start),Math.round(f.end))])},[])},p=function(a,b,c,d){var e;switch(a){case"wait":e="ttfb";break;case"receive":e="download";break;default:e=a}var f=parseInt(b["_"+e+"_start"],10),g=parseInt(b["_"+e+"_end"],10),h=isNaN(f)?c.length>0?c[c.length-1].end:d:f,i=isNaN(g)?h+b.timings[a]:g;return{end:Math.round(i),start:Math.round(h)}},q=function(a,b){var c=k.mimeToRequestType(a.response.content.mimeType);return{icon:k.makeMimeTypeIcon(a.response.status,a.response.statusText,c,a.response.redirectURL),rowClass:k.makeRowCssClasses(a.response.status),indicators:b,requestType:c,statusCode:a.response.status}}},{"../helpers/misc":4,"../helpers/parse":5,"./har-heuristics":11,"./har-tabs":12,"./helpers":14}],14:[function(a,b,c){"use strict";function d(a,b){void 0===b&&(b=!1);var c=function(a){return b?'class="'+(j.toCssClass(a)||"no-colour")+'"':""};return a.filter(function(a){return void 0!==a[1]}).map(function(a){return"\n <dt "+c(a[0])+">"+a[0]+"</dt>\n <dd>"+k.escapeHtml(a[1])+"</dd>\n "}).join("")}function e(a){if(void 0===a)return"other";var b=a.split("/"),c=b[1];switch(void 0!==c&&(c=c.indexOf(";")>-1?c.split(";")[0]:c),b[0]){case"image":return"svg+xml"===c?"svg":"image";case"font":return"font";case"video":return"video";case"audio":return"audio"}switch(c){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"}}function f(a,b,c,d,e,f){return void 0===d&&(d=[]),{total:"number"!=typeof b||"number"!=typeof c?void 0:c-b,url:a,start:b,end:c,segments:d,responseDetails:e,tabs:f}}function g(a,b,c){return{total:"number"!=typeof b||"number"!=typeof c?void 0:c-b,type:a,start:b,end:c}}function h(a){var b=["row-item"];return j.isInStatusCodeRange(a,500,599)?b.push("status5xx"):j.isInStatusCodeRange(a,400,499)?b.push("status4xx"):304!==a&&j.isInStatusCodeRange(a,300,399)&&b.push("status3xx"),b.join(" ")}function i(a,b,c,d){if(void 0===d&&(d=""),d){var e=encodeURI(d.split("?")[0]||"");return l.makeIcon("err3xx",a+" response status: Redirect to "+e+"...")}return j.isInStatusCodeRange(a,400,499)?l.makeIcon("err4xx",a+" response status: "+b):j.isInStatusCodeRange(a,500,599)?l.makeIcon("err5xx",a+" response status: "+b):204===a?l.makeIcon("plain","No content"):l.makeIcon(c,c)}Object.defineProperty(c,"__esModule",{value:!0});var j=a("../helpers/misc"),k=a("../helpers/parse"),l=a("../waterfall/row/svg-indicators");c.makeDefinitionList=d,c.mimeToRequestType=e,c.createWaterfallEntry=f,c.createWaterfallEntryTiming=g,c.makeRowCssClasses=h,c.makeMimeTypeIcon=i},{"../helpers/misc":4,"../helpers/parse":5,"../waterfall/row/svg-indicators":20}],15:[function(a,b,c){"use strict";function d(a){return"block-"+a}function e(a){return"block-"+a}Object.defineProperty(c,"__esModule",{value:!0}),c.requestTypeToCssClass=d,c.timingTypeToCssClass=e},{}],16:[function(a,b,c){"use strict";function d(a,b,c){var d=document.createElement("html"),e=document.createElement("body");e.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),d.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/xmlns/");var f=c.tabs.map(function(a){return'<li><button class="tab-button">'+a.title+"</button></li>"}).join("\n"),g=c.tabs.map(function(a){var c="tab";a.tabClass&&(c+=" "+a.tabClass);var d="";if(a.content)d=a.content;else{if("function"!=typeof a.renderContent)throw TypeError("Invalid Details Tab");d=a.renderContent(b),a.content=d}return'<div class="tab '+c+'">'+d+"</div>"}).join("\n");return e.innerHTML='\n <div class="wrapper">\n <header class="type-'+c.responseDetails.requestType+'">\n <h3><strong>#'+a+'</strong> <a href="'+c.url+'">'+c.url+'</a></h3>\n <nav class="tab-nav">\n <ul>\n '+f+"\n </ul>\n </nav>\n </header>\n "+g+"\n </div>\n ",d.appendChild(e),d}Object.defineProperty(c,"__esModule",{value:!0}),c.createDetailsBody=d},{}],17:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d=a("../../helpers/dom"),e=a("./svg-details-overlay"),f=function(){function a(a,b){this.context=a,this.overlayHolder=b,this.openOverlays=[]}return a.prototype.getCombinedOverlayHeight=function(){return this.openOverlays.reduce(function(a,b){return a+b.height},0)},a.prototype.openOverlay=function(a,b,c,d,e){if(!this.openOverlays.some(function(b){return b.index===a})){var f=this;this.openOverlays.push({defaultY:b,entry:d,index:a,onClose:function(){f.closeOverlay(a,c,e)},openTabIndex:0}),this.renderOverlays(c),this.context.pubSub.publishToOverlayChanges({combinedOverlayHeight:f.getCombinedOverlayHeight(),openOverlays:f.openOverlays,type:"open"}),this.realignBars(e)}},a.prototype.toggleOverlay=function(a,b,c,d,e){this.openOverlays.some(function(b){return b.index===a})?this.closeOverlay(a,c,e):this.openOverlay(a,b,c,d,e)},a.prototype.closeOverlay=function(a,b,c){var d=this;this.openOverlays.splice(this.openOverlays.reduce(function(b,c,d){return c.index===a?d:b},-1),1),this.renderOverlays(b),this.context.pubSub.publishToOverlayChanges({combinedOverlayHeight:d.getCombinedOverlayHeight(),openOverlays:d.openOverlays,type:"closed"}),this.realignBars(c)},a.prototype.realignBars=function(a){var b=this;a.forEach(function(a,c){var d=b.getOverlayOffset(c);a.style.transform="translate(0, "+d+"px)"})},a.prototype.getOverlayOffset=function(a){return this.openOverlays.reduce(function(b,c){return c.index<a?b+c.height:b},0)},a.prototype.renderOverlays=function(a){var b=this;d.removeChildren(this.overlayHolder);var c=0;this.openOverlays.sort(function(a,b){return a.index>b.index?1:-1}).forEach(function(d){var f=d.defaultY+c,g=e.createRowInfoOverlay(d,f,a),h=g.querySelector("img.preview");h&&!h.src&&h.setAttribute("src",h.attributes.getNamedItem("data-src").value),b.overlayHolder.appendChild(g);var i=g.getBoundingClientRect().height;return c+=i,d.actualY=f,d.height=i,d})},a}();c.default=f},{"../../helpers/dom":1,"./svg-details-overlay":19}],18:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d=function(){function a(){this.subscribers=[]}return a.prototype.subscribeToOverlayChanges=function(a){this.subscribers.push(a)},a.prototype.publishToOverlayChanges=function(a){this.subscribers.forEach(function(b){return b(a)})},a}();c.default=d},{}],19:[function(a,b,c){"use strict";function d(a,b){Array.prototype.forEach.call(a,b)}function e(a){var b=h.newA("info-overlay-close-btn");return b.appendChild(h.newRect({height:23,width:23,x:"100%",y:a})),b.appendChild(h.newTextEl("✕",{dx:7,dy:16,x:"100%",y:a})),b.appendChild(h.newTitle("Close Overlay")),b}function f(a,b){var c=h.newG("info-overlay-holder"),d=h.newRect({height:b,rx:2,ry:2,width:"100%",x:"0",y:a},"info-overlay");return c.appendChild(d),c}function g(a,b,c){var g=a.index+1,j=h.newG("outer-info-overlay-holder"),k=f(b,c),l=h.newForeignObject({height:c,width:"100%",x:"0",y:b}),m=e(b);m.addEventListener("click",function(){return a.onClose(a.index)});var n=i.createDetailsBody(g,c,a.entry),o=n.getElementsByClassName("tab-button"),p=n.getElementsByClassName("tab"),q=function(b){a.openTabIndex=b,d(p,function(a,c){a.style.display=b===c?"block":"none",o.item(c).classList.toggle("active",b===c)})};return d(o,function(a,b){a.addEventListener("click",function(){return q(b)})}),q(a.openTabIndex),l.appendChild(n),k.appendChild(l),k.appendChild(m),j.appendChild(k),j}Object.defineProperty(c,"__esModule",{value:!0});var h=a("../../helpers/svg"),i=a("./html-details-body");c.forEach=d,c.createRowInfoOverlay=g},{"../../helpers/svg":6,"./html-details-body":16}],20:[function(a,b,c){"use strict";function d(a,b){return{type:a,title:b,width:20}}function e(a){var b=a.responseDetails.indicators;if(0===b.length)return[];var c=[],e="",f=b.filter(function(a){return"error"===a.type}),g=b.filter(function(a){return"warning"===a.type}),h=b.filter(function(a){return"error"!==a.type&&"warning"!==a.type});return f.length>0&&(c.push("Error"+(f.length>1?"s":"")+":\n"+f.map(function(a){return a.title}).join("\n")),e="error"),g.length>0&&(c.push("Warning"+(g.length>1?"s":"")+":\n"+g.map(function(a){return a.title}).join("\n")),e=e||"warning"),h.length>0&&(c.push("Info:\n"+h.map(function(a){return a.title}).join("\n")),e=e||1!==h.length?e||"info":h[0].icon||h[0].type),[d(e,c.join("\n"))]}Object.defineProperty(c,"__esModule",{value:!0}),c.makeIcon=d,c.getIndicatorIcons=e},{}],21:[function(a,b,c){"use strict";function d(a,b){var c=a.height-1,d=q.newRect({height:c,width:p.roundNumber(a.width/a.unit)+"%",x:p.roundNumber(a.x/a.unit)+"%",y:a.y},b);return a.label&&d.appendChild(q.newTitle(a.label)),a.showOverlay&&a.hideOverlay&&(d.addEventListener("mouseenter",a.showOverlay(a)),d.addEventListener("mouseleave",a.hideOverlay(a))),d}function e(a,b){return{cssClass:r.timingTypeToCssClass(a.type),height:b.height-6,hideOverlay:b.hideOverlay,label:a.type+" ("+Math.round(a.start)+"ms - "+Math.round(a.end)+"ms | total: "+Math.round(a.total)+"ms)",showOverlay:b.showOverlay,unit:b.unit,width:a.total,x:a.start||.001,y:b.y}}function f(a,b,c){var d=a.y+a.height/1.5,e=Math.round(b)+" ms",f=(a.x+a.width)/a.unit+1,g=q.newTextEl(e,{x:p.roundNumber(f)+"%",y:d});return f+8*e.length/500*100>100&&(f=c/a.unit-1,g=q.newTextEl(e,{x:p.roundNumber(f)+"%",y:d},{textAnchor:"end"})),g}function g(a,b,c){var g=d(a,"time-block "+a.cssClass),h=q.newG("rect-holder"),i=a.x;return h.appendChild(g),b&&b.length>0&&(b.forEach(function(b){if(b.total>0&&"number"==typeof b.start){var c=e(b,a),f=d(c,"segment "+c.cssClass);i=Math.min(i,c.x),h.appendChild(f)}}),h.appendChild(f(a,c,i))),h}function h(a,b,c,d,e){return b+=Math.round(d/2)+5,a+=e,q.newTextEl(c,{x:a,y:b},{"text-anchor":"end"})}function i(a,b,c,d){var e=k(a,b,c,d);return e.style.clipPath="url(#titleClipPath)",e}function j(a,b,c,d){var e=k(a,b,c,d),f=q.newG("full-label");return f.appendChild(q.newRect({height:d-4,rx:5,ry:5,width:q.getNodeTextWidth(e),x:a-3,y:b+3},"label-full-bg")),f.appendChild(e),f}function k(a,b,c,d){var e=p.resourceUrlFormatter(c,125);b=b+Math.round(d/2)+5;var f=q.newTextEl(e,{x:a,y:b});return f.appendChild(q.newTitle(c)),f.style.opacity=c.match(/js.map$/)?"0.5":"1",f}function l(a,b,c,d){var e=d.getElementsByTagName("rect")[0],f=d.getElementsByTagName("text")[0];d.style.display="none",d.style.visibility="hidden",a.appendChild(b),a.appendChild(c),a.appendChild(d),a.addEventListener("mouseenter",function(){d.style.display="block",c.style.display="none",d.style.visibility="visible",e.style.width=(f.clientWidth+10).toString()}),a.addEventListener("mouseleave",function(){c.style.display="block",d.style.display="none",d.style.visibility="hidden"})}function m(a,b,c){var d=c?"even":"odd";return q.newRect({height:b,width:"100%",x:0,y:a},d)}function n(a,b,c){var d=q.newG("row row-fixed");return d.appendChild(q.newRect({height:b,width:"100%",x:"0",y:a},"",{opacity:0})),d.addEventListener("click",c),d}function o(a,b,c){var d=q.newG("row row-flex");return d.appendChild(q.newRect({height:b,width:"100%",x:"0",y:a},"",{opacity:0})),d.addEventListener("click",c),d}Object.defineProperty(c,"__esModule",{value:!0});var p=a("../../helpers/misc"),q=a("../../helpers/svg"),r=a("../../transformers/styling-converters");c.createRect=g,c.createRequestNumberLabel=h,c.createRequestLabelClipped=i,c.createRequestLabelFull=j,c.appendRequestLabels=l,c.createBgStripe=m,c.createNameRowBg=n,c.createRowBg=o},{"../../helpers/misc":4,"../../helpers/svg":6,"../../transformers/styling-converters":15}],22:[function(a,b,c){"use strict";function d(a,b,c,d,l,m,n){var o=l.y,p=l.height,q=a.options.leftColumnWith,r=g.newG(m.responseDetails.rowClass),s=g.newSvg("left-fixed-holder",{width:q+"%",x:"0"}),t=g.newSvg("flex-scale-waterfall",{width:100-q+"%",x:q+"%"}),u=i.createRect(l,m.segments,m.total),v=i.createNameRowBg(o,p,n),w=i.createRowBg(o,p,n),x=i.createBgStripe(o,p,b%2==0),y=k+c;if(a.options.showMimeTypeIcon){var z=m.responseDetails.icon;y-=z.width,v.appendChild(e[z.type](y,o+3,z.title))}a.options.showIndicatorIcons&&h.getIndicatorIcons(m).forEach(function(a){y-=a.width,v.appendChild(e[a.type](y,o+3,a.title))}),y=k+c;var A=""+(b+1),B=i.createRequestNumberLabel(y,o,A,p,d);y+=d+4;var C=i.createRequestLabelClipped(y,o,f.resourceUrlFormatter(m.url,40),p),D=i.createRequestLabelFull(y,o,m.url,p);return w.appendChild(u),i.appendRequestLabels(v,B,C,D),t.appendChild(w),s.appendChild(j.cloneNode(!0)),s.appendChild(v),r.appendChild(x),r.appendChild(t),r.appendChild(s),r}Object.defineProperty(c,"__esModule",{value:!0});var e=a("../../helpers/icons"),f=a("../../helpers/misc"),g=a("../../helpers/svg"),h=a("./svg-indicators"),i=a("./svg-row-subcomponents"),j=g.newClipPath("titleClipPath");j.appendChild(g.newRect({height:"100%",width:"100%"}));var k=3;c.createRow=d},{"../../helpers/icons":3,"../../helpers/misc":4,"../../helpers/svg":6,"./svg-indicators":20,"./svg-row-subcomponents":21}],23:[function(a,b,c){"use strict";function d(a){return{endline:g.newLine({x1:"0",x2:"0",y1:"0",y2:a},"line-end"),startline:g.newLine({x1:"0",x2:"0",y1:"0",y2:a},"line-start")}}function e(a){return{onMouseEnterPartial:function(){return function(b){var c=b.target;f.addClass(c,"active");var d=c.x.baseVal.valueInSpecifiedUnits+c.width.baseVal.valueInSpecifiedUnits+"%",e=c.x.baseVal.valueInSpecifiedUnits+"%";a.endline.x1.baseVal.valueAsString=d,a.endline.x2.baseVal.valueAsString=d,a.startline.x1.baseVal.valueAsString=e,a.startline.x2.baseVal.valueAsString=e,f.addClass(a.endline,"active"),f.addClass(a.startline,"active")}},onMouseLeavePartial:function(){return function(b){var c=b.target;f.removeClass(c,"active"),f.removeClass(a.endline,"active"),f.removeClass(a.startline,"active")}}}}Object.defineProperty(c,"__esModule",{value:!0});var f=a("../../helpers/dom"),g=a("../../helpers/svg");c.createAlignmentLines=d,c.makeHoverEvtListeners=e},{"../../helpers/dom":1,"../../helpers/svg":6}],24:[function(a,b,c){"use strict";function d(a,b){for(var c=f.newG("time-scale full-width"),d=200*Math.ceil(b/1e4),e=1e3/d,h=b/1e3,i=b/d,j=0;j<=i;j++){g(a,c,h,j/e,j%e<1e-9)}return c}Object.defineProperty(c,"__esModule",{value:!0});var e=a("../../helpers/misc"),f=a("../../helpers/svg"),g=function(a,b,c,d,g){void 0===g&&(g=!1);var h,i=a.diagramHeight,j=100/c,k="sub-second-line";if(g){var l=d>c-.2;k="second-line";var m=e.roundNumber(j*d)+.5+"%",n={};l&&(m=e.roundNumber(j*d)-.5+"%",n["text-anchor"]="end"),h=f.newTextEl(d+"s",{x:m,y:i},n)}var o=e.roundNumber(j*d)+"%",p=f.newLine({x1:o,x2:o,y1:0,y2:i},k);a.pubSub.subscribeToOverlayChanges(function(a){var b=a.combinedOverlayHeight,c=(i+b)/i;p.setAttribute("transform","scale(1, "+c+")"),g&&h.setAttribute("transform","translate(0, "+b+")")}),b.appendChild(p),g&&b.appendChild(h)};c.createTimeScale=d},{"../../helpers/misc":4,"../../helpers/svg":6}],25:[function(a,b,c){"use strict";function d(a,b){var c=a.diagramHeight,d=h.newG("marker-holder",{transform:"scale(1, 1)"});return b.forEach(function(i,j){var k,l=g.roundNumber(i.startTime/a.unit),m=h.newG("mark-holder type-"+i.name.toLowerCase().replace(/([0-9]+[ ]?ms)|\W/g,"")),n=h.newG("line-holder"),o=h.newG("line-label-holder"),p=h.newTextEl(i.name,{x:l+"%",y:c+25});i.x=l;var q=h.newLine({x1:l+"%",x2:l+"%",y1:0,y2:c}),r=b[j-1];r&&i.x-r.x<2.5&&(p.setAttribute("x",r.x+2.5+"%"),i.x=r.x+2.5);var s=h.newLine({x1:l+"%",x2:i.x+"%",y1:c,y2:c+23});n.appendChild(q),n.appendChild(s),i.duration&&(k=e(a,i),n.appendChild(k)),a.pubSub.subscribeToOverlayChanges(function(a){var b=a.combinedOverlayHeight,d=(c+b)/c;q.setAttribute("transform","scale(1, "+d+")"),o.setAttribute("transform","translate(0, "+b+")"),s.setAttribute("transform","translate(0, "+b+")"),k&&k.setAttribute("transform","translate(0, "+b+")")});var t=!1,u=!1,v=function(){t||(m.parentNode.appendChild(m),t=!0,"function"==typeof window.requestAnimationFrame?window.requestAnimationFrame(function(){return f.addClass(n,"active")}):f.addClass(n,"active"))},w=function(){t=!1,u||f.removeClass(n,"active")},x=function(){u?(t=!1,f.removeClass(n,"active")):t?t=!1:f.addClass(n,"active"),u=!u};p.addEventListener("mouseenter",v),p.addEventListener("mouseleave",w),p.addEventListener("click",x),o.appendChild(p),m.appendChild(h.newTitle(i.name)),m.appendChild(n),m.appendChild(o),d.appendChild(m)}),d}function e(a,b){var c=h.newG("line-mark-holder line-marker-"+g.toCssClass(b.name));return c.appendChild(h.newTitle(b.name.replace(/^startTimer-/,""))),c.appendChild(h.newRect({height:a.diagramHeight,width:(b.duration||1)/a.unit+"%",x:(b.startTime||.001)/a.unit+"%",y:0},"line-mark")),c}Object.defineProperty(c,"__esModule",{value:!0});var f=a("../../helpers/dom"),g=a("../../helpers/misc"),h=a("../../helpers/svg");c.createMarks=d,c.createLineRect=e},{"../../helpers/dom":1,"../../helpers/misc":4,"../../helpers/svg":6}],26:[function(a,b,c){"use strict";function d(a){for(var b=Math.floor(Math.log(a)/Math.LN10)+1,c="",d=0;d<b;d++)c+="0";return c}function e(a,b){var c=a.reduce(function(a,b){var c={x:0,y:0};return Math.max(a,h.getNodeTextWidth(h.newTextEl(b.name,c),!0))},0);return Math.floor(b+c+35)}function f(a,b,c,d){var e=a.durationMs/100,f=(c.length+1)*b.rowHeight,g={diagramHeight:f,overlayManager:void 0,pubSub:new k.default,unit:e,options:b};return g.overlayManager=new j.default(g,d),g}function g(a,b){function c(){return s+r.overlayManager.getCombinedOverlayHeight()}function g(a,c){var d=a.total||1,e=b.rowHeight*c,f=a.start||.001,g={cssClass:i.requestTypeToCssClass(a.responseDetails.requestType),height:b.rowHeight,hideOverlay:b.showAlignmentHelpers?k.onMouseLeavePartial:void 0,label:a.url+" ("+Math.round(a.start)+"ms - "+Math.round(a.end)+"ms | total: "+Math.round(a.total)+"ms)",showOverlay:b.showAlignmentHelpers?k.onMouseEnterPartial:void 0,unit:r.unit,width:d,x:f,y:e},h=function(){r.overlayManager.toggleOverlay(c,e+b.rowHeight,450,a,D)},j=l.createRow(r,c,A,C,g,a,h);D.push(j),v.appendChild(j)}var j,k,p=a.entries.filter(function(a){return"number"==typeof a.start&&"number"==typeof a.total}).sort(function(a,b){return(a.start||0)-(b.start||0)}),q=h.newG("overlays"),r=f(a,b,p,q),s=e(a.marks,r.diagramHeight),t=h.newSvg("water-fall-chart",{height:s}),u=h.newSvg("scale-and-marks-holder",{width:100-b.leftColumnWith+"%",x:b.leftColumnWith+"%"}),v=h.newG("rows-holder");if(b.showAlignmentHelpers){j=h.newG("hover-overlays");var w=m.createAlignmentLines(r.diagramHeight);j.appendChild(w.startline),j.appendChild(w.endline),k=m.makeHoverEvtListeners(w)}u.appendChild(n.createTimeScale(r,a.durationMs)),u.appendChild(o.createMarks(r,a.marks));var x=p[0].responseDetails.icon.width,y=0;if(b.showMimeTypeIcon&&(y+=1),b.showIndicatorIcons){var z=p.map(function(a){return a.responseDetails.indicators.length>0?1:0});y+=Math.max.apply(null,z)}var A=y*x,B=d(p.length),C=h.getNodeTextWidth(h.newTextEl(""+B),!0),D=[];return r.pubSub.subscribeToOverlayChanges(function(){var a=c();t.classList.toggle("closing",a<t.clientHeight),t.style.height=a+"px"}),p.forEach(g),b.showAlignmentHelpers&&u.appendChild(j),t.appendChild(u),t.appendChild(v),t.appendChild(q),t}Object.defineProperty(c,"__esModule",{value:!0});var h=a("../helpers/svg"),i=a("../transformers/styling-converters"),j=a("./details-overlay/overlay-manager"),k=a("./details-overlay/pub-sub"),l=a("./row/svg-row"),m=a("./sub-components/svg-alignment-helper"),n=a("./sub-components/svg-general-components"),o=a("./sub-components/svg-marks");c.createWaterfallSvg=g},{"../helpers/svg":6,"../transformers/styling-converters":15,"./details-overlay/overlay-manager":17,"./details-overlay/pub-sub":18,"./row/svg-row":22,"./sub-components/svg-alignment-helper":23,"./sub-components/svg-general-components":24,"./sub-components/svg-marks":25}]},{},[8])(8)}); | ||
if(a<0||a>=this.getPageCount())throw new Error("Page does not exist - Invalid pageIndex selected");this.selectedPageIndex=a;var c=this.doc.pages[this.selectedPageIndex];this.onPageUpdateCbs.forEach(function(a){a(b.selectedPageIndex,c)})}},a.prototype.onPageUpdate=function(a){if(this.getPageCount()>1)return this.onPageUpdateCbs.push(a)},a.prototype.initPagingSelectBox=function(a){var b=this,c=this;if(this.getPageCount()<=1)return void(a.style.display="none");d.removeChildren(a),this.doc.pages.forEach(function(c,d){var e=new Option(c.title,d.toString(),!1,d===b.selectedPageIndex);a.add(e)}),a.style.display="block",a.addEventListener("change",function(a){var b=parseInt(a.target.value,10);c.setSelectedPageIndex(b)})},a}();c.default=e},{"../helpers/dom":1}],10:[function(a,b,c){"use strict";function d(a,b,c){return[["Request Number","#"+c],["Started",new Date(a.startedDateTime).toLocaleString()+(b>0?" ("+j.formatMilliseconds(b)+" after page request started)":"")],["Duration",j.formatMilliseconds(a.time)],["Error/Status Code",a.response.status+" "+a.response.statusText],["Server IPAddress",a.serverIPAddress],["Connection",a.connection],["Browser Priority",a._priority||a._initialPriority],["Was pushed",j.parseAndFormat(a._was_pushed,j.parsePositive,function(){return"yes"})],["Initiator (Loaded by)",a._initiator],["Initiator Line",a._initiator_line],["Host",i.getHeader(a.request.headers,"Host")],["IP",a._ip_addr],["Client Port",j.parseAndFormat(a._client_port,j.parsePositive)],["Expires",a._expires],["Cache Time",j.parseAndFormat(a._cache_time,j.parsePositive,j.formatSeconds)],["CDN Provider",a._cdn_provider],k("ObjectSize",a._objectSize),k("Bytes In (downloaded)",a._bytesIn),k("Bytes Out (uploaded)",a._bytesOut),k("JPEG Scan Count",a._jpeg_scan_count),k("Gzip Total",a._gzip_total),k("Gzip Save",a._gzip_save),k("Minify Total",a._minify_total),k("Minify Save",a._minify_save),k("Image Total",a._image_total),k("Image Save",a._image_save)].filter(function(a){return void 0!==a[1]&&""!==a[1]})}function e(a){var b=a.request,c=function(a){return[a,i.getHeader(b.headers,a)]};return[["Method",b.method],["HTTP Version",b.httpVersion],k("Bytes Out (uploaded)",a._bytesOut),k("Headers Size",b.headersSize),k("Body Size",b.bodySize),["Comment",j.parseAndFormat(b.comment,j.parseNonEmpty)],c("User-Agent"),c("Host"),c("Connection"),c("Accept"),c("Accept-Encoding"),c("Expect"),c("Forwarded"),c("If-Modified-Since"),c("If-Range"),c("If-Unmodified-Since"),l("Querystring parameters count",b.queryString.length),l("Cookies count",b.cookies.length)].filter(function(a){return void 0!==a[1]&&""!==a[1]})}function f(a){var b=a.response,c=b.content,d=b.headers,e=function(a,b){return void 0===b&&(b=a),[a,i.getHeader(d,b)]},f=function(a){var b=i.getHeader(d,a);return[a,j.parseAndFormat(b,j.parseDate,j.formatDateLocalized)]},g=i.getHeader(d,"Content-Length"),h=void 0;c.size!==-1&&g!==c.size.toString()&&(h=c.size);var l=i.getHeader(d,"Content-Type");return a._contentType&&a._contentType!==l&&(l=l+" | "+a._contentType),[["Status",b.status+" "+b.statusText],["HTTP Version",b.httpVersion],k("Bytes In (downloaded)",a._bytesIn),k("Headers Size",b.headersSize),k("Body Size",b.bodySize),["Content-Type",l],e("Cache-Control"),e("Content-Encoding"),f("Expires"),f("Last-Modified"),e("Pragma"),k("Content-Length",g),k("Content Size",h),k("Content Compression",c.compression),e("Connection"),e("ETag"),e("Accept-Patch"),["Age",j.parseAndFormat(i.getHeader(d,"Age"),j.parseNonNegative,j.formatSeconds)],e("Allow"),e("Content-Disposition"),e("Location"),e("Strict-Transport-Security"),e("Trailer (for chunked transfer coding)","Trailer"),e("Transfer-Encoding"),e("Upgrade"),e("Vary"),e("Timing-Allow-Origin"),["Redirect URL",j.parseAndFormat(b.redirectURL,j.parseNonEmpty)],["Comment",j.parseAndFormat(b.comment,j.parseNonEmpty)]]}function g(a,b,c){var d=a.timings,e=function(a){return j.parseAndFormat(a,j.parseNonNegative,j.formatMilliseconds)},f="number"!=typeof b||"number"!=typeof c?void 0:c-b;return[["Total",j.formatMilliseconds(f)],["Blocked",e(d.blocked)],["DNS",e(d.dns)],["Connect",e(d.connect)],["SSL (TLS)",e(d.ssl)],["Send",j.formatMilliseconds(d.send)],["Wait",j.formatMilliseconds(d.wait)],["Receive",j.formatMilliseconds(d.receive)]]}function h(a,b,c,h){var i=a.request.headers,j=a.response.headers,k=function(a){return[a.name,a.value]};return{general:d(a,c,b),request:e(a),requestHeaders:i.map(k),response:f(a),responseHeaders:j.map(k),timings:g(a,c,h)}}Object.defineProperty(c,"__esModule",{value:!0});var i=a("../helpers/har"),j=a("../helpers/parse"),k=function(a,b){return[a,j.parseAndFormat(b,j.parsePositive,j.formatBytes)]},l=function(a,b){return[a,j.parseAndFormat(b,j.parsePositive)]};c.getKeys=h},{"../helpers/har":2,"../helpers/parse":5}],11:[function(a,b,c){"use strict";function d(a,b){if(a.response.bodySize<1e3)return!1;if(l.contains(["html","css","javascript","svg","plain"],b))return!0;var c=a.response.content.mimeType,d=["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!(!l.contains(["text"],c.split("/")[0])&&!l.contains(d,c.split(";")[0]))}function e(a){if("get"!==a.request.method.toLowerCase())return!1;if(204===a.response.status||!l.isInStatusCodeRange(a.response.status,200,299))return!1;var b=a.response.headers;return!(k.hasHeader(b,"Cache-Control")||k.hasHeader(b,"Expires"))}function f(a,b){var c=a.response.headers;return!k.hasHeader(c,"Content-Encoding")&&d(a,b)}function g(a){return 0===a.request.url.indexOf("https://")}function h(a){return 1===function(a){return"string"==typeof a?parseInt(a,10):a}(a._was_pushed)}function i(a){var b=a.filter(function(a){return!a.response.redirectURL})[0];return void 0===b?a.length>0&&g(a[0]):g(b)}function j(a,b,c){var d=[];return h(a)&&d.push({description:"Response was pushed by the server using HTTP2 push.",icon:"push",id:"push",title:"Response was pushed by the server",type:"info"}),b&&!g(a)&&d.push({description:"Insecure request, it should use HTTPS.",id:"noTls",title:"Insecure Connection",type:"error"}),e(a)&&d.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"}),f(a,c)&&d.push({description:"The response is not compressed. Consider enabling HTTP compression on your server.",id:"noGzip",title:"no gzip",type:"error"}),!a.response.content.mimeType&&l.isInStatusCodeRange(a.response.status,200,299)&&204!==a.response.status&&d.push({description:"Response doesn't contain a 'Content-Type' header.",id:"warning",title:"No MIME Type defined",type:"warning"}),d}Object.defineProperty(c,"__esModule",{value:!0});var k=a("../helpers/har"),l=a("../helpers/misc");c.documentIsSecure=i,c.collectIndicators=j},{"../helpers/har":2,"../helpers/misc":4}],12:[function(a,b,c){"use strict";function d(a,b,c,d,f,l){var o=[],p=m.getKeys(a,b,d,f);return o.push(g(p.general,l)),o.push(h(p.request,p.requestHeaders)),o.push(i(p.response,p.responseHeaders)),o.push(e("Timings",n.makeDefinitionList(p.timings,!0))),o.push(j(a)),"image"===c&&o.push(k(a)),o.filter(function(a){return void 0!==a})}function e(a,b,c){return void 0===c&&(c=""),{title:a,content:b,tabClass:c}}function f(a,b,c){return void 0===c&&(c=""),{title:a,renderContent:b,tabClass:c}}function g(a,b){var c=n.makeDefinitionList(a);if(0===b.length)return e("General",c);var d="<h2>General</h2>\n <dl>"+c+"<dl>";c="";var f=b.filter(function(a){return"error"===a.type}).map(function(a){return[a.title,a.description]}),g=b.filter(function(a){return"warning"===a.type}).map(function(a){return[a.title,a.description]}),h=b.filter(function(a){return"error"!==a.type&&"warning"!==a.type}).map(function(a){return[a.title,a.description]});f.length>0&&(c+='<h2 class="no-boder">Error'+(f.length>1?"s":"")+"</h2>\n <dl>"+n.makeDefinitionList(f)+"</dl>"),g.length>0&&(c+='<h2 class="no-boder">Warning'+(g.length>1?"s":"")+"</h2>\n <dl>"+n.makeDefinitionList(g)+"</dl>"),h.length>0&&(c+='<h2 class="no-boder">Info</h2>\n <dl>'+n.makeDefinitionList(h)+"</dl>"),e("General",c+d)}function h(a,b){return e("Request","<dl>\n "+n.makeDefinitionList(a)+"\n </dl>\n <h2>All Request Headers</h2>\n <dl>\n "+n.makeDefinitionList(b)+"\n </dl>")}function i(a,b){return e("Response","<dl>\n "+n.makeDefinitionList(a)+"\n </dl>\n <h2>All Response Headers</h2>\n <dl>\n "+n.makeDefinitionList(b)+"\n </dl>")}function j(a){return f("Raw Data",function(){return"<pre><code>"+l.escapeHtml(JSON.stringify(a,null,2))+"</code></pre>"},"raw-data")}function k(a){return f("Preview",function(b){return'<img class="preview" style="max-height:'+(b-100)+'px"\n data-src="'+a.request.url+'" />'})}Object.defineProperty(c,"__esModule",{value:!0});var l=a("../helpers/parse"),m=a("./extract-details-keys"),n=a("./helpers");c.makeTabs=d},{"../helpers/parse":5,"./extract-details-keys":10,"./helpers":14}],13:[function(a,b,c){"use strict";function d(a,b){var c=this,d=void 0!==a.log?a.log:a;return{pages:l(d).map(function(a,e){return c.transformPage(d,e,b)})}}function e(a,b,c,d){c=Math.round(c);var e=Math.round(h.toInt(a._all_end)||c+a.time),f=k.mimeToRequestType(a.response.content.mimeType),g=i.collectIndicators(a,d,f),l=q(a,g);return k.createWaterfallEntry(a.request.url,c,e,o(c,a),l,j.makeTabs(a,b+1,f,c,e,g))}function f(a,b,c){void 0===b&&(b=0);var d=void 0!==a.log?a.log:a,f=l(d),g=f[b],h=new Date(g.startedDateTime).getTime(),j=g.pageTimings,k=0,n=i.documentIsSecure(d.entries),o=d.entries.filter(function(a){return 0!==a.request.url.indexOf("data:")&&(1===f.length&&""===g.id||a.pageref===g.id)}).map(function(a,b){var c=new Date(a.startedDateTime).getTime()-h;return k=Math.max(k,c+a.time),e(a,b,c,n)}),p=m(j,g,c);return k+=100,{docIsTLS:n,durationMs:k,entries:o,marks:p,title:g.title}}Object.defineProperty(c,"__esModule",{value:!0});var g=a("../helpers/misc"),h=a("../helpers/parse"),i=a("./har-heuristics"),j=a("./har-tabs"),k=a("./helpers");c.transformDoc=d;var l=function(a){return a.pages&&a.pages.length>0?a.pages:[{id:"",pageTimings:{},startedDateTime:a.entries.reduce(function(a,b){var c=Date.parse(b.startedDateTime);return Date.parse(a)<c?a:b.startedDateTime},a.entries[0].startedDateTime),title:"n/a"}]};c.transformPage=f;var m=function(a,b,c){var d=function(a,b){return a.startTime-b.startTime},e=Object.keys(a).filter(function(b){return"number"==typeof a[b]&&a[b]>=0}).map(function(b){return{name:b.replace(/^[_]/,"")+" ("+g.roundNumber(a[b],0)+" ms)",startTime:a[b]}});return c.showUserTiming?n(b,c).concat(e).sort(d):e.sort(d)},n=function(a,b){var c=b.showUserTimingEndMarker?function(a){return 0===a.indexOf("_userTime.")}:function(a){return 0===a.indexOf("_userTime.")&&0!==a.indexOf("_userTime.endTimer-")},d=c;if(Array.isArray(b.showUserTiming)){var e=b.showUserTiming;d=function(a){return c(a)&&e.indexOf(a.replace(/^_userTime\./,""))>=0}}var f=/^_userTime\.((?:startTimer-)?(.+))$/,g=function(c){var d,e,g;return h=f.exec(c),e=h[1],d=h[2],e!==d&&a["_userTime.endTimer-"+d]?(g=a["_userTime.endTimer-"+d]-a[c],{name:(b.showUserTimingEndMarker?e:d)+" ("+a[c]+" - "+(a[c]+g)+" ms)",duration:g,startTime:a[c]}):{name:e,startTime:a[c]};var h};return Object.keys(a).filter(d).map(g)},o=function(a,b){var c=b.timings;return["blocked","dns","connect","send","wait","receive"].reduce(function(d,e){var f=p(e,b,d,a);if(f.end&&f.start>=f.end)return d;if("connect"===e&&c.ssl&&c.ssl!==-1){var g=parseInt(b._ssl_start,10)||f.start,h=parseInt(b._ssl_end,10)||f.start+c.ssl,i=parseInt(b._ssl_start,10)?f.start:h;return d.concat([k.createWaterfallEntryTiming("ssl",Math.round(g),Math.round(h))]).concat([k.createWaterfallEntryTiming(e,Math.round(i),Math.round(f.end))])}return d.concat([k.createWaterfallEntryTiming(e,Math.round(f.start),Math.round(f.end))])},[])},p=function(a,b,c,d){var e;switch(a){case"wait":e="ttfb";break;case"receive":e="download";break;default:e=a}var f=parseInt(b["_"+e+"_start"],10),g=parseInt(b["_"+e+"_end"],10),h=isNaN(f)?c.length>0?c[c.length-1].end:d:f,i=isNaN(g)?h+b.timings[a]:g;return{end:Math.round(i),start:Math.round(h)}},q=function(a,b){var c=k.mimeToRequestType(a.response.content.mimeType);return{icon:k.makeMimeTypeIcon(a.response.status,a.response.statusText,c,a.response.redirectURL),rowClass:k.makeRowCssClasses(a.response.status),indicators:b,requestType:c,statusCode:a.response.status}}},{"../helpers/misc":4,"../helpers/parse":5,"./har-heuristics":11,"./har-tabs":12,"./helpers":14}],14:[function(a,b,c){"use strict";function d(a,b){void 0===b&&(b=!1);var c=function(a){return b?'class="'+(j.toCssClass(a)||"no-colour")+'"':""};return a.filter(function(a){return void 0!==a[1]}).map(function(a){return"\n <dt "+c(a[0])+">"+a[0]+"</dt>\n <dd>"+k.escapeHtml(a[1])+"</dd>\n "}).join("")}function e(a){if(void 0===a)return"other";var b=a.split("/"),c=b[1];switch(void 0!==c&&(c=c.indexOf(";")>-1?c.split(";")[0]:c),b[0]){case"image":return"svg+xml"===c?"svg":"image";case"font":return"font";case"video":return"video";case"audio":return"audio"}switch(c){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"}}function f(a,b,c,d,e,f){return void 0===d&&(d=[]),{total:"number"!=typeof b||"number"!=typeof c?void 0:c-b,url:a,start:b,end:c,segments:d,responseDetails:e,tabs:f}}function g(a,b,c){return{total:"number"!=typeof b||"number"!=typeof c?void 0:c-b,type:a,start:b,end:c}}function h(a){var b=["row-item"];return j.isInStatusCodeRange(a,500,599)?b.push("status5xx"):j.isInStatusCodeRange(a,400,499)?b.push("status4xx"):304!==a&&j.isInStatusCodeRange(a,300,399)&&b.push("status3xx"),b.join(" ")}function i(a,b,c,d){if(void 0===d&&(d=""),d){var e=encodeURI(d.split("?")[0]||"");return l.makeIcon("err3xx",a+" response status: Redirect to "+e+"...")}return j.isInStatusCodeRange(a,400,499)?l.makeIcon("err4xx",a+" response status: "+b):j.isInStatusCodeRange(a,500,599)?l.makeIcon("err5xx",a+" response status: "+b):204===a?l.makeIcon("plain","No content"):l.makeIcon(c,c)}Object.defineProperty(c,"__esModule",{value:!0});var j=a("../helpers/misc"),k=a("../helpers/parse"),l=a("../waterfall/row/svg-indicators");c.makeDefinitionList=d,c.mimeToRequestType=e,c.createWaterfallEntry=f,c.createWaterfallEntryTiming=g,c.makeRowCssClasses=h,c.makeMimeTypeIcon=i},{"../helpers/misc":4,"../helpers/parse":5,"../waterfall/row/svg-indicators":20}],15:[function(a,b,c){"use strict";function d(a){return"block-"+a}function e(a){return"block-"+a}Object.defineProperty(c,"__esModule",{value:!0}),c.requestTypeToCssClass=d,c.timingTypeToCssClass=e},{}],16:[function(a,b,c){"use strict";function d(a,b,c){var d=document.createElement("html"),e=document.createElement("body");e.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),d.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/xmlns/");var f=c.tabs.map(function(a){return'<li><button class="tab-button">'+a.title+"</button></li>"}).join("\n"),g=c.tabs.map(function(a){var c="tab";a.tabClass&&(c+=" "+a.tabClass);var d="";if(a.content)d=a.content;else{if("function"!=typeof a.renderContent)throw TypeError("Invalid Details Tab");d=a.renderContent(b),a.content=d}return'<div class="tab '+c+'">'+d+"</div>"}).join("\n");return e.innerHTML='\n <div class="wrapper">\n <header class="type-'+c.responseDetails.requestType+'">\n <h3><strong>#'+a+'</strong> <a href="'+c.url+'">'+c.url+'</a></h3>\n <nav class="tab-nav">\n <ul>\n '+f+"\n </ul>\n </nav>\n </header>\n "+g+"\n </div>\n ",d.appendChild(e),d}Object.defineProperty(c,"__esModule",{value:!0}),c.createDetailsBody=d},{}],17:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d=a("../../helpers/dom"),e=a("./svg-details-overlay"),f=function(){function a(a,b){this.context=a,this.overlayHolder=b,this.openOverlays=[]}return a.prototype.getCombinedOverlayHeight=function(){return this.openOverlays.reduce(function(a,b){return a+b.height},0)},a.prototype.openOverlay=function(a,b,c,d,e){if(!this.openOverlays.some(function(b){return b.index===a})){var f=this;this.openOverlays.push({defaultY:b,entry:d,index:a,onClose:function(){f.closeOverlay(a,c,e)},openTabIndex:0}),this.renderOverlays(c),this.context.pubSub.publishToOverlayChanges({combinedOverlayHeight:f.getCombinedOverlayHeight(),openOverlays:f.openOverlays,type:"open"}),this.realignBars(e)}},a.prototype.toggleOverlay=function(a,b,c,d,e){this.openOverlays.some(function(b){return b.index===a})?this.closeOverlay(a,c,e):this.openOverlay(a,b,c,d,e)},a.prototype.closeOverlay=function(a,b,c){var d=this;this.openOverlays.splice(this.openOverlays.reduce(function(b,c,d){return c.index===a?d:b},-1),1),this.renderOverlays(b),this.context.pubSub.publishToOverlayChanges({combinedOverlayHeight:d.getCombinedOverlayHeight(),openOverlays:d.openOverlays,type:"closed"}),this.realignBars(c)},a.prototype.realignBars=function(a){var b=this;a.forEach(function(a,c){var d=b.getOverlayOffset(c);a.setAttribute("transform","translate(0, "+d+")")})},a.prototype.getOverlayOffset=function(a){return this.openOverlays.reduce(function(b,c){return c.index<a?b+c.height:b},0)},a.prototype.renderOverlays=function(a){var b=this;d.removeChildren(this.overlayHolder);var c=0;this.openOverlays.sort(function(a,b){return a.index>b.index?1:-1}).forEach(function(d){var f=d.defaultY+c,g=e.createRowInfoOverlay(d,f,a),h=g.querySelector("img.preview");h&&!h.src&&h.setAttribute("src",h.attributes.getNamedItem("data-src").value),b.overlayHolder.appendChild(g);var i=g.getBoundingClientRect().height;return c+=i,d.actualY=f,d.height=i,d})},a}();c.default=f},{"../../helpers/dom":1,"./svg-details-overlay":19}],18:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d=function(){function a(){this.subscribers=[]}return a.prototype.subscribeToOverlayChanges=function(a){this.subscribers.push(a)},a.prototype.publishToOverlayChanges=function(a){this.subscribers.forEach(function(b){return b(a)})},a}();c.default=d},{}],19:[function(a,b,c){"use strict";function d(a,b){Array.prototype.forEach.call(a,b)}function e(a){var b=h.newA("info-overlay-close-btn");return b.appendChild(h.newRect({height:23,width:23,x:"100%",y:a})),b.appendChild(h.newTextEl("✕",{dx:7,dy:16,x:"100%",y:a})),b.appendChild(h.newTitle("Close Overlay")),b}function f(a,b){var c=h.newG("info-overlay-holder"),d=h.newRect({height:b,rx:2,ry:2,width:"100%",x:"0",y:a},"info-overlay");return c.appendChild(d),c}function g(a,b,c){var g=a.index+1,j=h.newG("outer-info-overlay-holder"),k=f(b,c),l=h.newForeignObject({height:c,width:"100%",x:"0",y:b}),m=e(b);m.addEventListener("click",function(){return a.onClose(a.index)});var n=i.createDetailsBody(g,c,a.entry),o=n.getElementsByClassName("tab-button"),p=n.getElementsByClassName("tab"),q=function(b){a.openTabIndex=b,d(p,function(a,c){a.style.display=b===c?"block":"none",o.item(c).classList.toggle("active",b===c)})};return d(o,function(a,b){a.addEventListener("click",function(){return q(b)})}),q(a.openTabIndex),l.appendChild(n),k.appendChild(l),k.appendChild(m),j.appendChild(k),j}Object.defineProperty(c,"__esModule",{value:!0});var h=a("../../helpers/svg"),i=a("./html-details-body");c.forEach=d,c.createRowInfoOverlay=g},{"../../helpers/svg":6,"./html-details-body":16}],20:[function(a,b,c){"use strict";function d(a,b){return{type:a,title:b,width:20}}function e(a){var b=a.responseDetails.indicators;if(0===b.length)return[];var c=[],e="",f=b.filter(function(a){return"error"===a.type}),g=b.filter(function(a){return"warning"===a.type}),h=b.filter(function(a){return"error"!==a.type&&"warning"!==a.type});return f.length>0&&(c.push("Error"+(f.length>1?"s":"")+":\n"+f.map(function(a){return a.title}).join("\n")),e="error"),g.length>0&&(c.push("Warning"+(g.length>1?"s":"")+":\n"+g.map(function(a){return a.title}).join("\n")),e=e||"warning"),h.length>0&&(c.push("Info:\n"+h.map(function(a){return a.title}).join("\n")),e=e||1!==h.length?e||"info":h[0].icon||h[0].type),[d(e,c.join("\n"))]}Object.defineProperty(c,"__esModule",{value:!0}),c.makeIcon=d,c.getIndicatorIcons=e},{}],21:[function(a,b,c){"use strict";function d(a,b){var c=a.height-1,d=q.newRect({height:c,width:p.roundNumber(a.width/a.unit)+"%",x:p.roundNumber(a.x/a.unit)+"%",y:a.y},b);return a.label&&d.appendChild(q.newTitle(a.label)),a.showOverlay&&a.hideOverlay&&(d.addEventListener("mouseenter",a.showOverlay(a)),d.addEventListener("mouseleave",a.hideOverlay(a))),d}function e(a,b){return{cssClass:r.timingTypeToCssClass(a.type),height:b.height-6,hideOverlay:b.hideOverlay,label:a.type+" ("+Math.round(a.start)+"ms - "+Math.round(a.end)+"ms | total: "+Math.round(a.total)+"ms)",showOverlay:b.showOverlay,unit:b.unit,width:a.total,x:a.start||.001,y:b.y}}function f(a,b,c){var d=a.y+a.height/1.5,e=Math.round(b)+" ms",f=(a.x+a.width)/a.unit+1,g=q.newTextEl(e,{x:p.roundNumber(f)+"%",y:d});return f+8*e.length/500*100>100&&(f=c/a.unit-1,g=q.newTextEl(e,{x:p.roundNumber(f)+"%",y:d},{textAnchor:"end"})),g}function g(a,b,c){var g=d(a,"time-block "+a.cssClass),h=q.newG("rect-holder"),i=a.x;return h.appendChild(g),b&&b.length>0&&(b.forEach(function(b){if(b.total>0&&"number"==typeof b.start){var c=e(b,a),f=d(c,"segment "+c.cssClass);i=Math.min(i,c.x),h.appendChild(f)}}),h.appendChild(f(a,c,i))),h}function h(a,b,c,d,e){return b+=Math.round(d/2)+5,a+=e,q.newTextEl(c,{x:a,y:b},{"text-anchor":"end"})}function i(a,b,c,d){var e=k(a,b,c,d);return e.style.clipPath="url(#titleClipPath)",e}function j(a,b,c,d){var e=k(a,b,c,d),f=q.newG("full-label");return f.appendChild(q.newRect({height:d-4,rx:5,ry:5,width:q.getNodeTextWidth(e),x:a-3,y:b+3},"label-full-bg")),f.appendChild(e),f}function k(a,b,c,d){var e=p.resourceUrlFormatter(c,125);b=b+Math.round(d/2)+5;var f=q.newTextEl(e,{x:a,y:b});return f.appendChild(q.newTitle(c)),f.style.opacity=c.match(/js.map$/)?"0.5":"1",f}function l(a,b,c,d){var e=d.getElementsByTagName("rect")[0],f=d.getElementsByTagName("text")[0];d.style.display="none",d.style.visibility="hidden",a.appendChild(b),a.appendChild(c),a.appendChild(d),a.addEventListener("mouseenter",function(){d.style.display="block",c.style.display="none",d.style.visibility="visible",e.style.width=(f.clientWidth+10).toString()}),a.addEventListener("mouseleave",function(){c.style.display="block",d.style.display="none",d.style.visibility="hidden"})}function m(a,b,c){var d=c?"even":"odd";return q.newRect({height:b,width:"100%",x:0,y:a},d)}function n(a,b,c){var d=q.newG("row row-fixed");return d.appendChild(q.newRect({height:b,width:"100%",x:"0",y:a},"",{opacity:0})),d.addEventListener("click",c),d}function o(a,b,c){var d=q.newG("row row-flex");return d.appendChild(q.newRect({height:b,width:"100%",x:"0",y:a},"",{opacity:0})),d.addEventListener("click",c),d}Object.defineProperty(c,"__esModule",{value:!0});var p=a("../../helpers/misc"),q=a("../../helpers/svg"),r=a("../../transformers/styling-converters");c.createRect=g,c.createRequestNumberLabel=h,c.createRequestLabelClipped=i,c.createRequestLabelFull=j,c.appendRequestLabels=l,c.createBgStripe=m,c.createNameRowBg=n,c.createRowBg=o},{"../../helpers/misc":4,"../../helpers/svg":6,"../../transformers/styling-converters":15}],22:[function(a,b,c){"use strict";function d(a,b,c,d,l,m,n){var o=l.y,p=l.height,q=a.options.leftColumnWith,r=g.newG(m.responseDetails.rowClass),s=g.newSvg("left-fixed-holder",{width:q+"%",x:"0"}),t=g.newSvg("flex-scale-waterfall",{width:100-q+"%",x:q+"%"}),u=i.createRect(l,m.segments,m.total),v=i.createNameRowBg(o,p,n),w=i.createRowBg(o,p,n),x=i.createBgStripe(o,p,b%2==0),y=k+c;if(a.options.showMimeTypeIcon){var z=m.responseDetails.icon;y-=z.width,v.appendChild(e[z.type](y,o+3,z.title))}a.options.showIndicatorIcons&&h.getIndicatorIcons(m).forEach(function(a){y-=a.width,v.appendChild(e[a.type](y,o+3,a.title))}),y=k+c;var A=""+(b+1),B=i.createRequestNumberLabel(y,o,A,p,d);y+=d+4;var C=i.createRequestLabelClipped(y,o,f.resourceUrlFormatter(m.url,40),p),D=i.createRequestLabelFull(y,o,m.url,p);return w.appendChild(u),i.appendRequestLabels(v,B,C,D),t.appendChild(w),s.appendChild(j.cloneNode(!0)),s.appendChild(v),r.appendChild(x),r.appendChild(t),r.appendChild(s),r}Object.defineProperty(c,"__esModule",{value:!0});var e=a("../../helpers/icons"),f=a("../../helpers/misc"),g=a("../../helpers/svg"),h=a("./svg-indicators"),i=a("./svg-row-subcomponents"),j=g.newClipPath("titleClipPath");j.appendChild(g.newRect({height:"100%",width:"100%"}));var k=3;c.createRow=d},{"../../helpers/icons":3,"../../helpers/misc":4,"../../helpers/svg":6,"./svg-indicators":20,"./svg-row-subcomponents":21}],23:[function(a,b,c){"use strict";function d(a){return{endline:g.newLine({x1:"0",x2:"0",y1:"0",y2:a},"line-end"),startline:g.newLine({x1:"0",x2:"0",y1:"0",y2:a},"line-start")}}function e(a){return{onMouseEnterPartial:function(){return function(b){var c=b.target;f.addClass(c,"active");var d=c.x.baseVal.valueInSpecifiedUnits+c.width.baseVal.valueInSpecifiedUnits+"%",e=c.x.baseVal.valueInSpecifiedUnits+"%";a.endline.x1.baseVal.valueAsString=d,a.endline.x2.baseVal.valueAsString=d,a.startline.x1.baseVal.valueAsString=e,a.startline.x2.baseVal.valueAsString=e,f.addClass(a.endline,"active"),f.addClass(a.startline,"active")}},onMouseLeavePartial:function(){return function(b){var c=b.target;f.removeClass(c,"active"),f.removeClass(a.endline,"active"),f.removeClass(a.startline,"active")}}}}Object.defineProperty(c,"__esModule",{value:!0});var f=a("../../helpers/dom"),g=a("../../helpers/svg");c.createAlignmentLines=d,c.makeHoverEvtListeners=e},{"../../helpers/dom":1,"../../helpers/svg":6}],24:[function(a,b,c){"use strict";function d(a,b){for(var c=f.newG("time-scale full-width"),d=200*Math.ceil(b/1e4),e=1e3/d,h=b/1e3,i=b/d,j=0;j<=i;j++){g(a,c,h,j/e,j%e<1e-9)}return c}Object.defineProperty(c,"__esModule",{value:!0});var e=a("../../helpers/misc"),f=a("../../helpers/svg"),g=function(a,b,c,d,g){void 0===g&&(g=!1);var h,i=a.diagramHeight,j=100/c,k="sub-second-line";if(g){var l=d>c-.2;k="second-line";var m=e.roundNumber(j*d)+.5+"%",n={};l&&(m=e.roundNumber(j*d)-.5+"%",n["text-anchor"]="end"),h=f.newTextEl(d+"s",{x:m,y:i},n)}var o=e.roundNumber(j*d)+"%",p=f.newLine({x1:o,x2:o,y1:0,y2:i},k);a.pubSub.subscribeToOverlayChanges(function(a){var b=a.combinedOverlayHeight,c=(i+b)/i;p.setAttribute("transform","scale(1, "+c+")"),g&&h.setAttribute("transform","translate(0, "+b+")")}),b.appendChild(p),g&&b.appendChild(h)};c.createTimeScale=d},{"../../helpers/misc":4,"../../helpers/svg":6}],25:[function(a,b,c){"use strict";function d(a,b){var c=a.diagramHeight,d=h.newG("marker-holder",{transform:"scale(1, 1)"});return b.forEach(function(i,j){var k=g.roundNumber(i.startTime/a.unit),l=h.newG("mark-holder type-"+i.name.toLowerCase().replace(/([0-9]+[ ]?ms)|\W/g,"")),m=h.newG("line-holder"),n=h.newG("line-label-holder"),o=h.newTextEl(i.name,{x:k+"%",y:c+25});o.setAttribute("writing-mode","tb");var p;i.x=k;var q=h.newLine({x1:k+"%",x2:k+"%",y1:0,y2:c}),r=b[j-1];r&&i.x-r.x<2.5&&(o.setAttribute("x",r.x+2.5+"%"),i.x=r.x+2.5);var s=h.newLine({x1:k+"%",x2:i.x+"%",y1:c,y2:c+23});m.appendChild(q),m.appendChild(s),i.duration&&(p=e(a,i),m.appendChild(p)),a.pubSub.subscribeToOverlayChanges(function(a){var b=a.combinedOverlayHeight,d=(c+b)/c;q.setAttribute("transform","scale(1, "+d+")"),n.setAttribute("transform","translate(0, "+b+")"),s.setAttribute("transform","translate(0, "+b+")"),p&&p.setAttribute("transform","translate(0, "+b+")")});var t=!1,u=!1,v=function(){t||(l.parentNode.appendChild(l),t=!0,"function"==typeof window.requestAnimationFrame?window.requestAnimationFrame(function(){return f.addClass(m,"active")}):f.addClass(m,"active"))},w=function(){t=!1,u||f.removeClass(m,"active")},x=function(){u?(t=!1,f.removeClass(m,"active")):t?t=!1:f.addClass(m,"active"),u=!u};o.addEventListener("mouseenter",v),o.addEventListener("mouseleave",w),o.addEventListener("click",x),n.appendChild(o),l.appendChild(h.newTitle(i.name)),l.appendChild(m),l.appendChild(n),d.appendChild(l)}),d}function e(a,b){var c=h.newG("line-mark-holder line-marker-"+g.toCssClass(b.name));return c.appendChild(h.newTitle(b.name.replace(/^startTimer-/,""))),c.appendChild(h.newRect({height:a.diagramHeight,width:(b.duration||1)/a.unit+"%",x:(b.startTime||.001)/a.unit+"%",y:0},"line-mark")),c}Object.defineProperty(c,"__esModule",{value:!0});var f=a("../../helpers/dom"),g=a("../../helpers/misc"),h=a("../../helpers/svg");c.createMarks=d,c.createLineRect=e},{"../../helpers/dom":1,"../../helpers/misc":4,"../../helpers/svg":6}],26:[function(a,b,c){"use strict";function d(a){for(var b=Math.floor(Math.log(a)/Math.LN10)+1,c="",d=0;d<b;d++)c+="0";return c}function e(a,b){var c=a.reduce(function(a,b){var c={x:0,y:0};return Math.max(a,h.getNodeTextWidth(h.newTextEl(b.name,c),!0))},0);return Math.floor(b+c+35)}function f(a,b,c,d){var e=a.durationMs/100,f=(c.length+1)*b.rowHeight,g={diagramHeight:f,overlayManager:void 0,pubSub:new k.default,unit:e,options:b};return g.overlayManager=new j.default(g,d),g}function g(a,b){function c(){return s+r.overlayManager.getCombinedOverlayHeight()}function g(a,c){var d=a.total||1,e=b.rowHeight*c,f=a.start||.001,g={cssClass:i.requestTypeToCssClass(a.responseDetails.requestType),height:b.rowHeight,hideOverlay:b.showAlignmentHelpers?k.onMouseLeavePartial:void 0,label:a.url+" ("+Math.round(a.start)+"ms - "+Math.round(a.end)+"ms | total: "+Math.round(a.total)+"ms)",showOverlay:b.showAlignmentHelpers?k.onMouseEnterPartial:void 0,unit:r.unit,width:d,x:f,y:e},h=function(){r.overlayManager.toggleOverlay(c,e+b.rowHeight,450,a,D)},j=l.createRow(r,c,A,C,g,a,h);D.push(j),v.appendChild(j)}var j,k,p=a.entries.filter(function(a){return"number"==typeof a.start&&"number"==typeof a.total}).sort(function(a,b){return(a.start||0)-(b.start||0)}),q=h.newG("overlays"),r=f(a,b,p,q),s=e(a.marks,r.diagramHeight),t=h.newSvg("water-fall-chart",{height:s}),u=h.newSvg("scale-and-marks-holder",{width:100-b.leftColumnWith+"%",x:b.leftColumnWith+"%"}),v=h.newG("rows-holder");if(b.showAlignmentHelpers){j=h.newG("hover-overlays");var w=m.createAlignmentLines(r.diagramHeight);j.appendChild(w.startline),j.appendChild(w.endline),k=m.makeHoverEvtListeners(w)}u.appendChild(n.createTimeScale(r,a.durationMs)),u.appendChild(o.createMarks(r,a.marks));var x=p[0].responseDetails.icon.width,y=0;if(b.showMimeTypeIcon&&(y+=1),b.showIndicatorIcons){var z=p.map(function(a){return a.responseDetails.indicators.length>0?1:0});y+=Math.max.apply(null,z)}var A=y*x,B=d(p.length),C=h.getNodeTextWidth(h.newTextEl(""+B),!0),D=[];return r.pubSub.subscribeToOverlayChanges(function(){var a=c();t.classList.toggle("closing",a<t.clientHeight),t.style.height=a+"px"}),p.forEach(g),b.showAlignmentHelpers&&u.appendChild(j),t.appendChild(u),t.appendChild(v),t.appendChild(q),t}Object.defineProperty(c,"__esModule",{value:!0});var h=a("../helpers/svg"),i=a("../transformers/styling-converters"),j=a("./details-overlay/overlay-manager"),k=a("./details-overlay/pub-sub"),l=a("./row/svg-row"),m=a("./sub-components/svg-alignment-helper"),n=a("./sub-components/svg-general-components"),o=a("./sub-components/svg-marks");c.createWaterfallSvg=g},{"../helpers/svg":6,"../transformers/styling-converters":15,"./details-overlay/overlay-manager":17,"./details-overlay/pub-sub":18,"./row/svg-row":22,"./sub-components/svg-alignment-helper":23,"./sub-components/svg-general-components":24,"./sub-components/svg-marks":25}]},{},[8])(8)}); |
@@ -75,3 +75,3 @@ import { removeChildren } from "../../helpers/dom"; | ||
let offset = this.getOverlayOffset(j); | ||
bar.style.transform = `translate(0, ${offset}px)`; | ||
bar.setAttribute("transform", `translate(0, ${offset})`); | ||
}); | ||
@@ -78,0 +78,0 @@ } |
@@ -20,2 +20,3 @@ import { addClass, removeClass } from "../../helpers/dom"; | ||
let lineLabel = svg.newTextEl(mark.name, { x: x + "%", y: diagramHeight + 25 }); | ||
lineLabel.setAttribute("writing-mode", "tb"); | ||
let lineRect; | ||
@@ -22,0 +23,0 @@ mark.x = x; |
{ | ||
"name": "perf-cascade", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Har file visualizer", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
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
560824
11854