require.pause(); require.def("preview/pageList",["domplate/domplate","core/lib","core/trace","preview/requestList"],function(n,b,h,m){with(n){n=function(j){this.input=j};n.prototype=domplate({tableTag:TABLE({"class":"pageTable",cellpadding:0,cellspacing:0,onclick:"$onClick",_repObject:"$input"},TBODY(TAG("$rowTag",{groups:"$input.log.pages"}))),rowTag:FOR("group","$groups",TR({"class":"pageRow",_repObject:"$group"},TD({"class":"groupName pageCol"},SPAN({"class":"pageName"},"$group|getPageTitle")))),bodyTag:TR({"class":"pageInfoRow", style:"height:auto;"},TD({"class":"pageInfoCol"})),getPageTitle:function(j){return b.cropString(j.title,100)},getPageID:function(j){return"["+j.id+"]"},onClick:function(j){var a=$.event.fix(j||window.event);if(b.isLeftClick(j))if(a=b.getAncestorByClass(a.target,"pageRow")){this.toggleRow(a);b.cancelEvent(j)}},toggleRow:function(j,a){if(!(b.hasClass(j,"opened")&&a)){b.toggleClass(j,"opened");if(b.hasClass(j,"opened")){a=this.bodyTag.insertRows({},j)[0];(new m(this.input)).render(a.firstChild,j.repObject)}else{a= j.nextSibling;j.parentNode.removeChild(a)}}},expandAll:function(j){for(j=j.firstChild.firstChild;j;){hasClass(j,"pageRow")&&this.toggleRow(j,true);j=j.nextSibling}},getPageRow:function(j){for(var a=b.getElementsByClass(this.element.parentNode,"pageRow"),c=0;c=a.top&&e<=a.top+a.height&&c>=a.left&&c<=a.left+a.width};b.cloneArray=function(a,c){var e=[];if(c)for(var f=0;f2?2:c;c=c<-1?-1:c;if(c==-1)return a+" B";c=Math.pow(10,c);return a==-1||a==undefined?"?":a==0?"0":a<1024?a+" B":a<1048576?Math.round(a/1024*c)/c+" KB":Math.round(a/1048576*c)/c+" MB"};b.formatTime=function(a){return a==-1?"-":a<1E3?a+"ms":a<6E4?Math.ceil(a/10)/100+"s":Math.ceil(a/6E4*100)/100+"m"};b.formatNumber=function(a){a+="";var c=a.split(".");a=c[0];c=c.length>1?"."+c[1]:"";for(var e=/(\d+)(\d{3})/;e.test(a);)a=a.replace(e,"$1,$2");return a+c};b.formatString= function(a){var c=b.cloneArray(arguments);a=c.shift();for(var e=0;e"+a}else{f.name=a.name;f.path=a.path}}else{f.hasOwnProperty("path")||(f.path="data:");f.hasOwnProperty("name")||(f.name=decodeURIComponent(f.encodedContent.substr(0,200)).replace(/\s*$/,""))}return f};b.splitURLTrue=function(a){var c=/:\/{1,3}(.*?)\/([^\/]*?)\/?($|\?.*)/.exec(a);return c?c[2]?{path:c[1],name:c[2]+c[3]}:{path:c[1],name:c[1]}:{name:a,path:a}};b.getURLParameter=function(a){for(var c= window.location.search.substring(1).split("&"),e=0;e25E3&&!c)g=b.$STR("LargeData");f.push({name:e(d),value:e(g)})}else{d=a[l];f.push({name:e(d),value:""})}}catch(o){}f.sort(function(p,q){return p.name<=q.name?-1:1});return f};b.getBody=function(a){if(a.body)return a.body; if(a=a.getElementsByTagName("body")[0])return a;return null};b.getHead=function(a){return a.getElementsByTagName("head")[0]};b.getAncestorByClass=function(a,c){for(a=a;a;a=a.parentNode)if(b.hasClass(a,c))return a;return null};b.$=function(){return b.getElementByClass.apply(this,arguments)};b.getElementByClass=function(a){if(!a)return null;var c=b.cloneArray(arguments);c.splice(0,1);for(var e=a.firstChild;e;e=e.nextSibling){var f=b.cloneArray(c);f.unshift(e);if(b.hasClass.apply(this,f))return e;else if(f= b.getElementByClass.apply(this,f))return f}return null};b.getElementsByClass=function(a){function c(l,k,d){for(l=l.firstChild;l;l=l.nextSibling){var g=b.cloneArray(k);g.unshift(l);b.hasClass.apply(null,g)&&d.push(l);c(l,k,d)}}var e=[],f=b.cloneArray(arguments);f.shift();c(a,f,e);return e};b.getChildByClass=function(a){for(var c=1;c=0){c=c.length;a.className=a.className.substr(0,e-1)+a.className.substr(e+c)}}};b.toggleClass=function(a,c){if(b.hasClass(a, c)){b.removeClass(a,c);return false}else{b.setClass(a,c);return true}};b.trim=function(a){return a.replace(/^\s*|\s*$/g,"")};b.wrapText=function(a,c){var e=/[^A-Za-z_$0-9'"-]/,f=[];a=b.splitLines(a);for(var l=0;l100;){var d=e.exec(k.substr(100,100));d=100+(d?d.index:0);var g=k.substr(0,d);k=k.substr(d);c||f.push("
");f.push(c?g:b.escapeHTML(g));c||f.push("
")}c||f.push("
");f.push(c?k:b.escapeHTML(k));c||f.push("
")}return f.join(c?"\n":"")}; b.insertWrappedText=function(a,c,e){c.innerHTML="
"+b.wrapText(a,e)+"
"};b.splitLines=function(a){var c=/\r\n|\r|\n/;if(a){if(a.split)return a.split(c)}else return[];return(a+"").split(c)};b.getPrettyDomain=function(a){return(a=/[^:]+:\/{1,3}(www\.)?([^\/]+)/.exec(a))?a[2]:""};b.escapeHTML=function(a){function c(e){switch(e){case "<":return"<";case ">":return">";case "&":return"&";case "'":return"'";case '"':return"""}return"?"}return String(a).replace(/[<>&"']/g,c)};b.cropString= function(a,c){a+="";var e=c?c/2:50;return a.length>c?b.escapeNewLines(a.substr(0,e)+"..."+a.substr(a.length-e)):b.escapeNewLines(a)};b.escapeNewLines=function(a){return a.replace(/\r/g,"\\r").replace(/\n/g,"\\n")};b.cloneJSON=function(a){if(a==null||typeof a!="object")return a;try{var c=a.constructor();for(var e in a)c[e]=cloneJSON(a[e]);return c}catch(f){n.exception(a)}return null};b.getOverflowParent=function(a){for(a=a.parentNode;a;a=a.offsetParent)if(a.scrollHeight>a.offsetHeight)return a};b.getElementBox= function(a){var c={};if(a.getBoundingClientRect){a=a.getBoundingClientRect();var e=b.isIE?document.body.clientTop||document.documentElement.clientTop:0,f=b.getWindowScrollPosition();c.top=Math.round(a.top-e+f.top);c.left=Math.round(a.left-e+f.left);c.height=Math.round(a.bottom-a.top);c.width=Math.round(a.right-a.left)}else{e=b.getElementPosition(a);c.top=e.top;c.left=e.left;c.height=a.offsetHeight;c.width=a.offsetWidth}return c};b.getElementPosition=function(a){var c=0,e=0;do{c+=a.offsetLeft;e+=a.offsetTop}while(a= a.offsetParent);return{left:c,top:e}};b.getWindowSize=function(){var a=0,c=0,e;if(typeof window.innerWidth=="number"){a=window.innerWidth;c=window.innerHeight}else if((e=document.documentElement)&&(e.clientHeight||e.clientWidth)){a=e.clientWidth;c=e.clientHeight}else if((e=document.body)&&(e.clientHeight||e.clientWidth)){a=e.clientWidth;c=e.clientHeight}return{width:a,height:c}};b.getWindowScrollSize=function(){var a=0,c=0,e;if(!b.isIEQuiksMode&&(e=document.documentElement)&&(e.scrollHeight||e.scrollWidth)){a= e.scrollWidth;c=e.scrollHeight}if((e=document.body)&&(e.scrollHeight||e.scrollWidth)&&(e.scrollWidth>a||e.scrollHeight>c)){a=e.scrollWidth;c=e.scrollHeight}return{width:a,height:c}};b.getWindowScrollPosition=function(){var a=0,c=0,e;if(typeof window.pageYOffset=="number"){a=window.pageYOffset;c=window.pageXOffset}else if((e=document.body)&&(e.scrollTop||e.scrollLeft)){a=e.scrollTop;c=e.scrollLeft}else if((e=document.documentElement)&&(e.scrollTop||e.scrollLeft)){a=e.scrollTop;c=e.scrollLeft}return{top:a, left:c}};b.addStyleSheet=function(a,c){if(!a.getElementById(c)){var e=a.createElement("link");e.type="text/css";e.rel="stylesheet";e.href=c;e.setAttribute("id",c);b.getHead(a).appendChild(e)}};return b}); require.def("i18n!nls/requestList",{root:{fromCache:"From Cache",menuBreakLayout:"Break Timeline Layout",menuOpenRequestInWindow:"Open Request in New Window",menuOpenResponseInWindow:"Open Response in New Window",request:"Request",requests:"Requests",tooltipSize:"%S (%S bytes)",tooltipZippedSize:"%S (%S bytes) - compressed",tooltipUnzippedSize:"%S (%S bytes) - uncompressed","request.Started":"Started","request.phase.Resolving":"DNS Lookup","request.phase.Connecting":"Connecting","request.phase.Blocking":"Blocking", "request.phase.Sending":"Sending","request.phase.Waiting":"Waiting","request.phase.Receiving":"Receiving",ContentLoad:"DOM Loaded",WindowLoad:"Page Loaded","page.event.Load":"Page Loaded",menuBreakTimeline:"Break Timeline Layout",menuOpenRequest:"Open Request in New Window",menuOpenResponse:"Open Response in New Window"}}); require.def("preview/requestList",["domplate/domplate","core/lib","i18n!nls/requestList","preview/harModel","core/cookies","preview/requestBody","domplate/infoTip","domplate/popupMenu"],function(n,b,h,m,j,a,c,e){with(n){n=function(d){this.input=d;c.addListener(this)};n.prototype=domplate({tableTag:TABLE({"class":"netTable",cellpadding:0,cellspacing:0,onclick:"$onClick"},TBODY(TR(TD({width:"20%"}),TD({width:"10%"}),TD({width:"10%"}),TD({width:"10%"}),TD({width:"50%"}),TD({width:"15px"})))),fileTag:FOR("file", "$files",TR({"class":"netRow loaded",$hasHeaders:"$file|hasResponseHeaders",$responseError:"$file|isError",$fromCache:"$file|isFromCache"},TD({"class":"netHrefCol netCol"},DIV({"class":"netHrefLabel netLabel",style:"margin-left: $file|getIndent\\px"},"$file|getHref"),DIV({"class":"netFullHrefLabel netHrefLabel netLabel",style:"margin-left: $file|getIndent\\px"},"$file|getFullHref")),TD({"class":"netStatusCol netCol"},DIV({"class":"netStatusLabel netLabel"},"$file|getStatus")),TD({"class":"netDomainCol netCol"}, DIV({"class":"netDomainLabel netLabel"},"$file|getDomain")),TD({"class":"netSizeCol netCol"},DIV({"class":"netSizeLabel netLabel"},"$file|getSize")),TD({"class":"netTimeCol netCol"},DIV({"class":"netTimelineBar"}," ",DIV({"class":"netResolvingBar netBar",style:"left: $file.offset"}),DIV({"class":"netConnectingBar netBar",style:"left: $file.offset"}),DIV({"class":"netBlockingBar netBar",style:"left: $file.offset"}),DIV({"class":"netSendingBar netBar",style:"left: $file.offset"}),DIV({"class":"netWaitingBar netBar", style:"left: $file.offset"}),DIV({"class":"netContentLoadBar netBar",style:"left: $file.offset"}),DIV({"class":"netWindowLoadBar netBar",style:"left: $file.offset"}),DIV({"class":"netReceivingBar netBar",style:"left: $file.offset; width: $file.width"},SPAN({"class":"netTimeLabel"},"$file|getElapsedTime")))),TD({"class":"netOptionsCol netCol"},DIV({"class":"netOptionsLabel netLabel",onclick:"$onOpenOptions"})))),headTag:TR({"class":"netHeadRow"},TD({"class":"netHeadCol",colspan:6},DIV({"class":"netHeadLabel"}, "$doc.rootFile.href"))),netInfoTag:TR({"class":"netInfoRow"},TD({"class":"netInfoCol",colspan:6})),summaryTag:TR({"class":"netRow netSummaryRow"},TD({"class":"netCol",colspan:3},DIV({"class":"netCountLabel netSummaryLabel"},"-")),TD({"class":"netTotalSizeCol netCol"},DIV({"class":"netTotalSizeLabel netSummaryLabel"},"0KB")),TD({"class":"netTotalTimeCol netCol"},DIV({"class":"",style:"width: 100%"},DIV({"class":"netCacheSizeLabel netSummaryLabel"},"(",SPAN("0KB"),SPAN(" "+h.fromCache),")"),DIV({"class":"netTimeBar"}, SPAN({"class":"netTotalTimeLabel netSummaryLabel"},"0ms")))),TD({"class":"netCol"})),getIndent:function(){return 0},isError:function(d){d=Math.floor(d.response.status/100);return d==4||d==5},isFromCache:function(d){return d.cache&&d.cache.afterRequest},getHref:function(d){return d.request.method+" "+b.getFileName(this.getFullHref(d))},getFullHref:function(d){return d.request.url},getStatus:function(d){return(d.response.status>0?d.response.status+" ":"")+d.response.statusText},getDomain:function(d){return b.getPrettyDomain(d.request.url)}, getSize:function(d){var g=d.response.bodySize;return this.formatSize(g&&g!=-1?g:d.response.content.size)},hasResponseHeaders:function(){return true},formatSize:function(d){return b.formatSize(d)},getElapsedTime:function(d){return b.formatTime(d.time)},onClick:function(d){var g=$.event.fix(d||window.event);if(b.isLeftClick(d))if(g=b.getAncestorByClass(g.target,"netRow")){this.toggleHeadersRow(g);b.cancelEvent(d)}},toggleHeadersRow:function(d){if(b.hasClass(d,"hasHeaders")){var g=d.repObject;b.toggleClass(d, "opened");if(b.hasClass(d,"opened")){var o=this.netInfoTag.insertRows({},d)[0];o.repObject=g;(new a).render(o.firstChild,g)}else{o=d.nextSibling;b.getElementByClass(o,"netInfoBody");d.parentNode.removeChild(o)}}},onOpenOptions:function(d){var g=$.event.fix(d||window.event);b.cancelEvent(d);if(b.isLeftClick(d)){d=g.target;g=this.getOptionsMenuItems(b.getAncestorByClass(d,"netRow"));(new e({id:"requestContextMenu",items:g})).showPopup(d)}},getOptionsMenuItems:function(d){var g=d.repObject;return[{label:h.menuBreakTimeline, type:"checkbox",disabled:false,checked:d.phase.files[0]==g,command:b.bind(this.breakLayout,this,d)},"-",{label:h.menuOpenRequest,command:b.bind(this.openRequest,this,g)},{label:h.menuOpenResponse,disabled:!g.response.content.text,command:b.bind(this.openResponse,this,g)}]},openRequest:function(d,g){window.open(g.request.url)},openResponse:function(d,g){d=g.response.content.mimeType;var o=g.response.content.encoding;window.open("data:"+(d?d:"")+";"+(o?o:"")+","+g.response.content.text)},breakLayout:function(d, g){d=g.repObject;g.breakLayout=g.phase.files[0]!=d;g=b.getAncestorByClass(g,"netTable");d=m.getParentPage(this.input,d);this.updateLayout(g,d)},updateLayout:function(d,g){var o=m.getPageEntries(this.input,g);this.table=d;d=this.firstRow=this.table.firstChild.firstChild.nextSibling;this.phases=[];var p=j.getCookie("phaseInterval");p||(p=1E3);var q=null,t=g?b.parseISO8601(g.startedDateTime):null,s=0,r=0;if(g&&g.pageTimings){r=g.pageTimings;s=r.onLoad>0?r.onLoad:0;r=r.onContentLoad>0?r.onContentLoad: 0}for(var v=0;v=p&&x>t+s;if(typeof d.breakLayout=="boolean")if(!q||d.breakLayout)q=this.startPhase(u);else q.addFile(u);else if(!q||w)q=this.startPhase(u);else q.addFile(u);if(q.startTime==undefined||q.startTime>x)q.startTime=x;if(q.endTime==undefined||q.endTime0)this.contentLoadBarOffset=((p+q-o.startTime)/this.phaseElapsed*100).toFixed(3);d=d.pageTimings.onLoad;if(g.phase==this.phases[0]&&d>0)this.windowLoadBarOffset=((p+d-o.startTime)/this.phaseElapsed*100).toFixed(3)}return o},updateTimeline:function(d){for(var g,o=this.firstRow;o;o=o.nextSibling){var p= o.repObject;if(p)if(!b.hasClass(o,"netInfoRow")){g=this.calculateFileTimes(d,p,g);o.phase=p.phase;delete p.phase;p=b.getElementByClass(o,"netResolvingBar");var q=p.nextSibling,t=q.nextSibling,s=t.nextSibling,r=s.nextSibling,v=r.nextSibling,u=v.nextSibling,x=u.nextSibling;p.style.left=q.style.left=t.style.left=s.style.left=r.style.left=x.style.left=this.barOffset+"%";p.style.width=this.barResolvingWidth+"%";q.style.width=this.barConnectingWidth+"%";t.style.width=this.barBlockingWidth+"%";s.style.width= this.barSendingWidth+"%";r.style.width=this.barWaitingWidth+"%";x.style.width=this.barReceivingWidth+"%";if(this.contentLoadBarOffset){v.style.left=this.contentLoadBarOffset+"%";v.style.display="block";this.contentLoadBarOffset=null}if(this.windowLoadBarOffset){u.style.left=this.windowLoadBarOffset+"%";u.style.display="block";this.windowLoadBarOffset=null}}}},updateSummaries:function(d){for(var g=this.phases,o=0,p=0,q=0,t=0,s=0;s 0)t+=" (onload: "+b.formatTime(d.pageTimings.onLoad)+")";q.innerHTML=t}},formatRequestCount:function(d){return d+" "+(d==1?h.request:h.requests)},summarizePhase:function(d){var g=0,o=0,p="all";if(p=="all")p=null;for(var q=0,t=0,s=0,r=0;rs)s=v}}return{cachedSize:g,totalSize:o, totalTime:s-t,fileCount:q}},showInfoTip:function(d,g){var o=b.getAncestorByClass(g,"netRow");if(o)if(b.getAncestorByClass(g,"netBar")){d.setAttribute("multiline",true);this.infoTipURL=g=o.repObject.startedDateTime+"-nettime";return this.populateTimeInfoTip(d,o)}else if(b.hasClass(g,"netSizeLabel")){this.infoTipURL=g=o.repObject.startedDateTime+"-netsize";return this.populateSizeInfoTip(d,o)}},populateTimeInfoTip:function(d,g){l.render(this.input,g,d);return true},populateSizeInfoTip:function(d,g){k.render(this.input, g,d);return true},render:function(d,g){var o=m.getPageEntries(this.input,g);if(o.length){this.table=this.tableTag.replace({},d,this);this.summaryRow=this.summaryTag.insertRows({},this.table.firstChild)[0];this.fileTag.insertRows({files:o},this.table.firstChild.lastChild.previousSibling,this);this.updateLayout(this.table,g)}}});var f=function(d){this.files=[];this.addFile(d)};f.prototype={addFile:function(d){this.files.push(d);d.phase=this},getLastStartTime:function(){return this.files[this.files.length- 1].startedDateTime}};var l=domplate({tableTag:TABLE({"class":"timeInfoTip"},TBODY()),timingsTag:FOR("time","$timings",TR({"class":"timeInfoTipRow",$collapsed:"$time|hideBar"},TD({"class":"$time|getBarClass timeInfoTipBar",$loaded:"$time.loaded",$fromCache:"$time.fromCache"}),TD({"class":"timeInfoTipCell startTime"},"$time.start|formatStartTime"),TD({"class":"timeInfoTipCell elapsedTime"},"$time.elapsed|formatTime"),TD("$time|getLabel"))),startTimeTag:TR(TD(),TD("$startTime.time|formatStartTime"), TD({colspan:2},"$startTime|getLabel")),separatorTag:TR(TD({colspan:4,height:"10px"})),eventsTag:FOR("event","$events",TR({"class":"timeInfoTipEventRow"},TD({"class":"timeInfoTipBar",align:"center"},DIV({"class":"$event|getBarClass timeInfoTipEventBar"})),TD("$event.start|formatStartTime"),TD({colspan:2},"$event|getLabel"))),hideBar:function(d){return!d.elapsed&&d.bar=="request.phase.Blocking"},getBarClass:function(d){return"net"+d.bar.substr(d.bar.lastIndexOf(".")+1)+"Bar"},formatTime:function(d){return b.formatTime(d)}, formatStartTime:function(d){var g=d>0,o=b.formatTime(Math.abs(d));if(!d)return o;return(g>0?"+":"-")+o},getLabel:function(d){return h[d.bar]},render:function(d,g,o){var p=g.repObject;var q=(d=m.getParentPage(d,p))?b.parseISO8601(d.startedDateTime):null,t=b.parseISO8601(p.startedDateTime);o=l.tableTag.replace({},o);var s={};s.time=t-g.phase.startTime;s.bar="request.Started";this.startTimeTag.insertRows({startTime:s},o.firstChild);this.separatorTag.insertRows({},o.firstChild);g=0;s=[];var r=p.timings.dns, v=p.timings.connect,u=p.timings.blocked,x=p.timings.send,w=p.timings.wait,y=p.timings.receive;r>=0&&s.push({bar:"request.phase.Resolving",elapsed:r,start:g});if(v>=0)s.push({bar:"request.phase.Connecting",elapsed:v,start:g+=r<0?0:r});if(u>=0)s.push({bar:"request.phase.Blocking",elapsed:u,start:g+=v<0?0:v});if(x>=0)s.push({bar:"request.phase.Sending",elapsed:x,start:g+=u<0?0:u});if(w>=0)s.push({bar:"request.phase.Waiting",elapsed:w,start:g+=x<0?0:x});if(y>=0)s.push({bar:"request.phase.Receiving",elapsed:y, start:g+(w<0?0:w),loaded:p.loaded,fromCache:p.fromCache});this.timingsTag.insertRows({timings:s},o.firstChild);p=[];d&&d.pageTimings.onContentLoad>0&&p.push({bar:"ContentLoad",start:q+d.pageTimings.onContentLoad-t});d&&d.pageTimings.onLoad>0&&p.push({bar:"WindowLoad",start:q+d.pageTimings.onLoad-t});if(p.length){this.separatorTag.insertRows({},o.firstChild);this.eventsTag.insertRows({events:p},o.firstChild);return true}}}),k=domplate({tag:DIV({"class":"sizeInfoTip"},"$file|getSize"),zippedTag:DIV(DIV({"class":"sizeInfoTip"}, "$file|getBodySize"),DIV({"class":"sizeInfoTip"},"$file|getContentSize")),getSize:function(d){d=d.response.bodySize;return b.formatString(h.tooltipSize,[b.formatSize(d),d.size<0?"?":b.formatNumber(d)])},getBodySize:function(d){d=d.response.bodySize;return b.formatString(h.tooltipZippedSize,[b.formatSize(d),d.size<0?"?":b.formatNumber(d)])},getContentSize:function(d){d=d.response.content.size;return b.formatString(h.tooltipUnzippedSize,[b.formatSize(d),d.size<0?"?":b.formatNumber(d)])},render:function(d, g,o){d=g.repObject;if(d.response.bodySize==d.response.content.size)return this.tag.replace({file:d},o);return this.zippedTag.replace({file:d},o)}});return n}}); require.def("preview/jsonSchema",[],function(){return{validate:function(n,b){return this._validate(n,b,false)},checkPropertyChange:function(n,b,h){return this._validate(n,b,h||"property")},_validate:function(n,b,h){function m(c,e,f,l){function k(q){a.push({property:f,message:q})}function d(q,t){if(q){if(typeof q=="string"&&q!="any"&&(q=="null"?t!==null:typeof t!=q)&&!(t instanceof Array&&q=="array")&&!(q=="integer"&&t%1===0))return[{property:f,message:typeof t+" value found, but a "+q+" is required"}]; if(q instanceof Array){for(var s=[],r=0;re.maxItems&&k("There must be a maximum of "+e.maxItems+" in the array")}else e.properties&&a.concat(j(c,e.properties,f,e.additionalProperties));e.pattern&&typeof c=="string"&&!c.match(e.pattern)&&k("does not match the regex pattern "+e.pattern);e.maxLength&&typeof c=="string"&&c.length>e.maxLength&&k("may only be "+e.maxLength+" characters long");e.minLength&&typeof c=="string"&&c.lengthc&&k("must have a minimum value of "+e.minimum);typeof e.maximum!==undefined&&typeof c==typeof e.maximum&&e.maximum=32&&d<127||d==10||d==13)return k.charAt(0);for(k=d.toString(16).toUpperCase();k.length<4;)k="0"+k;return"\\u"+k}).join("");return f}c.prototype= {append:function(f){if(f){if(this.input)if(f.log.pages)for(var l=0;l0?f[0]:null},getPageEntries:function(f){return c.getPageEntries(this.input, f)},getAllEntries:function(){return this.input?this.input.log.entries:[]},getParentPage:function(f){return c.getParentPage(this.input,f)},importPage:function(f,l){var k=this.getUniquePageID(f.id),d=f.id;f.id=k;this.input.log.pages.push(f);for(f=0;f0)return this.loadRemoteArchive(p,g,f,l);if(k=n.getURLParameter("path"))return this.loadLocalArchive(k,f,l)},loadExample:function(f){var l=document.location.href,k=l.indexOf("?");document.location=l.substr(0,k)+"?path="+f;j.setCookie("timeline",true);j.setCookie("stats",true)},loadLocalArchive:function(f,l,k){$.ajax({url:f,context:this, success:function(d){l(d)},error:function(d,g){k(d,g)}});return true},loadRemoteArchive:function(f,l,k,d){if(!f.length)return false;var g=f.shift();l||(l="onInputData");$.ajax({url:g,context:this,dataType:"jsonp",jsonp:"callback",jsonpCallback:l,success:function(o){k(o);if(f.length){var p=this;setTimeout(function(){p.loadRemoteArchive(f,l,k,d)},300)}},error:function(o,p){d(o,p)}});return true}};return c}); require.def("preview/ref",["core/lib"],function(n){return{resolveJson:function(b,h){function m(p,q,t,s,r){var v,u;t=j in p?p[j]:t;if(t!==undefined)t=(a+t).replace(d,"$2$3");r=r||p;if(t!==undefined){if(c)p.__id=t;if(h.schemas&&!(p instanceof Array)&&(u=t.match(/^(.+\/)[^\.\[]*$/)))s=h.schemas[u[1]];if(e[t]&&p instanceof Array==e[t]instanceof Array){r=e[t];delete r.$ref;v=true}else if(u=s&&s.prototype){o.prototype=u;r=new o}e[t]=r;if(f)f[t]=h.time}s=s&&s.properties;var x=p.length;for(var w in p){if(w== x)break;if(p.hasOwnProperty(w)){u=p[w];var y=s&&s[w];if(y&&y.format=="date-time"&&typeof u=="string")u=n.fromISOString(u);else if(typeof u=="object"&&u&&!(u instanceof Date))if(l=u.$ref){delete p[w];var z=l.replace(/(#)([^\.\[])/,"$1.$2").match(/(^([^\[]*\/)?[^#\.\[]*)#?([\.\[].*)?/);if(l=z[1]=="$"||z[1]=="this"||z[1]==""?b:e[(a+z[1]).replace(d,"$2$3")])z[3]&&z[3].replace(/(\[([^\]]+)\])|(\.?([^\.\[]+))/g,function(E,F,B,G,D){l=l&&l[B?B.replace(/[\"\'\\]/,""):D]});if(l)u=l;else if(q){u=m(u,false,u.$ref, y);u._loadObject=h.loader}else{var C;C||k.push(r);C=true}}else q||(u=m(u,k==p,t&&g(t,w),y,r!=p&&typeof r[w]=="object"&&r[w]));p[w]=u;if(r!=p&&!r.__isDirty){y=r[w];r[w]=u;v&&u!==y&&!r._loadObject&&!(u instanceof Date&&y instanceof Date&&u.getTime()==y.getTime())&&!(typeof u=="function"&&typeof y=="function"&&u.toString()==y.toString())&&e.onUpdate&&e.onUpdate(r,w,y,u)}}}if(v)for(w in r){if(!r.__isDirty&&r.hasOwnProperty(w)&&!p.hasOwnProperty(w)&&w!="__id"&&w!="__clientId"&&!(r instanceof Array&&isNaN(w))){e.onUpdate&& w!="_loadObject"&&w!="_idAttr"&&e.onUpdate(r,w,r[w],undefined);for(delete r[w];r instanceof Array&&r.length&&r[r.length-1]===undefined;)r.length--}}else e.onLoad&&e.onLoad(r);return r}h=h||{};var j=h.idAttribute||"id",a=h.idPrefix||"",c=h.assignAbsoluteIds,e=h.index||{},f=h.timeStamps,l,k=[],d=/^(.*\/)?(\w+:\/\/)|[^\/\.]+\/\.\.\/|^.*\/(\/)/,g=this._addProp,o=function(){};if(b&&typeof b=="object"){b=m(b,false,h.defaultId);m(k,false)}return b},_addProp:function(b,h){return b+(b.match(/#/)?b.length== 1?"":".":"#")+h}}}); require.def("preview/harSchema",[],function(){function n(){}var b=/^(\d{4})(-)?(\d\d)(-)?(\d\d)(T)?(\d\d)(:)?(\d\d)(:)?(\d\d)(\.\d+)?(Z|([+-])(\d\d)(:)?(\d\d))/,h={pageType:{id:"pageType",description:"Exported web page",optional:true,properties:{startedDateTime:{type:"string",format:"date-time",pattern:b},id:{type:"string",unique:true},title:{type:"string"},pageTimings:{$ref:"pageTimingsType"},comment:{type:"string",optional:true}}}};b={entryType:{id:"entryType",description:"Request and Response related info",optional:true, properties:{pageref:{type:"string",optional:true},startedDateTime:{type:"string",format:"date-time",pattern:b},time:{type:"integer",min:0},request:{$ref:"requestType"},response:{$ref:"responseType"},cache:{$ref:"cacheType"},timings:{$ref:"timingsType"},serverIPAddress:{type:"string",optional:true},connection:{type:"string",optional:true},comment:{type:"string",optional:true}}}};n.prototype={registerType:function(){var j=function(a,c){for(name in c)if(c.hasOwnProperty(name)&&name!="prototype")a[name]= c[name]};for(i=0;i0&&o.appendTab(new c(g));this.showCache(g)&&o.appendTab(new l(g));this.showHtml(g)&& o.appendTab(new k(g));d=o.render(d);o.selectTabByName("Headers");return d},showCache:function(d){if(!d.cache)return false;if(!d.cache.afterRequest)return false;if(d.category=="image")return false;return true},showHtml:function(d){return d.response.content.mimeType=="text/html"||d.mimeType=="application/xhtml+xml"}});var a=function(d){this.file=d};a.prototype=domplate(m.Tab.prototype,{id:"Headers",label:b.Headers,bodyTag:TABLE({"class":"netInfoHeadersText netInfoText netInfoHeadersTable",cellpadding:0, cellspacing:0},TBODY(TR({"class":"netInfoResponseHeadersTitle"},TD({colspan:2},DIV({"class":"netInfoHeadersGroup"},b.ResponseHeaders))),TR({"class":"netInfoRequestHeadersTitle"},TD({colspan:2},DIV({"class":"netInfoHeadersGroup"},b.RequestHeaders))))),headerDataTag:FOR("param","$headers",TR(TD({"class":"netInfoParamName"},"$param.name"),TD({"class":"netInfoParamValue"},PRE("$param|getParamValue")))),getParamValue:function(d){return h.wrapText(d.value,true)},onUpdateBody:function(d,g){this.file.response.headers&& this.insertHeaderRows(g,this.file.response.headers,"Headers","ResponseHeaders");this.file.request.headers&&this.insertHeaderRows(g,this.file.request.headers,"Headers","RequestHeaders")},insertHeaderRows:function(d,g,o,p){o=h.getElementByClass(d,"netInfo"+o+"Table");p=h.getElementByClass(o,"netInfo"+p+"Title");if(g.length){this.headerDataTag.insertRows({headers:g},p?p:d);h.removeClass(p,"collapsed")}else h.setClass(p,"collapsed")}});var c=function(d){this.file=d};c.prototype=domplate(m.Tab.prototype, {id:"Response",label:b.Response,bodyTag:DIV({"class":"netInfoResponseText netInfoText"},PRE({"class":"javascript:nocontrols:nogutter:",name:"code"})),onUpdateBody:function(d,g){d=h.getElementByClass(g,"netInfoResponseText");if(this.file.category=="image"){h.clearNode(d);g=g.ownerDocument.createElement("img");g.src=this.file.href;d.appendChild(g,d)}else{h.clearNode(d.firstChild);g=this.file.response.content.text;var o=this.file.response.content.mimeType;if(o=="application/javascript"||o=="text/javascript"|| o=="application/x-javascript"||o=="text/ecmascript"||o=="application/ecmascript"){d.firstChild.innerHTML=g;j.SyntaxHighlighter.HighlightAll(d.firstChild)}else h.insertWrappedText(g,d.firstChild)}}});var e=function(d){this.file=d};e.prototype=domplate(a.prototype,{id:"Params",label:b.URLParameters,bodyTag:TABLE({"class":"netInfoParamsText netInfoText netInfoParamsTable",cellpadding:0,cellspacing:0},TBODY()),onUpdateBody:function(d,g){this.file.request.queryString&&this.insertHeaderRows(h.getElementByClass(g, "netInfoParamsText"),this.file.request.queryString,"Params")}});var f=function(d,g){g=g.charAt(0).toUpperCase()+g.slice(1).toLowerCase();this.file=d;this.id=g;this.label=b[g]};f.prototype=domplate(a.prototype,{bodyTag:DIV({"class":"netInfo$tab.id\\Text netInfoText"},TABLE({"class":"netInfo$tab.id\\Table",cellpadding:0,cellspacing:0},TBODY())),onUpdateBody:function(d,g){if(d=this.file.request.postData){g=h.getElementByClass(g,"netInfo"+this.id+"Text");d.mimeType=="application/x-www-form-urlencoded"? this.insertHeaderRows(g,d.params,this.id):h.insertWrappedText(d.text,g)}}});(function(d){this.file=d}).prototype=domplate(a.prototype,{id:"Cookies",label:b.Cookies,bodyTag:DIV({"class":"netInfoCookiesText netInfoText"},TABLE({"class":"netInfoCookiesTable",cellpadding:0,cellspacing:0},TBODY(TR({"class":"netInfoResponseCookiesTitle"},TD({colspan:2},DIV({"class":"netInfoCookiesGroup"},b.ResponseCookies))),TR({"class":"netInfoRequestCookiesTitle"},TD({colspan:2},DIV({"class":"netInfoCookiesGroup"},b.RequestCookies)))))), onUpdateBody:function(d,g){if(file.response.cookies){d=h.getElementByClass(g,"netInfoParamsText");this.insertHeaderRows(d,file.response.cookies,"Cookies","ResponseCookies")}if(file.request.cookies){d=h.getElementByClass(g,"netInfoParamsText");this.insertHeaderRows(d,file.request.cookies,"Cookies","RequestCookies")}}});var l=function(d){this.file=d};l.prototype=domplate(a.prototype,{id:"Cache",label:b.Cache,bodyTag:DIV({"class":"netInfoCacheText netInfoText"},TABLE({"class":"netInfoCacheTable",cellpadding:0, cellspacing:0},TBODY())),onUpdateBody:function(d,g){if(this.file.cache&&this.file.cache.afterRequest){d=this.file.cache.afterRequest;var o=[];for(var p in d)o.push({name:p,value:d[p]});this.insertHeaderRows(g,o,"Cache")}}});var k=function(d){this.file=d};k.prototype=domplate(a.prototype,{id:"HTML",label:b.HTML,bodyTag:DIV({"class":"netInfoHtmlText netInfoText"},IFRAME({"class":"netInfoHtmlPreview"})),onUpdateBody:function(d,g){h.getElementByClass(g,"netInfoHtmlPreview").contentWindow.document.body.innerHTML= this.file.response.content.text}});return n}}); require.def("domplate/tabView",["domplate/domplate","core/lib","core/trace"],function(n,b,h){with(n){var m=domplate({tag:TABLE({"class":"tabView",cellpadding:0,cellspacing:0,_repObject:"$tabView"},TBODY(TR({"class":"tabViewRow"},TD({"class":"tabViewCol",valign:"top"},TAG("$tabList",{tabView:"$tabView"}))))),tabList:DIV({"class":"tabViewBody",onclick:"$onClickTab"},DIV({"class":"$tabView.id\\Bar tabBar"}),DIV({"class":"$tabView.id\\Bodies tabBodies"})),tabHeaderTag:A({"class":"$tab.id\\Tab tab",view:"$tab.id", _repObject:"$tab"},"$tab.label"),tabBodyTag:DIV({"class":"tab$tab.id\\Body tabBody",_repObject:"$tab"}),hideTab:function(){return false},onClickTab:function(j){j=$.event.fix(j||window.event);this.getTabView(j.target).onClickTab(j)},getTabView:function(j){return b.getAncestorByClass(j,"tabView").repObject}});n=function(j){this.id=j;this.tabs=[];this.listeners=[]};n.prototype={appendTab:function(j){this.tabs.push(j);j.tabView=this;return j},getTab:function(j){return(j=b.getElementByClass(this.element, j+"Tab"))?j.repObject:null},selectTabByName:function(j){(j=b.getElementByClass(this.element,j+"Tab"))&&this.selectTab(j)},addListener:function(j){this.listeners.push(j)},removeListener:function(j){b.remove(this.listeners,j)},onClickTab:function(j){(j=b.getAncestorByClass(j.target,"tab"))&&this.selectTab(j)},selectTab:function(j){if(b.hasClass(j,"tab"))if(!b.hasClass(j,"selected")){var a=j.getAttribute("view");if(a){var c=b.getAncestorByClass(j,"tabViewBody");if(c.selectedTab){c.selectedTab.removeAttribute("selected"); c.selectedBody.removeAttribute("selected");b.removeClass(c.selectedTab,"selected");b.removeClass(c.selectedBody,"selected")}var e=b.getElementByClass(c,"tab"+a+"Body");e||h.error("TabView.selectTab; Missing tab body",j);c.selectedTab=j;c.selectedBody=e;c.selectedTab.setAttribute("selected","true");c.selectedBody.setAttribute("selected","true");b.setClass(c.selectedBody,"selected");b.setClass(c.selectedTab,"selected");this.updateTabBody(c,a)}}},updateTabBody:function(j){j=j.selectedTab.repObject;if(!j._body._updated){j._body._updated= true;j.bodyTag&&j.bodyTag.replace({tab:j},j._body);j&&j.onUpdateBody&&j.onUpdateBody(this,j._body);for(var a=0;aAbout...

dp.SyntaxHighlighter

Version: {V}

http://www.dreamprojections.com/syntaxhighlighter

©2004-2007 Alex Gorbatchev.
'},ClipboardSwf:null, Version:"1.5.1"}};n.SyntaxHighlighter=n.sh;n.sh.Toolbar.Commands={ExpandSource:{label:"+ expand source",check:function(b){return b.collapse},func:function(b,h){b.parentNode.removeChild(b);h.div.className=h.div.className.replace("collapsed","")}},ViewSource:{label:"view plain",func:function(b,h){b=n.sh.Utils.FixForBlogger(h.originalCode).replace(/'+ b+"");h.document.close()}},CopyToClipboard:{label:"copy to clipboard",check:function(){return window.clipboardData!=null||n.sh.ClipboardSwf!=null},func:function(b,h){b=n.sh.Utils.FixForBlogger(h.originalCode).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&");if(window.clipboardData)window.clipboardData.setData("text",b);else if(n.sh.ClipboardSwf!=null){var m=h.flashCopier;if(m==null){m=document.createElement("div");h.flashCopier=m;h.div.appendChild(m)}m.innerHTML=''}alert("The code is in your clipboard now")}},PrintSource:{label:"print",func:function(b,h){b=document.createElement("IFRAME");var m=null;b.style.cssText="position:absolute;width:0px;height:0px;left:-500px;top:-500px;";document.body.appendChild(b);m=b.contentWindow.document;n.sh.Utils.CopyStyles(m,window.document);m.write('
'+h.div.innerHTML+"
");m.close();b.contentWindow.focus();b.contentWindow.print();alert("Printing...");document.body.removeChild(b)}},About:{label:"?",func:function(){var b=window.open("","_blank","dialog,width=300,height=150,scrollbars=0"),h=b.document;n.sh.Utils.CopyStyles(h,window.document);h.write(n.sh.Strings.AboutDialog.replace("{V}",n.sh.Version));h.close();b.focus()}}};n.sh.Toolbar.Create=function(b){var h=document.createElement("DIV");h.className="tools";for(var m in n.sh.Toolbar.Commands){var j= n.sh.Toolbar.Commands[m];j.check!=null&&!j.check(b)||(h.innerHTML+='"+j.label+"")}return h};n.sh.Toolbar.Command=function(b,h){for(var m=h;m!=null&&m.className.indexOf("dp-highlighter")==-1;)m=m.parentNode;m!=null&&n.sh.Toolbar.Commands[b].func(h,m.highlighter)};n.sh.Utils.CopyStyles=function(b,h){h=h.getElementsByTagName("link");for(var m=0;m')};n.sh.Utils.FixForBlogger=function(b){return n.sh.isBloggerMode==true?b.replace(/|<br\s*\/?>/gi,"\n"):b};n.sh.RegexLib={MultiLineCComments:new RegExp("/\\*[\\s\\S]*?\\*/","gm"),SingleLineCComments:new RegExp("//.*$","gm"),SingleLinePerlComments:new RegExp("#.*$","gm"),DoubleQuotedString:new RegExp('"(?:\\.|(\\\\\\")|[^\\""\\n])*"',"g"),SingleQuotedString:new RegExp("'(?:\\.|(\\\\\\')|[^\\''\\n])*'","g")};n.sh.Match=function(b,h,m){this.value=b;this.index=h;this.length= b.length;this.css=m};n.sh.Highlighter=function(){this.noGutter=false;this.addControls=true;this.collapse=false;this.tabsToSpaces=true;this.wrapColumn=80;this.showColumns=true};n.sh.Highlighter.SortCallback=function(b,h){if(b.indexh.index)return 1;else if(b.lengthh.length)return 1;return 0};n.sh.Highlighter.prototype.CreateElement=function(b){b=document.createElement(b);b.highlighter=this;return b};n.sh.Highlighter.prototype.GetMatches= function(b,h){for(var m=null;(m=b.exec(this.code))!=null;)this.matches[this.matches.length]=new n.sh.Match(m[0],m.index,h)};n.sh.Highlighter.prototype.AddBit=function(b,h){if(!(b==null||b.length==0)){var m=this.CreateElement("SPAN");b=b.replace(/ /g," ");b=b.replace(/");if(h!=null)if(/br/gi.test(b)){b=b.split(" 
");for(var j=0;jm.index&&b.index/gi,"\n").split("\n");this.addControls==true&&this.bar.appendChild(n.sh.Toolbar.Create(this));if(this.showColumns){for(var h= this.CreateElement("div"),m=this.CreateElement("div"),j=1;j<=150;)if(j%10==0){h.innerHTML+=j;j+=(j+"").length}else{h.innerHTML+="·";j++}m.className="columns";m.appendChild(h);this.bar.appendChild(m)}j=0;for(h=this.firstLine;j0;d++)if(h(f[d]).length!=0){var g=l.exec(f[d]);if(g!=null&&g.length>0)k=Math.min(g[0].length,k)}if(k>0)for(d=0;dm-this.infoTipWindowPadding){h.style.left="auto";h.style.right=m-j+this.infoTipMargin+"px"}else{h.style.left=j+this.infoTipMargin+"px";h.style.right="auto"}h.style.top=a+h.offsetHeight+this.infoTipMargin>c?Math.max(0,c-(h.offsetHeight+ this.infoTipMargin))+"px":a+this.infoTipMargin+"px";h.style.bottom="auto";h.setAttribute("active","true")}else this.hideInfoTip(h)},hideInfoTip:function(h){h&&h.removeAttribute("active")},onMouseOut:function(h){h.relatedTarget||this.hideInfoTip(this.infoTip)},onMouseMove:function(h){this.infoTip.setAttribute("multiline",false);this.showInfoTip(this.infoTip,h.target,h.clientX,h.clientY,h.rangeParent,h.rangeOffset)},populateTimingInfoTip:function(h,m){this.tags.colorTag.replace({rgbValue:m},h);return true}, addListener:function(h){this.listeners.push(h)},removeListener:function(h){b.remove(this.listeners,h)}});n.initialize();return n}}); require.def("domplate/popupMenu",["domplate/domplate","core/lib","core/trace"],function(n,b){with(n){var h={controllers:[],controllerContext:{label:"controller context"},initialize:function(c){this.controllers=[];this.controllerContext=c||this.controllerContext},shutdown:function(){this.removeControllers()},addController:function(){for(var c=0,e;e=arguments[c];c++){if(typeof e[0]=="string")e[0]=$$(e[0],this.controllerContext);var f=e[2];e[2]=b.bind(f,this);e[3]=f;this.controllers.push(e);b.addEventListener.apply(this, e)}},removeController:function(){for(var c=0,e;e=arguments[c];c++)for(var f=0,l;l=this.controllers[f];f++)e[0]==l[0]&&e[1]==l[1]&&e[2]==l[3]&&b.removeEventListener.apply(this,l)},removeControllers:function(){for(var c=0,e;e=this.controllers[c];c++)b.removeEventListener.apply(this,e)}};n={"class":"$item.className",type:"$item.type",value:"$item.value",_command:"$item.command"};if(b.isIE6)n.href="javascript:void(0)";var m=domplate({tag:DIV({"class":"popupMenu popupMenuShadow"},DIV({"class":"popupMenuContent popupMenuShadowContent"}, FOR("item","$object.items|memberIterator",TAG("$item.tag",{item:"$item"})))),itemTag:A(n,"$item.label"),checkBoxTag:A(b.extend(n,{checked:"$item.checked"}),"$item.label"),radioButtonTag:A(b.extend(n,{selected:"$item.selected"}),"$item.label"),groupTag:A(b.extend(n,{child:"$item.child"}),"$item.label"),shortcutTag:A(n,"$item.label",SPAN({"class":"popupMenuShortcutKey"},"$item.key")),separatorTag:SPAN({"class":"popupMenuSeparator"}),memberIterator:function(c){for(var e=[],f=0,l=c.length;f