window.ice||(window.ice={});window.ice.ace||(window.ice.ace={});ice.ace.ab=function(a){ice.ace.AjaxRequest(a)};ice.ace.locales={};ice.ace.PARTIAL_REQUEST_PARAM="javax.faces.partial.ajax";ice.ace.PARTIAL_UPDATE_PARAM="javax.faces.partial.render";ice.ace.PARTIAL_PROCESS_PARAM="javax.faces.partial.execute";ice.ace.PARTIAL_SOURCE_PARAM="javax.faces.source";ice.ace.BEHAVIOR_EVENT_PARAM="javax.faces.behavior.event";ice.ace.PARTIAL_EVENT_PARAM="javax.faces.partial.event";ice.ace.VIEW_STATE="javax.faces.ViewState";
ice.ace.deadStates={};ice.ace.escapeClientId=function(a){return"#"+a.replace(/:/g,"\\:")};ice.ace.instance=function(a){var c=ice.ace.lazy.registry[a];return c?c():(a=document.getElementById(a))&&a.widget?a.widget:null};ice.ace.instanceNoLazyInit=function(a){return(a=document.getElementById(a))&&a.widget?a.widget:null};ice.ace.destroy=function(a){var c=document.getElementById(a),b=c.widget;b&&b.destroy&&(b=b.destroy())&&(ice.ace.deadStates[a]=b);delete c.widget};
ice.ace.lazy=function(a,c){var b=c[0],d=document.getElementById(b);return ice.ace.lazy.registry[b]?(delete ice.ace.lazy.registry[b],b=ice.ace.create(a,c)):d.widget?d.widget:b=ice.ace.create(a,c)};ice.ace.evalInit=function(a){for(;a;){var c=a.dataset&&a.dataset.init||a.getAttribute("data-init");if(c)return ice.globalEval(c);a=a.parentNode}};
ice.ace.registerLazyComponent=function(a){ice.ace.lazy.registry[a]||(ice.ace.lazy.registry[a]=function(){var c=document.getElementById(a),b=c.widget;if(b)return b;ice.ace.evalInit(c);return c.widget})};ice.ace.lazy.registry={};
ice.ace.create=function(a,c){var b=c[0],d=function(a){},e=document.getElementById(b);e&&(d=function(a){e.widget=a});ice.ace.deadStates[b]&&(c.push(ice.ace.deadStates[b]),ice.ace.deadStates[b]=void 0);if(ice.ace.jq.isFunction(ice.ace[a])){if("function"==typeof Object.create)return b=Object.create(ice.ace[a].prototype),ice.ace[a].apply(b,c),d(b),b;var b=function(){},f;b.prototype=ice.ace[a].prototype;b=new b;f=ice.ace[a].apply(b,c);f=Object(f)===f?f:b;d(f);return f}throw'Missing resources for "'+a+
'" component. See "http://www.icesoft.org/wiki/display/ICE/mandatoryResourceConfiguration" for more details.';};ice.ace.attachBehaviors=function(a,c){for(var b in c)a.bind(b,function(){ice.ace.ab.call(a,c[b])})};ice.ace.eachCustomUpdate=function(a,c){for(var b=a.documentElement.getElementsByTagName("extension"),d=0,e=b.length;d<e;d++){var f=b[d];f.getAttributeNode("ice.customUpdate")&&c(f.attributes.getNamedItem("id").nodeValue,f.firstChild.data)}};
ice.ace.clearExecRender=function(a){a.execute=void 0;a.render=void 0;return a};
ice.ace.extendAjaxArgs=function(a,c){a=ice.ace.util.clone(a);if(a instanceof Array){var b=a;a={};for(var d in b)a=ice.ace.extendAjaxArgs(a,b[d])}b=c.params;d=c.execute;var e=c.render,f=c.source,h=c.node,k=c.event,g=c.onstart,l=c.onerror,m=c.onsuccess,n=c.oncomplete;b&&(a.params?ice.ace.util.extend(a.params,b):a.params=b);d&&(a.execute=a.execute?a.execute+" "+d:d);e&&(a.render=a.render?a.render+" "+e:e);h&&(a.node=h);f&&!a.source&&(a.source=f);k&&(a.event=k);if(g)if(a.onstart){var p=a.onstart;a.onstart=
function(a){var b=p(a);return g(a)&&b}}else a.onstart=g;if(l)if(a.onerror){var q=a.onerror;a.onerror=function(a,b,c){var d=q(a,b,c);return l(a,b,c)&&d}}else a.onerror=l;if(m)if(a.onsuccess){var r=a.onsuccess;a.onsuccess=function(a,b,c,d){var e=r(a,b,c,d);return m(a,b,c,d)&&e}}else a.onsuccess=m;if(n)if(a.oncomplete){var s=a.oncomplete;a.oncomplete=function(a,b,c){var d=s(a,b,c);return n(a,b,c)&&d}}else a.oncomplete=n;return a};
ice.ace.AjaxRequest=function(a){if(!a.onstart||a.onstart.call(this,a)){var c;!document.getElementById(a.source)&&a.node?(c=a.node,c.id=a.source):c="string"==typeof a.source?document.getElementById(a.source):a.source;c||(c=ice.ace.jq(ice.ace.escapeClientId(a.source)).parents("form:first"),0==c.length&&(c=ice.ace.jq(a.node).parents("form:first")),0==c.length&&(c=ice.ace.jq("form").eq(0)),c=c.length?c[0]:null);var b=a.resetValues&&"true"==a.resetValues;ice.fullSubmit(a.execute||"@all",a.render||"@all",
null,c,function(c){if(a.event){c(ice.ace.BEHAVIOR_EVENT_PARAM,a.event);var e=a.event;"valueChange"==a.event?e="change":"action"==a.event&&(e="click");c(ice.ace.PARTIAL_EVENT_PARAM,e)}else c(a.source,a.source);b&&c("javax.faces.partial.resetValues","true");if(a.params){var e=a.params,f;for(f in e)c(f,e[f])}},function(b,c,f,h,k){var g={};f(function(b){a.onsuccess&&!a.onsuccess.call(g,b,null,null)||ice.ace.AjaxResponse.call(g,b)});a.oncomplete&&f(function(b){a.oncomplete.call(g,null,null,g.args)});a.onerror&&
(h(function(b,c){a.onerror.call(g,null,b,c)}),k(function(b,c){a.onerror.call(g,null,b,c)}))})}};ice.ace.AjaxResponse=function(a){a=a.documentElement.getElementsByTagName("extension");this.args={};for(var c=0,b=a.length;c<b;c++){var d=a[c];if(d.getAttributeNode("aceCallbackParam")){var e=JSON.parse(d.firstChild.data),f;for(f in e)f&&(this.args[f]=e[f])}d.getAttributeNode("ice.customUpdate")&&(e=d.attributes.getNamedItem("id").nodeValue,this.updateElem(e,d.firstChild.data))}};
ice.ace.AjaxResponse.updateElem=function(a,c){ice.ace.jq(ice.ace.escapeClientId(a)).replaceWith(c);if(ice.ace.jq.mobile){var b=ice.ace.jq(ice.ace.escapeClientId(a)).parent().find("input, textarea, select, button, ul");b.filter("input, textarea").not("[type='radio'], [type='checkbox'], [type='button'], [type='submit'], [type='reset'], [type='image'], [type='hidden']").textinput();b.filter("[data-role='listview']").listview();b.filter("button, [type='button'], [type='submit'], [type='reset'], [type='image']").button();
b.filter("input, select").filter("[data-role='slider'], [data-type='range']").slider();b.filter("select:not([data-role='slider'])").selectmenu()}};
ice.ace.clearForm=function(a){"string"===typeof a&&(a=ice.ace.escapeClientId(a));a=ice.ace.jq(a);if(a.get(0)){for(var c=a.get(0).elements,b=0;b<c.length;b++)if(!c[b].getAttribute("data-ice-clear-ignore")){var d=c[b].type.toLowerCase(),e=c[b].name;if(e!=a.attr("id")&&e!=a.attr("id")+"_SUBMIT"){switch(e){case "ice.window":case "ice.view":case "javax.faces.ViewState":case "javax.faces.ClientWindow":continue}switch(d){case "text":case "password":case "textarea":case "hidden":case "date":case "time":c[b].value="";
break;case "radio":case "checkbox":c[b].checked&&(c[b].checked=!1);break;case "select-one":case "select-multi":c[b].selectedIndex=-1}}}a.find("*[data-ice-reset]").each(function(a,b){var c=eval(b.getAttribute("data-ice-reset")),d=c[0];"flipswitch"==d||"datespinner"==d||"timespinner"==d?mobi[c[0]].clear.apply(this,c[1]):ice.ace[c[0]].clear.apply(this,c[1])})}};ice.ace.resetValues||(ice.ace.resetValues={});
ice.ace.resetForm=function(a){"string"===typeof a&&(a=ice.ace.escapeClientId(a));a=ice.ace.jq(a);a.get(0)&&(a.get(0).reset(),a.find("*[data-ice-reset]").each(function(a,b){var d=eval(b.getAttribute("data-ice-reset")),e=d[0];"flipswitch"==e||"datespinner"==e||"timespinner"==e?mobi[d[0]].reset.apply(this,d[1]):ice.ace[d[0]].reset.apply(this,d[1])}))};
ice.ace.setResetValue=function(a,c){"undefined"==typeof ice.ace.resetValues[a]&&ice.ace.jq(ice.ace.escapeClientId(a)).get(0)&&(ice.ace.resetValues[a]=c)};ice.ace.isSet=function(a){return!("undefined"==typeof a||null===a)};
(function(){function a(a){return 0<=c.indexOf(a)}var c=navigator.userAgent.toLowerCase();ice.ace.browser={isIE:function(){return a("msie")},isEdge:function(){return a("trident")},isSafari:function(){return a("safari")&&!a("chrome")&&!a("mobile safari")},isFirefox:function(){return a("firefox")},isChrome:function(){return a("chrome")},majorVersion:function(){try{return ice.ace.browser.isFirefox()?Number(navigator.userAgent.match(/Firefox[\/\s](\d+)\.\d+/)[1]):ice.ace.browser.isSafari()?Number(navigator.userAgent.match(/Version\/(\d+)/)[1]):
ice.ace.browser.isChrome()?Number(navigator.userAgent.match(/Chrome\/(\d+)\.\d+/)[1]):ice.ace.browser.isIE()?Number(navigator.userAgent.match(/MSIE (\d+)\.\d+;/)[1]):ice.ace.browser.isEdge()?Number(navigator.userAgent.match(/Trident.*rv[ :]*(\d+)\.\d+/)[1]):0}catch(a){return 0}},minorVersion:function(){try{return ice.ace.browser.isFirefox()?Number(navigator.userAgent.match(/Firefox[\/\s]\d+\.(\d+)/)[1]):ice.ace.browser.isSafari()?Number(navigator.userAgent.match(/Version\/\d+\.(\d+)/)[1]):ice.ace.browser.isChrome()?
Number(navigator.userAgent.match(/Chrome\/\d+\.(\d+)/)[1]):ice.ace.browser.isIE()?Number(navigator.userAgent.match(/MSIE \d+\.(\d+);/)[1]):ice.ace.browser.isEdge()?Number(navigator.userAgent.match(/Trident.*rv[ :]*\d+\.(\d+)/)[1]):0}catch(a){return 0}},os:{isWindows:function(){return a("windows")},isOSX:function(){return a("macintosh")},isLinux:function(){return a("linux")},isAndroid:function(){return a("android")},isiOS:function(){return a("ipod")||a("ipad")||a("iphone")}},localStorageAvailable:function(){var a=
!1;if(window.localStorage){var c=String(Math.random());try{window.localStorage.testLocalStorage=c,a=window.localStorage.testLocalStorage==c}finally{window.localStorage.removeItem("testLocalStorage")}}return a},cookiesEnabled:function(){return navigator.cookieEnabled},isOnline:function(){return navigator.onLine}}})();window.ice||(window.ice={});window.ice.ace||(window.ice.ace={});window.ice.ace.jq||(ice.ace.jq=jQuery,jQuery.noConflict(!0));window.ice.ace.util||(window.ice.ace.util={});
ice.ace.util.clone=function(a){if(null==a||"object"!=typeof a)return a;if(a instanceof Date){var c=new Date;c.setTime(a.getTime());return c}if(a instanceof Array){var c=[],b,d=0;for(b=a.length;d<b;++d)c[d]=ice.ace.util.clone(a[d]);return c}if(a instanceof Object){c={};for(b in a)a.hasOwnProperty(b)&&(c[b]=ice.ace.util.clone(a[b]));return c}throw Error("Unable to copy obj! Its type isn't supported.");};ice.ace.util.extend=function(a,c){for(var b in c)a[b]=c[b]};
ice.ace.util.formOf=function(a){for(a=a.parentNode;a;){if(a.tagName&&"form"==a.tagName.toLowerCase())return a;a=a.parentNode}throw"Cannot find enclosing form.";};ice.ace.util.insertElementAtIndex=function(a,c,b){a.hasChildNodes()?(b=a.childNodes[b])?a.insertBefore(c,b):a.appendChild(c):a.appendChild(c)};ice.ace.util.isEventSourceInputElement=function(a){a=ice.ace.util.eventTarget(a).tagName.toLowerCase();return"input"==a||"select"==a||"option"==a||"a"==a||"textarea"==a||"button"==a?!0:!1};
ice.ace.util.isEventSourceInputElementWithin=function(a,c){for(var b=ice.ace.util.eventTarget(a);b&&b!=c;){var d=b.tagName.toLowerCase();if("input"==d||"select"==d||"option"==d||"a"==d||"textarea"==d||"button"==d)return!0;b=b.parentNode}return!1};ice.ace.util.eventTarget=function(a){a=a||window.event;return a.target||a.srcElement};
ice.ace.util.isMouseOver=function(a,c){a=ice.ace.jq(a);var b=a.offset(),d=b.left,e=d+a.outerWidth(),b=b.top,f=b+a.outerHeight(),h=c.pageY,k=c.pageX;return h<f&&h>b&&k<e&&k>d};ice.ace.util.getEvent=function(){if(ice.ace.jq.browser.msie&&9>ice.ace.jq.browser.version)return window.event;for(var a=ice.ace.util.getEvent.caller;a;)if((a=a.caller)&&a.arguments[0]instanceof Event)return a.arguments[0];return null};Array.prototype.diff=function(a){return this.filter(function(c){return!(-1<a.indexOf(c))})};
"function"!==typeof Array.prototype.reduce&&(Array.prototype.reduce=function(a,c){if(null===this||"undefined"===typeof this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!==typeof a)throw new TypeError(a+" is not a function");var b=0,d=this.length>>>0,e,f=!1;1<arguments.length&&(e=c,f=!0);for(;d>b;++b)this.hasOwnProperty(b)&&(f?e=a(e,this[b],b,this):(e=this[b],f=!0));if(!f)throw new TypeError("Reduce of empty array with no initial value");return e});
ice.ace.util.arrayIndexOf=function(a,c,b){if(a.indexOf)return a.indexOf(c,b);var d=a.length;for(null==b?b=0:0>b&&(b=Math.max(0,d+b));b<d;b++)if(a[b]===c)return b;return-1};ice.ace.util.arraysEqual=function(a,c){if(!a&&!c)return!0;if(!a||!c)return!1;var b=a.length;if(b!=c.length)return!1;for(var d=0;d<b;d++)if(a[d]!==c[d])return!1;return!0};ice.ace.util.getStyleSheet=function(a){for(var c=0;c<document.styleSheets.length;c++)if(document.styleSheets[c].title==a)return document.styleSheets[c]};
ice.ace.util.addStyleSheet=function(a,c){var b=document.createElement("style");b.type="text/css";b.styleSheet?b.styleSheet.cssText="":b.appendChild(document.createTextNode(""));ice.ace.jq(c||"head").append(b);ice.ace.jq.browser.safari||ice.ace.jq.browser.chrome?setTimeout(function(){b.title=a},1E3):b.title=a;return b.styleSheet?b.styleSheet:b.sheet};
ice.ace.util.getOpacity=function(a){var c=ice.ace.jq(a).css("opacity");if(a=ice.ace.jq(a).css("filter"))a=parseInt(a.replace(")","").replace("alpha(opacity=",""))/100,isNaN(a)||""==a||(c=a);return c};ice.ace.util.bindHoverFocusStyle=function(a){a.hover(function(){ice.ace.jq(this).addClass("ui-state-hover")},function(){ice.ace.jq(this).removeClass("ui-state-hover")}).focus(function(){ice.ace.jq(this).addClass("ui-state-focus")}).blur(function(){ice.ace.jq(this).removeClass("ui-state-focus")})};
ice.ace.jq.cookie=function(a,c,b){if(1<arguments.length&&(null===c||"object"!==typeof c)){b=ice.ace.jq.extend({},b);null===c&&(b.expires=-1);if("number"===typeof b.expires){var d=b.expires,e=b.expires=new Date;e.setDate(e.getDate()+d)}return document.cookie=[encodeURIComponent(a),"=",b.raw?String(c):encodeURIComponent(String(c)),b.expires?"; expires="+b.expires.toUTCString():"",b.path?"; path="+b.path:"",b.domain?"; domain="+b.domain:"",b.secure?"; secure":""].join("")}b=c||{};e=b.raw?function(a){return a}:
decodeURIComponent;return(d=RegExp("(?:^|; )"+encodeURIComponent(a)+"=([^;]*)").exec(document.cookie))?e(d[1]):null};
