1(function(){'use strict';$.widget('pageCache',{component:'pageCache',options:{url:'/',patternPlaceholderOpen:/^ BLOCK (.+) $/,patternPlaceholderClose:/^ \/BLOCK (.+) $/,versionCookieName:'private_content_version',handles:[]},create:function(){var placeholders,version=$.cookies.get(this.options.versionCookieName);if(!version){return;} 2placeholders=this._searchPlaceholders(this.getComments());if(placeholders&&placeholders.length){this._ajax(placeholders,version);}},getComments:function(){var comments=[],iterator=document.createNodeIterator(document.body,NodeFilter.SHOW_COMMENT,function filterNone(){return NodeFilter.FILTER_ACCEPT;},false),curNode;while((curNode=iterator.nextNode())){comments.push(curNode);} 3return comments;},_searchPlaceholders:function(elements){var placeholders=[],tmp={},ii,len,el,matches,name;if(!(elements&&elements.length)){return placeholders;} 4for(ii=0,len=elements.length;ii<len;ii++){el=elements[ii];matches=this.options.patternPlaceholderOpen.exec(el.nodeValue);name=null;if(matches){name=matches[1];tmp[name]={name:name,openElement:el};}else{matches=this.options.patternPlaceholderClose.exec(el.nodeValue);if(matches){name=matches[1];if(tmp[name]){tmp[name].closeElement=el;placeholders.push(tmp[name]);delete tmp[name];}}}} 5return placeholders;},_replacePlaceholder:function(placeholder,html){var startReplacing=false,prevSibling=null,parent,contents,yy,len,element;if(!placeholder||!html){return;} 6parent=$(placeholder.openElement).parent();contents=parent.contents();for(yy=0,len=contents.length;yy<len;yy++){element=contents[yy];if(element==placeholder.openElement){startReplacing=true;} 7if(startReplacing){$(element).remove();}else if(element.nodeType!=8){prevSibling=element;} 8if(element==placeholder.closeElement){break;}} 9if(prevSibling){$(prevSibling).after(html);}else{$(parent).prepend(html);} 10$(parent).trigger('contentUpdated');},_ajax:function(placeholders,version){var self=this,data={blocks:[],handles:this.options.handles,originalRequest:this.options.originalRequest,version:version};$.each(placeholders,function(){data.blocks.push(this.name);});data.blocks=JSON.stringify(data.blocks.sort());data.handles=JSON.stringify(data.handles);data.originalRequest=JSON.stringify(data.originalRequest);$.request.get({url:this.options.url,data:data,type:'json'}).then(function(response){$.each(placeholders,function(){self._replacePlaceholder(this,response.body[this.name]);});});}});})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.