diff --git a/public/js/cdn.min.js b/public/js/cdn.min.js index 20f6b75..a8be4c2 100644 --- a/public/js/cdn.min.js +++ b/public/js/cdn.min.js @@ -13,7 +13,7 @@ if (typeof(module)=='object'){window.module=module;module=undefined} !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.0",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,D=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",y.option=!!ce.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n",""]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var _t,zt=[],Ut=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||S.expando+"_"+wt.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Ut.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ut,"$1"+r):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,zt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((_t=E.implementation.createHTMLDocument("").body).innerHTML="
",2===_t.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=Fe(y.pixelPosition,function(e,t){if(t)return t=We(e,n),Pe.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0&"]/g;var o=/\n$/g;function w(e,r){var t='';var n=[];var i=0;for(var a=0;a47&&l<58||l>64&&l<91||l>96&&l<123||(l===95||l===36)){t+=e.charAt(a);continue}if(t){if(!s[t]&&n.indexOf(t)===-1&&(!r||r.indexOf(t)===-1))n.push(t);t=''}}if(l===46||l===124){i=l}else if((i===46||i===124)&&l===40){i=0}else if(l===96||l===34||l===39){if(l===i)i=0;else i=l}}if(t&&!s[t]&&n.indexOf(t)===-1&&(!r||r.indexOf(t)===-1))n.push(t);return n}t.toArray=function(e){var r=Object.keys(e);var t=[];for(var n=0,i=r.length;n':return'>';case'"':return'"'}return e})};v.raw=function(e){return e};t.render=function(e,r,t,n){var e=(new i).compile(e);return e(r==null?{}:r,t,n)};t.compile=function(e,r,t){return(new i).compile(e,r,t)};t.register=function(e,r){v[e]=r;return t}})(window); Thelpers.pluralize=function(r,e,t,a,n){return r||(r=0),'number'!=typeof r&&(r=parseFloat(r.toString().replace(/\s/g,'').replace(',','.'))),r.pluralize(e,t,a,n)},Thelpers.format=function(r,e,t,a){var n=typeof r;if(r==null)return'';if('number'===n||r instanceof Date)return r.format(e==null?null:e,t,a);'string'!==n&&(r=r.toString()),r=r.trim();for(var i=!1,o=0,f=0,u=0,l=r.length;l>u;u++){var g=r.charCodeAt(u);if(58===g||32===g||84===g){i=!0;break}if(45===g){if(o++,1===o)continue;i=!0;break}if(46===g){if(f++,1===f)continue;i=!0;break}}return i?r.parseDate().format(e||'dd.MM.yyyy'):r.parseFloat().format(e,t,a)};Thelpers.def=Thelpers.empty=function(e,n){return e?Thelpers.encode(e):n||DEF.empty};Thelpers.currency=function(e,t){switch(typeof e){case'number':return e.currency(t);case'string':return e.parseFloat().currency(t);default:return''}};Thelpers.cl=function(id,name,key){var cl=DEF.cl[name];return cl instanceof Array?cl.findValue('id',id,key||'name',key?'':DEF.empty):(key?'':DEF.empty)};Thelpers.clicon=function(id,name,key){var cl=DEF.cl[name];var item = cl instanceof Array?cl.findItem('id',id):null;return item?((item.icon?(''):'')+(item[key||'name']||'')):''}; -!function(){function c(e,t){return e||t?!e&&t?1:e&&!t?-1:-1*(ce.Intl?ce.Intl.Collator().compare(e,t):(e+'').localeCompare(t+'')):0}function r(){for(var e=Q(We),t=0;tNOW?We[n]=r:delete We[n]}ce.PREF.save(We)}function E(e){if(e=typeof e===se?PARSE(e):e){var t=!1;for(r in e){var n=e[r];n&&n.expire>NOW?(We[r]=n,ze[r]||(ce.PREF[r]=n.value)):t=!0}if(We.PATHS)for(var r in We.PATHS)le.set(r,We.PATHS[r],!0);t&&setTimeout2('PREF',ce.PREF.save,1e3,null,We)}le.loaded=!0,Ue=1;for(var i of st)ce.PLUGIN(i.name,i.fn);for(var a of ct)cn(a);for(var o of ft)Vr(o);for(var s of ut)NEWUIBIND(s.el,s.path,s.config);st.length=0,ct.length=0,ft.length=0,ut.length=0,NOTIFY('PREF'),on()}var a=/GET|POST|PATCH|PUT|DELETE\s/,p=/(data--|data---|data-import|-bind|bind)=|COMPONENT\(/,l=/)<[^<]*)*<\/script>|)<[^<]*)*<\/style>/gi,i=/)<[^<]*)*<\/style>/gi,t=/(\[.*?\])/gi,n=/\{{1,2}[a-z0-9_.-\s]+\}{1,2}/gi,o=/,/g,s=/[^a-zA-Zá-žÁ-Žа-яА-Я\d\s:]/g,u=/[a-z0-9_-]+\/[a-z0-9_]+\(|(^|(?=[^a-z0-9]))@[a-z0-9-_]+\./i,re=/_{2,}/,O=/\s(repeat|cancel|urlencoded|json|noencrypt|nodecrypt|nocsrf|error|#[a-z0-9_-]+|@[a-z0-9_-]+)/gi,ie=/^[^a-z0-9.]/,f=/\.\*/,d=/\[\d+\]$/,g=/\?/g,ae=/\?\/|\?\./,v=/\?\//g,h=/^(-)?[0-9.]+$/,m=/\s@[a-z0-9]+/gi,b=/\s#[a-z0-9_-]+/gi,y='---',T='--',w='data-',oe='ui-component,[data--],[data'+y+']',x='ui-bind,[data-bind],[bind]',k='data-jc-bind',he='jc',I=w+'jc-removed',N={225:'a',228:'a',269:'c',271:'d',233:'e',283:'e',357:'t',382:'z',250:'u',367:'u',252:'u',369:'u',237:'i',239:'i',244:'o',243:'o',246:'o',353:'s',318:'l',314:'l',253:'y',255:'y',263:'c',345:'r',341:'r',328:'n',337:'o'},D={INPUT:!0,TEXTAREA:!0,SELECT:!0},C={value:null},S=/\s\+\s|\s/,R='scope',M='plugin',L=w+''+R,F=w+''+M,ee='function',se='string',P='number',de='object',j='boolean',pe='null',H='env',W=/am|pm/i,z='x-csrf-token',me='BODY',ge='path',ve='disabled',be='hidden',$e='width',ye='height',Ee='checked',Te='value',Ae='resize',U='false',we='true',G='response',Y='valid',X='dirty',_='bind',xe='template',ke='vbindarray',Ie='script',B='PATHS',Oe='class',Ne='html',De='config',Ce='default',V='jc-compile',Se='import',J='jctmp.',Re='click',q='ERR_CONNECTION_CLOSED',Q=Object.keys,K={':':1,'"':1,'[':1,']':1,'\'':1,_:1,'{':1,'}':1,'&':1,'=':1,'+':1,'-':1,'\\':1,'/':1,',':1},Z=!1,ce=window,Me=document,Le=$(ce),Fe=function(e){ce.console&&ce.console.error(e)},Pe=function(e,t){return e||t?!e&&t?-1:e&&!t?1:ce.Intl?ce.Intl.Collator().compare(e,t):(e+'').localeCompare(t+''):0},je={},le={},He=ce.localStorage,We={},ze={set:1,get:1,save:1,load:1,keys:1},Ue=0,Ge=ce.WARN=function(){ce.console&&ce.console.warn.apply(ce.console,arguments)},Ye=(ce.VISIBLE=function(e,t,n){if((e=e instanceof jQuery?e[0]:e).parentNode&&e.parentNode.tagName!==me)if(ce.isIE){if(!e.offsetWidth&&!e.offsetHeight)return!1}else if(!e.offsetParent)return!1;t=t||0,n=n||'visible';var e=e.getBoundingClientRect(),r=Math.max(document.documentElement.clientHeight,ce.innerHeight),i=e.bottom-t<0,e=0<=e.top-r+t;return'above'===n?i:'below'===n?e:!i&&!e},ce.STOPDEBUG=function(){!function t(){try{!function e(t){1===(''+t/t).length&&t%20!=0||!function(){}.constructor('debugger')(),e(++t)}(0)}catch(e){setTimeout(t,5e3)}}()},ce.HIDDEN=function(e){return null==e||(!(e=e instanceof jQuery?e[0]:e).parentNode||e.parentNode.tagName!==me)&&(ce.isIE?!e.offsetWidth&&!e.offsetHeight:!e.offsetParent)},ce.LOCALIZE=function(e){for(var t=e.split('\n'),n=0;nNOW?n.value:void 0;return t&&void 0!==n&&Ye.set(e,n,t),n},set:function(e,t,n){return void 0===t?(delete We[e],ze[e]||delete ce.PREF[e]):(We[e]={value:t,expire:NOW.add(n||'1 month')},ze[e]||(ce.PREF[e]=t)),NOTIFY('PREF.'+e),setTimeout2('PREF',r,fe.delaypref),t},keys:function(){return Q(We)},load:function(e){e(!ce.isPRIVATEMODE&&PARSE(He.getItem(fe.localstorage+'.pref')))},save:function(e){ce.isPRIVATEMODE||He.setItem(fe.localstorage+'.pref',STRINGIFY(e))}});ce.jctmp={},(ce.W=ce).FUNC={},ce.REPO={};try{var e='jc.test';He.setItem(e,'1'),ce.isPRIVATEMODE='1'!==He.getItem(e),He.removeItem(e)}catch(e){ce.isPRIVATEMODE=!0,Ge('jC: localStorage is disabled')}var Xe,_e,Be=null,Ve={},Je={},qe={},Qe=[],Ke={},Ze={$:0},et=[],tt={},ue={},nt=[],rt={},it=[],at={},ot=[],st=[],ct=[],lt={},ut=[],ft=[],ht={},dt={},pt={},mt={},gt={},vt=setTimeout(an,2),bt=!1,$t=!1,yt=0,Et=0,Tt={},At=[],wt={},xt={},kt={},It=[],Ot=[],Nt=null,Dt=null,Ct=null,te=null,St=null,fe=(ce.MAIN=ce.M=le,ce.TEMP={},ce.PLUGINS={},ce.EMPTYARRAY=[],ce.EMPTYOBJECT={},ce.NOW=new Date,ce.DEFAULT=function(e,t,n){var r,i,a=e.split(re);1'),n=2),-1!==t&&-1!==e.indexOf('/')&&-1===e.indexOf('(')&&(e+='(value)'),e.substring(t+n).trim()),i=!1;return-1!==r.indexOf('?/')&&(n=r.indexOf('('),r='(value,path,type,scope)=>scope?scope.$format(\''+r.substring(2,n)+'\')'+r.substring(n)+':value',i=!0),-1===t?null:{path:e.substring(0,t).trim(),fn:FN(r),scope:i}}function Ut(e,t){if(typeof t===se){var n={};for(r of t.split(','))n[r.trim()]=1;t=n}else if(t instanceof Array){var r,n={};for(r of t)n[r='@'===r.charAt(0)?r.substring(1):r]=1;t=n}for(var i=e.lastIndexOf('.*'),a=(e=Qt(e=-1!==i?e.substring(0,i):e,0,1),[]),o=le.components,s=0;se.length){for(var n=0;nt.length)for(var a=u.items.splice(t.length),i=0;isetTimeout(u,r||0)):setTimeout(u,r||0))},ce.UNWATCH=function(e,t){if(S.test(e))for(var n=e.split(S).trim(),r=0;r/,function(e){return t=e.substring(1,e.length-1).trim(),''}).trim()).charAt(0),n='once '===a.substring(0,5).toLowerCase();if(typeof o===ee?(typeof s===ee?(l=s,c=!0):typeof c===ee&&(l=c,c=!0),s=o,o='body'):typeof c===ee&&(l=c,c=!0),t){var r='()'===t.substring(t.length-2),i=(r&&(t=t.substring(0,t.length-2)),GET(t));if(r&&typeof i===ee){if(i())return void(s&&s(0))}else if(i)return void(s&&s(0))}r=(a='//'===a.substring(0,2)?location.protocol+a:a).lastIndexOf(' .'),i='';if(-1!==r&&(i=a.substring(r).trim().toLowerCase(),a=a.substring(0,r).trim()),'!'===e||n){if(a=n?a.substring(5):a.substring(1),pt[a])return void(s&&(2===pt[a]?s(0):WAIT(function(){return 2===pt[a]},function(){s(0)})));pt[a]=1}o=(o=o&&o.setPath?o.element:o)||'body',i||(-1!==(r=a.lastIndexOf('?'))?-1!==(e=a.lastIndexOf('.',r))&&(i=a.substring(e,r).toLowerCase()):-1!==(r=a.lastIndexOf('.'))&&(i=a.substring(r).toLowerCase()));n=Me;return'.js'===i?((e=n.createElement(Ie)).type='text/java'+Ie,e.async=!1,e.onload=function(){pt[a]=2,s&&s(1),ce.jQuery&&setTimeout(on,300)},e.src=dn(a,!0),n.getElementsByTagName('head')[0].appendChild(e),ue.import&&EMIT(Se,a,$(e)),void(DEF.monitor&&ne('requests'))):'.css'===i?((r=n.createElement('link')).type='text/css',r.rel='stylesheet',r.href=dn(a,!0),r.onload=function(){s&&setTimeout(s,2,1)},n.getElementsByTagName('head')[0].appendChild(r),pt[a]=2,ue.import&&EMIT(Se,a,$(r)),void(DEF.monitor&&ne('requests'))):void WAIT(function(){return!!ce.jQuery},function(){pt[a]=2;function e(e,t,n){if(e){if(typeof e!==se)return WARN('jC: invalid response for IMPORT("{0}")'.format(a),e),void(s&&s(0));a='$import'+a,e=ADAPT(null,null,e),l&&(e=l(e,n));var r=p.test(e);e=yn(En(e,i)).trim(),o=$(o),e&&(Dt=o[0],!1===c?o.html(e):o.append(e),Dt=null),setTimeout(function(){r&&on(),s&&WAIT(function(){return 0==je.is},function(){s(1)}),ue.import&&EMIT(Se,a,o)},10)}else s&&s(0)}var i=Se+HASH(a);u?AJAXCACHE('GET '+a,null,e,u):AJAX('GET '+a,e)})},ce.IMPORT=function(e,n,t,r,i){var a;e instanceof Array?(typeof n===ee&&(i=r,r=t,t=n,n=null),a=te,e.wait(function(e,t){te=a,IMPORTCACHE(e,null,n,t,r,i)},function(){te=a,t&&t()})):IMPORTCACHE(e,null,n,t,r,i)},ce.CACHEPATH=function(r,i,e,a){var t=r.split(re),o=(r=Qt(t[0],1),t[1]&&(t[1]=new Function('return '+t[1])),!1);WATCH(r,function(e,t){var n;o||((n=a?ce.PREF.get(B):hn(B))?n[r]=t:(n={})[r]=t,a?ce.PREF.set(B,t,i):hn(B,n,i))}),void 0!==e&&!e||(o=!0,(e=a?ce.PREF.get(B):hn(B))&&void 0!==e[r]?e[r]!==kn(r)&&le.set(r,e[r],!0):t[1]&&le.set(r,t[1](),!0),o=!1)},ce.CACHE=hn,ce.SCROLLBARWIDTH=function(){var e='jcscrollbarwidth';if(null!=Be)return Be;var t=Me.body,e=($(t).append('
'.format(e,':100px;',':9999px;')),Me.getElementById(e));return e&&(Be=e.offsetWidth-e.clientWidth,t.removeChild(e)),Be||0},ce.REMOVECACHE=function(e,t){if(t)for(var n in Je)-1!==n.indexOf(e)&&delete Je[e];else delete Je[e];Sn()},ce.AJAXCONFIG=function(e,t){gt[e]=t},ce.ASETTER=function(){for(var t=[],e=0;e/,function(e){return i=e.replace(/<|>/g,''),''}),i?AJAXCACHE(s,c,l,i):(s=s.replace(/\ssync/i,function(){return r=!0,''}),r&&Et?setTimeout(function(e,t,n,r){ce.AJAX.call(ce,e,t,n,r)},fe.delay,n,c,l,e):(f=null,T=E=y=b=v=u=g=!1,o=!(a=[]),A=[],s=s.replace(O,function(e){var t=e.charAt(1),n=t.toLowerCase();return'#'===t?(f=e.substring(2),le.cl[f]&&(A.push(f),f='')):'@'===t?a.push(e.substring(2)):'r'===n?g=!0:'u'===n?b=!0:'j'===n?v=!0:'e'===n?o=!0:'n'===n?'noc'===(t=e.substring(1,4).toLowerCase())?T=!0:'noe'===t?y=!0:E=!0:u=!0,''}),l&&o&&(l=ERROR(!0,l)),g&&(m=[n,c,l,e]),h=s.substring(0,t).toUpperCase(),(w='!'===h.charAt(0))?h=h.substring(1):w=fe.ajaxcredentials,x={},(n=s.match(/\{.*?\}/g))&&(s=s.replace(n,'').replace(/\s{2,}/g,' '),typeof(n=new Function('return '+n)())==de&&(x=n)),s=s.substring(t).trim().$env(),d=f||h+' '+s,u&&Ke[d]&&(Ke[d].output.cancel=!0,Ke[d].xhr.abort()),k=te,Et++,a.length&&qt(a,s,c),I=function(){'GET'!==h||!c||(i=typeof c===se?c:function(e){for(var t=Object.keys(e),n=[],r=0;rsetTimeout(I,e||0)):setTimeout(I,e||0))))},ce.AJAXCACHEREVIEW=function(e,t,n,r,i,a){return AJAXCACHE(e,t,n,r,i,a,!0)},ce.AJAXCACHE=function(t,r,i,a,e,o,u){var s,c,l,n=typeof r,n=((n===ee||n===se&&typeof i===se&&typeof a!==se)&&(o=e,e=a,a=i,i=r,r=null),typeof e==j&&(o=!0===e,e=0),t.indexOf(' '));-1!==n&&(s=t.substring(0,n).toUpperCase(),c=t.substring(n).trim().$env(),l=te,setTimeout(function(){var n,e=o?void 0:fn(s,c,r,void 0,a);if(void 0!==e)return n=u?STRINGIFY(e):null,te=l,typeof i===se?Tn(i,e):i(e,!0),u&&!1!==navigator.onLine?(te=l,void AJAX(t,r,function(e,t){t&&(e=t),te=l,n!==STRINGIFY(e)&&(t||fn(s,c,r,e,a),typeof i===se?Tn(i,e):i(e,!1,!0))})):void 0;te=l,AJAX(t,r,function(e,t){t&&(e=t),te=l,t||fn(s,c,r,e,a),typeof i===se?Tn(i,e):i(e,!1)})},e||1))},ce.CLEARCACHE=function(){var e,t;ce.isPRIVATEMODE||((e=He.removeItem)(t=fe.localstorage),e(t+'.cache'),e(t+'.blocked'))},ce.ERROR=function(e,n,r){if(typeof e===ee&&(r=n,n=e,e=!0),!0!==e){if(e)if(e instanceof Error||(e instanceof Array&&e.length?null!=e[0].error:null!=e.error))return ue.ERROR&&EMIT('ERROR',e),r&&ce.SEEX(r,e),!0;return n&&ce.SEEX(n,e),!1}var i=te;return function(e,t){te=i,ce.ERROR(e=(!e||typeof e===se)&&0le.extend(u.flags.extend?i:i.substring(1),a,o)):(s=u.pathmaker?Qt(u.path):u.path)&&(c=!(typeof a!=de||null==a||a instanceof Array||a instanceof Date),(l=!0===o)&&(o=1),CL(u.cl,function(){if(u.flags.diff){var e=kn(s);if(HASH(e)===HASH(a))return}if(An(s,a,null,o),c)return le.update(i,l,o,!0);DEF.monitor&&ne('set');var t,n=kn(s),r=[];u.flags2&&qt(u,s,n,o),void 0===o&&(o=1),null!=u.flags.type&&(o=u.flags.type);for(t of Ut(s)){if(u.flags.default&&t.$default)t.set(t.$default(),3);else if(t.setter||t.dom&&t.dom.setter)if(t.path===s)try{t.setterX(n,s,o)}catch(e){Fe(e)}else try{e=kn(t.path);t.setterX(e,s,o)}catch(e){Fe(e)}t.$ready||(t.$ready=!0),3!==o&&r.push(t),(l||u.flags.reset||u.flags.default)&&(t.config.touched=!1,t.config.modified=!1),(u.flags.change||u.flags.touch)&&(t.config.touched=!0),t.config.invalid=!!t.validate&&!t.validate(n)}Mn(r,o,5),u.flags.nowatch||$n(s,n,o)}))},le.push=function(e,r,i){if(e instanceof Array)for(var t=0;tt())):t()},t)},ce.CL_INIT=ce.CLINIT=function(e,t,n,r){var i;typeof n==j&&(r=n,n=''),typeof t===se&&(i=t,t=function(e){var t=i.split(' ');switch(t[0]=t[0].toLowerCase(),'!'===t[0].charAt(0)&&(t[0],t[0].substring(1)),t[0]){case'get':case'post':case'put':case'delete':case'patch':AJAX(i,e);break;default:TAPI(i,e)}}),e=Qt(e),le.cl[e]={callback:t,expire:n},r&&ce.CL(e,NOOP)},ce.CL=function(e,t){e?e.split(',').trim().wait(function e(n,r){n=Qt(n);var i=le.cl[n];i?!i.reload&&DEF.cl[n]?r():i.callback(function(e,t){!0===t?EXTEND('DEF.cl',e):SET('DEF.cl.'+n,e),i.date=NOW=new Date,i.reload=!1,r()}):DEF.cl[n]?r():setTimeout(e,le.delaywatcher,n,r)},t):t&&t()},ce.GET=function(e,t){if(e){var n=Jt(e),r=n.pathmaker?Qt(n.path):n.path;if(e=n.rawpath,!0===t)t=null,RESET(e,!0);else if(typeof t===ee)return void(null==(i=(n.flags.modified?Kt:kn)(r))?setTimeout(GET,fe.delaywatcher,e,t):(t(i),DEF.monitor&&ne('get'),n.flags.reset&&RESET(e,!0)));DEF.monitor&&ne('get'),n.flags.update&&setTimeout(ce.UPD,1,e);var i=n.flags.modified?Kt(r):n.flags.clone?CLONE(kn(r,t)):kn(r,t);return n.flags.reset&&ce.RESET(e,!0),n.flags2&&qt(n,r,i),i=n.format?n.format.fn(i,r,1,n.format.scope&&te?PLUGINS[te]:null):i}},ce.VALIDATE=function(e,t){var n,r=!0,e=Jt(e.replace(f,'')),i=e.pathmaker?Qt(e.path):e.path,a=[],r=!0;for(n of Ut(i,t))n.validate&&(n.config.invalid=!n.validate(n.get()),n.config.invalid&&(r=!1)),a.push(n);return Mn(a,1,1),e.flags&&e.flags.flags(i,GET(i)),r},le.default=function(e,t,n,r,i){if(!0!==t&&0on(t));DEF.monitor&&ne('compilation',1);fe.webcomponentsonly||!function u(e,f,t){if((e=e?$(e)[0]:Me.body)&&'0'!==(s=e?en(e,'compile'):'1')&&s!==U){var n=null,r=null,i=(e.$jcbind||(n=e.getAttribute(w+_)||e.getAttribute(_))&&(r=r||[]).push({el:e,b:n}),en(e)),h=(e.$com||null==i||f(i,e,0),e.childNodes),a=[];void 0===t?t=0:t++;for(var o=0;o!0!==e.importing,()=>t(r,n)):e.dependencies&&e.dependencies.length?(e.importing=!0,e.dependencies.wait(function(e,t){if(typeof e===ee)e(t);else{var n;if('@'===e.charAt(0))return n=e.substring(1),void(A.caniuse(n)?t():(ADD({name:n,prepend:!0}),WARN('The "{0}" component has downloaded the dependent component "{1}".'.format(r.name,n)),WAIT(()=>A.caniuse(n),t,500,2e3)));IMPORT((-1===e.indexOf('<')?'once ':'')+e,t)}},function(){e.importing=!1,t(r,n)})):setTimeout((e,t,n)=>e(t,n),5,t,r,n)}(o,function(e,t){var n;e.make&&(n=Ct,(Ct=e).make(),Ct=n),pn(t,e)},c,t):setTimeout(function(e,t,n){var r;n.make&&(r=Ct,(Ct=n).make(),Ct=r),e(t,n)},5,pn,t,c)}else(Ze[r]||(Ze[r]=1,Ze.$++),!n[2]||-1!==(s=n[2].indexOf('$url:'))&&(-1===(a=n[2].indexOf(';',s+5))&&(a=n[2].length),v=n[2].substring(s+5,a)),v)?1!==je.imports[v]&&(2!==je.imports[v]?(je.imports[v]=1,je.importing++,IMPORT(v,function(){je.importing--,je.imports[v]=2})):pt['$NE_'+r]||(pt['$NE_'+r]=!0)):pt['$NE_'+r]||(pt['$NE_'+r]=!0)}0'),t=e.substring(0,t+1);return'r?n.value:void 0}function dn(e,t){if(fe.makeurl&&(e=fe.makeurl(e)),t)return e;var t=[],n=encodeURIComponent,r=-1!==e.indexOf('.html');if(fe.version?t.push(fe.versionkey+'='+n(fe.version)):fe.versionhtml&&r&&t.push(fe.versionkey+'='+n(fe.versionhtml)),fe.language?t.push(fe.languagekey+'='+n(fe.language)):fe.languagehtml&&r&&t.push(fe.languagekey+'='+n(fe.languagehtml)),!t.length)return e;r=e.indexOf('?');return(e+=-1==r?'?':'&')+t.join('&')}function pn(e,t){var n=e[0],r=n.tagName;t.released&&t.released(HIDDEN(n)),DEF.monitor&&ne('components',1),le.components.push(t),je.init.push(t),r!==me&&p.test(e[0].innerHTML)&&on(e),t.$initialized=!0,setTimeout2('$ready',function(){Rn(),function e(){var t=je.init.pop();void 0===t?je.ready||on():(t.$removed||mn(t),e())}();var e=le.components.length;if($(Me).trigger('components',[e]),bt||(bt=!0,On(Y,X,'find'),ue.init&&EMIT('init'),ue.ready&&EMIT('ready')),setTimeout2('$initcleaner',function(){Cn();for(var e=ot.splice(0),t=0;tgn(e,t,n))}function vn(){var e=je.pending.shift();if(e)e();else if($t&&(je.ready&&(je.is=!1),fe.fallback&&Ze.$&&!je.importing)){for(var t=Q(Ze),n=0;ni.path.length){var a=e.lastIndexOf('.',i.path.length);-1!==a&&i.path===e.substring(0,a)&&(i.scope&&(te=i.scope),s=GET(i.path),i.fn.call(i.context,i.alias?i.alias.type+e.substring(i.alias.length):e,i.format?i.format(s,e,n):s,n))}else for(var o=0;o',t+8),o=e.substring(t,a+9),t=a+9,a=o.indexOf('>');-1!==(i=o.substring(0,a)).indexOf('type=')&&-1===i.lastIndexOf('java'+Ie)||o.substring(a+1,o.length-9).trim()||(n=n.replace(o,'').trim(),i='external'+HASH(o),pt[i]||(r.push(o),pt[i]=!0))}return r.length&&$('head').append(r.join('\n')),n}function En(e,t){var n=[],r=(e=e.replace(i,function(e){return e=e.replace(''.format(n.join('\n'))).appendTo('head'),e}function Tn(e,t,n){-1!==e.indexOf(' #')&&(r=(i=nr(e)).cl,e=i.path);var r,i=e.replace('--\x3e','->').indexOf('->');-1!==i&&(t=kn(e.substring(0,i).trim(),t),e=e.substring(i+3).trim()),CL(r,function(){n?n(e,t):le.set(e,t)})}function An(e,t,n,r){if(e){var i='+'+e;if(tt[i])return tt[i](fe.scope,t,e,Tt,wr,n,r);if(e&&-1===e.indexOf('?')){for(var a,o=In(e),u=[],s=[],c=0;c'#'+(t.push(e)-1))).split('.')){var i,a=(i=i.replace(/#\d+/g,e=>t[+e.substring(1)])).indexOf('[');-1===a||(r.push(i.substring(0,a)),n.push(r.join('.')),r.splice(r.length-1)),r.push(i),n.push(r.join('.'))}return n}function On(){if(arguments.length)for(var e in Ke){for(var t=!1,n=arguments,r=0;rt.path.length){for(var n=0;n=r)return;pt[o]=(pt[o]||0)+1,pt[a]&&clearTimeout(pt[a]),pt[a]=setTimeout(function(e){pt[o]=void 0,t&&t(e)},n,i)}else pt[a]&&clearTimeout(pt[a]),pt[a]=setTimeout(t,n,i);return e},ce.clearTimeout2=function(e){e=':'+e;return!!pt[e]&&(clearTimeout(pt[e]),pt[e]=void 0,pt[e+':limit']&&(pt[e+':limit']=void 0),!0)},ce.CONFIG=function(e,t){if(typeof e===se){if(-1!==e.indexOf(',')){for(var n=e.split(','),r=0;r'+i.join('&&'))}Qe.push({fn:e,config:t})},ce.MACRO=function(e,t){le.macros[e]=t},ce.EXTENSION=function(e,t,n){var r=e.indexOf(':'),i='',r=(-1!==r&&(i=e.substring(r+1).trim(),e=e.substring(0,r).trim()),e.charAt(0));if('@'===r||'*'===r)return r='*'===r?Yr():e.substring(1).trim(),void((r=ce.PLUGINS[r])?t.call(r,r):qe[e]&&-1===qe[e].indexOf(t)?qe[e].push(t):qe[e]=[t]);typeof t===ee&&(r=n,n=t,t=r),qe[e]?qe[e].push({config:t,fn:n,name:i}):qe[e]=[{config:t,fn:n,name:i}];for(var a=0;a=t.md.min&&e<=t.md.max?'md':e>=t.sm.min&&e<=t.sm.max?'sm':e>t.lg.min?'lg':e<=t.xs.max?'xs':''};function Zn(e){var t=e.length;return Qt(e.substring(0,t-1),0,1)+e.substring(t-1)}var er;function tr(e,t,n,r){setTimeout(function(){CL(r,function(){DEF.monitor&&ne('exec'),EXEC.call(e,!0,t,n[0],n[1],n[2],n[3],n[4],n[5],n[6])})},200)}function nr(e){var t=[];return{path:e=e.replace(b,function(e){return t.push(e.trim().substring(1)),''}),cl:t.length?t.join(','):''}}function rr(e){return er=[],e=e&&typeof e===se?e.replace(m,ir):e,er.length&&qt(er,e),e}function ir(e){return er.push(e.substring(2)),''}ce.FN=function(e,t){var n=(e=e.replace(u,Zn)).indexOf('=>');if(-1===n)return Hr(e)?FN('value=>'+Ir(e),!0):new Function('return '+(-1===e.indexOf('(')?'typeof({0})==\'function\'?{0}.apply(this,arguments):{0}'.format(e):e));var r=e.substring(0,n).trim(),e=e.substring(n+2).trim(),n=!1,i=(r=(r=r.replace(/\(|\)|\s/g,'').trim())&&r.split(','),123!==e.charCodeAt(0)||t||(n=!0,e=e.substring(1,e.length-1).trim()),(n?'':'return ')+e);switch(r.length){case 1:return new Function(r[0],i);case 2:return new Function(r[0],r[1],i);case 3:return new Function(r[0],r[1],r[2],i);case 4:return new Function(r[0],r[1],r[2],r[3],i);default:return new Function(i)}},ce.RECONFIGURE=function(e,t){SETTER(!0,e,'reconfigure',t)},ce.SETTER=function(e,t){for(var n,l,i,a,r,o,s=[],u=!0===e?3:2,f=te,h=u;hSETTER.apply(ce,e))},555,arguments)}else-1===n&&(i=arguments[2]),DEF.monitor&&ne('setters'),CL(r,function(){FIND(a,!0,function(e){te=f,c=-1!==i.indexOf('.'),ue.setter&&EMIT('setter',a,i,s[0],s[1]);for(var t=0;tSETTER.apply(ce,e))},555,arguments)}else{var p=FIND(a,!0),c=-1!==i.indexOf('.');DEF.monitor&&ne('setters'),ue.setter&&EMIT('setter',a,i,s[0],s[1]),CL(r,function(){for(var e=0;e/g,function(e){return-1===e.indexOf('path=')?e.substring(0,10)+' path="'+t+'"'+e.substring(10):e}).replace('PLUGIN(function(','PLUGIN(\'{0}\', function('.format(t))),e?n.replace(/~ID~/g,e):n):n},ce.inDOM=Dn,ce.EXE=ce.EXEC=function(e){var u,t=[],n=1,r=!1,i=this;!0===e&&(r=!0,e=arguments[1],n=2),e=e.env(),te&&(e=e.replace(g,te));for(var f=n;fEMIT.call(i,u,t[0],t[1],t[2],t[3],t[4])));if('-'===n)return c=e.substring(0,3)===y,h=[e.substring(c?3:1).trim(),t[0],t[1],t[2],t[3],t[4]],r&&h.unshift(r),void CL(o,()=>SETTER.apply(ce,h));if('&'!==n){ue.exec&&EMIT('exec',e,t[0],t[1],t[2],t[3]);var d,p=null,s=null,c=null,m=0;if('@'===n&&(c=e.indexOf('.'),s=e.substring(1,c),p=e.substring(c+1)),s||-1!==(c=e.indexOf('/'))&&(s=e.substring(0,c),p=e.substring(c+1)),s){var l=ce.PLUGINS[s];if(l&&typeof l[p]===ee)St=a=te,te=s,CL(o,function(){var e=a&&ce.PLUGINS[a];e&&e!==l&&(l.caller=e),St=s,l[p].apply(i===ce?l:i,t),DEF.monitor&&(ne('exec'),ne('plugins')),te=a,m=1});else if(s&&(a=kt[s])){if(!a.pending)return Ge('Initializing: '+s),a.pending=!0,void(typeof a.fn===se?CL(o,function(){IMPORT(a.fn,function(){(a=kt[s])&&ce.PLUGIN(a.name,a.fn,a.init,()=>tr(i,e,t))},e=>e.replace(/~PATH~|~ID~/g,a.name))}):(delete kt[s],CL(o,()=>ce.PLUGIN(a.name,a.fn,a.init,()=>tr(i,e,t)))));r=!0}r&&!m&&tr(i,e,t,o)}else{if('FUNC'===e.substring(0,5))return(d=FUNC[e.substring(6)])&&(CL(o,()=>d.apply(i===ce?l:i,t)),m=1),void(r&&!m&&tr(i,e,t,o));typeof(d=kn(e))===ee&&(CL(o,function(){d.apply(i,t),DEF.monitor&&ne('exec')}),m=1),r&&!m&&tr(i,e,t,o)}}else CL(o,()=>CMD.call(i,e.substring(1),t[0],t[1],t[2],t[3],t[4]))},ce.ATTRD=function(e,t){if(e){if(e instanceof jQuery)return e.attrd2(t||'id');if(e instanceof jQuery.Event)return $(e.currentTarget).attrd2(t||'id');if(typeof e.getAttribute===ee)return ce.ATTRD($(e),t);if(typeof e==de)return e[t||'id']}return e},ce.MAKE=function(n,e,t){switch(typeof n){case ee:e=n,n={};break;case se:var r=Qt(n),i=!0;return null==(n=kn(r))&&(i=!1,n={}),e.call(n,n,r,function(e,t){wn(n,e,t)}),!i||void 0!==t&&!0!==t?je.ready?An(r,n):le.set(r,n,!0):le.update(r,!0),n}return e.call(n,n,''),n},ce.OPT=function(n,e){typeof n===ee&&(e=n,n={});var r='';return e.call(n,function(e,t){return wn(n,r+e,t)},function(e){(r=null==e?'':e+'')&&(r+='.')}),n},ce.COPY=function(e,t){for(var n=Q(e),r=0;r'+(n?function(e,t){var n=t.indexOf('{'),r=[];for(;-1!==n;){var i=t.substring(0,n),a=t.indexOf('}',n+1);if(-1===a)break;a++;var o=[];if(-1===i.indexOf('@'))for(var s=i.split(','),c=0;c').appendTo('head')},'light');function pr(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}function mr(){return arguments[Math.floor(Math.random()*arguments.length)]}ce.APPEARANCE=function(e){for(var t=Object.keys(e),n=e.dark||e.darkmode,r=e.large||e.largemode,i=[],a='appearance',o=0;o>>0:r},ce.GUID=function(e){var t,n;if(!e)return t=(n=Date.now()).toString(16),n=(n/6e4>>0).toString(16),t.substring(0,8)+'-'+(t.length<8?t.substring(8).padLeft(4,'0'):t.substring(4,8))+'-'+mr(1,2,3,4,5)+n.substring(1,4)+'-'+mr(0,8,9,'a','b')+n.substring(4,7)+'-'+pr()+pr()+pr();for(var r=1+(e/10>>0),i=[],a=0;a>0).toString(16),a=0')?FN(Ir(a)):Hr(a)?FN('(value,path,el)=>'+Ir(a),!0):'@'===a.charAt(0)?s.com[a.substring(1)]:k||GET(a):1)for(var S=c.split('+'),R=0;RThelpers.'+a),L&&(l.$nn=1);break;case Re:b=!0,l=a;break;case'track':s[c]=a.split(',').trim();continue;case'tracktype':var P=a.split(',').trim();s[c]={};for(var j=0;jel.SETTER('+a+')'),L&&(l.$nn=1),M&&(l.$nv=1);break;case Se:N=a.charAt(0);l=/^(https|http):\/\//.test(a)||'/'===N||'.'===N||'['===N?'.'===N?a.substring(1):a:'value'===a||'true'===a?1:FN(Ir(a));break;case'tclass':l=a;break;case ke:f=!1;(H=v.find(Ie+','+xe).eq(0)).length?f=!0:H=v,l=VBINDARRAY(TRANSLATE(H.html()),v),M&&(l.$nv=1),f&&H.remove();break;case xe:o!==we&&o!==Te||(o='');var H,W,z='',U=(a=a.replace(/\{.*?\}/g,function(e){return z=e.replace(/\{|\}/g,'').trim(),''}).trim(),o?v.find(o):v),f=!1;(H=z?$(z):U.find(Ie+','+xe).eq(0)).length?f=!0:H=U,t=TRANSLATE(H.html());try{l=Tangular.compile(t)}catch(v){Fe(v),l=NOOP}L&&(l.$nn=1),M&&(l.$nv=1),a&&(W='',a=a.replace(/(-)?->.*/,function(e){return W=e.replace(/(-)?->/g,'').trim(),''}),l.$vdomattr=W),l.$vdom=a,l.$compile=t.COMPILABLE(),f&&!z&&H.remove();break;case ge:c='setpath'}'def'===c&&(l=new Function('return '+a)()),F&&L&&(s[c+'bk']='src'==c||'href'==c||'title'==c?v.attr(c):c==Ne?v.html():'text'==c?v.text():'val'==c?v.val():c==Ee?v.prop(c):'disable'===c?v.prop(ve):'enable'===c?0==v.prop(ve):''),o?(g[o]||(g[o]={}),c!==Oe&&'attr'!==c?g[o][c]=l:m.length&&(B=m.pop(),g[o].classes?g[o].classes.push(B):g[o].classes=[B])):c!==Oe&&'attr'!==c&&(s[c]=l)}else WARN('Invalid command '+w,e)}else-1!==a.indexOf('?')&&(x=cn(e))&&(a=x.makepath(a)),SET(a,$(e));else(function(t){s[c]=function(){var e=GET(t);return typeof e===ee?e():e}})(a=-1!==a.indexOf('?')&&(x=cn(e))?x.makepath(a):a);else s[c]=a}else{N=(r=w).charAt(0);if('!'===N&&(r=r.substring(1),s.notnull=!0),'*'===N&&(r=fe.pathcommon+r.substring(1)),'-'===(r='#'===N?fe.pathcl+r.substring(1):r)&&(r=(en(s.el)||'').split(re)[1]),1===h.length)return(l=GET(r))&&l.call(s.el,s.el),l||null;if((t=zt(r))&&(r=t.path,s.formatter=t.fn,s.formatter.scope=t.scope),'.'!==N){if('@'===(r='.'===r.substring(r.length-1)?r.substring(0,r.length-1):r).charAt(0)){for(var G=!1,Y=('@'===(r=r.substring(1)).charAt(0)&&(G=!0,r=r.substring(1)),r=r||'@',e.parentNode);Y;){if(G){if(Y.$ctrl){s.com=Y.$ctrl,'@'!==r||s.com.$dataw||(s.com.$dataw=1,s.com.watch(function(e,t){s.com.data('@',t)}));break}}else if(Y.$com){s.com=Y.$com;break}Y=Y.parentNode}if(!s.com)return null}}else s.virtual=!0,r=r.substring(1)}}for(A in g){s.child||(s.child=[]);var X=g[A];X.selector='-'===A.charAt(0)?oe:A,s.child.push(X)}if(s.empty||(s.empty=''),m.length&&(s.classes=m),s.virtual)r=Qt(r,0,1);else{if(r=s.com&&'@'===r.charAt(0)?r:Qt(r,0,1),T||-1!==r.indexOf('?')||s.formatter&&s.formatter.scope){if(!(x=cn(e)))return void WARN('Missing ',e);r=x.makepath(r),s.scope=x.path}s.check&&(s.check=s.check.replace(/\?/,s.scope));var _=r.split('.'),B='';if(s.com)s.com.$data[r]||(s.com.$data[r]={value:null,items:[]}),s.com.$data[r].items.push(s);else for(var V=!1,J=_.length,n=0;n=e)return t;return t},e.skip=function(e){for(var t=[],n=0;n=e)return n;n.push(this[r])}return n},br.VARIABLES=function(r){var e=this;return r=r||{},(e=e.replace(/--(\s)?[a-zA-Z\s]+=+.*?--/g,function(e){for(var t=!1,n=2;n]+(>|$)/g,'')},br.toASCII=function(){for(var e='',t=0;t=e)break;31=12 ? \'PM\':\'AM\')+\''}}),s&&o.push('var mm=W.MONTHS[d.getMonth()];'),c&&o.push('var dd=W.DAYS[d.getDay()];'),l&&o.push('var ww = new Date(+d);ww.setHours(0,0,0,0);ww.setDate(ww.getDate()+3-(ww.getDay()+6)%7);var ww1=new Date(ww.getFullYear(),0,4);ww=1+Math.round(((ww.getTime()-ww1.getTime())/86400000-3+(ww1.getDay()+6)%7)/7);'),pt[n]=new Function('d',o.join('\n')+'return \''+e+'\';'),pt[n](t)},ce.$jcdatempam=function(e){return 12<=e?e-12:e},$r.between=function(e,t){for(var n=Object.keys(e),r=0;re?a.substring(0,e||0):a.padRight(e||0,'0'):a).length&&void 0===n&&(n=fe.decimalseparator),s+o+(a.length?n+a:'')},br.SCOPE=function(e){var t,n=this;return-1===n.indexOf('?')||null==e?n:e instanceof Hn?e.scope?e.scope.makepath(n):e.scopepath(n):e instanceof zr?n.replace(g,e.name):e instanceof jQuery||e.nodeName?(t=$(e).scope())?t.makepath(n):n:e.makepath?e.makepath(n):n},br.padLeft=function(e,t){var n=this+'';return Array(Math.max(0,e-n.length+1)).join(t||' ')+n},br.padRight=function(e,t){var n=this+'';return n+Array(Math.max(0,e-n.length+1)).join(t||' ')},$r.padLeft=function(e,t){return(this+'').padLeft(e,t||'0')},$r.padRight=function(e,t){return(this+'').padRight(e,t||'0')},$r.add=$r.inc=function(e,t){var n=this;if(null==e)return n;if(typeof e==P)return n+e;var r,i=e.charCodeAt(0),a=!1,o=((i<48||57':return'>';case'"':return'"'}return e})+'"'),this},WAIT(function(){return!!ce.jQuery},function(){ce.isIE&&Le.on('keydown',function(e){var t;13===e.keyCode&&('BUTTON'!==(t=e.target.tagName)&&'INPUT'!==t&&'SELECT'!==t||e.preventDefault())}),$.fn.multiple=function(e){var t,n={};for(t in e)n[t]=this.find(e[t]);return n},$.fn.FIND=function(t,n,r,e){typeof n===ee&&(e=r,r=n,n=void 0);var i=this,a=tn(i,t);return typeof r!==ee?n?a:a[0]:(a.length?(a=n?a:a[0],r.call(a,a)):WAIT(function(){var e=i.FIND(t,n);return e instanceof Array?0$.fn.SETTER.apply(s,e))},555,arguments),s}d=-1!==i.indexOf('.'),CL(r,function(){s.FIND(a,!0,function(e){ue.setter&&EMIT('setter',a,i,c[0],c[1]);for(var t=0;t$.fn.SETTER.apply(s,e))},555,arguments),s}var h=s.FIND(a,!0),d=-1!==i.indexOf('.');CL(r,function(){ue.setter&&EMIT('setter',a,i,c[0],c[1]);for(var e=0;e'+e+'',Me.createDocumentFragment());n.firstChild.firstChild;)r.appendChild(n.firstChild.firstChild);return r=$(r),this.append(r),r},$.fn.psvg=function(e){var t;if(-1===e.indexOf('<'))return t=Me.createElementNS('http://www.w3.org/2000/svg',e),this.prepend(t),$(t);for(var n=Me.createElementNS('http://www.w3.org/1999/xhtml','div'),r=(n.innerHTML=''+e+'',Me.createDocumentFragment());n.firstChild.firstChild;)r.appendChild(n.firstChild.firstChild);return r=$(r),this.prepend(r),r},$.fn.binder=function(){return e(this,'$jcbind')},$.fn.vbind=function(){return e(this,'$vbind')},$.fn.vbindarray=function(){return e(this,'$'+ke)},$.fn.component=function(){return e(this,'$com')},$.fn.components=function(e){for(var t=this.find(oe),n=null,r=0;r>0)),isPRIVATEMODE&&e.aclass('jc-nostorage'),isTOUCH&&e.aclass('jc-touch'),isSTANDALONE&&e.aclass('jc-standalone'),le.ua);t.browser&&e.aclass('jc-'+t.browser.toLowerCase()),t.os&&e.aclass('jc-'+t.os.toLowerCase()),t.device&&e.aclass('jc-'+t.device.toLowerCase()),d(),(t=navigator.cookieEnabled)||(Me.cookie=he,t=-1!=Me.cookie.indexOf(he));t||e.aclass('jc-nocookies'),vt&&(clearTimeout(vt),vt=null,an());t='input['+k+'],textarea['+k+'],select['+k+']';$(Me).on('input','input['+k+'],textarea['+k+']',function(){var e=this,t=e.$com;if(t&&!t.$removed&&t.getter&&!1!==e.$jckeypress){if(e.$jcevent=2,void 0===e.$jckeypress){var n=en(e,'keypress');if(n?e.$jckeypress=n===we:null!=t.config.$realtime?e.$jckeypress=!0===t.config.$realtime:t.config.$binding?e.$jckeypress=1===t.config.$binding:e.$jckeypress=fe.keypress,!1===e.$jckeypress)return}void 0===e.$jcdelay&&(e.$jcdelay=+(en(e,'keypress-delay')||t.config.$delay||fe.delaykeypress)),void 0===e.$jconly&&(e.$jconly=en(e,'keypress-only')===we||2===t.config.$binding),e.$jctimeout&&clearTimeout(e.$jctimeout),e.$jctimeout=setTimeout(Ar,e.$jcdelay,e)}}).on('focus blur',t,function(e){var t,n=this,r=n.$com;'focusin'!==e.type||r||n.$jccheck||(t=$(n).closest(oe))&&(n.$com=n.uicomponent=t[0].$com),r&&!r.$removed&&r.getter&&('focusin'===e.type?n.$jcevent=1:1===n.$jcevent?(r.config.touched=!0,r.getter(n.value,3)):n.$jcskip?n.$jcskip=!1:((t=r.$skip)&&(r.$skip=!1),e=r.get(),fe.monitor&&Wn(r),r.setter(e,r.path,2),r.setter2&&r.setter2(e,r.path,2),t&&(r.$skip=t)))}).on('change',t,function(){var e=this,t=e.$com;if(!e.$jconly&&t&&!t.$removed&&t.getter){if(!1===e.$jckeypress)return e.$jcskip=!0,void t.getter(e.value,!1);switch(e.tagName){case'SELECT':var n=e[e.selectedIndex];return e.$jcevent=2,t.config.touched=!0,void t.getter(n.value,!1);case'INPUT':if('checkbox'===e.type||'radio'===e.type)return e.$jcevent=2,t.config.touched=!0,void t.getter(e.checked,!1)}e.$jctimeout?(t.config.touched=!0,t.getter(e.value,!0),clearTimeout(e.$jctimeout),e.$jctimeout=0):(e.$jcskip=!0,t.setter&&t.setterX(t.get(),e.path,2))}}),setTimeout(ce.PREF.load,2,E),$t=!0})},50),le.$parser.push(function(e,t,n){switch(n){case P:case'currency':case'float':var r=typeof t,i=null;if(r==se){switch(fe.thousandsseparator){case' ':t=t.replace(/\s/g,'');break;case',':t=t.replace(/\s|,/g,'');break;case'.':t=t.replace(/\s|\./g,'')}if(!(t=','===fe.decimalseparator?t.replace(o,'.'):t))return null;i=+t}else{if(r!=P)return null;i=t}return isNaN(i)?null:i;case j:case'bool':return null==t?null:!0===t||typeof t==se?'1'==t||t==we||'on'==t:!!t;case'date':case'datetime':return t?t instanceof Date||(t=t.parseDate())&&t.getTime()?t:null:null}return t});yr=Nr.prototype;function Dr(e){_n(e.el,e.focus)}function Cr(e){e.SETTER('*',Ae)}function Sr(e,t,n,r,i,a){e.$delay=null;var o=te;e.exec(t,n,r,!0,i,a),te=o}function Rr(e,t,n,r,i,a){var o=te;delete e.wcomrunning,e.exec(t,n,r,!0,i,a),te=o}function Mr(e,t,n,r,i,a){var o;e&&t.set&&((o=e[0].$com)&&!o.$removed&&o.$loaded&&!o.path&&(o.setter||o.dom&&o.dom.setter)?(o.$jcbind!==t&&((o.$jcbind=o.uibind=t).vbind&&t.vbind.vbindarray?o.$jcbindset=t.vbind.vbindarray.path+'['+t.vbind.index+'].'+t.path:o.$jcbindset=t.vbind?null:t.path,o.$jcbindget=t.path),o.setterX(n,r,i),t.setid&&(clearTimeout(t.setid),delete t.setid)):(!a||a<30)&&(t.setid&&clearTimeout(t.setid),t.setid=setTimeout(Mr,100,e,t,n,r,i,a||1)))}function Lr(e,t){return t?e.getAttribute(t):e.outerHTML}function Fr(e,t,n){n=''===(e=t.helper&&(!t.helper.$nn||null!=e)?t.helper(e):e)?t.empty:null==e?t.empty||(n?t[n+'bk']:''):t.currency?e.currency(t.currency):null!=t.format?e.format(e instanceof Date?t.format||null:t.format||0):e;return null==n?'':n}function Pr(e,t){e.$binderconfig&&clearTimeout(e.$binderconfig),e.$binderconfig=setTimeout(jr,fe.delaybinder,e,t)}function jr(e,t){e.$binderconfig=null;var n=e.$com;n&&n.$initialized?n.reconfigure(t):Pr(e,t)}function Hr(e){return-1!==e.indexOf(Te)&&(/\W/.test(e)||e===Te)}function Wr(e,t,n){var r=Nt,i=(Nt=e.id,delete e.pending,te=e.name,t.call(e,e),qe['@'+e.name]);if(i)for(var a of i)a.call(e,e);if(i=qe['@'+e.id])for(var a of i)a.call(e,e);ue.plugin&&EMIT(M,e),DEF.monitor&&ne('plugins',t?1:0),ce.PLUGINS[e.name]=e,te=null,n&&n(),Nt=r}function zr(e,t,n,r,i){ce.PLUGINS[e]&&ce.PLUGINS[e].$remove(!0);var a=this,e=(a.element=$(Dt||Me.body),a.id='plug'+e,a.name=e,a.caller=i,{get(){return GET(a.makepath())||{}},set(e){SET(a.makepath(),e)}});Object.defineProperty(a,'parent',{get(){var e=this.element.scope();return e&&e.parent?e.parent.plugin:null}}),Object.defineProperty(a,'model',e),Object.defineProperty(a,'data',e),Object.defineProperty(a,'form',{get(){return GET(a.makepath()+' @reset')||{}}}),Object.defineProperty(a,'modified',{get(){return GET(a.makepath()+' @reset @modified')||{}}}),n?(a.pending=!0,typeof n===se?MIDDLEWARE(n.split(/\s|,/).trim(),function(){Wr(a,t,r)}):n.call(a,function(){Wr(a,t,r)},a)):Wr(a,t,r)}yr.refresh=function(){var e=te;this.exec(GET(this.path),this.path),te=e},yr.exec=function(e,t,u,n,r,f){var i=this;if(!i.disabled){fe.monitor&&Wn(i);var a=i.el;if(null!=u){if(null==i.child)return;if(null==(i=i.child[u]))return}if(!i.notnull||null!=e){if(i.wcom){i.wcomrunning&&clearTimeout(i.wcomrunning),i.wcomrunning=null;for(var o=0;oi.path.length))return;if(i.track&&i.path!==t){for(r=!1,o=0;o
'.format(n,I)),!!l.controls),N=l.controls||v,D=null!=l.visibleX&&l.visibleX,C=null!=l.visibleY&&l.visibleY,S=l.orientation,h=!S||'x'===S,d=!S||'y'===S,R=-1!==navigator.userAgent.indexOf('Edge'),I=(N.prepend(('
'+(d?'
':'')+(h?'
':'')).format(n,I)),v[0].$scrollbar=u,null==l.padding&&(l.padding=5),l.minsize||(l.minsize=50),'[data-id="{0}"]'.format(I)),M='pointer-events',L=N.find('.'+n+'-path'+I),F=h?$(L.find('.'+n+'-x'+I)[0]):null,P=d?$(L.find('.'+n+'-y'+I)[0]):null,j=h?$(F.find('span')[0]):null,H=d?$(P.find('span')[0]):null,W=v.find('.'+n+'-body'+I),p=$(v.find('> .'+n+'-area'+I)[0]),I='shadow',z=0,U=(l[I]&&(v.prepend(('
'+(h?'
':'')+(d?'
':'')+'
').format(n,I)),o=v.find('> .'+n+'-'+I),d&&(b=o.find('> .'+n+'-'+I+'-top'),y=o.find('> .'+n+'-'+I+'-bottom')),h&&(E=o.find('> .'+n+'-'+I+'-left'),T=o.find('> .'+n+'-'+I+'-right')),z=b?b.height():E.width()),!0),G=[],Y=[],X='cs'+GUID(5),m={},_=(u.options=l,u.pathx=F,u.pathy=P,u.barx=j,u.bary=H,u.element=v,u.area=p,u.body=W,{}),B=(_.onmousemove=function(e){var t,n,r;i.is&&('y'===i.type?(n=e.pageY-i.offset,r=f.vbarlength-f.vbarsize,p[0].scrollTop=(f.scrollHeight-f.viewHeight+(l.marginY||0))/100*(100<(t=(n=n<0?0:n)/r*100)?100:t),10>0)<0?e=0:rf.viewWidth-10?f.viewWidth:e.offsetX-10,t=Math.ceil(t/(f.viewWidth-f.hbarsize)*100),u.scrollLeft((f.scrollWidth-f.viewWidth+(l.marginX||0))/100*(100f.viewHeight-10?f.viewHeight:e.offsetY-10,t=Math.ceil(t/(f.viewHeight-f.vbarsize)*100),u.scrollTop((f.scrollHeight-f.viewHeight+(l.marginY||0))/100*(100WW&&(f.viewWidth=WW),f.viewWidth>screen.width&&(f.viewWidth=screen.width),c=f.viewWidth-i,a=f.viewHeight-o,m.md!=n&&L.tclass(be,n)):(c=f.viewWidth+(d?f.margin:0)-i,a=f.viewHeight+(h?f.margin:0)-o),m.aw!==c&&(m.aw=c,n||p.css($e,c),b&&(s=l.marginshadowY||0,b.css($e,f.viewWidth-s),y.css($e,f.viewWidth-s)),T&&T.css('left',f.viewWidth-z),W.css('y'===S?$e:'min-'+$e,f.viewWidth-i+(ce.isIE||R||!r?f.margin:0)-('x'===S?f.margin:0))),m.ah!==a&&(m.ah=a,p.css(ye,a),y&&y.css('top',f.viewHeight-z)),f.scrollWidth=t.scrollWidth||0,f.scrollHeight=t.scrollHeight||0,h&&(f.clientWidth=Math.ceil(p.innerWidth())),d&&(f.clientHeight=Math.ceil(p.innerHeight())),o=l.thickness||10,!f.thicknessH&&h&&(f.thicknessH=(F.height()||o)-1),!f.thicknessV&&d&&(f.thicknessV=(P.width()||o)-1),null==f.hpos&&(f.hpos=0),null==f.vpos&&(f.vpos=0),h&&(te.top=f.viewHeight-f.thicknessH,te.width=f.viewWidth,l.marginXY&&(te.top-=l.marginXY),l.marginX&&(te.width-=l.marginX),E&&(s=l.marginshadowX||0,c=!1===l.floating?0:F.height(),E.css(ye,te.top-(l.marginshadowX||0)+c),T.css(ye,te.top-(l.marginshadowX||0)+c)),(i=F.css('left'))&&(i=i.parseInt(),te.width-=2*i),l.padding&&(te.top-=l.padding),F.css(te)),d&&(O?(ne.left=N.width()-f.thicknessV,ne.height=N.height()):(ne.left=f.viewWidth-f.thicknessV,ne.height=f.viewHeight),l.padding&&(ne.left-=l.padding),(a=P.css('top'))&&(a=a.parseInt(),ne.height-=2*a),l.marginYX&&null!=te.left&&(te.left-=l.marginYX),l.marginY&&(ne.height-=l.marginY),P.css(ne),f.vbar=5>0,f.vbarsizef.clientWidth,f.hbar&&(f.hbarsize=f.clientWidth*(te.width/f.scrollWidth)>>0,f.hbarlength=te.width,f.hbarsize>8*s&255);for(s=0;ssn(n,e),It.push(e)))):ft.push(e)}function Jr(e){Ot.push(e),vr&&clearTimeout(vr),vr=setTimeout(ln,15)}Ur.upload=function(e,t,n){return Gr(this,'UPLOAD',e,t,n)},Ur.tapi=function(e,t,n){return Gr(this,'TAPI',e,t,n)},Ur.api=function(e,t,n){return Gr(this,'API',e,t,n)},Ur.dapi=function(e,t,n){return Gr(this,'DAPI',e,t,n)},Ur.wapi=function(e,t,n){return Gr(this,'wapi',e,t,n)},Ur.ajax=function(e,t,n){return Gr(this,'AJAX',e,t,n)},Ur.on=function(e,t,n){return this.scope(),ON(e,t,n),this},Ur.watch=function(e,r,t){var n=r;this.scope(),typeof n===ee&&(n=function(e,t,n){r(t,e,n)}),e=e.split(',').trim();for(var i=0;i'+t[1]):null),('plug'+te||'')+'_'+GUID(5)),t=0;e&&s(t++,te),xt[u]=setTimeout(s,o,te,t)},ce.QUEUE=function(e,t){typeof e==ee&&(t=e,e=y);var n=(n=mt[e])||(mt[e]=[]);return t?(n.push({fn:t,scope:te}),ce.QUEUE(e)):n.isrunning||(t=n.shift())&&(n.isrunning=!0,te=t.scope,t.fn(function(){n.isrunning=!1,ce.QUEUE(e)},n.length)),n.length},ce.WORKFLOW=function(e,t,n){typeof t===ee&&(n=t,t=void 0);var i={};return i.tasks=t||{},i.scope=te,i.callback=function(e){n=e},i.next=i.trigger=function(e,t){setTimeout(i.nextforce,5,e,t)},i.nextforce=function(e,t){var n,r;i&&(i.prev=i.current,(n=i.tasks[e])?(r=te,te=i.scope,i.current=e,null!=t&&(i.value=t),n(i,i.value),te=r):i.destroy())},i.next2=function(t){return function(e){i&&i.next(t,e)}},i.invalid=function(e){i.error?i.error(e,i):n||WARN('WORKFLOW: '+i.current,e),n&&n.call(i,DEF.ajaxerrors?e:null,e,i)},i.push=function(e,t){i.tasks[e]=t},i.done=function(e){null==e&&(e=i.value),n&&n.call(i,e,null,i)},i.clone=function(){return ce.WORKFLOW(null,i.tasks)},i.destroy=function(){i=null},e&&e(i),i},ce.NODEINDEXOF=function(e){for(var t=(e=e instanceof jQuery?e[0]:e).parentNode.children,n=0;n',e)):ut.push({el:e,path:t,config:n})},customElements.define('ui-plugin',class extends HTMLElement{constructor(){super(),this.ui={$new:1,$type:M},Ue?setTimeout(cn,1,this):ct.push(this)}}),customElements.define('ui-bind',class extends HTMLElement{constructor(){super(),setTimeout(ce.NEWUIBIND,2,this)}}),customElements.define('ui-component',class extends HTMLElement{constructor(){super(),setTimeout(Vr,1,this)}static get observedAttributes(){return[De]}reconfigure(e,t,n){null==e&&(e=this.getAttribute(De)),this.$com.reconfigure(e,null,t,n)}modify(e,t){this.$com.modify(e,t)}read(e){return this.$com.read(e)}get(){return GET(this.$com.path)}set(e,t){this.config.modified=!0,SET(this.$com.path,e,t)}update(e){this.config.modified=!0,SET(this.$com.path,this.get(),e)}reset(){this.reconfigure({invalid:!1,modified:!1})}attributeChangedCallback(e,t,n){this.$initialized&&e===De&&this.$com.reconfigure(n)}}),customElements.define('ui-import',class extends HTMLElement{constructor(){super(),setTimeout(Jr,1,this)}})}(); +!function(){function c(e,t){return e||t?!e&&t?1:e&&!t?-1:-1*(ce.Intl?ce.Intl.Collator().compare(e,t):(e+'').localeCompare(t+'')):0}function r(){for(var e=Q(We),t=0;tNOW?We[n]=r:delete We[n]}ce.PREF.save(We)}function E(e){if(e=typeof e===se?PARSE(e):e){var t=!1;for(r in e){var n=e[r];n&&n.expire>NOW?(We[r]=n,ze[r]||(ce.PREF[r]=n.value)):t=!0}if(We.PATHS)for(var r in We.PATHS)le.set(r,We.PATHS[r],!0);t&&setTimeout2('PREF',ce.PREF.save,1e3,null,We)}le.loaded=!0,Ue=1;for(var i of st)ce.PLUGIN(i.name,i.fn);for(var a of ct)cn(a);for(var o of ft)Vr(o);for(var s of ut)NEWUIBIND(s.el,s.path,s.config);st.length=0,ct.length=0,ft.length=0,ut.length=0,NOTIFY('PREF'),on()}var a=/GET|POST|PATCH|PUT|DELETE\s/,p=/(data--|data---|data-import|-bind|bind)=|COMPONENT\(/,l=/)<[^<]*)*<\/script>|)<[^<]*)*<\/style>/gi,i=/)<[^<]*)*<\/style>/gi,t=/(\[.*?\])/gi,n=/\{{1,2}[a-z0-9_.-\s]+\}{1,2}/gi,o=/,/g,s=/[^a-zA-Zá-žÁ-Žа-яА-Я\d\s:]/g,u=/[a-z0-9_-]+\/[a-z0-9_]+\(|(^|(?=[^a-z0-9]))@[a-z0-9-_]+\./i,re=/_{2,}/,O=/\s(repeat|cancel|urlencoded|json|noencrypt|nodecrypt|nocsrf|error|#[a-z0-9_-]+|@[a-z0-9_-]+)/gi,ie=/^[^a-z0-9.]/,f=/\.\*/,d=/\[\d+\]$/,g=/\?/g,ae=/\?\/|\?\./,v=/\?\//g,h=/^(-)?[0-9.]+$/,m=/\s@[a-z0-9]+/gi,b=/\s#[a-z0-9_-]+/gi,y='---',T='--',w='data-',oe='ui-component,[data--],[data'+y+']',x='ui-bind,[data-bind],[bind]',k='data-jc-bind',he='jc',I=w+'jc-removed',N={225:'a',228:'a',269:'c',271:'d',233:'e',283:'e',357:'t',382:'z',250:'u',367:'u',252:'u',369:'u',237:'i',239:'i',244:'o',243:'o',246:'o',353:'s',318:'l',314:'l',253:'y',255:'y',263:'c',345:'r',341:'r',328:'n',337:'o'},D={INPUT:!0,TEXTAREA:!0,SELECT:!0},C={value:null},S=/\s\+\s|\s/,R='scope',M='plugin',L=w+''+R,F=w+''+M,ee='function',se='string',P='number',de='object',j='boolean',pe='null',H='env',W=/am|pm/i,z='x-csrf-token',me='BODY',ge='path',ve='disabled',be='hidden',$e='width',ye='height',Ee='checked',Te='value',Ae='resize',U='false',we='true',G='response',Y='valid',X='dirty',_='bind',xe='template',ke='vbindarray',Ie='script',B='PATHS',Oe='class',Ne='html',De='config',Ce='default',V='jc-compile',Se='import',J='jctmp.',Re='click',q='ERR_CONNECTION_CLOSED',Q=Object.keys,K={':':1,'"':1,'[':1,']':1,'\'':1,_:1,'{':1,'}':1,'&':1,'=':1,'+':1,'-':1,'\\':1,'/':1,',':1},Z=!1,ce=window,Me=document,Le=$(ce),Fe=function(e){ce.console&&ce.console.error(e)},Pe=function(e,t){return e||t?!e&&t?-1:e&&!t?1:ce.Intl?ce.Intl.Collator().compare(e,t):(e+'').localeCompare(t+''):0},je={},le={},He=ce.localStorage,We={},ze={set:1,get:1,save:1,load:1,keys:1},Ue=0,Ge=ce.WARN=function(){ce.console&&ce.console.warn.apply(ce.console,arguments)},Ye=(ce.VISIBLE=function(e,t,n){if((e=e instanceof jQuery?e[0]:e).parentNode&&e.parentNode.tagName!==me)if(ce.isIE){if(!e.offsetWidth&&!e.offsetHeight)return!1}else if(!e.offsetParent)return!1;t=t||0,n=n||'visible';var e=e.getBoundingClientRect(),r=Math.max(document.documentElement.clientHeight,ce.innerHeight),i=e.bottom-t<0,e=0<=e.top-r+t;return'above'===n?i:'below'===n?e:!i&&!e},ce.STOPDEBUG=function(){!function t(){try{!function e(t){1===(''+t/t).length&&t%20!=0||!function(){}.constructor('debugger')(),e(++t)}(0)}catch(e){setTimeout(t,5e3)}}()},ce.HIDDEN=function(e){return null==e||(!(e=e instanceof jQuery?e[0]:e).parentNode||e.parentNode.tagName!==me)&&(ce.isIE?!e.offsetWidth&&!e.offsetHeight:!e.offsetParent)},ce.LOCALIZE=function(e){for(var t=e.split('\n'),n=0;nNOW?n.value:void 0;return t&&void 0!==n&&Ye.set(e,n,t),n},set:function(e,t,n){return void 0===t?(delete We[e],ze[e]||delete ce.PREF[e]):(We[e]={value:t,expire:NOW.add(n||'1 month')},ze[e]||(ce.PREF[e]=t)),NOTIFY('PREF.'+e),setTimeout2('PREF',r,fe.delaypref),t},keys:function(){return Q(We)},load:function(e){e(!ce.isPRIVATEMODE&&PARSE(He.getItem(fe.localstorage+'.pref')))},save:function(e){ce.isPRIVATEMODE||He.setItem(fe.localstorage+'.pref',STRINGIFY(e))}});ce.jctmp={},(ce.W=ce).FUNC={},ce.REPO={};try{var e='jc.test';He.setItem(e,'1'),ce.isPRIVATEMODE='1'!==He.getItem(e),He.removeItem(e)}catch(e){ce.isPRIVATEMODE=!0,Ge('jC: localStorage is disabled')}var Xe,_e,Be=null,Ve={},Je={},qe={},Qe=[],Ke={},Ze={$:0},et=[],tt={},ue={},nt=[],rt={},it=[],at={},ot=[],st=[],ct=[],lt={},ut=[],ft=[],ht={},dt={},pt={},mt={},gt={},vt=setTimeout(an,2),bt=!1,$t=!1,yt=0,Et=0,Tt={},At=[],wt={},xt={},kt={},It=[],Ot=[],Nt=null,Dt=null,Ct=null,te=null,St=null,fe=(ce.MAIN=ce.M=le,ce.TEMP={},ce.PLUGINS={},ce.EMPTYARRAY=[],ce.EMPTYOBJECT={},ce.NOW=new Date,ce.DEFAULT=function(e,t,n){var r,i,a=e.split(re);1'),n=2),-1!==t&&-1!==e.indexOf('/')&&-1===e.indexOf('(')&&(e+='(value)'),e.substring(t+n).trim()),i=!1;return-1!==r.indexOf('?/')&&(n=r.indexOf('('),r='(value,path,type,scope)=>scope?scope.$format(\''+r.substring(2,n)+'\')'+r.substring(n)+':value',i=!0),-1===t?null:{path:e.substring(0,t).trim(),fn:FN(r),scope:i}}function Ut(e,t){if(typeof t===se){var n={};for(r of t.split(','))n[r.trim()]=1;t=n}else if(t instanceof Array){var r,n={};for(r of t)n[r='@'===r.charAt(0)?r.substring(1):r]=1;t=n}for(var i=e.lastIndexOf('.*'),a=(e=Qt(e=-1!==i?e.substring(0,i):e,0,1),[]),o=le.components,s=0;se.length){for(var n=0;nt.length)for(var a=u.items.splice(t.length),i=0;isetTimeout(u,r||0)):setTimeout(u,r||0))},ce.UNWATCH=function(e,t){if(S.test(e))for(var n=e.split(S).trim(),r=0;r/,function(e){return t=e.substring(1,e.length-1).trim(),''}).trim()).charAt(0),n='once '===a.substring(0,5).toLowerCase();if(typeof o===ee?(typeof s===ee?(l=s,c=!0):typeof c===ee&&(l=c,c=!0),s=o,o='body'):typeof c===ee&&(l=c,c=!0),t){var r='()'===t.substring(t.length-2),i=(r&&(t=t.substring(0,t.length-2)),GET(t));if(r&&typeof i===ee){if(i())return void(s&&s(0))}else if(i)return void(s&&s(0))}r=(a='//'===a.substring(0,2)?location.protocol+a:a).lastIndexOf(' .'),i='';if(-1!==r&&(i=a.substring(r).trim().toLowerCase(),a=a.substring(0,r).trim()),'!'===e||n){if(a=n?a.substring(5):a.substring(1),pt[a])return void(s&&(2===pt[a]?s(0):WAIT(function(){return 2===pt[a]},function(){s(0)})));pt[a]=1}o=(o=o&&o.setPath?o.element:o)||'body',i||(-1!==(r=a.lastIndexOf('?'))?-1!==(e=a.lastIndexOf('.',r))&&(i=a.substring(e,r).toLowerCase()):-1!==(r=a.lastIndexOf('.'))&&(i=a.substring(r).toLowerCase()));n=Me;return'.js'===i?((e=n.createElement(Ie)).type='text/java'+Ie,e.async=!1,e.onload=function(){pt[a]=2,s&&s(1),ce.jQuery&&setTimeout(on,300)},e.src=dn(a,!0),n.getElementsByTagName('head')[0].appendChild(e),ue.import&&EMIT(Se,a,$(e)),void(DEF.monitor&&ne('requests'))):'.css'===i?((r=n.createElement('link')).type='text/css',r.rel='stylesheet',r.href=dn(a,!0),r.onload=function(){s&&setTimeout(s,2,1)},n.getElementsByTagName('head')[0].appendChild(r),pt[a]=2,ue.import&&EMIT(Se,a,$(r)),void(DEF.monitor&&ne('requests'))):void WAIT(function(){return!!ce.jQuery},function(){pt[a]=2;function e(e,t,n){if(e){if(typeof e!==se)return WARN('jC: invalid response for IMPORT("{0}")'.format(a),e),void(s&&s(0));a='$import'+a,e=ADAPT(null,null,e),l&&(e=l(e,n));var r=p.test(e);e=yn(En(e,i)).trim(),o=$(o),e&&(Dt=o[0],!1===c?o.html(e):o.append(e),Dt=null),setTimeout(function(){r&&on(),s&&WAIT(function(){return 0==je.is},function(){s(1)}),ue.import&&EMIT(Se,a,o)},10)}else s&&s(0)}var i=Se+HASH(a);u?AJAXCACHE('GET '+a,null,e,u):AJAX('GET '+a,e)})},ce.IMPORT=function(e,n,t,r,i){var a;e instanceof Array?(typeof n===ee&&(i=r,r=t,t=n,n=null),a=te,e.wait(function(e,t){te=a,IMPORTCACHE(e,null,n,t,r,i)},function(){te=a,t&&t()})):IMPORTCACHE(e,null,n,t,r,i)},ce.CACHEPATH=function(r,i,e,a){var t=r.split(re),o=(r=Qt(t[0],1),t[1]&&(t[1]=new Function('return '+t[1])),!1);WATCH(r,function(e,t){var n;o||((n=a?ce.PREF.get(B):hn(B))?n[r]=t:(n={})[r]=t,a?ce.PREF.set(B,t,i):hn(B,n,i))}),void 0!==e&&!e||(o=!0,(e=a?ce.PREF.get(B):hn(B))&&void 0!==e[r]?e[r]!==kn(r)&&le.set(r,e[r],!0):t[1]&&le.set(r,t[1](),!0),o=!1)},ce.CACHE=hn,ce.SCROLLBARWIDTH=function(){var e='jcscrollbarwidth';if(null!=Be)return Be;var t=Me.body,e=($(t).append('
'.format(e,':100px;',':9999px;')),Me.getElementById(e));return e&&(Be=e.offsetWidth-e.clientWidth,t.removeChild(e)),Be||0},ce.REMOVECACHE=function(e,t){if(t)for(var n in Je)-1!==n.indexOf(e)&&delete Je[e];else delete Je[e];Sn()},ce.AJAXCONFIG=function(e,t){gt[e]=t},ce.ASETTER=function(){for(var t=[],e=0;e/,function(e){return i=e.replace(/<|>/g,''),''}),i?AJAXCACHE(s,c,l,i):(s=s.replace(/\ssync/i,function(){return r=!0,''}),r&&Et?setTimeout(function(e,t,n,r){ce.AJAX.call(ce,e,t,n,r)},fe.delay,n,c,l,e):(f=null,T=E=y=b=v=u=g=!1,o=!(a=[]),A=[],s=s.replace(O,function(e){var t=e.charAt(1),n=t.toLowerCase();return'#'===t?(f=e.substring(2),le.cl[f]&&(A.push(f),f='')):'@'===t?a.push(e.substring(2)):'r'===n?g=!0:'u'===n?b=!0:'j'===n?v=!0:'e'===n?o=!0:'n'===n?'noc'===(t=e.substring(1,4).toLowerCase())?T=!0:'noe'===t?y=!0:E=!0:u=!0,''}),l&&o&&(l=ERROR(!0,l)),g&&(m=[n,c,l,e]),h=s.substring(0,t).toUpperCase(),(w='!'===h.charAt(0))?h=h.substring(1):w=fe.ajaxcredentials,x={},(n=s.match(/\{.*?\}/g))&&(s=s.replace(n,'').replace(/\s{2,}/g,' '),typeof(n=new Function('return '+n)())==de&&(x=n)),s=s.substring(t).trim().$env(),d=f||h+' '+s,u&&Ke[d]&&(Ke[d].output.cancel=!0,Ke[d].xhr.abort()),k=te,Et++,a.length&&qt(a,s,c),I=function(){'GET'!==h||!c||(i=typeof c===se?c:function(e){for(var t=Object.keys(e),n=[],r=0;rsetTimeout(I,e||0)):setTimeout(I,e||0))))},ce.AJAXCACHEREVIEW=function(e,t,n,r,i,a){return AJAXCACHE(e,t,n,r,i,a,!0)},ce.AJAXCACHE=function(t,r,i,a,e,o,u){var s,c,l,n=typeof r,n=((n===ee||n===se&&typeof i===se&&typeof a!==se)&&(o=e,e=a,a=i,i=r,r=null),typeof e==j&&(o=!0===e,e=0),t.indexOf(' '));-1!==n&&(s=t.substring(0,n).toUpperCase(),c=t.substring(n).trim().$env(),l=te,setTimeout(function(){var n,e=o?void 0:fn(s,c,r,void 0,a);if(void 0!==e)return n=u?STRINGIFY(e):null,te=l,typeof i===se?Tn(i,e):i(e,!0),u&&!1!==navigator.onLine?(te=l,void AJAX(t,r,function(e,t){t&&(e=t),te=l,n!==STRINGIFY(e)&&(t||fn(s,c,r,e,a),typeof i===se?Tn(i,e):i(e,!1,!0))})):void 0;te=l,AJAX(t,r,function(e,t){t&&(e=t),te=l,t||fn(s,c,r,e,a),typeof i===se?Tn(i,e):i(e,!1)})},e||1))},ce.CLEARCACHE=function(){var e,t;ce.isPRIVATEMODE||((e=He.removeItem)(t=fe.localstorage),e(t+'.cache'),e(t+'.blocked'))},ce.ERROR=function(e,n,r){if(typeof e===ee&&(r=n,n=e,e=!0),!0!==e){if(e)if(e instanceof Error||(e instanceof Array&&e.length?null!=e[0].error:null!=e.error))return ue.ERROR&&EMIT('ERROR',e),r&&ce.SEEX(r,e),!0;return n&&ce.SEEX(n,e),!1}var i=te;return function(e,t){te=i,ce.ERROR(e=(!e||typeof e===se)&&0le.extend(u.flags.extend?i:i.substring(1),a,o)):(s=u.pathmaker?Qt(u.path):u.path)&&(c=!(typeof a!=de||null==a||a instanceof Array||a instanceof Date),(l=!0===o)&&(o=1),CL(u.cl,function(){if(u.flags.diff){var e=kn(s);if(HASH(e)===HASH(a))return}if(An(s,a,null,o),c)return le.update(i,l,o,!0);DEF.monitor&&ne('set');var t,n=kn(s),r=[];u.flags2&&qt(u,s,n,o),void 0===o&&(o=1),null!=u.flags.type&&(o=u.flags.type);for(t of Ut(s)){if(u.flags.default&&t.$default)t.set(t.$default(),3);else if(t.setter||t.dom&&t.dom.setter)if(t.path===s)try{t.setterX(n,s,o)}catch(e){Fe(e)}else try{e=kn(t.path);t.setterX(e,s,o)}catch(e){Fe(e)}t.$ready||(t.$ready=!0),3!==o&&r.push(t),(l||u.flags.reset||u.flags.default)&&(t.config.touched=!1,t.config.modified=!1),(u.flags.change||u.flags.touch)&&(t.config.touched=!0),t.config.invalid=!!t.validate&&!t.validate(n)}Mn(r,o,5),u.flags.nowatch||$n(s,n,o)}))},le.push=function(e,r,i){if(e instanceof Array)for(var t=0;tt())):t()},t)},ce.CL_INIT=ce.CLINIT=function(e,t,n,r){var i;typeof n==j&&(r=n,n=''),typeof t===se&&(i=t,t=function(e){var t=i.split(' ');switch(t[0]=t[0].toLowerCase(),'!'===t[0].charAt(0)&&(t[0],t[0].substring(1)),t[0]){case'get':case'post':case'put':case'delete':case'patch':AJAX(i,e);break;default:TAPI(i,e)}}),e=Qt(e),le.cl[e]={callback:t,expire:n},r&&ce.CL(e,NOOP)},ce.CL=function(e,t){e?e.split(',').trim().wait(function e(n,r){n=Qt(n);var i=le.cl[n];i?!i.reload&&DEF.cl[n]?r():i.callback(function(e,t){!0===t?EXTEND('DEF.cl',e):SET('DEF.cl.'+n,e),i.date=NOW=new Date,i.reload=!1,r()}):DEF.cl[n]?r():setTimeout(e,le.delaywatcher,n,r)},t):t&&t()},ce.GET=function(e,t){if(e){var n=Jt(e),r=n.pathmaker?Qt(n.path):n.path;if(e=n.rawpath,!0===t)t=null,RESET(e,!0);else if(typeof t===ee)return void(null==(i=(n.flags.modified?Kt:kn)(r))?setTimeout(GET,fe.delaywatcher,e,t):(t(i),DEF.monitor&&ne('get'),n.flags.reset&&RESET(e,!0)));DEF.monitor&&ne('get'),n.flags.update&&setTimeout(ce.UPD,1,e);var i=n.flags.modified?Kt(r):n.flags.clone?CLONE(kn(r,t)):kn(r,t);return n.flags.reset&&ce.RESET(e,!0),n.flags2&&qt(n,r,i),i=n.format?n.format.fn(i,r,1,n.format.scope&&te?PLUGINS[te]:null):i}},ce.VALIDATE=function(e,t){var n,r=!0,e=Jt(e.replace(f,'')),i=e.pathmaker?Qt(e.path):e.path,a=[],r=!0;for(n of Ut(i,t))n.validate&&(n.config.invalid=!n.validate(n.get()),n.config.invalid&&(r=!1)),a.push(n);return Mn(a,1,1),e.flags&&e.flags.flags(i,GET(i)),r},le.default=function(e,t,n,r,i){if(!0!==t&&0on(t));DEF.monitor&&ne('compilation',1);fe.webcomponentsonly||!function u(e,f,t){if((e=e?$(e)[0]:Me.body)&&'0'!==(s=e?en(e,'compile'):'1')&&s!==U){var n=null,r=null,i=(e.$jcbind||(n=e.getAttribute(w+_)||e.getAttribute(_))&&(r=r||[]).push({el:e,b:n}),en(e)),h=(e.$com||null==i||f(i,e,0),e.childNodes),a=[];void 0===t?t=0:t++;for(var o=0;o!0!==e.importing,()=>t(r,n)):e.dependencies&&e.dependencies.length?(e.importing=!0,e.dependencies.wait(function(e,t){if(typeof e===ee)e(t);else{var n;if('@'===e.charAt(0))return n=e.substring(1),void(A.caniuse(n)?t():(ADD({name:n,prepend:!0}),WARN('The "{0}" component has downloaded the dependent component "{1}".'.format(r.name,n)),WAIT(()=>A.caniuse(n),t,500,2e3)));IMPORT((-1===e.indexOf('<')?'once ':'')+e,t)}},function(){e.importing=!1,t(r,n)})):setTimeout((e,t,n)=>e(t,n),5,t,r,n)}(o,function(e,t){var n;e.make&&(n=Ct,(Ct=e).make(),Ct=n),pn(t,e)},c,t):setTimeout(function(e,t,n){var r;n.make&&(r=Ct,(Ct=n).make(),Ct=r),e(t,n)},5,pn,t,c)}else(Ze[r]||(Ze[r]=1,Ze.$++),!n[2]||-1!==(s=n[2].indexOf('$url:'))&&(-1===(a=n[2].indexOf(';',s+5))&&(a=n[2].length),v=n[2].substring(s+5,a)),v)?1!==je.imports[v]&&(2!==je.imports[v]?(je.imports[v]=1,je.importing++,IMPORT(v,function(){je.importing--,je.imports[v]=2})):pt['$NE_'+r]||(pt['$NE_'+r]=!0)):pt['$NE_'+r]||(pt['$NE_'+r]=!0)}0'),t=e.substring(0,t+1);return'r?n.value:void 0}function dn(e,t){if(fe.makeurl&&(e=fe.makeurl(e)),t)return e;var t=[],n=encodeURIComponent,r=-1!==e.indexOf('.html');if(fe.version?t.push(fe.versionkey+'='+n(fe.version)):fe.versionhtml&&r&&t.push(fe.versionkey+'='+n(fe.versionhtml)),fe.language?t.push(fe.languagekey+'='+n(fe.language)):fe.languagehtml&&r&&t.push(fe.languagekey+'='+n(fe.languagehtml)),!t.length)return e;r=e.indexOf('?');return(e+=-1==r?'?':'&')+t.join('&')}function pn(e,t){var n=e[0],r=n.tagName;t.released&&t.released(HIDDEN(n)),DEF.monitor&&ne('components',1),le.components.push(t),je.init.push(t),r!==me&&p.test(e[0].innerHTML)&&on(e),t.$initialized=!0,setTimeout2('$ready',function(){Rn(),function e(){var t=je.init.pop();void 0===t?je.ready||on():(t.$removed||mn(t),e())}();var e=le.components.length;if($(Me).trigger('components',[e]),bt||(bt=!0,On(Y,X,'find'),ue.init&&EMIT('init'),ue.ready&&EMIT('ready')),setTimeout2('$initcleaner',function(){Cn();for(var e=ot.splice(0),t=0;tgn(e,t,n))}function vn(){var e=je.pending.shift();if(e)e();else if($t&&(je.ready&&(je.is=!1),fe.fallback&&Ze.$&&!je.importing)){for(var t=Q(Ze),n=0;ni.path.length){var a=e.lastIndexOf('.',i.path.length);-1!==a&&i.path===e.substring(0,a)&&(i.scope&&(te=i.scope),s=GET(i.path),i.fn.call(i.context,i.alias?i.alias.type+e.substring(i.alias.length):e,i.format?i.format(s,e,n):s,n))}else for(var o=0;o',t+8),o=e.substring(t,a+9),t=a+9,a=o.indexOf('>');-1!==(i=o.substring(0,a)).indexOf('type=')&&-1===i.lastIndexOf('java'+Ie)||o.substring(a+1,o.length-9).trim()||(n=n.replace(o,'').trim(),i='external'+HASH(o),pt[i]||(r.push(o),pt[i]=!0))}return r.length&&$('head').append(r.join('\n')),n}function En(e,t){var n=[],r=(e=e.replace(i,function(e){return e=e.replace(''.format(n.join('\n'))).appendTo('head'),e}function Tn(e,t,n){-1!==e.indexOf(' #')&&(r=(i=nr(e)).cl,e=i.path);var r,i=e.replace('--\x3e','->').indexOf('->');-1!==i&&(t=kn(e.substring(0,i).trim(),t),e=e.substring(i+3).trim()),CL(r,function(){n?n(e,t):le.set(e,t)})}function An(e,t,n,r){if(e){var i='+'+e;if(tt[i])return tt[i](fe.scope,t,e,Tt,wr,n,r);if(e&&-1===e.indexOf('?')){for(var a,o=In(e),u=[],s=[],c=0;c'#'+(t.push(e)-1))).split('.')){var i,a=(i=i.replace(/#\d+/g,e=>t[+e.substring(1)])).indexOf('[');-1===a||(r.push(i.substring(0,a)),n.push(r.join('.')),r.splice(r.length-1)),r.push(i),n.push(r.join('.'))}return n}function On(){if(arguments.length)for(var e in Ke){for(var t=!1,n=arguments,r=0;rt.path.length){for(var n=0;n=r)return;pt[o]=(pt[o]||0)+1,pt[a]&&clearTimeout(pt[a]),pt[a]=setTimeout(function(e){pt[o]=void 0,t&&t(e)},n,i)}else pt[a]&&clearTimeout(pt[a]),pt[a]=setTimeout(t,n,i);return e},ce.clearTimeout2=function(e){e=':'+e;return!!pt[e]&&(clearTimeout(pt[e]),pt[e]=void 0,pt[e+':limit']&&(pt[e+':limit']=void 0),!0)},ce.CONFIG=function(e,t){if(typeof e===se){if(-1!==e.indexOf(',')){for(var n=e.split(','),r=0;r'+i.join('&&'))}Qe.push({fn:e,config:t})},ce.MACRO=function(e,t){le.macros[e]=t},ce.EXTENSION=function(e,t,n){var r=e.indexOf(':'),i='',r=(-1!==r&&(i=e.substring(r+1).trim(),e=e.substring(0,r).trim()),e.charAt(0));if('@'===r||'*'===r)return r='*'===r?Yr():e.substring(1).trim(),void((r=ce.PLUGINS[r])?t.call(r,r):qe[e]&&-1===qe[e].indexOf(t)?qe[e].push(t):qe[e]=[t]);typeof t===ee&&(r=n,n=t,t=r),qe[e]?qe[e].push({config:t,fn:n,name:i}):qe[e]=[{config:t,fn:n,name:i}];for(var a=0;a=t.md.min&&e<=t.md.max?'md':e>=t.sm.min&&e<=t.sm.max?'sm':e>t.lg.min?'lg':e<=t.xs.max?'xs':''};function Zn(e){var t=e.length;return Qt(e.substring(0,t-1),0,1)+e.substring(t-1)}var er;function tr(e,t,n,r){setTimeout(function(){CL(r,function(){DEF.monitor&&ne('exec'),EXEC.call(e,!0,t,n[0],n[1],n[2],n[3],n[4],n[5],n[6])})},200)}function nr(e){var t=[];return{path:e=e.replace(b,function(e){return t.push(e.trim().substring(1)),''}),cl:t.length?t.join(','):''}}function rr(e){return er=[],e=e&&typeof e===se?e.replace(m,ir):e,er.length&&qt(er,e),e}function ir(e){return er.push(e.substring(2)),''}ce.FN=function(e,t){var n=(e=e.replace(u,Zn)).indexOf('=>');if(-1===n)return Hr(e)?FN('value=>'+Ir(e),!0):new Function('return '+(-1===e.indexOf('(')?'typeof({0})==\'function\'?{0}.apply(this,arguments):{0}'.format(e):e));var r=e.substring(0,n).trim(),e=e.substring(n+2).trim(),n=!1,i=(r=(r=r.replace(/\(|\)|\s/g,'').trim())&&r.split(','),123!==e.charCodeAt(0)||t||(n=!0,e=e.substring(1,e.length-1).trim()),(n?'':'return ')+e);switch(r.length){case 1:return new Function(r[0],i);case 2:return new Function(r[0],r[1],i);case 3:return new Function(r[0],r[1],r[2],i);case 4:return new Function(r[0],r[1],r[2],r[3],i);default:return new Function(i)}},ce.RECONFIGURE=function(e,t){SETTER(!0,e,'reconfigure',t)},ce.SETTER=function(e,t){for(var n,l,i,a,r,o,s=[],u=!0===e?3:2,f=te,h=u;hSETTER.apply(ce,e))},555,arguments)}else-1===n&&(i=arguments[2]),DEF.monitor&&ne('setters'),CL(r,function(){FIND(a,!0,function(e){te=f,c=-1!==i.indexOf('.'),ue.setter&&EMIT('setter',a,i,s[0],s[1]);for(var t=0;tSETTER.apply(ce,e))},555,arguments)}else{var p=FIND(a,!0),c=-1!==i.indexOf('.');DEF.monitor&&ne('setters'),ue.setter&&EMIT('setter',a,i,s[0],s[1]),CL(r,function(){for(var e=0;e/g,function(e){return-1===e.indexOf('path=')?e.substring(0,10)+' path="'+t+'"'+e.substring(10):e}).replace('PLUGIN(function(','PLUGIN(\'{0}\', function('.format(t))),e?n.replace(/~ID~/g,e):n):n},ce.inDOM=Dn,ce.EXE=ce.EXEC=function(e){var u,t=[],n=1,r=!1,i=this;!0===e&&(r=!0,e=arguments[1],n=2),e=e.env(),te&&(e=e.replace(g,te));for(var f=n;fEMIT.call(i,u,t[0],t[1],t[2],t[3],t[4])));if('-'===n)return c=e.substring(0,3)===y,h=[e.substring(c?3:1).trim(),t[0],t[1],t[2],t[3],t[4]],r&&h.unshift(r),void CL(o,()=>SETTER.apply(ce,h));if('&'!==n){ue.exec&&EMIT('exec',e,t[0],t[1],t[2],t[3]);var d,p=null,s=null,c=null,m=0;if('@'===n&&(c=e.indexOf('.'),s=e.substring(1,c),p=e.substring(c+1)),s||-1!==(c=e.indexOf('/'))&&(s=e.substring(0,c),p=e.substring(c+1)),s){var l=ce.PLUGINS[s];if(l&&typeof l[p]===ee)St=a=te,te=s,CL(o,function(){var e=a&&ce.PLUGINS[a];e&&e!==l&&(l.caller=e),St=s,l[p].apply(i===ce?l:i,t),DEF.monitor&&(ne('exec'),ne('plugins')),te=a,m=1});else if(s&&(a=kt[s])){if(!a.pending)return Ge('Initializing: '+s),a.pending=!0,void(typeof a.fn===se?CL(o,function(){IMPORT(a.fn,function(){(a=kt[s])&&ce.PLUGIN(a.name,a.fn,a.init,()=>tr(i,e,t))},e=>e.replace(/~PATH~|~ID~/g,a.name))}):(delete kt[s],CL(o,()=>ce.PLUGIN(a.name,a.fn,a.init,()=>tr(i,e,t)))));r=!0}r&&!m&&tr(i,e,t,o)}else{if('FUNC'===e.substring(0,5))return(d=FUNC[e.substring(6)])&&(CL(o,()=>d.apply(i===ce?l:i,t)),m=1),void(r&&!m&&tr(i,e,t,o));typeof(d=kn(e))===ee&&(CL(o,function(){d.apply(i,t),DEF.monitor&&ne('exec')}),m=1),r&&!m&&tr(i,e,t,o)}}else CL(o,()=>CMD.call(i,e.substring(1),t[0],t[1],t[2],t[3],t[4]))},ce.ATTRD=function(e,t){if(e){if(e instanceof jQuery)return e.attrd2(t||'id');if(e instanceof jQuery.Event)return $(e.currentTarget).attrd2(t||'id');if(typeof e.getAttribute===ee)return ce.ATTRD($(e),t);if(typeof e==de)return e[t||'id']}return e},ce.MAKE=function(n,e,t){switch(typeof n){case ee:e=n,n={};break;case se:var r=Qt(n),i=!0;return null==(n=kn(r))&&(i=!1,n={}),e.call(n,n,r,function(e,t){wn(n,e,t)}),!i||void 0!==t&&!0!==t?je.ready?An(r,n):le.set(r,n,!0):le.update(r,!0),n}return e.call(n,n,''),n},ce.OPT=function(n,e){typeof n===ee&&(e=n,n={});var r='';return e.call(n,function(e,t){return wn(n,r+e,t)},function(e){(r=null==e?'':e+'')&&(r+='.')}),n},ce.COPY=function(e,t){for(var n=Q(e),r=0;r'+(n?function(e,t){var n=t.indexOf('{'),r=[];for(;-1!==n;){var i=t.substring(0,n),a=t.indexOf('}',n+1);if(-1===a)break;a++;var o=[];if(-1===i.indexOf('@'))for(var s=i.split(','),c=0;c').appendTo('head')},'light');function pr(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}function mr(){return arguments[Math.floor(Math.random()*arguments.length)]}ce.APPEARANCE=function(e){for(var t=Object.keys(e),n=e.dark||e.darkmode,r=e.large||e.largemode,i=[],a='appearance',o=0;o>>0:r},ce.GUID=function(e){var t,n;if(!e)return t=(n=Date.now()).toString(16),n=(n/6e4>>0).toString(16),t.substring(0,8)+'-'+(t.length<8?t.substring(8).padLeft(4,'0'):t.substring(4,8))+'-'+mr(1,2,3,4,5)+n.substring(1,4)+'-'+mr(0,8,9,'a','b')+n.substring(4,7)+'-'+pr()+pr()+pr();for(var r=1+(e/10>>0),i=[],a=0;a>0).toString(16),a=0')?FN(Ir(a)):Hr(a)?FN('(value,path,el)=>'+Ir(a),!0):'@'===a.charAt(0)?s.com[a.substring(1)]:k||GET(a):1)for(var S=c.split('+'),R=0;RThelpers.'+a),L&&(l.$nn=1);break;case Re:b=!0,l=a;break;case'track':s[c]=a.split(',').trim();continue;case'tracktype':var P=a.split(',').trim();s[c]={};for(var j=0;jel.SETTER('+a+')'),L&&(l.$nn=1),M&&(l.$nv=1);break;case Se:N=a.charAt(0);l=/^(https|http):\/\//.test(a)||'/'===N||'.'===N||'['===N?'.'===N?a.substring(1):a:'value'===a||'true'===a?1:FN(Ir(a));break;case'tclass':l=a;break;case ke:f=!1;(H=v.find(Ie+','+xe).eq(0)).length?f=!0:H=v,l=VBINDARRAY(TRANSLATE(H.html()),v),M&&(l.$nv=1),f&&H.remove();break;case xe:o!==we&&o!==Te||(o='');var H,W,z='',U=(a=a.replace(/\{.*?\}/g,function(e){return z=e.replace(/\{|\}/g,'').trim(),''}).trim(),o?v.find(o):v),f=!1;(H=z?$(z):U.find(Ie+','+xe).eq(0)).length?f=!0:H=U,t=TRANSLATE(H.html());try{l=Tangular.compile(t)}catch(v){Fe(v),l=NOOP}L&&(l.$nn=1),M&&(l.$nv=1),a&&(W='',a=a.replace(/(-)?->.*/,function(e){return W=e.replace(/(-)?->/g,'').trim(),''}),l.$vdomattr=W),l.$vdom=a,l.$compile=t.COMPILABLE(),f&&!z&&H.remove();break;case ge:c='setpath'}'def'===c&&(l=new Function('return '+a)()),F&&L&&(s[c+'bk']='src'==c||'href'==c||'title'==c?v.attr(c):c==Ne?v.html():'text'==c?v.text():'val'==c?v.val():c==Ee?v.prop(c):'disable'===c?v.prop(ve):'enable'===c?0==v.prop(ve):''),o?(g[o]||(g[o]={}),c!==Oe&&'attr'!==c?g[o][c]=l:m.length&&(B=m.pop(),g[o].classes?g[o].classes.push(B):g[o].classes=[B])):c!==Oe&&'attr'!==c&&(s[c]=l)}else WARN('Invalid command '+w,e)}else-1!==a.indexOf('?')&&(x=cn(e))&&(a=x.makepath(a)),SET(a,$(e));else(function(t){s[c]=function(){var e=GET(t);return typeof e===ee?e():e}})(a=-1!==a.indexOf('?')&&(x=cn(e))?x.makepath(a):a);else s[c]=a}else{N=(r=w).charAt(0);if('!'===N&&(r=r.substring(1),s.notnull=!0),'*'===N&&(r=fe.pathcommon+r.substring(1)),'-'===(r='#'===N?fe.pathcl+r.substring(1):r)&&(r=(en(s.el)||'').split(re)[1]),1===h.length)return(l=GET(r))&&l.call(s.el,s.el),l||null;if((t=zt(r))&&(r=t.path,s.formatter=t.fn,s.formatter.scope=t.scope),'.'!==N){if('@'===(r='.'===r.substring(r.length-1)?r.substring(0,r.length-1):r).charAt(0)){for(var G=!1,Y=('@'===(r=r.substring(1)).charAt(0)&&(G=!0,r=r.substring(1)),r=r||'@',e.parentNode);Y;){if(G){if(Y.$ctrl){s.com=Y.$ctrl,'@'!==r||s.com.$dataw||(s.com.$dataw=1,s.com.watch(function(e,t){s.com.data('@',t)}));break}}else if(Y.$com){s.com=Y.$com;break}Y=Y.parentNode}if(!s.com)return null}}else s.virtual=!0,r=r.substring(1)}}for(A in g){s.child||(s.child=[]);var X=g[A];X.selector='-'===A.charAt(0)?oe:A,s.child.push(X)}if(s.empty||(s.empty=''),m.length&&(s.classes=m),s.virtual)r=Qt(r,0,1);else{if(r=s.com&&'@'===r.charAt(0)?r:Qt(r,0,1),T||-1!==r.indexOf('?')||s.formatter&&s.formatter.scope){if(!(x=cn(e)))return void WARN('Missing ',e);r=x.makepath(r),s.scope=x.path}s.check&&(s.check=s.check.replace(/\?/,s.scope));var _=r.split('.'),B='';if(s.com)s.com.$data[r]||(s.com.$data[r]={value:null,items:[]}),s.com.$data[r].items.push(s);else for(var V=!1,J=_.length,n=0;n=e)return t;return t},e.skip=function(e){for(var t=[],n=0;n=e)return n;n.push(this[r])}return n},br.VARIABLES=function(r){var e=this;return r=r||{},(e=e.replace(/--(\s)?[a-zA-Z\s]+=+.*?--/g,function(e){for(var t=!1,n=2;n]+(>|$)/g,'')},br.toASCII=function(){for(var e='',t=0;t=e)break;31=12 ? \'PM\':\'AM\')+\''}}),s&&o.push('var mm=W.MONTHS[d.getMonth()];'),c&&o.push('var dd=W.DAYS[d.getDay()];'),l&&o.push('var ww = new Date(+d);ww.setHours(0,0,0,0);ww.setDate(ww.getDate()+3-(ww.getDay()+6)%7);var ww1=new Date(ww.getFullYear(),0,4);ww=1+Math.round(((ww.getTime()-ww1.getTime())/86400000-3+(ww1.getDay()+6)%7)/7);'),pt[n]=new Function('d',o.join('\n')+'return \''+e+'\';'),pt[n](t)},ce.$jcdatempam=function(e){return 12<=e?e-12:e},$r.between=function(e,t){for(var n=Object.keys(e),r=0;re?a.substring(0,e||0):a.padRight(e||0,'0'):a).length&&void 0===n&&(n=fe.decimalseparator),s+o+(a.length?n+a:'')},br.SCOPE=function(e){var t,n=this;return-1===n.indexOf('?')||null==e?n:e instanceof Hn?e.scope?e.scope.makepath(n):e.scopepath(n):e instanceof zr?n.replace(g,e.name):e instanceof jQuery||e.nodeName?(t=$(e).scope())?t.makepath(n):n:e.makepath?e.makepath(n):n},br.padLeft=function(e,t){var n=this+'';return Array(Math.max(0,e-n.length+1)).join(t||' ')+n},br.padRight=function(e,t){var n=this+'';return n+Array(Math.max(0,e-n.length+1)).join(t||' ')},$r.padLeft=function(e,t){return(this+'').padLeft(e,t||'0')},$r.padRight=function(e,t){return(this+'').padRight(e,t||'0')},$r.add=$r.inc=function(e,t){var n=this;if(null==e)return n;if(typeof e==P)return n+e;var r,i=e.charCodeAt(0),a=!1,o=((i<48||57':return'>';case'"':return'"'}return e})+'"'),this},WAIT(function(){return!!ce.jQuery},function(){ce.isIE&&Le.on('keydown',function(e){var t;13===e.keyCode&&('BUTTON'!==(t=e.target.tagName)&&'INPUT'!==t&&'SELECT'!==t||e.preventDefault())}),$.fn.multiple=function(e){var t,n={};for(t in e)n[t]=this.find(e[t]);return n},$.fn.FIND=function(t,n,r,e){typeof n===ee&&(e=r,r=n,n=void 0);var i=this,a=tn(i,t);return typeof r!==ee?n?a:a[0]:(a.length?(a=n?a:a[0],r.call(a,a)):WAIT(function(){var e=i.FIND(t,n);return e instanceof Array?0$.fn.SETTER.apply(s,e))},555,arguments),s}d=-1!==i.indexOf('.'),CL(r,function(){s.FIND(a,!0,function(e){ue.setter&&EMIT('setter',a,i,c[0],c[1]);for(var t=0;t$.fn.SETTER.apply(s,e))},555,arguments),s}var h=s.FIND(a,!0),d=-1!==i.indexOf('.');CL(r,function(){ue.setter&&EMIT('setter',a,i,c[0],c[1]);for(var e=0;e'+e+'',Me.createDocumentFragment());n.firstChild.firstChild;)r.appendChild(n.firstChild.firstChild);return r=$(r),this.append(r),r},$.fn.psvg=function(e){var t;if(-1===e.indexOf('<'))return t=Me.createElementNS('http://www.w3.org/2000/svg',e),this.prepend(t),$(t);for(var n=Me.createElementNS('http://www.w3.org/1999/xhtml','div'),r=(n.innerHTML=''+e+'',Me.createDocumentFragment());n.firstChild.firstChild;)r.appendChild(n.firstChild.firstChild);return r=$(r),this.prepend(r),r},$.fn.binder=function(){return e(this,'$jcbind')},$.fn.vbind=function(){return e(this,'$vbind')},$.fn.vbindarray=function(){return e(this,'$'+ke)},$.fn.component=function(){return e(this,'$com')},$.fn.components=function(e){for(var t=this.find(oe),n=null,r=0;r>0)),isPRIVATEMODE&&e.aclass('jc-nostorage'),isTOUCH&&e.aclass('jc-touch'),isSTANDALONE&&e.aclass('jc-standalone'),le.ua);t.browser&&e.aclass('jc-'+t.browser.toLowerCase()),t.os&&e.aclass('jc-'+t.os.toLowerCase()),t.device&&e.aclass('jc-'+t.device.toLowerCase()),d(),(t=navigator.cookieEnabled)||(Me.cookie=he,t=-1!=Me.cookie.indexOf(he));t||e.aclass('jc-nocookies'),vt&&(clearTimeout(vt),vt=null,an());t='input['+k+'],textarea['+k+'],select['+k+']';$(Me).on('input','input['+k+'],textarea['+k+']',function(){var e=this,t=e.$com;if(t&&!t.$removed&&t.getter&&!1!==e.$jckeypress){if(e.$jcevent=2,void 0===e.$jckeypress){var n=en(e,'keypress');if(n?e.$jckeypress=n===we:null!=t.config.$realtime?e.$jckeypress=!0===t.config.$realtime:t.config.$binding?e.$jckeypress=1===t.config.$binding:e.$jckeypress=fe.keypress,!1===e.$jckeypress)return}void 0===e.$jcdelay&&(e.$jcdelay=+(en(e,'keypress-delay')||t.config.$delay||fe.delaykeypress)),void 0===e.$jconly&&(e.$jconly=en(e,'keypress-only')===we||2===t.config.$binding),e.$jctimeout&&clearTimeout(e.$jctimeout),e.$jctimeout=setTimeout(Ar,e.$jcdelay,e)}}).on('focus blur',t,function(e){var t,n=this,r=n.$com;'focusin'!==e.type||r||n.$jccheck||(t=$(n).closest(oe))&&(n.$com=n.uicomponent=t[0].$com),r&&!r.$removed&&r.getter&&('focusin'===e.type?n.$jcevent=1:1===n.$jcevent?(r.config.touched=!0,r.getter(n.value,3)):n.$jcskip?n.$jcskip=!1:((t=r.$skip)&&(r.$skip=!1),e=r.get(),fe.monitor&&Wn(r),r.setter(e,r.path,2),r.setter2&&r.setter2(e,r.path,2),t&&(r.$skip=t)))}).on('change',t,function(){var e=this,t=e.$com;if(!e.$jconly&&t&&!t.$removed&&t.getter){if(!1===e.$jckeypress)return e.$jcskip=!0,void t.getter(e.value,!1);switch(e.tagName){case'SELECT':var n=e[e.selectedIndex];return e.$jcevent=2,t.config.touched=!0,void t.getter(n.value,!1);case'INPUT':if('checkbox'===e.type||'radio'===e.type)return e.$jcevent=2,t.config.touched=!0,void t.getter(e.checked,!1)}e.$jctimeout?(t.config.touched=!0,t.getter(e.value,!0),clearTimeout(e.$jctimeout),e.$jctimeout=0):(e.$jcskip=!0,t.setter&&t.setterX(t.get(),e.path,2))}}),setTimeout(ce.PREF.load,2,E),$t=!0})},50),le.$parser.push(function(e,t,n){switch(n){case P:case'currency':case'float':var r=typeof t,i=null;if(r==se){switch(fe.thousandsseparator){case' ':t=t.replace(/\s/g,'');break;case',':t=t.replace(/\s|,/g,'');break;case'.':t=t.replace(/\s|\./g,'')}if(!(t=','===fe.decimalseparator?t.replace(o,'.'):t))return null;i=+t}else{if(r!=P)return null;i=t}return isNaN(i)?null:i;case j:case'bool':return null==t?null:!0===t||typeof t==se?'1'==t||t==we||'on'==t:!!t;case'date':case'datetime':return t?t instanceof Date||(t=t.parseDate())&&t.getTime()?t:null:null}return t});yr=Nr.prototype;function Dr(e){_n(e.el,e.focus)}function Cr(e){e.SETTER('*',Ae)}function Sr(e,t,n,r,i,a){e.$delay=null;var o=te;e.exec(t,n,r,!0,i,a),te=o}function Rr(e,t,n,r,i,a){var o=te;delete e.wcomrunning,e.exec(t,n,r,!0,i,a),te=o}function Mr(e,t,n,r,i,a){var o;e&&t.set&&((o=e[0].$com)&&!o.$removed&&o.$loaded&&!o.path&&(o.setter||o.dom&&o.dom.setter)?(o.$jcbind!==t&&((o.$jcbind=o.uibind=t).vbind&&t.vbind.vbindarray?o.$jcbindset=t.vbind.vbindarray.path+'['+t.vbind.index+'].'+t.path:o.$jcbindset=t.vbind?null:t.path,o.$jcbindget=t.path),o.setterX(n,r,i),t.setid&&(clearTimeout(t.setid),delete t.setid)):(!a||a<30)&&(t.setid&&clearTimeout(t.setid),t.setid=setTimeout(Mr,100,e,t,n,r,i,a||1)))}function Lr(e,t){return t?e.getAttribute(t):e.outerHTML}function Fr(e,t,n){n=''===(e=t.helper&&(!t.helper.$nn||null!=e)?t.helper(e):e)?t.empty:null==e?t.empty||(n?t[n+'bk']:''):t.currency?e.currency(t.currency):null!=t.format?e.format(e instanceof Date?t.format||null:t.format||0):e;return null==n?'':n}function Pr(e,t){e.$binderconfig&&clearTimeout(e.$binderconfig),e.$binderconfig=setTimeout(jr,fe.delaybinder,e,t)}function jr(e,t){e.$binderconfig=null;var n=e.$com;n&&n.$initialized?n.reconfigure(t):Pr(e,t)}function Hr(e){return-1!==e.indexOf(Te)&&(/\W/.test(e)||e===Te)}function Wr(e,t,n){var r=Nt,i=(Nt=e.id,delete e.pending,te=e.name,t.call(e,e),qe['@'+e.name]);if(i)for(var a of i)a.call(e,e);if(i=qe['@'+e.id])for(var a of i)a.call(e,e);ue.plugin&&EMIT(M,e),DEF.monitor&&ne('plugins',t?1:0),ce.PLUGINS[e.name]=e,te=null,n&&n(),Nt=r}function zr(e,t,n,r,i){ce.PLUGINS[e]&&ce.PLUGINS[e].$remove(!0);var a=this,e=(a.element=$(Dt||Me.body),a.id='plug'+e,a.name=e,a.caller=i,{get(){return GET(a.makepath())||{}},set(e){SET(a.makepath(),e)}});Object.defineProperty(a,'parent',{get(){var e=this.element.scope();return e&&e.parent?e.parent.plugin:null}}),Object.defineProperty(a,'model',e),Object.defineProperty(a,'data',e),Object.defineProperty(a,'form',{get(){return GET(a.makepath()+' @reset')||{}}}),Object.defineProperty(a,'modified',{get(){return GET(a.makepath()+' @reset @modified')||{}}}),n?(a.pending=!0,typeof n===se?MIDDLEWARE(n.split(/\s|,/).trim(),function(){Wr(a,t,r)}):n.call(a,function(){Wr(a,t,r)},a)):Wr(a,t,r)}yr.refresh=function(){var e=te;this.exec(GET(this.path),this.path),te=e},yr.exec=function(e,t,u,n,r,f){var i=this;if(!i.disabled){fe.monitor&&Wn(i);var a=i.el;if(null!=u){if(null==i.child)return;if(null==(i=i.child[u]))return}if(!i.notnull||null!=e){if(i.wcom){i.wcomrunning&&clearTimeout(i.wcomrunning),i.wcomrunning=null;for(var o=0;oi.path.length))return;if(i.track&&i.path!==t){for(r=!1,o=0;o
'.format(n,I)),!!l.controls),N=l.controls||v,D=null!=l.visibleX&&l.visibleX,C=null!=l.visibleY&&l.visibleY,S=l.orientation,h=!S||'x'===S,d=!S||'y'===S,R=-1!==navigator.userAgent.indexOf('Edge'),I=(N.prepend(('
'+(d?'
':'')+(h?'
':'')).format(n,I)),v[0].$scrollbar=u,null==l.padding&&(l.padding=5),l.minsize||(l.minsize=50),'[data-id="{0}"]'.format(I)),M='pointer-events',L=N.find('.'+n+'-path'+I),F=h?$(L.find('.'+n+'-x'+I)[0]):null,P=d?$(L.find('.'+n+'-y'+I)[0]):null,j=h?$(F.find('span')[0]):null,H=d?$(P.find('span')[0]):null,W=v.find('.'+n+'-body'+I),p=$(v.find('> .'+n+'-area'+I)[0]),I='shadow',z=0,U=(l[I]&&(v.prepend(('
'+(h?'
':'')+(d?'
':'')+'
').format(n,I)),o=v.find('> .'+n+'-'+I),d&&(b=o.find('> .'+n+'-'+I+'-top'),y=o.find('> .'+n+'-'+I+'-bottom')),h&&(E=o.find('> .'+n+'-'+I+'-left'),T=o.find('> .'+n+'-'+I+'-right')),z=b?b.height():E.width()),!0),G=[],Y=[],X='cs'+GUID(5),m={},_=(u.options=l,u.pathx=F,u.pathy=P,u.barx=j,u.bary=H,u.element=v,u.area=p,u.body=W,{}),B=(_.onmousemove=function(e){var t,n,r;i.is&&('y'===i.type?(n=e.pageY-i.offset,r=f.vbarlength-f.vbarsize,p[0].scrollTop=(f.scrollHeight-f.viewHeight+(l.marginY||0))/100*(100<(t=(n=n<0?0:n)/r*100)?100:t),10>0)<0?e=0:rf.viewWidth-10?f.viewWidth:e.offsetX-10,t=Math.ceil(t/(f.viewWidth-f.hbarsize)*100),u.scrollLeft((f.scrollWidth-f.viewWidth+(l.marginX||0))/100*(100f.viewHeight-10?f.viewHeight:e.offsetY-10,t=Math.ceil(t/(f.viewHeight-f.vbarsize)*100),u.scrollTop((f.scrollHeight-f.viewHeight+(l.marginY||0))/100*(100WW&&(f.viewWidth=WW),f.viewWidth>screen.width&&(f.viewWidth=screen.width),c=f.viewWidth-i,a=f.viewHeight-o,m.md!=n&&L.tclass(be,n)):(c=f.viewWidth+(d?f.margin:0)-i,a=f.viewHeight+(h?f.margin:0)-o),m.aw!==c&&(m.aw=c,n||p.css($e,c),b&&(s=l.marginshadowY||0,b.css($e,f.viewWidth-s),y.css($e,f.viewWidth-s)),T&&T.css('left',f.viewWidth-z),W.css('y'===S?$e:'min-'+$e,f.viewWidth-i+(ce.isIE||R||!r?f.margin:0)-('x'===S?f.margin:0))),m.ah!==a&&(m.ah=a,p.css(ye,a),y&&y.css('top',f.viewHeight-z)),f.scrollWidth=t.scrollWidth||0,f.scrollHeight=t.scrollHeight||0,h&&(f.clientWidth=Math.ceil(p.innerWidth())),d&&(f.clientHeight=Math.ceil(p.innerHeight())),o=l.thickness||10,!f.thicknessH&&h&&(f.thicknessH=(F.height()||o)-1),!f.thicknessV&&d&&(f.thicknessV=(P.width()||o)-1),null==f.hpos&&(f.hpos=0),null==f.vpos&&(f.vpos=0),h&&(te.top=f.viewHeight-f.thicknessH,te.width=f.viewWidth,l.marginXY&&(te.top-=l.marginXY),l.marginX&&(te.width-=l.marginX),E&&(s=l.marginshadowX||0,c=!1===l.floating?0:F.height(),E.css(ye,te.top-(l.marginshadowX||0)+c),T.css(ye,te.top-(l.marginshadowX||0)+c)),(i=F.css('left'))&&(i=i.parseInt(),te.width-=2*i),l.padding&&(te.top-=l.padding),F.css(te)),d&&(O?(ne.left=N.width()-f.thicknessV,ne.height=N.height()):(ne.left=f.viewWidth-f.thicknessV,ne.height=f.viewHeight),l.padding&&(ne.left-=l.padding),(a=P.css('top'))&&(a=a.parseInt(),ne.height-=2*a),l.marginYX&&null!=te.left&&(te.left-=l.marginYX),l.marginY&&(ne.height-=l.marginY),P.css(ne),f.vbar=5>0,f.vbarsizef.clientWidth,f.hbar&&(f.hbarsize=f.clientWidth*(te.width/f.scrollWidth)>>0,f.hbarlength=te.width,f.hbarsize>8*s&255);for(s=0;ssn(n,e),It.push(e)))):ft.push(e)}function Jr(e){Ot.push(e),vr&&clearTimeout(vr),vr=setTimeout(ln,15)}Ur.upload=function(e,t,n){return Gr(this,'UPLOAD',e,t,n)},Ur.tapi=function(e,t,n){return Gr(this,'TAPI',e,t,n)},Ur.api=function(e,t,n){return Gr(this,'API',e,t,n)},Ur.dapi=function(e,t,n){return Gr(this,'DAPI',e,t,n)},Ur.wapi=function(e,t,n){return Gr(this,'wapi',e,t,n)},Ur.ajax=function(e,t,n){return Gr(this,'AJAX',e,t,n)},Ur.on=function(e,t,n){return this.scope(),ON(e,t,n),this},Ur.watch=function(e,r,t){var n=r;this.scope(),typeof n===ee&&(n=function(e,t,n){r(t,e,n)}),e=e.split(',').trim();for(var i=0;i'+t[1]):null),('plug'+te||'')+'_'+GUID(5)),t=0;e&&s(t++,te),xt[u]=setTimeout(s,o,te,t)},ce.QUEUE=function(e,t){typeof e==ee&&(t=e,e=y);var n=(n=mt[e])||(mt[e]=[]);return t?(n.push({fn:t,scope:te}),ce.QUEUE(e)):n.isrunning||(t=n.shift())&&(n.isrunning=!0,te=t.scope,t.fn(function(){n.isrunning=!1,ce.QUEUE(e)},n.length)),n.length},ce.WORKFLOW=function(e,t,n){typeof t===ee&&(n=t,t=void 0);var i={};return i.tasks=t||{},i.scope=te,i.callback=function(e){n=e},i.next=i.trigger=function(e,t){setTimeout(i.nextforce,5,e,t)},i.nextforce=function(e,t){var n,r;i&&(i.prev=i.current,(n=i.tasks[e])?(r=te,te=i.scope,i.current=e,null!=t&&(i.value=t),n(i,i.value),te=r):i.destroy())},i.next2=function(t){return function(e){i&&i.next(t,e)}},i.invalid=function(e){i.error?i.error(e,i):n||WARN('WORKFLOW: '+i.current,e),n&&n.call(i,DEF.ajaxerrors?e:null,e,i)},i.push=function(e,t){i.tasks[e]=t},i.done=function(e){null==e&&(e=i.value),n&&n.call(i,e,null,i)},i.clone=function(){return ce.WORKFLOW(null,i.tasks)},i.destroy=function(){i=null},e&&e(i),i},ce.NODEINDEXOF=function(e){for(var t=(e=e instanceof jQuery?e[0]:e).parentNode.children,n=0;n',e)):ut.push({el:e,path:t,config:n})},customElements.define('ui-plugin',class extends HTMLElement{constructor(){super(),this.ui={$new:1,$type:M},Ue?setTimeout(cn,1,this):ct.push(this)}}),customElements.define('ui-bind',class extends HTMLElement{constructor(){super(),setTimeout(ce.NEWUIBIND,2,this)}}),customElements.define('ui-component',class extends HTMLElement{constructor(){super(),setTimeout(Vr,1,this)}static get observedAttributes(){return[De]}reconfigure(e,t,n){null==e&&(e=this.getAttribute(De)),this.$com.reconfigure(e,null,t,n)}modify(e,t){this.$com.modify(e,t)}read(e){return this.$com.read(e)}get(){return GET(this.$com.path)}set(e,t){this.config.modified=!0,SET(this.$com.path,e,t)}update(e){this.config.modified=!0,SET(this.$com.path,this.get(),e)}reset(){this.reconfigure({invalid:!1,modified:!1})}attributeChangedCallback(e,t,n){this.$initialized&&e===De&&this.$com.reconfigure(n)}}),customElements.define('ui-import',class extends HTMLElement{constructor(){super(),setTimeout(Jr,1,this)}})}(); (function(p){var v='NAV.';var h={version:16.3,hashtags:false,middlewares:{},params:[],query:{},query2:{},routes:[],url:'',count:0};var d={$prev:[],$next:[],isReady:false,LIMIT_HISTORY:100,LIMIT_HISTORY_ERROR:100};h.history=d.$prev;var f=location;!p.NAV&&(p.NAV=h);h.custom=function(r){h.$custom=true;if(r==null||r==true||typeof r==='string')CACHEPATH('NAV.href',r==null||r==true?'1 month':r)};h.remember=function(r,e){if(e===null)delete h.query2[r];else h.query2[r]=e==undefined?h.query[r]:e};h.remove=function(r){r=r.env(true).ROOT(true);var e=[];for(var t=0;te.priority?-1:r.priorityh.LIMIT_HISTORY&&d.$prev.shift();d.$next.length>h.LIMIT_HISTORY&&d.$next.shift();h.$save&&h.save()}}if(h.isback!==d.$prev.length)SET(v+'isback',d.$prev.length);if(h.isforward!==d.$next.length)SET(v+'isforward',d.$next.length);for(var s=0;s0)continue;f.count++;a.push(f);break}var l=false;var c=[];var p=h.url;h.url=r;if(h.url!==p)UPD(v+'url');UPD(v+'href');h._params(n);h.params=h._route_param(o,f);UPD(v+'params');h.is404=false;EMIT('location',r);for(var s=0;sCL(e,()=>r()))})(a.substring(1));continue}var u=h.middlewares[a];u&&function(e,t){n.push(function(r){if(h.url!==i){n=null;r=null;e.pending=false}else t.call(h,r,e.options,e.roles,e)})}(e,u)}if(!e.init){e.pending=true;n.jRmiddleware(function(r){if(h.url===i)!r&&e.fn.apply(h,h.params);e.pending=false},e);return}e.pending=true;e.init(function(){n.jRmiddleware(function(r){if(h.url===i)!r&&e.fn.apply(h,h.params);e.pending=false},e)});e.init=null})(f)}l&&h.status(500,c);if(u){h.is404=true;h.status(404)}else h.is404=false};h.prev=function(){return d.$prev[d.$prev.length-1]};h.next=function(){return d.$next[d.$next.length-1]};h.back=function(){var r=d.$prev.pop()||'/';if(h.url&&h.next()!==h.url)d.$next.push(h.url);h.url='';p.REDIRECT(r);h.$save&&h.save();return h};h.forward=function(){var r=d.$next.pop()||'/';if(h.url&&h.prev()!==h.url)d.$prev.push(h.url);h.url='';p.REDIRECT(r);h.$save&&h.save();return h};h.status=function(r,e){EMIT(r+'',e);return h};NAV.redirect=p.REDIRECT=function(r){if(!r)r=h.url;var e=false;r=r.env(true).ROOT(true).replace(/\s(@)?nohistory/i,function(){e=true;return''});if(Object.keys(h.query2).length)r=QUERIFY(r,h.query2);r=r.flags(null,r,'redirect');if(r.indexOf('./')!==-1){var t=NAV.url;var n=r.indexOf('?');var i=n===-1?'':r.substring(n);if(r==='./'){REDIRECT(NAV.url);return}var a=r.match(/\.\.\//g);var u=t.split('/').trim();t='/'+u.splice(0,u.length-a.length).join('/');if(t.charAt(t.length-1)!=='/')t+='/';t+=i;REDIRECT(t);return}var o=r.charCodeAt(0);var s=f;if(o===35){s.hash=r;h.location(r,false)}else if(h.$custom){h.location(r,false)}else if(history.pushState){if(!e)history.pushState(null,null,r);h.location(s.pathname+s.search,false)}else s.href=r};h._params=function(r){var e={};h.queryraw=(r||f.search).substring(1);var t=h.queryraw.split('&');for(var n=0;n0)t++}while(e>0);return t};h.clientside=function(r){$(document).on('click',r,function(r){r.preventDefault();var e=$(this);var t=e.attr('href')||e.attrd('href')||e.attrd('url');if(t!=='javas'+'cript:vo'+'id(0)'&&t!=='#')p.REDIRECT(t)});return h};function r(){NAV.ua=MAIN.ua;$(document).ready(function(){if(!h.$custom){if(h.hashtags)h.url=f.hash||h.path(g(f.pathname));else h.url=h.path(g(f.pathname))}setTimeout(function(){if(!d.isReady)h.location(h.href||h.url)},5);$(p).on('hashchange',function(){d.isReady&&h.hashtags&&h.location(h.path(f.hash))}).on('popstate',function(){if(d.isReady&&!h.hashtags&&!h.$custom){var r=h.path(f.pathname);h.url!==r&&h.location(r)}})})}if(p.jQuery&&p.MAIN&&p.MAIN.loaded){r()}else{h.init=setInterval(function(){if(p.jQuery&&p.MAIN&&p.MAIN.loaded){clearInterval(h.init);r()}},100)}h._params()})(window); /*