PageSourceSearch

https://www.trt4.jus.br/portais/wicket/resource/org.apache.wicket.…/js/wicket-ajax-jquery-ver-1778968598000.js

js trt4.jus.br collected 2026-10-02 05:02:40 UTC 26,198 bytes, 51 lines download raw bytes

1(function(g,v){"undefined"===typeof Wicket&&(window.Wicket={});if("object"!==typeof Wicket.Head){var n=function(a){return"undefined"===typeof a||null===a},t=function(a){var b=[],c;if(a&&a.length)for(c=0;c<a.length;c++)b.push(a.item(c));return b},l=function(a){this.functions=a;this.depth=this.current=0;this.processNext=function(){if(this.current<this.functions.length){var b=this.functions[this.current];var c=function(){try{var d=g.proxy(this.notify,this);return b(d)}catch(e){return Wicket.Log.error("FunctionsExecuter.processNext:",
2e),l.FAIL}};c=g.proxy(c,this);this.current++;if(this.depth>l.DEPTH_LIMIT)this.depth=0,window.setTimeout(c,1);else return c=c(),(n(c)||c===l.ASYNC)&&this.depth++,c}};this.start=function(){for(var b=l.DONE;b===l.DONE;)b=this.processNext()};this.notify=function(){this.start()}};l.DONE=1;l.FAIL=2;l.ASYNC=3;l.DEPTH_LIMIT=1E3;Wicket.Class={create:function(){return function(){this.initialize.apply(this,arguments)}}};Wicket.isFunction=function(a){return"function"===typeof a};Wicket.isWindow=function(a){return"undefined"!==
3typeof a&&null!==a&&a===a.window};Wicket.Log={enabled:!1,log:function(){Wicket.Log.enabled&&"undefined"!==typeof console&&"function"===typeof console.log&&console.log.apply(console,arguments)},debug:function(){Wicket.Log.enabled&&"undefined"!==typeof console&&"function"===typeof console.debug&&console.debug.apply(console,arguments)},info:function(){Wicket.Log.enabled&&"undefined"!==typeof console&&"function"===typeof console.info&&console.info.apply(console,arguments)},warn:function(){Wicket.Log.enabled&&
4"undefined"!==typeof console&&"function"===typeof console.warn&&console.warn.apply(console,arguments)},error:function(){Wicket.Log.enabled&&"undefined"!==typeof console&&"function"===typeof console.error&&console.error.apply(console,arguments)}};Wicket.Channel=Wicket.Class.create();Wicket.Channel.prototype={initialize:function(a){a=(a||"0|s").match(/^([^|]+)\|(d|s|a)$/);n(a)?(this.name="0",this.type="s"):(this.name=a[1],this.type=a[2]);this.callbacks=[];this.busy=!1},schedule:function(a){if(!1===
5this.busy){this.busy=!0;try{return a()}catch(c){this.busy=!1,Wicket.Log.error("An error occurred while executing Ajax request:",c)}}else{var b="Channel '"+this.name+"' is busy";"s"===this.type?(Wicket.Log.info("%s - scheduling the callback to be executed when the previous request finish.",b),this.callbacks.push(a)):"d"===this.type?(Wicket.Log.info("%s - dropping all previous scheduled callbacks and scheduling a new one to be executed when the current request finish.",b),this.callbacks=[],this.callbacks.push(a)):
6"a"===this.type&&Wicket.Log.info("%s - ignoring the Ajax call because there is a running request.",b);return null}},done:function(){var a=null;0<this.callbacks.length&&(a=this.callbacks.shift());null!==a&&"undefined"!==typeof a?(Wicket.Log.info("Calling postponed function..."),window.setTimeout(a,1)):this.busy=!1}};Wicket.ChannelManager=Wicket.Class.create();Wicket.ChannelManager.prototype={initialize:function(){this.channels={}},schedule:function(a,b){var c=new Wicket.Channel(a),d=this.channels[c.name];
7n(d)?(d=c,this.channels[d.name]=d):d.type=c.type;return d.schedule(b)},done:function(a){a=new Wicket.Channel(a);var b=this.channels[a.name];n(b)||(b.done(),b.busy||delete this.channels[a.name])}};Wicket.ChannelManager.FunctionsExecuter=l;Wicket.Ajax={};Wicket.Ajax.Call=Wicket.Class.create();Wicket.Ajax._currentSuspension=v;Wicket.Ajax.suspendCall=function(){var a=Wicket.Ajax._currentSuspension;if(a===v)Wicket.Log.error("Can't suspend: no Ajax call in process");else return a.suspend(),function(){null!==
8a&&(a.release(),a=null)}};Wicket.Ajax.Call.prototype={initialize:g.noop,_initializeDefaults:function(a){"string"!==typeof a.ch&&(a.ch="0|s");"boolean"!==typeof a.wr&&(a.wr=!0);"string"!==typeof a.dt&&(a.dt="xml");"string"!==typeof a.m&&(a.m="GET");!1!==a.async&&(a.async=!0);Number.isFinite(a.rt)||(a.rt=0);!0!==a.pd&&(a.pd=!1);a.sp||(a.sp="bubble");a.sr||(a.sr=!1)},_getTarget:function(a){return a.event?a.event.target:Wicket.isWindow(a.c)?window:Wicket.$(a.c)}
8,_executeHandlers:function(a){if(Array.isArray(a))for(var b=
9Array.prototype.slice.call(arguments).slice(1),c=this._getTarget(b[0]),d=0;d<a.length;d++){var e=a[d];Wicket.isFunction(e)?e.apply(c,b):(new Function(e)).apply(c,b)}},_asParamArray:function(a){var b=[],c;if(Array.isArray(a))b=a;else if(g.isPlainObject(a))for(c in a)if(c&&a.hasOwnProperty(c)){var d=a[c];b.push({name:c,value:d})}for(a=0;a<b.length;a++)null===b[a]&&(b.splice(a,1),a--);return b},_calculateDynamicParameters:function(a){for(var b=a.dep,c=[],d=0;d<b.length;d++){var e=b[d];e=Wicket.isFunction(e)?
10e(a):(new Function("attrs",e))(a);e=this._asParamArray(e);c=c.concat(e)}return c},ajax:function(a){this._initializeDefaults(a);var b=Wicket.channelManager.schedule(a.ch,Wicket.bind(function(){this.doAjax(a)},this));return null!==b?b:!0},_isPresent:function(a){if(n(a))return!0;a=Wicket.$(a);return n(a)?!1:!a.hasAttribute||!a.hasAttribute("data-wicket-placeholder")},doAjax:function(a){var b={"Wicket-Ajax":"true","Wicket-Ajax-BaseURL":Wicket.Ajax.baseUrl||"."},c=a.u,d=this._asParamArray(a.ep),e=this,
11f={attrs:a,steps:[]},h=Wicket.Event,k=h.Topic;Wicket.Focus.lastFocusId&&(b["Wicket-FocusedElementId"]=Wicket.Form.encode(Wicket.Focus.lastFocusId));e._executeHandlers(a.bh,a);h.publish(k.AJAX_CALL_BEFORE,a);var m=a.pre||[];m=[function(p){return e._isPresent(p.c)&&e._isPresent(p.f)}].concat(m);if(Array.isArray(m))for(var r=this._getTarget(a),w=0;w<m.length;w++){var x=m[w];if(!1===(Wicket.isFunction(x)?x.call(r,a):(new Function(x)).call(r,a)))return Wicket.Log.info("Ajax request stopped because of precondition check, url: %s",
12a.u),e.done(a),!1}h.publish(k.AJAX_CALL_PRECONDITION,a);a.f?(m=Wicket.$(a.f),d=d.concat(Wicket.Form.serializeForm(m)),a.sc&&(d=d.concat({name:a.sc,value:1}))):a.c&&!Wicket.isWindow(a.c)&&(m=Wicket.$(a.c),d=d.concat(Wicket.Form.serializeElement(m,a.sr)));Array.isArray(a.dep)&&(m=this._calculateDynamicParameters(a),"post"===a.m.toLowerCase()?d=d.concat(m):(r=-1<c.indexOf("?")?"\x26":"?",c=c+r+g.param(m)));if(a.mp)try{var y=new FormData;for(m=0;m<d.length;m++)y.append(d[m].name,d[m].value||"");d=y;var z=
13!1}catch(p){Wicket.Log.error("Ajax multipart not supported:",p)}Wicket.Log.info("Executing Ajax request");Wicket.Log.debug(a);b=g.ajax({url:c,type:a.m,context:e,processData:z,contentType:z,beforeSend:function(p,q){e._executeHandlers(a.bsh,a,p,q);h.publish(k.AJAX_CALL_BEFORE_SEND,a,p,q);a.i&&Wicket.DOM.showIncrementally(a.i)},data:d,dataType:a.dt,async:a.async,timeout:a.rt,cache:!1,headers:b,success:function(p,q,u){a.wr?e.processAjaxResponse(p,q,u,f):(e._executeHandlers(a.sh,a,u,p,q),h.publish(k.AJAX_CALL_SUCCESS,
14a,u,p,q))},error:function(p,q,u){301===p.status&&p.getResponseHeader("Ajax-Location")?e.processAjaxResponse(d,q,p,f):e.failure(f,p,u,q)},complete:function(p,q){f.steps.push(g.proxy(function(u){a.i&&!0!==f.isRedirecting&&Wicket.DOM.hideIncrementally(a.i);e._executeHandlers(a.coh,a,p,q);h.publish(k.AJAX_CALL_COMPLETE,a,p,q);e.done(a);return l.DONE},e));(new l(f.steps)).start()}});e._executeHandlers(a.ah,a);h.publish(k.AJAX_CALL_AFTER,a);return b},process:function(a){var b={attrs:{},steps:[]};a=Wicket.Xml.parse(a);
15this.loadedCallback(a,b);(new l(b.steps)).start()},processAjaxResponse:function(a,b,c,d){if(4===c.readyState){try{var e=c.getResponseHeader("Ajax-Location")}catch(f){}if("undefined"!==typeof e&&null!==e&&""!==e)if(this.success(d),a=/^[a-z][a-z0-9+.-]*:\/\//,"/"===e.charAt(0)||a.test(e))d.isRedirecting=!0,Wicket.Ajax.redirect(e);else{for(a=0;"../"===e.substring(0,3);)a++,e=e.substring(3);for(b=window.location.pathname;-1<a;)a--,c=b.lastIndexOf("/"),-1<c&&(b=b.substring(0,c));d.isRedirecting=!0;Wicket.Ajax.redirect(b+
16("/"+e))}else return Wicket.Log.info("Received ajax response (%s characters)",c.responseText.length),Wicket.Log.debug(c.responseXML),this.loadedCallback(a,d)}},loadedCallback:function(a,b){try{var c=a.getElementsByTagName("ajax-response")[0];if(n(c)||"ajax-response"!==c.tagName)this.failure(b,null,"Could not find root \x3cajax-response\x3e element",null);else{for(var d=b.steps,e=0;e<c.childNodes.length;++e){var f=c.childNodes[e];"header-contribution"===f.tagName?this.processHeaderContribution(b,f):
17"priority-evaluate"===f.tagName&&this.processHeaderContribution(b,f)}e=-1;for(f=0;
17f<c.childNodes.length;++f){var h=c.childNodes[f];"component"===h.tagName?(-1===e&&this.processFocusedComponentMark(b),e=d.length,this.processComponent(b,h)):"evaluate"===h.tagName?this.processHeaderContribution(b,h):"redirect"===h.tagName&&this.processRedirect(b,h)}-1!==e&&this.processFocusedComponentReplaceCheck(d,e);this.success(b)}}catch(k){this.failure(b,null,k,null)}},success:function(a){a.steps.push(g.proxy(function(b){Wicket.Log.info("Response processed successfully.");
18b=a.attrs;this._executeHandlers(b.sh,b,null,null,"success");Wicket.Event.publish(Wicket.Event.Topic.AJAX_CALL_SUCCESS,b,null,null,"success");Wicket.Focus.requestFocus();return l.DONE},this))},failure:function(a,b,c,d){a.steps.push(g.proxy(function(e){c&&Wicket.Log.error("Wicket.Ajax.Call.failure: Error while parsing response: %s",c);e=a.attrs;this._executeHandlers(e.fh,e,b,c,d);Wicket.Event.publish(Wicket.Event.Topic.AJAX_CALL_FAILURE,e,b,c,d);return l.DONE},this))},done:function(a){this._executeHandlers(a.dh,
19a);Wicket.Event.publish(Wicket.Event.Topic.AJAX_CALL_DONE,a);Wicket.channelManager.done(a.ch)},processComponent:function(a,b){a.steps.push(function(c){var d=b.getAttribute("id");c=Wicket.$(d);n(c)?Wicket.Log.error("Wicket.Ajax.Call.processComponent: Component with id '%s' was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update.",d):(d=Wicket.DOM.text(b),Wicket.DOM.replace(c,d));return l.DONE})},
20processHeaderContribution:function(a,b){Wicket.Head.Contributor.processContribution(a,b)},processRedirect:function(a,b){var c=Wicket.DOM.text(b);Wicket.Log.info("Redirecting to: %s",c);a.isRedirecting=!0;Wicket.Ajax.redirect(c)},processFocusedComponentMark:function(a){a.steps.push(function(b){Wicket.Focus.markFocusedComponent();return l.DONE})},processFocusedComponentReplaceCheck:function(a,b){a.splice(b+1,0,function(c){Wicket.Focus.checkFocusedComponentReplaced();return l.DONE})}};Wicket.ThrottlerEntry=
21Wicket.Class.create();Wicket.ThrottlerEntry.prototype={initialize:function(a){this.func=a;this.timestamp=(new Date).getTime();this.timeoutVar=v},getTimestamp:function(){return this.timestamp},getFunc:function(){return this.func},setFunc:function(a){this.func=a},getTimeoutVar:function(){return this.timeoutVar},setTimeoutVar:function(a){this.timeoutVar=a}};Wicket.Throttler=Wicket.Class.create();Wicket.Throttler.entries=[];Wicket.Throttler.prototype={initialize:function(a){this.postponeTimerOnUpdate=
22a},throttle:function(a,b,c){var d=Wicket.Throttler.entries,e=d[a],f=this;"undefined"===typeof e?(e=new Wicket.ThrottlerEntry(c),e.setTimeoutVar(window.setTimeout(function(){f.execute(a)},b)),d[a]=e):(e.setFunc(c),this.postponeTimerOnUpdate&&(window.clearTimeout(e.getTimeoutVar()),e.setTimeoutVar(window.setTimeout(function(){f.execute(a)},b))))},execute:function(a){var b=Wicket.Throttler.entries,c=b[a];if("undefined"!==typeof c)return c=c.getFunc(),b[a]=v,c()}};g.extend(!0,Wicket,{channelManager:new Wicket.ChannelManager,
23throttler:new Wicket.Throttler,$:function(a){return Wicket.DOM.get(a)},$$:function(a){return Wicket.DOM.inDoc(a)},merge:function(a,b){return g.extend({},a,b)},bind:function(a,b){return g.proxy(a,b)},Xml:{parse:function(a){return(new DOMParser).parseFromString(a,"text/xml")}},Form:{encode:function(a){return window.encodeURIComponent?window.encodeURIComponent(a):window.escape(a)},serializeSelect:function(a){var b=[];if(a){var c=g(a);if(0<c.length&&!1===c.prop("disabled"))if(a=c.prop("name"),c=c.val(),
24Array.isArray(c))for(var d=0;d<c.length;d++)b.push({name:a,value:c[d]});else b.push({name:a,value:c})}return b},serializeInput:function(a){var b=[];if(a&&a.type){var c=g(a);if("file"===a.type)for(c=0;c<a.files.length;c++)b.push({name:a.name,value:a.files[c]});else"image"!==a.type&&"submit"!==a.type&&(b=c.serializeArray())}return b},excludeFromAjaxSerialization:{},serializeElement:function(a,b){if(a)"string"===typeof a&&(a=Wicket.$(a));else return[];if(Wicket.Form.excludeFromAjaxSerialization&&a.id&&
25"true"===Wicket.Form.excludeFromAjaxSerialization[a.id])return[];var c=a.tagName.toLowerCase();if("select"===c)return Wicket.Form.serializeSelect(a);if("input"===c||"textarea"===c)return Wicket.Form.serializeInput(a);c=[];if(b){var d=t(a.getElementsByTagName("input"));d=d.concat(t(a.getElementsByTagName("select")));d=d.concat(t(a.getElementsByTagName("textarea")));for(var e=0;e<d.length;++e){var f=d[e];f.name&&""!==f.name&&(c=c.concat(Wicket.Form.serializeElement(f,b)))}}return c},serializeForm:function(a){var b=
26[];if(a)if("form"===a.tagName.toLowerCase())var c=a.elements;else{do a=a.parentNode;while("form"!==a.tagName.toLowerCase()&&"body"!==a.tagName.toLowerCase());c=t(a.getElementsByTagName("input"));c=c.concat(t(a.getElementsByTagName("select")));c=c.concat(t(a.getElementsByTagName("textarea")))}for(a=0;a<c.length;++a){var d=c[a];d.name&&""!==d.name&&(b=b.concat(Wicket.Form.serializeElement(d,!1)))}return b},serialize:function(a,b){"string"===typeof a&&(a=Wicket.$(a));if("form"===a.tagName.toLowerCase())return Wicket.Form.serializeForm(a);
27var c=a;if(!0!==b){do a=a.parentNode;while("form"!==a.tagName.toLowerCase()&&"body"!==a.tagName.toLowerCase())}if("form"===a.tagName.toLowerCase())return Wicket.Form.serializeForm(a);var d=document.createElement("form"),e=c.parentNode;
27e.replaceChild(d,c);d.appendChild(c);var f=Wicket.Form.serializeForm(d);e.replaceChild(c,d);return f}},DOM:{show:function(a,b){a=Wicket.$(a);null!==a&&(n(b)?g(a).show():a.style.display=b,a.removeAttribute("hidden"))},hide:function(a){a=Wicket.$(a);null!==a&&(g(a).hide(),
28a.setAttribute("hidden",""))},toggleClass:function(a,b,c){g("#"+a).toggleClass(b,c)},showIncrementally:function(a){a=Wicket.$(a);if(null!==a){var b=a.getAttribute("showIncrementallyCount");b=parseInt(n(b)?0:b,10);0<=b&&Wicket.DOM.show(a);a.setAttribute("showIncrementallyCount",b+1)}},hideIncrementally:function(a){a=Wicket.$(a);if(null!==a){var b=a.getAttribute("showIncrementallyCount");b=parseInt(n(b)?0:b-1,10);0>=b&&Wicket.DOM.hide(a);a.setAttribute("showIncrementallyCount",b)}},get:function(a){if(n(a))return null;
29if(1<arguments.length){for(var b=[],c=0;c<arguments.length;c++)b.push(Wicket.DOM.get(arguments[c]));return b}return"string"===typeof a?document.getElementById(a):a},inDoc:function(a){if(a===window)return!0;"string"===typeof a&&(a=Wicket.$(a));if(n(a)||n(a.tagName))return!1;var b=a.getAttribute("id");return n(b)||""===b?a.ownerDocument===document:document.getElementById(b)===a},replace:function(a,b){var c=Wicket.Event,d=c.Topic;c.publish(d.DOM_NODE_REMOVING,a);if("title"===a.tagName.toLowerCase())c=
30/>(.*?)</.exec(b)[1],document.title=c;else{var e=b.trim();e=g(e);g(a).replaceWith(e);(e=Wicket.$(a.id))&&c.publish(d.DOM_NODE_ADDED,e)}},add:function(a,b){var c=Wicket.Event,d=c.Topic,e=b.trim();e=g(e);g(a).append(e);(e=Wicket.$(a.id))&&c.publish(d.DOM_NODE_ADDED,e)},remove:function(a){var b=Wicket.Event;b.publish(b.Topic.DOM_NODE_REMOVING,a);g(a).remove()},serializeNodeChildren:function(a){if(n(a))return"";var b=[];if(0<a.childNodes.length)for(var c=0;c<a.childNodes.length;c++){var d=a.childNodes[c];
31switch(d.nodeType){case 1:case 5:b.push(this.serializeNode(d));break;case 8:b.push("\x3c!--");b.push(d.nodeValue);b.push("--\x3e");break;case 4:b.push("\x3c![CDATA[");b.push(d.nodeValue);b.push("]]\x3e");break;case 3:case 2:b.push(d.nodeValue)}}else b.push(a.textContent||a.text);return b.join("")},serializeNode:function(a){if(n(a))return"";var b=[];b.push("\x3c");b.push(a.nodeName);if(a.attributes&&0<a.attributes.length)for(var c=0;c<a.attributes.length;c++)a.attributes[c].nodeValue&&a.attributes[c].specified&&
32(b.push(" "),b.push(a.attributes[c].name),b.push('\x3d"'),b.push(a.attributes[c].value),b.push('"'));b.push("\x3e");b.push(Wicket.DOM.serializeNodeChildren(a));b.push("\x3c/");b.push(a.nodeName);b.push("\x3e");return b.join("")},containsElement:function(a){return(a=a.getAttribute("id"))?null!==Wicket.$(a):!1},text:function(a){if(n(a))return"";var b=[];if(0<a.childNodes.length)for(var c=0;c<a.childNodes.length;c++){var d=a.childNodes[c];switch(d.nodeType){case 1:case 5:b.push(this.text(d));break;case 3:case 4:b.push(d.nodeValue)}}else b.push(a.textContent||
33a.text);return b.join("")}},Ajax:{Call:Wicket.Ajax.Call,_handleEventCancelation:function(a){var b=a.event;if(b){if(a.pd)try{b.preventDefault()}catch(c){}"stop"===a.sp?Wicket.Event.stop(b):"stopImmediate"===a.sp&&Wicket.Event.stop(b,!0)}},get:function(a){a.m="GET";return Wicket.Ajax.ajax(a)},post:function(a){a.m="POST";return Wicket.Ajax.ajax(a)},ajax:function(a){a.c=a.c||window;a.e=a.e||["domready"];Array.isArray(a.e)||(a.e=[a.e]);g.each(a.e,function(b,c){Wicket.Event.add(a.c,c,function(d,e){var f=
34new Wicket.Ajax.Call,h=g.extend({},a);"domready"!==c&&(h.event=Wicket.Event.fix(d),e&&(h.event.extraData=e));f._executeHandlers(h.ih,h);Wicket.Event.publish(Wicket.Event.Topic.AJAX_CALL_INIT,h);var k=h.tr;k?(new Wicket.Throttler(k.p||!1)).throttle(k.id,k.d,Wicket.bind(function(){f.ajax(h)},this)):f.ajax(h);"domready"!==c&&Wicket.Ajax._handleEventCancelation(h)},null,a.sel)})},process:function(a){(new Wicket.Ajax.Call).process(a)},redirect:function(a){window.location=a}},Head:{Contributor:{parse:function(a){a=
35Wicket.DOM.text(a);return Wicket.Xml.parse(a)},_checkParserError:function(a){var b=!1;n(a.tagName)||"parsererror"!==a.tagName.toLowerCase()||(Wicket.Log.error("Error in parsing: %s",a.textContent),b=!0);return b},processContribution:function(a,b){var c=this.parse(b).documentElement;if(!this._checkParserError(c))for(var d=0;d<c.childNodes.length;d++){var e=c.childNodes[d];if(this._checkParserError(e))break;if(n(e.tagName))8===e.nodeType&&this.processComment(a,e);else{var f=e.tagName.toLowerCase();
36if("wicket:link"===f)for(var h=0;h<e.childNodes.length;++h){var k=e.childNodes[h];if(1===k.nodeType){e=k;f=e.tagName.toLowerCase();break}}"link"===f?this.processLink(a,e):"script"===f?this.processScript(a,e):"style"===f?this.processStyle(a,e):"meta"===f&&this.processMeta(a,e)}}},processLink:function(a,b){a.steps.push(function(c){function d(){k||(k=!0,c())}var e=Wicket.Head.containsElement(b,"href"),f=e.oldNode;if(e.contains)return l.DONE;f&&f.parentNode.removeChild(f);e=Wicket.Head.createElement("link");
37f=g(b).prop("attributes");var h=g(e);g.each(f,function(){h.attr(this.name,this.value)});var k=!1;e.onerror=d;e.onload=d;Wicket.Head.addElement(e);return l.ASYNC})},processStyle:function(a,b){a.steps.push(function(c){if(Wicket.DOM.containsElement(b))return l.DONE;var d=Wicket.DOM.serializeNodeChildren(b);c=Wicket.Head.createElement("style");c.id=b.getAttribute("id");c.nonce=b.getAttribute("nonce");
37d=document.createTextNode(d);c.appendChild(d);Wicket.Head.addElement(c);return l.DONE})},processScript:function(a,
38b){a.steps.push(function(c){if(!b.getAttribute("src")&&Wicket.DOM.containsElement(b))return l.DONE;var d=Wicket.Head.containsElement(b,"src"),e=d.oldNode;if(d.contains)return l.DONE;e&&e.parentNode.removeChild(e);var f=document.createElement("script");d=b.attributes;for(e=0;e<d.length;e++){var h=d[e];f[h.name]=h.value}d=b.getAttribute("src");if(null!==d&&""!==d){var k=function(){c()};"undefined"!==typeof f.onload?f.onload=k:"undefined"!==typeof f.onreadystatechange?f.onreadystatechange=function(){"loaded"!==
39f.readyState&&"complete"!==f.readyState||c()}:window.setTimeout(k,10);Wicket.Head.addElement(f);return l.ASYNC}var m={suspended:0,suspend:function(){m.suspended++},release:function(){m.suspended--;0===m.suspended&&c()}};d=Wicket.DOM.serializeNodeChildren(b);d=d.replace(/^\n\/\*<!\[CDATA\[\*\/\n/,"");d=d.replace(/\n\/\*\]\]>\*\/\n$/,"");try{Wicket.Ajax._currentSuspension=m,f.innerHTML=d,k=b.getAttribute("id"),Wicket.Head.addElement(f,"string"!==typeof k||0===k.length)}catch(r){Wicket.Log.error("Ajax.Call.processEvaluation: Exception evaluating javascript: %s",
40d,r)}finally{Wicket.Ajax.currentSuspension=v}return 0===m.suspended?l.DONE:l.ASYNC})},processMeta:function(a,b){a.steps.push(function(c){c=Wicket.Head.createElement("meta");var d=g(c),e=g(b).prop("attributes"),f=b.getAttribute("name"),h=b.getAttribute("http-equiv");f?g('meta[name\x3d"'+f+'"]').remove():h&&g('meta[http-equiv\x3d"'+h+'"]').remove();g.each(e,function(){d.attr(this.name,this.value)});Wicket.Head.addElement(c);return l.DONE})},processComment:function(a,b){a.steps.push(function(c){c=document.createComment(b.nodeValue);
41Wicket.Head.addElement(c);return l.DONE})}},createElement:function(a){if(n(a)||""===a)Wicket.Log.error("Cannot create an element without a name");else return document.createElement(a)},addElement:function(a,b){var c=document.querySelector('head meta[name\x3d"wicket.header.items"]');c?c.parentNode.insertBefore(a,c):(c=document.querySelector("head"))&&c.appendChild(a);b&&a.parentNode.removeChild(a)},containsElement:function(a,b){var c=a.getAttribute(b);if(n(c)||""===c)return{contains:!1};var d=a.tagName.toLowerCase(),
42e=a.getAttribute("id"),f=document.getElementsByTagName("head")[0];"script"===d&&(f=document);f=f.getElementsByTagName(d);for(var h=0;h<f.length;++h){var k=f[h];if(k.tagName.toLowerCase()===d){var m=k.getAttribute(b),r=k.getAttribute(b+"_");if(m===c||r===c)return{contains:!0};if(e&&e===k.getAttribute("id"))return{contains:!1,oldNode:k}}}return{contains:!1}}},Focus:{lastFocusId:"",refocusLastFocusedComponentAfterResponse:!1,focusSetFromServer:!1,focusin:function(a){a=Wicket.Event.fix(a);var b=a.target;
43b&&(a=Wicket.Focus,a.refocusLastFocusedComponentAfterResponse=!1,b=b.id,a.lastFocusId=b,Wicket.Log.info("focus set on '%s'",b))},focusout:function(a){a=Wicket.Event.fix(a);var b=a.target;a=Wicket.Focus;b&&a.lastFocusId===b.id&&(b=b.id,a.refocusLastFocusedComponentAfterResponse?Wicket.Log.info("focus removed from '%s' but ignored because of component replacement",b):(a.lastFocusId=null,Wicket.Log.info("focus removed from '%s'",b)))},getFocusedElement:function(){var a=Wicket.Focus.lastFocusId;if(a)return a=
44Wicket.$(a),Wicket.Log.info("returned focused element:",a),a},setFocusOnId:function(a){var b=Wicket.Focus;a?(b.refocusLastFocusedComponentAfterResponse=!0,b.focusSetFromServer=!0,b.lastFocusId=a,Wicket.Log.info("focus set on '%s' from server side",a)):(b.refocusLastFocusedComponentAfterResponse=!1,Wicket.Log.info("refocus focused component after request stopped from server side"))},markFocusedComponent:function(){var a=Wicket.Focus,b=a.getFocusedElement();b?(b.wasFocusedBeforeComponentReplacements=
45!0,a.refocusLastFocusedComponentAfterResponse=!0,a.focusSetFromServer=!1):a.refocusLastFocusedComponentAfterResponse=!1},checkFocusedComponentReplaced:function(){var a=Wicket.Focus;if(a.refocusLastFocusedComponentAfterResponse){var b=a.getFocusedElement();b?"undefined"!==typeof b.wasFocusedBeforeComponentReplacements&&(a.refocusLastFocusedComponentAfterResponse=!1):(a.refocusLastFocusedComponentAfterResponse=!1,a.lastFocusId="")}},requestFocus:function(){var a=Wicket.Focus;if(a.refocusLastFocusedComponentAfterResponse&&
46a.lastFocusId){var b=Wicket.$(a.lastFocusId);if(b){Wicket.Log.info("Calling focus on '%s'",a.lastFocusId);var c=function(){try{b.focus()}catch(e){}};if(a.focusSetFromServer)window.setTimeout(c,0);else{var d=b.onfocus;b.onfocus=null;window.setTimeout(function(){c();b.onfocus=d},0)}}
46else a.lastFocusId="",Wicket.Log.info("Couldn't set focus on element with id '%s' because it is not in the page anymore",a.lastFocusId)}else a.refocusLastFocusedComponentAfterResponse?Wicket.Log.info("last focus id was not set"):
47Wicket.Log.info("refocus last focused component not needed/allowed");Wicket.Focus.refocusLastFocusedComponentAfterResponse=!1}},Timer:{set:function(a,b,c){"undefined"===typeof Wicket.TimerHandles&&(Wicket.TimerHandles={});Wicket.Timer.clear(a);Wicket.TimerHandles[a]=setTimeout(function(){Wicket.Timer.clear(a);b()},c)},clear:function(a){Wicket.TimerHandles&&Wicket.TimerHandles[a]&&(clearTimeout(Wicket.TimerHandles[a]),delete Wicket.TimerHandles[a])},clearAll:function(){var a=Wicket.TimerHandles;if(a)for(var b in a)a.hasOwnProperty(b)&&
48Wicket.Timer.clear(b)}},Event:{idCounter:0,getId:function(a){a=g(a);var b=a.prop("id");"string"===typeof b&&0<b.length||(b="wicket-generated-id-"+Wicket.Event.idCounter++,a.prop("id",b));return b},keyCode:function(a){return Wicket.Event.fix(a).keyCode},stop:function(a,b){a=Wicket.Event.fix(a);b?a.stopImmediatePropagation():a.stopPropagation();return a},fix:function(a){return g.event.fix(a||window.event)},fire:function(a,b){g(a).trigger(b)},add:function(a,b,c,d,e){if("domready"===b)g(c);else if("load"===
49b&&a===window)g(window).on("load",function(){g(c)});else{var f=a;"string"===typeof a&&(f=document.getElementById(a));!f&&Wicket.Log&&Wicket.Log.error("Cannot bind a listener for event '%s' because the element is not in the DOM",b,a);g(f).on(b,e,d,c)}return a},remove:function(a,b,c){g(a).off(b,c)},subscribe:function(a,b){if(a)g(document).on(a,b)},unsubscribe:function(a,b){a?b?g(document).off(a,b):g(document).off(a):g(document).off()},publish:function(a){if(a){var b=Array.prototype.slice.call(arguments).slice(1);
50g(document).triggerHandler(a,b);g(document).triggerHandler("*",b)}},requestSubmit:function(a){a.requestSubmit?a.requestSubmit():g(a).trigger("submit")},Topic:{DOM_NODE_REMOVING:"/dom/node/removing",DOM_NODE_ADDED:"/dom/node/added",AJAX_CALL_INIT:"/ajax/call/init",AJAX_CALL_BEFORE:"/ajax/call/before",AJAX_CALL_PRECONDITION:"/ajax/call/precondition",AJAX_CALL_BEFORE_SEND:"/ajax/call/beforeSend",AJAX_CALL_SUCCESS:"/ajax/call/success",AJAX_CALL_COMPLETE:"/ajax/call/complete",AJAX_CALL_AFTER:"/ajax/call/after",
51AJAX_CALL_FAILURE:"/ajax/call/failure",AJAX_CALL_DONE:"/ajax/call/done",AJAX_HANDLERS_BOUND:"/ajax/handlers/bound"}}});Wicket.Event.add(window,"focusin",Wicket.Focus.focusin);Wicket.Event.add(window,"focusout",Wicket.Focus.focusout);Wicket.Event.add(window,"unload",function(){Wicket.Timer.clearAll()})}})(jQuery);

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.