/*!
 * jQuery Browser Plugin 0.1.0
 * https://github.com/gabceb/jquery-browser-plugin
 *
 * Original jquery-browser code Copyright 2005, 2015 jQuery Foundation, Inc. and other contributors
 * http://jquery.org/license
 *
 * Modifications Copyright 2015 Gabriel Cebrian
 * https://github.com/gabceb
 *
 * Released under the MIT license
 *
 * Date: 05-07-2015
 */
(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],function(b){return a(b)})}else{if(typeof module==="object"&&typeof module.exports==="object"){module.exports=a(require("jquery"))}else{a(window.jQuery)}}}(function(b){function a(d){if(d===undefined){d=window.navigator.userAgent}d=d.toLowerCase();var j=/(edge)\/([\w.]+)/.exec(d)||/(opr)[\/]([\w.]+)/.exec(d)||/(chrome)[ \/]([\w.]+)/.exec(d)||/(iemobile)[\/]([\w.]+)/.exec(d)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(d)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(d)||/(webkit)[ \/]([\w.]+)/.exec(d)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(d)||/(msie) ([\w.]+)/.exec(d)||d.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(d)||d.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(d)||[];var i=/(ipad)/.exec(d)||/(ipod)/.exec(d)||/(windows phone)/.exec(d)||/(iphone)/.exec(d)||/(kindle)/.exec(d)||/(silk)/.exec(d)||/(android)/.exec(d)||/(win)/.exec(d)||/(mac)/.exec(d)||/(linux)/.exec(d)||/(cros)/.exec(d)||/(playbook)/.exec(d)||/(bb)/.exec(d)||/(blackberry)/.exec(d)||[];var k={},e={browser:j[5]||j[3]||j[1]||"",version:j[2]||j[4]||"0",versionNumber:j[4]||j[2]||"0",platform:i[0]||""};if(e.browser){k[e.browser]=true;k.version=e.version;k.versionNumber=parseInt(e.versionNumber,10)}if(e.platform){k[e.platform]=true}if(k.android||k.bb||k.blackberry||k.ipad||k.iphone||k.ipod||k.kindle||k.playbook||k.silk||k["windows phone"]){k.mobile=true}if(k.cros||k.mac||k.linux||k.win){k.desktop=true}if(k.chrome||k.opr||k.safari){k.webkit=true}if(k.rv||k.iemobile){var c="msie";e.browser=c;k[c]=true}if(k.edge){delete k.edge;var m="msedge";e.browser=m;k[m]=true}if(k.safari&&k.blackberry){var g="blackberry";e.browser=g;k[g]=true}if(k.safari&&k.playbook){var p="playbook";e.browser=p;k[p]=true}if(k.bb){var n="blackberry";e.browser=n;k[n]=true}if(k.opr){var h="opera";e.browser=h;k[h]=true}if(k.safari&&k.android){var f="android";e.browser=f;k[f]=true}if(k.safari&&k.kindle){var o="kindle";e.browser=o;k[o]=true}if(k.safari&&k.silk){var l="silk";e.browser=l;k[l]=true}k.name=e.browser;k.platform=e.platform;return k}window.jQBrowser=a(window.navigator.userAgent);window.jQBrowser.uaMatch=a;if(b){b.browser=window.jQBrowser}return window.jQBrowser}));
/*! js-cookie v3.0.0-rc.0 | MIT */
(function(b,a){typeof exports==="object"&&typeof module!=="undefined"?module.exports=a():typeof define==="function"&&define.amd?define(a):(b=b||self,(function(){var d=b.Cookies;var c=b.Cookies=a();c.noConflict=function(){b.Cookies=d;return c}}()))}(this,(function(){function b(h){for(var f=1;f<arguments.length;f++){var g=arguments[f];for(var e in g){h[e]=g[e]}}return h}var a={read:function(e){return e.replace(/%3B/g,";")},write:function(e){return e.replace(/;/g,"%3B")}};function d(g,e){function h(k,m,i){if(typeof document==="undefined"){return}i=b({},e,i);if(typeof i.expires==="number"){i.expires=new Date(Date.now()+i.expires*86400000)}if(i.expires){i.expires=i.expires.toUTCString()}k=a.write(k).replace(/=/g,"%3D");m=g.write(String(m),k);var l="";for(var j in i){if(!i[j]){continue}l+="; "+j;if(i[j]===true){continue}l+="="+i[j].split(";")[0]}return(document.cookie=k+"="+m+l)}function f(l){if(typeof document==="undefined"||(arguments.length&&!l)){return}var m=document.cookie?document.cookie.split("; "):[];var o={};for(var k=0;k<m.length;k++){var p=m[k].split("=");var n=p.slice(1).join("=");var j=a.read(p[0]).replace(/%3D/g,"=");o[j]=g.read(n,j);if(l===j){break}}return l?o[l]:o}return Object.create({set:h,get:f,remove:function(j,i){h(j,"",b({},i,{expires:-1}))},withAttributes:function(i){return d(this.converter,b({},this.attributes,i))},withConverter:function(i){return d(b({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(g)}})}var c=d(a,{path:"/"});return c})));
(function(a){if(a.PrimeFaces){a.PrimeFaces.debug("PrimeFaces already loaded, ignoring duplicate execution.");return}var b={escapeClientId:function(c){return"#"+c.replace(/:/g,"\\:")},onElementLoad:function(c,d){if(c.prop("complete")){d()}else{c.on("load",d)}},getWidgetById:function(e){for(var d in b.widgets){var c=b.widgets[d];if(c&&c.id===e){return c}}return null},getWidgetsByType:function(c){return $.map(this.widgets,function(e,d){return c.prototype.isPrototypeOf(e)?e:null})},addSubmitParam:function(d,f){var e=$(this.escapeClientId(d));for(var c in f){e.append('<input type="hidden" name="'+b.escapeHTML(c)+'" value="'+b.escapeHTML(f[c])+'" class="ui-submit-param"></input>')}return this},submit:function(f,e){var c=$(this.escapeClientId(f));var d;if(e){d=c.attr("target");c.attr("target",e)}c.trigger("submit");c.children("input.ui-submit-param").remove();if(e){if(d!==undefined){c.attr("target",d)}else{c.removeAttr("target")}}},abortXHRs:function(){b.ajax.Queue.abortAll()},attachBehaviors:function(d,c){$.each(c,function(f,e){d.on(f,function(g){e.call(d,g)})})},getCookie:function(c){return Cookies.get(c)},setCookie:function(d,e,c){if(location.protocol==="https:"&&b.settings.cookiesSecure){c.secure=true;if(b.settings.cookiesSameSite){c.sameSite=b.settings.cookiesSameSite}}Cookies.set(d,e,c)},deleteCookie:function(d,c){Cookies.remove(d,c)},cookiesEnabled:function(){var c=(navigator.cookieEnabled)?true:false;if(typeof navigator.cookieEnabled==="undefined"&&!c){document.cookie="testcookie";c=(document.cookie.indexOf("testcookie")!==-1)?true:false}return(c)},createStorageKey:function(e,d){var c=b.settings.contextPath.replace(/\//g,"-")+b.settings.viewId.replace(/\//g,"-")+e+"-"+d;return c.toLowerCase()},updateFilledState:function(c,d){var e=c.val();if(typeof(e)=="undefined"){return}if(e.length){c.addClass("ui-state-filled");if(d.is("span:not('.ui-float-label')")){d.addClass("ui-inputwrapper-filled")}}else{c.removeClass("ui-state-filled");d.removeClass("ui-inputwrapper-filled")}},skinInput:function(c){var d=c.parent(),e=function(){if(d.hasClass("ui-inputwrapper-focus")){d.removeClass("ui-inputwrapper-focus")}b.updateFilledState(c,d)};b.updateFilledState(c,d);c.on("mouseenter",function(){$(this).addClass("ui-state-hover")}).on("mouseleave",function(){$(this).removeClass("ui-state-hover")}).on("focus",function(){$(this).addClass("ui-state-focus");if(d.is("span:not('.ui-float-label')")){d.addClass("ui-inputwrapper-focus")}}).on("blur",function(){$(this).removeClass("ui-state-focus");if(c.hasClass("hasDatepicker")){setTimeout(function(){e()},150)}else{e()}});if(c.is(':not([type="password"])')){c.attr("role","textbox").attr("aria-readonly",c.prop("readonly"))}c.attr("aria-disabled",c.is(":disabled"));if(c.is("textarea")){c.attr("aria-multiline",true)}return this},skinButton:function(c){c.on("mouseover",function(){var e=$(this);if(!c.prop("disabled")){e.addClass("ui-state-hover")}}).on("mouseout",function(){$(this).removeClass("ui-state-active ui-state-hover")}).on("mousedown",function(){var e=$(this);if(!c.prop("disabled")){e.addClass("ui-state-active").removeClass("ui-state-hover")}}).on("mouseup",function(){$(this).removeClass("ui-state-active").addClass("ui-state-hover")}).on("focus",function(){$(this).addClass("ui-state-focus")}).on("blur",function(){$(this).removeClass("ui-state-focus ui-state-active")}).on("keydown",function(f){if(f.which===$.ui.keyCode.SPACE||f.which===$.ui.keyCode.ENTER){$(this).addClass("ui-state-active")}}).on("keyup",function(){$(this).removeClass("ui-state-active")});var d=c.attr("role");if(!d){c.attr("role","button")}c.attr("aria-disabled",c.prop("disabled"));return this},skinSelect:function(c){c.on("mouseover",function(){var d=$(this);if(!d.hasClass("ui-state-focus")){d.addClass("ui-state-hover")}}).on("mouseout",function(){$(this).removeClass("ui-state-hover")}).on("focus",function(){$(this).addClass("ui-state-focus").removeClass("ui-state-hover")}).on("blur",function(){$(this).removeClass("ui-state-focus ui-state-hover")});return this},info:function(c){if(this.logger){this.logger.info(c)}},debug:function(c){if(this.logger){this.logger.debug(c)}},warn:function(c){if(this.logger){this.logger.warn(c)}if(b.isDevelopmentProjectStage()&&a.console){console.log(c)}},error:function(c){if(this.logger){this.logger.error(c)}if(b.isDevelopmentProjectStage()&&a.console){console.error(c)}},isDevelopmentProjectStage:function(){return b.settings.projectStage==="Development"},widgetNotAvailable:function(c){b.error("Widget for var '"+c+"' not available!")},setCaretToEnd:function(d){if(d){d.trigger("focus");var e=d.value.length;if(e>0){if(d.setSelectionRange){d.setSelectionRange(0,e)}else{if(d.createTextRange){var c=d.createTextRange();c.collapse(true);c.moveEnd("character",1);c.moveStart("character",1);c.select()}}}}},getThemeLink:function(){var c=$('link[href*="'+b.RESOURCE_IDENTIFIER+'/theme.css"]');if(c.length===0){c=$('link[href*="'+b.RESOURCE_IDENTIFIER+'=theme.css"]')}return c},getTheme:function(){var f=b.getThemeLink();if(f.length===0){return""}var e=f.attr("href"),d=e.split("&")[0],c=d.split("ln=primefaces-")[1];return c},changeTheme:function(g){if(g&&g!==""){var h=b.getThemeLink();var f=h.attr("href"),e=f.split("&")[0],d=e.split("ln=")[1],c=f.replace(d,"primefaces-"+g);h.attr("href",c)}},escapeRegExp:function(c){return this.escapeHTML(c.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"))},escapeHTML:function(c){return String(c).replace(/[&<>"'`=\/]/g,function(d){return b.entityMap[d]})},clearSelection:function(){if(a.getSelection){if(a.getSelection().empty){a.getSelection().empty()}else{if(a.getSelection().removeAllRanges&&a.getSelection().rangeCount>0&&a.getSelection().getRangeAt(0).getClientRects().length>0){a.getSelection().removeAllRanges()}}}else{if(document.selection&&document.selection.empty){try{document.selection.empty()}catch(c){}}}},getSelection:function(){var c="";if(a.getSelection){c=a.getSelection()}else{if(document.getSelection){c=document.getSelection()}else{if(document.selection){c=document.selection.createRange().text}}}return c},hasSelection:function(){return this.getSelection().length>0},cw:function(d,e,c){this.createWidget(d,e,c)},getFacesResource:function(e,d,c){return b.resources.getFacesResource(e,d,c)},createWidget:function(d,f,c){c.widgetVar=f;if(this.widget[d]){var e=this.widgets[f];if(e&&(e.constructor===this.widget[d])){e.refresh(c)}else{this.widgets[f]=new this.widget[d](c);if(this.settings.legacyWidgetNamespace){a[f]=this.widgets[f]}}}else{b.widgetNotAvailable(d)}},inArray:function(c,e){for(var d=0;d<c.length;d++){if(c[d]===e){return true}}return false},isNumber:function(c){return typeof c==="number"&&isFinite(c)},focus:function(e,d){var c=":not(:submit):not(:button):input:visible:enabled[name]";setTimeout(function(){if(e){var h=$(b.escapeClientId(e));if(h.is(c)){h.trigger("focus")}else{var f=h.find(c).eq(0);b.focusElement(f)}}else{if(d){var f=$(b.escapeClientId(d)).find(c).eq(0);b.focusElement(f)}else{var g=$(c),f=g.eq(0);b.focusElement(f)}}},50);b.customFocus=true},focusElement:function(d){if(d.is(":radio")){if(d.hasClass("ui-helper-hidden-accessible")){d.parent().trigger("focus")}else{var c=$(':radio[name="'+$.escapeSelector(d.attr("name"))+'"]').filter(":checked");if(c.length){c.trigger("focus")}else{d.trigger("focus")}}}else{d.trigger("focus")}},monitorDownload:function(g,c,e){if(this.cookiesEnabled()){if(g){g()}var f="primefaces.download"+b.settings.viewId.replace(/\//g,"_");if(e&&e!==""){f+="_"+e}var d=b.settings.contextPath;if(!d||d===""){d="/"}a.downloadMonitor=setInterval(function(){var h=b.getCookie(f);if(h==="true"){if(c){c()}clearInterval(a.downloadMonitor);b.setCookie(f,null,{path:d})}},1000)}},scrollTo:function(d){var c=$(b.escapeClientId(d)).offset();$("html,body").animate({scrollTop:c.top,scrollLeft:c.left},{easing:"easeInCirc"},1000)},scrollInView:function(d,g){if(g===null||g.length===0){return}var j=parseFloat(d.css("borderTopWidth"))||0,f=parseFloat(d.css("paddingTop"))||0,h=g.offset().top-d.offset().top-j-f,c=d.scrollTop(),e=d.height(),i=g.outerHeight(true);if(h<0){d.scrollTop(c+h)}else{if((h+i)>e){d.scrollTop(c+h-e+i)}}},calculateScrollbarWidth:function(){if(!this.scrollbarWidth){var c=$("<div></div>").css({width:"100px",height:"100px",overflow:"auto",position:"absolute",top:"-1000px",left:"-1000px"}).prependTo("body").append("<div></div>").find("div").css({width:"100%",height:"200px"});this.scrollbarWidth=100-c.width();c.parent().remove()}return this.scrollbarWidth},bcn:function(d,e,g){if(g){for(var c=0;c<g.length;c++){var f=g[c].call(d,e);if(f===false){if(e.preventDefault){e.preventDefault()}else{e.returnValue=false}break}}}},bcnu:function(e,f,d){if(d){for(var c=0;c<d.length;c++){var g=d[c].call(this,e,f);if(g===false){break}}}},openDialog:function(c){b.dialog.DialogHandler.openDialog(c)},closeDialog:function(c){b.dialog.DialogHandler.closeDialog(c)},showMessageInDialog:function(c){b.dialog.DialogHandler.showMessageInDialog(c)},confirm:function(c){if(c.type==="popup"&&b.confirmPopup){b.confirmPopup.showMessage(c)}else{b.dialog.DialogHandler.confirm(c)}},deferredRenders:[],addDeferredRender:function(e,c,d){this.deferredRenders.push({widget:e,container:c,callback:d})},removeDeferredRenders:function(e){for(var d=(this.deferredRenders.length-1);d>=0;d--){var c=this.deferredRenders[d];if(c.widget===e){this.deferredRenders.splice(d,1)}}},invokeDeferredRenders:function(c){var g=[];for(var f=0;f<this.deferredRenders.length;f++){var d=this.deferredRenders[f];if(d.container===c){var h=d.callback.call();if(h){g.push(d.widget)}}}for(var e=0;e<g.length;e++){this.removeDeferredRenders(g[e])}},getLocaleSettings:function(e){var c;if(e){c=b.locales[e]}else{if(this.localeSettings){return this.localeSettings}c=b.locales[b.settings.locale]}if(!c){var d=e?e:b.settings.locale;c=b.locales[d.split("_")[0]]}if(!c){c=b.locales.en_US}if(!e){this.localeSettings=c}return c},getAriaLabel:function(d){var c=this.getLocaleSettings()["aria"];return(c&&c[d])?c[d]:b.locales.en_US["aria"][d]},trim:function(c){if(!c){return""}if(typeof c==="string"||c instanceof String){return c.trim()}return c},uuid:function(){var d=[];for(var c=0;c<256;c++){d[c]=(c<16?"0":"")+(c).toString(16)}var h=Math.random()*4294967295|0;var g=Math.random()*4294967295|0;var f=Math.random()*4294967295|0;var e=Math.random()*4294967295|0;return d[h&255]+d[h>>8&255]+d[h>>16&255]+d[h>>24&255]+"-"+d[g&255]+d[g>>8&255]+"-"+d[g>>16&15|64]+d[g>>24&255]+"-"+d[f&63|128]+d[f>>8&255]+"-"+d[f>>16&255]+d[f>>24&255]+d[e&255]+d[e>>8&255]+d[e>>16&255]+d[e>>24&255]},nextZindex:function(){return String(++b.zindex)},toISOString:function(c){return new Date(c.getTime()-(c.getTimezoneOffset()*60000)).toISOString()},version:function(){var c="PrimeFaces "+b.VERSION+" (jQuery "+jQuery.fn.jquery+")";console.log(c)},zindex:1000,animationEnabled:true,animationActive:false,customFocus:false,detachedWidgets:[],PARTIAL_REQUEST_PARAM:"javax.faces.partial.ajax",PARTIAL_UPDATE_PARAM:"javax.faces.partial.render",PARTIAL_PROCESS_PARAM:"javax.faces.partial.execute",PARTIAL_SOURCE_PARAM:"javax.faces.source",BEHAVIOR_EVENT_PARAM:"javax.faces.behavior.event",PARTIAL_EVENT_PARAM:"javax.faces.partial.event",RESET_VALUES_PARAM:"primefaces.resetvalues",IGNORE_AUTO_UPDATE_PARAM:"primefaces.ignoreautoupdate",SKIP_CHILDREN_PARAM:"primefaces.skipchildren",VIEW_STATE:"javax.faces.ViewState",CLIENT_WINDOW:"javax.faces.ClientWindow",VIEW_ROOT:"javax.faces.ViewRoot",CLIENT_ID_DATA:"primefaces.clientid",RESOURCE_IDENTIFIER:"javax.faces.resource",VERSION:"10.0.0"};b.settings={};b.util={};b.widgets={};b.locales={en_US:{closeText:"Close",prevText:"Previous",nextText:"Next",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["S","M","T","W ","T","F ","S"],weekHeader:"Week",weekNumberTitle:"W",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:"",timeOnlyTitle:"Only Time",timeText:"Time",hourText:"Hour",minuteText:"Minute",secondText:"Second",currentText:"Current Date",ampm:false,year:"Year",month:"Month",week:"Week",day:"Day",list:"Agenda",allDayText:"All Day",moreLinkText:"More...",noEventsText:"No Events",aria:{"paginator.PAGE":"Page {0}","calendar.BUTTON":"Show Calendar","datatable.sort.ASC":"activate to sort column ascending","datatable.sort.DESC":"activate to sort column descending","columntoggler.CLOSE":"Close","overlaypanel.CLOSE":"Close"}}};b.locales.en=b.locales.en_US;b.entityMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};PF=function(d){var c=b.widgets[d];if(!c){b.widgetNotAvailable(d)}return c};a.PrimeFaces=b})(window);
if(!PrimeFaces.env){PrimeFaces.env={mobile:false,touch:false,ios:false,browser:null,init:function(){this.browser=$.browser;this.mobile=this.browser.mobile;this.touch="ontouchstart" in window||window.navigator.msMaxTouchPoints||PrimeFaces.env.mobile;this.ios=/iPhone|iPad|iPod/i.test(window.navigator.userAgent)},isIE:function(a){return(a===undefined)?this.browser.msie:(this.browser.msie&&parseInt(this.browser.version,10)===a)},isLtIE:function(a){return(this.browser.msie)?parseInt(this.browser.version,10)<a:false},isTouchable:function(a){var b=(a==undefined)||(a.touchable!=undefined?a.touchable:true);return PrimeFaces.env.touch&&b}};PrimeFaces.env.init()};
if(!PrimeFaces.ajax){PrimeFaces.ab=function(a,c){for(var b in a){if(!a.hasOwnProperty(b)){continue}if(PrimeFaces.ajax.CFG_SHORTCUTS[b]){a[PrimeFaces.ajax.CFG_SHORTCUTS[b]]=a[b];delete a[b]}}return PrimeFaces.ajax.Request.handle(a,c)};PrimeFaces.ajax={VIEW_HEAD:"javax.faces.ViewHead",VIEW_BODY:"javax.faces.ViewBody",RESOURCE:"javax.faces.Resource",CFG_SHORTCUTS:{s:"source",f:"formId",p:"process",u:"update",e:"event",a:"async",g:"global",d:"delay",t:"timeout",sc:"skipChildren",iau:"ignoreAutoUpdate",ps:"partialSubmit",psf:"partialSubmitFilter",rv:"resetValues",fi:"fragmentId",pa:"params",onst:"onstart",oner:"onerror",onsu:"onsuccess",onco:"oncomplete"},Utils:{getContent:function(c){var b="";for(var a=0;a<c.childNodes.length;a++){b+=c.childNodes[a].nodeValue}return b},getPostUrl:function(a){var c=a.attr("action");var b=a.children("input[name*='javax.faces.encodedURL']");if(b.length>0){c=b.val()}return c},getPorletForms:function(a,c){var b=a.children("input[name*='javax.faces.encodedURL']");if(b.length>0){return'form[id*="'+c+'"]'}return null},updateFormStateInput:function(b,g,j){var e=PrimeFaces.trim(g);var a=null;if(j&&j.pfSettings&&j.pfSettings.portletForms){a=$(j.pfSettings.portletForms)}else{a=$("form")}var h="";if(j&&j.pfArgs&&j.pfArgs.parameterPrefix){h=j.pfArgs.parameterPrefix}for(var d=0;d<a.length;d++){var c=a.eq(d);if(c.attr("method")==="post"){var f=c.children("input[name='"+$.escapeSelector(h+b)+"']");if(f.length>0){f.val(e)}else{c.append('<input type="hidden" name="'+h+b+'" value="'+e+'" autocomplete="off"></input>')}}}},updateHead:function(d){var b=$.ajaxSetup()["cache"];$.ajaxSetup()["cache"]=true;var a=new RegExp("<head[^>]*>","gi").exec(d)[0];var c=d.indexOf(a)+a.length;$("head").html(d.substring(c,d.lastIndexOf("</head>")));$.ajaxSetup()["cache"]=b},updateBody:function(b){var c=new RegExp("<body[^>]*>","gi").exec(b)[0];var a=b.indexOf(c)+c.length;$("body").html(b.substring(a,b.lastIndexOf("</body>")))},updateElement:function(d,b,c){if(d.indexOf(PrimeFaces.VIEW_STATE)!==-1){PrimeFaces.ajax.Utils.updateFormStateInput(PrimeFaces.VIEW_STATE,b,c)}else{if(d.indexOf(PrimeFaces.CLIENT_WINDOW)!==-1){PrimeFaces.ajax.Utils.updateFormStateInput(PrimeFaces.CLIENT_WINDOW,b,c)}else{if(d===PrimeFaces.VIEW_ROOT){var a=PrimeFaces.ajax.Utils;window.PrimeFaces=null;a.updateHead(b);a.updateBody(b)}else{if(d===PrimeFaces.ajax.VIEW_HEAD){PrimeFaces.ajax.Utils.updateHead(b)}else{if(d===PrimeFaces.ajax.VIEW_BODY){PrimeFaces.ajax.Utils.updateBody(b)}else{if(d===PrimeFaces.ajax.RESOURCE){$("head").append(b)}else{if(d===$("head")[0].id){PrimeFaces.ajax.Utils.updateHead(b)}else{$(PrimeFaces.escapeClientId(d)).replaceWith(b)}}}}}}}}},Queue:{delays:{},requests:new Array(),xhrs:new Array(),offer:function(a){if(a.delay){var b=null,d=this,b=(typeof(a.source)==="string")?a.source:$(a.source).attr("id"),c=function(){return setTimeout(function(){d.requests.push(a);if(d.requests.length===1){PrimeFaces.ajax.Request.send(a)}},a.delay)};if(this.delays[b]){clearTimeout(this.delays[b].timeout);this.delays[b].timeout=c()}else{this.delays[b]={timeout:c()}}}else{this.requests.push(a);if(this.requests.length===1){PrimeFaces.ajax.Request.send(a)}}},poll:function(){if(this.isEmpty()){return null}var b=this.requests.shift(),a=this.peek();if(a){PrimeFaces.ajax.Request.send(a)}return b},peek:function(){if(this.isEmpty()){return null}return this.requests[0]},isEmpty:function(){return this.requests.length===0},addXHR:function(a){this.xhrs.push(a)},removeXHR:function(b){var a=$.inArray(b,this.xhrs);if(a>-1){this.xhrs.splice(a,1)}},abortAll:function(){this.requests=new Array();for(var a=0;a<this.xhrs.length;a++){var b=this.xhrs[a];if(b.readyState!==4){b.abort()}}this.xhrs=new Array()}},Request:{handle:function(a,b){a.ext=b;a.promise=a.promise||$.Deferred();if(PrimeFaces.settings.earlyPostParamEvaluation){a.earlyPostParams=PrimeFaces.ajax.Request.collectEarlyPostParams(a)}if(a.async){PrimeFaces.ajax.Request.send(a)}else{PrimeFaces.ajax.Queue.offer(a)}return a.promise.promise()},collectEarlyPostParams:function(b){var c;var d;if(typeof(b.source)==="string"){d=$(PrimeFaces.escapeClientId(b.source))}else{d=$(b.source)}if(d.is(":input")&&d.is(":not(:button)")){c=[];if(d.is(":checkbox")){var a=$("input[name='"+$.escapeSelector(d.attr("name"))+"']").filter(":checked").serializeArray();$.merge(c,a)}else{c.push({name:d.attr("name"),value:d.val()})}}else{c=d.serializeArray()}return c},send:function(g){PrimeFaces.debug("Initiating ajax request.");PrimeFaces.customFocus=false;var q=(g.global===true||g.global===undefined)?true:false,c=null,j=null,A=null;if(g.onstart){A=g.onstart.call(this,g)}if(g.ext&&g.ext.onstart){A=g.ext.onstart.call(this,g)}if(A===false){PrimeFaces.debug("AJAX request cancelled by onstart callback.");if(!g.async){PrimeFaces.ajax.Queue.poll()}if(g.promise){g.promise.reject({textStatus:"error",errorThrown:"AJAX request cancelled by onstart callback."})}return false}if(q){$(document).trigger("pfAjaxStart")}if(typeof(g.source)==="string"){j=g.source}else{j=$(g.source).attr("id")}if(g.formId){c=PrimeFaces.expressions.SearchExpressionFacade.resolveComponentsAsSelector(g.formId)}else{var x=$(PrimeFaces.escapeClientId(j));c=x.closest("form");if(c.length===0){c=$("form").eq(0)}}PrimeFaces.debug("Form to post "+c.attr("id")+".");var r;var e;var o=c.attr("enctype")==="multipart/form-data";if(o){r=new FormData();e=$()}var C=PrimeFaces.ajax.Utils.getPostUrl(c);var k=[];var B=PrimeFaces.ajax.Request.extractParameterNamespace(c);PrimeFaces.debug("URL to post "+C+".");PrimeFaces.ajax.Request.addParam(k,PrimeFaces.PARTIAL_REQUEST_PARAM,true,B);PrimeFaces.ajax.Request.addParam(k,PrimeFaces.PARTIAL_SOURCE_PARAM,j,B);if(g.resetValues){PrimeFaces.ajax.Request.addParam(k,PrimeFaces.RESET_VALUES_PARAM,true,B)}if(g.ignoreAutoUpdate){PrimeFaces.ajax.Request.addParam(k,PrimeFaces.IGNORE_AUTO_UPDATE_PARAM,true,B)}if(g.skipChildren===false){PrimeFaces.ajax.Request.addParam(k,PrimeFaces.SKIP_CHILDREN_PARAM,false,B)}var y=PrimeFaces.ajax.Request.resolveComponentsForAjaxCall(g,"process");if(g.fragmentId){y.push(g.fragmentId)}var b="@none";if(y.length>0){b=y.join(" ")}else{var m=PrimeFaces.ajax.Request.resolveComponentsForAjaxCall(g,"process");if(m===undefined||m.length===0){b="@all"}}if(!b.includes("@none")){PrimeFaces.ajax.Request.addParam(k,PrimeFaces.PARTIAL_PROCESS_PARAM,b,B)}var f=PrimeFaces.ajax.Request.resolveComponentsForAjaxCall(g,"update");if(f.length>0){PrimeFaces.ajax.Request.addParam(k,PrimeFaces.PARTIAL_UPDATE_PARAM,f.join(" "),B)}if(g.event){PrimeFaces.ajax.Request.addParam(k,PrimeFaces.BEHAVIOR_EVENT_PARAM,g.event,B);var p=g.event;if(g.event==="valueChange"){p="change"}else{if(g.event==="action"){p="click"}}PrimeFaces.ajax.Request.addParam(k,PrimeFaces.PARTIAL_EVENT_PARAM,p,B)}else{PrimeFaces.ajax.Request.addParam(k,j,j,B)}if(g.params){PrimeFaces.ajax.Request.addParams(k,g.params,B)}if(g.ext&&g.ext.params){PrimeFaces.ajax.Request.addParams(k,g.ext.params,B)}if(g.partialSubmit===undefined){g.partialSubmit=PrimeFaces.settings.partialSubmit}if(g.ext&&g.ext.partialSubmit){g.partialSubmit=g.ext.partialSubmit}if(g.partialSubmit&&b.indexOf("@all")===-1){var s=false;if(b.indexOf("@none")===-1){var l=g.partialSubmitFilter||":input";for(var u=0;u<y.length;u++){var n=$(PrimeFaces.escapeClientId(y[u]));var D=null;if(n.is("form")){D=n.serializeArray();s=true;if(o){e=e.add(n)}}else{if(n.is(":input")){D=n.serializeArray();if(o){e=e.add(n)}}else{var h=n.find(l);D=h.serializeArray();if(o){e=e.add(h)}}}k=PrimeFaces.ajax.Request.arrayCompare(D,k);if(g.ext&&g.ext.partialSubmitParameterFilter){var a=g.ext.partialSubmitParameterFilter.call(this,D);$.merge(k,a)}else{$.merge(k,D)}}}if(!s){PrimeFaces.ajax.Request.addParamFromInput(k,PrimeFaces.VIEW_STATE,c,B);PrimeFaces.ajax.Request.addParamFromInput(k,PrimeFaces.CLIENT_WINDOW,c,B);PrimeFaces.ajax.Request.addParamFromInput(k,PrimeFaces.csp.NONCE_INPUT,c,B);PrimeFaces.ajax.Request.addParamFromInput(k,"dsPostWindowId",c,B);PrimeFaces.ajax.Request.addParamFromInput(k,"dspwid",c,B)}}else{$.merge(k,c.serializeArray());if(o){e=e.add(c)}}if(PrimeFaces.settings.earlyPostParamEvaluation&&g.earlyPostParams){k=PrimeFaces.ajax.Request.arrayCompare(g.earlyPostParams,k);$.merge(k,g.earlyPostParams)}if(o){var t=$();e.each(function(i,F){var E=$(F);if(E.is(':input[type="file"]')){t=t.add(E)}else{t=t.add(E.find('input[type="file"]'))}});t.each(function(E,G){for(var F=0;F<G.files.length;F++){r.append(G.id,G.files[F])}})}var v={url:C,type:"POST",cache:false,dataType:"xml",portletForms:PrimeFaces.ajax.Utils.getPorletForms(c,B),source:g.source,global:false,beforeSend:function(E,i){E.setRequestHeader("Faces-Request","partial/ajax");E.pfSettings=i;E.pfArgs={};if(q){$(document).trigger("pfAjaxSend",[E,this])}}};if(o){$.each(k,function(i,E){r.append(E.name,E.value)});v.data=r;v.enctype="multipart/form-data";v.processData=false;v.contentType=false}else{var d=$.param(k);PrimeFaces.debug("Post Data:"+d);v.data=d}var w=c.children("input[name='"+$.escapeSelector(PrimeFaces.csp.NONCE_INPUT)+"']");if(w.length>0){v.nonce=w.val()}if(g.timeout){v.timeout=g.timeout}var z=$.ajax(v).fail(function(G,E,F){if(g.promise){g.promise.reject({jqXHR:G,textStatus:E,errorThrown:F})}var i=G.getResponseHeader("Location");if(G.status===401&&i){PrimeFaces.debug("Unauthorized status received. Redirecting to "+i);window.location=i;return}if(g.onerror){g.onerror.call(this,G,E,F)}if(g.ext&&g.ext.onerror){g.ext.onerror.call(this,G,E,F)}$(document).trigger("pfAjaxError",[G,this,F]);PrimeFaces.error("Request return with error:"+E+".")}).done(function(G,i,H){PrimeFaces.debug("Response received successfully.");try{var E;if(g.promise){g.promise.resolve({document:G,textStatus:i,jqXHR:H})}if(g.onsuccess){E=g.onsuccess.call(this,G,i,H)}if(g.ext&&g.ext.onsuccess&&!E){E=g.ext.onsuccess.call(this,G,i,H)}if(q){$(document).trigger("pfAjaxSuccess",[H,this])}if(E){return}else{PrimeFaces.ajax.Response.handle(G,i,H)}}catch(F){PrimeFaces.error(F)}PrimeFaces.debug("DOM is updated.")}).always(function(E,i,F){if(g.ext&&g.ext.oncomplete){g.ext.oncomplete.call(this,F,i,F.pfArgs,E)}if(g.oncomplete){g.oncomplete.call(this,F,i,F.pfArgs,E)}if(q){$(document).trigger("pfAjaxComplete",[F,this])}PrimeFaces.debug("Response completed.");PrimeFaces.ajax.Queue.removeXHR(F);if(!g.async){PrimeFaces.ajax.Queue.poll()}});PrimeFaces.ajax.Queue.addXHR(z)},resolveExpressionsForAjaxCall:function(a,b){var c="";if(a[b]){c+=a[b]}if(a.ext&&a.ext[b]){c+=" "+a.ext[b]}return c},resolveComponentsForAjaxCall:function(a,b){var c=PrimeFaces.ajax.Request.resolveExpressionsForAjaxCall(a,b);return PrimeFaces.expressions.SearchExpressionFacade.resolveComponents(c)},addParam:function(c,a,b,d){if(d||!a.indexOf(d)===0){c.push({name:d+a,value:b})}else{c.push({name:a,value:b})}},addFormData:function(c,a,b,d){if(d||!a.indexOf(d)===0){c.append(d+a,b)}else{c.append(a,b)}},addParams:function(d,a,e){for(var b=0;b<a.length;b++){var c=a[b];if(e&&!c.name.indexOf(e)===0){c.name=e+c.name}d.push(c)}},addParamFromInput:function(f,c,d,g){var b=null,a=$.escapeSelector(c);if(g){b=d.children("input[name*='"+a+"']")}else{b=d.children("input[name='"+a+"']")}if(b&&b.length>0){var e=b.val();PrimeFaces.ajax.Request.addParam(f,c,e,g)}},addFormDataFromInput:function(f,c,d,g){var b=null,a=$.escapeSelector(c);if(g){b=d.children("input[name*='"+a+"']")}else{b=d.children("input[name='"+a+"']")}if(b&&b.length>0){var e=b.val();PrimeFaces.ajax.Request.addFormData(f,c,e,g)}},extractParameterNamespace:function(c){var a=c.children("input[name*='"+PrimeFaces.VIEW_STATE+"']");if(a&&a.length>0){var b=a[0].name;if(b.length>PrimeFaces.VIEW_STATE.length){return b.substring(0,b.indexOf(PrimeFaces.VIEW_STATE))}}return null},arrayCompare:function(b,a){$.each(b,function(d,c){a=$.grep(a,function(e,f){if(e.name===c.name){return false}return true})});return a},createFacesAjaxFormData:function(a,f,b,d,e){var c=new FormData();PrimeFaces.ajax.Request.addFormData(c,PrimeFaces.PARTIAL_REQUEST_PARAM,true,f);PrimeFaces.ajax.Request.addFormData(c,PrimeFaces.PARTIAL_SOURCE_PARAM,b,f);if(d){PrimeFaces.ajax.Request.addFormData(c,PrimeFaces.PARTIAL_PROCESS_PARAM,d,f)}if(e){PrimeFaces.ajax.Request.addFormData(c,PrimeFaces.PARTIAL_UPDATE_PARAM,e,f)}PrimeFaces.ajax.Request.addFormDataFromInput(c,PrimeFaces.VIEW_STATE,a,f);PrimeFaces.ajax.Request.addFormDataFromInput(c,PrimeFaces.CLIENT_WINDOW,a,f);PrimeFaces.ajax.Request.addFormDataFromInput(c,PrimeFaces.csp.NONCE_INPUT,a,f);PrimeFaces.ajax.Request.addFormDataFromInput(c,"dsPostWindowId",a,f);PrimeFaces.ajax.Request.addFormDataFromInput(c,"dspwid",a,f);return c}},Response:{handle:function(h,e,m,b){if(h===undefined||h===null){return}var n=h.getElementsByTagName("partial-response")[0];for(var g=0;g<n.childNodes.length;g++){var a=n.childNodes[g];switch(a.nodeName){case"redirect":PrimeFaces.ajax.ResponseProcessor.doRedirect(a);break;case"changes":var c=$(document.activeElement);var k=c.attr("id");var f;if(c.length>0&&c.is("input")&&typeof $.fn.getSelection==="function"){f=c.getSelection()}for(var d=0;d<a.childNodes.length;d++){var l=a.childNodes[d];switch(l.nodeName){case"update":PrimeFaces.ajax.ResponseProcessor.doUpdate(l,m,b);break;case"delete":PrimeFaces.ajax.ResponseProcessor.doDelete(l);break;case"insert":PrimeFaces.ajax.ResponseProcessor.doInsert(l);break;case"attributes":PrimeFaces.ajax.ResponseProcessor.doAttributes(l);break;case"eval":PrimeFaces.ajax.ResponseProcessor.doEval(l,m);break;case"extension":PrimeFaces.ajax.ResponseProcessor.doExtension(l,m);break}}PrimeFaces.ajax.Response.handleReFocus(k,f);PrimeFaces.ajax.Response.destroyDetachedWidgets();break;case"eval":PrimeFaces.ajax.ResponseProcessor.doEval(a);break;case"extension":PrimeFaces.ajax.ResponseProcessor.doExtension(a,m);break;case"error":PrimeFaces.ajax.ResponseProcessor.doError(a,m);break}}},handleReFocus:function(d,b){if(PrimeFaces.customFocus===true){PrimeFaces.customFocus=false;return}if(!d){return}var c=$(PrimeFaces.escapeClientId(d));if(c.length>0){var a=function(){if(d!==$(document.activeElement).attr("id")){c.trigger("focus");if(b){c.setSelection(b.start,b.end)}}};a();if(PrimeFaces.env.isIE()){setTimeout(function(){a()},50)}}},destroyDetachedWidgets:function(){for(var a=0;a<PrimeFaces.detachedWidgets.length;a++){var d=PrimeFaces.detachedWidgets[a];var b=PF(d);if(b){if(b.isDetached()===true){PrimeFaces.widgets[d]=null;b.destroy();try{delete b}catch(c){}}}}PrimeFaces.detachedWidgets=[]}},ResponseProcessor:{doRedirect:function(b){try{window.location.assign(b.getAttribute("url"))}catch(a){PrimeFaces.warn("Error redirecting to URL: "+b.getAttribute("url"))}},doUpdate:function(c,d,a){var e=c.getAttribute("id"),b=PrimeFaces.ajax.Utils.getContent(c);if(a&&a.widget&&a.widget.id===e){a.handle.call(a.widget,b)}else{PrimeFaces.ajax.Utils.updateElement(e,b,d)}},doEval:function(node,xhr){var textContent=node.textContent||node.innerText||node.text;var nonce;if(xhr&&xhr.pfSettings&&xhr.pfSettings.nonce){nonce=xhr.pfSettings.nonce}PrimeFaces.csp.eval(textContent,nonce)},doExtension:function(d,e){if(e){if(d.getAttribute("ln")==="primefaces"&&d.getAttribute("type")==="args"){var c=d.textContent||d.innerText||d.text;if(e.pfArgs){var b=JSON.parse(c);for(var a in b){e.pfArgs[a]=b[a]}}else{e.pfArgs=JSON.parse(c)}}}},doError:function(a,b){},doDelete:function(a){var b=a.getAttribute("id");$(PrimeFaces.escapeClientId(b)).remove()},doInsert:function(d){if(!d.childNodes){return false}for(var b=0;b<d.childNodes.length;b++){var a=d.childNodes[b];var f=a.getAttribute("id");var e=$(PrimeFaces.escapeClientId(f));var c=PrimeFaces.ajax.Utils.getContent(a);if(a.nodeName==="after"){$(c).insertAfter(e)}else{if(a.nodeName==="before"){$(c).insertBefore(e)}}}},doAttributes:function(c){if(!c.childNodes){return false}var g=c.getAttribute("id");var f=$(PrimeFaces.escapeClientId(g));for(var b=0;b<c.childNodes.length;b++){var d=c.childNodes[b];var a=d.getAttribute("name");var e=d.getAttribute("value");if(!a){return}if(!e||e===null){e=""}f.attr(a,e)}}},AjaxRequest:function(a,b){return PrimeFaces.ajax.Request.handle(a,b)}};$(window).on("unload",function(){PrimeFaces.ajax.Queue.abortAll()})};
if(!PrimeFaces.csp){PrimeFaces.csp={NONCE_INPUT:"primefaces.nonce",NONCE_VALUE:"",init:function(d){PrimeFaces.csp.NONCE_VALUE=d;var b=document.getElementsByTagName("form");for(var c=0;c<b.length;c++){var e=b[c];var a=e.elements[PrimeFaces.csp.NONCE_INPUT];if(!a){a=document.createElement("input");a.setAttribute("name",PrimeFaces.csp.NONCE_INPUT);a.setAttribute("type","hidden");e.appendChild(a)}a.setAttribute("value",d)}},register:function(g,e,f){if(e){var d=e.substring(2,e.length),c=document.getElementById(g),b=d+"."+g;var a=function(h){var i=f.call(c,h);if(i===false&&h.cancelable){h.preventDefault()}};$(c).off(b).on(b,a)}},eval:function(c,a){var b={};if(a){b={nonce:a}}else{if(PrimeFaces.csp.NONCE_VALUE){b={nonce:PrimeFaces.csp.NONCE_VALUE}}}$.globalEval(c,b)},evalResult:function(js){var executeJs="var cspResult = "+js;PrimeFaces.csp.eval(executeJs);return cspResult},executeEvent:function(id,js,e){var scriptEval="var cspFunction = function(event){"+js+"}";PrimeFaces.csp.eval(scriptEval,PrimeFaces.csp.NONCE_VALUE);cspFunction.call(id,e)},clickEvent:function(){var a=$.Event("click");if(PrimeFaces.csp.NONCE_VALUE){a.preventDefault()}return a}}};
if(!PrimeFaces.expressions){PrimeFaces.expressions={};PrimeFaces.expressions.SearchExpressionFacade={resolveComponentsAsSelector:function(c){if(c instanceof $){return c}if(c instanceof HTMLElement){return $(c)}var a=PrimeFaces.expressions.SearchExpressionFacade.splitExpressions(c);var e=$();if(a){for(var b=0;b<a.length;++b){var g=PrimeFaces.trim(a[b]);if(g.length>0){if(g=="@none"||g=="@all"||g.indexOf("@obs(")==0){continue}if(g.indexOf("@")==-1){e=e.add($(document.getElementById(g)))}else{if(g.indexOf("@widgetVar(")==0){var f=g.substring(11,g.length-1);var d=PrimeFaces.widgets[f];if(d){e=e.add($(document.getElementById(d.id)))}else{PrimeFaces.widgetNotAvailable(f)}}else{if(g.indexOf("@(")==0){e=e.add($(g.substring(2,g.length-1)))}}}}}}return e},resolveComponents:function(l){var k=PrimeFaces.expressions.SearchExpressionFacade.splitExpressions(l),c=[];if(k){for(var g=0;g<k.length;++g){var m=PrimeFaces.trim(k[g]);if(m.length>0){if(m.indexOf("@")==-1||m=="@none"||m=="@all"||m.indexOf("@obs(")==0){if(!PrimeFaces.inArray(c,m)){c.push(m)}}else{if(m.indexOf("@widgetVar(")==0){var d=m.substring(11,m.length-1),h=PrimeFaces.widgets[d];if(h){if(!PrimeFaces.inArray(c,h.id)){c.push(h.id)}}else{PrimeFaces.widgetNotAvailable(d)}}else{if(m.indexOf("@(")==0){var b=$(m.substring(2,m.length-1));for(var e=0;e<b.length;e++){var f=$(b[e]),a=f.data(PrimeFaces.CLIENT_ID_DATA)||f.attr("id");if(a&&!PrimeFaces.inArray(c,a)){c.push(a)}}}}}}}}return c},splitExpressions:function(f){var e=[];var b="";var a=0;for(var d=0;d<f.length;d++){var g=f[d];if(g==="("){a++}if(g===")"){a--}if((g===" "||g===",")&&a===0){e.push(b);b=""}else{b+=g}}e.push(b);return e}}};
if(!PrimeFaces.utils){PrimeFaces.utils={resolveAppendTo:function(d,a){if(d&&d.jq[0]){var b=d.jq[0].closest(".ui-dialog");if(b&&a&&a.length){var c=$(b);if(c.css("position")==="fixed"){a.css("position","fixed")}if(!a.parent().is(document.body)){d.cfg.appendTo="@(body)";return d.cfg.appendTo}}return d.cfg.appendTo}return null},resolveDynamicOverlayContainer:function(a){return a.cfg.appendTo?PrimeFaces.expressions.SearchExpressionFacade.resolveComponentsAsSelector(a.cfg.appendTo):$(document.body)},cleanupDynamicOverlay:function(e,b,c,a){if(e.cfg.appendTo){var d=$("[id='"+c+"']");if(d.length>1){a.children("[id='"+c+"']").remove()}}},removeDynamicOverlay:function(d,b,c,a){a.children("[id='"+c+"']").not(b).remove()},appendDynamicOverlay:function(d,b,c,a){var e=b.parent();if(!e.is(a)&&!a.is(b)){PrimeFaces.utils.removeDynamicOverlay(d,b,c,a);b.appendTo(a)}},addModal:function(e,c,d){var g=e.id,f=c.css("z-index")-1;c.attr({role:"dialog","aria-hidden":false,"aria-modal":true,"aria-live":"polite"});PrimeFaces.utils.preventTabbing(g,f,d);if(e.cfg.blockScroll){PrimeFaces.utils.preventScrolling()}var a=g+"_modal";var b=$('<div id="'+a+'" class="ui-widget-overlay ui-dialog-mask"></div>');b.appendTo($(document.body));b.css("z-index",String(f));return b},preventTabbing:function(d,c,a){var b=$(document);b.on("focus."+d+" mousedown."+d+" mouseup."+d,function(e){if($(e.target).zIndex()<c){e.preventDefault()}});b.on("keydown."+d,function(g){var h=$(g.target);if(g.which===$.ui.keyCode.TAB){var f=a();if(f.length){var i=f.filter(":first"),e=f.filter(":last"),j=null;if(i.is(":radio")){j=f.filter('[name="'+$.escapeSelector(i.attr("name"))+'"]').filter(":checked");if(j.length>0){i=j}}if(e.is(":radio")){j=f.filter('[name="'+$.escapeSelector(e.attr("name"))+'"]').filter(":checked");if(j.length>0){e=j}}if(h.is(document.body)){i.focus(1);g.preventDefault()}else{if(g.target===e[0]&&!g.shiftKey){i.focus(1);g.preventDefault()}else{if(g.target===i[0]&&g.shiftKey){e.focus(1);g.preventDefault()}}}}}else{if(!h.is(document.body)&&(h.zIndex()<c)){g.preventDefault()}}})},removeModal:function(c,b){var d=c.id;var a=d+"_modal";if(b){b.attr({role:"","aria-hidden":true,"aria-modal":false,"aria-live":"off"})}$(PrimeFaces.escapeClientId(a)).remove();$(document.body).children("[id='"+a+"']").remove();if(c.cfg.blockScroll){PrimeFaces.utils.enableScrolling()}PrimeFaces.utils.enableTabbing(d)},enableTabbing:function(a){$(document).off("focus."+a+" mousedown."+a+" mouseup."+a+" keydown."+a)},isModalActive:function(b){var a=b+"_modal";return $(PrimeFaces.escapeClientId(a)).length===1||$(document.body).children("[id='"+a+"']").length===1},registerHideOverlayHandler:function(e,c,d,b,a){e.addDestroyListener(function(){$(document).off(c)});$(document).off(c).on(c,function(h){if(d.is(":hidden")||d.css("visibility")==="hidden"){return}var f=$(h.target);if(b){var g=b(h);if(g){if(g.is(f)||g.has(f).length>0){return}}}a(h,f)});return{unbind:function(){$(document).off(c)}}},registerResizeHandler:function(d,a,b,c,e){d.addDestroyListener(function(){$(window).off(a)});$(window).off(a).on(a,e||null,function(f){if(b&&(b.is(":hidden")||b.css("visibility")==="hidden")){return}c(f)});return{unbind:function(){$(window).off(a)}}},registerDynamicOverlay:function(d,b,c){if(d.cfg.appendTo){var a=PrimeFaces.utils.resolveDynamicOverlayContainer(d);PrimeFaces.utils.appendDynamicOverlay(d,b,c,a);d.addDestroyListener(function(){var e=PrimeFaces.utils.resolveDynamicOverlayContainer(d);PrimeFaces.utils.removeDynamicOverlay(d,null,c,e)});d.addRefreshListener(function(){var e=PrimeFaces.utils.resolveDynamicOverlayContainer(d);PrimeFaces.utils.cleanupDynamicOverlay(d,b,c,e)})}return b},registerScrollHandler:function(c,b,a){var d=c.getJQ().scrollParent();if(d.is("body")||d.is("html")||d[0].nodeType===9){d=$(window)}c.addDestroyListener(function(){d.off(b)});d.off(b).on(b,function(f){a(f)});return{unbind:function(){d.off(b)}}},registerConnectedOverlayScrollHandler:function(f,e,c,a){var d=PrimeFaces.utils.getScrollableParents((c||f.getJQ()).get(0));for(var b=0;b<d.length;b++){var g=$(d[b]);f.addDestroyListener(function(){g.off(e)});g.off(e).on(e,function(h){a(h)})}return{unbind:function(){for(var h=0;h<d.length;h++){$(d[h]).off(e)}}}},getScrollableParents:function(g){var k=[];var l=function(j,i){return j.parentNode==null?i:l(j.parentNode,i.concat([j.parentNode]))};if(g){var m=l(g,[]);var a=/(auto|scroll)/;var f=function(j){var i=window.getComputedStyle(j,null);return a.test(i.getPropertyValue("overflow"))||a.test(i.getPropertyValue("overflowX"))||a.test(i.getPropertyValue("overflowY"))};for(var h=0;h<m.length;h++){var n=m[h];var c=n.nodeType===1&&n.dataset.scrollselectors;if(c){var o=c.split(",");for(var e=0;e<o.length;e++){var d=o[e];var b=n.querySelector(d);if(b&&f(b)){k.push(b)}}}if(n.nodeType!==9&&f(n)){k.push(n)}}}return k},unbindScrollHandler:function(b,a){var c=b.getJQ().scrollParent();if(c.is("body")||c.is("html")||c[0].nodeType===9){c=$(window)}c.off(a)},preventScrolling:function(){$(document.body).addClass("ui-overflow-hidden")},enableScrolling:function(){$(document.body).removeClass("ui-overflow-hidden")},calculateRelativeOffset:function(b){var a={left:0,top:0};var e=b.offset();var c=$(window).scrollTop();var d=$(window).scrollLeft();a.top=e.top-c;a.left=e.left-d;return a},blockEnterKey:function(c){var a=c.which,b=$.ui.keyCode;if((a===b.ENTER)){c.preventDefault()}},ignoreFilterKey:function(c){var a=c.which,b=$.ui.keyCode,d=[b.END,b.HOME,b.LEFT,b.RIGHT,b.UP,b.DOWN,b.TAB,16,17,18,91,92,93,b.ESCAPE,b.PAGE_UP,b.PAGE_DOWN,19,20,44,144,145];if(d.indexOf(a)>-1){return true}return false},excludedSwipeElements:function(){return":button:enabled, :input:enabled, a, [role='combobox'], .noSwipe"},openLink:function(c,b){var a=b.attr("href");var e;if(a&&a!=="#"){if(c.ctrlKey){e=window.open(a,"_blank")}else{var d=b.attr("target")||"_self";e=window.open(a,d)}if(e){e.focus()}}c.preventDefault()},enableAnimations:function(){$.fx.off=false;PrimeFaces.animationEnabled=true},disableAnimations:function(){$.fx.off=true;PrimeFaces.animationEnabled=false},registerCSSTransition:function(b,c){if(b&&c!=null){var a={enter:c+"-enter",enterActive:c+"-enter-active",enterDone:c+"-enter-done",exit:c+"-exit",exitActive:c+"-exit-active",exitDone:c+"-exit-done"};var d=function(f,e,g){if(f!=null&&f[e]!=null){f[e].call(g)}};return{show:function(e){b.removeClass([a.exit,a.exitActive,a.exitDone]);if(b.is(":hidden")){if(PrimeFaces.animationEnabled){PrimeFaces.animationActive=true;b.css("display","block").addClass(a.enter);d(e,"onEnter");requestAnimationFrame(function(){setTimeout(function(){b.addClass(a.enterActive)},0);b.one("transitionrun.css-transition-show",function(f){d(e,"onEntering",f)}).one("transitioncancel.css-transition-show",function(){b.removeClass([a.enter,a.enterActive,a.enterDone]);PrimeFaces.animationActive=false}).one("transitionend.css-transition-show",function(f){b.removeClass([a.enterActive,a.enter]).addClass(a.enterDone);d(e,"onEntered",f);PrimeFaces.animationActive=false})})}else{b.css("display","block");d(e,"onEnter");d(e,"onEntering");d(e,"onEntered")}}},hide:function(e){b.removeClass([a.enter,a.enterActive,a.enterDone]);if(b.is(":visible")){if(PrimeFaces.animationEnabled){PrimeFaces.animationActive=true;b.addClass(a.exit);d(e,"onExit");setTimeout(function(){b.addClass(a.exitActive)},0);b.one("transitionrun.css-transition-hide",function(f){d(e,"onExiting",f)}).one("transitioncancel.css-transition-hide",function(){b.removeClass([a.exit,a.exitActive,a.exitDone]);PrimeFaces.animationActive=false}).one("transitionend.css-transition-hide",function(f){b.css("display","none").removeClass([a.exitActive,a.exit]).addClass(a.exitDone);d(e,"onExited",f);PrimeFaces.animationActive=false})}else{d(e,"onExit");d(e,"onExiting");d(e,"onExited");b.css("display","none")}}}}}return null}}};
(function(){var a=false,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(g){var f=this.prototype;a=true;var e=new this();a=false;for(var d in g){e[d]=typeof g[d]=="function"&&typeof f[d]=="function"&&b.test(g[d])?(function(h,i){return function(){var k=this._super;this._super=f[h];var j=i.apply(this,arguments);this._super=k;return j}})(d,g[d]):g[d]}function c(){if(!a&&this.init){this.init.apply(this,arguments)}}c.prototype=e;c.prototype.constructor=c;c.extend=arguments.callee;return c}})();if(!PrimeFaces.widget){PrimeFaces.widget={};PrimeFaces.widget.BaseWidget=Class.extend({init:function(a){this.cfg=a;this.id=a.id;if(Array.isArray(this.id)){this.jqId=$.map(this.id,function(c){return PrimeFaces.escapeClientId(c)}).join(",")}else{this.jqId=PrimeFaces.escapeClientId(this.id)}this.jq=$(this.jqId);this.widgetVar=a.widgetVar;this.destroyListeners=[];this.refreshListeners=[];this.removeScriptElement(this.id);if(this.widgetVar){var b=this;this.jq.on("remove",function(){PrimeFaces.detachedWidgets.push(b.widgetVar)})}if(this.cfg.postConstruct){this.cfg.postConstruct.call(this,this)}},refresh:function(a){this.destroyListeners=[];if(this.refreshListeners){for(var b=0;b<this.refreshListeners.length;b++){var d=this.refreshListeners[b];d.call(this,this)}}this.refreshListeners=[];var c=this.init(a);if(this.cfg.postRefresh){this.cfg.postRefresh.call(this,this)}return c},destroy:function(){if(this.cfg.preDestroy){this.cfg.preDestroy.call(this,this)}PrimeFaces.debug("Destroyed detached widget: "+this.widgetVar);if(this.destroyListeners){for(var a=0;a<this.destroyListeners.length;a++){var b=this.destroyListeners[a];b.call(this,this)}}this.destroyListeners=[]},isDetached:function(){var a=document.getElementById(this.id);if(typeof(a)!=="undefined"&&a!==null){return false}return true},getJQ:function(){return this.jq},removeScriptElement:function(a){if(Array.isArray(a)){$.each(a,function(b,c){$(PrimeFaces.escapeClientId(c)+"_s").remove()})}else{$(PrimeFaces.escapeClientId(a)+"_s").remove()}},hasBehavior:function(a){if(this.cfg.behaviors){return this.cfg.behaviors[a]!=undefined}return false},callBehavior:function(b,a){if(this.hasBehavior(b)){this.cfg.behaviors[b].call(this,a)}},getBehavior:function(a){return this.cfg.behaviors?this.cfg.behaviors[a]:null},addDestroyListener:function(a){if(!this.destroyListeners){this.destroyListeners=[]}this.destroyListeners.push(a)},addRefreshListener:function(a){if(!this.refreshListeners){this.refreshListeners=[]}this.refreshListeners.push(a)},getParentForm:function(){return this.jq.closest("form")},getParentFormId:function(){if(this.cfg.formId){return this.cfg.formId}var a=this.getParentForm();if(a.length>0){this.cfg.formId=a.attr("id")}return this.cfg.formId}});PrimeFaces.widget.DynamicOverlayWidget=PrimeFaces.widget.BaseWidget.extend({init:function(a){this._super(a);PrimeFaces.utils.registerDynamicOverlay(this,this.jq,this.id)},refresh:function(a){PrimeFaces.utils.removeModal(this,this.modalOverlay);this.appendTo=null;this.modalOverlay=null;this._super(a)},destroy:function(){this._super();PrimeFaces.utils.removeModal(this);this.appendTo=null;this.modalOverlay=null},enableModality:function(a){var b=a||this.jq;this.modalOverlay=PrimeFaces.utils.addModal(this,b,$.proxy(function(){return this.getModalTabbables()},this))},disableModality:function(a){var b=a||this.jq;PrimeFaces.utils.removeModal(this,b);this.modalOverlay=null},getModalTabbables:function(){return null}});PrimeFaces.widget.DeferredWidget=PrimeFaces.widget.BaseWidget.extend({renderDeferred:function(){if(this.jq.is(":visible")){this._render();this.postRender()}else{if(this.jq[0]){var a=this.jq[0].closest(".ui-hidden-container");if(a){var c=$(a);if(c.length){var b=this;this.addDeferredRender(this.id,c,function(){return b.render()})}}}}},render:function(){if(this.jq.is(":visible")){this._render();this.postRender();return true}else{return false}},_render:function(){throw"Unsupported Operation"},postRender:function(){},destroy:function(){this._super();PrimeFaces.removeDeferredRenders(this.id)},addDeferredRender:function(b,a,d){PrimeFaces.addDeferredRender(b,a.attr("id"),d);if(a.is(":hidden")){var c=this.jq.closest(".ui-hidden-container");if(c.length){this.addDeferredRender(b,a.parent().closest(".ui-hidden-container"),d)}}}})};
if(!PrimeFaces.resources){PrimeFaces.resources={getFacesResource:function(a,i,g){if(a.indexOf("/")===0){a=a.substring(1,a.length)}var k=PrimeFaces.resources.getResourceScriptURI();var b=PrimeFaces.resources.getResourceScriptName(k);k=k.replace(b,a);var j=new RegExp("[?&]([^&=]*)ln=(.*?)(&|$)");var h="ln="+j.exec(k)[2];var d="";var f=!(k.indexOf("?"+h)>-1||k.indexOf("&"+h)>-1);if(f){d=new RegExp("[?&]([^&=]+)"+h+"($|&)").exec(k)[1]}k=k.replace(d+h,d+"ln="+i);if(g){var c=new RegExp("[?&]"+d+"v=([^&]*)").exec(k)[1];k=k.replace(d+"v="+c,d+"v="+g)}var e=window.location.protocol+"//"+window.location.host;return k.indexOf(e)>=0?k:e+k},isExtensionMapping:function(){if(!PrimeFaces.resources.IS_EXTENSION_MAPPING){var a=PrimeFaces.resources.getResourceScriptURI();var b=PrimeFaces.resources.getResourceScriptName(a);PrimeFaces.resources.IS_EXTENSION_MAPPING=a.charAt(a.indexOf(b)+b.length)==="."}return PrimeFaces.IS_EXTENSION_MAPPING},getResourceUrlExtension:function(){if(!PrimeFaces.resources.RESOURCE_URL_EXTENSION){var a=PrimeFaces.resources.getResourceScriptURI();var b=PrimeFaces.resources.getResourceScriptName(a);PrimeFaces.resources.RESOURCE_URL_EXTENSION=RegExp(b+".([^?]*)").exec(a)[1]}return PrimeFaces.resources.RESOURCE_URL_EXTENSION},getResourceScriptName:function(a){var b=new RegExp("\\/?"+PrimeFaces.RESOURCE_IDENTIFIER+"(\\/|=)(.*?)\\.js");return b.exec(a)[2]+".js"},getResourceScriptURI:function(){if(!PrimeFaces.resources.SCRIPT_URI){PrimeFaces.resources.SCRIPT_URI=$('script[src*="/'+PrimeFaces.RESOURCE_IDENTIFIER+'/"]').first().attr("src");if(!PrimeFaces.resources.SCRIPT_URI){PrimeFaces.resources.SCRIPT_URI=$('script[src*="'+PrimeFaces.RESOURCE_IDENTIFIER+'="]').first().attr("src")}}return PrimeFaces.resources.SCRIPT_URI}}};
if(!PrimeFaces.clientwindow){PrimeFaces.clientwindow={CLIENT_WINDOW_URL_PARAM:"jfwid",CLIENT_WINDOW_SESSION_STORAGE:"pf.windowId",TEMP_CLIENT_WINDOW_ID:"temp",LENGTH_CLIENT_WINDOW_ID:5,initialized:false,clientWindowId:null,initialRedirect:false,init:function(b,a){if(PrimeFaces.clientwindow.initialized===true){return}this.initialized=true;this.clientWindowId=b;this.initialRedirect=a;this.cleanupCookies();this.assertClientWindowId()},cleanupCookies:function(){var a=this.getUrlParameter(window.location.href,this.CLIENT_WINDOW_URL_PARAM);if(a){this.expireCookie("pf.initialredirect-"+a)}},assertClientWindowId:function(){var b=this.getUrlParameter(window.location.href,this.CLIENT_WINDOW_URL_PARAM);var a=sessionStorage.getItem(this.CLIENT_WINDOW_SESSION_STORAGE);if(a===null){if(this.initialRedirect&&b===this.clientWindowId){sessionStorage.setItem(this.CLIENT_WINDOW_SESSION_STORAGE,this.clientWindowId)}else{this.requestNewClientWindowId()}}else{if(a===this.TEMP_CLIENT_WINDOW_ID){sessionStorage.setItem(this.CLIENT_WINDOW_SESSION_STORAGE,this.clientWindowId)}else{if(a.length!==this.LENGTH_CLIENT_WINDOW_ID){this.requestNewClientWindowId()}else{if(a!==b||a!==this.clientWindowId){window.location=this.replaceUrlParam(window.location.href,this.CLIENT_WINDOW_URL_PARAM,a)}}}}},requestNewClientWindowId:function(){sessionStorage.setItem(this.CLIENT_WINDOW_SESSION_STORAGE,this.TEMP_CLIENT_WINDOW_ID);window.location=this.replaceUrlParam(window.location.href,this.CLIENT_WINDOW_URL_PARAM,null)},getUrlParameter:function(f,d){var b=document.createElement("a");b.href=f;var h=b.search;if(h&&h.length>0){var c=h.substring(1).split("&");for(var e=0;e<c.length;e++){var g=c[e].split("=");if(g[0]===d){return g.length>1?decodeURIComponent(g[1]):""}}}return null},replaceUrlParam:function(d,l,e){var k=document.createElement("a");k.href=d;if(!e||e.replace(/^\s+|\s+$/g,"").length===0){e=""}if(e.length===0){if(k.search.length===0||k.search.indexOf(l+"=")===-1){return k.href}}if(k.search.length===0){k.search="?"+encodeURIComponent(l)+"="+encodeURIComponent(e);return k.href}var c=k.search.substring(1).split("&");var h=[];h.push(l+"="+encodeURIComponent(e));for(var g=0;g<c.length;g++){var f=c[g];if(f.length>0){var b=f.split("=")[0];var j=f.split("=")[1];if(j&&j.replace(/^\s+|\s+$/g,"").length>0){if(b!==l){h.push(b+"="+j)}}}}k.search="?"+h.join("&");return k.href},expireCookie:function(a){PrimeFaces.setCookie(a,"true",{path:"/",expires:-10,"max-age":"0"})}}};
if(!Element.prototype.matches){Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector}if(!Element.prototype.closest){Element.prototype.closest=function(b){var a=this;do{if(a.matches(b)){return a}a=a.parentElement||a.parentNode}while(a!==null&&a.nodeType===1);return null}}if(!String.prototype.includes){String.prototype.includes=function(a,b){if(a instanceof RegExp){throw TypeError("first argument must not be a RegExp")}if(b===undefined){b=0}return this.indexOf(a,b)!==-1}}if(!Array.prototype.includes){Object.defineProperty(Array.prototype,"includes",{value:function(c,d){if(this==null){throw new TypeError('"this" is null or not defined')}var e=Object(this);var a=e.length>>>0;if(a===0){return false}var f=d|0;var b=Math.max(f>=0?f:a-Math.abs(f),0);while(b<a){if(e[b]===c){return true}b++}return false}})};
PrimeFaces.widget.AjaxStatus=PrimeFaces.widget.BaseWidget.extend({init:function(a){this._super(a);this.bind()},bind:function(){var b=$(document),a=this;b.on("pfAjaxStart",function(){var c=a.cfg.delay;if(c>0){a.timeout=setTimeout(function(){a.trigger("start",arguments)},c)}else{a.trigger("start",arguments)}}).on("pfAjaxError",function(){a.trigger("error",arguments)}).on("pfAjaxSuccess",function(){a.trigger("success",arguments)}).on("pfAjaxComplete",function(){if(a.timeout){a.deleteTimeout()}a.trigger("complete",arguments)});if(window.jsf&&jsf.ajax){jsf.ajax.addOnEvent(function(d){if(d.status==="begin"){var c=a.cfg.delay;if(c>0){a.timeout=setTimeout(function(){a.trigger("start",arguments)},c)}else{a.trigger("start",arguments)}}else{if(d.status==="complete"){}else{if(d.status==="success"){if(a.timeout){a.deleteTimeout()}a.trigger("success",arguments);a.trigger("complete",arguments)}}}});jsf.ajax.addOnError(function(c){if(a.timeout){a.deleteTimeout()}a.trigger("error",arguments);a.trigger("complete",arguments)})}},trigger:function(b,a){var c=this.cfg[b];if(c){c.apply(document,a)}if(b!=="complete"||this.jq.children().filter(this.toFacetId("complete")).length){this.jq.children().hide().filter(this.toFacetId(b)).show()}},toFacetId:function(a){return this.jqId+"_"+a},deleteTimeout:function(){clearTimeout(this.timeout);this.timeout=null}});
PrimeFaces.widget.Poll=PrimeFaces.widget.BaseWidget.extend({init:function(a){this._super(a);this.active=false;if(this.cfg.autoStart){this.start()}},refresh:function(a){this.stop();this._super(a)},destroy:function(){this._super();this.stop()},start:function(){if(!this.active){var a=this.cfg.intervalType=="millisecond"?this.cfg.frequency:(this.cfg.frequency*1000);this.timer=setInterval(this.cfg.fn,a);this.active=true}},stop:function(){if(this.active){clearInterval(this.timer);this.active=false}},isActive:function(){return this.active}});
