blob: df8926bd0e08fb6d9aea2386bf7568aced78f90a [file] [log] [blame]
!function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=13)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.P_PARTIAL_SOURCE="javax.faces.source",t.PARTIAL_ID="partialId",t.P_VIEWSTATE="javax.faces.ViewState",t.P_VIEWROOT="javax.faces.ViewRoot",t.P_VIEWHEAD="javax.faces.ViewHead",t.P_VIEWBODY="javax.faces.ViewBody",t.EMPTY_FUNC=Object.freeze((function(){})),t.EMPTY_STR="",t.EMPTY_MAP=Object.freeze({}),t.HTML_VIEWSTATE=["<input type='hidden'","id='",t.P_VIEWSTATE,"' name='",t.P_VIEWSTATE,"' value='' />"].join(t.EMPTY_STR),t.IDENT_ALL="@all",t.IDENT_NONE="@none",t.IDENT_THIS="@this",t.IDENT_FORM="@form",t.P_AJAX="javax.faces.partial.ajax",t.P_EXECUTE="javax.faces.partial.execute",t.P_RENDER="javax.faces.partial.render",t.P_EVT="javax.faces.partial.event",t.P_CLIENT_WINDOW="javax.faces.ClientWindow",t.P_RESET_VALUES="javax.faces.partial.resetValues",t.P_WINDOW_ID="javax.faces.windowId",t.RENDER="render",t.WINDOW_ID="windowId",t.ERROR="error",t.EVENT="event",t.ON_ERROR="onerror",t.ON_EVENT="onevent",t.BEGIN="begin",t.COMPLETE="complete",t.SUCCESS="success",t.SOURCE="source",t.STATUS="status",t.ERROR_NAME="error-name",t.ERROR_MESSAGE="error-message",t.RESPONSE_TEXT="responseText",t.RESPONSE_XML="responseXML",t.HTTPERROR="httpError",t.EMPTY_RESPONSE="emptyResponse",t.MALFORMEDXML="malformedXML",t.SERVER_ERROR="serverError",t.CLIENT_ERROR="clientError",t.TIMEOUT_EVENT="timeout",t.CTX_PARAM_MF_INTERNAL="_mfInternal",t.CTX_PARAM_SRC_FRM_ID="_mfSourceFormId",t.CTX_PARAM_SRC_CTL_ID="_mfSourceControlId",t.CTX_PARAM_TR_TYPE="_mfTransportType",t.CTX_PARAM_PASS_THR="passThrgh",t.CTX_PARAM_DELAY="delay",t.CTX_PARAM_TIMEOUT="timeout",t.CTX_PARAM_RST="resetValues",t.CTX_PARAM_EXECUTE="execute",t.STAGE_DEVELOPMENT="Development",t.CONTENT_TYPE="Content-Type",t.HEAD_FACES_REQ="Faces-Request",t.REQ_ACCEPT="Accept",t.VAL_AJAX="partial/ajax",t.ENCODED_URL="javax.faces.encodedURL",t.REQ_TYPE_GET="GET",t.REQ_TYPE_POST="POST",t.STATE_EVT_BEGIN="begin",t.STATE_EVT_TIMEOUT="TIMEOUT_EVENT",t.STATE_EVT_COMPLETE="complete",t.URL_ENCODED="application/x-www-form-urlencoded",t.MULTIPART="multipart/form-data",t.NO_TIMEOUT=0,t.STD_ACCEPT="text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",t.TAG_HEAD="head",t.TAG_FORM="form",t.TAG_BODY="body",t.TAG_BEFORE="before",t.TAG_AFTER="after",t.TAG_ATTR="attribute",t.SEL_VIEWSTATE_ELEM="[name='"+t.P_VIEWSTATE+"']",t.SEL_RESPONSE_XML="responseXML",t.PHASE_PROCESS_RESPONSE="processResponse",t.ERR_NO_PARTIAL_RESPONSE="Partial response not set",t.ATTR_URL="url",t.ATTR_NAME="name",t.ATTR_VALUE="value",t.ATTR_ID="id",t.RESP_PARTIAL="partial-response",t.CMD_CHANGES="changes",t.CMD_UPDATE="update",t.CMD_DELETE="delete",t.CMD_INSERT="insert",t.CMD_EVAL="eval",t.CMD_ERROR="error",t.CMD_ATTRIBUTES="attributes",t.CMD_EXTENSION="extension",t.CMD_REDIRECT="redirect",t.UPDATE_FORMS="_updateForms",t.UPDATE_ELEMS="_updateElems",t.MYFACES="myfaces",t.SEL_SCRIPTS_STYLES="script, style, link",t.MF_NONE="__mf_none__",t.REASON_EXPIRED="Expired",t.APPLIED_VST="appliedViewState",t.RECONNECT_INTERVAL=500,t.MAX_RECONNECT_ATTEMPTS=25},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5);t.DomQuery=r.DomQuery,t.ElementAttribute=r.ElementAttribute,t.DomQueryCollector=r.DomQueryCollector,t.DQ=r.DQ;var o=n(3);t.Lang=o.Lang;var i=n(2);t.Config=i.Config,t.Monad=i.Monad,t.Optional=i.Optional,t.ValueEmbedder=i.ValueEmbedder;var a=n(18);t.XMLQuery=a.XMLQuery,t.XQ=a.XQ;var s=n(6);t.Stream=s.Stream,t.LazyStream=s.LazyStream;var u=n(8);t.ArrayStreamDataSource=u.ArrayStreamDataSource,t.MappedStreamDataSource=u.MappedStreamDataSource,t.FilteredStreamDatasource=u.FilteredStreamDatasource,t.FlatMapStreamDataSource=u.FlatMapStreamDataSource,t.QueryFormStringCollector=u.QueryFormStringCollector,t.ArrayCollector=u.ArrayCollector,t.AssocArrayCollector=u.AssocArrayCollector,t.FormDataCollector=u.FormDataCollector,t.QueryFormDataCollector=u.QueryFormDataCollector},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),a=n(8),s=n(6),u=i.Lang.objAssign,l=function(){function e(e){this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e.prototype.map=function(t){return t||(t=function(e){return e}),new e(t(this.value))},e.prototype.flatMap=function(t){for(var n,r=this.map(t);(null===(n=r)||void 0===n?void 0:n.value)instanceof e;)r=r.value;return r},e}();t.Monad=l;var c=function(e){function t(t){return e.call(this,t)||this}return o(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this._value instanceof l?this._value.flatMap().value:this._value},enumerable:!0,configurable:!0}),t.fromNullable=function(e){return new t(e)},t.prototype.isAbsent=function(){return void 0===this.value||null==this.value},t.prototype.isPresent=function(e){var t=this.isAbsent();return!t&&e&&e.call(this,this),!t},t.prototype.ifPresentLazy=function(e){return void 0===e&&(e=function(){}),this.isPresent.call(this,e),this},t.prototype.orElse=function(e){return this.isPresent()?this:null==e?t.absent:this.flatMap((function(){return e}))},t.prototype.orElseLazy=function(e){return this.isPresent()?this:this.flatMap(e)},t.prototype.flatMap=function(n){var r=e.prototype.flatMap.call(this,n);return r instanceof t?r.flatMap():t.fromNullable(r.value)},t.prototype.getIf=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++){var o=this.keyVal(e[r]),i=this.arrayIndex(e[r]);if(""===o&&i>=0){if((n=this.getClass().fromNullable(n.value instanceof Array?n.value.length<i?null:n.value[i]:null)).isAbsent())return n}else if(o&&i>=0){if(n.getIfPresent(o).isAbsent())return n;if((n=n.getIfPresent(o).value instanceof Array?this.getClass().fromNullable(n.getIfPresent(o).value[i]):this.getClass().absent).isAbsent())return n}else{if((n=n.getIfPresent(o)).isAbsent())return n;i>-1&&(n=this.getClass().fromNullable(n.value[i]))}}return n},t.prototype.match=function(e){return!this.isAbsent()&&e(this.value)},t.prototype.get=function(e){return void 0===e&&(e=t.absent),this.isAbsent()?this.getClass().fromNullable(e).flatMap():this.getClass().fromNullable(this.value).flatMap()},t.prototype.toJson=function(){return JSON.stringify(this.value)},t.prototype.getClass=function(){return t},t.prototype.arrayIndex=function(e){var t=e.indexOf("["),n=e.indexOf("]");return t>=0&&n>0&&t<n?parseInt(e.substring(t+1,n)):-1},t.prototype.keyVal=function(e){var t=e.indexOf("[");return t>=0?e.substring(0,t):e},t.prototype.getIfPresent=function(e){return this.isAbsent()?this.getClass().absent:this.getClass().fromNullable(this.value[e]).flatMap()},t.prototype.resolve=function(e){if(this.isAbsent())return t.absent;try{return t.fromNullable(e(this.value))}catch(e){return t.absent}},t.absent=t.fromNullable(null),t}(l);t.Optional=c;var f=function(e){function t(t,n){void 0===n&&(n="value");var r=e.call(this,t)||this;return r.key=n,r}return o(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this._value?this._value[this.key]:null},set:function(e){this._value&&(this._value[this.key]=e)},enumerable:!0,configurable:!0}),t.prototype.orElse=function(e){var n={};return n[this.key]=e,this.isPresent()?this:new t(n,this.key)},t.prototype.orElseLazy=function(e){if(this.isPresent())return this;var n={};return n[this.key]=e(),new t(n,this.key)},t.prototype.getClass=function(){return t},t.fromNullable=function(e,n){return void 0===n&&(n="value"),new t(e,n)},t.absent=t.fromNullable(null),t}(c);t.ValueEmbedder=f;var p=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.arrPos=null!=r?r:-1,o}return o(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return""==this.key&&this.arrPos>=0?this._value[this.arrPos]:this.key&&this.arrPos>=0?this._value[this.key][this.arrPos]:this._value[this.key]},set:function(e){""==this.key&&this.arrPos>=0?this._value[this.arrPos]=e:this.key&&this.arrPos>=0?this._value[this.key][this.arrPos]=e:this._value[this.key]=e},enumerable:!0,configurable:!0}),t.absent=t.fromNullable(null),t}(f),h=function(e){function t(t){return e.call(this,t)||this}return o(t,e),Object.defineProperty(t.prototype,"shallowCopy",{get:function(){return new t(s.Stream.ofAssoc(this.value).collect(new a.AssocArrayCollector))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"deepCopy",{get:function(){return new t(u({},this.value))},enumerable:!0,configurable:!0}),t.fromNullable=function(e){return new t(e)},t.prototype.shallowMerge=function(e,t){for(var n in void 0===t&&(t=!0),e.value)!t&&n in this.value||(this.assign(n).value=e.getIf(n).value)},t.prototype.assign=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!(e.length<1)){this.buildPath(e);var n=this.keyVal(e[e.length-1]),r=this.arrayIndex(e[e.length-1]),o=new p(1==e.length?this.value:this.getIf.apply(this,e.slice(0,e.length-1)).value,n,r);return o}},t.prototype.assignIf=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e?this.assign.apply(this,t):{value:null}},t.prototype.getIf=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this.getClass().fromNullable(e.prototype.getIf.apply(this,t).value)},t.prototype.get=function(t){return this.getClass().fromNullable(e.prototype.get.call(this,t).value)},t.prototype.delete=function(e){return e in this.value&&delete this.value[e],this},t.prototype.toJson=function(){return JSON.stringify(this.value)},t.prototype.getClass=function(){return t},t.prototype.setVal=function(e){this._value=e},t.prototype.buildPath=function(e){for(var t=this,n=this.getClass().fromNullable(null),r=-1,o=function(e,t){for(var n=e.length,r=n+t,o=n;o<r;o++)e.push({})},i=0;i<e.length;i++){var a=this.keyVal(e[i]),s=this.arrayIndex(e[i]);if(""===a&&s>=0)t.setVal(t.value instanceof Array?t.value:[]),o(t.value,s+1),r>=0&&(n.value[r]=t.value),n=t,r=s,t=this.getClass().fromNullable(t.value[s]);else{var u=t.getIf(a);if(-1==s)u.isAbsent()?u=this.getClass().fromNullable(t.value[a]={}):t=u;else{var l=u.value instanceof Array?u.value:[];o(l,s+1),t.value[a]=l,u=this.getClass().fromNullable(l[s])}n=t,r=s,t=u}}return this},t}(c);t.Config=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);!function(e){function t(e){for(var t=/\s/,n=(e=e.replace(/^\s\s*/,"")).length;t.test(e.charAt(--n)););return e.slice(0,n+1)}function n(e){return!!arguments.length&&null!=e&&("string"==typeof e||e instanceof String)}e.saveResolve=function(e,t){void 0===t&&(t=null);try{var n=e();return r.Optional.fromNullable(null!=n?n:t)}catch(e){return r.Optional.absent}},e.saveResolveLazy=function(e,t){void 0===t&&(t=null);try{var n=e();return r.Optional.fromNullable(null!=n?n:t())}catch(e){return r.Optional.absent}},e.strToArray=function(e,n){void 0===n&&(n=/\./gi);var r=[];return e.split(n).forEach((function(e){r.push(t(e))})),r},e.trim=t,e.objToArray=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=[]),"__undefined__"==(null!=e?e:"__undefined__")?null!=n?n:null:e instanceof Array&&!t&&!n?e:n.concat(Array.prototype.slice.call(e,t))},e.equalsIgnoreCase=function(e,t){var n=null!=t?t:"___no_value__";return(null!=e?e:"___no_value__").toLowerCase()===n.toLowerCase()},e.assertType=function(e,t){return n(t)?typeof e==t:e instanceof t},e.isString=n,e.isFunc=function(e){return e instanceof Function||"function"==typeof e},e.objAssign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(null==e)throw new TypeError("Cannot convert undefined or null to object");var r=Object(e);return Object.assign?(t.forEach((function(e){return Object.assign(r,e)})),r):(t.forEach((function(e){var t=e;if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])})),r)}}(t.Lang||(t.Lang={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(20),i=n(5),a=n(1),s=n(0),u=n(10);!function(e){var t,n="impl/util/Lang/";function l(e,n){for(var r,i,u=[],l=2;l<arguments.length;l++)u[l-2]=arguments[l];var c=null!=(i=null!=(r=(t=null!=t?t:new o.Messages)[e])?r:n)?i:e+" - undefined message";return a.Stream.of.apply(a.Stream,u).each((function(e,t){c=c.replace(new RegExp(["\\{",t,"\\}"].join(s.EMPTY_STR),"g"),e)})),c}function c(e,t,r,o,i,a){var u;return new Error(null!=(u=a+(null!=o?o:n)+i)?u:s.EMPTY_STR+arguments.caller.toString())}e.getLanguage=function(){var e,t,n,r=null!=(t=null===(e=navigator.languages)||void 0===e?void 0:e[0])?t:null===(n=navigator)||void 0===n?void 0:n.language;return r=r.split("-")[0]},e.failSaveResolve=function(e,t){return void 0===t&&(t=null),r.Lang.saveResolve(e,t)},e.failSaveExecute=function(e,t){void 0===t&&(t=null),r.Lang.saveResolve(e,t)},e.getMessage=l,e.keyValToStr=function(e,t,n){return void 0===n&&(n="\n"),[e,t].join(n)},e.makeException=c,e.getGlobalConfig=function(e,t){var n,r,o,i;return null!=(i=null===(o=null===(r=null===(n=window)||void 0===n?void 0:n.myfaces)||void 0===r?void 0:r.config)||void 0===o?void 0:o[e])?i:t},e.getForm=function(e,t){var n="form",r=new i.DQ(e),o=new i.DQ(u.getEventTarget(t));if(r.isTag(n))return r;if(r.attr(n).isPresent()){var a=r.attr(n).value,s=i.DQ.byId(a);if(s.isPresent())return s}var f=r.parents(n).orElseLazy((function(){return r.byTagName(n,!0)})).orElseLazy((function(){return o.parents(n)})).orElseLazy((function(){return o.byTagName(n)})).first();return function(e){if(e.isAbsent())throw c(new Error,null,null,"Impl","getForm",l("ERR_FORM"))}(f),f},e.getLocalOrGlobalConfig=function(e,t,n){var r,o,i,a,s,u,l,c;return null!=(c=null!=(a=null===(i=null===(o=null===(r=e.value)||void 0===r?void 0:r.myfaces)||void 0===o?void 0:o.config)||void 0===i?void 0:i[t])?a:null===(l=null===(u=null===(s=window)||void 0===s?void 0:s.myfaces)||void 0===u?void 0:u.config)||void 0===l?void 0:l[t])?c:n}}(t.ExtLang||(t.ExtLang={}))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),s=n(6),u=n(3),l=u.Lang.trim,c=u.Lang.objToArray,f=u.Lang.isString,p=u.Lang.equalsIgnoreCase,h=function(e){function t(t,n,r){void 0===r&&(r=null);var o=e.call(this,t,n)||this;return o.element=t,o.name=n,o.defaultVal=r,o}return o(t,e),Object.defineProperty(t.prototype,"value",{get:function(){var e,t=(e=this.element.get(0)).orElse.apply(e,[]).values;return t.length?t[0].getAttribute(this.name):this.defaultVal},set:function(e){for(var t,n=(t=this.element.get(0)).orElse.apply(t,[]).values,r=0;r<n.length;r++)n[r].setAttribute(this.name,e);n[0].setAttribute(this.name,e)},enumerable:!0,configurable:!0}),t.prototype.getClass=function(){return t},t.fromNullable=function(e,n){return void 0===n&&(n="value"),new t(e,n)},t}(a.ValueEmbedder);t.ElementAttribute=h;var v=function(e){return-1==e.indexOf("ln=scripts")&&-1==e.indexOf("ln=javax.faces")||-1==e.indexOf("/jsf.js")&&-1==e.indexOf("/jsf-uncompressed.js")},d=function(){function e(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(this.rootNode=[],this.pos=-1,this._limits=-1,!a.Optional.fromNullable(n).isAbsent()&&n.length)for(var o=0;o<n.length;o++)if(f(n[o])){var i=e.querySelectorAll(n[o]);i.isAbsent()||n.push.apply(n,i.values)}else n[o]instanceof e?(t=this.rootNode).push.apply(t,n[o].values):this.rootNode.push(n[o])}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getAsElem(0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"values",{get:function(){return this.allElems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return new h(this.get(0),"id")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.rootNode.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.getAsElem(0).getIf("tagName")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodeName",{get:function(){return this.getAsElem(0).getIf("nodeName")},enumerable:!0,configurable:!0}),e.prototype.isTag=function(e){return!this.isAbsent()&&(this.nodeName.orElse("__none___").value.toLowerCase()==e.toLowerCase()||this.tagName.orElse("__none___").value.toLowerCase()==e.toLowerCase())},Object.defineProperty(e.prototype,"type",{get:function(){return this.getAsElem(0).getIf("type")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return new a.ValueEmbedder(this.getAsElem(0).value,"name")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputValue",{get:function(){return this.getAsElem(0).getIf("value").isPresent()?new a.ValueEmbedder(this.getAsElem(0).value):a.ValueEmbedder.absent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checked",{get:function(){return s.Stream.of.apply(s.Stream,this.values).allMatch((function(e){return!!e.checked}))},set:function(e){this.eachElem((function(t){return t.checked=e}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"elements",{get:function(){var e=this;return this.stream.flatMap((function(e){var t=e.value.value;return new s.Stream(t.elements?c(t.elements):[])})).filter((function(e){return!!e})).collect(new E).orElseLazy((function(){return e.querySelectorAll("input, select, textarea, fieldset")}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.attr("disabled").isPresent()},set:function(e){e?this.attr("disabled").value="disabled":this.removeAttribute("disabled")},enumerable:!0,configurable:!0}),e.prototype.removeAttribute=function(e){this.eachElem((function(t){return t.removeAttribute(e)}))},Object.defineProperty(e.prototype,"childNodes",{get:function(){var t=[];return this.eachElem((function(e){t=t.concat(c(e.childNodes))})),new(e.bind.apply(e,i([void 0],t)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stream",{get:function(){return new(s.Stream.bind.apply(s.Stream,i([void 0],this.asArray)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lazyStream",{get:function(){return s.LazyStream.ofStreamDataSource(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asArray",{get:function(){var e=[];return this.each((function(t){e.push(t)})),e},enumerable:!0,configurable:!0}),e.querySelectorAll=function(t){return new e(document).querySelectorAll(t)},e.byId=function(t){return f(t)?new e(document).byId(t):new e(t)},e.byTagName=function(t){return f(t)?new e(document).byTagName(t):new e(t)},e.globalEval=function(t,n){return new e(document).globalEval(t,n)},e.fromMarkup=function(t){var n=document.implementation.createHTMLDocument(""),r=(t=l(t)).toLowerCase();if(-1!=r.indexOf("<!doctype")||-1!=r.indexOf("<html")||-1!=r.indexOf("<head")||-1!=r.indexOf("<body"))return n.documentElement.innerHTML=t,new e(n.documentElement);var o=function(e,t){var n=["<",t,">"].join(""),r=["<",t," "].join("");return 0==e.indexOf(n)||0==e.indexOf(r)},i=new e(document.createElement("div"));return o(r,"thead")||o(r,"tbody")?(i.html("<table>"+t+"</table>"),i.querySelectorAll("table").get(0).childNodes.detach()):o(r,"tfoot")?(i.html("<table><thead></thead><tbody><tbody"+t+"</table>"),i.querySelectorAll("table").get(2).childNodes.detach()):o(r,"tr")?(i.html("<table><tbody>"+t+"</tbody></table>"),i.querySelectorAll("tbody").get(0).childNodes.detach()):o(r,"td")?(i.html("<table><tbody><tr>"+t+"</tr></tbody></table>"),i.querySelectorAll("tr").get(0).childNodes.detach()):(i.html(t),i.childNodes.detach())},e.prototype.get=function(t){return t<this.rootNode.length?new e(this.rootNode[t]):e.absent},e.prototype.getAsElem=function(e,t){return void 0===t&&(t=a.Optional.absent),e<this.rootNode.length?a.Optional.fromNullable(this.rootNode[e]):t},e.prototype.allElems=function(){return this.rootNode},e.prototype.isAbsent=function(){return 0==this.length},e.prototype.isPresent=function(e){var t=this.isAbsent();return!t&&e&&e.call(this,this),!t},e.prototype.ifPresentLazy=function(e){return void 0===e&&(e=function(){}),this.isPresent.call(this,e),this},e.prototype.delete=function(){this.eachElem((function(e){e.parentNode&&e.parentNode.removeChild(e)}))},e.prototype.querySelectorAll=function(t){var n,r;if(!(null===(n=null===this||void 0===this?void 0:this.rootNode)||void 0===n?void 0:n.length))return this;for(var o=[],a=0;a<this.rootNode.length;a++)if(null===(r=this.rootNode[a])||void 0===r?void 0:r.querySelectorAll){var s=this.rootNode[a].querySelectorAll(t);o=o.concat(c(s))}return new(e.bind.apply(e,i([void 0],o)))},e.prototype.byId=function(t,n){for(var r,o=[],a=0;n&&a<this.rootNode.length;a++)(null===(r=this.rootNode[a])||void 0===r?void 0:r.id)==t&&o.push(new e(this.rootNode[a]));return o=o.concat(this.querySelectorAll('[id="'+t+'"]')),new(e.bind.apply(e,i([void 0],o)))},e.prototype.byTagName=function(t,n){for(var r,o=[],a=0;n&&a<this.rootNode.length;a++)(null===(r=this.rootNode[a])||void 0===r?void 0:r.tagName)==t&&o.push(new e(this.rootNode[a]));return o=o.concat(this.querySelectorAll(t)),new(e.bind.apply(e,i([void 0],o)))},e.prototype.attr=function(e,t){return void 0===t&&(t=null),new h(this,e,t)},e.prototype.hasClass=function(e){var t=!1;return this.each((function(n){var r=n.attr("class").value||"";if(-1!=r.toLowerCase().indexOf(e.toLowerCase())){for(var o=r.split(/\s+/gi),i=!1,a=0;a<o.length&&!i;a++)i=o[a].toLowerCase()==e.toLowerCase();return!(t=t||i)&&void 0}})),t},e.prototype.addClass=function(e){var t=this;return this.each((function(n){var r=n.attr("class").value||"";t.hasClass(e)||(n.attr("class").value=l(r+" "+e))})),this},e.prototype.removeClass=function(e){var t=this;return this.each((function(n){if(t.hasClass(e)){for(var r=[],o=(n.attr("class").value||"").split(/\s+/gi),i=0;i<o.length;i++)o[i].toLowerCase()!=e.toLowerCase()&&r.push(o[i]);n.attr("class").value=r.join(" ")}})),this},e.prototype.isMultipartCandidate=function(){return this.querySelectorAll("input[type='file']").firstElem().isPresent()},e.prototype.html=function(e){return a.Optional.fromNullable(e).isAbsent()?this.isPresent()?a.Optional.fromNullable(this.innerHtml):a.Optional.absent:(this.innerHtml=e,this)},Object.defineProperty(e.prototype,"innerHtml",{get:function(){var e=[];return this.eachElem((function(t){return e.push(t.innerHTML)})),e.join("")},set:function(e){this.eachElem((function(t){return t.innerHTML=e}))},enumerable:!0,configurable:!0}),e.prototype._mozMatchesSelector=function(e,t){var n=e;return(n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector||function(t){for(var n=(document||window.ownerDocument).querySelectorAll(t),r=n.length;--r>=0&&n.item(r)!==e;);return r>-1}).call(e,t)},e.prototype.filterSelector=function(t){var n=this,r=[];return this.eachElem((function(e){n._mozMatchesSelector(e,t)&&r.push(e)})),new(e.bind.apply(e,i([void 0],r)))},e.prototype.matchesSelector=function(e){var t=this;return this.eachElem((function(n){if(!t._mozMatchesSelector(n,e))return!1})),!0},e.prototype.getIf=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=this.childNodes,r=0;r<e.length;r++)if((n=n.filterSelector(e[r])).isAbsent())return n;return n},e.prototype.eachElem=function(e){for(var t=0,n=this.rootNode.length;t<n&&!1!==e(this.rootNode[t],t);t++);return this},e.prototype.firstElem=function(e){return void 0===e&&(e=function(e){return e}),this.rootNode.length>1&&e(this.rootNode[0],0),this},e.prototype.each=function(t){return s.Stream.of.apply(s.Stream,this.rootNode).each((function(n,r){if(null!=n)return t(e.byId(n),r)})),this},e.prototype.first=function(e){return void 0===e&&(e=function(e){return e}),this.rootNode.length>=1?(e(this.get(0),0),this.get(0)):this},e.prototype.filter=function(t){var n=[];return this.each((function(e){t(e)&&n.push(e)})),new(e.bind.apply(e,i([void 0],n)))},e.prototype.globalEval=function(e,t){var n=document.getElementsByTagName("head")[0]||document.documentElement,r=document.createElement("script");t&&r.setAttribute("nonce",t),r.type="text/javascript",r.innerHTML=e;var o=n.appendChild(r);return n.removeChild(o),this},e.prototype.detach=function(){return this.eachElem((function(e){e.parentNode.removeChild(e)})),this},e.prototype.appendTo=function(e){this.eachElem((function(t){e.getAsElem(0).orElseLazy((function(){return{appendChild:function(e){}}})).value.appendChild(t)}))},e.prototype.loadScriptEval=function(e,t,n){var r=this;void 0===t&&(t=0),void 0===n&&(n="utf-8");var o=new XMLHttpRequest;return o.open("GET",e,!1),n&&o.setRequestHeader("Content-Type","application/x-javascript; charset:"+n),o.send(null),o.onload=function(n){t?setTimeout((function(){r.globalEval(o.responseText+"\r\n//@ sourceURL="+e)}),t):r.globalEval(o.responseText.replace("\n","\r\n")+"\r\n//@ sourceURL="+e)},o.onerror=function(e){throw Error(e)},this},e.prototype.insertAfter=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.each((function(e){for(var n=e.getAsElem(0).value,r=n.parentNode,o=function(e){var o=n.nextSibling;t[e].eachElem((function(e){o?(r.insertBefore(e,o),n=o):r.appendChild(e)}))},i=0;i<t.length;i++)o(i)}));var r=[];return r.push(this),r=r.concat(t),new(e.bind.apply(e,i([void 0],r)))},e.prototype.insertBefore=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.each((function(e){for(var n=e.getAsElem(0).value,r=n.parentNode,o=0;o<t.length;o++)t[o].eachElem((function(e){r.insertBefore(e,n)}))}));var r=[];return r.push(this),r=r.concat(t),new(e.bind.apply(e,i([void 0],r)))},e.prototype.orElse=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this.isPresent()?this:new(e.bind.apply(e,i([void 0],t)))},e.prototype.orElseLazy=function(t){return this.isPresent()?this:new e(t())},e.prototype.parents=function(t){var n=new Set,r=[],o=t.toLowerCase(),a=function(e){(e.tagName||"").toLowerCase()!=o||n.has(e)||(n.add(e),r.push(e))};return this.eachElem((function(e){for(;e.parentNode;)if(e=e.parentNode,a(e),"form"==t&&r.length)return!1})),new(e.bind.apply(e,i([void 0],r)))},e.prototype.copyAttrs=function(e){var t=this;return e.eachElem((function(e){for(var n=0,r=c(e.attributes);n<r.length;n++){var o=r[n],i=o.value,a=o.name;switch(a){case"id":t.id.value=i;break;case"disabled":t.resolveAttributeHolder("disabled").disabled=i;break;case"checked":t.resolveAttributeHolder("checked").checked=i;break;default:t.attr(a).value=i}}})),this},e.prototype.resolveAttributeHolder=function(e){void 0===e&&(e="value");var t=[];return t[e]=null,e in this.getAsElem(0).value?this.getAsElem(0).value:t},e.prototype.outerHTML=function(t,n,r){var o,a;if(!this.isAbsent()){var s=null===(a=null===(o=document)||void 0===o?void 0:o.activeElement)||void 0===a?void 0:a.id,u=s?e.getCaretPosition(document.activeElement):null,l=e.fromMarkup(t),c=[],f=this.getAsElem(0).value,p=l.get(0),h=f.parentNode,v=p.getAsElem(0).value;if(h.replaceChild(v,f),c.push(new e(v)),this.isAbsent())return this;var d=[];l.length>1&&(d=d.concat.apply(d,l.values.slice(1)),c.push(e.byId(v).insertAfter(new(e.bind.apply(e,i([void 0],d)))))),n&&this.runScripts(),r&&this.runCss();var E=e.byId(s);return s&&E.isPresent()&&null!=u&&void 0!==u&&E.eachElem((function(t){return e.setCaretPosition(t,u)})),l}},e.prototype.runScripts=function(t){var n=this;void 0===t&&(t=v);var r=[],o=p,i=function(e){var i=e.tagName,a=e.type||"";if(i&&o(i,"script")&&(""===a||o(a,"text/javascript")||o(a,"javascript")||o(a,"text/ecmascript")||o(a,"ecmascript"))){var s=e.getAttribute("src");if(void 0!==s&&null!=s&&s.length>0)t(s)&&(r.length&&(n.globalEval(r.join("\n")),r=[]),n.loadScriptEval(s,0,"UTF-8"));else{for(var u=l(e.text||e.innerText||e.innerHTML),c=!0;c;)c=!1,"\x3c!--"==u.substring(0,4)&&(u=u.substring(4),c=!0),"//\x3c!--"==u.substring(0,4)&&(u=u.substring(6),c=!0),"//<![CDATA["==u.substring(0,11)&&(u=u.substring(11),c=!0);r.push(u)}}};try{new e(this.filterSelector("script"),this.querySelectorAll("script")).stream.flatMap((function(e){return s.Stream.of(e.values)})).sort((function(e,t){return e.compareDocumentPosition(t)-3})).each((function(e){return i(e)})),r.length&&this.globalEval(r.join("\n"))}catch(e){window.console&&window.console.error&&console.error(e.message||e.description)}finally{i=null}return this},e.prototype.runCss=function(){var t=function(e,t){var n,r,o,i,a,s=document.createElement("style");document.getElementsByTagName("head")[0].appendChild(s);var u=null!=(n=s.sheet)?n:s.styleSheet;s.setAttribute("rel",null!=(r=e.getAttribute("rel"))?r:"stylesheet"),s.setAttribute("type",null!=(o=e.getAttribute("type"))?o:"text/css"),null!=(a=null===(i=u)||void 0===i?void 0:i.cssText)&&a?u.cssText=t:s.appendChild(document.createTextNode(t))};return new e(this.filterSelector("link, style"),this.querySelectorAll("link, style")).stream.flatMap((function(e){return s.Stream.of(e.values)})).sort((function(e,t){return e.compareDocumentPosition(t)-3})).each((function(e){return function(e){var n=e.tagName;if(n&&p(n,"link")&&p(e.getAttribute("type"),"text/css"))t(e,"@import url('"+e.getAttribute("href")+"');");else if(n&&p(n,"style")&&p(e.getAttribute("type"),"text/css")){var r=[],o=e.childNodes;if(o)for(var i=o.length,a=0;a<i;a++)r.push(o[a].innerHTML||o[a].data);else e.innerHTML&&r.push(e.innerHTML);t(e,r.join(""))}}(e)})),this},e.prototype.click=function(){return this.fireEvent("click"),this},e.prototype.addEventListener=function(e,t,n){return this.eachElem((function(r){r.addEventListener(e,t,n)})),this},e.prototype.removeEventListener=function(e,t,n){return this.eachElem((function(r){r.removeEventListener(e,t,n)})),this},e.prototype.fireEvent=function(e){this.eachElem((function(t){var n;if(t.ownerDocument)n=t.ownerDocument;else{if(9!=t.nodeType)throw new Error("Invalid node passed to fireEvent: "+t.id);n=t}if(t.dispatchEvent){var r="";switch(e){case"click":case"mousedown":case"mouseup":r="MouseEvents";break;case"focus":case"change":case"blur":case"select":r="HTMLEvents";break;default:throw"fireEvent: Couldn't find an event class for event '"+e+"'."}var o=n.createEvent(r);o.initEvent(e,!0,!0),o.synthetic=!0,t.dispatchEvent(o)}else if(t.fireEvent){var i=n.createEventObject();i.synthetic=!0,t.fireEvent("on"+e,i)}}))},e.prototype.textContent=function(e){return void 0===e&&(e=""),this.stream.map((function(e){return e.getAsElem(0).orElseLazy((function(){return{textContent:""}})).value.textContent||""})).reduce((function(t,n){return t+e+n}),"").value},e.prototype.innerText=function(e){return void 0===e&&(e=""),this.stream.map((function(e){return e.getAsElem(0).orElseLazy((function(){return{innerText:""}})).value.innerText||""})).reduce((function(t,n){return[t,n].join(e)}),"").value},e.prototype.encodeFormElement=function(e){if(void 0===e&&(e=new a.Config({})),!this.name.isAbsent()){var t=e.shallowCopy;return this.each((function(e){if(!e.name.isAbsent()){var n=e.name.value,r=e.tagName.orElse("__none__").value.toLowerCase(),o=e.type.orElse("__none__").value.toLowerCase();if(o=o.toLowerCase(),("input"==r||"textarea"==r||"select"==r)&&null!=n&&""!=n&&!e.disabled){if("select"==r){var i=e.getAsElem(0).value;if(i.selectedIndex>=0)for(var a=i.options.length,s=0;s<a;s++)if(i.options[s].selected){var u=i.options[s];t.assign(n).value=null!=u.getAttribute("value")?u.value:u.text}}if("select"!=r&&"button"!=o&&"reset"!=o&&"submit"!=o&&"image"!=o&&("checkbox"!=o&&"radio"!=o||e.checked)){var l=e.value.files;l&&l.length?t.assign(n).value=l[0]:t.assign(n).value=e.inputValue.value}}}})),t}},Object.defineProperty(e.prototype,"cDATAAsString",{get:function(){return this.stream.flatMap((function(e){return e.childNodes.stream})).reduce((function(e,t){var n,r,o,i,a,s,u;return 4==(null===(o=null===(r=null===(n=t)||void 0===n?void 0:n.value)||void 0===r?void 0:r.value)||void 0===o?void 0:o.nodeType)&&e.push(null!=(u=null===(s=null===(a=null===(i=t)||void 0===i?void 0:i.value)||void 0===a?void 0:a.value)||void 0===s?void 0:s.data)?u:""),e}),[]).value.join("")},enumerable:!0,configurable:!0}),e.prototype.subNodes=function(t,n){return a.Optional.fromNullable(n).isAbsent()&&(n=this.length),new(e.bind.apply(e,i([void 0],this.rootNode.slice(t,Math.min(n,this.length)))))},e.prototype.limits=function(e){return this._limits=e,this},e.prototype.hasNext=function(){var e=-1!=this._limits&&this.pos>=this._limits-1,t=this.pos>=this.values.length-1;return!(e||t)},e.prototype.next=function(){return this.hasNext()?(this.pos++,new e(this.values[this.pos])):null},e.prototype.reset=function(){this.pos=-1},e.getCaretPosition=function(e){var t,n=0;try{if(null===(t=document)||void 0===t?void 0:t.selection){e.focus();var r=document.selection.createRange();r.moveStart("character",-e.value.length),n=r.text.length}}catch(e){}return n},e.setCaretPosition=function(e,t){e.focus(),e.setSelectionRange(t,t)},e.absent=new e,e}();t.DomQuery=d;var E=function(){function e(){this.data=[]}return e.prototype.collect=function(e){this.data.push(e)},Object.defineProperty(e.prototype,"finalValue",{get:function(){return new(d.bind.apply(d,i([void 0],this.data)))},enumerable:!0,configurable:!0}),e}();t.DomQueryCollector=E,t.DQ=d},function(e,t,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(8),a=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._limits=-1,this.pos=-1,this.value=e}return e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new(e.bind.apply(e,r([void 0],t)))},e.ofAssoc=function(e){return this.of.apply(this,Object.keys(e)).map((function(t){return[t,e[t]]}))},e.ofDataSource=function(t){for(var n=[];t.hasNext();)n.push(t.next());return new(e.bind.apply(e,r([void 0],n)))},e.prototype.limits=function(e){return this._limits=e,this},e.prototype.onElem=function(e){for(var t=0;t<this.value.length&&(-1==this._limits||t<this._limits)&&!1!==e(this.value[t],t);t++);return this},e.prototype.each=function(e){this.onElem(e)},e.prototype.map=function(t){t||(t=function(e){return e});var n=[];return this.each((function(e,r){n.push(t(e))})),new(e.bind.apply(e,r([void 0],n)))},e.prototype.flatMap=function(t){var n=[];return this.each((function(e){var r=t(e);n=Array.isArray(r)?n.concat(r):n.concat.apply(n,r.value)})),e.of.apply(e,n)},e.prototype.filter=function(t){var n=[];return this.each((function(e){t(e)&&n.push(e)})),new(e.bind.apply(e,r([void 0],n)))},e.prototype.reduce=function(e,t){void 0===t&&(t=null);for(var n=null!=t?0:1,r=null!=t?t:this.value.length?this.value[0]:null,i=n;i<this.value.length&&(-1==this._limits||i<this._limits);i++)r=e(r,this.value[i]);return o.Optional.fromNullable(r)},e.prototype.first=function(){return this.value&&this.value.length?o.Optional.fromNullable(this.value[0]):o.Optional.absent},e.prototype.last=function(){var e=this._limits>0?Math.min(this._limits,this.value.length):this.value.length;return o.Optional.fromNullable(e?this.value[e-1]:null)},e.prototype.anyMatch=function(e){for(var t=0;t<this.value.length&&(-1==this._limits||t<this._limits);t++)if(e(this.value[t]))return!0;return!1},e.prototype.allMatch=function(e){if(!this.value.length)return!1;for(var t=0,n=0;n<this.value.length;n++)e(this.value[n])&&t++;return t==this.value.length},e.prototype.noneMatch=function(e){for(var t=0,n=0;n<this.value.length;n++)e(this.value[n])||t++;return t==this.value.length},e.prototype.sort=function(t){var n=this.value.slice().sort(t);return e.of.apply(e,n)},e.prototype.collect=function(e){return this.each((function(t){return e.collect(t)})),e.finalValue},e.prototype.hasNext=function(){var e=-1!=this._limits&&this.pos>=this._limits-1,t=this.pos>=this.value.length-1;return!(e||t)},e.prototype.next=function(){return this.hasNext()?(this.pos++,this.value[this.pos]):null},e.prototype.reset=function(){this.pos=-1},e}();t.Stream=a;var s=function(){function e(e){this._limits=-1,this.pos=-1,this.dataSource=e}return e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new e(new(i.ArrayStreamDataSource.bind.apply(i.ArrayStreamDataSource,r([void 0],t))))},e.ofAssoc=function(e){return this.of.apply(this,Object.keys(e)).map((function(t){return[t,e[t]]}))},e.ofStreamDataSource=function(t){return new e(t)},e.prototype.hasNext=function(){return!this.isOverLimits()&&this.dataSource.hasNext()},e.prototype.next=function(){var e=this.dataSource.next();return this.pos++,e},e.prototype.reset=function(){this.dataSource.reset(),this.pos=0,this._limits=-1},e.prototype.nextFilter=function(e){if(this.hasNext()){var t=this.next();return e(t)?t:this.nextFilter(e)}return null},e.prototype.limits=function(e){return this._limits=e,this},e.prototype.collect=function(e){for(;this.hasNext();){var t=this.next();e.collect(t)}return e.finalValue},e.prototype.onElem=function(t){var n=this;return new e(new i.MappedStreamDataSource((function(e){return!1===t(e,n.pos)&&n.stop(),e}),this))},e.prototype.filter=function(t){return new e(new i.FilteredStreamDatasource(t,this))},e.prototype.map=function(t){return new e(new i.MappedStreamDataSource(t,this))},e.prototype.flatMap=function(t){return new e(new i.FlatMapStreamDataSource(t,this))},e.prototype.each=function(e){for(;this.hasNext();)!1===e(this.next())&&this.stop()},e.prototype.reduce=function(e,t){if(void 0===t&&(t=null),!this.hasNext())return o.Optional.absent;var n=null,r=null;if(null!=t)n=t,r=this.next();else{if(n=this.next(),!this.hasNext())return o.Optional.fromNullable(n);r=this.next()}for(n=e(n,r);this.hasNext();)n=e(n,r=this.next());return o.Optional.fromNullable(n)},e.prototype.last=function(){return this.hasNext()?this.reduce((function(e,t){return t})):o.Optional.absent},e.prototype.first=function(){return this.reset(),this.hasNext()?o.Optional.fromNullable(this.next()):o.Optional.absent},e.prototype.anyMatch=function(e){for(;this.hasNext();)if(e(this.next()))return!0;return!1},e.prototype.allMatch=function(e){for(;this.hasNext();)if(!e(this.next()))return!1;return!0},e.prototype.noneMatch=function(e){for(;this.hasNext();)if(e(this.next()))return!1;return!0},e.prototype.sort=function(t){var n=this.collect(new i.ArrayCollector);return n=n.sort(t),e.of.apply(e,n)},Object.defineProperty(e.prototype,"value",{get:function(){return this.collect(new i.ArrayCollector)},enumerable:!0,configurable:!0}),e.prototype.stop=function(){this.pos=this._limits+1e9},e.prototype.isOverLimits=function(){return-1!=this._limits&&this.pos>=this._limits-1},e}();t.LazyStream=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,i=n(16),a=n(17),s=n(23),u=n(24),l=n(1),c=n(9),f=n(15),p=n(14),h=n(11),v=n(4),d=n(0),E=n(10);!function(e){e.Production="Production",e.Development="Development",e.SystemTest="SystemTest",e.UnitTest="UnitTest"}(r||(r={})),function(e){e.onerror="onerror",e.onevent="onevent",e.render="render",e.execute="execute",e.myfaces="myfaces",e.delay="delay",e.timeout="timeout",e.windowId="windowId"}(o||(o={})),function(e){var t=l.Lang.trim,n=v.ExtLang.getMessage,y=v.ExtLang.getGlobalConfig,_=c.Assertions.assert,m=(i.myfaces.config,[]),g=[];e.requestQueue=null;var T="ERROR";function R(){var e=p.ExtDomquery.searchJsfJsFor(/stage=([^&;]*)/).value;return e in r?e:null}function A(e,t){void 0===t&&(t=function(e){}),t(e),g.forEach((function(t){t(e)})),y("defaultErrorOutput",console?console.error:alert)(e)}function S(e,n,r,o,i){for(var a=r?t(r).split(/\s+/gi):[],s=[],u={},l=0;l<a.length;l++)if(!(a[l]in u))switch(a[l]){case d.IDENT_NONE:return e.delete(n);case d.IDENT_ALL:return e.assign(n).value=d.IDENT_ALL,e;case d.IDENT_FORM:s.push(o.id.value),u[o.id.value]=!0;break;case d.IDENT_THIS:i in u||(s.push(i),u[i]=!0);break;default:s.push(a[l]),u[a[l]]=!0}return e.assign(n).value=s.join(" "),e}e.getSeparatorChar=function(){var e,t,n;return null!=(n=null!=(t=null===(e=null===this||void 0===this?void 0:this.globalConfig)||void 0===e?void 0:e.separator)?t:null===this||void 0===this?void 0:this.separator)?n:p.ExtDomquery.searchJsfJsFor(/separator=([^&;]*)/).orElse(":").value},e.reset=function(){i.myfaces.config,null,null,m=[],g=[],e.requestQueue=null},e.getProjectStage=function(){var e,t,n;return null!=(n=null!=(t=null===(e=null===this||void 0===this?void 0:this.globalConfig)||void 0===e?void 0:e.projectStage)?t:null===this||void 0===this?void 0:this.projectStage)?n:R()},e.resolveProjectStateFromURL=R,e.chain=function(e,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var i=!0;return l.Stream.of.apply(l.Stream,r).each((function(r){return function(r){if("string"!=typeof r)return i=i&&!1!==r.call(e,n);var o=t(r);return 0==o.indexOf("function ")&&(o="return "+o+" (event)"),i=i&&!1!==new Function("event",o).call(e,n)}(r)})),i},e.request=function(t,n,r){var i,a,s,u,f,p=E.resolveDefaults(n,r,t),h=p.resolvedEvent,v=p.options,y=p.elem,_=p.elementId,m=p.requestCtx,g=p.internalCtx,T=p.windowId,R=p.isResetValues;c.Assertions.assertRequestIntegrity(v,y),m.assignIf(!!T,d.P_WINDOW_ID).value=T,m.assign(d.CTX_PARAM_PASS_THR).value=(f=v.value,l.Stream.ofAssoc(f).filter((function(e){return!(e[0]in o)})).collect(new l.AssocArrayCollector)),m.assignIf(!!h,d.CTX_PARAM_PASS_THR,d.P_EVT).value=null===(i=h)||void 0===i?void 0:i.type,m.assign(d.SOURCE).value=_.value,m.assign(d.ON_EVENT).value=null===(a=v.value)||void 0===a?void 0:a.onevent,m.assign(d.ON_ERROR).value=null===(s=v.value)||void 0===s?void 0:s.onerror,m.assign(d.MYFACES).value=null===(u=v.value)||void 0===u?void 0:u.myfaces;var A,b,P,O,M=E.resolveForm(m,y,h);m.assign(d.CTX_PARAM_PASS_THR,d.P_PARTIAL_SOURCE).value=_.value,m.assign(d.CTX_PARAM_PASS_THR,d.P_AJAX).value=!0,m.assign(d.CTX_PARAM_PASS_THR,d.P_PARTIAL_SOURCE).value=_.value,m.assignIf(R,d.CTX_PARAM_PASS_THR,d.P_RESET_VALUES).value=!0,g.assign(d.CTX_PARAM_SRC_FRM_ID).value=M.id.value,g.assign(d.CTX_PARAM_SRC_CTL_ID).value=_.value,g.assign(d.CTX_PARAM_TR_TYPE).value=d.REQ_TYPE_POST,m.assign(d.CTX_PARAM_PASS_THR,M.id.value).value=M.id.value,function(e,t){var n=jsf.getClientWindow(e.getAsElem(0).value);n&&(t.assign(d.CTX_PARAM_PASS_THR,d.P_CLIENT_WINDOW).value=n)}(M,m),A=v,b=m,P=M,O=_.value,A.getIf(d.CTX_PARAM_EXECUTE).isPresent()?(A.assign(d.CTX_PARAM_EXECUTE).value=[A.getIf(d.CTX_PARAM_EXECUTE).value,d.IDENT_THIS].join(" "),S(b.getIf(d.CTX_PARAM_PASS_THR).get({}),d.P_EXECUTE,A.getIf(d.CTX_PARAM_EXECUTE).value,P,O)):b.assign(d.CTX_PARAM_PASS_THR,d.P_EXECUTE).value=O,function(e,t,n,r){e.getIf(d.RENDER).isPresent()&&S(t.getIf(d.CTX_PARAM_PASS_THR).get({}),d.P_RENDER,e.getIf(d.RENDER).value,n,r)}(v,m,M,_.value);var N=E.resolveDelay(v),C=E.resolveTimeout(v);e.queueHandler.addRequestToQueue(y,M,m,g,N,C)},e.response=function(e,t){a.Response.processResponse(e,t)},e.addOnError=function(e){g.push(e)},e.addOnEvent=function(e){m.push(e)},e.sendEvent=function(e,t){void 0===t&&(t=function(e){}),t(e),m.forEach((function(t){return t(e)}))},e.stdErrorHandler=function(t,n,r,o){void 0===o&&(o=!1);try{if("ERROR"==T)A(h.ErrorData.fromClient(r))}finally{o&&e.requestQueue.cleanup()}},e.sendError=A,e.getClientWindow=function(e){var t,n="___mf_id_altered__",r=new l.DQ(e||document.body).stream.map((function(e){return e.attr("value").value})).reduce((function(e,t){return e==n?e:"___init____"==e?t:e!=t?n:t}),"___init____");return _(r.value!=n,"Multiple different windowIds found in document"),null!=(t=r.value)?t:p.ExtDomquery.searchJsfJsFor(/jfwid=([^&;]*)/).orElse(null).value},e.getViewState=function(e){var t=l.DQ.byId(e);if(!t.isTag(d.TAG_FORM))throw new Error(n("ERR_VIEWSTATE"));return new f.XhrFormData(t).toString()},e.queueHandler={addRequestToQueue:function(t,n,r,o,i,a){void 0===i&&(i=0),void 0===a&&(a=0),e.requestQueue=null!==e.requestQueue&&void 0!==e.requestQueue?e.requestQueue:new u.AsynchronouseQueue,e.requestQueue.enqueue(new s.XhrRequest(t,n,r,o,[],a),i)}}}(t.Implementation||(t.Implementation={}))},function(e,t,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};Object.defineProperty(t,"__esModule",{value:!0});var o=n(6),i=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.dataPos=-1,this.value=e}return e.prototype.hasNext=function(){return this.value.length-1>this.dataPos},e.prototype.next=function(){return this.dataPos++,this.value[this.dataPos]},e.prototype.reset=function(){this.dataPos=-1},e}();t.ArrayStreamDataSource=i;var a=function(){function e(e,t){this.filteredNext=null,this.filterFunc=e,this.inputDataSource=t}return e.prototype.hasNext=function(){for(;null==this.filteredNext&&this.inputDataSource.hasNext();){var e=this.inputDataSource.next();if(this.filterFunc(e))return this.filteredNext=e,!0;this.filteredNext=null}return null!=this.filteredNext},e.prototype.next=function(){var e=this.filteredNext;return this.filteredNext=null,this.hasNext(),e},e.prototype.reset=function(){this.filteredNext=null,this.inputDataSource.reset()},e}();t.FilteredStreamDatasource=a;var s=function(){function e(e,t){this.mapFunc=e,this.inputDataSource=t}return e.prototype.hasNext=function(){return this.inputDataSource.hasNext()},e.prototype.next=function(){return this.mapFunc(this.inputDataSource.next())},e.prototype.reset=function(){this.inputDataSource.reset()},e}();t.MappedStreamDataSource=s;var u=function(){function e(e,t){this.mapFunc=e,this.inputDataSource=t}return e.prototype.hasNext=function(){return this.resolveCurrentNext()||this.resolveNextNext()},e.prototype.resolveCurrentNext=function(){var e=!1;return this.activeDataSource&&(e=this.activeDataSource.hasNext()),e},e.prototype.resolveNextNext=function(){for(var e=!1;!e&&this.inputDataSource.hasNext();){var t=this.mapFunc(this.inputDataSource.next());Array.isArray(t)?this.activeDataSource=new(i.bind.apply(i,r([void 0],t))):this.activeDataSource=t,e=this.activeDataSource.hasNext()}return e},e.prototype.next=function(){return this.activeDataSource.next()},e.prototype.reset=function(){this.inputDataSource.reset()},e}();t.FlatMapStreamDataSource=u;var l=function(){function e(){this.data=[]}return e.prototype.collect=function(e){this.data.push(e)},Object.defineProperty(e.prototype,"finalValue",{get:function(){return this.data},enumerable:!0,configurable:!0}),e}();t.ArrayCollector=l;var c=function(){function e(){this.finalValue={}}return e.prototype.collect=function(e){var t,n;this.finalValue[(t=e[0],null!=t?t:e)]=null==(n=e[1])||n},e}();t.AssocArrayCollector=c;var f=function(){function e(){this.finalValue=new FormData}return e.prototype.collect=function(e){this.finalValue.append(e.key,e.value)},e}();t.FormDataCollector=f;var p=function(){function e(){this.finalValue=new FormData}return e.prototype.collect=function(e){var t=e.encodeFormElement();t.isPresent()&&this.finalValue.append(e.name.value,t.get(e.name).value)},e}();t.QueryFormDataCollector=p;var h=function(){function e(){this.formData=[]}return e.prototype.collect=function(e){var t=e.encodeFormElement();t.isPresent()&&this.formData.push([e.name.value,t.get(e.name).value])},Object.defineProperty(e.prototype,"finalValue",{get:function(){return o.Stream.of.apply(o.Stream,this.formData).map((function(e){return e.join("=")})).reduce((function(e,t){return[e,t].join("&")})).orElse("").value},enumerable:!0,configurable:!0}),e}();t.QueryFormStringCollector=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(4),i=o.ExtLang.getMessage,a=o.ExtLang.makeException,s=n(0);!function(e){function t(t,n,r,o){if(void 0===n&&(n=s.EMPTY_STR),void 0===r&&(r=s.EMPTY_STR),void 0===o&&(o="Assertion Error"),!t)throw e.raiseError(new Error,n,r,o)}function n(t,n,o,i,a){if(void 0===o&&(o=s.EMPTY_STR),void 0===i&&(i=s.EMPTY_STR),void 0===a&&(a="Type Assertion Error"),t&&!r.Lang.assertType(t,n))throw e.raiseError(new Error,o,i,a)}function o(e,t,r,o){void 0===t&&(t=s.EMPTY_STR),void 0===r&&(r=s.EMPTY_STR),void 0===o&&(o="Assertion Error"),n(e,"function",t,r,o)}e.assertRequestIntegrity=function(e,n){o(e.getIf(s.ON_ERROR).value),o(e.getIf(s.ON_EVENT).value),t(n.isPresent(),i("ERR_MUST_BE_PROVIDED1","{0}: source must be provided or exist","source element id"),"jsf.ajax.request","ArgNotSet")},e.assertUrlExists=function(t){if(t.attr(s.ATTR_URL).isAbsent())throw e.raiseError(new Error,i("ERR_RED_URL",null,"_Ajaxthis.processRedirect"),"processRedirect")},e.assertValidXMLResponse=function(e){t(!e.isAbsent(),s.EMPTY_RESPONSE,s.PHASE_PROCESS_RESPONSE),t(!e.isXMLParserError(),e.parserErrorText(s.EMPTY_STR),s.PHASE_PROCESS_RESPONSE),t(e.querySelectorAll(s.RESP_PARTIAL).isPresent(),s.ERR_NO_PARTIAL_RESPONSE,s.PHASE_PROCESS_RESPONSE)},e.raiseError=function(e,t,n,r,o){var i=null!=r?r:s.MALFORMEDXML,u=null!=o?o:s.MALFORMEDXML,l=null!=t?t:s.EMPTY_STR;return a(e,i,u,"Response",n||(arguments.caller?arguments.caller.toString():"_raiseError"),l)},e.assert=t,e.assertType=n,e.assertFunction=o}(t.Assertions||(t.Assertions={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(4),a=n(14);function s(e){var t,n,r;return null!=(r=null===(n=null===(t=e)||void 0===t?void 0:t.value)||void 0===n?void 0:n.windowId)?r:a.ExtDomquery.windowId}function u(e){var t,n;return null!=(n=null!=e?e:null===(t=window)||void 0===t?void 0:t.event)?n:{}}t.resolveHandlerFunc=function(e,t,n){return t.getIf(n).orElse(e.getIf(n).value).orElse(o.EMPTY_FUNC).value},t.resolveTargetUrl=function(e){return void 0===e.elements[o.ENCODED_URL]?e.action:e.elements[o.ENCODED_URL].value},t.resolveFinalUrl=function(e,t,n){return void 0===n&&(n=o.REQ_TYPE_POST),this.resolveTargetUrl(e.getAsElem(0).value)+(n==o.REQ_TYPE_GET?"?"+t.toString():o.EMPTY_STR)},t.resolveForm=function(e,t,n){var a,s,u,l=null!=(u=null===(s=null===(a=e.value)||void 0===a?void 0:a.myfaces)||void 0===s?void 0:s.form)?u:o.MF_NONE;return r.DQ.byId(l).orElseLazy((function(){return i.ExtLang.getForm(t.getAsElem(0).value,n)}))},t.resolveTimeout=function(e){var t,n=i.ExtLang.getLocalOrGlobalConfig;return null!=(t=e.getIf(o.CTX_PARAM_TIMEOUT).value)?t:n(e.value,o.CTX_PARAM_TIMEOUT,0)},t.resolveDelay=function(e){var t,n=i.ExtLang.getLocalOrGlobalConfig;return null!=(t=e.getIf(o.CTX_PARAM_DELAY).value)?t:n(e.value,o.CTX_PARAM_DELAY,0)},t.resolveWindowId=s,t.resolveEvent=u,t.getEventTarget=function(e){for(var t,n,r,o,i,a=this.resolveEvent(e),s=null!=(o=null!=(n=null===(t=a)||void 0===t?void 0:t.srcElement)?n:null===(r=a)||void 0===r?void 0:r.target)?o:null===(i=a)||void 0===i?void 0:i.source;s&&1!=s.nodeType;)s=s.parentNode;return s},t.resolveDefaults=function(e,t,n){var o;void 0===t&&(t={}),void 0===n&&(n=null);var i=u(e),a=new r.Config(t).deepCopy,l=r.DQ.byId(n||i.target);return{resolvedEvent:i,options:a,elem:l,elementId:l.id,requestCtx:new r.Config({}),internalCtx:new r.Config({}),windowId:s(a),isResetValues:!0===(null===(o=a.value)||void 0===o?void 0:o.resetValues)}}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(0),s=n(12),u=n(4).ExtLang.getMessage;!function(e){e.SERVER_ERROR="serverError",e.HTTP_ERROR="httpError",e.CLIENT_ERROR="clientErrror",e.TIMEOUT="timeout"}(i=t.ErrorType||(t.ErrorType={}));var l=function(e){function t(t,n,r,o,a,s,u,l){void 0===o&&(o=null),void 0===a&&(a=null),void 0===s&&(s="200"),void 0===u&&(u="UNKNOWN"),void 0===l&&(l=i.CLIENT_ERROR);var c=e.call(this)||this;return c.type="error",c.source=t,c.type="error",c.errorName=n,c.message=c.errorMessage=r,c.responseCode=s,c.responseText=o,c.status=u,c.typeDetails=l,l==i.SERVER_ERROR&&(c.serverErrorName=c.errorName,c.serverErrorMessage=c.errorMessage),c}return o(t,e),t.fromClient=function(e){return new t("client",e.name,e.message,e.stack)},t.fromHttpConnection=function(e,n,r,o,a){return new t(e,n,r,o,a,null,"UNKNOWN",i.HTTP_ERROR)},t.fromGeneric=function(e,n,r){void 0===r&&(r=i.SERVER_ERROR);var o=this.getMsg,s=o(e,a.SOURCE),u=(o(e,a.ERROR_NAME),o(e,a.ERROR_MESSAGE)),l=o(e,a.STATUS),c=o(e,a.RESPONSE_TEXT),f=o(e,a.RESPONSE_XML);return new t(s,name,u,c,f,n+a.EMPTY_STR,l,r)},t.getMsg=function(e,t){return u(e.getIf(t).orElse("UNKNOWN").value)},t.fromServerError=function(e){return this.fromGeneric(e,-1)},t}(s.EventData);t.ErrorData=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=function(){function e(){}return e.createFromRequest=function(t,n,i){var a,s,u,l,c=new e;c.type=o.EVENT,c.status=i;var f=n.getIf(o.SOURCE).orElse(n.getIf(o.P_PARTIAL_SOURCE).value).orElse(n.getIf(o.CTX_PARAM_PASS_THR,o.P_PARTIAL_SOURCE).value).value;return f&&(c.source=r.DQ.byId(f).first().value.value),i!==o.BEGIN&&(c.responseCode=null===(s=null===(a=t)||void 0===a?void 0:a.status)||void 0===s?void 0:s.toString(),c.responseText=null===(u=t)||void 0===u?void 0:u.responseText,c.responseXML=null===(l=t)||void 0===l?void 0:l.responseXML),c},e}();t.EventData=i},function(e,t,n){"use strict";var r,o,i,a=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};Object.defineProperty(t,"__esModule",{value:!0});var s,u=n(7),l=n(25),c=null!=(i=null===(o=null===(r=window)||void 0===r?void 0:r.myfaces)||void 0===o?void 0:o._impl)?i:{};!function(e){e.specversion=22e4,e.implversion=0,e.separatorchar=u.Implementation.getSeparatorChar(),e.getProjectStage=function(){return u.Implementation.getProjectStage()},e.getViewState=function(e){return u.Implementation.getViewState(e)},e.getClientWindow=function(e){return u.Implementation.getClientWindow(e)},function(e){e.request=function(e,t,n){u.Implementation.request(e,t,n)},e.response=function(e,t){u.Implementation.response(e,t)},e.addOnError=function(e){u.Implementation.addOnError(e)},e.addOnEvent=function(e){u.Implementation.addOnEvent(e)}}(e.ajax||(e.ajax={})),function(e){e.chain=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return u.Implementation.chain.apply(u.Implementation,a([e,t],n))}}(e.util||(e.util={})),function(e){e.init=function(e,t,n,r,o,i,a,s){l.PushImpl.init(e,t,n,r,o,i,a,s)},e.open=function(e){l.PushImpl.open(e)},e.close=function(e){l.PushImpl.close(e)}}(e.push||(e.push={}))}(s=t.jsf||(t.jsf={})),function(e){var t,n,r;function o(e,t,n,r,o,i){void 0===i&&(i={}),n&&(i["javax.faces.behavior.event"]=n),r&&(i.execute=r),o&&(i.render=o),s.ajax.request(e,t,i)}e._impl=c,e.ab=o,"undefined"==(null===(n=null===(t=window)||void 0===t?void 0:t.myfaces)||void 0===n?void 0:n.ab)&&(window.myfaces=null!=(r=window.myfaces)?r:{},window.myfaces.ab=o)}(t.myfaces||(t.myfaces={}))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=n(5),s=n(0),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),Object.defineProperty(t,"windowId",{get:function(){return new t(document.body).windowId},enumerable:!0,configurable:!0}),Object.defineProperty(t,"nonce",{get:function(){return new t(document.body).nonce},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"windowId",{get:function(){var e=function(){var e=window.location.href,t=new RegExp("[\\?&]windowId=([^&#\\;]*)").exec(e);return null!=t?t[1]:null};if(this.value.isPresent()){var t=this.querySelectorAll("form input[name='"+s.P_WINDOW_ID+"']");if(t.length>0)throw Error("Multiple different windowIds found in document");return t.isPresent()?t.getAsElem(0).value.value:e()}return e()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nonce",{get:function(){var e=new i.Config(window.myfaces).assign("config","cspMeta","nonce");if(e.value)return e.value;var t=new a.DQ(document.currentScript);if(null!=t.attr("nonce").value)return t.attr("nonce").value;var n=a.DQ.querySelectorAll("script[src], link[src]").lazyStream.filter((function(e){return null!=e.attr("nonce").value&&null!=e.attr("src")})).map((function(e){return!e.attr("src").value.match(/jsf\.js\?ln\=javax\.faces/gi)})).first();return n.isPresent()&&(e.value=a.DomQuery.byId(n.value).attr("nonce").value),e.value},enumerable:!0,configurable:!0}),t.searchJsfJsFor=function(e){return new t(document).searchJsfJsFor(e)},t.prototype.searchJsfJsFor=function(e){return a.DQ.querySelectorAll("script").lazyStream.filter((function(e){var t;return-1!=(t=e.attr("src").value,null!=t?t:s.EMPTY_STR).search(/\/javax\.faces\.resource.*\/jsf\.js.*separator/)})).map((function(t){var n=t.attr("src").value.match(e);return decodeURIComponent(n[1])})).first()},t.prototype.globalEval=function(t,n){return e.prototype.globalEval.call(this,t,null!=n?n:this.nonce)},t}(a.DQ);t.ExtDomquery=u,t.ExtDQ=a.DQ},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(1),u=n(1),l=a.Lang.isString,c=n(0),f=function(e){function t(t,n,r){void 0===r&&(r=!0);var o=e.call(this,{})||this;return o.dataSource=t,o.partialIdsArray=n,o.encode=r,l(t)?o.assignEncodedString(o.dataSource):o.handleFormSource(),o}return o(t,e),t.prototype.handleFormSource=function(){this.encodeSubmittableFields(this,this.dataSource,this.partialIdsArray),this.getIf(c.P_VIEWSTATE).isPresent()||this.applyViewState(this.dataSource)},t.prototype.applyViewState=function(e){var t=e.byId(c.P_VIEWSTATE).inputValue;this.assignIf(t.isPresent(),c.P_VIEWSTATE).value=t.value},t.prototype.assignEncodedString=function(e){var t=this,n=e.split(/&/gi);s.Stream.of.apply(s.Stream,n).map((function(e){return e.split(/=(.*)/gi)})).map((function(e){var t,n,r,o;return e.length<3?[(n=null===(t=e)||void 0===t?void 0:t[0],null!=n?n:[]),(o=null===(r=e)||void 0===r?void 0:r[1],null!=o?o:[])]:e})).each((function(e){var n,r,o;t.assign(e[0]).value=null!=(o=null===(r=null===(n=e)||void 0===n?void 0:n.splice(1))||void 0===r?void 0:r.join(""))?o:""}))},t.prototype.toFormData=function(){var e=new FormData;for(var t in this.value)this.value.hasOwnProperty(t)&&e.append(t,this.value[t]);return e},t.prototype.toString=function(e){if(void 0===e&&(e=c.EMPTY_STR),this.isAbsent())return e;var t=[];for(var n in this.value)this.value.hasOwnProperty(n)&&t.push(encodeURIComponent(n)+"="+encodeURIComponent(this.value[n]));return t.join("&")},t.prototype.encodeSubmittableFields=function(e,t,n){var r=null;if(this.partialIdsArray&&this.partialIdsArray.length)this._value={},r=new(u.DQ.bind.apply(u.DQ,i([void 0],this.partialIdsArray)));else{if(t.isAbsent())throw"NO_PARITEM";r=t}this.shallowMerge(r.querySelectorAll("input, checkbox, select, textarea").encodeFormElement())},Object.defineProperty(t.prototype,"isMultipartRequest",{get:function(){return this.dataSource instanceof u.DQ&&this.dataSource.querySelectorAll("input[type='file']").isPresent()},enumerable:!0,configurable:!0}),t}(a.Config);t.XhrFormData=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){var t=function(){this.projectStage=null,this.separator=null};e.ConfigHolder=t,e.config=new t}(t.myfaces||(t.myfaces={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(19),i=n(0),a=n(22);!function(e){e.processResponse=function(e,n){var s=r.Config.fromNullable(e),u=a.resolveContexts(n),l=u.externalContext,c=u.internalContext,f=a.resolveResponseXML(s),p=new o.ResponseProcessor(s,l,c);c.assign(i.RESPONSE_XML).value=f,f.querySelectorAll(i.RESP_PARTIAL).each((function(e){return function(e,n,o){o.assign(i.PARTIAL_ID).value=e.id;var a=[i.CMD_ERROR,i.CMD_REDIRECT,i.CMD_CHANGES].join(",");e.getIf(a).each((function(e){switch(e.tagName.value){case i.CMD_ERROR:n.error(e);break;case i.CMD_REDIRECT:n.redirect(e);break;case i.CMD_CHANGES:!function(e,n){var o=[i.CMD_UPDATE,i.CMD_EVAL,i.CMD_INSERT,i.CMD_DELETE,i.CMD_ATTRIBUTES,i.CMD_EXTENSION].join(",");e.getIf(o).each((function(e){switch(e.tagName.value){case i.CMD_UPDATE:!function(e,t){t.processViewState(e)||function(e,t){var n=e.cDATAAsString;switch(e.id.value){case i.P_VIEWROOT:t.replaceViewRoot(r.DQ.fromMarkup(n.substring(n.indexOf("<html"))));break;case i.P_VIEWHEAD:t.replaceHead(r.DQ.fromMarkup(n));break;case i.P_VIEWBODY:t.replaceBody(r.DQ.fromMarkup(n));break;default:t.update(e,n)}}(e,t)}(e,n);break;case i.CMD_EVAL:n.eval(e);break;case i.CMD_INSERT:t(n,e);break;case i.CMD_DELETE:n.delete(e);break;case i.CMD_ATTRIBUTES:n.attributes(e);break;case i.CMD_EXTENSION:}}))}(e,n)}}))}(e,p,c)})),p.fixViewStates(),p.globalEval(),p.done()};var t=function(e,t){t.querySelectorAll([i.TAG_BEFORE,i.TAG_AFTER].join(",")).length?e.insertWithSubtags(t):e.insert(t)}}(t.Response||(t.Response={}))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),a=n(5),s=i.Lang.isString,u=function(e){function t(t,n){void 0===n&&(n="text/xml");var r;return s(t)?e.call(this,null==(r=t)?null:i.Lang.saveResolveLazy((function(){return new window.DOMParser}),(function(){return(e=new ActiveXObject("Microsoft.XMLDOM")).async=!1,{parseFromString:function(t,n){return e.loadXML(t)}};var e})).value.parseFromString(r,n))||this:e.call(this,t)||this}return o(t,e),t.prototype.isXMLParserError=function(){return this.querySelectorAll("parsererror").isPresent()},t.prototype.toString=function(){var e=[];return this.eachElem((function(t){var n,r,o,i,a,s=null!=(i=null===(o=null===(r=null===(n=window)||void 0===n?void 0:n.XMLSerializer)||void 0===r?void 0:r.constructor())||void 0===o?void 0:o.serializeToString(t))?i:null===(a=t)||void 0===a?void 0:a.xml;s&&e.push(s)})),e.join("")},t.prototype.parserErrorText=function(e){return this.querySelectorAll("parsererror").textContent(e)},t.parseXML=function(e){return new t(e)},t.parseHTML=function(e){return new t(e,"text/html")},t.fromString=function(e,n){return void 0===n&&(n="text/xml"),new t(e,n)},t}(a.DomQuery);t.XMLQuery=u,t.XQ=u},function(e,t,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(7),a=n(9),s=n(11),u=n(21),l=n(12),c=n(0),f=o.Lang.trim,p=function(){function e(e,t,n){this.request=e,this.externalContext=t,this.internalContext=n}return e.prototype.replaceHead=function(e){var t=e.querySelectorAll(c.TAG_HEAD);t.isPresent()&&(o.DQ.querySelectorAll(c.TAG_HEAD).querySelectorAll(c.SEL_SCRIPTS_STYLES).delete(),this.storeForEval(t))},e.prototype.replaceBody=function(e){var t=e.querySelectorAll(c.TAG_BODY);if(t.isPresent()){var n=t.html().value,r=o.DQ.querySelectorAll(c.TAG_BODY).html(n),i=r.querySelectorAll(c.TAG_FORM);r.copyAttrs(t),this.storeForPostProcessing(i,r)}},e.prototype.eval=function(e){o.DQ.globalEval(e.cDATAAsString)},e.prototype.error=function(e){var t=new o.Config({});t.assign(c.SOURCE).value=this.externalContext.getIf(c.P_PARTIAL_SOURCE).get(0).value,t.assign(c.ERROR_NAME).value=e.getIf(c.ERROR_NAME).textContent(c.EMPTY_STR),t.assign(c.ERROR_MESSAGE).value=e.getIf(c.ERROR_MESSAGE).cDATAAsString;var n=this.internalContext.get(c.RESPONSE_XML).isPresent();t.assignIf(n,c.RESPONSE_XML).value=this.internalContext.getIf(c.RESPONSE_XML).value.get(0).value;var r=s.ErrorData.fromServerError(t);this.externalContext.getIf(c.ON_ERROR).orElse(this.internalContext.getIf(c.ON_ERROR).value).orElse(c.EMPTY_FUNC).value(r),i.Implementation.sendError(r)},e.prototype.redirect=function(e){a.Assertions.assertUrlExists(e);var t=f(e.attr(c.ATTR_URL).value);t!=c.EMPTY_STR&&(window.location.href=t)},e.prototype.update=function(e,t){var n,r=o.DQ.byId(e.id.value).outerHTML(t,!1,!1),i=null===(n=r)||void 0===n?void 0:n.parents(c.TAG_FORM).orElse(r.byTagName(c.TAG_FORM,!0));i&&this.storeForPostProcessing(i,r)},e.prototype.delete=function(e){o.DQ.byId(e.id.value).delete()},e.prototype.attributes=function(e){var t=o.DQ.byId(e.id.value);e.byTagName(c.TAG_ATTR).each((function(e){t.attr(e.attr(c.ATTR_NAME).value).value=e.attr(c.ATTR_VALUE).value}))},e.prototype.replaceViewRoot=function(e){this.replaceHead(e),this.replaceBody(e)},e.prototype.insert=function(e){var t=e.attr(c.TAG_BEFORE),n=e.attr(c.TAG_AFTER),r=o.DQ.fromMarkup(e.cDATAAsString);(t.isPresent()&&(o.DQ.byId(t.value).insertBefore(r),this.internalContext.assign(c.UPDATE_ELEMS).value.push(r)),n.isPresent())&&(o.DQ.byId(n.value).insertAfter(r),this.internalContext.assign(c.UPDATE_ELEMS).value.push(r))},e.prototype.insertWithSubtags=function(e){var t=this,n=e.querySelectorAll(c.TAG_BEFORE),r=e.querySelectorAll(c.TAG_AFTER);n.each((function(e){var n=e.attr(c.ATTR_ID),r=o.DQ.fromMarkup(e.cDATAAsString);n.isPresent()&&(o.DQ.byId(n.value).insertBefore(r),t.internalContext.assign(c.UPDATE_ELEMS).value.push(r))})),r.each((function(e){var n=e.attr(c.ATTR_ID),r=o.DQ.fromMarkup(e.cDATAAsString);n.isPresent()&&(o.DQ.byId(n.value).insertAfter(r),t.internalContext.assign(c.UPDATE_ELEMS).value.push(r))}))},e.prototype.processViewState=function(t){if(e.isViewStateNode(t)){var n=t.cDATAAsString;return this.internalContext.assign(c.APPLIED_VST,t.id.value).value=new u.ViewState(t.id.value,n),!0}return!1},e.prototype.globalEval=function(){var e=new(o.DQ.bind.apply(o.DQ,r([void 0],this.internalContext.getIf(c.UPDATE_ELEMS).value)));e.runCss(),e.runScripts()},e.prototype.fixViewStates=function(){var e=this;o.Stream.ofAssoc(this.internalContext.getIf(c.APPLIED_VST).orElse({}).value).each((function(t){var n=t[1],r=o.DQ.byId(n.nameSpace).orElse(document.body),i=r.byTagName(c.TAG_FORM),a=r.filter((function(e){return e.tagName.orElse(c.EMPTY_STR).value.toLowerCase()==c.TAG_FORM}));e.appendViewStateToForms(new o.DomQuery(i,a),n.value)}))},e.prototype.done=function(){var e=l.EventData.createFromRequest(this.request.value,this.externalContext,c.SUCCESS),t=this.externalContext.getIf(c.ON_EVENT).orElse(this.internalContext.getIf(c.ON_EVENT).value).orElse(c.EMPTY_FUNC).value;i.Implementation.sendEvent(e,t)},e.prototype.appendViewStateToForms=function(t,n){t.each((function(t){t.querySelectorAll(c.SEL_VIEWSTATE_ELEM).orElseLazy((function(){return e.newViewStateElement(t)})).attr("value").value=n}))},e.newViewStateElement=function(e){var t=o.DQ.fromMarkup(c.HTML_VIEWSTATE);return t.appendTo(e),t},e.prototype.storeForPostProcessing=function(e,t){this.storeForUpdate(e),this.storeForEval(t)},e.prototype.storeForUpdate=function(e){this.internalContext.assign(c.UPDATE_FORMS).value.push(e)},e.prototype.storeForEval=function(e){this.internalContext.assign(c.UPDATE_ELEMS).value.push(e)},e.isViewStateNode=function(e){var t,n,r,o,i,a,s,u,l,f,p=window.jsf.separatorchar;return void 0!==(null===(n=null===(t=e)||void 0===t?void 0:t.id)||void 0===n?void 0:n.value)&&((null===(o=null===(r=e)||void 0===r?void 0:r.id)||void 0===o?void 0:o.value)==c.P_VIEWSTATE||-1!=(null===(s=null===(a=null===(i=e)||void 0===i?void 0:i.id)||void 0===a?void 0:a.value)||void 0===s?void 0:s.indexOf([p,c.P_VIEWSTATE].join(c.EMPTY_STR)))||-1!=(null===(f=null===(l=null===(u=e)||void 0===u?void 0:u.id)||void 0===l?void 0:l.value)||void 0===f?void 0:f.indexOf([c.P_VIEWSTATE,p].join(c.EMPTY_STR))))},e}();t.ResponseProcessor=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){this.MSG_TEST="Testmessage",this.MSG_DEV_MODE="Note, this message is only sent, because project stage is development and no other error listeners are registered.",this.MSG_AFFECTED_CLASS="Affected Class=",this.MSG_AFFECTED_METHOD="Affected Method=",this.MSG_ERROR_NAME="Error Name=",this.MSG_ERROR_MESSAGE="Error Message=",this.MSG_SERVER_ERROR_NAME="Server Error Name=",this.MSG_ERROR_DESC="Error Description=",this.MSG_ERROR_NO="Error Number=",this.MSG_ERROR_LINENO="Error Line Number=",this.ERR_FORM="Sourceform could not be determined, either because element is not attached to a form or we have multiple forms with named elements of the same identifier or name, stopping the ajax processing",this.ERR_VIEWSTATE="jsf.viewState= param value not of type form!",this.ERR_TRANSPORT="Transport type {0} does not exist",this.ERR_EVT_PASS="an event must be passed down (either a an event object null or undefined) ",this.ERR_CONSTRUCT="Parts of the response couldn't be retrieved when constructing the event data= {0} ",this.ERR_MALFORMEDXML="The server response could not be parsed, the server has returned with a response which is not xml !",this.ERR_SOURCE_FUNC="source cannot be a function (probably source and event were not defined or set to null",this.ERR_EV_OR_UNKNOWN="An event object or unknown must be passed as second parameter",this.ERR_SOURCE_NOSTR="source cannot be a string",this.ERR_SOURCE_DEF_NULL="source must be defined or null",this.ERR_MUST_STRING="{0}: {1} namespace must be of type String",this.ERR_REF_OR_ID="{0}: {1} a reference node or identifier must be provided",this.ERR_PARAM_GENERIC="{0}: parameter {1} must be of type {2}",this.ERR_PARAM_STR="{0}: {1} param must be of type string",this.ERR_PARAM_STR_RE="{0}: {1} param must be of type string or a regular expression",this.ERR_PARAM_MIXMAPS="{0}: both a source as well as a destination map must be provided",this.ERR_MUST_BE_PROVIDED="{0}: an {1} and a {2} must be provided",this.ERR_MUST_BE_PROVIDED1="{0}: {1} must be set",this.ERR_REPLACE_EL="replaceElements called while evalNodes is not an array",this.ERR_EMPTY_RESPONSE="{0}: The response cannot be null or empty!",this.ERR_ITEM_ID_NOTFOUND="{0}: item with identifier {1} could not be found",this.ERR_PPR_IDREQ="{0}: Error in PPR Insert, id must be present",this.ERR_PPR_INSERTBEFID="{0}: Error in PPR Insert, before id or after id must be present",this.ERR_PPR_INSERTBEFID_1="{0}: Error in PPR Insert, before node of id {1} does not exist in document",this.ERR_PPR_INSERTBEFID_2="{0}: Error in PPR Insert, after node of id {1} does not exist in document",this.ERR_PPR_DELID="{0}: Error in delete, id not in xml markup",this.ERR_PPR_UNKNOWNCID="{0}: Unknown Html-Component-ID= {1}",this.ERR_NO_VIEWROOTATTR="{0}: Changing of ViewRoot attributes is not supported",this.ERR_NO_HEADATTR="{0}: Changing of Head attributes is not supported",this.ERR_RED_URL="{0}: Redirect without url",this.ERR_REQ_FAILED_UNKNOWN="Request failed with unknown status",this.ERR_REQU_FAILED="Request failed with status {0} and reason {1}",this.UNKNOWN="UNKNOWN"};t.Messages=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(e,t){this.id=e,this.value=t;var n=e.indexOf(r.P_VIEWSTATE);this.nameSpace=n>0?e.substr(0,n-1):r.EMPTY_STR}return Object.defineProperty(e.prototype,"hasNameSpace",{get:function(){var e;return!!(e=null===this||void 0===this?void 0:this.nameSpace,null!=e?e:r.EMPTY_STR).length},enumerable:!0,configurable:!0}),e}();t.ViewState=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(9),i=n(1),a=n(0);t.resolveResponseXML=function(e){var t=new r.XMLQuery(e.getIf(a.SEL_RESPONSE_XML).value);return o.Assertions.assertValidXMLResponse(t),t},t.resolveContexts=function(e){var t=r.Config.fromNullable(e),n=t.getIf(a.CTX_PARAM_MF_INTERNAL);return n.isPresent()||(n=r.Config.fromNullable({})),n.assign(a.UPDATE_FORMS).value=[],n.assign(a.UPDATE_ELEMS).value=[],{externalContext:t,internalContext:n}},t.resolveSourceElement=function(e,t){var n=function(e,t){return t.getIf(a.CTX_PARAM_SRC_CTL_ID).orElseLazy((function(){return e.getIf(a.SOURCE,"id").value}))}(e,t);return i.DQ.byId(n.value)},t.resolveSourceForm=function(e,t){var n=e.getIf(a.CTX_PARAM_SRC_FRM_ID),r=new i.DQ(n.isPresent()?document.forms[n.value]:null);return r=r.orElse(t.parents(a.TAG_FORM)).orElse(t.querySelectorAll(a.TAG_FORM)).orElse(i.DQ.querySelectorAll(a.TAG_FORM))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(7),i=n(15),a=n(11),s=n(12),u=n(4),l=n(0),c=n(10),f=u.ExtLang.failSaveExecute,p=function(){function e(e,t,n,r,o,i,a,s,u){var c=this;void 0===o&&(o=[]),void 0===i&&(i=l.NO_TIMEOUT),void 0===a&&(a=l.REQ_TYPE_POST),void 0===s&&(s=l.URL_ENCODED),void 0===u&&(u=new XMLHttpRequest),this.source=e,this.sourceForm=t,this.requestContext=n,this.internalContext=r,this.partialIdsArray=o,this.timeout=i,this.ajaxType=a,this.contentType=s,this.xhrObject=u,this.stopProgress=!1,this.catchFuncs=[],this.thenFunc=[],this.registerXhrCallbacks((function(e){c.resolve(e)}),(function(e){c.reject(e)}))}return e.prototype.start=function(){var e=this,t=f,n=this.xhrObject;try{var r=jsf.getViewState(this.sourceForm.getAsElem(0).value),o=new i.XhrFormData(decodeURIComponent(r));this.contentType=o.isMultipartRequest?l.MULTIPART:this.contentType;var a=this.requestContext,s=a.getIf(l.CTX_PARAM_PASS_THR);o.shallowMerge(s),this.responseContext=s.deepCopy;var u=this.responseContext;u.assign(l.CTX_PARAM_MF_INTERNAL).value=this.internalContext.value,u.assign(l.ON_EVENT).value=a.getIf(l.ON_EVENT).value,u.assign(l.ON_ERROR).value=a.getIf(l.ON_ERROR).value,n.open(this.ajaxType,c.resolveFinalUrl(this.sourceForm,o,this.ajaxType),!0),this.timeout&&(n.timeout=this.timeout),t((function(){return n.setRequestHeader(l.CONTENT_TYPE,e.contentType+"; charset=utf-8")})),t((function(){return n.setRequestHeader(l.HEAD_FACES_REQ,l.VAL_AJAX)})),t((function(){return n.setRequestHeader(l.REQ_ACCEPT,l.STD_ACCEPT)})),this.sendEvent(l.BEGIN),this.sendRequest(o)}catch(e){this.handleError(e)}return this},e.prototype.cancel=function(){try{this.xhrObject.abort()}catch(e){this.handleError(e)}},e.prototype.resolve=function(e){r.Stream.of.apply(r.Stream,this.thenFunc).reduce((function(e,t){return t(e)}),e)},e.prototype.reject=function(e){r.Stream.of.apply(r.Stream,this.catchFuncs).reduce((function(e,t){return t(e)}),e)},e.prototype.catch=function(e){return this.catchFuncs.push(e),this},e.prototype.finally=function(e){return this.catchFuncs.push(e),this.thenFunc.push(e),this},e.prototype.then=function(e){return this.thenFunc.push(e),this},e.prototype.registerXhrCallbacks=function(e,t){var n=this,r=this.xhrObject;r.onabort=function(){n.onAbort(e,t)},r.ontimeout=function(){n.onTimeout(e,t)},r.onload=function(){n.onSuccess(n.xhrObject,e,t)},r.onloadend=function(){n.onDone(n.xhrObject,e,t)},r.onerror=function(r){n.onError(r,e,t)}},e.prototype.onAbort=function(e,t){t()},e.prototype.onTimeout=function(e,t){this.sendEvent(l.STATE_EVT_TIMEOUT),t()},e.prototype.onSuccess=function(e,t,n){var r,o;this.sendEvent(l.COMPLETE),(null===(r=null===this||void 0===this?void 0:this.xhrObject)||void 0===r?void 0:r.responseXML)?jsf.ajax.response(this.xhrObject,null!=(o=this.responseContext.value)?o:{}):this.handleMalFormedXML(t)},e.prototype.handleMalFormedXML=function(e){var t;this.stopProgress=!0;var n={type:l.ERROR,status:l.MALFORMEDXML,responseCode:200,responseText:null===(t=this.xhrObject)||void 0===t?void 0:t.responseText,source:{id:this.source.id.value}};try{o.Implementation.sendError(n)}finally{e(n)}},e.prototype.onDone=function(e,t,n){this.stopProgress||t(e)},e.prototype.onError=function(e,t,n){this.handleError(e),n()},e.prototype.sendEvent=function(e){var t=s.EventData.createFromRequest(this.xhrObject,this.requestContext,e);try{var n=c.resolveHandlerFunc(this.requestContext,this.responseContext,l.ON_EVENT);o.Implementation.sendEvent(t,n)}catch(e){throw this.handleError(e),e}},e.prototype.handleError=function(e){var t=a.ErrorData.fromClient(e),n=c.resolveHandlerFunc(this.requestContext,this.responseContext,l.ON_ERROR);o.Implementation.sendError(t,n)},e.prototype.sendRequest=function(e){var t=this.ajaxType!=l.REQ_TYPE_GET;e.isMultipartRequest?this.xhrObject.send(t?e.toFormData():null):this.xhrObject.send(t?e.toString():null)},e}();t.XhrRequest=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.runnableQueue=[]}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return!this.runnableQueue.length},enumerable:!0,configurable:!0}),e.prototype.enqueue=function(e,t){var n=this;void 0===t&&(t=0),this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null),t?this.delayTimeout=setTimeout((function(){n.appendElement(e)})):this.appendElement(e)},e.prototype.dequeue=function(){return this.runnableQueue.shift()},e.prototype.cleanup=function(){this.currentlyRunning=null,this.runnableQueue.length=0},e.prototype.appendElement=function(e){this.runnableQueue.push(e),this.currentlyRunning||this.runEntry()},e.prototype.runEntry=function(){var e=this;this.isEmpty?this.currentlyRunning=null:(this.currentlyRunning=this.dequeue(),this.currentlyRunning.catch((function(t){throw e.cleanup(),t})).then((function(){return e.callForNextElementToProcess()})).start())},e.prototype.cancel=function(){try{this.currentlyRunning&&this.currentlyRunning.cancel()}finally{this.cleanup()}},e.prototype.callForNextElementToProcess=function(){this.runEntry()},e.prototype.processNextElement=function(){this.currentlyRunning=null,this.isEmpty||this.runEntry()},e.EVT_NEXT="__mf_queue_next__",e}();t.AsynchronouseQueue=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(13),o=n(0);!function(e){var t=window.location.protocol.replace("http","ws")+"//";e.sockets={},e.components={},e.clientIdsByTokens={},e.reset=function(){e.sockets={},e.components={},e.clientIdsByTokens={}},e.init=function(o,i,s,u,l,c,f,p){if(c=a(c),window.WebSocket){var h=i.substr(i.indexOf("?")+1);e.components[o]||(e.components[o]={channelToken:h,onopen:a(u),onmessage:a(l),onclose:c,behaviors:f,autoconnect:p},e.clientIdsByTokens[h]||(e.clientIdsByTokens[h]=[]),e.clientIdsByTokens[h].push(o),e.sockets[h]||(e.sockets[h]=new n(h,function(e){if(e.indexOf("://")<0){var n=window.location.hostname+":"+window.location.port;return t+n+e}return e}(i),s))),p&&r.jsf.push.open(o)}else c(-1,s)},e.open=function(t){var n,r;i(null===(r=null===(n=e.components)||void 0===n?void 0:n[t])||void 0===r?void 0:r.channelToken).open()},e.close=function(t){var n;i(null===(n=e.components)||void 0===n?void 0:n[t].channelToken).close()};var n=function(){function t(e,t,n){this.channelToken=e,this.url=t,this.channel=n,this.reconnectAttempts=0}return t.prototype.open=function(){this.socket&&1==this.socket.readyState||(this.socket=new WebSocket(this.url),this.bindCallbacks())},t.prototype.onopen=function(t){if(!this.reconnectAttempts)for(var n=e.clientIdsByTokens[this.channelToken],r=n.length-1;r>=0;r--){var o=n[r];e.components[o].onopen(this.channel)}this.reconnectAttempts=0},t.prototype.onmmessage=function(t){for(var n=JSON.parse(t.data),r=e.clientIdsByTokens[this.channelToken].length-1;r>=0;r--){var o=e.clientIdsByTokens[this.channelToken][r];if(document.getElementById(o)){try{e.components[o].onmessage(n,this.channel,t)}catch(e){}var i=e.components[o].behaviors[n];if(i&&i.length)for(var a=0;a<i.length;a++)try{i[a](null)}catch(e){}}else e.clientIdsByTokens[this.channelToken].splice(r,1)}0==e.clientIdsByTokens[this.channelToken].length&&this.close()},t.prototype.onclose=function(t){var n;if(!this.socket||1e3==t.code&&t.reason==o.REASON_EXPIRED||1008==t.code||!this.reconnectAttempts||this.reconnectAttempts>=o.MAX_RECONNECT_ATTEMPTS)for(var r=e.clientIdsByTokens[this.channelToken],i=r.length-1;i>=0;i--){var a=r[i];e.components[a].onclose(null===(n=t)||void 0===n?void 0:n.code,null===this||void 0===this?void 0:this.channel,t)}else setTimeout(this.open,o.RECONNECT_INTERVAL*this.reconnectAttempts++)},t.prototype.close=function(){if(this.socket){var e=this.socket;this.socket=null,e.close()}},t.prototype.bindCallbacks=function(){var e=this;this.socket.onopen=function(t){return e.onopen(t)},this.socket.onmessage=function(t){return e.onmmessage(t)},this.socket.onclose=function(t){return e.onclose(t)}},t}();function i(t){var n=e.sockets[t];if(n)return n;throw new Error("Unknown channelToken: "+t)}function a(e){return void 0===e&&(e=function(){}),"function"!=typeof e&&(e=window[e]),e}}(t.PushImpl||(t.PushImpl={}))}]));
//# sourceMappingURL=jsf.js.map
//# sourceMappingURL=jsf.js.map.jsf?ln=scripts