perf-cascade
Advanced tools
Comparing version 0.3.6 to 0.3.7
@@ -1,3 +0,3 @@ | ||
/*! github.com/micmro/PerfCascade Version:0.3.6 (05/02/2017) */ | ||
/*! github.com/micmro/PerfCascade Version:0.3.7 (07/02/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){var f=new Blob([a],{type:P});d=new i(f),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,m<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){var p={sn:c,codecClass:"Inflater",crcType:m};n(b,p,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){var k="input";if(a.zip.useWebWorkers){var l={sn:c,options:{level:f},codecClass:"Deflater",crcType:k};n(b,l,d,e,0,d.size,h,g,i,j)}else o(new a.zip.Deflater,d,e,0,d.size,k,h,g,i,j)}function r(b,d,e,f,g,h,i,j,k,l,m){var p="input";if(a.zip.useWebWorkers&&i){var q={sn:d,codecClass:"NOOP",crcType:p};n(b,q,e,f,g,h,k,j,l,m)}else o(new c,e,f,g,h,p,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=65536,g=e+f;c(e,function(){c(Math.min(g,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);return 1347093252!=n.view.getUint32(0)?void d(F):(w(m,n,4,!1,d),i=m.offset+30+m.filenameLength+m.extraFieldLength,void 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;return h=g.getUint32(16,!0),i=g.getUint16(8,!0),h<0||h>=b.size?void d(F):void 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),"undefined"!=typeof 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(){return o=o||{},a=a.trim(),o.directory&&"/"!=a.charAt(a.length-1)&&(a+="/"),i.hasOwnProperty(a)?void d(N):(v=z(y(a)),j.push(a),void 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;return b.error?(h.terminate(),void d(b.error)):void("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,l,n,p,r,s){var t,u,v,w,x,y,z,A,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 l[0]=-1,n[0]=0,i;for(A=n[0],y=1;y<=B&&0===e[y];y++);for(z=y,A<y&&(A=y),x=B;0!==x&&0===e[x];x--);for(v=x,A>x&&(A=x),n[0]=A,H=1<<y;y<x;y++,H<<=1)if((H-=e[y])<0)return m;if((H-=e[x])<0)return m;for(e[x]+=H,h[1]=y=0,D=1,G=2;0!==--x;)h[G]=y+=e[D],G++,D++;x=0,D=0;do 0!==(y=a[b+D])&&(s[h[y]++]=x),D++;while(++x<c);for(c=h[v],h[0]=x=0,D=0,w=-1,F=-A,g[0]=0,E=0,I=0;z<=v;z++)for(t=e[z];0!==t--;){for(;z>F+A;){if(w++,F+=A,I=v-F,I=I>A?A:I,(u=1<<(y=z-F))>t+1&&(u-=t+1,G=z,y<I))for(;++y<I&&!((u<<=1)<=e[++G]);)u-=e[G];if(I=1<<y,r[0]+I>q)return m;g[w]=E=r[0],r[0]+=I,0!==w?(h[w]=x,f[0]=y,f[1]=A,y=x>>>F-A,f[2]=E-g[w-1]-y,p.set(f,3*(g[w-1]+y))):l[0]=E}for(f[1]=z-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<<z-F,y=x>>>F;y<I;y+=u)p.set(f,3*(E+y));for(y=1<<z-1;0!==(x&y);y>>>=1)x^=y;for(x^=y,C=(1<<F)-1;(x&C)!=h[w];)w--,F-=A,C=(1<<F)-1}return 0!==H&&1!=v?o:i}function b(a){var b;for(c||(c=[],d=[],e=new Int32Array(B+1),f=[],g=new Int32Array(B),h=new Int32Array(B+1)),d.length<a&&(d=[]),b=0;b<a;b++)d[b]=0;for(b=0;b<B+1;b++)e[b]=0;for(b=0;b<3;b++)f[b]=0;g.set(e.subarray(0,B),0),h.set(e.subarray(0,B+1),0)}var c,d,e,f,g,h,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==m?i.msg="oversubscribed dynamic bit lengths tree":j!=o&&0!==f[0]||(i.msg="incomplete dynamic bit lengths tree",j=m),j},j.inflate_trees_dynamic=function(e,f,g,h,j,k,l,p,q){var r;return b(288),c[0]=0,r=a(g,0,e,257,x,y,k,h,p,c,d),r!=i||0===h[0]?(r==m?q.msg="oversubscribed literal/length tree":r!=n&&(q.msg="incomplete literal/length tree",r=m),r):(b(288),r=a(g,e,f,0,z,A,l,j,p,c,d),r!=i||0===j[0]&&e>257?(r==m?q.msg="oversubscribed distance tree":r==o?(q.msg="incomplete distance tree",r=m):r!=n&&(q.msg="empty distance tree with lengths",r=m),r):i)}}function c(){function a(a,b,c,d,e,f,g,h){var k,l,n,o,q,r,s,t,u,v,w,x,y,z,A,B;s=h.next_in_index,t=h.avail_in,q=g.bitb,r=g.bitk,u=g.write,v=u<g.read?g.read-u-1:g.end-u,w=p[a],x=p[b];do{for(;r<20;)t--,q|=(255&h.read_byte(s++))<<r,r+=8;if(k=q&w,l=c,n=d,B=3*(n+k),0!==(o=l[B]))for(;;){if(q>>=l[B+1],r-=l[B+1],0!==(16&o)){for(o&=15,y=l[B+2]+(q&p[o]),q>>=o,r-=o;r<15;)t--,q|=(255&h.read_byte(s++))<<r,r+=8;for(k=q&x,l=e,n=f,B=3*(n+k),o=l[B];;){if(q>>=l[B+1],r-=l[B+1],0!==(16&o)){for(o&=15;r<o;)t--,q|=(255&h.read_byte(s++))<<r,r+=8;if(z=l[B+2]+(q&p[o]),q>>=o,r-=o,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(o=g.end-A,y>o){if(y-=o,u-A>0&&o>u-A){do g.window[u++]=g.window[A++];while(0!==--o)}else g.window.set(g.window.subarray(A,A+o),u),u+=o,A+=o,o=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&o))return h.msg="invalid distance code",y=h.avail_in-t,y=r>>3<y?r>>3:y,t+=y,s-=y,r-=y<<3,g.bitb=q,g.bitk=r,h.avail_in=t,h.total_in+=s-h.next_in_index,h.next_in_index=s,g.write=u,m;k+=l[B+2],k+=q&p[o],B=3*(n+k),o=l[B]}break}if(0!==(64&o))return 0!==(32&o)?(y=h.avail_in-t,y=r>>3<y?r>>3:y,t+=y,s-=y,r-=y<<3,g.bitb=q,g.bitk=r,h.avail_in=t,h.total_in+=s-h.next_in_index,h.next_in_index=s,g.write=u,j):(h.msg="invalid literal/length code",y=h.avail_in-t,y=r>>3<y?r>>3:y,t+=y,s-=y,r-=y<<3,g.bitb=q,g.bitk=r,h.avail_in=t,h.total_in+=s-h.next_in_index,h.next_in_index=s,g.write=u,m);if(k+=l[B+2],k+=q&p[o],B=3*(n+k),0===(o=l[B])){q>>=l[B+1],r-=l[B+1],g.window[u++]=l[B+2],v--;break}}else q>>=l[B+1],r-=l[B+1],g.window[u++]=l[B+2],v--}while(v>=258&&t>=10);return y=h.avail_in-t,y=r>>3<y?r>>3:y,t+=y,s-=y,r-=y<<3,g.bitb=q,g.bitk=r,h.avail_in=t,h.total_in+=s-h.next_in_index,h.next_in_index=s,g.write=u,i}var b,c,d,e,f=this,g=0,h=0,k=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0;f.init=function(a,f,g,h,i,j){b=C,r=a,s=f,d=g,t=h,e=i,u=j,c=null},f.proc=function(f,v,w){var x,y,z,A,B,M,N,O=0,P=0,Q=0;for(Q=v.next_in_index,A=v.avail_in,O=f.bitb,P=f.bitk,B=f.write,M=B<f.read?f.read-B-1:f.end-B;;)switch(b){case C:if(M>=258&&A>=10&&(f.bitb=O,f.bitk=P,v.avail_in=A,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=B,w=a(r,s,d,t,e,u,f,v),Q=v.next_in_index,A=v.avail_in,O=f.bitb,P=f.bitk,B=f.write,M=B<f.read?f.read-B-1:f.end-B,w!=i)){b=w==j?J:L;break}k=r,c=d,h=t,b=D;case D:for(x=k;P<x;){if(0===A)return f.bitb=O,f.bitk=P,v.avail_in=A,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=B,f.inflate_flush(v,w);w=i,A--,O|=(255&v.read_byte(Q++))<<P,P+=8}if(y=3*(h+(O&p[x])),O>>>=c[y+1],P-=c[y+1],z=c[y],0===z){n=c[y+2],b=I;break}if(0!==(16&z)){o=15&z,g=c[y+2],b=E;break}if(0===(64&z)){k=z,h=y/3+c[y+2];break}if(0!==(32&z)){b=J;break}return b=L,v.msg="invalid literal/length code",w=m,f.bitb=O,f.bitk=P,v.avail_in=A,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=B,f.inflate_flush(v,w);case E:for(x=o;P<x;){if(0===A)return f.bitb=O,f.bitk=P,v.avail_in=A,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=B,f.inflate_flush(v,w);w=i,A--,O|=(255&v.read_byte(Q++))<<P,P+=8}g+=O&p[x],O>>=x,P-=x,k=s,c=e,h=u,b=F;case F:for(x=k;P<x;){if(0===A)return f.bitb=O,f.bitk=P,v.avail_in=A,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=B,f.inflate_flush(v,w);w=i,A--,O|=(255&v.read_byte(Q++))<<P,P+=8}if(y=3*(h+(O&p[x])),O>>=c[y+1],P-=c[y+1],z=c[y],0!==(16&z)){o=15&z,q=c[y+2],b=G;break}if(0===(64&z)){k=z,h=y/3+c[y+2];break}return b=L,v.msg="invalid distance code",w=m,f.bitb=O,f.bitk=P,v.avail_in=A,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=B,f.inflate_flush(v,w);case G:for(x=o;P<x;){if(0===A)return f.bitb=O,f.bitk=P,v.avail_in=A,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=B,f.inflate_flush(v,w);w=i,A--,O|=(255&v.read_byte(Q++))<<P,P+=8}q+=O&p[x],O>>=x,P-=x,b=H;case H:for(N=B-q;N<0;)N+=f.end;for(;0!==g;){if(0===M&&(B==f.end&&0!==f.read&&(B=0,M=B<f.read?f.read-B-1:f.end-B),0===M&&(f.write=B,w=f.inflate_flush(v,w),B=f.write,M=B<f.read?f.read-B-1:f.end-B,B==f.end&&0!==f.read&&(B=0,M=B<f.read?f.read-B-1:f.end-B),0===M)))return f.bitb=O,f.bitk=P,v.avail_in=A,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=B,f.inflate_flush(v,w);f.window[B++]=f.window[N++],M--,N==f.end&&(N=0),g--}b=C;break;case I:if(0===M&&(B==f.end&&0!==f.read&&(B=0,M=B<f.read?f.read-B-1:f.end-B),0===M&&(f.write=B,w=f.inflate_flush(v,w),B=f.write,M=B<f.read?f.read-B-1:f.end-B,B==f.end&&0!==f.read&&(B=0,M=B<f.read?f.read-B-1:f.end-B),0===M)))return f.bitb=O,f.bitk=P,v.avail_in=A,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=B,f.inflate_flush(v,w);w=i,f.window[B++]=n,M--,b=C;break;case J:if(P>7&&(P-=8,A++,Q--),f.write=B,w=f.inflate_flush(v,w),B=f.write,M=B<f.read?f.read-B-1:f.end-B,f.read!=f.write)return f.bitb=O,f.bitk=P,v.avail_in=A,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=B,f.inflate_flush(v,w);b=K;case K:return w=j,f.bitb=O,f.bitk=P,v.avail_in=A,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=B,f.inflate_flush(v,w);case L:return w=m,f.bitb=O,f.bitk=P,v.avail_in=A,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=B,f.inflate_flush(v,w);default:return w=l,f.bitb=O,f.bitk=P,v.avail_in=A,v.total_in+=Q-v.next_in_index,v.next_in_index=Q,f.write=B,f.inflate_flush(v,w)}},f.free=function(){}}function d(a,d){var e,f=this,g=N,h=0,k=0,n=0,r=[0],s=[0],t=new c,u=0,v=new Int32Array(3*q),w=0,x=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]=w),g==T&&t.free(a),g=N,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==o&&(b=i),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==o&&(b=i),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,o,q,w,y,z,A,B;for(w=a.next_in_index,y=a.avail_in,o=f.bitb,q=f.bitk,z=f.write,A=z<f.read?f.read-z-1:f.end-z;;)switch(g){case N:for(;q<3;){if(0===y)return f.bitb=o,f.bitk=q,a.avail_in=y,a.total_in+=w-a.next_in_index,a.next_in_index=w,f.write=z,f.inflate_flush(a,c);c=i,y--,o|=(255&a.read_byte(w++))<<q,q+=8}switch(d=7&o,u=1&d,d>>>1){case 0:o>>>=3,q-=3,d=7&q,o>>>=d,q-=d,g=O;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),o>>>=3,q-=3,g=T;break;case 2:o>>>=3,q-=3,g=Q;break;case 3:return o>>>=3,q-=3,g=W,a.msg="invalid block type",c=m,f.bitb=o,f.bitk=q,a.avail_in=y,a.total_in+=w-a.next_in_index,a.next_in_index=w,f.write=z,f.inflate_flush(a,c)}break;case O:for(;q<32;){if(0===y)return f.bitb=o,f.bitk=q,a.avail_in=y,a.total_in+=w-a.next_in_index,a.next_in_index=w,f.write=z,f.inflate_flush(a,c);c=i,y--,o|=(255&a.read_byte(w++))<<q,q+=8}if((~o>>>16&65535)!=(65535&o))return g=W,a.msg="invalid stored block lengths",c=m,f.bitb=o,f.bitk=q,a.avail_in=y,a.total_in+=w-a.next_in_index,a.next_in_index=w,f.write=z,f.inflate_flush(a,c);h=65535&o,o=q=0,g=0!==h?P:0!==u?U:N;break;case P:if(0===y)return f.bitb=o,f.bitk=q,a.avail_in=y,a.total_in+=w-a.next_in_index,a.next_in_index=w,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=o,f.bitk=q,a.avail_in=y,a.total_in+=w-a.next_in_index,a.next_in_index=w,f.write=z,f.inflate_flush(a,c);if(c=i,d=h,d>y&&(d=y),d>A&&(d=A),f.window.set(a.read_buf(w,d),z),w+=d,y-=d,z+=d,A-=d,0!==(h-=d))break;g=0!==u?U:N;break;case Q:for(;q<14;){if(0===y)return f.bitb=o,f.bitk=q,a.avail_in=y,a.total_in+=w-a.next_in_index,a.next_in_index=w,f.write=z,f.inflate_flush(a,c);c=i,y--,o|=(255&a.read_byte(w++))<<q,q+=8}if(k=d=16383&o,(31&d)>29||(d>>5&31)>29)return g=W,a.msg="too many length or distance symbols",c=m,f.bitb=o,f.bitk=q,a.avail_in=y,a.total_in+=w-a.next_in_index,a.next_in_index=w,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;o>>>=14,q-=14,n=0,g=R;case R:for(;n<4+(k>>>10);){for(;q<3;){if(0===y)return f.bitb=o,f.bitk=q,a.avail_in=y,a.total_in+=w-a.next_in_index,a.next_in_index=w,f.write=z,f.inflate_flush(a,c);c=i,y--,o|=(255&a.read_byte(w++))<<q,q+=8}e[M[n++]]=7&o,o>>>=3,q-=3}for(;n<19;)e[M[n++]]=0;if(r[0]=7,d=x.inflate_trees_bits(e,r,s,v,a),d!=i)return c=d,c==m&&(e=null,g=W),f.bitb=o,f.bitk=q,a.avail_in=y,a.total_in+=w-a.next_in_index,a.next_in_index=w,f.write=z,f.inflate_flush(a,c);n=0,g=S;case S:for(;;){if(d=k,n>=258+(31&d)+(d>>5&31))break;var G,H;for(d=r[0];q<d;){if(0===y)return f.bitb=o,f.bitk=q,a.avail_in=y,a.total_in+=w-a.next_in_index,a.next_in_index=w,f.write=z,f.inflate_flush(a,c);c=i,y--,o|=(255&a.read_byte(w++))<<q,q+=8}if(d=v[3*(s[0]+(o&p[d]))+1],H=v[3*(s[0]+(o&p[d]))+2],H<16)o>>>=d,q-=d,e[n++]=H;else{for(B=18==H?7:H-14,G=18==H?11:3;q<d+B;){if(0===y)return f.bitb=o,f.bitk=q,a.avail_in=y,a.total_in+=w-a.next_in_index,a.next_in_index=w,f.write=z,f.inflate_flush(a,c);c=i,y--,o|=(255&a.read_byte(w++))<<q,q+=8}if(o>>>=d,q-=d,G+=o&p[B],o>>>=B,q-=B,B=n,d=k,B+G>258+(31&d)+(d>>5&31)||16==H&&B<1)return e=null,g=W,a.msg="invalid bit length repeat",c=m,f.bitb=o,f.bitk=q,a.avail_in=y,a.total_in+=w-a.next_in_index,a.next_in_index=w,f.write=z,f.inflate_flush(a,c);H=16==H?e[B-1]:0;do e[B++]=H;while(0!==--G);n=B}}s[0]=-1;var I=[],J=[],K=[],L=[];if(I[0]=9,J[0]=6,d=k,d=x.inflate_trees_dynamic(257+(31&d),1+(d>>5&31),e,I,J,K,L,v,a),d!=i)return d==m&&(e=null,g=W),c=d,f.bitb=o,f.bitk=q,a.avail_in=y,a.total_in+=w-a.next_in_index,a.next_in_index=w,f.write=z,f.inflate_flush(a,c);t.init(I[0],J[0],v,K[0],v,L[0]),g=T;case T:if(f.bitb=o,f.bitk=q,a.avail_in=y,a.total_in+=w-a.next_in_index,a.next_in_index=w,f.write=z,(c=t.proc(f,a,c))!=j)return f.inflate_flush(a,c);if(c=i,t.free(a),w=a.next_in_index,y=a.avail_in,o=f.bitb,q=f.bitk,z=f.write,A=z<f.read?f.read-z-1:f.end-z,0===u){g=N;break}g=U;case U: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=o,f.bitk=q,a.avail_in=y,a.total_in+=w-a.next_in_index,a.next_in_index=w,f.write=z,f.inflate_flush(a,c);g=V;case V:return c=j,f.bitb=o,f.bitk=q,a.avail_in=y,a.total_in+=w-a.next_in_index,a.next_in_index=w,f.write=z,f.inflate_flush(a,c);case W:return c=m,f.bitb=o,f.bitk=q,a.avail_in=y,a.total_in+=w-a.next_in_index,a.next_in_index=w,f.write=z,f.inflate_flush(a,c);default:return c=l,f.bitb=o,f.bitk=q,a.avail_in=y,a.total_in+=w-a.next_in_index,a.next_in_index=w,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==O?1:0}}function e(){function a(a){return a&&a.istate?(a.total_in=a.total_out=0,a.msg=null,a.istate.mode=ea,a.istate.blocks.reset(a,null),i):l}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,i},b.inflateInit=function(c,e){return c.msg=null,b.blocks=null,e<8||e>15?(b.inflateEnd(c),l):(b.wbits=e,c.istate.blocks=new d(c,1<<e),a(c),i)},b.inflate=function(a,b){var c,d;if(!a||!a.istate||!a.next_in)return l;for(b=b==s?o:i,c=o;;)switch(a.istate.mode){case Z: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++)))!=Y){a.istate.mode=ga,a.msg="unknown compression method",a.istate.marker=5;break}if((a.istate.method>>4)+8>a.istate.wbits){a.istate.mode=ga,a.msg="invalid window size",a.istate.marker=5;break}a.istate.mode=$;case $: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=ga,a.msg="incorrect header check",a.istate.marker=5;break}if(0===(d&X)){a.istate.mode=ea;break}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++))<<24&4278190080,a.istate.mode=aa;case aa: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=ba;case ba: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=ca;case ca: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=da,k);case da:return a.istate.mode=ga,a.msg="need dictionary",a.istate.marker=0,l;case ea:if(c=a.istate.blocks.proc(a,c),c==m){a.istate.mode=ga,a.istate.marker=0;break}if(c==i&&(c=b),c!=j)return c;c=b,a.istate.blocks.reset(a,a.istate.was),a.istate.mode=fa;case fa:return j;case ga:return m;default:return l}},b.inflateSetDictionary=function(a,b,c){var d=0,e=c;return a&&a.istate&&a.istate.mode==da?(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=ea,i):l},b.inflateSync=function(b){var c,d,e,f,g;if(!b||!b.istate)return l;if(b.istate.mode!=ga&&(b.istate.mode=ga,b.istate.marker=0),0===(c=b.avail_in))return o;for(d=b.next_in_index,e=b.istate.marker;0!==c&&e<4;)b.read_byte(d)==ha[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?m:(f=b.total_in,g=b.total_out,a(b),b.total_in=f,b.total_out=g,b.istate.mode=ea,i)},b.inflateSyncPoint=function(a){return a&&a.istate&&a.istate.blocks?a.istate.blocks.sync_point():l}}function f(){}function g(){var a=this,b=new f,c=512,d=r,e=new Uint8Array(c),g=!1;b.inflateInit(),b.next_out=e,a.append=function(a,f){var h,k,l=[],m=0,n=0,p=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=c,0!==b.avail_in||g||(b.next_in_index=0,g=!0),h=b.inflate(d),g&&h===o){if(0!==b.avail_in)throw new Error("inflating: bad input")}else if(h!==i&&h!==j)throw new Error("inflating: "+b.msg);if((g||h===j)&&b.avail_in===a.length)throw new Error("inflating: bad input");b.next_out_index&&(b.next_out_index===c?l.push(new Uint8Array(e)):l.push(new Uint8Array(e.subarray(0,b.next_out_index)))),p+=b.next_out_index,f&&b.next_in_index>0&&b.next_in_index!=m&&(f(b.next_in_index),m=b.next_in_index)}while(b.avail_in>0||0===b.avail_out);return k=new Uint8Array(p),l.forEach(function(a){k.set(a,n),n+=a.length}),k}},a.flush=function(){b.inflateEnd()}}var h=15,i=0,j=1,k=2,l=-2,m=-3,n=-4,o=-5,p=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],q=1440,r=0,s=4,t=9,u=5,v=[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],w=[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],x=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],y=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],z=[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],A=[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],B=15; | ||
b.inflate_trees_fixed=function(a,b,c,d){return a[0]=t,b[0]=u,c[0]=v,d[0]=w,i};var C=0,D=1,E=2,F=3,G=4,H=5,I=6,J=7,K=8,L=9,M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],N=0,O=1,P=2,Q=3,R=4,S=5,T=6,U=7,V=8,W=9,X=32,Y=8,Z=0,$=1,_=2,aa=3,ba=4,ca=5,da=6,ea=7,fa=12,ga=13,ha=[0,0,255,255];f.prototype={inflateInit:function(a){var b=this;return b.istate=new e,a||(a=h),b.istate.inflateInit(b,a)},inflate:function(a){var b=this;return b.istate?b.istate.inflate(b,a):l},inflateEnd:function(){var a=this;if(!a.istate)return l;var b=a.istate.inflateEnd(a);return a.istate=null,b},inflateSync:function(){var a=this;return a.istate?a.istate.inflateSync(a):l},inflateSetDictionary:function(a,b){var c=this;return c.istate?c.istate.inflateSetDictionary(c,a,b):l},read_byte:function(a){var b=this;return b.next_in.subarray(a,a+1)[0]},read_buf:function(a,b){var c=this;return c.next_in.subarray(a,a+b)}};var ia=a.zip||a;ia.Inflater=ia._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){function d(a){try{var b=JSON.parse(a);c(null,b.log)}catch(a){c(a)}}if(!a)return c(new Error("Failed to load HAR file"));var e=b.match(/\.[0-9a-z]+$/i)[0];if([".zhar",".zip"].indexOf(e)!==-1)zip.createReader(new zip.BlobReader(a),function(a){a.getEntries(function(b){b[0].getData(new zip.TextWriter,function(b){d(b),a.close()},function(a){console.log("unzip progress: "+a/100+"%")})})});else{var f=new FileReader;f.addEventListener("load",function(a){d(a.target.result)}),f.readAsText(a)}}zip.useWebWorkers=!1,c.readFile=d},{}]},{},[1])(1)}); |
@@ -1,3 +0,3 @@ | ||
/*! github.com/micmro/PerfCascade Version:0.3.6 (05/02/2017) */ | ||
/*! github.com/micmro/PerfCascade Version:0.3.7 (07/02/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}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}c.hasHeader=e,c.getHeader=f},{}],3:[function(a,b,c){"use strict";function d(a,b,c){return a.response.status>=b&&a.response.status<=c}function e(a){var b=a.rawResource,c=1e3;if(b.response.bodySize<c)return!1;if(l.contains(["html","css","javascript","svg","plain"],a.requestType))return!0;var d=b.response.content.mimeType,e=["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"],d.split("/")[0])&&!l.contains(e,d.split(";")[0]))}function f(a){var b=a.rawResource;if("get"!==b.request.method.toLowerCase())return!1;if(204===b.response.status||!d(b,200,299))return!1;var c=b.response.headers;return!(k.hasHeader(c,"Cache-Control")||k.hasHeader(c,"Expires"))}function g(a){var b=a.rawResource,c=b.response.headers;return!k.hasHeader(c,"Content-Encoding")&&e(a)}function h(a){return 0===a.name.indexOf("https://")}function i(a){function b(a){return"string"==typeof a?parseInt(a,10):a}var c=a.rawResource;return 1===b(c._was_pushed)}function j(a){var b=a.entries.filter(function(a){return!a.rawResource.response.redirectURL})[0];return h(b)}var k=a("./har"),l=a("./misc");c.isInStatusCodeRange=d,c.hasCacheIssue=f,c.hasCompressionIssue=g,c.isSecure=h,c.isPush=i,c.documentIsSecure=j},{"./har":2,"./misc":5}],4:[function(a,b,c){"use strict";function d(a,b,c,d){return void 0===d&&(d=1),w(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),w(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),w(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),w(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),w(a,b,c,"icon-no-cache",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 i(a,b,c,d){return void 0===d&&(d=1),w(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 j(a,b,c,d){return void 0===d&&(d=1),w(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 k(a,b,c,d){return void 0===d&&(d=1),w(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 l(a,b,c,d){return void 0===d&&(d=1),w(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 m(a,b,c,d){return void 0===d&&(d=1),w(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 n(a,b,c,d){return void 0===d&&(d=1),m(a,b,c,d)}function o(a,b,c,d){return void 0===d&&(d=1),w(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 p(a,b,c,d){return void 0===d&&(d=1),w(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 q(a,b,c,d){return void 0===d&&(d=1),w(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 r(a,b,c,d){return void 0===d&&(d=1),w(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 s(a,b,c,d){return void 0===d&&(d=1),w(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 t(a,b,c,d){return void 0===d&&(d=1),w(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 u(a,b,c,d){return void 0===d&&(d=1),w(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 v(a,b,c,d){return void 0===d&&(d=1),w(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" />')}var w=function(a,b,c,d,e,f){var g=new DOMParser,h=g.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");return h.firstChild};c.noTls=d,c.err3xx=e,c.err4xx=f,c.err5xx=g,c.noCache=h,c.noGzip=i,c.plain=j,c.other=k,c.javascript=l,c.image=m,c.svg=n,c.html=o,c.css=p,c.warning=q,c.font=r,c.flash=s,c.video=t,c.audio=u,c.push=v},{}],5:[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)}c.contains=e,c.resourceUrlFormatter=f,c.roundNumber=g},{}],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){var b=a[0],c=a[1];return f(o,b,c)}),d(h).forEach(function(a){var b=a[0],c=a[1];return e(o,b,c)}),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){var b={id:a};return g("clipPath",{attributes:b})}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}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){var c={className:"water-fall-chart temp",width:"9999px"},d={left:"0px",position:"absolute",top:"0px",visibility:"hidden","z-index":"99999"};a=h("water-fall-chart temp",c,d)}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}c.makeLegend=d},{}],8:[function(a,b,c){"use strict";function d(a,b){void 0===b&&(b={});var c=g({},l,b),d=new i.default(a),e=k.createWaterfallSvg(d.getSelectedPage(),c);return d.onPageUpdate(function(a,b){var d=e.parentElement,f=k.createWaterfallSvg(b,c);d.replaceChild(f,e),e=f}),c.pageSelector&&d.initPagingSelectBox(c.pageSelector),c.legendHolder&&(c.legendHolder.innerHTML="",c.legendHolder.appendChild(h.makeLegend())),e}function e(a,b){return void 0===b&&(b={}),d(j.transformDoc(a),b)}function f(a,b){return void 0===b&&(b={}),d(a,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},h=a("./legend/legend");c.makeLegend=h.makeLegend;var i=a("./paging/paging"),j=a("./transformers/har"),k=a("./waterfall/svg-chart"),l={leftColumnWith:25,legendHolder:void 0,pageSelector:void 0,rowHeight:23,showAlignmentHelpers:!0,showIndicatorIcons:!0,showMimeTypeIcon:!0};c.fromHar=e,c.fromPerfCascadeFormat=f;var m=j.transformDoc;c.transformHarToPerfCascade=m},{"./legend/legend":7,"./paging/paging":9,"./transformers/har":10,"./waterfall/svg-chart":23}],9:[function(a,b,c){"use strict";var d=a("../helpers/dom"),e=function(){function a(a){this.doc=a,this.selectedPageIndex=0,this.onPageUpdateCbs=[]}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;return this.getPageCount()<=1?void(a.style.display="none"):(d.removeChildren(a),this.doc.pages.forEach(function(c,d){var e=new Option(c.title,d.toString(),d===b.selectedPageIndex);a.add(e)}),a.style.display="block",void a.addEventListener("change",function(a){var b=parseInt(a.target.value,10);c.setSelectedPageIndex(b)}))},a}();Object.defineProperty(c,"__esModule",{value:!0}),c.default=e},{"../helpers/dom":1}],10:[function(a,b,c){"use strict";function d(a,b,c,d,e,f){void 0===d&&(d=[]);var g="number"!=typeof b||"number"!=typeof c?void 0:c-b;return{total:g,name:a,start:b,end:c,segments:d,rawResource:e,requestType:f}}function e(a,b,c){var d="number"!=typeof b||"number"!=typeof c?void 0:c-b;return{total:d,type:a,start:b,end:c}}function f(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 g(a){var b=this,c=void 0!==a.log?a.log:a;return console.log("HAR created by %s(%s) %s page(s)",c.creator.name,c.creator.version,c.pages.length),{pages:c.pages.map(function(a,d){return b.transformPage(c,d)})}}function h(a,b){function c(a){return"string"==typeof a?parseInt(a,10):a}void 0===b&&(b=0);var e=void 0!==a.log?a.log:a,g=e.pages[b],h=new Date(g.startedDateTime).getTime(),j=g.pageTimings;console.log("%s: %s of %s page(s)",g.title,b+1,e.pages.length);var l=0,m=e.entries.filter(function(a){return a.pageref===g.id}).map(function(a){var b=new Date(a.startedDateTime).getTime()-h;l=Math.max(l,b+a.time);var e=f(a.response.content.mimeType);return d(a.request.url,b,c(a._all_end)||b+a.time,i(b,a),a,e)}),n=Object.keys(j).filter(function(a){return"number"==typeof j[a]&&j[a]>=0}).sort(function(a,b){return j[a]>j[b]?1:-1}).map(function(a){var b=j[a];return l=Math.max(l,b),{name:a.replace(/^[_]/,"")+" ("+k.roundNumber(b,0)+" ms)",startTime:b}});return l+=100,{durationMs:l,entries:m,marks:n,lines:[],title:g.title}}function i(a,b){var c=b.timings;return["blocked","dns","connect","send","wait","receive"].reduce(function(d,f){var g=j(f,b,d,a);if(g.end&&g.start>=g.end)return d;if("connect"===f&&c.ssl&&c.ssl!==-1){var h=parseInt(b._ssl_start,10)||g.start,i=parseInt(b._ssl_end,10)||g.start+c.ssl,k=parseInt(b._ssl_start,10)?g.start:i;return d.concat([e("ssl",h,i)]).concat([e(f,k,g.end)])}return d.concat([e(f,g.start,g.end)])},[])}function j(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:i,start:h}}var k=a("../helpers/misc");c.transformDoc=g,c.transformPage=h},{"../helpers/misc":5}],11:[function(a,b,c){"use strict";function d(a){return"block-"+a}function e(a){return"block-"+a}c.requestTypeToCssClass=d,c.timingTypeToCssClass=e},{}],12:[function(a,b,c){"use strict";function d(a,b){var c=a.rawResource;return[["Request Number","#"+b],["Started",new Date(c.startedDateTime).toLocaleString()+(a.start>0?" ("+l(a.start)+" after page request started)":"")],["Duration",l(c.time)],["Error/Status Code",c.response.status+" "+c.response.statusText],["Server IPAddress",c.serverIPAddress],["Connection",c.connection],["Browser Priority",c._priority||c._initialPriority],["Was pushed",c._was_pushed],["Initiator (Loaded by)",c._initiator],["Initiator Line",c._initiator_line],["Host",i.getHeader(c.request.headers,"Host")],["IP",c._ip_addr],["Client Port",c._client_port],["Expires",c._expires],["Cache Time",c._cache_time],["CDN Provider",c._cdn_provider],["ObjectSize",c._objectSize],["Bytes In (downloaded)",q(c,"bytesIn")],["Bytes Out (uploaded)",q(c,"bytesOut")],["JPEG Scan Count",p(c,"jpeg_scan_count")],["Gzip Total",q(c,"gzip_total")],["Gzip Save",q(c,"gzip_save")],["Minify Total",q(c,"minify_total")],["Minify Save",q(c,"minify_save")],["Image Total",q(c,"image_total")],["Image Save",q(c,"image_save")]]}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],["Bytes Out (uploaded)",q(a,"bytesOut")],["Headers Size",k(b.headersSize)],["Body Size",k(b.bodySize)],["Comment",b.comment],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"),["Querystring parameters count",b.queryString.length],["Cookies count",b.cookies.length]]}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){return[a,m(i.getHeader(d,a))]},g=i.getHeader(d,"Content-Length"),h=i.getHeader(d,"Content-Type");return a._contentType&&a._contentType!==h&&(h=h+" | "+a._contentType),[["Status",b.status+" "+b.statusText],["HTTP Version",b.httpVersion],["Bytes In (downloaded)",q(a,"bytesIn")],["Header Size",k(b.headersSize)],["Body Size",k(b.bodySize)],["Content-Type",h],e("Cache-Control"),e("Content-Encoding"),f("Expires"),f("Last-Modified"),e("Pragma"),["Content-Length",n(g,k)],["Content Size",g!==c.size.toString()?k(c.size):""],["Content Compression",k(c.compression)],e("Connection"),e("ETag"),e("Accept-Patch"),e("Age"),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",b.redirectURL],["Comment",b.comment]]}function g(a){var b=a.rawResource.timings;return[["Total",a.total+" ms"],["Blocked",l(b.blocked)],["DNS",l(b.dns)],["Connect",l(b.connect)],["SSL (TLS)",l(b.ssl)],["Send",l(b.send)],["Wait",l(b.wait)],["Receive",l(b.receive)]]}function h(a,b){var c=b.rawResource,h=c.request.headers,i=c.response.headers,j=function(a){return[a.name,a.value]};return{general:d(b,a),request:e(c),requestHeaders:h.map(j),response:f(c),responseHeaders:i.map(j),timings:g(b)}}var i=a("../../helpers/har"),j=function(a,b){if(isFinite(a)&&!(a<=0))return b(a)},k=function(a){return j(a,function(a){return a+" byte (~"+Math.round(a/1024*10)/10+"kb)"})},l=function(a){return j(a,function(a){return a+" ms"})},m=function(a){if(!a)return"";var b=new Date(a);return a+" </br>(local time: "+b.toLocaleString()+")"},n=function(a,b){var c=parseInt(a,10);return j(c,b)},o=function(a,b){return a[b]||a["_"+b]||a.request[b]||a.request["_"+b]||""},p=function(a,b){var c=o(a,b);return"0"!==c?c:""},q=function(a,b){var c=parseInt(o(a,b),10);return isNaN(c)||c<=0?"":k(c)};c.getKeys=h},{"../../helpers/har":2}],13:[function(a,b,c){"use strict";function d(a,b){void 0===b&&(b=!1);var c=function(a){if(!b)return"";var c=a.toLowerCase().replace(/[^a-z-]/g,"");return'class="'+(c||"no-colour")+'"'},d=function(a){var b=a[1];return"string"==typeof b&&b.length>0||"number"==typeof b&&!(0===b||b===-1)};return a.filter(d).map(function(a){return"\n <dt "+c(a[0])+">"+a[0]+"</dt>\n <dd>"+a[1]+"</dd>\n "}).join("")}function e(a,b){if(void 0===b&&(b=!0),""===a.trim())return"";var c=b?"<dl>"+a+"</dl>":a;return'<div class="tab">\n '+c+"\n </div>"}function f(a,b){if("image"!==b.requestType)return"";var c='<img class="preview" style="max-height:'+(a-100)+'px"\n data-src="'+b.rawResource.request.url+'" />';return e(c,!1)}function g(a,b){return b?'<li><button class="tab-button">'+a+"</button></li>":""}function h(a,b,c){var h=document.createElement("html"),j=document.createElement("body");j.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),h.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/xmlns/");var k=i.getKeys(a,b),l=e(d(k.general)),m=e(d(k.timings,!0)),n=d(k.request),o=d(k.requestHeaders),p=d(k.response),q=d(k.responseHeaders),r=f(c,b);return j.innerHTML='\n <div class="wrapper">\n <header class="type-'+b.requestType+'">\n <h3><strong>#'+a+"</strong> "+b.name+'</h3>\n <nav class="tab-nav">\n <ul>\n '+g("General",l)+'\n <li><button class="tab-button">Request</button></li>\n <li><button class="tab-button">Response</button></li>\n '+g("Timings",m)+'\n <li><button class="tab-button">Raw Data</button></li>\n '+g("Preview",r)+"\n </ul>\n </nav>\n </header>\n "+l+'\n <div class="tab">\n <dl>\n '+n+"\n </dl>\n <h2>All Request Headers</h2>\n <dl>\n "+o+'\n </dl>\n </div>\n <div class="tab">\n <dl>\n '+p+"\n </dl>\n <h2>All Response Headers</h2>\n <dl>\n "+q+"\n </dl>\n </div>\n "+m+'\n <div class="tab">\n <pre><code>'+JSON.stringify(b.rawResource,null,2)+"</code></pre>\n </div>\n "+r+"\n </div>\n ",h.appendChild(j),h}var i=a("./extract-details-keys");c.createDetailsBody=h},{"./extract-details-keys":12}],14:[function(a,b,c){"use strict";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}();Object.defineProperty(c,"__esModule",{value:!0}),c.default=d},{}],15:[function(a,b,c){"use strict";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)}}),this.renderOverlays(c),this.context.pubSub.publishToOverlayChanges({combinedOverlayHeight:f.getCombinedOverlayHeight(),openOverlays:f.openOverlays,type:"open"}),this.realignBars(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.index,f,a,d.entry,d.onClose),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}();Object.defineProperty(c,"__esModule",{value:!0}),c.default=f},{"../../helpers/dom":1,"./svg-details-overlay":16}],16:[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("X",{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,g,j){var k=g.rawResource._number||a+1,l=h.newG("outer-info-overlay-holder"),m=f(b,c),n=h.newForeignObject({height:c,width:"100%",x:"0",y:b}),o=e(b);o.addEventListener("click",function(){return j(a,m)});var p=i.createDetailsBody(k,g,c),q=p.getElementsByClassName("tab-button"),r=p.getElementsByClassName("tab"),s=function(a){d(r,function(b,c){b.style.display=a===c?"block":"none",q.item(c).classList.toggle("active",a===c)})};return d(q,function(a,b){a.addEventListener("click",function(){s(b)})}),s(0),n.appendChild(p),m.appendChild(n),m.appendChild(o),l.appendChild(m),l}var h=a("../../helpers/svg"),i=a("./html-details-body");c.forEach=d,c.createRowInfoOverlay=g},{"../../helpers/svg":6,"./html-details-body":13}],17:[function(a,b,c){"use strict";function d(a,b){return{type:a,title:b,width:20}}function e(a){var b=a.rawResource;if(b.response.redirectURL){var c=encodeURI(b.response.redirectURL.split("?")[0]||"");return d("err3xx",b.response.status+" response status: Redirect to "+c+"...")}return g.isInStatusCodeRange(b,400,499)?d("err4xx",b.response.status+" response status: "+b.response.statusText):g.isInStatusCodeRange(b,500,599)?d("err5xx",b.response.status+" response status: "+b.response.statusText):204===b.response.status?d("plain","No content"):d(a.requestType,a.requestType)}function f(a,b){var c=a.rawResource,e=[];return g.isPush(a)&&e.push(d("push","Response was pushed by the server")),b&&!g.isSecure(a)&&e.push(d("noTls","Insecure Connection")),g.hasCacheIssue(a)&&e.push(d("noCache","Response not cached")),g.hasCompressionIssue(a)&&e.push(d("noGzip","no gzip")),!c.response.content.mimeType&&g.isInStatusCodeRange(c,200,299)&&e.push(d("warning","No MIME Type defined")),e}var g=a("../../helpers/heuristics");c.getMimeTypeIcon=e,c.getIndicatorIcons=f},{"../../helpers/heuristics":3}],18:[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=500,e=5/d*100,f=a.y+a.height/1.5,g=Math.round(b)+" ms",h=(a.x+a.width)/a.unit+e,i=q.newTextEl(g,{x:p.roundNumber(h)+"%",y:f}),j=8*g.length;return h+j/d*100>100&&(h=c/a.unit-e,i=q.newTextEl(g,{x:p.roundNumber(h)+"%",y:f},{textAnchor:"end"})),i}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}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":5,"../../helpers/svg":6,"../../transformers/styling-converters":11}],19:[function(a,b,c){"use strict";function d(a){var b=["row-item"];return f.isInStatusCodeRange(a,500,599)?b.push("status5xx"):f.isInStatusCodeRange(a,400,499)?b.push("status4xx"):304!==a.response.status&&f.isInStatusCodeRange(a,300,399)&&b.push("status3xx"),b.join(" ")}function e(a,b,c,e,f,n,o){var p=f.y,q=f.height,r=a.options.leftColumnWith,s=i.newG(d(n.rawResource)),t=i.newSvg("left-fixed-holder",{width:r+"%",x:"0"}),u=i.newSvg("flex-scale-waterfall",{width:100-r+"%",x:r+"%"}),v=k.createRect(f,n.segments,n.total),w=k.createNameRowBg(p,q,o),x=k.createRowBg(p,q,o),y=k.createBgStripe(p,q,b%2===0),z=m+c;if(a.options.showMimeTypeIcon){var A=j.getMimeTypeIcon(n);z-=A.width,w.appendChild(g[A.type](z,p+3,A.title))}a.options.showIndicatorIcons&&j.getIndicatorIcons(n,a.docIsSsl).forEach(function(a){z-=a.width,w.appendChild(g[a.type](z,p+3,a.title))}),z=m+c;var B=""+(b+1),C=k.createRequestNumberLabel(z,p,B,q,e);z+=e+4;var D=k.createRequestLabelClipped(z,p,h.resourceUrlFormatter(n.name,40),q),E=k.createRequestLabelFull(z,p,n.name,q);return x.appendChild(v),k.appendRequestLabels(w,C,D,E),u.appendChild(x),t.appendChild(l.cloneNode(!0)),t.appendChild(w),s.appendChild(y),s.appendChild(u),s.appendChild(t),s}var f=a("../../helpers/heuristics"),g=a("../../helpers/icons"),h=a("../../helpers/misc"),i=a("../../helpers/svg"),j=a("./svg-indicators"),k=a("./svg-row-subcomponents"),l=i.newClipPath("titleClipPath");l.appendChild(i.newRect({height:"100%",width:"100%"}));var m=3;c.createRow=e},{"../../helpers/heuristics":3,"../../helpers/icons":4,"../../helpers/misc":5,"../../helpers/svg":6,"./svg-indicators":17,"./svg-row-subcomponents":18}],20:[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")}}}}var f=a("../../helpers/dom"),g=a("../../helpers/svg");c.createAlignmentLines=d,c.makeHoverEvtListeners=e},{"../../helpers/dom":1,"../../helpers/svg":6}],21:[function(a,b,c){"use strict";function d(a,b,c){void 0===c&&(c=200);for(var d=g.newG("time-scale full-width"),e=1e3/c,f=b/1e3,h=b/c,j=0;j<=h;j++){var k=j%e===0,l=j/e;i(a,d,f,l,k)}return d}function e(a,b){var c=g.newRect({height:a.diagramHeight,width:(b.total||1)/a.unit+"%",x:(b.start||.001)/a.unit+"%",y:0},h.requestTypeToCssClass(b.requestType));return c.appendChild(g.newTitle(b.name)),c}var f=a("../../helpers/misc"),g=a("../../helpers/svg"),h=a("../../transformers/styling-converters"),i=function(a,b,c,d,e){void 0===e&&(e=!1);var h,i=a.diagramHeight,j=100/c,k="sub-second-line";if(e){var l=d>c-.2;k="second-line";var m=f.roundNumber(j*d)+.5+"%",n={};l&&(m=f.roundNumber(j*d)-.5+"%",n["text-anchor"]="end"),h=g.newTextEl(d+"s",{x:m,y:i},n)}var o=f.roundNumber(j*d)+"%",p=g.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+")"),e&&h.setAttribute("transform","translate(0, "+b+")")}),b.appendChild(p),e&&b.appendChild(h)};c.createTimeScale=d,c.createBgRect=e},{"../../helpers/misc":5,"../../helpers/svg":6,"../../transformers/styling-converters":11}],22:[function(a,b,c){"use strict";function d(a,b){var c=a.diagramHeight,d=g.newG("marker-holder",{transform:"scale(1, 1)"});return b.forEach(function(h,i){var j=f.roundNumber(h.startTime/a.unit),k=g.newG("mark-holder type-"+h.name.toLowerCase()),l=g.newG("line-holder"),m=g.newG("line-label-holder"),n=g.newTextEl(h.name,{x:j+"%",y:c+25});h.x=j;var o=g.newLine({x1:j+"%",x2:j+"%",y1:0,y2:c}),p=b[i-1],q=2.5;p&&h.x-p.x<q&&(n.setAttribute("x",p.x+q+"%"),h.x=p.x+q);var r=g.newLine({x1:j+"%",x2:h.x+"%",y1:c,y2:c+23});l.appendChild(o),l.appendChild(r),a.pubSub.subscribeToOverlayChanges(function(a){var b=a.combinedOverlayHeight,d=(c+b)/c;o.setAttribute("transform","scale(1, "+d+")"),m.setAttribute("transform","translate(0, "+b+")"),r.setAttribute("transform","translate(0, "+b+")")});var s=!1,t=function(){s||(s=!0,e.addClass(l,"active"),k.parentNode.appendChild(k))},u=function(){s=!1,e.removeClass(l,"active")};n.addEventListener("mouseenter",t),n.addEventListener("mouseleave",u),m.appendChild(n),k.appendChild(g.newTitle(h.name+" ("+Math.round(h.startTime)+"ms)")),k.appendChild(l),k.appendChild(m),d.appendChild(k)}),d}var e=a("../../helpers/dom"),f=a("../../helpers/misc"),g=a("../../helpers/svg");c.createMarks=d},{"../../helpers/dom":1,"../../helpers/misc":5,"../../helpers/svg":6}],23:[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,i.getNodeTextWidth(i.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=h.documentIsSecure(a),i={diagramHeight:f,overlayManager:void 0,pubSub:new k.default,unit:e,options:b,docIsSsl:g};return i.overlayManager=new l.default(i,d),i}function g(a,b){function c(){return(t+s.overlayManager.getCombinedOverlayHeight()).toString()+"px"}function g(a,c){var d=a.total||1,e=b.rowHeight*c,f=a.start||.001,g=450,h={cssClass:j.requestTypeToCssClass(a.requestType),height:b.rowHeight,hideOverlay:b.showAlignmentHelpers?k.onMouseLeavePartial:void 0,label:a.name+" ("+a.start+"ms - "+a.end+"ms | total: "+a.total+"ms)",showOverlay:b.showAlignmentHelpers?k.onMouseEnterPartial:void 0,unit:s.unit,width:d,x:f,y:e},i=function(){s.overlayManager.openOverlay(c,e+b.rowHeight,g,a,E)},l=n.createRow(s,c,B,D,h,a,i);E.push(l),w.appendChild(l)}var h,k,l=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)}),r=i.newG("overlays"),s=f(a,b,l,r),t=e(a.marks,s.diagramHeight),u=i.newSvg("water-fall-chart",{height:t}),v=i.newSvg("scale-and-marks-holder",{width:100-b.leftColumnWith+"%",x:b.leftColumnWith+"%"}),w=i.newG("rows-holder");if(b.showAlignmentHelpers){h=i.newG("hover-overlays");var x=o.createAlignmentLines(s.diagramHeight);h.appendChild(x.startline),h.appendChild(x.endline),k=o.makeHoverEvtListeners(x)}v.appendChild(p.createTimeScale(s,a.durationMs)),v.appendChild(q.createMarks(s,a.marks)),a.lines.forEach(function(a){u.appendChild(p.createBgRect(s,a))});var y=m.getMimeTypeIcon(l[0]).width,z=0;if(b.showMimeTypeIcon&&(z+=1),b.showIndicatorIcons){var A=l.map(function(a){return m.getIndicatorIcons(a,s.docIsSsl).length});z+=Math.max.apply(null,A)}var B=z*y,C=d(l.length),D=i.getNodeTextWidth(i.newTextEl(""+C),!0),E=[];return s.pubSub.subscribeToOverlayChanges(function(){u.style.height=c()}),l.forEach(g),b.showAlignmentHelpers&&v.appendChild(h),u.appendChild(v),u.appendChild(w),u.appendChild(r),u}var h=a("../helpers/heuristics"),i=a("../helpers/svg"),j=a("../transformers/styling-converters"),k=a("./details-overlay/overlay-changes-pub-sub"),l=a("./details-overlay/svg-details-overlay-manager"),m=a("./row/svg-indicators"),n=a("./row/svg-row"),o=a("./sub-components/svg-alignment-helper"),p=a("./sub-components/svg-general-components"),q=a("./sub-components/svg-marks");c.createWaterfallSvg=g},{"../helpers/heuristics":3,"../helpers/svg":6,"../transformers/styling-converters":11,"./details-overlay/overlay-changes-pub-sub":14,"./details-overlay/svg-details-overlay-manager":15,"./row/svg-indicators":17,"./row/svg-row":19,"./sub-components/svg-alignment-helper":20,"./sub-components/svg-general-components":21,"./sub-components/svg-marks":22}]},{},[8])(8)}); | ||
})}},a.prototype.onPageUpdate=function(a){if(this.getPageCount()>1)return this.onPageUpdateCbs.push(a)},a.prototype.initPagingSelectBox=function(a){var b=this,c=this;return this.getPageCount()<=1?void(a.style.display="none"):(d.removeChildren(a),this.doc.pages.forEach(function(c,d){var e=new Option(c.title,d.toString(),d===b.selectedPageIndex);a.add(e)}),a.style.display="block",void a.addEventListener("change",function(a){var b=parseInt(a.target.value,10);c.setSelectedPageIndex(b)}))},a}();Object.defineProperty(c,"__esModule",{value:!0}),c.default=e},{"../helpers/dom":1}],10:[function(a,b,c){"use strict";function d(a,b,c,d,e,f){void 0===d&&(d=[]);var g="number"!=typeof b||"number"!=typeof c?void 0:c-b;return{total:g,name:a,start:b,end:c,segments:d,rawResource:e,requestType:f}}function e(a,b,c){var d="number"!=typeof b||"number"!=typeof c?void 0:c-b;return{total:d,type:a,start:b,end:c}}function f(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 g(a){var b=this,c=void 0!==a.log?a.log:a;return console.log("HAR created by %s(%s) %s page(s)",c.creator.name,c.creator.version,c.pages.length),{pages:c.pages.map(function(a,d){return b.transformPage(c,d)})}}function h(a,b){function c(a){return"string"==typeof a?parseInt(a,10):a}void 0===b&&(b=0);var e=void 0!==a.log?a.log:a,g=e.pages[b],h=new Date(g.startedDateTime).getTime(),j=g.pageTimings;console.log("%s: %s of %s page(s)",g.title,b+1,e.pages.length);var l=0,m=e.entries.filter(function(a){return a.pageref===g.id}).map(function(a){var b=new Date(a.startedDateTime).getTime()-h;l=Math.max(l,b+a.time);var e=f(a.response.content.mimeType);return d(a.request.url,b,c(a._all_end)||b+a.time,i(b,a),a,e)}),n=Object.keys(j).filter(function(a){return"number"==typeof j[a]&&j[a]>=0}).sort(function(a,b){return j[a]>j[b]?1:-1}).map(function(a){var b=j[a];return l=Math.max(l,b),{name:a.replace(/^[_]/,"")+" ("+k.roundNumber(b,0)+" ms)",startTime:b}});return l+=100,{durationMs:l,entries:m,marks:n,lines:[],title:g.title}}function i(a,b){var c=b.timings;return["blocked","dns","connect","send","wait","receive"].reduce(function(d,f){var g=j(f,b,d,a);if(g.end&&g.start>=g.end)return d;if("connect"===f&&c.ssl&&c.ssl!==-1){var h=parseInt(b._ssl_start,10)||g.start,i=parseInt(b._ssl_end,10)||g.start+c.ssl,k=parseInt(b._ssl_start,10)?g.start:i;return d.concat([e("ssl",h,i)]).concat([e(f,k,g.end)])}return d.concat([e(f,g.start,g.end)])},[])}function j(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:i,start:h}}var k=a("../helpers/misc");c.transformDoc=g,c.transformPage=h},{"../helpers/misc":5}],11:[function(a,b,c){"use strict";function d(a){return"block-"+a}function e(a){return"block-"+a}c.requestTypeToCssClass=d,c.timingTypeToCssClass=e},{}],12:[function(a,b,c){"use strict";function d(a,b){var c=a.rawResource;return[["Request Number","#"+b],["Started",new Date(c.startedDateTime).toLocaleString()+(a.start>0?" ("+l(a.start)+" after page request started)":"")],["Duration",l(c.time)],["Error/Status Code",c.response.status+" "+c.response.statusText],["Server IPAddress",c.serverIPAddress],["Connection",c.connection],["Browser Priority",c._priority||c._initialPriority],["Was pushed",c._was_pushed],["Initiator (Loaded by)",c._initiator],["Initiator Line",c._initiator_line],["Host",i.getHeader(c.request.headers,"Host")],["IP",c._ip_addr],["Client Port",c._client_port],["Expires",c._expires],["Cache Time",c._cache_time],["CDN Provider",c._cdn_provider],["ObjectSize",c._objectSize],["Bytes In (downloaded)",q(c,"bytesIn")],["Bytes Out (uploaded)",q(c,"bytesOut")],["JPEG Scan Count",p(c,"jpeg_scan_count")],["Gzip Total",q(c,"gzip_total")],["Gzip Save",q(c,"gzip_save")],["Minify Total",q(c,"minify_total")],["Minify Save",q(c,"minify_save")],["Image Total",q(c,"image_total")],["Image Save",q(c,"image_save")]]}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],["Bytes Out (uploaded)",q(a,"bytesOut")],["Headers Size",k(b.headersSize)],["Body Size",k(b.bodySize)],["Comment",b.comment],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"),["Querystring parameters count",b.queryString.length],["Cookies count",b.cookies.length]]}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){return[a,m(i.getHeader(d,a))]},g=i.getHeader(d,"Content-Length"),h=i.getHeader(d,"Content-Type");return a._contentType&&a._contentType!==h&&(h=h+" | "+a._contentType),[["Status",b.status+" "+b.statusText],["HTTP Version",b.httpVersion],["Bytes In (downloaded)",q(a,"bytesIn")],["Header Size",k(b.headersSize)],["Body Size",k(b.bodySize)],["Content-Type",h],e("Cache-Control"),e("Content-Encoding"),f("Expires"),f("Last-Modified"),e("Pragma"),["Content-Length",n(g,k)],["Content Size",g!==c.size.toString()?k(c.size):""],["Content Compression",k(c.compression)],e("Connection"),e("ETag"),e("Accept-Patch"),e("Age"),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",b.redirectURL],["Comment",b.comment]]}function g(a){var b=a.rawResource.timings;return[["Total",a.total+" ms"],["Blocked",l(b.blocked)],["DNS",l(b.dns)],["Connect",l(b.connect)],["SSL (TLS)",l(b.ssl)],["Send",l(b.send)],["Wait",l(b.wait)],["Receive",l(b.receive)]]}function h(a,b){var c=b.rawResource,h=c.request.headers,i=c.response.headers,j=function(a){return[a.name,a.value]};return{general:d(b,a),request:e(c),requestHeaders:h.map(j),response:f(c),responseHeaders:i.map(j),timings:g(b)}}var i=a("../../helpers/har"),j=function(a,b){if(isFinite(a)&&!(a<=0))return b(a)},k=function(a){return j(a,function(a){return a+" byte (~"+Math.round(a/1024*10)/10+"kb)"})},l=function(a){return j(a,function(a){return a+" ms"})},m=function(a){if(!a)return"";var b=new Date(a);return a+" </br>(local time: "+b.toLocaleString()+")"},n=function(a,b){var c=parseInt(a,10);return j(c,b)},o=function(a,b){return a[b]||a["_"+b]||a.request[b]||a.request["_"+b]||""},p=function(a,b){var c=o(a,b);return"0"!==c?c:""},q=function(a,b){var c=parseInt(o(a,b),10);return isNaN(c)||c<=0?"":k(c)};c.getKeys=h},{"../../helpers/har":2}],13:[function(a,b,c){"use strict";function d(a,b){void 0===b&&(b=!1);var c=function(a){if(!b)return"";var c=a.toLowerCase().replace(/[^a-z-]/g,"");return'class="'+(c||"no-colour")+'"'},d=function(a){var b=a[1];return"string"==typeof b&&b.length>0||"number"==typeof b&&!(0===b||b===-1)};return a.filter(d).map(function(a){return"\n <dt "+c(a[0])+">"+a[0]+"</dt>\n <dd>"+a[1]+"</dd>\n "}).join("")}function e(a,b){if(void 0===b&&(b=!0),""===a.trim())return"";var c=b?"<dl>"+a+"</dl>":a;return'<div class="tab">\n '+c+"\n </div>"}function f(a,b){if("image"!==b.requestType)return"";var c='<img class="preview" style="max-height:'+(a-100)+'px"\n data-src="'+b.rawResource.request.url+'" />';return e(c,!1)}function g(a,b){return b?'<li><button class="tab-button">'+a+"</button></li>":""}function h(a,b,c){var h=document.createElement("html"),j=document.createElement("body");j.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),h.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/xmlns/");var k=i.getKeys(a,b),l=e(d(k.general)),m=e(d(k.timings,!0)),n=d(k.request),o=d(k.requestHeaders),p=d(k.response),q=d(k.responseHeaders),r=f(c,b);return j.innerHTML='\n <div class="wrapper">\n <header class="type-'+b.requestType+'">\n <h3><strong>#'+a+"</strong> "+b.name+'</h3>\n <nav class="tab-nav">\n <ul>\n '+g("General",l)+'\n <li><button class="tab-button">Request</button></li>\n <li><button class="tab-button">Response</button></li>\n '+g("Timings",m)+'\n <li><button class="tab-button">Raw Data</button></li>\n '+g("Preview",r)+"\n </ul>\n </nav>\n </header>\n "+l+'\n <div class="tab">\n <dl>\n '+n+"\n </dl>\n <h2>All Request Headers</h2>\n <dl>\n "+o+'\n </dl>\n </div>\n <div class="tab">\n <dl>\n '+p+"\n </dl>\n <h2>All Response Headers</h2>\n <dl>\n "+q+"\n </dl>\n </div>\n "+m+'\n <div class="tab">\n <pre><code>'+JSON.stringify(b.rawResource,null,2)+"</code></pre>\n </div>\n "+r+"\n </div>\n ",h.appendChild(j),h}var i=a("./extract-details-keys");c.createDetailsBody=h},{"./extract-details-keys":12}],14:[function(a,b,c){"use strict";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)}}),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.index,f,a,d.entry,d.onClose),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}();Object.defineProperty(c,"__esModule",{value:!0}),c.default=f},{"../../helpers/dom":1,"./svg-details-overlay":16}],15:[function(a,b,c){"use strict";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}();Object.defineProperty(c,"__esModule",{value:!0}),c.default=d},{}],16:[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("X",{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,g,j){var k=g.rawResource._number||a+1,l=h.newG("outer-info-overlay-holder"),m=f(b,c),n=h.newForeignObject({height:c,width:"100%",x:"0",y:b}),o=e(b);o.addEventListener("click",function(){return j(a,m)});var p=i.createDetailsBody(k,g,c),q=p.getElementsByClassName("tab-button"),r=p.getElementsByClassName("tab"),s=function(a){d(r,function(b,c){b.style.display=a===c?"block":"none",q.item(c).classList.toggle("active",a===c)})};return d(q,function(a,b){a.addEventListener("click",function(){s(b)})}),s(0),n.appendChild(p),m.appendChild(n),m.appendChild(o),l.appendChild(m),l}var h=a("../../helpers/svg"),i=a("./html-details-body");c.forEach=d,c.createRowInfoOverlay=g},{"../../helpers/svg":6,"./html-details-body":13}],17:[function(a,b,c){"use strict";function d(a,b){return{type:a,title:b,width:20}}function e(a){var b=a.rawResource;if(b.response.redirectURL){var c=encodeURI(b.response.redirectURL.split("?")[0]||"");return d("err3xx",b.response.status+" response status: Redirect to "+c+"...")}return g.isInStatusCodeRange(b,400,499)?d("err4xx",b.response.status+" response status: "+b.response.statusText):g.isInStatusCodeRange(b,500,599)?d("err5xx",b.response.status+" response status: "+b.response.statusText):204===b.response.status?d("plain","No content"):d(a.requestType,a.requestType)}function f(a,b){var c=a.rawResource,e=[];return g.isPush(a)&&e.push(d("push","Response was pushed by the server")),b&&!g.isSecure(a)&&e.push(d("noTls","Insecure Connection")),g.hasCacheIssue(a)&&e.push(d("noCache","Response not cached")),g.hasCompressionIssue(a)&&e.push(d("noGzip","no gzip")),!c.response.content.mimeType&&g.isInStatusCodeRange(c,200,299)&&e.push(d("warning","No MIME Type defined")),e}var g=a("../../helpers/heuristics");c.getMimeTypeIcon=e,c.getIndicatorIcons=f},{"../../helpers/heuristics":3}],18:[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=500,e=5/d*100,f=a.y+a.height/1.5,g=Math.round(b)+" ms",h=(a.x+a.width)/a.unit+e,i=q.newTextEl(g,{x:p.roundNumber(h)+"%",y:f}),j=8*g.length;return h+j/d*100>100&&(h=c/a.unit-e,i=q.newTextEl(g,{x:p.roundNumber(h)+"%",y:f},{textAnchor:"end"})),i}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}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":5,"../../helpers/svg":6,"../../transformers/styling-converters":11}],19:[function(a,b,c){"use strict";function d(a){var b=["row-item"];return f.isInStatusCodeRange(a,500,599)?b.push("status5xx"):f.isInStatusCodeRange(a,400,499)?b.push("status4xx"):304!==a.response.status&&f.isInStatusCodeRange(a,300,399)&&b.push("status3xx"),b.join(" ")}function e(a,b,c,e,f,n,o){var p=f.y,q=f.height,r=a.options.leftColumnWith,s=i.newG(d(n.rawResource)),t=i.newSvg("left-fixed-holder",{width:r+"%",x:"0"}),u=i.newSvg("flex-scale-waterfall",{width:100-r+"%",x:r+"%"}),v=k.createRect(f,n.segments,n.total),w=k.createNameRowBg(p,q,o),x=k.createRowBg(p,q,o),y=k.createBgStripe(p,q,b%2===0),z=m+c;if(a.options.showMimeTypeIcon){var A=j.getMimeTypeIcon(n);z-=A.width,w.appendChild(g[A.type](z,p+3,A.title))}a.options.showIndicatorIcons&&j.getIndicatorIcons(n,a.docIsSsl).forEach(function(a){z-=a.width,w.appendChild(g[a.type](z,p+3,a.title))}),z=m+c;var B=""+(b+1),C=k.createRequestNumberLabel(z,p,B,q,e);z+=e+4;var D=k.createRequestLabelClipped(z,p,h.resourceUrlFormatter(n.name,40),q),E=k.createRequestLabelFull(z,p,n.name,q);return x.appendChild(v),k.appendRequestLabels(w,C,D,E),u.appendChild(x),t.appendChild(l.cloneNode(!0)),t.appendChild(w),s.appendChild(y),s.appendChild(u),s.appendChild(t),s}var f=a("../../helpers/heuristics"),g=a("../../helpers/icons"),h=a("../../helpers/misc"),i=a("../../helpers/svg"),j=a("./svg-indicators"),k=a("./svg-row-subcomponents"),l=i.newClipPath("titleClipPath");l.appendChild(i.newRect({height:"100%",width:"100%"}));var m=3;c.createRow=e},{"../../helpers/heuristics":3,"../../helpers/icons":4,"../../helpers/misc":5,"../../helpers/svg":6,"./svg-indicators":17,"./svg-row-subcomponents":18}],20:[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")}}}}var f=a("../../helpers/dom"),g=a("../../helpers/svg");c.createAlignmentLines=d,c.makeHoverEvtListeners=e},{"../../helpers/dom":1,"../../helpers/svg":6}],21:[function(a,b,c){"use strict";function d(a,b,c){void 0===c&&(c=200);for(var d=g.newG("time-scale full-width"),e=1e3/c,f=b/1e3,h=b/c,j=0;j<=h;j++){var k=j%e===0,l=j/e;i(a,d,f,l,k)}return d}function e(a,b){var c=g.newRect({height:a.diagramHeight,width:(b.total||1)/a.unit+"%",x:(b.start||.001)/a.unit+"%",y:0},h.requestTypeToCssClass(b.requestType));return c.appendChild(g.newTitle(b.name)),c}var f=a("../../helpers/misc"),g=a("../../helpers/svg"),h=a("../../transformers/styling-converters"),i=function(a,b,c,d,e){void 0===e&&(e=!1);var h,i=a.diagramHeight,j=100/c,k="sub-second-line";if(e){var l=d>c-.2;k="second-line";var m=f.roundNumber(j*d)+.5+"%",n={};l&&(m=f.roundNumber(j*d)-.5+"%",n["text-anchor"]="end"),h=g.newTextEl(d+"s",{x:m,y:i},n)}var o=f.roundNumber(j*d)+"%",p=g.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+")"),e&&h.setAttribute("transform","translate(0, "+b+")")}),b.appendChild(p),e&&b.appendChild(h)};c.createTimeScale=d,c.createBgRect=e},{"../../helpers/misc":5,"../../helpers/svg":6,"../../transformers/styling-converters":11}],22:[function(a,b,c){"use strict";function d(a,b){var c=a.diagramHeight,d=g.newG("marker-holder",{transform:"scale(1, 1)"});return b.forEach(function(h,i){var j=f.roundNumber(h.startTime/a.unit),k=g.newG("mark-holder type-"+h.name.toLowerCase()),l=g.newG("line-holder"),m=g.newG("line-label-holder"),n=g.newTextEl(h.name,{x:j+"%",y:c+25});h.x=j;var o=g.newLine({x1:j+"%",x2:j+"%",y1:0,y2:c}),p=b[i-1],q=2.5;p&&h.x-p.x<q&&(n.setAttribute("x",p.x+q+"%"),h.x=p.x+q);var r=g.newLine({x1:j+"%",x2:h.x+"%",y1:c,y2:c+23});l.appendChild(o),l.appendChild(r),a.pubSub.subscribeToOverlayChanges(function(a){var b=a.combinedOverlayHeight,d=(c+b)/c;o.setAttribute("transform","scale(1, "+d+")"),m.setAttribute("transform","translate(0, "+b+")"),r.setAttribute("transform","translate(0, "+b+")")});var s=!1,t=function(){s||(s=!0,e.addClass(l,"active"),k.parentNode.appendChild(k))},u=function(){s=!1,e.removeClass(l,"active")};n.addEventListener("mouseenter",t),n.addEventListener("mouseleave",u),m.appendChild(n),k.appendChild(g.newTitle(h.name+" ("+Math.round(h.startTime)+"ms)")),k.appendChild(l),k.appendChild(m),d.appendChild(k)}),d}var e=a("../../helpers/dom"),f=a("../../helpers/misc"),g=a("../../helpers/svg");c.createMarks=d},{"../../helpers/dom":1,"../../helpers/misc":5,"../../helpers/svg":6}],23:[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,i.getNodeTextWidth(i.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=h.documentIsSecure(a),i={diagramHeight:f,overlayManager:void 0,pubSub:new l.default,unit:e,options:b,docIsSsl:g};return i.overlayManager=new k.default(i,d),i}function g(a,b){function c(){return(t+s.overlayManager.getCombinedOverlayHeight()).toString()+"px"}function g(a,c){var d=a.total||1,e=b.rowHeight*c,f=a.start||.001,g=450,h={cssClass:j.requestTypeToCssClass(a.requestType),height:b.rowHeight,hideOverlay:b.showAlignmentHelpers?k.onMouseLeavePartial:void 0,label:a.name+" ("+a.start+"ms - "+a.end+"ms | total: "+a.total+"ms)",showOverlay:b.showAlignmentHelpers?k.onMouseEnterPartial:void 0,unit:s.unit,width:d,x:f,y:e},i=function(){s.overlayManager.toggleOverlay(c,e+b.rowHeight,g,a,E)},l=n.createRow(s,c,B,D,h,a,i);E.push(l),w.appendChild(l)}var h,k,l=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)}),r=i.newG("overlays"),s=f(a,b,l,r),t=e(a.marks,s.diagramHeight),u=i.newSvg("water-fall-chart",{height:t}),v=i.newSvg("scale-and-marks-holder",{width:100-b.leftColumnWith+"%",x:b.leftColumnWith+"%"}),w=i.newG("rows-holder");if(b.showAlignmentHelpers){h=i.newG("hover-overlays");var x=o.createAlignmentLines(s.diagramHeight);h.appendChild(x.startline),h.appendChild(x.endline),k=o.makeHoverEvtListeners(x)}v.appendChild(p.createTimeScale(s,a.durationMs)),v.appendChild(q.createMarks(s,a.marks)),a.lines.forEach(function(a){u.appendChild(p.createBgRect(s,a))});var y=m.getMimeTypeIcon(l[0]).width,z=0;if(b.showMimeTypeIcon&&(z+=1),b.showIndicatorIcons){var A=l.map(function(a){return m.getIndicatorIcons(a,s.docIsSsl).length});z+=Math.max.apply(null,A)}var B=z*y,C=d(l.length),D=i.getNodeTextWidth(i.newTextEl(""+C),!0),E=[];return s.pubSub.subscribeToOverlayChanges(function(){u.style.height=c()}),l.forEach(g),b.showAlignmentHelpers&&v.appendChild(h),u.appendChild(v),u.appendChild(w),u.appendChild(r),u}var h=a("../helpers/heuristics"),i=a("../helpers/svg"),j=a("../transformers/styling-converters"),k=a("./details-overlay/overlay-manager"),l=a("./details-overlay/pub-sub"),m=a("./row/svg-indicators"),n=a("./row/svg-row"),o=a("./sub-components/svg-alignment-helper"),p=a("./sub-components/svg-general-components"),q=a("./sub-components/svg-marks");c.createWaterfallSvg=g},{"../helpers/heuristics":3,"../helpers/svg":6,"../transformers/styling-converters":11,"./details-overlay/overlay-manager":14,"./details-overlay/pub-sub":15,"./row/svg-indicators":17,"./row/svg-row":19,"./sub-components/svg-alignment-helper":20,"./sub-components/svg-general-components":21,"./sub-components/svg-marks":22}]},{},[8])(8)}); |
import { documentIsSecure } from "../helpers/heuristics"; | ||
import * as svg from "../helpers/svg"; | ||
import { requestTypeToCssClass } from "../transformers/styling-converters"; | ||
import PubSub from "./details-overlay/overlay-changes-pub-sub"; | ||
import OverlayManager from "./details-overlay/svg-details-overlay-manager"; | ||
import OverlayManager from "./details-overlay/overlay-manager"; | ||
import PubSub from "./details-overlay/pub-sub"; | ||
import * as indicators from "./row/svg-indicators"; | ||
@@ -142,3 +142,3 @@ import * as row from "./row/svg-row"; | ||
let showDetailsOverlay = () => { | ||
context.overlayManager.openOverlay(i, y + options.rowHeight, accordionHeight, entry, barEls); | ||
context.overlayManager.toggleOverlay(i, y + options.rowHeight, accordionHeight, entry, barEls); | ||
}; | ||
@@ -145,0 +145,0 @@ let rowItem = row.createRow(context, i, maxIconsWidth, maxNumberWidth, rectData, entry, showDetailsOverlay); |
{ | ||
"name": "perf-cascade", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"description": "Har file visualizer", | ||
@@ -11,3 +11,3 @@ "main": "./index.js", | ||
"build": "grunt releaseBuild", | ||
"start": "live-server --wait=50 --open=src/index.html --ignore=src/ts/", | ||
"start": "live-server --watch=build/stage/,src/index.html --ignore=build/stage/temp/ --open=src/index.html", | ||
"clearJS": "find ./src/ts -iname \"*.js\" -delete && find ./src/ts -iname \"*.map\" -delete", | ||
@@ -52,6 +52,6 @@ "ghPages": "grunt ghPages", | ||
"load-grunt-config": "^0.19.2", | ||
"tsify": "^3.0.0", | ||
"tslint": "^4.3.1", | ||
"tsify": "^3.0.1", | ||
"tslint": "^4.4.2", | ||
"typescript": "^2.1.5" | ||
} | ||
} |
@@ -31,4 +31,6 @@ import { OverlayChangeEvent, OverlayChangeSubscriber } from "./open-overlay"; | ||
openOverlay: (index: number, y: number, accordionHeight: number, entry: WaterfallEntry, barEls: SVGGElement[]) => void; | ||
/** toggles an overlay - rerenders others */ | ||
toggleOverlay: (index: number, y: number, accordionHeight: number, entry: WaterfallEntry, barEls: SVGGElement[]) => void; | ||
/** closes on overlay - rerenders others internally */ | ||
closeOverlay: (index: number, accordionHeight: number, barEls: SVGGElement[]) => void; | ||
} |
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
529913
11297