forked from totaljs/jComponent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjc.min.js
1 lines (1 loc) · 159 KB
/
jc.min.js
1
!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(ze),t=0;t<e.length;t++){var n=e[t],r=ze[n];r&&r.expire>NOW?ze[n]=r:delete ze[n]}ce.PREF.save(ze)}function y(e){if(e=typeof e===oe?PARSE(e):e){var t=!1;for(r in e){var n=e[r];n&&n.expire>NOW?(ze[r]=n,Ue[r]||(ce.PREF[r]=n.value)):t=!0}if(ze.PATHS)for(var r in ze.PATHS)le.set(r,ze.PATHS[r],!0);t&&setTimeout2('PREF',ce.PREF.save,1e3,null,ze)}le.loaded=!0,Ge=1;for(var i of ct)ce.PLUGIN(i.name,i.fn);for(var a of lt)ln(a);for(var s of ht)Br(s);for(var o of ft)NEWUIBIND(o.el,o.path,o.config);ct.length=0,lt.length=0,ht.length=0,ft.length=0,NOTIFY('PREF'),on()}var a=/GET|POST|PATCH|PUT|DELETE\s/,p=/(data--|data---|data-import|-bind|bind)=|COMPONENT\(/,l=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>|<style\b[^<]*(?:(?!<\/style>)<[^<]*)*<\/style>/gi,i=/<style\b[^<]*(?:(?!<\/style>)<[^<]*)*<\/style>/gi,t=/(\[.*?\])/gi,s=/\{{1,2}[a-z0-9_.-\s]+\}{1,2}/gi,o=/,/g,u=/[^a-zA-Zá-žÁ-Žа-яА-Я\d\s:]/g,f=/[a-z0-9_-]+\/[a-z0-9_]+\(|(^|(?=[^a-z0-9]))@[a-z0-9-_]+\./i,te=/_{2,}/,k=/\s(repeat|cancel|urlencoded|json|noencrypt|nodecrypt|nocsrf|error|#[a-z0-9_-]+|@[a-z0-9_-]+)/gi,ne=/^[^a-z0-9.]/,h=/\.\*/,d=/\[\d+\]$/,g=/\?/g,re=/\?\/|\?\./,v=/\?\//g,m=/^(-)?[0-9.]+$/,n=/\s@[a-z0-9]+/gi,b=/\s#[a-z0-9_-]+/gi,E='---',A='--',w='data-',ie='ui-component,[data--],[data'+E+']',x='ui-bind,[data-bind],[bind]',O='data-jc-bind',ae='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',L='plugin',M=w+''+R,F=w+''+L,K='function',oe='string',P='number',he='object',j='boolean',se='null',H='env',W=/am|pm/i,z='x-csrf-token',de='BODY',pe='path',me='disabled',ge='hidden',ve='width',be='height',$e='checked',ye='value',Ee='resize',U='false',Te='true',G='response',Y='valid',X='dirty',_='bind',Ae='template',we='vbindarray',xe='script',B='PATHS',Oe='class',Ie='html',ke='config',Ne='default',V='jc-compile',De='import',J='jctmp.',Ce='click',q='ERR_CONNECTION_CLOSED',Q=Object.keys,Se={':':1,'"':1,'[':1,']':1,'\'':1,_:1,'{':1,'}':1,'&':1,'=':1,'+':1,'-':1,'\\':1,'/':1,',':1},Re=!1,Le='DEF.cl.',ce=window,Me=$(ce),Fe=document,Pe=function(e){ce.console&&ce.console.error(e)},je=function(e,t){return e||t?!e&&t?-1:e&&!t?1:ce.Intl?ce.Intl.Collator().compare(e,t):(e+'').localeCompare(t+''):0},He={},le={},We=ce.localStorage,ze={},Ue={set:1,get:1,save:1,load:1,keys:1},Ge=0,Ye=ce.WARN=function(){ce.console&&ce.console.warn.apply(ce.console,arguments)},Xe=(ce.VISIBLE=function(e,t,n){if((e=e instanceof jQuery?e[0]:e).parentNode&&e.parentNode.tagName!==de)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!==de)&&(ce.isIE?!e.offsetWidth&&!e.offsetHeight:!e.offsetParent)},ce.LOCALIZE=function(e){for(var t=e.split('\n'),n=0;n<t.length;n++){var r,i,a=t[n].trim();!a||'//'===a.substring(0,2)||-1!==(r=a.indexOf(':'))&&(i=a.substring(0,r).trim(),a=a.substring(r+1).trim(),DEF.dictionary[i]=a)}},ce.TRANSLATE=function(e){if(!e||typeof e!==oe||-1===e.indexOf('@('))return e;for(var t=0,n=[];-1!==(t=e.indexOf('@(',t));)for(var u=e.length,r=0,i=t+2;i<u;i++){var a=e[i];if('('!==a){if(')'===a){if(!r){n.push(e.substring(t,i+1)),t=i;break}r--}}else r++}for(i=0;i<n.length;i++){var s=n[i],o=s.substring(2,s.length-1),c=HASH(o).toString(36),l=(l=DEF.dictionary[c])||DEF.dictionary['T'+c];e=e.replace(s,l||o)}return e},ce.PREF={get:function(e,t){var n=ze[e],n=n&&n.expire>NOW?n.value:void 0;return t&&void 0!==n&&Xe.set(e,n,t),n},set:function(e,t,n){return void 0===t?(delete ze[e],Ue[e]||delete ce.PREF[e]):(ze[e]={value:t,expire:NOW.add(n||'1 month')},Ue[e]||(ce.PREF[e]=t)),NOTIFY('PREF.'+e),setTimeout2('PREF',r,fe.delaypref),t},keys:function(){return Q(ze)},load:function(e){e(!ce.isPRIVATEMODE&&PARSE(We.getItem(fe.localstorage+'.pref')))},save:function(e){ce.isPRIVATEMODE||We.setItem(fe.localstorage+'.pref',STRINGIFY(e))}});ce.jctmp={},(ce.W=ce).FUNC={},ce.REPO={};try{var e='jc.test';We.setItem(e,'1'),ce.isPRIVATEMODE='1'!==We.getItem(e),We.removeItem(e)}catch(e){ce.isPRIVATEMODE=!0,Ye('jC: localStorage is disabled')}var _e,Be,Ve=null,Je={},qe={},Qe={},Ke=[],Ze={},et={$:0},tt=[],nt={},ue={},rt=[],it={},at=[],st={},ot=[],ct=[],lt=[],ut={},ft=[],ht=[],dt={},pt={},mt={},gt={},vt={},bt=setTimeout(sn,2),$t=!1,yt=!1,Et=0,Tt=0,At={},wt=[],xt={},Ot={},It={},kt=[],Nt=[],Dt=null,Ct=null,St=null,Z=null,Rt=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(te);1<a.length?(r=a[1],-1!==(i=(e=a[0]).indexOf('.*'))&&(e=e.substring(0,i)),SET(e+' @default',new Function('return '+r)(),10<t?t:3,10<t?3:null)):le.default(a[0],t,null,n)},ce.DEF=le.defaults={}),Lt=fe.environment={},Mt='',Ft=(fe.cl={},fe.dictionary={},fe.cdn='',fe.prefixcsscomponents='ui-',fe.prefixcssmacros='m-',fe.prefixcsslibrary='ui-',ce.DEBUG=function(){Mt||(Re=!0)},fe.secret=function(e,t,n){Mt=e,!0===t?n=!0:(_e=t,Be=1==n),delete fe.secret},fe.repeatfocus=!0,fe.monitor=!1,fe.scope=ce,fe.delay=555,fe.delaykeypress=200,fe.delaywatcher=555,fe.delaybinder=200,fe.delayrepeat=2e3,fe.delaypref=1e3,fe.keypress=!0,fe.scrollbaranimate=!0,fe.jsoncompress=!1,fe.jsondate=!0,fe.iconprefix='ti ti-',fe.ajaxerrors=!1,fe.ajaxcredentials=!1,fe.ajaxcredentialshtml=!1,fe.fallback='https://cdn.componentator.com/j-{0}.html',fe.fallbackcache='',fe.version='',fe.versioncomponents='',fe.headers={'X-Requested-With':'XMLHttpRequest'},fe.devices={xs:{max:768},sm:{min:768,max:992},md:{min:992,max:1200},lg:{min:1200}},fe.importcache='session',fe.baseurl='',fe.root='',fe.makeurl=null,fe.empty=E,fe.jsonconverter={'text json':function(e){return e}},fe.thousandsseparator=' ',fe.decimalseparator='.',fe.dateformat='yyyy-MM-dd',fe.timeformat='HH:mm',fe.dateformatutc=!1,fe.localstorage=ae,fe.languagekey='language',fe.versionkey='version',fe.currencies={},fe.firtdayofweek=1,Lt.ts=fe.dateformat+' - '+fe.timeformat,Lt.date=fe.dateformat,Lt.time=fe.timeformat,ce.MONTHS=le.months='January,February,March,April,May,June,July,August,September,October,November,December'.split(','),ce.DAYS=le.days='Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday'.split(','),DEF.validators={}),Pt=(Ft.url=/http(s)?:\/\/[^,{}\\]*$/i,Ft.phone=/^[+]?[(]?[0-9]{3}[)]?[-\s.]?[0-9]{3}[-\s.]?[0-9]{4,8}$/im,Ft.email=/^[a-zA-Z0-9-_.+]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/i,DEF.regexp={}),e=(Pt.int=/(-|\+)?[0-9]+/,Pt.float=/(-|\+)?[0-9.,]+/,Pt.date=/YYYY|yyyy|YY|yy|MMMM|MMM|MM|M|dddd|DDDD|DDD|ddd|DD|dd|D|d|HH|H|hh|h|mm|m|ss|s|a|ww|w/g,Pt.pluralize=/#{1,}/g,Pt.format=/\{\d+\}/g,le.loaded=!1,le.version=19.128,le.scrollbars=[],le.$components={},le.binders=[],le.macros={},le.performance={plugins:{},scopes:{},components:{},binders:{},events:{},setters:{},exec:{},set:{},get:{},watchers:{},requests:{},compilation:{},validation:{},reset:{},lazy:{},changes:{},repeat:{},cmd:{},returns:{}},le.components=[],le.$formatter=[],le.$parser=[],le.compiler=He,le.paths={},le.cl={},He.is=!1,He.recompile=!1,He.importing=0,He.pending=[],He.init=[],He.imports={},He.ready=[],He.counter=0,Object.freeze);function jt(e){function t(){var e,t=this;'UI-BIND'===t.tagName?(ce.NEWUIBIND(t,null,null,!0),t.ui&&n.binders.push(t.ui)):(e=(e=$(t)).attrd(_)||e.attr(_),t.$jcbind=kr(t,e,EMPTYARRAY),t.$jcbind&&n.binders.push(t.$jcbind))}var n=this,e=n.element=$(e);n.binders=[];e.filter(x).each(t),e.find(x).each(t)}e&&(e(EMPTYOBJECT),e(EMPTYARRAY)),le.compile=on;var Ht=jt.prototype,Wt=(Ht.on=function(){return this.element.on.apply(this.element,arguments),this},Ht.remove=function(){var e=this.element;return e.find('*').off(),e.off().remove(),this.element=null,this.binders=null,this.value={},null},Ht.get=function(e){var t=this.value;return e?On(e,t):t},[null]);function zt(e){for(var t={},n=e.split('\n'),r=0;r<n.length;r++){var i=n[r],a=i.indexOf(':');-1!==a&&(t[i.substring(0,a).toLowerCase()]=i.substring(a+1).trim())}return t}function Ut(e){var t=e.indexOf('--\x3e'),n=3,r=(-1===t&&(t=e.indexOf('->'),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 Gt(e,t){if(typeof t===oe){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=Kt(e=-1!==i?e.substring(0,i):e,0,1),[]),s=le.components,o=0;o<s.length;o++){var c=s[o];c&&!c.$removed&&c.$loaded&&c.path&&c.$compare(e)&&(t&&(t.visible&&!c.visible()||t.hidden&&!c.hidden()||t.enabled&&!c.config.disabled||t.disabled&&c.config.disabled)||a.push(c))}return a}Ht.set=function(e,t,n){return null==t?(this.value=t=e,e=''):xn(this.value,e,t),this.upd(e,n),this},Ht.upd=function(e,t){var n=this;!t&&n.vbindarray&&(t=n.vbindarray.$checksum(n.value),n.element[0].$bchecksum!==t&&(n.element[0].$bchecksum=t));for(var r=0;r<n.binders.length;r++){var i=n.binders[r];i instanceof Array||(Wt[0]=i,i=Wt);for(var a=0;a<i.length;a++){var s=i[a];!s||e&&s.path&&!function(e,t){if(t.length>e.length){for(var n=0;n<e.length;n++){var r=t.charAt(n),i=e.charAt(n);if(r!==i)return!1}var a=t.charAt(n);return'.'===a||'['===a||''===a}return e===t}(s.path,e)||s.exec(s.path?On(s.path,n.value):n.value,e||s.path)}}return n},ce.VBIND=function(e){return new jt(e)},ce.VBINDARRAY=function(e,t){function o(e){switch(typeof e){case P:return e.toString(36);case j:return e?'1':'0';case oe:return HASH(e).toString(36);default:return null==e?'':(e instanceof Date?e.getTime():HASH(JSON.stringify(e).replace(/"|:|\{|\}|\[|\]/g,''))).toString(36)}}var u={};u.html=e,u.compile=e.COMPILABLE(),u.items=[],u.element=t instanceof Hn?t.element:$(t),(u.element[0].$vbindarray=u).value=[],u.remove=function(){for(var e=0;e<u.items.length;e++)u.items[e].remove();u.checksum=null,u.items=null,u.html=null,u.element=null};return u.$checksum=function(e){var t='',n=u.items[0];if(n)for(var r=0;r<n.binders.length;r++){var i=n.binders[r],a=i.path;if(i.track)for(var s=0;s<i.track.length;s++)t+=o(On((a?a+'.':'')+i.track[s].substring(1),e));else t+=o(a?On(a,e):e)}return HASH(t).toString(36)},u.get=function(e){var t=u.value;return null==e?t:t[e]},u.upd=function(e){return null==e?u.set(u.value):u.set(e,u.value[e]),u},u.set=function(e,t){var n=null;if(null==e){for(var r=u.items.splice(0),i=0;i<r.length;i++)r[i].remove();return u}if(!(e instanceof Array))return(s=u.items[e])&&(n=u.$checksum(t),l=s.element[0],s.value=t,u.value[e]=t,l.$bchecksum!==n&&(l.$bchecksum=n,s.set(t))),u;if(u.value=t=e,u.items.length>t.length)for(var a=u.items.splice(t.length),i=0;i<a.length;i++)a[i].remove();for(i=0;i<t.length;i++){var s,o=t[i];if(!(s=u.items[i])){s=VBIND(u.html),u.items.push(s),s.element.attrd('index',i),(s.element[0].$vbind=s).index=i,s.vbindarray=u;for(var c=0;c<s.binders.length;c++)s.binders[c].vbind=s;u.element.append(s.element)}var l=s.element[0];n=u.$checksum(o),s.value=o,l.$bchecksum!==n&&(l.$bchecksum=n,s.set(o,null,!0))}u.compile&&COMPILE()},u},ce.ENV=function(e,t){if(typeof e!=he)return void 0!==t?(ue[H]&&EMIT(H,e,t),Lt[e]=t):Lt[e];if(e)for(var n in e)Lt[n]=e[n],ue[H]&&EMIT(H,n,e[n]);return e},ce.ENVIRONMENT=function(e,t,n,r){var i=fe.localstorage!=e;fe.localstorage=e,fe.version=t||'',fe.languagehtml=n||'',r&&ce.ENV(r),i&&sn()},ce.FREE=function(e){setTimeout2('$clean',Cn,e||10)},ce.EVALUATE=function(e,t,n){var r='eval'+t,i=it[r],a=null,a=n?e:On(e);return i?i.call(a,a,e):(-1===t.indexOf('return')&&(t='return '+t),i=new Function(ye,pe,t),(it[r]=i).call(a,a,e))},ce.COOKIES={get:function(e){e=e.env();for(var t=Fe.cookie.split(';'),n=0;n<t.length;n++){var r=t[n],r=(r=' '===r.charAt(0)?r.substring(1):r).split('=');if(1<r.length&&r[0]===e)return r[1]}return''},set:function(e,t,n,r){var i,a=typeof n;a==P?((i=ce.NOW).setTime(i.getTime()+24*n*60*60*1e3),n=i):a===oe&&(n=new Date(Date.now()+n.parseExpire())),Fe.cookie=e.env()+'='+t+'; expires='+n.toGMTString()+'; path=/'+(r?'; samesite='+r.charAt(0).toUpperCase()+r.substring(1):'')},rem:function(e){COOKIES.set(e.env(),'',-1)}},ce.FORMATTER=function(e,t,n,r){if(typeof e===K)return le.$formatter||(le.$formatter=[]),void(!0===t?le.$formatter.unshift(e):le.$formatter.push(e));var i=le.$formatter;if(i&&i.length)for(var a=0;a<i.length;a++){var s=i[a].call(le,t,e,n,r);void 0!==s&&(e=s)}return e},ce.PARSER=function(e,t,n,r){if(typeof e===K)return le.$parser||(le.$parser=[]),!0===t?le.$parser.unshift(e):le.$parser.push(e),this;var i=le.$parser;if(i&&i.length)for(var a=0;a<i.length;a++)e=i[a].call(le,t,e,n,r);return e},ce.UPLOAD=function(e,n,t,r,i){if(typeof r!=P&&null==i&&(i=r,r=null),!t)return _t('UPLOAD',e,n,r,i);e=e||location.pathname;var a,u,f=!1,h=!1,d=[],s=null,p=!1,o=(e=e.replace(k,function(e){var t=e.charAt(1);return'@'===t&&d.push(e.substring(2)),'#'===t?(s=s||[]).push(e.substring(2)):'err'===(t=e.substring(1,4).toLowerCase())?p=!0:'nod'===t?f=!0:'noc'===t&&(h=!0),''}),'POST'),m=e.indexOf(' '),g='!'===(o=-1!==m?e.substring(0,m).toUpperCase():o).charAt(0),c=(g?o=o.substring(1):g=fe.ajaxcredentials,{}),l=((a=e.match(/\{.*?\}/g))&&(e=e.replace(a,'').replace(/\s{2,}/g,' '),typeof(a=new Function('return '+a)())==he&&(c=a)),e=e.substring(m).trim().$env(),typeof t==P&&(r=t,t=void 0),{});l.throw=Bt,l.respond=Vt,l.url=e,l.headers=c,l.process=!0,l.error=!1,l.upload=!0,l.method=o,l.data=n,l.scope=Z,l.callback=t,l.duration=Date.now(),l.progress=i,l.decryption=!f,l.credentials=g,t&&p&&(t=ERROR(!0,t)),DEF.csrf&&!h&&(c[z]=DEF.csrf,l.csrf=!0),ue.request&&EMIT('request',l),d.length&&Qt(d,e),l.cancel||(DEF.monitor&&ee('requests'),u=function(){var e=new XMLHttpRequest;for(t in l.credentials&&(e.withCredentials=!0),e.addEventListener('error',function(){var e=this;Jt(l,e.status,e.statusText||q,e.responseText,zt(e.getAllResponseHeaders()),399<e.status)}),e.addEventListener('load',function(){var e=this;Jt(l,e.status,e.statusText,e.responseText,zt(e.getAllResponseHeaders()),399<e.status)},!1),e.upload.onprogress=function(e){var t,n=l.progress;n&&(t=0,e.lengthComputable&&(t=Math.round(100*e.loaded/e.total)),typeof n===oe?An(n,t):n(t,e.transferSpeed,e.timeRemaining))},e.open(o,pn(l.url)),fe.headers)e.setRequestHeader(t.env(),fe.headers[t].env());if(c)for(var t in c)e.setRequestHeader(t,c[t]);e.send(n)},s?ce.CL(s.join(','),()=>setTimeout(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<n.length;r++)UNWATCH(n[r],t);else OFF('watch',e,t)},ce.WATCH=function(e,t,n){if(S.test(e))for(var r=e.split(S).trim(),i=0;i<r.length;i++)WATCH(r[i],t,n);else{typeof e===K&&(n=t,t=e,e='*');var a='';'^'===e.charAt(0)&&(e=e.substring(1).trim(),a='^'),e=Kt(e,1),ON(a+'watch',e,t,n,null,Z)}},ce.WATCHONCE=function(r,i){r=Kt(r,1);function a(e,t,n){UNWATCH(r,a),i(e,t,n)}WATCH(r,a)},ce.ON=function(e,t,n,u,f,r){var i=-1!==e.indexOf('@flag ');if(i&&(e=e.replace(/@flag\s/g,'@flag_')),S.test(e))for(var a=e.split(S).trim(),h=0;h<a.length;h++)ON(a[h],t,n,u,f,r);else{var d=!0,i=('^'===(e=i?e.replace(/@flag_/g,'@flag '):e).charAt(0)&&(d=!1,e=e.substring(1).trim()),null),s=e.indexOf('#'),s=(s&&(i=e.substring(0,s).trim(),e=e.substring(s+1).trim()),(t=typeof t===K?(n=t,'watch'===e?'*':''):t.replace('.*',''))&&-1!==(s=t.indexOf('/'))&&(r=t.substring(0,s)),{name:e,fn:n,owner:i||Dt,context:f||(null==St?void 0:St),scope:r});if('watch'===e){a=[],i=Ut(t.replace(v,r||'UNKNOWN'));if(i&&(t=i.path,s.format=i.fn,s.format.scope=i.scope),'#'===(l=(t='.'===t.substring(t.length-1)?t.substring(0,t.length-1):t).charAt(0))&&(t=Le+t.substring(1)),'%'===l&&(t=J+t.substring(1)),33===(t=(t='='===l?'PLUGINS["{0}"].'.format(r||'undefined')+t.substring(1):t).env()).charCodeAt(0))s.$pathfixed=!0,t=t.substring(1),a.push(t);else{for(var o=t.split('.'),p=[],c=0;c<o.length;c++){var l,m=o[c].lastIndexOf('[');-1!==m&&(l=p.join('.'),a.push(l+(l?'.':'')+o[c].substring(0,m))),p.push(o[c]),a.push(p.join('.'))}s.$pathfixed=!1}s.path=t,s.$path=a,le.paths[t]?le.paths[t]++:le.paths[t]=1,d?rt.push(s):rt.unshift(s),u&&(DEF.monitor&&ee('watchers',1),s.scope&&(Z=s.scope),n.call(f||le,t,s.format?s.format(On(t),t,0):On(t),0))}else DEF.monitor&&ee('events',1),ue[e]?d?ue[e].push(s):ue[e].unshift(s):ue[e]=[s],He.ready||'ready'!==e&&'init'!==e||n()}},ce.OFF=function(r,i,a){if(-1===r.indexOf('+')){typeof i===K&&(a=i,i=''),void 0===i&&(i='');function e(e,n){return e.remove(function(e){if(2<o&&o<5&&e.path!==i)return!1;var t=!1;return(t=1===o?e.owner===s:2===o||3===o?n===r&&e.owner===s:4===o?n===r&&e.owner===s&&e.fn===a:5===o||6===o?n===r&&e.fn===a:7===o?n===r&&e.path===i:n===r)&&e.path&&le.paths[e.path]&&le.paths[e.path]--,t})}var t,s=null,n=r.indexOf('#'),o=(n&&(s=r.substring(0,n).trim(),r=r.substring(n+1).trim()),!i||'.'===(i=(n=Ut(i=i.replace('.*','').trim()))?n.path:i).substring(i.length-1)&&(i=i.substring(0,i.length-1)),0);!s||i||a||r?s&&r&&!a&&!i?o=2:s&&r&&i?o=3:r&&i&&a?o=5:r&&i?o=7:a&&(o=6):o=1;for(t in ue)ue[t]=e(ue[t],t),ue[t].length||delete ue[t];DEF.monitor&&ee(i?'watchers':'events',2),rt=e(rt,'watch')}else for(var c=r.split('+').trim(),l=0;l<c.length;l++)OFF(c[l],i,a)},ce.EMIT=function(e){e=rr(e);var t=ue[e];if(!t||!t.length)return!1;for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);DEF.monitor&&ee('events');for(var i=Z,r=0;r<t.length;r++){var a=t[r],s=a.context;void 0!==s&&(null===s||s.$removed)||(Z=a.scope||i,a.fn.apply(s||ce,n))}return Z=i,!0},ce.CHANGE=function(e,t){null==t&&(t=!0);var n,e=Gt(Kt(e),EMPTYOBJECT),r=void 0===t||!0===t;for(n of e)n.config.touched=r;Ln(e,1,2)},ce.IMPORTCACHE=function(a,u,s,o,c,l){var t,e=(a=a.$env().replace(/<.*?>/,function(e){return t=e.substring(1,e.length-1).trim(),''}).trim()).charAt(0),n='once '===a.substring(0,5).toLowerCase();if(typeof s===K?(typeof o===K?(l=o,c=!0):typeof c===K&&(l=c,c=!0),o=s,s='body'):typeof c===K&&(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===K){if(i())return void(o&&o(0))}else if(i)return void(o&&o(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),mt[a])return void(o&&(2===mt[a]?o(0):WAIT(function(){return 2===mt[a]},function(){o(0)})));mt[a]=1}s=(s=s&&s.setPath?s.element:s)||'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=Fe;return'.js'===i?((e=n.createElement(xe)).type='text/java'+xe,e.async=!1,e.onload=function(){mt[a]=2,o&&o(1),ce.jQuery&&setTimeout(on,300)},e.src=pn(a,!0),n.getElementsByTagName('head')[0].appendChild(e),ue.import&&EMIT(De,a,$(e)),void(DEF.monitor&&ee('requests'))):'.css'===i?((r=n.createElement('link')).type='text/css',r.rel='stylesheet',r.href=pn(a,!0),r.onload=function(){o&&setTimeout(o,2,1)},n.getElementsByTagName('head')[0].appendChild(r),mt[a]=2,ue.import&&EMIT(De,a,$(r)),void(DEF.monitor&&ee('requests'))):void WAIT(function(){return!!ce.jQuery},function(){mt[a]=2;function e(e,t,n){if(e){if(typeof e!==oe)return WARN('jC: invalid response for IMPORT("{0}")'.format(a),e),void(o&&o(0));a='$import'+a,e=ADAPT(null,null,e),l&&(e=l(e,n));var r=p.test(e);e=En(Tn(e,i)).trim(),s=$(s),e&&(Ct=s[0],!1===c?s.html(e):s.append(e),Ct=null),setTimeout(function(){r&&on(),o&&WAIT(function(){return 0==He.is},function(){o(1)}),ue.import&&EMIT(De,a,s)},10)}else o&&o(0)}var i=De+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===K&&(i=r,r=t,t=n,n=null),a=Z,e.wait(function(e,t){Z=a,IMPORTCACHE(e,null,n,t,r,i)},function(){Z=a,t&&t()})):IMPORTCACHE(e,null,n,t,r,i)},ce.CACHEPATH=function(r,i,e,a){var t=r.split(te),s=(r=Kt(t[0],1),t[1]&&(t[1]=new Function('return '+t[1])),!1);WATCH(r,function(e,t){var n;s||((n=a?ce.PREF.get(B):dn(B))?n[r]=t:(n={})[r]=t,a?ce.PREF.set(B,t,i):dn(B,n,i))}),void 0!==e&&!e||(s=!0,(e=a?ce.PREF.get(B):dn(B))&&void 0!==e[r]?e[r]!==On(r)&&le.set(r,e[r],!0):t[1]&&le.set(r,t[1](),!0),s=!1)},ce.CACHE=dn,ce.SCROLLBARWIDTH=function(){var e='jcscrollbarwidth';if(null!=Ve)return Ve;var t=Fe.body,e=($(t).append('<div id="{0}" style="width{1}height{1}overflow:scroll;position:absolute;top{2}left{2}"></div>'.format(e,':100px;',':9999px;')),Fe.getElementById(e));return e&&(Ve=e.offsetWidth-e.clientWidth,t.removeChild(e)),Ve||0},ce.REMOVECACHE=function(e,t){if(t)for(var n in qe)-1!==n.indexOf(e)&&delete qe[e];else delete qe[e];Sn()},ce.AJAXCONFIG=function(e,t){vt[e]=t},ce.ASETTER=function(){for(var t=[],e=0;e<arguments.length;e++)t.push(arguments[e]);var n=Z;return function(e){t.push(e),Z=n,SETTER.apply(ce,t)}},ce.AEXEC=function(){for(var t=[],e=0;e<arguments.length;e++)t.push(arguments[e]);var n=Z;return function(e){Z=n,t.push(e),EXEC.apply(ce,t)}},ce.ACMD=function(){for(var t=[],e=0;e<arguments.length;e++)t.push(arguments[e]);return function(e){t.push(e),CMD.apply(ce,t)}};var Yt;function Xt(e,t,n,r,i){Z=r,e=e.env(),!Mt&&Re&&(e+=(-1===e.indexOf('?')?'?':'&')+'schema='+t.schema.replace(/\?/g,'&')),AJAX('POST '+e,t,n,null,i)}function _t(e,t,i,a,s){return new Promise(function(n,r){ce[e](t,i,function(e,t){!fe.ajaxerrors&&399<t?(e instanceof Array&&(e=e[0].error),r(e?e.toString():t+'')):n(e)},a,s)})}function Bt(e,t,n){typeof t==P&&(n=t,t=null),this.cancel=!1,this.process=!0,Jt(this,n,ae,e,t||EMPTYOBJECT,!0),this.cancel=!0}function Vt(e,t){this.cancel=!1,this.process=!0,Jt(this,200,ae,e,t||EMPTYOBJECT),this.cancel=!0}function Jt(e,t,n,r,i,a){var s=e.progress,s=(s&&(typeof s===oe?An(s,100):s(100)),t=t||999,!r&&a&&(r=t+': '+n),e.decryption&&(i&&i['x-encryption']||e.encrypted)&&Mt&&typeof r===oe&&(!Be&&-1!==e.url.indexOf('.html')||(r=_r(r,Mt))),e.raw=e.response=r,e.status=t,e.text=n,e.error=a,e.headers=i,e.duration=Date.now()-e.duration,e.callback),r=e.headers['content-type'],t=!1;if((e.type=r)&&-1!==r.indexOf('/json'))try{e.response=PARSE(e.response,fe.jsondate),t=!0}catch(e){}Z=e.scope,ue[G]&&EMIT(G,e),Z=e.scope,e.json&&!t&&(e.response=null),!e.cancel&&e.process&&(a?fe.ajaxerrors?typeof s===oe?An(s,e.response):s&&s.call(e,e.response,e.status,e):(ue.error&&EMIT('error',e),typeof s===K&&s.call(e,e.response,e.status,e)):typeof s===oe?An(s,e.response):s&&s.call(e,e.response,void 0,e))}function qt(e){var t='__'+e,n=nt[t];if(n)return n;var r={flags:{},flagslist:''};-1!==e.indexOf(' #')&&(r.cl=[],e=e.replace(b,function(e){return r.cl.push(e.trim().substring(1)),''}).trim(),r.cl=r.cl.join(',')),r.format=Ut(e),r.rawpath=e,r.format&&(r.rawpath=e=r.format.path),e=e.replace(/@[\w:]+/g,function(e){r.flagslist+=(r.flagslist?' ':'')+e;var t,e=e.substring(1),n=e.indexOf(':');return-1!==n?(t=e.substring(0,n),n=e.substring(n+1),r.flags[t]='type'==t&&n.charCodeAt(0)<58?+n:n):r.flags[e]=1,''}).trim(),r.flagslist&&(r.flagslist=' '+r.flagslist),r.path=e.env();for(var n=r.path.charAt(0),e=('%'===n?r.path=J+r.path.substring(1):'#'===n&&(r.path=Le+r.path.substring(1)),r.path.indexOf('|')),i=(-1!==e&&(r.path='PLUGINS["{0}"].'.format(r.path.substring(0,e))+r.path.substring(e+1)),r.flags2=[],Object.keys(r.flags)),a={reset:1,default:1,change:1,extend:1,nowatch:1,type:1,nobind:1},s=0;s<i.length;s++)a[t=i[s]]||r.flags2.push(t);return r.flags2.length||delete r.flags2,r.pathmaker='@'!==r.path.charAt(0)&&/\?|\/|\s|\[/.test(r.path),nt[t]=r}function Qt(e,t,n,r){for(var i=e instanceof Array?e:e.flags2,a=0;a<i.length;a++){var s='@flag '+i[a];ue[s]&&EMIT(s,t,n,r)}}function Kt(e,t,n){if(!e)return e;var r,i='';if(t&&-1!==(r=e.indexOf(' '))&&(i=e.substring(r),e=e.substring(0,r)),e=e.env(),37===(e=!n&&Z?e.replace(g,Z):e).charCodeAt(0))return J+e.substring(1)+i;if(64===e.charCodeAt(0))return e;if(-1===(r=e.indexOf('/')))return e+i;t=e.substring(0,r);return(ce.PLUGINS[t]?'PLUGINS[\''+t+'\']':t+'_plugin_not_found')+'.'+e.substring(r+1)+i}function Zt(e){var t=null,n=MODIFIED(e),r=e.indexOf('.*');-1!==r&&(e=e.substring(0,r));for(var i=0;i<n.length;i++){var a=n[i];xn(t=null==t?{}:t,a.substring(e.length+1),On(a))}return t}function en(e){return e.config.invalid=!!e.validate&&!e.validate(e.get()),Ln([e],1,1),!e.config.invalid}function tn(e,t){return e.attrd||(e=$(e)),t?e.attrd(ae+'-'+t):e.attrd(E)||e.attrd(A)}function nn(e,u,t){for(var n,r=u?u.split(' '):EMPTYARRAY,i='',a='',s='',o='',c=0;c<r.length;c++)switch(r[c].charAt(0)){case'*':break;case'.':i=r[c].substring(1);break;case'#':-1!==(n=(s=r[c].substring(1)).indexOf('['))&&(i=s.substring(n+1,s.length-1).trim(),s=s.substring(0,n));break;default:-1!==(n=(a=r[c]).indexOf('['))&&(i=a.substring(n+1,a.length-1).trim(),a=a.substring(0,n)),-1!==(n=a.lastIndexOf('@'))&&(o=a.substring(n+1),a=a.substring(0,n))}var f=t?void 0:[];if(e){for(var h=0;h<e.length;h++)for(var d=e[h].querySelectorAll(ie),c=0;c<d.length;c++)if(!(!(l=d[c].$com)||!l.$loaded||l.$removed||s&&l.id!==s||a&&l.$name!==a||o&&l.version!==o||i&&(l.$pp||l.path!==i&&(!l.pathscope||l.pathscope+'.'+i!==l.path))))if(t){if(!1===t(l))break}else f.push(l)}else for(var l,c=0;c<le.components.length;c++)if(!(!(l=le.components[c])||!l.$loaded||l.$removed||s&&l.id!==s||a&&l.$name!==a||o&&l.version!==o||i&&(l.$pp||l.path!==i&&(!l.pathscope||l.pathscope+'.'+i!==l.path))))if(t){if(!1===t(l))break}else f.push(l);return f}function rn(e,t,n){var r=e.childNodes,i=[];D[e.tagName]&&t(e),null==n?n=0:n++;for(var a=0;a<r.length;a++){var s=r[a];if(s&&s.tagName){var o=s.tagName;if(('INPUT'===o||'SELECT'===o||'TEXTAREA'===o||!s.$com)&&(s.childNodes.length&&'SCRIPT'!==o&&!tn(s)&&i.push(s),D[s.tagName]&&null!=s.getAttribute(O)&&!1===t(s)))return}}for(a=0;a<i.length;a++)if((s=i[a])&&!1===rn(s,t,n))return}ce.WAPI_INIT=function(i){function t(){l=2,c=!0,i.open&&i.open(),i.callback&&(i.callback(),i.callback=null),u.open&&i.emit('open')}function f(e){c=!(l=3),s=null,i.close&&i.close(e),u.close&&i.emit('close',e),i.callback&&(i.callback(e.code),i.callback=null),n&&clearTimeout(n),n=null,4001===e.code||!1===i.reconnect||r||setTimeout(a,i.reconnect||2e3,'reconnect')}function h(e){var t=e.data;if(Mt&&(t=_r(t,Mt)),t=PARSE(t),i.message&&i.message(t),t)switch(t.TYPE){case'ping':var n=STRINGIFY({TYPE:'pong'});r.encrypted&&(n=Xr(n,Mt)),s.send(n);break;case'api':var r=o[t.callbackid];r&&(r.timeout&&clearTimeout(r.timeout),r.timeout=null,delete o[t.callbackid],Jt(r,200,'',t.data,EMPTYOBJECT))}u.message&&i.emit('message',t)}function d(e){var t='Timeout';e.$error({code:408,responseText:t,headers:EMPTYOBJECT},t)}var s,n,p=Date.now().toString(36),o={},m=0,c=!1,l=0,u={},r=!1,a=(i.pause=function(e){e?2===l&&(r=!0,s&&s.close()):2!==l&&(r=!1,a('reconnect'))},i.emit=function(e,t,n,r,i){var a=u[e];if(a&&a.length)for(var s=0;s<a.length;s++)a[s](t,n,r,i)},i.on=function(e,t){u[e]?u[e].push(t):u[e]=[t]},function(e){'timeout'===e&&Object.keys(o).length?setTimeout(a,200,e):(n&&clearTimeout(n),n=null,u.reconnect&&i.emit('reconnect',e),s&&s.close(),'/'===(e=i.url.env(!0)).charAt(0)&&(e=location.origin.replace(/^http/,'ws')+e),(s=new WebSocket(e)).onopen=t,s.onclose=f,s.onmessage=h,i.expire&&(n&&clearTimeout(n),n=setTimeout(function(){l=3,a('expire')},i.expire)))});return i.send=function(e,t,n,r,i){function a(e){var t;2===l?c?(t=p+m+++'',e.timeout=setTimeout(d,r||1e4,e),t={TYPE:'api',callbackid:t,data:(o[t]=e).data},t=STRINGIFY(t),e.encrypted&&(t=Xr(t,Mt)),s.send(t)):e.$error({code:0,responseText:q,headers:EMPTYOBJECT},q):setTimeout(a,100,e)}return void 0!==i&&(Z=i),n=n||NOOP,ce.API('--socket-- '+e,t,n,a)},Yt=i,l=1,a('init'),i},ce.TAPI=function(e,t,n){return(DEF.api?ce.DAPI:ce.WAPI)(e,t,n)},ce.WAPI=function(e,t,n,r,i){return e?typeof e==he?ce.WAPI_INIT(e):(typeof t!==K||n||(n=t,t=null),n?Yt?Yt.send(e,t,n,r,i):void setTimeout(ce.WAPI,100,e,t,n,r,i||Z):_t('WAPI',e,t,r,i)):Yt},ce.DAPI=function(e,t,n){return ce.API(DEF.api+' '+e,t,n)},ce.API=function(e,t,n,r){var i=typeof t;if(i!==K&&i!==oe||(n=t,t=null),!n)return _t('API',e,t,r);var i=e.indexOf(' '),a=e.substring(i).trim(),s='',o=a.indexOf(' '),c=(-1!==o&&(s=a.substring(o),a=a.substring(0,o)),{schema:a.env()}),o={};return e=e.substring(0,i).trim()+s,t&&(c.data=t),o.query=function(e){return e&&(c.schema=(-1===c.schema.lastIndexOf('?')?'?':'&')+typeof e===oe?e.replace(/\?/g,'&'):jQuery.param(e)),this},o.params=function(e){return e&&(c.schema=c.schema.arg(e)),this},o.data=function(e){return e&&(c.data=e),this},setTimeout(Xt,1,e,c,n,Z,r),o},ce.AJAX=function(o,c,l,e,p){typeof o===K&&(e=l,l=c,c=o,o=location.pathname);var t=typeof c,m=EMPTYARRAY,n=o;if(l||t!==K&&t!==oe||(e=l,l=c,c=void 0),!l)return _t('AJAX',o,c,e,p);if('API '===o.substring(0,4))return ce.API(o.substring(4),c,l,p);var r,i,g,u,f,v,b,y,E,T,a,s,A,h,w,x,d,O,I,t=o.indexOf(' ');-1!==t&&(DEF.monitor&&ee('requests'),r=!1,o=o.replace(/<.*?>/,function(e){return i=e.replace(/<|>/g,''),''}),i?AJAXCACHE(o,c,l,i):(o=o.replace(/\ssync/i,function(){return r=!0,''}),r&&Tt?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,s=!(a=[]),A=[],o=o.replace(k,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?s=!0:'n'===n?'noc'===(t=e.substring(1,4).toLowerCase())?T=!0:'noe'===t?y=!0:E=!0:u=!0,''}),l&&s&&(l=ERROR(!0,l)),g&&(m=[n,c,l,e]),h=o.substring(0,t).toUpperCase(),(w='!'===h.charAt(0))?h=h.substring(1):w=fe.ajaxcredentials,x={},(n=o.match(/\{.*?\}/g))&&(o=o.replace(n,'').replace(/\s{2,}/g,' '),typeof(n=new Function('return '+n)())==he&&(x=n)),o=o.substring(t).trim().$env(),d=f||h+' '+o,u&&Ze[d]&&(Ze[d].output.cancel=!0,Ze[d].xhr.abort()),O=Z,Tt++,a.length&&Qt(a,o,c),I=function(){'GET'!==h||!c||(i=typeof c===oe?c:function(e){for(var t=Object.keys(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];void 0!==i&&(null!=i&&(i instanceof Array?i=i.join(','):i instanceof Date?i=i.format('iso'):i+=''),n.push(encodeURIComponent(t[r])+'='+(null==i?'':encodeURIComponent(i))))}return n.length?n.join('&'):''}(c))&&(o+='?'+i);var e={};if(e.method=h,e.converters=fe.jsonconverter,f&&(e.id=f),e.headers=$.extend(x,fe.headers),e.scope=O,e.process=!0,e.error=!1,e.upload=!1,e.callback=l,e.throw=Bt,e.respond=Vt,e.duration=Date.now(),e.credentials=w,e.dataType='text',o.match(/http:\/\/|https:\/\//i)?(e.crossDomain=!0,delete e.headers['X-Requested-With']):o=o.ROOT(),t=o.match(/\s\([a-z0-9\-.,]+\)/i)){o=o.replace(t,'').replace(/\s+/g,''),e.url=o;for(var t=(t+'').replace(/\(|\)/g,'').split(','),n=0;n<t.length;n++){var r=vt[t[n].trim()];r&&r(e)}}e.url||(e.url=o);var i=-1!==e.url.indexOf('.html'),i=(e.credentials&&i&&!DEF.ajaxcredentialshtml&&(e.credentials=!1),!DEF.csrf||T||i||(x[z]=DEF.csrf,e.csrf=!0),Mt&&!y&&(!_e||_e(e)));if('GET'!==h&&(typeof c===oe?e.data=i?Xr(c,Mt):c:(s=b?QUERIFY(c).substring(1):STRINGIFY(c),b||(e.contentType=e.headers['Content-Type']='application/json; charset=utf-8'),e.data=i?Xr(s,Mt):s)),i&&(e.headers['X-Encryption']='a',e.encrypted=!0),ue.request&&EMIT('request',e),!e.cancel){e.credentials?(e.xhrFields||(e.xhrFields={}),e.xhrFields.withCredentials=!0):e.xhrFields&&delete e.xhrFields,e.type=e.method,delete e.method;var a={};if(a.throw=Bt,a.respond=Vt,a.url=e.url,a.process=!0,a.error=!1,a.json=v,a.upload=!1,a.method=h,a.data=c,a.scope=O,a.callback=l,a.encrypted=e.encrypted,a.duration=e.duration,a.credentials=e.credentials,a.decryption=!E,null!=e.credentials&&delete e.credentials,u&&(Ze[d]={options:e,output:a}),delete e.url,e.success=function(e,t,n){u&&delete Ze[d],Tt--,Jt(a,n.status,t,e,n.getAllResponseHeaders?zt(n.getAllResponseHeaders()):n.headers)},e.error=function(e,t){u&&delete Ze[d],Tt--;var n=e.status;!g||n&&408!==n&&502!==n&&503!==n&&504!==n&&509!==n?Jt(a,n,t,e.responseText,e.getAllResponseHeaders?zt(e.getAllResponseHeaders()):e.headers,!0):setTimeout(function(){Z=O,AJAX.apply(le,m)},fe.delayrepeat)},'--socket--'===a.url)return a.$success=e.success,a.$error=e.error,void(p&&p(a));var s=$.ajax(pn(a.url),e);u&&(Ze[d].xhr=s)}},A.length?CL(A.join(','),()=>setTimeout(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,s,u){var o,c,l,n=typeof r,n=((n===K||n===oe&&typeof i===oe&&typeof a!==oe)&&(s=e,e=a,a=i,i=r,r=null),typeof e==j&&(s=!0===e,e=0),t.indexOf(' '));-1!==n&&(o=t.substring(0,n).toUpperCase(),c=t.substring(n).trim().$env(),l=Z,setTimeout(function(){var n,e=s?void 0:hn(o,c,r,void 0,a);if(void 0!==e)return n=u?STRINGIFY(e):null,Z=l,typeof i===oe?An(i,e):i(e,!0),u&&!1!==navigator.onLine?(Z=l,void AJAX(t,r,function(e,t){t&&(e=t),Z=l,n!==STRINGIFY(e)&&(t||hn(o,c,r,e,a),typeof i===oe?An(i,e):i(e,!1,!0))})):void 0;Z=l,AJAX(t,r,function(e,t){t&&(e=t),Z=l,t||hn(o,c,r,e,a),typeof i===oe?An(i,e):i(e,!1)})},e||1))},ce.CLEARCACHE=function(){var e,t;ce.isPRIVATEMODE||((e=We.removeItem)(t=fe.localstorage),e(t+'.cache'),e(t+'.blocked'))},ce.ERROR=function(e,n,r){if(typeof e===K&&(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=Z;return function(e,t){Z=i,ce.ERROR(e=(!e||typeof e===oe)&&0<t?[{error:e||t}]:e,n,r)}},ce.ERRORS=function(e,t,n){e instanceof Array&&(t=e,e=void 0),!0===t&&(t=n instanceof Array?n:null,n=!0);var r,i=[];for(r of Gt(e=e.replace('.*',''),t))r.config.touched&&r.config.invalid&&i.push(r);return n&&Ln(i,1,1),i},ce.CAN=function(e,t){var n,r=!1,i=!1;for(n of Gt(Kt(e),t))if(n.config.touched&&(r=!0),(i=n.config.invalid?!0:i)&&r)break;return 0==i&&!0===r},ce.VALID=function(e,t){var n;for(n of Gt(Kt(e),t))if(n.config.invalid)return!1;return!0},ce.DISABLED=function(e,t){return!CAN(e,t)},ce.INVALID=function(e,t){if(e=Kt(e)){var n;for(n of Gt(e,t))n.config.touched=!0,n.config.invalid=!0;Ln(n,1,7)}},ce.BLOCKED=function(e,t,n){var e=e.replace(g,Z||'?'),r=Je[e],i=Date.now();if(i<r)return!0;r=1e4<(t=typeof t===oe?t.env().parseExpire():t);return Je[e]=i+t,!ce.isPRIVATEMODE&&r&&We.setItem(fe.localstorage+'.blocked',STRINGIFY(Je)),n&&n(),!1},le.scope=function(e){return void 0===e?Z:Z=e},le.update=function(e,i,a,s){var o=qt(e.replace(h,'')),c=o.pathmaker?Kt(o.path):o.path;c&&CL(o.cl,function(){var e,t=On(c),n=(s||wn(c,t,!0),DEF.monitor&&ee('set'),o.flags2&&Qt(o,c,t,a),[]);void 0===(a=null!=o.flags.type?o.flags.type:a)&&(a=1);for(e of Gt(c)){var r=e.get();if(o.flags.default&&e.$default&&void 0===r)r=e.$default(),e.set(r,3);else if(e.setter||e.dom&&e.dom.setter){e.$skip=!1;try{e.setterX(r,c,a)}catch(e){Pe(e)}}(!0===i||o.flags.reset||o.flags.default)&&(e.config.modified=!1,e.config.touched=!1),(o.flags.change||o.flags.touch)&&(e.config.touched=!0);r=!!e.validate&&!e.validate(r);e.config.invalid=r,e.$ready||(e.$ready=!0),n.push(e)}Ln(n,1,4),o.flags.nowatch||yn(c,On(c),a)})},ce.NOTIFY=function(){for(var e=arguments,t=le.components,n=(Math.random()+'').substring(2,8),r=0;r<e.length;r++){var i=e[r];At[i]&&wr(i,i,n,1)}for(var a=0;a<t.length;a++){var s=t[a];if(s&&!s.$removed&&s.$loaded&&s.path){for(var o=0,r=0;r<e.length;r++)if(s.path===e[r]){o=1;break}if(o){var c=s.get();if(s.setter||s.dom&&s.dom.setter)try{s.setterX(c,s.path,1)}catch(e){Pe(e)}s.state&&s.stateX(1,6)}}}for(r=0;r<e.length;r++)yn(e[r],GET(e[r]),1)},le.extend=function(e,l,u){var f=qt(e),h=f.pathmaker?Kt(f.path):f.path;h&&CL(f.cl,function(){var e=Q(l),t=!0===u||f.flags.reset;t&&(u=1);for(var n=0;n<e.length;n++)wn(s=h+'.'+e[n],l[e[n]],null,u);DEF.monitor&&ee('set'),f.flags2&&Qt(f,h,l,u);var r,i=[];for(r of Gt(h))for(var a=0;a<e.length;a++){var s=h+'.'+e[a];if(r.$compare(s)){var o=r.get();if(f.flags.default&&r.$default)o=r.$default(),r.set(o,3);else if(r.setter||r.dom&&r.dom.setter){r.$skip=!1;try{r.setterX(o,s,u)}catch(e){Pe(e)}}r.$ready||(r.$ready=!0),(!0===t||f.flags.reset||f.flags.default)&&(r.config.modified=!1,r.config.touched=!1),(f.flags.change||f.flags.touch)&&(r.config.touched=!0),r.config.invalid=!!r.validate&&!r.validate(o),r.state&&i.push(r)}}if(Ln(i,1,4),!f.flags.nowatch)for(var c of e)yn(s=h+'.'+c,On(s),u)})},ce.REWRITE=function(e,t,n){var r=qt(e);(e=r.pathmaker?Kt(r.path):r.path)&&CL(r.cl,function(){DEF.monitor&&ee('set'),r.flags.nobind?xn(ce,e,t):wn(e,t,null,n),r.flags.nowatch||yn(e,t,n),r.flags2&&Qt(r,e,t,n)})},ce.REWRITE2=function(e,t,n){REWRITE(e+' @nobind',t,n)},le.inc=function(t,n,r){var e=qt(t),i=e.pathmaker?Kt(e.path):e.path;i&&CL(e.cl,function(){DEF.monitor&&ee('get');var e=On(i);e?typeof e!=P&&(e=parseFloat(e),isNaN(e)&&(e=0)):e=0,le.set(t,e+=n,r)})},le.set=function(i,a,s){if('+'===i.charAt(0))return le.push(i.substring(1),a,s);var o,c,l,u=qt(i);i=u.rawpath,u.format&&(a=u.format.fn(a,o,1,u.format.scope&&Z?PLUGINS[Z]:null)),'~'===u.path.charAt(0)||u.flags.extend?CL(u.cl,()=>le.extend(u.flags.extend?i:i.substring(1),a,s)):(o=u.pathmaker?Kt(u.path):u.path)&&(c=!(typeof a!=he||null==a||a instanceof Array||a instanceof Date),(l=!0===s)&&(s=1),CL(u.cl,function(){if(wn(o,a,null,s),c)return le.update(i,l,s,!0);DEF.monitor&&ee('set');var e,t=On(o),n=[];u.flags2&&Qt(u,o,t,s),void 0===s&&(s=1),null!=u.flags.type&&(s=u.flags.type);for(e of Gt(o)){if(u.flags.default&&e.$default)e.set(e.$default(),3);else if(e.setter||e.dom&&e.dom.setter)if(e.path===o)try{e.setterX(t,o,s)}catch(e){Pe(e)}else try{var r=On(e.path);e.setterX(r,o,s)}catch(e){Pe(e)}e.$ready||(e.$ready=!0),3!==s&&n.push(e),(l||u.flags.reset||u.flags.default)&&(e.config.touched=!1,e.config.modified=!1),(u.flags.change||u.flags.touch)&&(e.config.touched=!0),e.config.invalid=!!e.validate&&!e.validate(t)}Ln(n,s,5),u.flags.nowatch||yn(o,t,s)}))},le.push=function(e,r,i){if(e instanceof Array)for(var t=0;t<e.length;t++)le.push(e[t],r,i);else{var a=qt(e),s=0,o=a.path;'^'===o.charAt(0)&&(o=o.substring(1),s=1),CL(a.cl,function(){var e=On(a.pathmaker?Kt(o):o),t=!1,n=(e instanceof Array||(e=[],t=!0),!0);r instanceof Array?r.length?(s?e.unshift:e.push).apply(e,r):n=!1:s?e.unshift(r):e.push(r),t?le.set(o,e,i):n&&le.update(o,void 0,i)})}},ce.RETURN=function(e,t){if(2===(e=e.split('/').trim()).length){var n=e[0],r=e[1],i=-1!==r.indexOf('.');if(DEF.monitor&&ee('returns'),t){for(var a=FIND(n,!0),s=[],o=0;o<a.length;o++){var c=i?On(r,a[o]):a[o][r];void 0!==c&&s.push(c)}return s}e=FIND(n);return e?i?On(r,e):e[r]:void 0}},ce.CLRELOAD=function(e,t){e.split(',').trim().wait(function(e,t){var n=le.cl[e];n?(n.reload=!0,CL(e,()=>t())):t()},t)},ce.CL_INIT=ce.CLINIT=function(e,t,n,r){var i;typeof n==j&&(r=n,n=''),typeof t===oe&&(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=Kt(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=Kt(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=qt(e),r=n.pathmaker?Kt(n.path):n.path;if(e=n.rawpath,!0===t)t=null,RESET(e,!0);else if(typeof t===K)return void(null==(i=(n.flags.modified?Zt:On)(r))?setTimeout(GET,fe.delaywatcher,e,t):(t(i),DEF.monitor&&ee('get'),n.flags.reset&&RESET(e,!0)));DEF.monitor&&ee('get'),n.flags.update&&setTimeout(ce.UPD,1,e);var i=n.flags.modified?Zt(r):n.flags.clone?CLONE(On(r,t)):On(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&&Z?PLUGINS[Z]:null):i}},ce.VALIDATE=function(e,t){var n,r=!0,e=qt(e.replace(h,'')),i=e.pathmaker?Kt(e.path):e.path,a=[],r=!0;for(n of Gt(i,t))n.validate&&(n.config.invalid=!n.validate(n.get()),n.config.invalid&&(r=!1)),a.push(n);return Ln(a,1,1),e.flags&&e.flags.flags(i,GET(i)),r},le.default=function(e,t,n,r,i){if(!0!==t&&0<t)setTimeout(le.default,t,e,0,n,r,i||Z);else{typeof n==j&&(r=n,n=null),void 0===r&&(r=!0);for(var t=Z,i=(i&&(Z=i),(e=Kt(e).replace(h,'')).replace(/\.\*$/,'')),a=dt['#'+HASH(i)],s=(a&&wn(i,a(),null,3),[]),o=le.components,c=0;c<o.length;c++){var l=o[c];if(l&&!l.$removed&&l.$loaded&&l.path&&l.$compare(e)&&(l.state&&s.push(l),!n||n._id===l._id)){if(l.$default&&l.set(l.$default(),3),!r)return;l.config.touched=!1,l.config.modified=!1,l.config.invalid=!!l.validate&&!l.validate(l.get())}}r&&Ln(s,3,3),Z=t}},ce.RESET=function(e,t,n,r){if(!0!==t&&0<t)setTimeout(ce.RESET,t,e,null,r||Z);else{var i,t=Z,a=(r&&(Z=r),qt(e.replace(h,''))),s=[],r=Gt(a.pathmaker?Kt(a.path):a.path);DEF.monitor&&ee('reset');for(i of r)i.state&&s.push(i),n&&n._id!==i._id||(a.flags.default&&i.$default&&i.set(i.$default(),3),i.config.touched=!1,i.config.modified=!1,i.validate?i.config.invalid=!i.validate(i.get()):i.config.invalid=!1);Ln(s,1,3),Z=t}};var an=!(le.each=function(e,t){for(var n=!!t&&-1!==t.lastIndexOf('*'),r=(n&&(t=t.replace('.*','')),le.components),i=0,a=0;a<r.length;a++){var s=r[a];if(s&&s.$loaded&&!s.$removed&&(!t||s.path&&s.$compare(t)))if(!0===e(s,i++,n))return}});function sn(){var e;bt&&clearTimeout(bt),bt=null,an?(qe={},Je={}):an=!0;try{(e=We.getItem(fe.localstorage+'.cache'))&&typeof e===oe&&(qe=PARSE(e))}catch(e){}try{(e=We.getItem(fe.localstorage+'.blocked'))&&typeof e===oe&&(Je=PARSE(e))}catch(e){}if(qe){var t=qe[B];if(t)for(var n in t.value)le.set(n,t.value[n],!0)}}function on(e){if(He.is)He.recompile=!0;else{var t,n=[];if(ce.READY instanceof Array&&ce.READY.length&&n.push.apply(n,ce.READY.splice(0)),n.length)for(;;){var r=n.shift();if(!r)break;r()}if(He.is=!0,un(),He.pending.length)return t=e,void He.pending.push(()=>on(t));DEF.monitor&&ee('compilation',1);fe.webcomponentsonly||!function u(e,t,n){if((e=e?$(e)[0]:Fe.body)&&'0'!==(c=e?tn(e,'compile'):'1')&&c!==U){var r=null,i=null,a=(e.$jcbind||(r=e.getAttribute(w+_)||e.getAttribute(_))&&(i=i||[]).push({el:e,b:r}),tn(e)),f=(e.$com||null==a||t(a,e,0),e.childNodes),s=[];void 0===n?n=0:n++;for(var o=0;o<f.length;o++){var h,c,l=f[o];l&&l.tagName&&(h=-1!==l.tagName.indexOf('-'),'0'!==(c=l.getAttribute(w+V))&&c!==U&&(h||void 0!==l.$com||null!=(a=tn(l))&&t(a||'',l,n),h||l.$jcbind||(r=l.getAttribute(w+_)||l.getAttribute(_))&&(l.$jcbind=1,(i=i||[]).push({el:l,b:r})),'0'!==(c=l.getAttribute(w+V))&&c!==U&&l.childNodes.length&&'SCRIPT'!==l.tagName&&p.test(l.innerHTML)&&-1===s.indexOf(l)&&s.push(l)))}for(o=0;o<s.length;o++)(l=s[o])&&u(l,t,n);if(i)for(o=0;o<i.length;o++){var d=i[o];d.el.$jcbind=kr(d.el,d.b)}}}(e,cn),Or(),He.is=!1,void 0===e&&at.length?vn(at,function(e,t){for(var n=0;n<e.toggle.length;n++)e.element.tclass(e.toggle[n]);t()},bn):bn()}}function cn(u,e){var t=$(e),n=u.split(te);if(n.length?u=(n=n.trim(!0))[0]:n=null,mt['$ST_'+u])fn(t);else{for(var f=[],h=u.split(','),d=0;d<h.length;d++){var r=h[d].trim(),i=!1;if(-1!==r.indexOf('|')){for(var p=r.split('|'),m=0;m<p.length;m++){var g=p[m].trim();if(g&&le.$components[g]){r=g,i=!0;break}}i||(r=p[0].trim())}var v,a=!1,s=('lazy '===r.substring(0,5).toLowerCase()&&(r=r.substring(5),a=!0),i||-1!==r.lastIndexOf('@')||(st[r]?r+='@'+st[r]:fe.versioncomponents&&(r+='@'+fe.versioncomponents)),le.$components[r]),o=null;if(a&&r){a=r.substring(0,r.indexOf('@'));if(!(o=xt[r])){var c={state:1,nodes:[]};xt[r]=a&&r!==a?xt[a]=c:c,e.$jcwebcomponent&&c.nodes.push(e),DEF.monitor&&ee('lazy',1);continue}if(1===o.state)continue}if(s)if(1===et[r]&&(et.$--,delete et[r]),mt['$ST_'+s.name])fn(t);else{for(var c=new Hn(s.name),b=e.parentNode;;){if(b.$com){var y=b.$com;(c.owner=y).$children?y.$children++:y.$children=1;break}if(b.tagName===de)break;if(null==(b=b.parentNode))break}c.global=s.shared,c.element=t,c.dom=e,c.version&&c.aclass('jc-v'+c.version);var a=tn(t,pe)||(!n||n[1]===se?'':n[1])||'',l=TRANSLATE(tn(t,ke)||(!n||n[2]===se?'':n[2])),a=(('%'===a.charAt(0)||l&&-1!==l.indexOf('$noscope:'))&&(c.$noscope=!0),c.setPath(Kt(a,1,1),1),c.id||(c.id=c._id),c.siblings=1<h.length,c.$lazy=o,e.$com=c,e.ui||(e.ui=c),c.$noscope||(c.$noscope=tn(t,'noscope')===Te),c.path?c.path.charCodeAt(0):0);c.$noscope||c.$pp||(o=ln(e),i=!1,c.path&&33!==a&&35!==a?o?(i=-1!==(c.path||'').indexOf('?'),'?'===c.path?(c.setPath(o.path,2),i=!0):i&&c.setPath(o.makepath(c.path),2)):(a=e.parentNode)&&!a.$noscope&&(a.$noscope=!0):(c.$$path=EMPTYARRAY,c.path=''),i&&(c.scope=o,c.pathscope=o.path)),l&&'%'===l.charAt(0)?c.config=ce[l.substring(1)]||{}:c.config={},c.config.modified=!1,c.config.touched=!1,c.config.invalid=!1,s.config&&c.reconfigure(s.config,NOOP),l&&c.reconfigure(l,NOOP);for(m=0;m<Ke.length;m++){var E=Ke[m];E.fn(c)&&c.reconfigure(typeof E.config===K?E.config.call(c):E.config,NOOP)}a=c.name.lastIndexOf('@');St=c,s.declaration.call(c,c,c.config,fe.prefixcsscomponents+(-1===a?c.name:c.name.substring(0,a))),St=null,n[3]&&t.attrd('jc-value',n[3]),c.init&&!mt[r]&&(mt[r]=!0,c.init()),f.push(c),'UI-COMPONENT'===e.tagName&&(e.$jcinitialized=!0,e.config=c.config),s.dependencies?function(e,t,r,n){e.importing?WAIT(()=>!0!==e.importing,()=>t(r,n)):e.dependencies&&e.dependencies.length?(e.importing=!0,e.dependencies.wait(function(e,t){if(typeof e===K)e(t);else{var n;if('@'===e.charAt(0))return n=e.substring(1),void(T.caniuse(n)?t():(ADD({name:n,prepend:!0}),WARN('The "{0}" component has downloaded the dependent component "{1}".'.format(r.name,n)),WAIT(()=>T.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)}(s,function(e,t){var n;e.make&&(n=St,(St=e).make(),St=n),mn(t,e)},c,t):setTimeout(function(e,t,n){var r;n.make&&(r=St,(St=n).make(),St=r),e(t,n)},5,mn,t,c)}else(et[r]||(et[r]=1,et.$++),!n[2]||-1!==(o=n[2].indexOf('$url:'))&&(-1===(l=n[2].indexOf(';',o+5))&&(l=n[2].length),v=n[2].substring(o+5,l)),v)?1!==He.imports[v]&&(2!==He.imports[v]?(He.imports[v]=1,He.importing++,IMPORT(v,function(){He.importing--,He.imports[v]=2})):mt['$NE_'+r]||(mt['$NE_'+r]=!0)):mt['$NE_'+r]||(mt['$NE_'+r]=!0)}0<f.length&&(t.$com=1<f.length?f:f[0])}}function ln(e){if(!e||!e.$noscope)for(;e&&e.tagName!==de;){if(e.$scopedata)return e.$scopedata;var t,n=e.tagName;if('UI-PLUGIN'===n?-1===(t=e.getAttribute(pe)||'').indexOf('__')&&(t+='__'+e.getAttribute(ke)||'null',(s=e.getAttribute(Ne))&&(t+='__'+s)):t='UI-COMPONENT'===n||'UI-BIND'===n||'UI-IMPORT'===n?e.getAttribute(L):e.getAttribute?e.getAttribute(F)||e.getAttribute(L)||e.getAttribute(M)||e.getAttribute(R):null,t){var n=t.split(te),r=(1<n.length&&(t=n[0]),new Mn),i=TRANSLATE((n[1]||'').replace(/\$/g,'').parseConfig()),a='!'===t.charAt(0);r.isolated=a||!!i.isolated;(s=(t=a?t.substring(1):t).split(' '))[0]&&'?'!==s[0]?s[1]&&(t=s[0]):t=GUID(10).replace(/\d/g,'')+Date.now().toString(36),r._id=r.ID=r.id=GUID(10),r.element=$(e),r.config=i,e.$scopedata=r,i.aclass&&r.element.aclass(t),r.parent=ln(e.parentNode),r.elements=[],DEF.monitor&&ee('scopes',1);var s,o,c=r.parent;for(c||(a=e.parentNode)&&(a.$noscope=!0);c&&(r.elements.push(c.element[0]),!c.isolated)&&null!=(c=c.parent););if(!r.isolated&&r.parent?(-1!==t.indexOf('?')&&(t=t.replace(/\?(\d)*\./,function(e){var t=2<e.length?+e.substring(1,e.length-1):0;if(t){for(var n=0;n<t;n++)r.elements.shift();r.parent=r.elements.length?r.elements[0].$scopedata:null}return''})),r.path=r.parent.path+'.'+t):r.path=t,t=r.path,s[1]){if(!(o=ut[s[1]]))return void WARN('Plugin "? {0}" not found'.format(s[1]));ce.PLUGINS[r.path]=r.plugin=new zr(t,o.fn,0,0,Rt&&PLUGINS[Rt]),r.plugin.scopedata=r}else r.plugin=o=ce.PLUGINS[r.path],o&&(o.element=r.element);r.elements.push(e),(s=n[2]||tn(e,ye))&&(a=new Function('return '+s),wn(t,s=(dt['#'+HASH(t)]=a)(),null,1),yn(t,s,1));n=i.class||tn(e,Oe);if(n){var l=n;l=l.split(' '),setTimeout(function(){for(var e=0;e<l.length;e++)r.element.tclass(l[e])},i.delay||300)}return(s=(s=i.init||tn(e,'init'))&&GET(s.replace(/\?/g,t)))&&(a=Dt,Dt=R+r._id,Z=t,s.call(r,t,r.element),Dt=a),r}if((e=e.parentNode)&&e.$noscope)return}}function un(){for(var e=[],t=Nt.splice(0),n=fe.webcomponentsonly?EMPTYARRAY:document.querySelectorAll('['+w+De+']'),r=0;r<n.length;r++)t.push(n[r]);for(r=0;r<t.length;r++){var i=t[r];if(!i.$downloaded){var a=$(i),s=(a.attrd(De)||a.attr(ke)||'').parseConfig(),i=(i.$downloaded=1,s.url),o='once '===(i=i||a.attr(pe)).substring(0,5).toLowerCase();if('!'===i.charAt(0)||o){if(i=o?i.substring(5):i.substring(1),mt[i])continue;mt[i]=2}s.url=i,s.element=a,s.toggle=s.class,e.push(s)}}e.length&&(He.importing++,vn(e,function(i,a){var s=pn(i.url);AJAXCACHE('GET '+i.url,null,function(e){if(s='$import'+s,typeof e!==oe)return mt[s]=!0,Ct=null,void a();if(Ct=i.element[0],typeof e===oe&&(e=ADAPT(i.path,i.id,e)),e=!i.reevaluate&&mt[s]?e.replace(l,function(e){var t=e.indexOf('>'),t=e.substring(0,t+1);return'<style'===t.substring(0,6)||t.substring(0,7)==='<'+xe&&-1===t.indexOf('type="')||-1!==t.indexOf('/javascript"')?'':e}):En(Tn(e,HASH(s)+'')),mt[s]=!0,i.toggle&&i.toggle.length&&i.toggle[0]&&at.push(i),i.make){var t,n,r=null;if(-1===i.make.indexOf('/')?r=On(i.make):(t=i.make.replace('?',i.path).split('/'),(n=ce.PLUGINS[t[0]])&&(r=n[t[1]])&&n.scope()),r&&typeof r===K&&!(e=r(e,i.element,i.path)))return Ct=null,void a()}i.target?$(i.target).append(e):i.replace?i.element.replaceWith(e):i.element.html(e),i.init&&(-1===i.init.indexOf('/')?typeof(t=On(i.init))===K&&t(i.element):EXEC(!0,i.init.replace('?',i.path||''),i.element)),Ct=null,a()},null==i.cache?fe.importcache:i.cache)},function(){He.importing--,kn(Y,X,'find'),on()}))}function fn(e){e[0].$com=null,e.attr(I,!0),e.remove()}function hn(e,t,n,r,i){var a,s;return n&&(a=-1!==t.indexOf('.html'),n[s=fe.versionkey]||(fe.version?n[s]=fe.version:fe.versionhtml&&a&&(n[s]=fe.versionhtml)),n[s=fe.languagekey]||(fe.language?n[s]=fe.language:fe.languagehtml&&a&&(n[s]=fe.languagehtml))),n=STRINGIFY(n),dn(HASH(e+'#'+t.replace(/\//g,'')+n)+'',r,i)}function dn(e,t,n){var r=Date.now();if(void 0!==t)return'session'===n?Ze['$session'+e]=t:((n=typeof n===oe?n.parseExpire():n)&&(qe[e]={expire:r+n,value:t},Sn()),t);n=Ze['$session'+e];return void 0!==n?n:(n=qe[e])&&n.expire>r?n.value:void 0}function pn(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 mn(e,t){var n=e[0],r=n.tagName;t.released&&t.released(HIDDEN(n)),DEF.monitor&&ee('components',1),le.components.push(t),He.init.push(t),r!==de&&p.test(e[0].innerHTML)&&on(e),t.$initialized=!0,setTimeout2('$ready',function(){Rn(),function e(){var t=He.init.pop();void 0===t?He.ready||on():(t.$removed||gn(t),e())}();var e=le.components.length;if($(Fe).trigger('components',[e]),$t||($t=!0,kn(Y,X,'find'),ue.init&&EMIT('init'),ue.ready&&EMIT('ready')),setTimeout2('$initcleaner',function(){Cn();for(var e=ot.splice(0),t=0;t<e.length;t++){var n=e[t];n.$default||rn(n.dom,function(e){var e=$(e).val();return!e||(e=n.parser(e))&&(n.config.touched=!0,n.set(e,0)),!0})}},1e3),He.is=!1,He.recompile&&(He.recompile=!1,on()),He.ready){for(var t=He.ready,n=0;n<t.length;n++)t[n](e);He.ready=void 0,on(),setTimeout(bn,500),setTimeout(bn,1800),setTimeout(on,3e3)}},100)}function gn(t){if(t){var n=t.element;if(Qe[t.name])for(var e=Qe[t.name],r=0;r<e.length;r++){var i=e[r];i.config&&t.reconfigure(i.config,NOOP),i.fn.call(t,t,t.config,fe.prefixcsscomponents+t.name)}var a=t.get();if(t.configure&&t.reconfigure(t.config,void 0,!0),t.$confds&&(t.$confds(),delete t.$confds),t.$loaded=!0,t.setter||t.dom&&t.dom.setter){if(!t.$prepared&&(t.$prepared=!0,t.$ready=!0,(o=tn(t,ye))&&(dt[o]||(dt[o]=new Function('return '+o)),t.$default=dt[o],void 0===a&&t.path&&(a=t.$default(),wn(t.path,a,null,1),yn(t.path,a,0))),!t.$binded)){t.$binded=!0;try{t.setterX(a,t.path,0)}catch(c){Pe(c)}}}else t.$binded=!0;t.validate&&(t.config.invalid=!t.validate(t.get(),!0)),t.done&&setTimeout(t.done,20),t.state&&t.stateX(0,3),t.$init&&setTimeout(function(){var e=On(t.makepath(t.$init));typeof e===K&&e.call(t,t),t.$init=void 0},5);var s,o='component',a=(n.trigger(o),n.off(o),tn(n,Oe)),c=(a&&(s=a,setTimeout(function(){s=s.split(' ');for(var e=n[0].$jclass||{},t=0;t<s.length;t++)e[s[t]]||(n.tclass(s[t]),e[s[t]]=!0);n[0].$jclass=e},5)),t.id&&EMIT('#'+t.id,t),'@'+t.name);ue[c]&&EMIT(c,t),ue[o]&&EMIT(o,t),kn('find.'),t.$lazy&&(t.$lazy.state=3,delete t.$lazy,ue.lazy&&EMIT('lazy',t.$name,!1))}}function vn(e,t,n){var r=e.shift();if(null==r)return n&&n();t(r,()=>vn(e,t,n))}function bn(){var e=He.pending.shift();if(e)e();else if(yt&&(He.ready&&(He.is=!1),fe.fallback&&et.$&&!He.importing)){for(var t=Q(et),n=0;n<t.length;n++)'$'!==t[n]&&1===et[t[n]]&&(tt.push(t[n].toLowerCase()),et[t[n]]=2);et.$=0,tt.length&&$n()}}function $n(){He.importing?setTimeout($n,1e3):setTimeout2('$fallback',function(){var t=kt.splice(0),n={};tt.splice(0).wait(function(e,t){n[e]=1,le.$components[e]?t():(Ye('Downloading: '+e),IMPORTCACHE(fe.fallback.format(e),fe.fallbackcache,t))},function(){for(var e of t)n[e.$componentname]?e.$compilecomponent&&(e.$compilecomponent(),delete e.$compilecomponent,delete e.$componentname):kt.push(e)},3)},100)}function yn(e,t,n){DEF.monitor&&ee('watchers');for(var r=0;r<rt.length;r++){var i=rt[r];if(i.$pathfixed)(i.path===e||e.length<i.path.length&&i.path.substring(0,e.length)===e)&&(i.scope&&(Z=i.scope),i.fn.call(i.context,e,i.format?i.format(t,e,n):t,n));else if('*'===i.path)i.scope&&(Z=i.scope),i.fn.call(i.context,e,i.format?i.format(t,e,n):t,n);else if(e.length>i.path.length){var a=e.lastIndexOf('.',i.path.length);-1!==a&&i.path===e.substring(0,a)&&(i.scope&&(Z=i.scope),o=GET(i.path),i.fn.call(i.context,e,i.format?i.format(o,e,n):o,n))}else for(var s=0;s<i.$path.length;s++)if(i.$path[s]===e){var o=GET(i.path);i.scope&&(Z=i.scope),i.fn.call(i.context,e,i.format?i.format(o,e,n):o,n);break}}}function En(e){for(var t=-1,n=e,r=[];-1!==(t=e.indexOf('<'+xe,t));){var i,a=e.indexOf('<\/script>',t+8),s=e.substring(t,a+9),t=a+9,a=s.indexOf('>');-1!==(i=s.substring(0,a)).indexOf('type=')&&-1===i.lastIndexOf('java'+xe)||s.substring(a+1,s.length-9).trim()||(n=n.replace(s,'').trim(),i='external'+HASH(s),mt[i]||(r.push(s),mt[i]=!0))}return r.length&&$('head').append(r.join('\n')),n}function Tn(e,t){var n=[],r=(e=e.replace(i,function(e){return e=e.replace('<style>','<style type="text/css">'),n.push(e.substring(23,e.length-8).trim()),''}),'css'+(t||''));return t&&(mt[r]?$('#'+r).remove():mt[r]=!0),n.length&&$('<style'+(t?' id="'+r+'"':'')+'>{0}</style>'.format(n.join('\n'))).appendTo('head'),e}function An(e,t,n){-1!==e.indexOf(' #')&&(r=(i=nr(e)).cl,e=i.path);var r,i=e.replace('--\x3e','->').indexOf('->');-1!==i&&(t=On(e.substring(0,i).trim(),t),e=e.substring(i+3).trim()),CL(r,function(){n?n(e,t):le.set(e,t)})}function wn(e,t,n,r){if(e){var i='+'+e;if(nt[i])return nt[i](fe.scope,t,e,At,wr,n,r);if(e&&-1===e.indexOf('?')){for(var a,s=In(e),u=[],o=[],c=0;c<s.length-1;c++){var l=s[c],f=s[c+1]&&d.test(s[c+1])?'[]':'{}',l='w'+('['===l.charAt(0)?'':'.')+l;u.push('if(typeof('+l+')!==\'object\'||'+l+'==null)'+l+'='+f)}for(c=0;c<s.length-1;c++)a=s[c].replace(/'/g,'"'),o.push('binders[\''+a+'\']&&setTimeout(binderbind,1,\''+a+'\',\''+e+'\',$ticks,c)');a=s[s.length-1].replace(/'/g,'"'),o.push('binders[\''+a+'\']&&setTimeout(binderbind,1,\''+a+'\',\''+e+'\',$ticks,c)'),o.push('binders[\'!'+a+'\']&&setTimeout(binderbind,1,\'!'+a+'\',\''+e+'\',$ticks,c)'),'['!==a.charAt(0)&&(a='.'+a);var h=new Function('w','a','b','binders','binderbind','nobind','c','var $ticks=(Math.random()+\'\').substring(2,8);if(!nobind){'+u.join(';')+';var v=typeof(a)==\'function\'?a(MAIN.compiler.get(b)):a;w'+a+'=v}'+o.join(';')+';return a');(nt[i]=h)(fe.scope,t,e,At,wr,n,r)}}}function xn(e,t,n){if(null!=t){var r='++'+t;if(nt[r])return nt[r](e,n,t);for(var i=In(t),a=[],s=0;s<i.length-1;s++){var o=i[s],c=i[s+1]&&d.test(i[s+1])?'[]':'{}',o='w'+('['===o.charAt(0)?'':'.')+o;a.push('if(typeof('+o+')!==\'object\'||'+o+'==null)'+o+'='+c)}var l=i[i.length-1],l=('['!==l.charAt(0)&&(l='.'+l),new Function('w','a','b',a.join(';')+';w'+l+'=a;return a'));return(nt[r]=l)(e,n,t),e}}function On(e,t){if(null!=e){var n=e.charCodeAt(0),n=(37===n?e=J+e.substring(1):35===n&&(e=Le+e.substring(1)),'='+e);if(nt[n])return nt[n](t||fe.scope);if(-1===e.indexOf('?')){if('PLUGINS[\''===e.substring(0,9))return o=e.indexOf(']'),o=new Function('w','var p=w.{0};return p?p[\'{1}\']:undefined'.format(e.substring(0,o+1),e.substring(o+2))),(nt[n]=o)(t||fe.scope);for(var r=In(e),i=[],a=0;a<r.length;a++){var s=r[a];'['!==s.charAt(0)&&(s='.'+s),i.push('if(!w'+s+')return w'+s)}var e=r[r.length-1],o=('['!==e.charAt(0)&&(e='.'+e),new Function('w',i.join(';')+';return w'+e));return(nt[n]=o)(t||fe.scope)}}}function In(e){for(var t=e.split('.'),n=[],r=[],i=0;i<t.length;i++){var a,s=t[i],o=s.indexOf('[');-1===o?(-1===s.indexOf('-')?r.push(s):(a=r.splice(r.length-1),r.push(a+'[\''+s+'\']')),n.push(r.join('.'))):-1===s.indexOf('-')?(r.push(s.substring(0,o)),n.push(r.join('.')),r.splice(r.length-1),r.push(s),n.push(r.join('.'))):(r.push('[\''+s.substring(0,o)+'\']'),n.push(r.join('')),r.push(s.substring(o)),n.push(r.join('')))}return n}function kn(){if(arguments.length)for(var e in Ze){for(var t=!1,n=arguments,r=0;r<n.length;r++)if(e.substring(0,n[r].length)===n[r]){t=!0;break}t&&delete Ze[e]}else Ze={}}function Nn(){kn(),Cn()}function Dn(e){if(e){if(e.tagName===de)return!0;for(var t=e.parentNode;t;){if(t.tagName===de)return!0;t=t.parentNode}}}function Cn(){DEF.monitor&&ee('compilation',2);var e=!1;for(c in ue)for(n=0,a=ue[c];;){if(void 0===(l=a[n++]))break;null==l.context||l.context.element&&Dn(l.context.element[0])||(l.context&&l.context.element&&l.context.element.remove(),l.context.$removed=!0,l.context=null,a.splice(n-1,1),a.length||delete ue[c],DEF.monitor&&ee('events',2),n-=2,e=!0)}for(n=0;;){if(void 0===(l=rt[n++]))break;null==l.context||l.context.element&&Dn(l.context.element[0])||(l.context&&l.context.element&&l.context.element.remove(),l.context.$removed=!0,l.context=null,rt.splice(n-1,1),DEF.monitor&&ee('watchers',2),n-=2,e=!0)}for(n=0;;){if(void 0===(l=le.scrollbars[n++]))break;Dn(l.element[0])||(l.destroy(),n-=2,e=!0)}for(var t=le.components,u=t.length,n=0;n<u;){var r,i=t[n++];i?(r=i.element,i.$removed||!r||!Dn(r[0])||i.attr(I)?(ue.destroy&&EMIT('destroy',i.name,i),ue[s='component.destroy']&&EMIT(s,i.name,i),delete mt['$ST_'+i.name],i.destroy&&i.destroy(),$('#css'+i.ID).remove(),r[0].tagName!==de&&(r.off(),r.find('*').off(),r.remove()),le.paths[i.path]&&le.paths[i.path]--,Gn(i),i.dom.$binderconfig&&(clearTimeout(i.dom.$binderconfig),i.dom.$binderconfig=null),i.$assigned&&SET(i.$assigned,null),i.$assigned=null,i.$main=void 0,i.$data=null,i.dom=null,i.$removed=2,i.path=null,i.setter=null,i.setter2=null,i.getter=null,i.getter2=null,i.make=null,n--,t.splice(n,1),u=le.components.length,e=!0,DEF.monitor&&ee('components',2)):(i.$parser&&!i.$parser.length&&(i.$parser=void 0),i.$formatter&&!i.$formatter.length&&(i.$formatter=void 0))):(n--,t.splice(n,1),u=t.length)}for(c in At){for(var a=At[c],f=0;;){var s,o=a[f++];if(!o)break;if(!o.el||!Dn(o.el[0])){if(-1!==(n=le.binders.indexOf(o))&&le.binders.splice(n,1),(s=o.el)&&!s[0].$br){if(o.$macros)for(var h of o.$macros)h.destroy&&h.destroy();s.off(),s.find('*').off(),s[0].$br=1}f--,a.splice(f,1)}}a.length||(le.paths[c]&&le.paths[c]--,delete At[c]),DEF.monitor&&Wn('binders')}kn('find');var d,p=ce.PLUGINS;for(d in p){var m=p[d];m.element&&Dn(m.element[0])&&m.element[0].innerHTML||(m.$remove(),delete p[d],DEF.monitor&&Wn('plugins'))}SET('NOW',new Date);var c,l,g=ce.NOW.getTime(),v=!1,b=!1;for(c in Je)Je[c]<=g&&(delete Je[c],v=!0);for(c in v&&!ce.isPRIVATEMODE&&We.setItem(fe.localstorage+'.blocked',STRINGIFY(Je)),qe)(!(l=qe[c]).expire||l.expire<=g)&&(delete qe[c],b=!0);b&&Sn(),e&&(Rn(),setTimeout(on,2e3))}function Sn(){ce.isPRIVATEMODE||We.setItem(fe.localstorage+'.cache',STRINGIFY(qe))}function Rn(){setTimeout2('$refresh',function(){le.components.sort(function(e,t){if(e.$removed||!e.path)return 1;if(t.$removed||!t.path)return-1;var n=e.path.length,r=t.path.length;return r<n?-1:n===r?je(e.path,t.path):1})},200)}function Ln(e,n,r){e&&e.length&&setTimeout(function(e){for(var t of e)t.stateX(n,r)},2,e)}function Mn(e){this.path=e}He.get=On;var Fn=Mn.prototype;function Pn(e,t){return t&&-1!==t.indexOf('?')?e.makepath(t):e.path+(t?'.'+t:'')}function jn(e,t){var n=this;n.name=e,n.binder=t,n.element=t.el,n.dom=t.el[0],n.path=t.path,(0,le.macros[e])(n,t.el,fe.prefixcssmacros+e),n.make&&n.make(),n.binder.scope&&(n.scope=n.element.scope())}function Hn(e){var t=this,n=(t._id=t.ID=ae+He.counter++,t.$parser=[],t.$formatter=[],t.$configwatcher={},t.$configchanges={},t.trim=!0,t.$data={},e.lastIndexOf('@'));t.name=e,t.$name=-1===n?e:e.substring(0,n),t.version=-1===n?'':e.substring(n+1),t.removed=!1}function Wn(e){var t,n=le.performance,n=(Date.now(),e.name?(t=n.components,n.changes.components=1):(t=n.binders,n.changes.binders=1),t.peak?t.peak++:t.peak=1,t=(t=e.$usage)||(e.$usage={count:0}),Date.now());t.time&&(t.diff=n-t.time),t.count++,t.time=n}function ee(e,t){var n=le.performance[e];switch(t){case 1:n.add=n.add?n.add+1:1;break;case 2:n.rem=n.rem?n.rem+1:1;break;default:n.peak=n.peak?n.peak+1:1,n.count=n.count?n.count+1:1}t=Date.now();n.time&&(n.diff=t-n.time),n.time=t,le.performance.changes[e]=1}Fn.$formatnoop=function(e){return e},Fn.apply=function(){return Z=this.path,this},Fn.$format=function(e){var t=ce.PLUGINS[this.path];return t&&t[e]?(DEF.monitor&&ee('plugins'),t[e]):Fn.$formatnoop},Fn.makepath=function(e){var i=this,t=(e=e.replace(/\?\d+/g,function(e){for(var t=+e.substring(1),n=i.parent,r=1;r<t;r++)n=n&&n.parent;return(n||i).path}).replace(g,i.path)).indexOf('|');return-1===t?e:'PLUGINS["{0}"].'.format(e.substring(0,t))+e.substring(t+1)},Fn.unwatch=function(e,t){return OFF(R+this._id+'#watch',Pn(this,e),t),this},Fn.watch=function(e,t,n){return ON(R+this._id+'#watch',Pn(this,e),t,n,this),this},Fn.reset=function(e,t){return 0<e&&(t=e,e=''),RESET(Pn(this,e),t)},Fn.default=function(e,t){return 0<e&&(t=e,e=''),DEFAULT(Pn(this,e),t)},Fn.set=function(e,t,n,r){return SET(Pn(this,e),t,n,r)},Fn.push=function(e,t,n,r){return PUSH(Pn(this,e),t,n,r)},Fn.update=function(e,t,n){return UPDATE(Pn(this,e),t,n)},Fn.change=function(e){return CHANGE(Pn(this,e),!0)},Fn.get=function(e){return GET(Pn(this,e))},Fn.can=function(e){return CAN(this.path,e)},Fn.errors=function(e,t){return ERRORS(this.path,e,t)},Fn.remove=function(){for(var e=le.components,t=0;t<e.length;t++){var n=e[t];n.scope&&n.scope.path===this.path&&n.remove(!0)}OFF(R+this._id+'#watch');var r=this.element;r.find('*').off(),r.off(),r.remove(),setTimeout2('$cleaner',Nn,100)},Fn.FIND=function(e,t,n,r){return this.element.FIND(e,t,n,r)},Fn.SETTER=function(e,t,n,r,i,a,s){return this.element.SETTER(e,t,n,r,i,a,s)},Fn.RECONFIGURE=function(e,t){return this.element.RECONFIGURE(e,t)};var T=Hn.prototype,e=jn.prototype;function zn(e){var t=e.$bindcache;if(t.bt=0,e.$bindchanges){var n=HASH(t.value);if(n===e.$valuehash)return;e.$valuehash=n}fe.monitor&&Wn(e),e.config.$setter&&EXEC.call(e,e.config.$setter.SCOPE(e),t.value,t.path,t.type),e.data&&e.data('',t.value),e.$skipsetter||(e.setter(t.value,t.path,t.type),e.dom.setter&&e.dom.setter(t.value,t.path,t.type)),e.$skipsetter&&(e.$skipsetter=!1),e.setter2&&e.setter2(t.value,t.path,t.type)}function Un(e){e.setterX(e.$bindcache.value,e.$bindcache.path,e.$bindcache.type)}function Gn(e){if(e.$W){for(var t in e.$W){t=e.$W[t];t.id&&clearInterval(t.id)}delete e.$W}}function Yn(e,t,n){if(!e.$removed){var r=e[n]();if(r){clearInterval(t.id);for(var i=0;i<t.callback.length;i++)t.callback[i].call(e,r);delete e.$W[n]}}}function Xn(e,t,n){t.id&&clearInterval(t.id),t.id=setInterval(Yn,fe.delaywatcher,e,t,n)}e.set=function(e){return SET(this.binder.path,e)},e.get=function(){return GET(this.binder.path)},e.refresh=function(){return this.binder.refresh(),this},T.setterX=function(e,t,n){var r=this;if(!(!r.setter&&!r.dom.setter||r.$bindexact&&r.path!==t&&-1===r.path.indexOf(t+'.')&&n)){var i=r.$bindcache;if(arguments.length)if(r.$format&&(e=r.$format(e,t,n,r.scope)),r.$bindvisible)i.check&&(clearTimeout(i.check),i.check=null),HIDDEN(r.dom)?(i.value=e,i.path=t,i.type=n,i.bt&&clearTimeout(i.bt),i.is=!0,i.check=setTimeout(Un,500,r)):(i.value=e,i.path=t,i.type=n,i.bt||(i.is?r.setterX():zn(r)));else{if(r.$bindchanges){var a=HASH(e);if(a===r.$valuehash)return;r.$valuehash=a}fe.monitor&&Wn(r),r.config.$setter&&EXEC.call(r,r.config.$setter.SCOPE(r),e,t,n),r.data&&r.data('',e),r.$skipsetter||(r.setter&&r.setter(e,t,n),r.dom.setter&&r.dom.setter(e,t,n)),r.$skipsetter&&(r.$skipsetter=!1),r.setter2&&r.setter2(e,t,n)}else!HIDDEN(r.dom)&&i&&i.is&&(i.is=!1,i.bt&&clearTimeout(i.bt),i.bt=setTimeout(zn,r.$bindtimeout,r))}},T.stateX=function(e,t){var n=this,r=e+'x'+t,i=n.config,a=(n.$bindchanges&&n.$statekey===r||(n.$statekey=r,i.$state&&EXEC.call(n,i.$state.SCOPE(n),e,t),n.state&&n.state(e,t),n.dom.state&&n.dom.state(i),n.state2&&n.state2(e,t)),n.$stateprev||(n.$stateprev={modified:!1,touched:!1,invalid:!1}),n.$stateprev),e=[],t=(a.modified!=i.modified&&e.push('modified'),a.touched!=i.touched&&e.push('touched'),a.invalid!=i.invalid&&e.push('invalid'),n.dom.classList);if(t.toggle('ui-modified',1==i.modified),t.toggle('ui-touched',1==i.touched),t.toggle('ui-disabled',1==i.disabled),t.toggle('ui-invalid',1==i.invalid&&(1==i.modified||1==i.touched)),e.length)for(var r of e)n.configure&&n.configure(r,i[r],!1,a[r]),n.dom.configure&&n.dom.configure(r,i[r],!1,a[r]),a[r]=i[r]},T.getter=function(e,t,n){var r=this;e=r.parser(e),r.getter2&&r.getter2(e,t),n?en(r):e!==r.get()?(t&&(r.$skip=!0),r.config.touched=!0,r.set(e,2)):3===t&&en(r)},T.setter=function(n,e,r){var i,a=this;2===r&&a.$skip?a.$skip=!1:(i='select-one',n=a.formatter(n),rn(a.dom,function(e){e.$com!==a&&(e.$com=a);var t=e.$com.path;t&&t.length&&t!==a.path||('checkbox'!==e.type?(null==n&&(n=''),r||!a.$autofill||e.type===i||'range'===e.type||a.$default||ot.push(e.$com),e.type===i||'select'===e.type?(t=$(e)).val()!==n&&t.val(n):e.value!==n&&(e.value=n)):(t=(t=null!=n?(n+'').toLowerCase():'')===Te||'1'===t||'on'===t)!==e.checked&&(e.checked=t))}))},T.parsesource=function(e){var t='';return this.type!==P&&this.config.type!==P||(t=P),e.parseSource(t)},T.modify=function(e,t){return e=this.parser(e),this.config.touched=!0,this.set(e,null==t?2:t),this},T.command=function(e,t){var n=this,r=(n.$commands||(n.$commands={}),!1);return'^'===e.charAt(0)&&(r=!0,e=e.substring(1)),n.$commands[e]?r?n.$commands[e].unshift(t):n.$commands[e].push(t):n.$commands[e]=[t],n},T.autofill=function(e){return this.$autofill=null==e||1==e,this},T.import=function(e,t,n,r){return IMPORT(e,this.element,t,n,r),this},T.data=function(e,t){var n=this.$data[e=e||'@'];if(1===arguments.length)return n?n.value:null;if(n){n.value=t;for(var r=0;r<n.items.length;r++){var i=n.items[r],a=Z;i.el[0].parentNode&&i.exec(t,e),Z=a}}else this.$data[e]={value:t,items:[]};if(this.$ppc)for(var s=le.components,r=0;r<s.length;r++){var o=s[r];if(o.owner===this&&o.$pp&&e===o.path)try{o.setterX(t,t,2)}catch(e){Pe(e)}}return t},T.$except=function(e){for(var t=self.$path,n=0;n<e.length;n++)for(var r=0;r<t.length;r++)if(e[n]===t[r])return!0;return!1},T.$compare=function(e){var t=this;if(t.$pathfixed)return t.path===e||e.length<t.path.length&&t.path.substring(0,e.length)===e;if(e.length>t.path.length){for(var n=0;n<t.path.length;n++)if(e.charAt(n)!==t.path.charAt(n))return!1;var r=e.charAt(n);return'.'===r||'['===r||''===r}for(n=0;n<t.$path.length;n++)if(t.$path[n]===e)return!0},T.notmodified=function(e){return typeof e===oe&&(e=[e]),NOTMODIFIED(this._id,this.get(),e)},e.$waiter=T.$waiter=function(e,t){var n=this;if(!0!==e){if(!1!==e){if(n.$W||(n.$W={}),n.$W[e]){for(var r=0;r<n.$W[e].length;r++)if(n.$W[e][r]===t)return n;return n.$W[e].callback.push(t),n}return n.$W[e]={callback:[t]},Xn(n,n.$W[e],e),n}if(n.$W)for(var i in n.$W){i=n.$W[i];i&&clearInterval(i.id)}}else if(n.$W)for(var a in n.$W)Xn(n,n.$W[a],a)},e.hidden=T.hidden=function(e){if(this.$removed)return e=null,1;var t=!HIDDEN(this.dom);return e&&(t?e.call(this):this.$waiter(ge,e)),t},e.visible=T.visible=function(e){if(this.$removed)return e=null,0;var t=!HIDDEN(this.dom);return e&&(t?e.call(this):this.$waiter('visible',e)),t},e.width=T.width=function(e){var t=this;if(t.$removed)return e=null,0;var n=t.element?t.dom.offsetWidth:0;return e&&(n?e.call(t,n):t.$waiter(ve,e)),n},e.height=T.height=function(e){var t=this;if(t.$removed)return e=null,0;var n=t.element?t.dom.offsetHeight:0;return e&&(n?e.call(t,n):t.$waiter(be,e)),n},T.release=function(e){return void 0===e||this.$removed?HIDDEN(this.dom):e},T.validate2=function(){return en(this)},T.exec=function(r,i,a,s,o,c){var e,t,l=this;return-1!==r.indexOf(' #')&&(t=(e=nr(r)).cl,r=e.path),r=rr(r),CL(t,function(){for(var e=l.find(ie),t=0;t<e.length;t++){var n=e[t];n.$com&&(fe.monitor&&Wn(l),n.$com.caller=l,n.$com[r]&&n.$com[r](i,a,s,o,c))}}),l},T.replace=function(e,t){var n=this,r=(He.is&&(He.recompile=!0),R),i=n.element,a=i.attrd(r),s=(a=(a=a||i.attrd(r=L))||i.attr(r),i[0].$scopedata);return i.rattrd(ae,'-',A,E),i[0].$com=i[0].$scopedata=null,a&&n.element.rattrd(r),t?i.off().remove():n.attrd('jc-replaced',Te),n.element=$(e),a&&('UI-'===n.element[0].tagName.substring(0,3)?n.element.attr(r,a):n.element.attrd(r,a)),n.dom=n.element[0],n.dom.$com=n,s&&((n.dom.$scopedata=s).element=n.element,(t=PLUGINS[s.path])&&(t.element=n.element)),n.siblings=!1,n},T.compile=function(e){return!e&&this.attrd(V)&&this.attrd(V,'1'),on(e||this.element),this},T.notify=function(){return NOTIFY(this.path),this},T.update=function(e){return this.$binded&&this.set(this.get(),e),this},T.refresh=function(e,t){var n=this;return n.$binded&&(typeof e===oe&&(t=e,e=!0),e?n.set(n.get(),t):n.setter&&n.setterX(n.get(),n.path,1)),n},e.tclass=T.tclass=function(e,t){return this.element.tclass(e,t),this},e.aclass=T.aclass=function(e,t){var n=this;return t?setTimeout(function(){n.element.aclass(e)},t):n.element.aclass(e),n},e.hclass=T.hclass=function(e){return this.element.hclass(e)},e.rclass=T.rclass=function(e,t){var n=this.element;return t?setTimeout(function(){n.rclass(e)},t):e?n.rclass(e):n.rclass(),this},e.rclass2=T.rclass2=function(e){return this.element.rclass2(e),this},e.EXEC=function(e,t,n,r,i){var a,e=this.scope?this.scope.makepath(e):e;return'@'===e.charAt(0)?(e=e.substring(1),(a=this.parent().component())&&a[e]&&a[e](t,n,r,i)):EXEC(e,t,n,r,i),this},e.SEEX=function(e,t,n,r,i){var a,e=this.scope?this.scope.makepath(e):e;return'@'===e.charAt(0)?(e=e.substring(1),(a=this.parent().component())&&(typeof a[e]===K?a[e](t,n,r,i):a[e]=t)):SEEX(e,t,n,r,i),this},T.EXEC=function(e,t,n,r,i){var a,e=this.makepath(e);return'@'===e.charAt(0)?(e=e.substring(1),(a=this.parent().component())&&a[e]&&a[e](t,n,r,i)):EXEC(e,t,n,r,i),this},T.SEEX=function(e,t,n,r,i){var a,e=this.makepath(e);return'@'===e.charAt(0)?(e=e.substring(1),(a=this.parent().component())&&(typeof a[e]===K?a[e](t,n,r,i):a[e]=t)):SEEX(e,t,n,r,i),this},T.noscope=function(e){return this.$noscope=void 0===e||!0===e,this},T.nocompile=function(){return this.element.attrd(V,'0'),this},T.singleton=function(){return mt['$ST_'+this.name]=!0,this},T.blind=function(){return this.path=null,this.$path=null,this.$$path=null,this},T.bindchanges=function(e){return this.$bindchanges=null==e||!0===e,this},T.bindexact=function(e){return this.$bindexact=null==e||!0===e,this},T.bindvisible=function(e){var t=this;return!1===e?(t.$bindvisible=!1,t.$bindcache=null):(t.$bindvisible=!0,t.$bindtimeout=e||fe.delaybinder,t.$bindcache={}),t},T.readonly=function(){return this.validate=null,this.getter=null,this.setter=null,this},e.faicon=T.faicon=T.icon=function(e){return e?(-1===e.indexOf(' ')?fe.iconprefix:'')+e:''},T.novalidate=T.noValid=T.noValidate=function(){return self},T.nodirty=T.noDirty=function(){return self},T.datasource=function(e,t,n){var r=this,i=r.$datasource;return i&&r.unwatch(i.path,i.fn),e?(e=r.makepath(e),!(r.$datasource={path:e,fn:t})===n||r.$loaded?r.watch(e,t,!1!==n):(r.watch(e,t),r.$confds=function(){t.call(r,e,On(e),0)})):r.$datasource=null,r},T.makepath=function(e){var t,n=this;return-1!==e.indexOf('?')&&(t=n.pathscope?n.scope:n.$scopepath,(t=void 0===n.$scopepath?n.$scopepath=n.element.scope()||null:t)&&(e=t.makepath(e))),e},T.scopepath=function(e){var t=this;return-1===e.indexOf('?')?e:(void 0===t.$scopepath&&(t.$scopepath=t.element.scope()||null),t.$scopepath?t.$scopepath.makepath(e):e)},T.setPath=function(e,t){var n=this,r=Ut(e),i=(r?(e=r.path,n.$format=r.fn,r.scope&&(n.$format.scope=!0)):t||(n.$format=null),[]);if('@'===e.charAt(0)?(e=e.substring(1),n.$pp=!0,n.owner.$ppc=!0):n.$pp=!1,'.'===(e=37===(e=e.env()).charCodeAt(0)?J+e.substring(1):e))return n.path='',void(n.$path=EMPTYARRAY);if(33===e.charCodeAt(0))n.$pathfixed=!0,e=e.substring(1),i.push(e);else{for(var a=e.split('.'),s=[],o=0;o<a.length;o++){var c,l=a[o].lastIndexOf('[');-1!==l&&(c=s.join('.'),i.push(c+(c?'.':'')+a[o].substring(0,l))),s.push(a[o]),i.push(s.join('.'))}n.$pathfixed=!1}return n.path=e,n.$path=i,1!==t&&He.ready&&Rn(),-1===e.indexOf('?')&&(le.paths[e]?le.paths[e]++:le.paths[e]=1),n},e.attr=T.attr=Fn.attr=function(e,t){var n=this.element;return void 0===t?n.attr(e):(n.attr(e,t),this)};function _n(e,t,n){if(!isMOBILE){typeof n!=P&&(n=0);for(var r=e.find(typeof t===oe?t:'input,select,textarea'),i=0;i<r.length;i++){var a=r[i];if(a&&!HIDDEN(a)&&(a.focus(),document.activeElement==a))return}n<15&&setTimeout(_n,200,e,t,n+1)}}function Bn(e){e.$configtimeout=null,e.reconfigure(e.$configchanges),e.$configchanges={}}function Vn(e,t){e.$assigned&&SET(e.$assigned,null),e.$assigned=e.makepath(t),SET(e.$assigned,e)}function Jn(e,t){EXEC.call(e,e.makepath(t.$reconfigure),e)}e.autofocus=T.autofocus=Fn.autofocus=function(e,t){return _n(this.element,e,t),this},e.attrd=T.attrd=Fn.attrd=function(e,t){e=w+e;var n=this.element;return void 0===t?n.attr(e):(n.attr(e,t),this)},e.attrd2=T.attrd2=Fn.attrd2=function(e){return this.element.attrd2(e)},e.css=T.css=Fn.css=function(e,t){var n=this.element;return void 0===t?n.css(e):(n.css(e,t),this)},T.main=Fn.main=function(){var e;return void 0===this.$main&&(e=this.parent().closest(ie)[0],this.$main=e?e.$com:null),this.$main},T.rcwatch=function(e,t){return t&&(this.reconfigure(t),this.$reconfigure()),this},T.configdisplay=function(e,t){if(typeof t!==oe||!/@(xs|sm|md|lg|dark|light)=/.test(t))return t;var n=this,r=(n.$configdisplay||(n.$configdisplay={}),n.$configdisplay[e]||(n.$configdisplay[e]={}),n.$configdisplay[e]);if(r.cache!==t)for(var i=(r.cache=t).split(/,|\s/),a=0;a<i.length;a++){var s,o=i[a].split('='),c=o[1];c===Te||c===U?c=c===Te:m.test(c)&&(s=+c,isNaN(s)||(c=s)),r[o[0].substring(1)]=c}if(null!=r.dark||null!=r.light){var l=document.body.classList.contains(fe.prefixcsslibrary+'dark')?'dark':'light',c=r[l];if('dark'===l||'light'===l)return c}return null==(c=r[l=WIDTH()])&&('xs'===l?null==(c=null==(c=r.sm)?r.md:c)&&(c=r.lg):'sm'===l?null==(c=null==(c=r.xs)?r.md:c)&&(c=r.lg):'md'===l?null==(c=null==(c=r.sm)?r.lg:c)&&(c=r.xs):'lg'===l&&null==(c=null==(c=r.md)?r.sm:c)&&(c=r.xs)),c},T.$configmonitor=function(n){var r=this;return function(e,t){r.$configchanges[n]=t,r.$configtimeout&&clearTimeout(r.$configtimeout),r.$configtimeout=setTimeout(Bn,50,r)}},T.reconfigure=function(e,i,a,s){var o=this;if(null==e)return o;if(typeof e==he)for(var t in e){var n=e[t],r='='===t.charAt(0),r=(r&&(t=t.substring(1),o.$configwatcher[t]||(o.$configwatcher[t]=n=o.makepath(n),o.watch(n,o.$configmonitor(t))),n=GET(n)),r||(n=o.configdisplay(t,n)),o.config[t]);a||o.config[t]===n||(o.config[t]=n),i?i(t,n,a,a?void 0:r):s||(o.configure&&o.configure(t,n,a,a?void 0:r),o.dom.configure&&o.dom.configure(t,n,a,a?void 0:r)),o.data&&o.data(ke+'.'+t,n)}else'='===e.charAt(0)&&-1===e.indexOf(':')?(e=e.substring(1).SCOPE(o),o.watch&&(o.$rcwatch&&o.unwatch(o.$rcwatch,o.rcwatch),o.watch(e,o.rcwatch),o.$rcwatch=e),o.reconfigure(On(e),i,a)):TRANSLATE(e).parseConfig(function(e,t){var n=o.config[e],r='='===e.charAt(0);r&&(e=e.substring(1),o.$configwatcher[e]||(o.$configwatcher[e]=t=o.makepath(t),o.watch(t,o.$configmonitor(e))),t=GET(t)),r||(t=o.configdisplay(e,t)),!o.$new&&a||o.config[e]===t||(o.config[e]=t),o.data&&o.data(ke+'.'+e,t),i?i(e,t,a,a?void 0:n):s||(o.configure&&o.configure(e,t,a,a?void 0:n),o.dom&&o.dom.configure&&o.dom.configure(e,t,a,a?void 0:n))});return o.$reconfigure(),o},T.$reconfigure=function(){var e=this,t=e.config;e.data&&e.data(ke,t),t.$type&&(e.type=t.$type,delete t.$type),t.$assign&&(setTimeout(Vn,-1===t.$assign.indexOf('?')?1:10,e,t.$assign),delete t.$assign),t.$id&&(e.id=t.$id,delete t.$id),0==t.$compile&&e.nocompile&&(e.nocompile(),delete t.$compile),t.$init&&(e.$init=t.$init,delete t.$init),null!=t.$bindvisible&&e.bindvisible(!!t.$bindvisible&&0),t.$class&&(e.tclass(t.$class),delete t.$class),t.$reconfigure&&(setTimeout(Jn,-1===t.$reconfigure.indexOf('?')?1:10,e,t.$reconfigure),delete t.$reconfigure)},e.closest=T.closest=Fn.closest=function(e){return this.element.closest(e)},e.parent=T.parent=Fn.parent=function(e){if(!e)return this.element.parent();if('auto'===e){var t=this.dom;if(t){for(t=t.parentNode;;){if(!t||'BODY'===t.tagName)break;if(t.style.height&&!t.classList.contains(fe.prefixcsslibrary+'scrollbar-area'))return $(t);t=t.parentNode}return Me}}if('parent'!==e.substring(0,6))return'window'===e?Me:'document'===e?Fe:this.element.closest(e);var n=e.substring(6),r=this.element.parent();if(n)for(var n=+n,i=0;i<n;i++)r=r.parent();return r};var qn={number:1,boolean:1},Qn=(e.html=T.html=function(e){var t=this.element;if(void 0===e)return t.html();e instanceof Array&&(e=e.join(''));Ct=t[0];e=e||qn[typeof e]?t.empty().append(e):t.empty();return Ct=null,e},e.text=T.text=function(e){var t=this.element;return void 0===e?t.text():(e=e instanceof Array?e.join(''):e)||qn[typeof e]?t.empty().text(e):t.empty()},e.empty=T.empty=function(){if(this.$children){for(var e=0;e<le.components.length;e++){var t=le.components[e];t.$removed||t.owner!==this||t.remove()}this.$children=0}var n=this.element;return n.empty(),n},e.append=T.append=Fn.append=function(e){var t=this.element,e=(e instanceof Array&&(e=e.join('')),Ct=t[0],e?t.append(e):t);return Ct=null,e},e.event=T.event=Fn.event=function(){var t=this;return t.element?t.element.on.apply(t.element,arguments):setTimeout(function(e){t.event(t,e)},500,arguments),t},e.find=T.find=Fn.find=function(e){var t=this.element;if(e&&typeof e==he){var n,r={};for(n in e)r[n]=t.find(e[n]);return r}return t.find(e)},T.isInvalid=function(){return this.config.touched&&this.config.invalid},T.unwatch=function(e,t){return OFF('com'+this._id+'#watch',e,t),this},T.watch=function(e,t,n){return e=typeof e===K?(n=t,t=e,this.path):e.replace(v,this.path),this.on('watch',e,t,n),this},T.invalid=function(){return INVALID(this.path,this)},T.change=T.touched=function(e){return CHANGE(this.path,void 0===e||e),this},T.dirty=function(e,t){return void 0===e?!this.config.touched:(this.config.touched=!e,t||Ln([this],2,2),this)},T.reset=function(){var e=this;return e.config.modified=!1,e.config.touched=!1,e.config.invalid=!!e.validate&&!e.validate(e.get()),e.stateX(1,3),e},T.default=function(e){return le.default(this.path,0,this,e),this},T.remove=T.kill=function(e){var t=this,n=t.element;return Gn(t),n.removeData(ae),n.attr(I,Te).find(ie).attr(I,Te),t.$removed=1,t.removed=!0,OFF('com'+t._id+'#'),e||setTimeout2('$cleaner',Nn,100),!0},T.on=function(e,t,n,r){t=typeof t===K?(r=n,n=t,''):t.replace('.*','');var i='';return'^'===e.charAt(0)&&(i='^',e=e.substring(1).trim()),ON(i+'com'+this._id+'#'+e,t,n,r,this),this},T.off=function(e,t){return OFF('com'+this._id+'#'+e,t),this},T.caniuse=function(e){return le.$components[e]?1:xt[e]?2:void 0},T.formatter=function(e,t){var n=this;if(typeof e===K)return n.$formatter||(n.$formatter=[]),!0===t?n.$formatter.unshift(e):n.$formatter.push(e),n;var r=n.format||n.config.format,i=n.type||n.config.type,a=n.$formatter;if(a&&a.length)for(var s=0;s<a.length;s++)e=a[s].call(n,n.path,e,i,r);if((a=le.$formatter)&&a.length)for(s=0;s<a.length;s++)e=a[s].call(n,n.path,e,i,r);return e},T.parser=function(e,t){var n=this;if((i=typeof e)===K)return n.$parser||(n.$parser=[]),!0===t?n.$parser.unshift(e):n.$parser.push(e),n;n.trim&&i===oe&&(e=e.trim());var r=n.format||n.config.format,i=n.type||n.config.type,a=n.$parser;if(a&&a.length)for(var s=0;s<a.length;s++)e=a[s].call(n,n.path,e,i,r);if((a=le.$parser)&&a.length)for(s=0;s<a.length;s++)e=a[s].call(n,n.path,e,i,r);return e},T.emit=function(){return EMIT.apply(le,arguments),this},T.get=function(e){var t,n=this;return n.$pp?n.owner.data(n.path):(e=e?n.makepath(e):n.path||n.$jcbindget)?(t=n.$jcbind&&n.$jcbind.vbind?On(e,n.$jcbind.vbind.value):On(e),n.$format?n.$format(t,e,-1,n.scope):t):void 0},T.skip=function(){return this.$skipsetter=!0,this},T.set=function(e,t){var n=this;if(n.$pp)return n.owner.set(n.path,e),n;var r=arguments;return n.config.modified=!0,3===r.length?le.set(n.makepath(r[0]),r[1],r[2]):(r=n.path||n.$jcbindset)&&le.set(r,e,t),n},T.inc=function(e,t){var n=this.path||this.$jcbindset;return this.config.modified=!0,n&&le.inc(n,e,t),this},T.extend=function(e,t){var n=this.path||this.$jcbindset;return this.config.modified=!0,n&&le.extend(n,e,t),this},T.rewrite=function(e,t){var n=this.path||this.$jcbindset;return this.config.modified=!0,n&&REWRITE(n,e,t),this},T.push=function(e,t){var n=this.path||this.$jcbindset;return this.config.modified=!0,n&&le.push(n,e,t),this},navigator.userAgent||'');function Kn(){setTimeout2('$compile',COMPILE,700)}ce.isMOBILE=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(Qn),ce.isROBOT=/search|agent|bot|crawler|spider/i.test(Qn),ce.isSTANDALONE=navigator.standalone||ce.matchMedia('(display-mode: standalone)').matches,ce.isTOUCH=!!('ontouchstart'in ce||navigator.maxTouchPoints),ce.isIE=/msie|trident/i.test(Qn),ce.setTimeout2=function(e,t,n,r,i){var a=':'+e;if(0<r){var s=a+':limit';if(mt[s]>=r)return;mt[s]=(mt[s]||0)+1,mt[a]&&clearTimeout(mt[a]),mt[a]=setTimeout(function(e){mt[s]=void 0,t&&t(e)},n,i)}else mt[a]&&clearTimeout(mt[a]),mt[a]=setTimeout(t,n,i);return e},ce.clearTimeout2=function(e){e=':'+e;return!!mt[e]&&(clearTimeout(mt[e]),mt[e]=void 0,mt[e+':limit']&&(mt[e+':limit']=void 0),!0)},ce.CONFIG=function(e,t){if(typeof e===oe){if(-1!==e.indexOf(',')){for(var n=e.split(','),r=0;r<n.length;r++)CONFIG(n[r].trim(),t);return}var i=[];n=e.split(' ');for(r=0;r<n.length;r++){var a=n[r],s='';switch(a.trim().charAt(0)){case'*':return void i.push('com.path.indexOf(\'{0}\')!==-1'.format(a.substring(1)));case'.':s=pe;break;case'#':s='id';break;default:s='$name'}i.push('com.{0}==\'{1}\''.format(s,'$name'===s?a:a.substring(1)))}e=FN('com=>'+i.join('&&'))}Ke.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='';if(-1!==r&&(i=e.substring(r+1).trim(),e=e.substring(0,r).trim()),'@'===e.charAt(0))return r=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===K&&(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<le.components.length;a++){var s=le.components[a];s.$removed&&e!==s.name||(t&&s.reconfigure(t,void 0,!0),n.call(s,s,s.config,'ui–'+s.name))}Kn()},ce.ADD=function(e,t,n,r){if((t=(t=t instanceof Hn||t instanceof Mn||t instanceof zr?t.element:t)instanceof jQuery?t[0]:t)&&typeof t==he&&!t.parentNode&&(r=n,n=t,t=null),typeof n===oe&&(r=n,n=null),e instanceof Array)for(var i=0;i<e.length;i++)ADD(e[i],t,n,r);else{var a=!1;if(typeof e==he)(l=[]).push(e.name||''),l.push(e.path||''),e.config&&typeof e.config==he?n=e.config:l.push(e.config||''),e.element&&(t=e.element),e.prepend&&(a=!0);else{if('!'===(s=e.split('__')[0]).charAt(0)){e=e.substring(1);var s=s.substring(1),u=Object.keys(le.$components),o=s.indexOf('@');-1!==o&&(s=s.substring(0,o));for(var c,i=0;i<u.length;i++)if((c=-1!==(o=(c=u[i]).indexOf('@'))?c.substring(0,o):c)===s)return}l=e.split('__')}n&&(c=ke+GUID(10),ce[c]=n,l[2]='%'+c);var r='<ui-component name="{0}" path="{1}" config="{2}">{3}</ui-component>'.format(l[0],l[1]||'null',l[2]||'null',r||''),l=$(t||Fe.body);a?l.prepend(r):l.append(r),Kn()}},ce.COMPONENT=function(e,t,n,r){if(typeof t===K&&(r=n,n=t,t=null),-1!==e.indexOf(','))for(var i=e.split(','),a=0;a<i.length;a++){var s=i[a].trim();s&&COMPONENT(s,t,n,a?null:r)}else{le.$components[e]&&Ye('Overwriting component:',e);var o=le.$components[e]={name:e,config:t,declaration:n,shared:{},dependencies:r instanceof Array?r:null},c='component.compile';ue[c]&&EMIT(c,e,o)}},ce.WIDTH=function(e){var e=(e=e||Me).width(),t=fe.devices;return e>=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 Kt(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&&ee('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===oe?e.replace(n,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(f,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,s,o=[],u=!0===e?3:2,f=Z,h=u;h<arguments.length;h++)o.push(arguments[h]);if(3==u)if(-1!==t.indexOf(' #')&&(n=nr(t),r=n.cl,t=n.path),'!'===(a=rr(t)).charAt(0)&&(a=a.substring(1),l=!0),-1!==(n=a.indexOf('/'))&&(o.unshift(arguments[2]),i=a.substring(n+1),a=a.substring(0,n)),(s=xt[a])&&3!==s.state){if(1===s.state){if(l)return;if(s.state=2,ue.lazy&&EMIT('lazy',a,!0),Ye('Lazy load: '+a),DEF.monitor&&ee('lazy',2),s.nodes&&s.nodes.length){for(var d of s.nodes)Br(d);delete s.nodes}on()}setTimeout(function(e){Z=f,e[0]=!0,CL(r,()=>SETTER.apply(ce,e))},555,arguments)}else-1===n&&(i=arguments[2]),DEF.monitor&&ee('setters'),CL(r,function(){FIND(a,!0,function(e){Z=f,c=-1!==i.indexOf('.'),ue.setter&&EMIT('setter',a,i,o[0],o[1]);for(var t=0;t<e.length;t++){var n=e[t],r=c?On(i,n):n[i];typeof(r=!r&&n.$new?c?On(i,n.node):n.node[i]:r)===K&&r.apply(n,o)}})});else if(-1!==e.indexOf(' #')&&(n=nr(e),r=n.cl,e=n.path),a=rr(e),i=t,-1!==(n=a.indexOf('/'))&&(o.unshift(arguments[1]),i=a.substring(n+1),a=a.substring(0,n)),'!'===a.charAt(0)&&(a=a.substring(1),l=!0),(s=xt[a])&&3!==s.state){if(1===s.state){if(l)return;if(s.state=2,ue.lazy&&EMIT('lazy',a,!0),DEF.monitor&&ee('lazy',2),Ye('Lazy load: '+a),s.nodes&&s.nodes.length){for(var d of s.nodes)Br(d);delete s.nodes}on()}setTimeout(function(e){Z=f,CL(r,()=>SETTER.apply(ce,e))},555,arguments)}else{var p=FIND(a,!0),c=-1!==i.indexOf('.');DEF.monitor&&ee('setters'),ue.setter&&EMIT('setter',a,i,o[0],o[1]),CL(r,function(){for(var e=0;e<p.length;e++){var t=p[e],n=c?On(i,t):t[i];typeof(n=!n&&t.$new?c?On(i,t.node):t.node[i]:n)===K&&n.apply(t,o)}})}},ce.SEEX=function(e,t,n,r,i){var a,s;typeof e===K?e(t,n,r,i):-1!==e.indexOf('/')||typeof On(-1===(s=(a=e).indexOf(' '))?a:a.substring(0,s))===K?EXEC(e,t,n,r,i):SET(e,t)},ce.CMD=function(e,t,n,r,i,a){ue.cmd&&EMIT('cmd',e,t,n,r,i,a),DEF.monitor&&ee('cmd');for(var s=0;s<le.components.length;s++){var o=le.components[s];if(o&&o.$loaded&&!o.$removed&&o.$commands&&o.$commands[e])for(var c=o.$commands[e],l=0;l<c.length;l++)c[l](t,n,r,i,a)}},ce.ADAPT=function(t,e,n){return n&&typeof n===oe?(n=TRANSLATE(n).VARIABLES().replace(/~CDN~/g,DEF.cdn),t&&(n=n.replace(/~PATH~|CLASS/g,t).replace(/<ui-plugin.*?>/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(),Z&&(e=e.replace(g,Z));for(var f=n;f<arguments.length;f++)t.push(arguments[f]);var a,s,h,n=e.charCodeAt(0);if(-1!==e.indexOf(' #')&&(s=(a=nr(e)).cl,e=a.path),e=rr(e),35===n)return u=e.substring(1),void(r?ue[u]||tr(i,e,t,s):CL(s,()=>EMIT.call(i,u,t[0],t[1],t[2],t[3],t[4])));if(45===n)return c=e.substring(0,3)===E,h=[e.substring(c?3:1).trim(),t[0],t[1],t[2],t[3],t[4]],r&&h.unshift(r),void CL(s,()=>SETTER.apply(ce,h));if(38!==n){ue.exec&&EMIT('exec',e,t[0],t[1],t[2],t[3]);var d,p=null,o=null,c=null,m=0;if(64===n&&(c=e.indexOf('.'),o=e.substring(1,c),p=e.substring(c+1)),o||-1!==(c=e.indexOf('/'))&&(o=e.substring(0,c),p=e.substring(c+1)),o){var l=ce.PLUGINS[o];if(l&&typeof l[p]===K)Rt=a=Z,Z=o,CL(s,function(){var e=Rt&&ce.PLUGINS[Rt];e&&e!==l&&(l.caller=e),Rt=o,l[p].apply(i===ce?l:i,t),DEF.monitor&&(ee('exec'),ee('plugins')),Z=a,m=1});else if(o&&(a=It[o])){if(!a.pending)return Ye('Initializing: '+o),a.pending=!0,void(typeof a.fn===oe?CL(s,function(){IMPORT(a.fn,function(){(a=It[o])&&ce.PLUGIN(a.name,a.fn,a.init,()=>tr(i,e,t))},e=>e.replace(/~PATH~|~ID~/g,a.name))}):(delete It[o],CL(s,()=>ce.PLUGIN(a.name,a.fn,a.init,()=>tr(i,e,t)))));r=!0}r&&!m&&tr(i,e,t,s)}else{if('FUNC'===e.substring(0,5))return(d=FUNC[e.substring(6)])&&(CL(s,()=>d.apply(i===ce?l:i,t)),m=1),void(r&&!m&&tr(i,e,t,s));typeof(d=On(e))===K&&(CL(s,function(){d.apply(i,t),DEF.monitor&&ee('exec')}),m=1),r&&!m&&tr(i,e,t,s)}}else CL(s,()=>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===K)return ce.ATTRD($(e),t);if(typeof e==he)return e[t||'id']}return e},ce.MAKE=function(n,e,t){switch(typeof n){case K:e=n,n={};break;case oe:var r=Kt(n),i=!0;return null==(n=On(r))&&(i=!1,n={}),e.call(n,n,r,function(e,t){xn(n,e,t)}),!i||void 0!==t&&!0!==t?He.ready?wn(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===K&&(e=n,n={});var r='';return e.call(n,function(e,t){return xn(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.length;r++){var i=n[r],a=e[i];t[i]=typeof a==he?a&&CLONE(a):a}return t},ce.CLONE=function(e,t){switch(typeof e){case P:case j:return e;case oe:return t?e:CLONE(GET(e))}return null==e?e:e instanceof Date?new Date(e.getTime()):PARSE(JSON.stringify(e))};function ar(e,t,n,r){An(e,t,function(e,t){delete hr[e],r&&(Z=r),le.set(e,t,n)})}function sr(e,t,n,r){An(e,t,function(e,t){delete hr[e],r&&(Z=r),le.inc(e,t,n)})}function or(e,t,n,r){An(e,t,function(e,t){delete hr[e],r&&(Z=r),le.extend(e,t,n)})}function cr(e,t,n,r){An(e,t,function(e,t){delete hr[e],r&&(Z=r),le.push(e,t,n)})}function lr(e,t){delete hr[e],le.update(e,t)}function ur(n,e,r,t,i){function a(e,t){switch(s){case oe:switch(n){case'set':ar(r,e,i);break;case'push':cr(r,e,i);break;case'extend':or(r,e,i)}break;case K:r(e,t)}}typeof t==j&&(i=t,t=null);var s=typeof r;s===K||s===oe?AJAX(e,a):AJAX(e,r,a)}var fr={GET:1,POST:1,DELETE:1,PUT:1,PATCH:1,API:1},hr=(ce.QUERIFY=function(e,t){if(typeof e!==oe&&(t=e,e=''),!t)return e;for(var n,r=[],i=Object.keys(t),a=0;a<i.length;a++){var s=i[a],o=t[s];null!=o&&(o instanceof Date?o=o.toISOString():o instanceof Array&&(o=o.join(',')),(o+='')&&r.push(encodeURIComponent(s)+'='+encodeURIComponent(o)))}return e?((e=e.split(' '))[n=fr[e[0]]?1:0]+=(-1===e[n].indexOf('?')?'?':'&')+r.join('&'),e.join(' ')):'?'+r.join('&')},ce.STRINGIFY=function(e,n,r,t){void 0===n&&(n=fe.jsoncompress);var i=typeof r,e=JSON.stringify(e,function(e,t){if(!e)return t;if(r)if(r instanceof Array){if(-1===r.indexOf(e))return}else if(i===K){if(!r(e,t))return}else if(!1===r[e])return;if(!0===n){if(typeof t===oe)return(t=t.trim())||void 0;if(!1===t||null==t)return}return t});return t&&Mt?Xr(e,Mt):e},ce.PARSE=function(e,n){if(typeof e==he)return e;var t=(e||'').charAt(0);if('#'===t||'.'===t)return PARSE($(e).html(),n);void 0===n&&(n=fe.jsondate);try{return JSON.parse(e,function(e,t){return typeof t===oe&&n&&t.isJSONDate()?new Date(t):t})}catch(e){return null}},ce.NOOP=function(){},ce.TOGGLE=function(e,t,n){var r=GET(e);SET(e,!r,t,n)},ce.NUL=ce.NULL=function(e,t){SET(e,null,t)},{}),dr=(ce.SET=function(e,t,n,r){var i;{if(!a.test(e))return(i=typeof n)==j||!n||n<10||i!=P?le.set(e,t,n):(hr[e]&&clearTimeout(hr[e]),void(hr[e]=setTimeout(ar,n,e,t,r,Z)));ur('set',e,t,n,r)}},ce.INC=function(e,t,n,r){null==t&&(t=1);var i=typeof n;return i==j||!n||n<10||i!=P?le.inc(e,t,n):(hr[e]&&clearTimeout(hr[e]),void(hr[e]=setTimeout(sr,n,e,t,r,Z)))},ce.EXT=ce.EXTEND=function(e,t,n,r){var i;{if(!a.test(e))return(i=typeof n)==j||!n||n<10||i!=P?le.extend(e,t,n):(hr[e]&&clearTimeout(hr[e]),void(hr[e]=setTimeout(or,n,e,t,r,Z)));ur('extend',e,t,n,r)}},ce.PUSH=function(e,t,n,r){var i;{if(!a.test(e))return(i=typeof n)==j||!n||n<10||i!=P?le.push(e,t,n):(hr[e]&&clearTimeout(hr[e]),void(hr[e]=setTimeout(cr,n,e,t,r,Z)));ur('push',e,t,n,r)}},ce.MODIFIED=function(e,t){var n,r=[];for(n of Gt(e,t))n.config.touched&&n.config.modified&&r.push(n.path);return r},ce.NOTMODIFIED=function(e,t,n){void 0===(t=void 0===t?On(e=Kt(e)):t)&&(t=null),n&&(e=e.concat('#',n));t=STRINGIFY(t,!1,n),n=HASH(t),t='notmodified.'+e;return Ze[t]===n||(Ze[t]=n,!1)},ce.VERSION=function(){for(var e=0;e<arguments.length;e++)for(var t=arguments[e].split(','),n=0;n<t.length;n++){var r,i=t[n].trim(),a=i.indexOf('@');-1!==a&&(r=i.substring(a+1),i=i.substring(0,a),r&&i&&(st[i]=r))}},ce.FIND=function(r,i,a,t){var e,n,s=!1;if(typeof i===K?(s=!0,t=i,i=void 0):typeof a===K&&(o=t,s=!0,t=a,a=o),typeof r===oe&&-1!==r.indexOf('?')&&(r=r.replace(g,Z)),!s){if(typeof r==he)return n=nn(r=!(r instanceof jQuery)?$(r):r,''),i?n:n[0];if(!a&&(n=Ze[e='find.'+r+'.'+(i?0:1)]))return n;var o=nn(null,r);return n=o=!i?o[0]:o,a||(Ze[e]=n),n}WAIT(function(){var e=FIND(r,i,a),t=xt[r];if(t&&1===t.state){if(t.state=2,ue.lazy&&EMIT('lazy',r,!0),DEF.monitor&&ee('lazy',2),Ye('Lazy load: '+r),t.nodes&&t.nodes.length){for(var n of t.nodes)Br(n);delete t.nodes}on()}return e instanceof Array?0<e.length:!!e},function(e){e||(e=FIND(r,i),t.call(e||ce,e))},500,a)},ce.BIND=function(e){if(e instanceof Array)for(var t=0;t<e.length;t++)BIND(e[t]);else(e=(e=Kt(e))&&(e=33===e.charCodeAt(0)?e.substring(1):e).replace(h,''))&&wn(e,On(e),!0)},ce.UPD=ce.UPDATE=function(e,t,n){var r=typeof t;return r==j?le.update(e,t):!t||t<10||r!=P?le.update(e,n,t):(hr[e]&&clearTimeout(hr[e]),void(hr[e]=setTimeout(lr,t,e,n)))},ce.CSS=function(e,t,n){t&&$('#css'+t).remove();e=e instanceof Array?e.join(''):e;e&&$('<style type="text/css"'+(t?' id="css'+t+'"':'')+'>'+(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 s=[];if(-1===i.indexOf('@'))for(var o=i.split(','),c=0;c<o.length;c++){var l=o[c].trim();s.push(e+' '+l)}else s.push(i);r.push(s.join(',')+t.substring(n,a)),t=t.substring(a),n=t.indexOf('{')}return r.join('')}(n,e):e)+'</style>').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',s=0;s<t.length;s++){var o=t[s];switch(o){case'dark':case'darkmode':case'large':case'largemode':break;case'color':case'rgb':case'radius':case'gap':case'margin':e[o]&&i.push(A+o.trim()+':'+(e[o]+'').trim())}}e.color&&!e.rgb&&(3===(c=e.color.substring(1)).length&&(c+=c),e.rgb=parseInt(c.substring(0,2),16)+','+parseInt(c.substring(2,4),16)+','+parseInt(c.substring(4,6),16),i.push(A+'rgb:'+e.rgb)),$('body').tclass(fe.prefixcsslibrary+'dark',!!n).tclass(fe.prefixcsslibrary+'large',!!r),i.length?CSS(':root{'+i.join(';')+'}',a):$('#css'+a).remove();var c=n?'dark':'light';dr!==c&&(dr=c,Tr())},ce.HASH=function(e,t){if(!e)return 0;var n=typeof e;if(n==P)return e;if(n==j)return e?1:0;if(e instanceof Date)return e.getTime();var r=0;if(!(e=n==he?STRINGIFY(e):e).length)return r;for(var i=e.length,a=0;a<i;a++)r=(r<<5)-r+e.charCodeAt(a),r|=0;return 0!=t?r>>>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<r;a++)i.push(Math.random().toString(36).substring(2));return i.join('').substring(0,e)},ce.WAIT=function(t,n,r,i){var e=(1e4*Math.random()>>0).toString(16),a=0<i?e+'_timeout':0,s=(null==i&&(i=5e3),typeof n==P&&(o=r,r=n,n=o),typeof t===oe),o=!1,c=Z;s?On(t=(t=t.replace(g,c)).flags(t))&&(o=!0):t()&&(o=!0),o?n(null,function(e){setTimeout(function(){Z=c,WAIT(t,n,r,i)},e||1)}):(a&&i&&(pt[a]=setTimeout(function(){clearInterval(pt[e]),delete pt[a],delete pt[e],n(new Error('Timeout.'))},i)),pt[e]=setInterval(function(){if(s){if(null==On(t.replace(g,c)))return}else if(!t())return;clearInterval(pt[e]),delete pt[e],a&&(clearTimeout(pt[a]),delete pt[a]),Z=c,n&&n(null,function(e){setTimeout(function(){Z=c,WAIT(t,n,r)},e||1)})},r||500))},ce.COMPILE=function(e){return clearTimeout(void 0),on(e)};var gr,vr,e=Array.prototype,br=String.prototype,$r=Number.prototype,yr=Date.prototype;function Er(e,t,n,r,i){i.pending--,e.wait(t,n,r,i)}function Tr(){for(var e=0;e<le.components.length;e++){var t=le.components[e];if(!t.removed&&!t.$removed&&t.$configdisplay&&t.$ready){var n,r={};for(n in t.$configdisplay)r[n]=t.$configdisplay[n].cache;t.reconfigure(r)}}}function Ar(e){var t=e.$com;e.$jctimeout=0,t.config.touched=!0,t.getter(e.value,!0)}function wr(e,t,n,r){for(var i=At[e],a=0;a<i.length;a++){var s,o=i[a];o.disabled||o.ticks===n||(o.ticks=n,s=Z,o.exec(GET(o.path),t,null,null,null,r),Z=s)}}function xr(){for(var e=wt.splice(0),t=0;t<e.length;t++){var n,r=e[t];r.$init||(n=Z,r.com?r.exec(r.com.data(r.path),r.path):r.exec(GET(r.path),r.path),Z=n,ue.binder&&EMIT('binder',r))}}function Or(){gr&&clearTimeout(gr),gr=setTimeout(xr,15)}function Ir(e){return e.replace(/'/g,'\'')}function kr(u,f,h){var d=f.split(te);if(-1!==d.indexOf('|')){if(!h){for(var e=[],p=[],t=0;t<d.length;t++)'|'!==(J=d[t])?J&&e.push(J):(e.length&&p.push(kr(u,e.join('__'))),e=[]);e.length&&p.push(kr(u,e.join('__'),!0))}return p}var n=null,r=null,o=new Nr,m=[],g={},v=o.el=$(u),b=!1,y='UI-BIND'===u.tagName,E='ui-component,input,textarea,select,button';DEF.monitor&&ee('binders',1);for(var T,t=0;t<d.length;t++){var i=TRANSLATE(d[t].trim());if(i)if(t){var A,a='';if(i!==Ae&&i!=='!'+Ae&&'strict'!==i&&i!==we&&i!=='!'+we?(e=0===(r=i.indexOf(Ae))||1===r,-1===(r=i.indexOf(':'))&&(r=i.length,e||(i+=':value')),c=i.substring(0,r).trim(),a=i.substring(r+1).trim()):c=i,'selector'!==c)if('helpers'!==c)if('assign'!==c){var w,x,O=c.indexOf(' '),O=-1===O?c:c.substring(0,O),I=a.charAt(0),k=c!==Ae?'.'===I?1:'@'===I?2:0:0,N=-1!==a.indexOf('?');if(k?w=function(i,a){return function(e,t,n){var r;if(r=1==a?(r=n.vbindarray()||n.vbind())&&r[i]:(r=n.component())&&r[i])return r.call(this,e,t,n)}}(a=a.substring(1),k):N?w=function(i){return function(e,t,n){var r=n.scope();if(r){r=GET(r.makepath(i));if(r)return r.call(n,e,t,n)}}}(a):a.includes('/')&&(w=function(i){return function(e,t,n){var r=GET(i);if(r)return r.call(n,e,t,n)}}(a)),c!==Ce&&re.test(a)&&(N=-1==(k=a.indexOf('('))?a:a.substring(0,k),x=ae+GUID(5),a=new Function('value',pe,'el','var fn=el[0].'+x+';if(!fn){var _s=el.scope();if(_s){el[0].'+x+'=fn=GET(_s.makepath(\''+N+'\'))}}if(fn)return fn'+(-1==k?'(value,path,el)':a.substring(k)))),l=function(e){var t=arguments;e=e.split(' ')[0].trim().replace(ne,'');for(var n=1;n<t.length;n++)if(e===t[n])return;return 1}(O,'setter','strict','check','track','tracktype',Ee,'delay','macro',De,Oe,Ae,we,'focus',Ce,'format','helper','helpers','currency','empty','changes','ready','once')&&'def'!==c.substring(0,3)?typeof a===K?a:-1!==a.indexOf('=>')?FN(Ir(a)):Hr(a)?FN('(value,path,el)=>'+Ir(a),!0):'@'===a.charAt(0)?o.com[a.substring(1)]:w||GET(a):1)for(var D=c.split('+'),C=0;C<D.length;C++){c=D[C].trim();var s='',S=!1,R=!1,L=!1,I=(-1!==(r=c.indexOf(' '))&&(s=c.substring(r+1),c=c.substring(0,r)),(c=c.replace(/^(~!|!~|!|~)/,function(e){return-1!==e.indexOf('!')&&(R=!0),-1!==e.indexOf('~')&&(S=!0),''})).charAt(0));switch(c===Oe&&(c='t'+Oe),'.'===I&&(R&&(l.$nn=1),m.push({name:c.substring(1),fn:l}),c=Oe),typeof l===K&&(R&&(l.$nn=1),S&&(l.$nv=1)),c){case'attr':r=s.indexOf(' ');e={attr:s,fn:l};R&&(e.$nn=1),S&&(e.$nv=1),-1===r?(o[c]||(o[c]=[]),o[c].push(e),s=''):(e.attr=s.substring(0,r),g[s=s.substring(r+1)]||(g[s]={}),g[s][c]||(g[s][c]=[]),g[s][c].push(e));break;case'changes':case'ready':case'once':break;case'empty':l=a===ye?fe.empty:a;break;case'macro':l=a.split(',').trim();break;case'check':case'currency':case'focus':case Ee:l=a;break;case'format':l='value'===a?'':/^\d+$/.test(a)?+a:a;break;case'helper':-1===(e=a.indexOf('('))?a+='(value)':a=a.substring(0,e+1)+'value,'+a.substring(e+1),l=FN('(value,path,el)=>Thelpers.'+a),R&&(l.$nn=1);break;case Ce:b=!0,l=a;break;case'track':o[c]=a.split(',').trim();continue;case'tracktype':var M=a.split(',').trim();o[c]={};for(var F=0;F<M.length;F++)o[c][M[F]]=1;continue;case'strict':o[c]=a||!0;continue;case ge:c='hide';break;case'exec':c='change';break;case'refresh':c='refreshbind';break;case me:case'disable':c='disable',L=!0,y&&!o.selector&&(o.selector=E);break;case ke:y&&!o.selector&&(o.selector='ui-component');break;case'enabled':case'enable':c='enable',L=!0,y&&!o.selector&&(o.selector=E);break;case ye:c='val',L=!0;break;case Ne:c='def';break;case'set':y&&!o.selector&&(o.selector='ui-component');break;case'delay':l=+a;break;case'href':case'src':case'val':case'title':case Ie:case'text':case $e:L=!0;break;case'setter':l=FN('(value,path,el)=>el.SETTER('+a+')'),R&&(l.$nn=1),S&&(l.$nv=1);break;case De:I=a.charAt(0);l=/^(https|http):\/\//.test(a)||'/'===I||'.'===I||'['===I?'.'===I?a.substring(1):a:'value'===a||'true'===a?1:FN(Ir(a));break;case'tclass':l=a;break;case we:h=!1;(P=v.find(xe+','+Ae).eq(0)).length?h=!0:P=v,l=VBINDARRAY(TRANSLATE(P.html()),v),S&&(l.$nv=1),h&&P.remove();break;case Ae:s!==Te&&s!==ye||(s='');var P,j,H='',W=(a=a.replace(/\{.*?\}/g,function(e){return H=e.replace(/\{|\}/g,'').trim(),''}).trim(),s?v.find(s):v),h=!1;(P=H?$(H):W.find(xe+','+Ae).eq(0)).length?h=!0:P=W,e=TRANSLATE(P.html());try{l=Tangular.compile(e)}catch(v){Pe(v),l=NOOP}R&&(l.$nn=1),S&&(l.$nv=1),a&&(j='',a=a.replace(/(-)?->.*/,function(e){return j=e.replace(/(-)?->/g,'').trim(),''}),l.$vdomattr=j),l.$vdom=a,l.$compile=e.COMPILABLE(),h&&!H&&P.remove();break;case pe:c='setpath'}'def'===c&&(l=new Function('return '+a)()),L&&R&&(o[c+'bk']='src'==c||'href'==c||'title'==c?v.attr(c):c==Ie?v.html():'text'==c?v.text():'val'==c?v.val():c==$e?v.prop(c):'disable'===c?v.prop(me):'enable'===c?0==v.prop(me):''),s?(g[s]||(g[s]={}),c!==Oe&&'attr'!==c?g[s][c]=l:m.length&&(X=m.pop(),g[s].classes?g[s].classes.push(X):g[s].classes=[X])):c!==Oe&&'attr'!==c&&(o[c]=l)}else WARN('Invalid <ui-bind> command '+i,u)}else-1!==a.indexOf('?')&&(A=ln(u))&&(a=A.makepath(a)),SET(a,$(u));else(function(t){o[c]=function(){var e=GET(t);return typeof e===K?e():e}})(a=-1!==a.indexOf('?')&&(A=ln(u))?A.makepath(a):a);else o[c]=a}else{I=(n=i).charAt(0);if('!'===I&&(n=n.substring(1),o.notnull=!0),'-'===(n='#'===I?Le+n.substring(1):n)&&(n=(tn(o.el)||'').split(te)[1]),1===d.length)return(l=GET(n))&&l.call(o.el,o.el),l||null;if((e=Ut(n))&&(n=e.path,o.formatter=e.fn,o.formatter.scope=e.scope),'.'!==I){if('@'===(n='.'===n.substring(n.length-1)?n.substring(0,n.length-1):n).charAt(0)){for(var z=!1,U=('@'===(n=n.substring(1)).charAt(0)&&(z=!0,n=n.substring(1)),n=n||'@',u.parentNode);U;){if(z){if(U.$ctrl){o.com=U.$ctrl,'@'!==n||o.com.$dataw||(o.com.$dataw=1,o.com.watch(function(e,t){o.com.data('@',t)}));break}}else if(U.$com){o.com=U.$com;break}U=U.parentNode}if(!o.com)return null}}else o.virtual=!0,n=n.substring(1)}}for(T in g){o.child||(o.child=[]);var G=g[T];G.selector='-'===T.charAt(0)?ie:T,o.child.push(G)}if(o.empty||(o.empty=''),m.length&&(o.classes=m),o.virtual)n=Kt(n,0,1);else{if(-1!==(n=o.com&&'@'===n.charAt(0)?n:Kt(n,0,1)).indexOf('?')||o.formatter&&o.formatter.scope){if(!(A=ln(u)))return void WARN('Missing <ui-plugin>',u);n=A.makepath(n),o.scope=A.path}o.check&&(o.check=o.check.replace(/\?/,o.scope));var Y=n.split('.'),X='';if(o.com)o.com.$data[n]||(o.com.$data[n]={value:null,items:[]}),o.com.$data[n].items.push(o);else for(var _=!1,B=Y.length,t=0;t<B;t++){X+=(X?'.':'')+Y[t];var V,c=t===B-1?X:'!'+X;_||-1!==(r=Y[t].indexOf('['))&&(V=c.substring(0,c.length-r),At[V]?At[V].push(o):At[V]=[o],_=!0),At[c]?At[c].push(o):At[c]=[o]}}if(o.path=n==se?null:n,o.vbindarray&&(o.vbindarray.path=o.path),o.macro){o.$macros=[];for(var J,t=0;t<o.macro.length;t++)(J=function(e,t){if(le.macros[t])return new jn(t,e)}(o,o.macro[t]))&&o.$macros.push(J)}if(o.track)for(t=0;t<o.track.length;t++){var q=o.track[t]=n+'.'+o.track[t];le.paths[q]?le.paths[q]++:le.paths[q]=1}else le.paths[o.path]?le.paths[o.path]++:le.paths[o.path]=1;if(b){var l=function(s){return function(e){var t,n,r,i,a;('INPUT'===this.tagName||'BUTTON'===this.tagName)&&this.disabled||(n=(t=$(this)).scope(),(r='@'===(s=n?n.makepath(s):s).charAt(0)?(s=s.substring(1),(r=t.component())?r[s]:null):GET(s))&&(i=o.virtual?(i=o.el.vbind())?i.get(o.path):null:o.path?GET(o.path):null,-1!==(a=s.indexOf('/'))?Z=s.substring(0,a):n&&(Z=n.path),r(t,e,i,o.path)))}};if(o.click&&o.el.on(Ce,l(o.click)),Q=o.child)for(t=0;t<Q.length;t++)Q[t].click&&o.el.on(Ce,Q[t].selector,l(Q[t].click))}if(o.child)for(var Q,t=0;t<o.child.length;t++)null==(Q=o.child[t]).format&&(Q.format=o.format),null==Q.empty&&(Q.empty=o.empty);if(o.$init=0,!o.virtual){e=o.el.filter(ie);if((e=o.ready&&!e.length?o.el.find(ie):e).length){o.wcom=[];for(t=0;t<e.length;t++)o.wcom.push(e[t])}le.binders.push(o),wt.push(o)}return o}function Nr(){}e.async=function(e,t,n,r){var i=this,a=(null==r&&(r=Z),typeof e===K?(t=e,e=1):void 0===e&&(e=1),void 0===n&&(n=0),i.shift());if(void 0===a)return n||(n=void 0,r&&(Z=r),t&&t()),i;for(var s=0;s<e;s++)s&&(a=i.shift()),n++,r&&(Z=r),a(function(){setTimeout(function(){n--,i.async(1,t,n,r)},1)});return i},e.wait=function(e,t,n,r){var i=this,a=!1,s=(r||(typeof t!==K&&(n=t,t=null),(r={pending:0,index:0}).thread=n,r.scope=Z,a=!0),!0===n?i.shift():i[r.index++]);if(void 0===s)return r.pending||(t&&(Z=r.scope,t()),r.cancel=!0),i;if(r.pending++,Z=r.scope,e.call(i,s,function(){setTimeout(Er,1,i,e,t,n,r)},r.index),!a||1===r.thread)return i;for(var o=1;o<r.thread;o++)i.wait(e,t,1,r);return i},e.take=function(e){for(var t=[],n=0;n<this.length;n++)if(t.push(this[n]),t.length>=e)return t;return t},e.skip=function(e){for(var t=[],n=0;n<this.length;n++)e<=n&&t.push(this[n]);return t},e.takeskip=function(e,t){for(var n=[],r=0;r<this.length;r++)if(!(r<t)){if(n.length>=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<e.length;n++)if('='===e.charAt(n)){r[e.substring(2,n).trim()]=e.substring(n+1,e.length-2).trim(),t=!0;break}return t?'':e})).replace(/--\w+--/g,function(e){return r[e.substring(2,e.length-2).trim()]||e})},br.ROOT=function(e){var t=this,n=fe.root,r=fe.baseurl,i=/(https|http|wss|ws|file):\/\/|\/\/[a-z0-9]|[a-z]:/i;return n?t=typeof n===K?n(t):i.test(t)?t:n+t:!e&&r&&(t=typeof r===K?r(t):i.test(t)?t:r+t),t.replace(/[^:]\/{2,}/,function(e){return e.charAt(0)+'/'})},br.parseSource=function(e){for(var t=this.split(','),n=[],r=0;r<t.length;r++){var i=t[r].split('|'),a=i[0];!e||e!==Number&&e!==P||(a=a?a.parseInt():null),i[1]||(i[1]=a+''),n.push({id:a,name:i[1],icon:i[2]||''})}return n},br.encode=function(){return Thelpers.encode(this)},br.env=function(){return this.replace(t,function(e){var t=e.substring(1,e.length-1);return('.'===t.charAt(0)?GET(t.substring(1)):Lt[t])||e})},br.$env=function(){var e=this.indexOf('?');return-1===e?this.env():this.substring(0,e).env()+this.substring(e)},br.COMPILABLE=function(){return p.test(this)},br.parseConfig=function(e,t){var n;switch(typeof e){case K:t=e,n={};break;case oe:n=e.parseConfig();break;case he:n=null!=e?e:{};break;default:n={}}for(var r=this.env().replace(/\\;/g,'\0').split(';'),i=/(https|http|wss|ws):\/\//gi,a=0;a<r.length;a++){var s,o,c=r[a].replace(/\0/g,';').replace(/\\:/g,'\0').replace(i,function(e){return e.replace(/:/g,'\0')}).split(':');2===c.length&&(s=c[0].trim(),(c=c[1].trim().replace(/\0/g,':').env())===Te||c===U?c=c===Te:m.test(c)&&(o=+c,isNaN(o)||(c=o)),n[s]=c,t&&t(s,c))}return n},br.flags=function(e,t,n){var r=[],i=this.replace(/(^|\s)@[\w]+/g,function(e){return r.push(e.trim().substring(1)),''}).trim();return r.length&&Qt(r,e,t,n),i},br.arg=br.args=function(n,r,i){return typeof r===oe&&(i=r),this.replace(s,function(e){var t=123===e.charCodeAt(1)?2:1,t=On(e.substring(t,e.length-t).trim(),n);return'json'===r?JSON.stringify(t):null==t?null==i?e:i:r?'escape'===r?Thelpers.encode(t):encodeURIComponent(t+''):t})},br.render=function(e,t){try{return Tangular.render(this,e,t)}catch(e){return Pe(e),''}},br.isJSONDate=function(){var e=this,t=e.length-1;return 18<t&&t<30&&90===e.charCodeAt(t)&&84===e.charCodeAt(10)&&45===e.charCodeAt(4)&&58===e.charCodeAt(13)&&58===e.charCodeAt(16)},br.parseExpire=function(){var e=this;if(''===e||'-'===e||e===DEF.empty||'none'===e||'0'===e)return 0;var e=this.split(' '),t=parseInt(e[0]);if(isNaN(t))return 0;var n=36e5;switch(e[1].trim().replace(/\./g,'')){case'minutes':case'minute':case'min':case'mm':case'm':return 6e4*t;case'hours':case'hour':case'HH':case'hh':case'h':case'H':return n*t;case'seconds':case'second':case'sec':case'ss':case's':return 1e3*t;case'days':case'day':case'DD':case'dd':case'd':return 864e5*t;case'months':case'month':case'MM':case'M':return 24192e5*t;case'weeks':case'week':case'W':case'w':return 6048e5*t;case'years':case'year':case'yyyy':case'yy':case'y':return 31536e6*t;default:return 0}},br.removeTags=function(){return this.replace(/<\/?[^>]+(>|$)/g,'')},br.toASCII=function(){for(var e='',t=0;t<this.length;t++){var n=this[t],r=n.charCodeAt(0),i=!1,a=N[r];void 0===a&&(r=n.toLowerCase().charCodeAt(0),a=N[r],i=!0),void 0!==a?(n=a,e+=i?n.toUpperCase():n):e+=n}return e},br.toSearch=function(){for(var e=this.replace(u,'').trim().toLowerCase().toASCII(),t=[],n='',r=0;r<e.length;r++){var i=e.substring(r,r+1);(i='y'===i?'i':i)!==n&&(n=i,t.push(i))}return t.join('')},br.slug=function(e){e=e||60;for(var t=this.trim().toLowerCase().toASCII(),n='',r=t.length,i=0;i<r;i++){var a=t.substring(i,i+1),s=t.charCodeAt(i);if(n.length>=e)break;31<s&&s<48?'-'!==n.substring(n.length-1,n.length)&&(n+='-'):(47<s&&s<58||94<s&&s<123)&&(n+=a)}var o=n.length-1;return'-'===n[o]?n.substring(0,o):n},br.isEmail=function(){return!(this.length<=4)&&Ft.email.test(this)},br.isPhone=function(){return!(this.length<6)&&Ft.phone.test(this)},br.isURL=function(){return!(this.length<=7)&&Ft.url.test(this)},br.parseInt=function(e){var t=this.trim().match(Pt.int);return t?(t=+t[0],isNaN(t)?e||0:t):e||0},br.parseFloat=function(e){var t=this.trim().match(Pt.float);return t?(t=+(t=-1!==(t=t[0]).indexOf(',')?t.replace(',','.'):t),isNaN(t)?e||0:t):e||0},e.trim=function(e){for(var t=this,n=[],r=0;r<t.length;r++)typeof t[r]===oe&&(t[r]=t[r].trim()),(e||t[r])&&n.push(t[r]);return n},e.findIndex=function(e,t){for(var n=this,r=typeof e===K,i=void 0!==t,a=0;a<n.length;a++)if(r){if(e.call(n,n[a],a))return a}else if(i){if(n[a][e]===t)return a}else if(n[a]===e)return a;return-1},e.findAll=function(e,t){for(var n=this,r=typeof e===K,i=void 0!==t,a=[],s=0;s<n.length;s++)r?e.call(n,n[s],s)&&a.push(n[s]):i?n[s][e]===t&&a.push(n[s]):n[s]===e&&a.push(n[s]);return a},e.findItem=function(e,t){e=this.findIndex(e,t);if(-1!==e)return this[e]},e.findValue=function(e,t,n,r,i){typeof e===K&&(r=n,n=t,t=void 0,i=!1);var a,s=r;if(i&&it[a='fv_'+e+'='+t])return it[a];e=this.findIndex(e,t);return-1!==e&&(t=this[e],t=-1===n.indexOf('.')?t[n]:On(n,t),i&&(it[a]=s),s=null==t?r:t),s},e.remove=function(e,t){for(var n=this,r=[],i=typeof e===K,a=void 0!==t,s=0;s<n.length;s++)i?e.call(n,n[s],s)||r.push(n[s]):a?n[s][e]!==t&&r.push(n[s]):n[s]!==e&&r.push(n[s]);return r},yr.toNumber=function(e){return+this.format(e||'yyyyMMdd')},yr.parseDate=function(){return this},yr.add=function(e,t){void 0===t&&(e=(n=e.split(' '))[1],t=parseInt(n[0])),typeof t===oe&&(t=t.env());var n,r=new Date(this.getTime());switch(e.substring(0,3)){case's':case'ss':case'sec':return r.setSeconds(r.getSeconds()+t),r;case'm':case'mm':case'min':return r.setMinutes(r.getMinutes()+t),r;case'h':case'hh':case'hou':return r.setHours(r.getHours()+t),r;case'd':case'dd':case'day':return r.setDate(r.getDate()+t),r;case'w':case'ww':case'wee':return r.setDate(r.getDate()+7*t),r;case'M':case'MM':case'mon':return r.setMonth(r.getMonth()+t),r;case'y':case'yy':case'yyy':case'yea':return r.setFullYear(r.getFullYear()+t),r}return r},yr.toUTC=function(e){var t=this.getTime()+6e4*this.getTimezoneOffset();return e?t:new Date(t)},yr.format=function(e,t){t=t||fe.dateformatutc?this.toUTC():this;if(!(e=null==e?fe.dateformat:e)||'iso'===e)return t.getFullYear()+'-'+(t.getMonth()+1+'').padLeft(2,'0')+'-'+(t.getDate()+'').padLeft(2,'0')+'T'+(t.getHours()+'').padLeft(2,'0')+':'+(t.getMinutes()+'').padLeft(2,'0')+':'+(t.getSeconds()+'').padLeft(2,'0')+'.'+(t.getMilliseconds()+'').padLeft(3,'0')+'Z';var n='dt_'+e;if(mt[n])return mt[n](t);var r=!1,i=((e=e.env())&&'!'===e.charAt(0)&&(r=!0,e=e.substring(1)),'\'+'),a='+\'',s=[],o=!1,c=!1,l=!1;return e=e.replace(Pt.date,function(e){switch(e){case'yyyy':case'YYYY':return'\'+d.getFullYear()+\'';case'yy':case'YY':return'\'+(d.getFullYear()+\'\').substring(2)+\'';case'MMM':return o=!0,'\'+mm.substring(0, 3)+\'';case'MMMM':return o=!0,'\'+mm+\'';case'MM':return'\'+(d.getMonth() + 1).padLeft(2, \'0\')+\'';case'M':return'\'+(d.getMonth() + 1)+\'';case'ddd':case'DDD':return c=!0,'\'+dd.substring(0, 2).toUpperCase()+\'';case'dddd':case'DDDD':return c=!0,'\'+dd+\'';case'dd':case'DD':return'\'+d.getDate().padLeft(2, \'0\')+\'';case'd':case'D':return'\'+d.getDate()+\'';case'HH':case'hh':return i+(r?'W.$jcdatempam(d.getHours()).padLeft(2, \'0\')':'d.getHours().padLeft(2, \'0\')')+a;case'H':case'h':return i+(r?'W.$jcdatempam(d.getHours())':'d.getHours()')+a;case'mm':return'\'+d.getMinutes().padLeft(2, \'0\')+\'';case'm':return'\'+d.getMinutes()+\'';case'ss':return'\'+d.getSeconds().padLeft(2, \'0\')+\'';case's':return'\'+d.getSeconds()+\'';case'w':case'ww':return l=!0,i+('ww'===e?'ww.padLeft(2, \'0\')':'ww')+a;case'a':return'\'+(d.getHours()>=12 ? \'PM\':\'AM\')+\''}}),o&&s.push('var mm=W.MONTHS[d.getMonth()];'),c&&s.push('var dd=W.DAYS[d.getDay()];'),l&&s.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);'),mt[n]=new Function('d',s.join('\n')+'return \''+e+'\';'),mt[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;r<n.length;r++){var i=n[r],a=i.split('-'),s=a[0]?+a[0]:null,a=a[1]?+a[1]:null;if(null!=s&&null!==a){if(s<=this&&this<=a)return e[i]}else if(null!=s){if(s<=this)return e[i]}else if(null!=a&&this<=a)return e[i]}return t},$r.pluralize=function(e,t,n,r){(e=!t&&typeof e===oe?(e='['===e.charAt(0)?e.env():e).split(','):e)instanceof Array&&(t=e[1],n=e[2],r=e[3],e=e[0]);var i=this,a='';return-1===(a=0==i?e||'':1==i?t||'':1<i&&i<5?n||'':r).indexOf('#')?a:a.replace(Pt.pluralize,function(e){return'##'===e?i.format():i+''})},$r.currency=function(e,t,n,r){'['===(e=null==e?fe.currency||'':e).charAt(0)&&(e=e.env());e=fe.currencies[e];return e?e(this,t,n,r):this.format(2)},$r.format=function(e,t,n){var r,i=this+'',a='',s='',o='-'===i.charAt(0)?'-':'',c=(i=o?i.substring(1):i).indexOf('.');typeof e===oe&&('['===e.charAt(0)?(r=ce.ENV(e.substring(1,e.length-1)))&&(0<=r?e=r:(e=r.decimals,r.separator&&(t=r.separator),r.decimalseparator&&(n=r.decimalseparator))):(r=t,t=e,e=r)),void 0===t&&(t=fe.thousandsseparator),-1!==c&&(a=i.substring(c+1),i=i.substring(0,c));for(var c=-1,l=i.length-1;0<=l;l--)s=i[l]+(s=0<++c&&c%3==0?t+s:s);return(a=e||a.length?a.length>e?a.substring(0,e||0):a.padRight(e||0,'0'):a).length&&void 0===n&&(n=fe.decimalseparator),o+s+(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,s=((i<48||57<i)&&(a=!0,e=e.substring(1)),e.length);if('%'===e[s-1]){if(e=e.substring(0,s-1),a){var o=e.parseFloat();switch(i){case 42:r=n*(n/100*o);break;case 43:r=n+n/100*o;break;case 45:r=n-n/100*o;break;case 47:r=n/(n/100*o)}return void 0!==t?r.floor(t):r}return r=n/100*e.parseFloat(),void 0!==t?r.floor(t):r}switch(r=e.parseFloat(),i){case 42:r*=n;break;case 43:r=n+r;break;case 45:r=n-r;break;case 47:r=n/r;break;default:r=n}return void 0!==t?r.floor(t):r},$r.floor=function(e){return Math.floor(this*Math.pow(10,e))/Math.pow(10,e)},$r.parseDate=function(e){return new Date(this+(e||0))},$r.round=function(e){return null==e&&(e=0),+(Math.round(this+'e+'+e)+'e-'+e)},br.format=function(){var t=arguments;return this.replace(Pt.format,function(e){e=t[+e.substring(1,e.length-1)];return null==e?'':e instanceof Array?e.join(''):e})},br.parseDate=function(e){if(e){for(var u=e,f=this,h=[],t=[],d='',p='',m={y:1,Y:1,M:1,m:1,d:1,D:1,H:1,s:1,a:1,w:1},n=0;n<u.length;n++){var g=u.charAt(n);m[g]&&(d!==g?(p&&t.push(p),d=p=g):p+=g)}for(d='',n=0;n<f.length;n++){var v=f.charCodeAt(n);48<=v&&v<=57&&(d+=f.charAt(n))}p&&t.push(p);for(var b=0,n=0;n<t.length;n++){var $=t[n].length;h.push(d.substring(b,b+$)),b+=$}for(var r={},n=0;n<t.length;n++){var y=t[n];h[n]&&(r[y.charAt(0)]=+h[n])}var e=r.h||r.H,i=(null==e||(i=f.match(W))&&'pm'===i[0].toLowerCase()&&(e+=12),r.y||r.Y||0);return i<100&&(i+=2e3),new Date(i,(r.M||1)-1,r.d||r.D||0,e||0,r.m||0,r.s||0)}var a=this.trim().env();if(!a)return null;i=a.charCodeAt(a.length-1);if(41===i)return new Date(a);if(90===i)return new Date(Date.parse(a));for(var E,T=null,s=-1===(a=a.replace(/(\s)(am|pm)/i,function(e){return T=e.trim().toLowerCase(),''})).indexOf(' ')?a.split('T'):a.split(' '),e=s[0].indexOf(':'),A=s[0].length,w=(-1!==e&&(E=s[1],s[1]=s[0],s[0]=E),void 0===s[0]&&(s[0]=''),void 0===s[1]||0===s[1].length),o=0;o<A;o++){var x=s[0].charCodeAt(o);if(!(47<x&&x<58||45===x||46===x)&&w)return new Date(a)}void 0===s[1]&&(s[1]='00:00:00');var O=-1===s[0].indexOf('-'),I=(s[0]||'').split(O?'.':'-'),c=(s[1]||'').split(':'),l=[];if(I.length<4&&c.length<2)return new Date(a);-1!==(e=(c[2]||'').indexOf('.'))?(c[3]=c[2].substring(e+1),c[2]=c[2].substring(0,e)):c[3]='0',T&&(E=+c[0],'pm'===T&&(c[0]=E+12)),l.push(+I[O?2:0]),l.push(+I[1]),l.push(+I[O?0:2]),l.push(+c[0]),l.push(+c[1]),l.push(+c[2]),l.push(+c[3]);for(var k=ce.NOW=new Date,o=0;o<l.length;o++){isNaN(l[o])&&(l[o]=0);var N=l[o];if(0===N)switch(o){case 0:N<=0&&(l[o]=k.getFullYear());break;case 1:N<=0&&(l[o]=k.getMonth()+1);break;case 2:N<=0&&(l[o]=k.getDate())}}return new Date(l[0],l[1]-1,l[2],l[3],l[4],l[5])},e.last=function(e){var t=this[this.length-1];return void 0===t?e:t},e.quicksort=function(e){if((t=this).length<2)return t;var t=this;if(!e||!0===e)return t.sort(je),t;if(!1===e)return t.sort(c),t;var n=arguments;return!1!==n[1]&&'desc'!==n[1]&&2!==n[1]||(e+='_desc'),t.sort(function(e){var t='sort_'+e,s=it[t];if(!s){s=[],e=e.replace(/\s/g,'').split(',');for(var n=0;n<e.length;n++){var o=e[n].split(/_(desc|asc)/),r={name:o[0],type:null,desc:'desc'===o[1]};-1!==o[0].indexOf('.')&&(r.read=new Function('val','return val.'+o[0].replace(/\./g,'?.'))),s.push(r)}it[t]=s}return function(e,t){for(var n=0;n<s.length;n++){var r=s[n],i=r.read?r.read(e):e[r.name],a=r.read?r.read(t):t[r.name];if(!r.type)switch(null!=i?r.type=i instanceof Date?4:typeof i:null!=a&&(r.type=a instanceof Date?4:typeof a),r.type){case oe:r.type=1;break;case P:r.type=2;break;case j:r.type=3;break;case he:r.type=5}if(!r.type)return 0;switch(r.type){case 1:if(o=(r.desc?c:je)(i,a))return o;break;case 2:if(o=a<i?r.desc?-1:1:i<a?r.desc?1:-1:0)return o;break;case 3:if(o=!0===i&&!1===a?r.desc?-1:1:!1===i&&!0===a?r.desc?1:-1:0)return o;break;case 4:if(!i&&!a)break;if(i&&!a)return r.desc?-1:1;if(!i&&a)return r.desc?1:-1;if(i.getTime||(i=new Date(i)),a.getTime||(a=new Date(a)),o=a<i?r.desc?-1:1:i<a?r.desc?1:-1:0)return o}}return 0}}(e)),t},e.attr=function(e,t){if(2===arguments.length){if(null==t)return this}else void 0===t&&(t=e+'');return this.push(e+'="'+((t+'').env()+'').replace(/[<>&"]/g,function(e){switch(e){case'&':return'&';case'<':return'<';case'>':return'>';case'"':return'"'}return e})+'"'),this},WAIT(function(){return!!ce.jQuery},function(){ce.isIE&&Me.on('keydown',function(e){var t;13===e.keyCode&&('BUTTON'!==(t=e.target.tagName)&&'INPUT'!==t&&'SELECT'!==t||e.preventDefault())}),$.fn.FIND=function(t,n,r,e){typeof n===K&&(e=r,r=n,n=void 0);var i=this,a=nn(i,t);return typeof r!==K?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<e.length:!!e},function(e){e||(e=i.FIND(t,n),r.call(e||ce,e))},500,e),i)};function u(e,t,n){if(e instanceof Array)for(var r=0;r<e.length;r++){var i=e[r];i[t]&&i[t].apply(i,n)}else e[t]&&e[t].apply(e,n)}function f(e,t,n){e.length&&delete e[0].$ct,1===n?e.aclass(t):2===n?e.rclass(t):3===n&&e.rclass2(t)}var h,t;$.fn.EMIT=function(e,t,n,r,i){var a='^'===e.charAt(0);return a&&(e=e.substring(1).trim()),this.EXEC((a?'^':'')+'emit',e,t,n,r,i)},$.fn.EXEC=function(r){var i=[],e='^'===r.charAt(0);e&&(r=r.substring(1).trim());for(var t=1;t<arguments.length;t++)i.push(arguments[t]);for(var n=0;n<this.length;n++){var a=this[n];if(e)for(;;){if(null==(a=a.parentNode)||'HTML'===a.tagName)break;a.$com&&u(a.$com,r,i)}else{var s=function(e){for(var t=0;t<e.children.length;t++){var n=e.children[t];n.$com&&null==n.getAttribute(O)&&u(n.$com,r,i),n.children&&n.children.length&&s(n)}};s(a)}}return this},$.fn.CMD=function(e,t,n,r,i,u){var a=this.FIND('*',!0);ue.cmd&&EMIT('cmd',t,n,r,i),DEF.monitor&&ee('cmd');for(var s=0;s<a.length;s++){var o=a[s],c=o.$commands?o.$commands[e]:null;if(c&&c.length)for(var l=0;l<c.length;l++)c[l](t,n,r,i,u)}},$.fn.SETTER=function(e,t){for(var i,n,a,r,s,o=this,c=[],l=!0===e?3:2,u=l;u<arguments.length;u++)c.push(arguments[u]);if(3==l){if(-1!==t.indexOf(' #')&&(a=nr(t),r=a.cl,t=a.path),n=rr(t),-1!==(a=n.indexOf('/'))?(c.unshift(arguments[2]),i=n.substring(a+1),n=n.substring(0,a)):i=arguments[2],'^'===(a=n).charAt(0)&&(n=n.substring(1).trim()),(s=xt[n])&&3!==s.state){if(1===s.state){if(s.state=2,ue.lazy&&EMIT('lazy',n,!0),DEF.monitor&&ee('lazy',2),Ye('Lazy load: '+n),s.nodes&&s.nodes.length){for(var f of s.nodes)Br(f);delete s.nodes}on()}return setTimeout(function(e){CL(r,()=>$.fn.SETTER.apply(o,e))},555,arguments),o}d=-1!==i.indexOf('.'),CL(r,function(){o.FIND(a,!0,function(e){ue.setter&&EMIT('setter',a,i,c[0],c[1]);for(var t=0;t<e.length;t++){var n=e[t],r=d?On(i,n):n[i];typeof r===K&&r.apply(n,c)}})})}else{if(-1!==e.indexOf(' #')&&(a=nr(e),r=a.cl,e=a.path),n=rr(e),i=t,-1!==(a=n.indexOf('/'))&&(c.unshift(arguments[1]),i=n.substring(a+1),n=n.substring(0,a)),'^'===(a=n).charAt(0)&&(n=n.substring(1).trim()),(s=xt[n])&&3!==s.state){if(1===s.state){if(s.state=2,ue.lazy&&EMIT('lazy',n,!0),DEF.monitor&&ee('lazy',2),Ye('Lazy load: '+n),s.nodes&&s.nodes.length){for(var f of s.nodes)Br(f);delete s.nodes}on()}return setTimeout(function(e){CL(r,()=>$.fn.SETTER.apply(o,e))},555,arguments),o}var h=o.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<h.length;e++){var t=h[e],n=d?On(i,t):t[i];typeof n===K&&n.apply(t,c)}})}return o},$.fn.RECONFIGURE=function(e,t){return this.SETTER(e,'reconfigure',t)},$.fn.scope=function(){return this.length?ln(this[0]):null};function e(e,t){if(!e.length)return null;for(var n=0;n<e.length;n++)if(e[n][t])return e[n][t];for(var r=e[0].parentElement;null!==r;){if(r[t])return r[t];r=r.parentElement}return null}function d(){var e,t=WIDTH();Fe.body?t!==h&&(h=t,(e=$(Fe.body)).rclass('jc-lg jc-md jc-sm jc-xs'),e.aclass('jc-'+t)):setTimeout(d,50)}$.fn.aclass=function(e,t){var n=this;return t&&n.length&&(n[0].$ct&&clearTimeout(n[0].$ct),n[0].$ct=setTimeout(f,t,n,e,1)),t?n:n.addClass(e)},$.fn.rclass=function(e,t){var n=this;return t&&n.length&&(n[0].$ct&&clearTimeout(n[0].$ct),n[0].$ct=setTimeout(f,t,n,e,2)),t?n:null==e?n.removeClass():n.removeClass(e)},$.fn.rattr=function(e){return this.removeAttr(e)},$.fn.rattrd=function(){for(var e=0;e<arguments.length;e++)this.removeAttr(w+arguments[e]);return this},$.fn.rclass2=function(e,t){var n=this;if(t)return n.length&&(n[0].$ct&&clearTimeout(n[0].$ct),n[0].$ct=setTimeout(f,t,n,e,3)),n;for(var r=(n.attr(Oe)||'').split(' '),i=typeof e==he,a=0;a<r.length;a++){var s=r[a];s&&(i?e.test(s)&&n.rclass(s):-1!==s.indexOf(e)&&n.rclass(s))}return n},$.fn.hclass=function(e){return this.hasClass(e)},$.fn.tclass=function(e,t){return this.toggleClass(e,t)},$.fn.attrd=function(e,t){return e=w+e,null==t?this.attr(e):this.attr(e,t)},$.fn.attrd2=function(e){e=w+e;for(var t=null,n=this;n[0]&&null==t;)if(!(t=n.attr(e))){if('BODY'===n[0].tagName)break;n=n.parent()}return t},$.fn.asvg=function(e){var t;if(-1===e.indexOf('<'))return t=Fe.createElementNS('http://www.w3.org/2000/svg',e),this.append(t),$(t);for(var n=Fe.createElementNS('http://www.w3.org/1999/xhtml','div'),r=(n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg">'+e+'</svg>',Fe.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=Fe.createElementNS('http://www.w3.org/2000/svg',e),this.prepend(t),$(t);for(var n=Fe.createElementNS('http://www.w3.org/1999/xhtml','div'),r=(n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg">'+e+'</svg>',Fe.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,'$'+we)},$.fn.component=function(){return e(this,'$com')},$.fn.components=function(e){for(var t=this.find(ie),n=null,r=0;r<t.length;r++){var i=t[r].$com;if(i)if(i instanceof Array)for(var a=0;a<i.length;a++){var s=i[a];s&&s.$ready&&!s.$removed&&(e?e.call(s,r):(n=n||[]).push(s))}else i&&i.$ready&&!i.$removed&&(e?e.call(i,r):(n=n||[]).push(i))}return e?t:n},$.components=le,setInterval(function(){Et++,ce.NOW=new Date,EMIT('service',Et),EMIT('knockknock',Et);for(var e of le.components)e.service&&e.service(Et);for(var e of le.binders){var t=e.$macros;if(t)for(var n of t)n.service&&n.service(Et)}for(var r in le.cl){r=le.cl[r];r.expire&&r.date&&r.date<=NOW.add('-'+r.expire)&&(r.reload=!0,r.date=null)}Et%5==0&&(nt={},ce.TEMP={}),Et%3==0&&Cn(),it={}},6e4);var p,m=!1,n={};function g(){t=null;var e=WIDTH();e?WW===n.w&&WH===n.h||(n.w=WW,n.h=WH,d(),m?p!==e&&(p=e,Tr()):(p=e,m=!0),ue.resize2&&EMIT('resize2')):setTimeout(g,50)}function v(){var e=Me;ce.WW=e.width(),ce.WH=e.height(),t&&clearTimeout(t),t=setTimeout(g,300)}function b(){var e;!screen.orientation||(e=document.querySelector('meta[name=viewport]'))&&e.content&&-1===e.content.indexOf('height')&&e.setAttribute('content',e.content+', height='+ce.innerHeight)}var r=Qn.match(/[a-z]+/gi);if(r){for(var i={},a=0;a<r.length;a++){var s=r[a];if('like'!==s||'Gecko'!==r[a+1]){var o=s.toLowerCase();if('like'===o)break;switch(o){case'linux':case'windows':case'mac':case'symbian':case'symbos':case'tizen':case'android':i[s]=2,'tizen'!==o&&'android'!==o||(i.Mobile=1);break;case'webos':i.WebOS=2;break;case'media':case'center':case'tv':case'smarttv':case'smart':i[s]=5;break;case'iemobile':case'mobile':i[s]=1,i.Mobile=3;break;case'ipad':case'ipod':case'iphone':i.iOS=2,i.Mobile=3,i[s]=1,'ipad'===o&&(i.Tablet=4);break;case'phone':i.Mobile=3;break;case'tizenbrowser':case'blackberry':case'mini':i.Mobile=3,i[s]=1;break;case'samsungbrowser':case'chrome':case'firefox':case'msie':case'opera':case'outlook':case'safari':case'mail':case'edge':case'electron':i[s]=1;break;case'trident':i.MSIE=1;break;case'opr':i.Opera=1;break;case'tablet':i.Tablet=4}}else a+=1}i.MSIE&&(i.IE=1,delete i.MSIE),(i.WebOS||i.Android)&&delete i.Linux,i.IEMobile?(i.Android&&delete i.Android,i.Safari&&delete i.Safari,i.Chrome&&delete i.Chrome):i.MSIE||i.Edge||i.Opera||i.Electron?(i.Chrome&&delete i.Chrome,i.Safari&&delete i.Safari):i.Chrome?i.Safari&&delete i.Safari:i.SamsungBrowser&&i.Safari&&delete i.Safari}var c=Q(i),l={os:'',browser:'',device:'desktop'};for(i.Tablet?l.device='tablet':i.Mobile&&(l.device='mobile'),a=0;a<c.length;a++)switch(i[c[a]]){case 1:l.browser+=(l.browser?' ':'')+c[a];break;case 2:l.os+=(l.os?' ':'')+c[a];break;case 5:l.device='tv'}le.ua=l,ce.addEventListener('load',b),'mobile'!==le.ua.device&&'Firefox'===le.ua.browser||ce.addEventListener('deviceorientation',b,!0),v(),Me.on(Ee,v),Me.on('visibilitychange',function(){ce.EMIT('visible',!document.hidden)}),$(Fe).ready(function(){var e=$(Fe.body),t=(e.aclass('jc-'+(le.version>>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)||(Fe.cookie=ae,t=-1!=Fe.cookie.indexOf(ae));t||e.aclass('jc-nocookies'),bt&&(clearTimeout(bt),bt=null,sn());t='input['+O+'],textarea['+O+'],select['+O+']';$(Fe).on('input','input['+O+'],textarea['+O+']',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=tn(e,'keypress');if(n?e.$jckeypress=n===Te: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=+(tn(e,'keypress-delay')||t.config.$delay||fe.delaykeypress)),void 0===e.$jconly&&(e.$jconly=tn(e,'keypress-only')===Te||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(ie))&&(n.$com=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,y),yt=!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==oe){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==oe?'1'==t||t==Te||'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('*',Ee)}function Sr(e,t,n,r,i,a){e.$delay=null;var s=Z;e.exec(t,n,r,!0,i,a),Z=s}function Rr(e,t,n,r,i,a){var s=Z;delete e.wcomrunning,e.exec(t,n,r,!0,i,a),Z=s}function Lr(e,t,n,r,i,a){var s;e&&t.set&&((s=e[0].$com)&&!s.$removed&&s.$loaded&&!s.path&&(s.setter||s.dom&&s.dom.setter)?(s.$jcbind!==t&&((s.$jcbind=t).vbind&&t.vbind.vbindarray?s.$jcbindset=t.vbind.vbindarray.path+'['+t.vbind.index+'].'+t.path:s.$jcbindset=t.vbind?null:t.path,s.$jcbindget=t.path),s.setterX(n,r,i),t.setid&&(clearTimeout(t.setid),delete t.setid)):(!a||a<30)&&(t.setid&&clearTimeout(t.setid),t.setid=setTimeout(Lr,100,e,t,n,r,i,a||1)))}function Mr(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(ye)&&(/\W/.test(e)||e===ye)}function Wr(e,t,n){var r=Dt,i=(Dt=e.id,delete e.pending,Z=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(L,e),DEF.monitor&&ee('plugins',t?1:0),ce.PLUGINS[e.name]=e,Z=null,n&&n(),Dt=r}function zr(e,t,n,r,i){ce.PLUGINS[e]&&ce.PLUGINS[e].$remove(!0);var a=this,e=(a.element=$(Ct||Fe.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,'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===oe?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=Z;this.exec(GET(this.path),this.path),Z=e},yr.exec=function(e,t,n,r,i,u){var a=this;if(!a.disabled){fe.monitor&&Wn(a);var s=a.el;if(null!=n){if(null==a.child)return;if(null==(a=a.child[n]))return}if(!a.notnull||null!=e){if(a.wcom){a.wcomrunning&&clearTimeout(a.wcomrunning),a.wcomrunning=null;for(var o=0;o<a.wcom.length;o++){var f=a.wcom[o];if(f&&f.parentNode&&(!f.$com||!f.$com.$loaded))return void(a.wcomrunning=setTimeout(Rr,100,a,e,t,n,i,u))}delete a.$running,delete a.wcom}if(a.selector&&(a.cache?s=a.cache:(s=s.find(a.selector)).length&&(a.cache=s)),s.length){if(!r&&a.delay)return a.$delay&&clearTimeout(a.$delay),void(a.$delay=setTimeout(Sr,a.delay,a,e,t,n,i,u));if(a.$init){if(a.strict&&a.path!==t&&(!0!==a.strict||t.length>a.path.length))return;if(a.track&&a.path!==t){for(i=!1,o=0;o<a.track.length;o++)if((h=a.track[o])===t||t.length<h.length&&h.substring(0,t.length)===t){i=!0;break}if(!i)return}if(a.tracktype&&null!=u&&!a.tracktype[u])return}if(a.scope&&(Z=a.scope),a.check){r=a.check.indexOf('/');if(-1===r){if(!GET(a.check))return}else{r=PLUGINS[a.check.substring(0,r)];if(r&&(T=r[a.check.substring(n+1)])&&!T.call(a.el,e,t,a.el))return}}a.def&&null==e&&(e=a.def),a.formatter&&(e=a.formatter(e,t,-1,a.formatter.scope?PLUGINS[a.scope]:null)),a.init&&a.init.call(a.el,e,t,a.el);var c=null;if(a.changes){if(e&&typeof e==he)if(a.track){for(var h,d={},o=0;o<a.track.length;o++)d[h=a.track[o].substring(a.path.length+1)]=e[h];c=HASH(d)}else c=HASH(e);else c=e;if(a.stamp===c&&a.$init)return;a.stamp=c}if(a.set&&(c=a.set.call(a.el,e,t,s),Lr(s,a,c,t,u)),i=!1!==i,!a.show||null==e&&a.show.$nn||(c=!a.show.call(a.el,e,t,a.el),s.tclass(ge,c),c&&(i=!1)),!a.hide||null==e&&a.hide.$nn||(c=!!a.hide.call(a.el,e,t,a.el),s.tclass(ge,c),c&&(i=!1)),!a.invisible||null==e&&a.invisible.$nn||(c=!!a.invisible.call(a.el,e,t,a.el),s.tclass('invisible',c),c&&(i=!1)),!a.visible||null==e&&a.visible.$nn||(c=!a.visible.call(a.el,e,t,a.el),s.tclass('invisible',c),c&&(i=!1)),a.$init||(a.$init=1),a.classes)for(o=0;o<a.classes.length;o++){var p=a.classes[o];p.fn.$nn&&null==e||s.tclass(p.name,!!p.fn.call(s,e,t,s))}if(i&&a.import&&(typeof a.import===K?e&&(a.$ic||(a.$ic={}),a.$ic[e]||IMPORT('ONCE '+e,s),a.$ic[e]=1):1!=a.import?(IMPORT(a.import,s),delete a.import):(T=(r=a.el.find(xe+','+Ae).eq(0)).html(),r.replaceWith(T),delete a.import,T.COMPILABLE()&&COMPILE(),T=null)),a.attr&&a.attr.length)for(o=0;o<a.attr.length;o++)c=a.attr[o],!i&&!c.$nv||null==e&&c.$nn||s.attr(c.attr,c.fn.call(s,e,t,a.el||s));if(a.config&&(i||a.config.$nv)&&(null!=e||!a.config.$nn)&&(c=a.config.call(s,e,t,s)))for(o=0;o<s.length;o++)(l=s[o].$com)&&l.$initialized?l.reconfigure(c):Pr(s[o],c);if(a.vbindarray&&(i||a.vbindarray.$nv)&&a.vbindarray.set(e),a.html&&(i||a.html.$nv)&&(null==e&&a.html.$nn?s.html(a.empty||a.htmlbk):(c=a.html.call(s,e,t,s),s.html(Fr(c,a,Ie)))),a.text&&(i||a.text.$nv)&&(null==e&&a.text.$nn?s.html(a.empty||a.textbk):(c=a.text.call(s,e,t,s),s.text(Fr(c,a,'text')))),a.val&&(i||a.val.$nv)&&(null==e&&a.val.$nn?s.val(a.empty||a.valbk):(c=a.val.call(s,e,t,s),s.val(Fr(c,a,'val')))),a.template&&(i||a.template.$nv)&&(null!=e||!a.template.$nn)){if(C.value=e,C.path=t,a.template.$vdom)r=DIFFDOM(s,a.template.$vdom,a.template(C,null,a.helpers?a.helpers():null),a.template.$vdomattr),c=!(!r.add&&!r.upd);else{c=!0;try{s.html(a.template(C,null,a.helpers?a.helpers():null))}catch(e){Pe(e)}}a.template.$compile&&c&&ce.COMPILE(s)}if(a.disable&&(i||a.disable.$nv)){null==e&&a.disable.$nn?(c=a.disablebk,s.prop(me,1==c)):(c=!!a.disable.call(s,e,t,s),s.prop(me,c));for(var m=me+':'+(1==c?Te:U),o=0;o<s.length;o++)(l=s[o].$com)&&l.$initialized?l.reconfigure(m):Pr(s[o],m)}if(a.enable&&(i||a.enable.$nv)){c=null==e&&a.enable.$nn?0==a.enablebk:!a.enable.call(s,e,t,s),s.prop(me,c);for(m=me+':'+(1==c?Te:U),o=0;o<s.length;o++)(l=s[o].$com)&&l.$initialized?l.reconfigure(m):Pr(s[o],m)}if(a.required&&(i||a.required.$nv))for(var l,m='required:'+(1==(c=!!a.required.call(s,e,t,s))?Te:U),o=0;o<s.length;o++)(l=s[o].$com)&&l.$initialized?l.reconfigure(m):Pr(s[o],m);if(a.checked&&(i||a.checked.$nv)&&(null==e&&a.checked.$nn?s.prop($e,1==a.checkedbk):(c=!!a.checked.call(s,e,t,s),s.prop($e,c))),a.title&&(i||a.title.$nv)&&(null==e&&a.title.$nn?s.attr('title',a.empty||a.titlebk):(c=a.title.call(s,e,t,s),s.attr('title',Fr(c,a,'title')))),a.href&&(i||a.href.$nv)&&(null==e&&a.href.$nn?s.attr(a.empty||a.hrefbk):(c=a.href.call(s,e,t,s),s.attr('href',Fr(c,a,'href')))),a.src&&(i||a.src.$nv)&&(null==e&&a.src.$nn?s.attr('src',a.empty||a.srcbk):(c=a.src.call(s,e,t,s),s.attr('src',Fr(c,a,'src')))),!a.setter||!i&&!a.setter.$nv||null==e&&a.setter.$nn||a.setter.call(s,e,t,s),!a.change||null==e&&a.change.$nn||a.change.call(s,e,t,s),!i||!a.refreshbind||null==e&&a.refreshbind.$nn||a.refreshbind.call(s,e,t,s),i&&a.focus&&setTimeout(Dr,s.find(a.focus).length?100:1500,a),i&&a.resize&&setTimeout(Cr,100,s),a.macro){var g=a;var v=e;var b=t;var $=u;for(var y=0;y<g.$macros.length;y++){var E=g.$macros[y];E.setter&&E.setter(v,b,$)}}if(i&&null==n&&a.child){for(var T=Z,o=0;o<a.child.length;o++)a.exec(e,t,o,void 0,i);Z=T}a.tclass&&(s.tclass(a.tclass),delete a.tclass),a.once&&-1!==(n=le.binders.indexOf(a))&&(a.el=null,a.disabled=!0,FREE(1e3))}}}},ce.DIFFDOM=function(u,f,h,d){for(var p=$(h).filter(f),e=u.find(f),t={add:0,upd:0,rem:0},n=[],r=0;r<e.length;r++)e[r].$diffdom=1;for(var i=0;i<p.length;i++){var a=p[i],s={};s.virtual=a,s.checksum=Mr(a,d);for(r=0;r<e.length;r++)if(Mr(l=e[r],d)===s.checksum){delete l.$diffdom,s.node=l;break}n.push(s)}for(var o=u[0],c=[],r=0;r<e.length;r++)(l=e[r]).$diffdom&&c.push(l);t.rem=c.length;for(r=0;r<c.length;r++)o.removeChild(c[r]);for(i=0;i<n.length;i++){var l=o.children[i];(a=n[i]).node?(t.upd++,l&&a.node!==l&&NODEINSERT(a.node,l,!0)):(t.add++,l?NODEINSERT(a.virtual,l,!0):o.appendChild(a.virtual))}return t};var Ur=zr.prototype;function Gr(e,t,n,r,i){if(null==i&&(i=r,r=null),e.scope(),typeof i===oe)i=e.makepath(i);else if(!i)return _t(t,n,r);return ce[t](n,r,i),e}function Yr(v,l){function r(){var e;g.disabled=!0,i.binded||(i.binded=!0,e=Me.on('mousemove',_.onmousemove).on('mouseup',_.onmouseup),ce.parent!==ce&&e.on('mouseout',_.onmouseout))}function t(){var e;g.disabled=!1,i.binded&&(P&&P.rclass(n+'-y-show'),F&&F.rclass(n+'-x-show'),i.binded=!1,e=Me.off('mousemove',_.onmousemove).off('mouseup',_.onmouseup),ce.parent!==ce&&e.off('mouseout',_.onmouseout))}function e(e,t){f.animvpost=null,e===t?(f.animvpos=!0,V(e)):0===e&&(K(+H.attrd('size')),f.animvpos=!0)}function a(e,t){f.animhpost=null,e===t?(f.animhpos=!0,q(e)):0===e&&(ee(+j.attrd('size')),f.animhpos=!0)}var b,y,E,T,s,o,A,c,w,x,O,u=this,f={},i={},n=(l=l||{},fe.prefixcsslibrary+'scrollbar'),I=GUID(5),k=(v.aclass(n),v.wrapInner('<div class="{0}-area" data-id="{1}"><div class="{0}-body" data-id="{1}"></div></div>'.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(('<div class="{0}-path {0}-notready" data-id="{1}">'+(d?'<div class="{0}-y" data-id="{1}"><span><b></b></span></div>':'')+(h?'<div class="{0}-x" data-id="{1}"><span><b></b></span></div></div>':'')).format(n,I)),v[0].$scrollbar=u,null==l.padding&&(l.padding=5),l.minsize||(l.minsize=50),'[data-id="{0}"]'.format(I)),L='pointer-events',M=N.find('.'+n+'-path'+I),F=h?$(M.find('.'+n+'-x'+I)[0]):null,P=d?$(M.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(('<div class="{0}-{1}">'+(h?'<div class="{0}-{1}-left {0}-{1}-h" style="opacity:0"></div><div class="{0}-{1}-right {0}-{1}-h" style="opacity:0"></div>':'')+(d?'<div class="{0}-{1}-top {0}-{1}-v" style="opacity:0"></div><div class="{0}-{1}-bottom {0}-{1}-v" style="opacity:0"></div>':'')+'</div>').format(n,I)),s=v.find('> .'+n+'-'+I),d&&(b=s.find('> .'+n+'-'+I+'-top'),y=s.find('> .'+n+'-'+I+'-bottom')),h&&(E=s.find('> .'+n+'-'+I+'-left'),T=s.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<i.counter++&&(i.counter=0,i.pos=e.pageY)):(n=e.pageX-i.offset,r=f.hbarlength-f.hbarsize,p[0].scrollLeft=(f.scrollWidth-f.viewWidth+(l.marginX||0))/100*(100<(t=(n=n<0?0:n)/r*100)?100:t),5<i.counter++&&(i.counter=0,i.pos=e.pageX)))},_.onresize=function(){A||(m.ready=0,M.aclass(n+'-notready')),A&&clearTimeout(A),A=setTimeout(u.resize,500)},{}),g={},V=function(e){g.y===e||g.yis||(g.y=e,B.top=e+20,H.stop().animate(B,150,function(){B.top=e,H.stop().animate(B,150,function(){g.yis=!1})}))},J={},q=function(e){g.x===e||g.xis||(g.xis=!0,g.x=e,J.left=e+20,j.stop().animate(J,150,function(){J.left=e,j.stop().animate(J,150,function(){g.xis=!1})}))},Q={},K=function(e){g.y===e||g.yis||(g.yis=!0,Q.height=e-20,H.stop().animate(Q,150,function(){Q.height=e,H.stop().animate(Q,150,function(){g.yis=!1})}))},Z={},ee=function(e){g.x===e||g.xis||(g.yis=!0,Z.width=e-20,j.stop().animate(Z,150,function(){Z.width=e,j.stop().animate(Z,150,function(){g.xis=!1})}))},te=(_.onmouseup=function(){i.is=!1,t()},_.onmouseout=function(e){e=e.relatedTarget||e.toElement;e&&'HTML'!=e.tagName||(i.is=!1,t())},_.forcey=function(){H[0].style.top=f.vpos+'px',!fe.scrollbaranimate||g.disabled||0!==f.vpos&&f.vpos!==f.vmax||(f.animvpost&&clearTimeout(f.animvpost),f.animvpost=setTimeout(e,10,f.vpos,f.vmax))},_.forcex=function(){j[0].style.left=f.hpos+'px',!fe.scrollbaranimate||g.disabled||0!==f.hpos&&f.hpos!==f.hmax||(f.animhpost&&clearTimeout(f.animhpost),f.animhpost=setTimeout(a,10,f.hpos,f.hmax))},_.clearscroll=function(){U=!(c=null),f.animvpos=!1,g.y=-1,g.x=-1,l.onidle&&l.onidle(u),ue.scrollidle&&EMIT('scrollidle',p)},_.onscroll=function(){var e,t,n,r,i=p[0].scrollTop,a=p[0].scrollLeft,s=f.prevx!==a||f.prevy!==i;if(f.prevx=a,f.prevy=i,(b||E)&&(z=z||(b?b.height():E.width()),d&&(z<i?f.shadowtop||(f.shadowtop=!0,b.stop().animate({opacity:1},200)):f.shadowtop&&(f.shadowtop=!1,b.stop().animate({opacity:0},200)),i<f.scrollHeight-f.clientHeight-z?f.shadowbottom||(f.shadowbottom=!0,y.stop().animate({opacity:1},200)):f.shadowbottom&&(f.shadowbottom=!1,y.stop().animate({opacity:0},200))),h&&(z<a?f.shadowleft||(f.shadowleft=!0,E.stop().animate({opacity:1},200)):f.shadowleft&&(f.shadowleft=!1,E.stop().animate({opacity:0},200)),a<f.scrollWidth-f.clientWidth-z?f.shadowright||(f.shadowright=!0,T.stop().animate({opacity:1},200)):f.shadowright&&(f.shadowright=!1,T.stop().animate({opacity:0},200)))),f.vbar&&d&&(100<(t=(n=f.scrollHeight-f.clientHeight+1)?Math.ceil(i/n*100):0)&&(t=100),r=(f.vbarlength||0)-(f.vbarsize||0),(e=Math.ceil(t/100*r))<0?e=0:r<e&&(e=r),f.vpos!==e&&(f.vpos=e,f.vmax=r,ce.requestAnimationFrame(_.forcey))),f.hbar&&h&&((e=(t=100<(t=(n=f.scrollWidth-f.clientWidth+1)?Math.ceil(a/n*100):0)?100:t)/100*(r=f.hbarlength-f.hbarsize)>>0)<0?e=0:r<e&&(e=r),f.hpos!==e&&(f.hpos=e,f.hmax=r,ce.requestAnimationFrame(_.forcex))),s?(U&&(clearTimeout(w),w=setTimeout(u.resize,500,!0),ue.scroll&&EMIT('scroll',p),U=!1),c&&clearTimeout(c),c=setTimeout(_.clearscroll,700),l.onscroll&&l.onscroll(u)):(f.hbar||f.vbar)&&(clearTimeout(w),w=setTimeout(u.resize,500,!0)),G.length||Y.length){if(x){if(x!==X)return}else x=X;u.unsync();for(var o=0;o<G.length;o++)G[o].$csid!==x&&(G[o].scrollLeft=a,G[o].style[L]='none');for(o=0;o<Y.length;o++)Y[o].$csid!==x&&(Y[o].scrollTop=i,Y[o].style[L]='none')}},F&&F.on('mousedown',function(e){i.type='x';var t=e.target.tagName;if('SPAN'!==t&&'B'!==t)return t=e.offsetX<10?0:e.offsetX>f.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*(100<t?100:t)),void(i.is=!1);r(),i.offset=v.offset().left+e.offsetX,i.offset2=e.offsetX,i.is=!0,i.pos=e.pageX,i.counter=0,F.hclass(n+'-'+ge)||F.aclass(n+'-x-show'),e.preventDefault(),e.stopPropagation()}).on('mouseup',function(){i.is=!1,t()}),P&&P.on('mousedown',function(e){i.type='y';var t=e.target.tagName;if('SPAN'!==t&&'B'!==t)return t=e.offsetY<10?0:e.offsetY>f.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*(100<t?100:t)),void(i.is=!1);r(),i.offset=v.offset().top+e.offsetY,i.offset2=e.offsetY,i.pos=e.pageY,i.is=!0,i.counter=0,P.hclass(n+'-'+ge)||P.aclass(n+'-y-show'),e.preventDefault(),e.stopPropagation()}).on('mouseup',function(){i.is=!1,t()}),p.on('scroll',_.onscroll),u.element.on('scroll',function(e){e.preventDefault(),e.stopPropagation();return this.scrollTop&&(this.scrollTop=0),this.scrollLeft&&(this.scrollLeft=0),!1}),u.check=function(){for(var e=v[0].parentNode,t=!1;e;){if(e.tagName===de){t=!0;break}e=e.parentNode}t?u.resize():u.destroy()},{}),ne={},re={},ie='padding-right',ae='padding-bottom',se=(u.size=f,u.resize2=onresize,u.resize=function(e,t){var n,r,i,a,s,o,c;if(w&&(clearTimeout(w),w=null),t||!HIDDEN(v[0]))return g.yis=!1,g.xis=!1,g.y=-1,g.x=-1,t=p[0],r=v,n=isMOBILE&&!SCROLLBARWIDTH(),A=null,l.parent&&((r=typeof l.parent==he?$(l.parent):r.closest(l.parent))[0].$scrollbar||(r[0].$scrollbar=u,r.on('scroll',function(e){return this.scrollTop&&(this.scrollTop=0),this.scrollLeft&&(this.scrollLeft=0),e.preventDefault(),!1}))),f.viewWidth=r.width()+(l.offsetX||0),f.viewHeight=r.height()+(l.offsetY||0),r=SCROLLBARWIDTH(),f.margin=r,f.margin||n?(f.empty=0,u.margin=r):(f.empty=1,f.margin=null==l.margin?25:l.margin,u.margin=null==l.margin?f.thicknessH?-f.thicknessH:0:l.margin),u.marginX=d?u.margin:0,u.marginY=h?u.margin:0,u.thinknessX=f.thicknessH,u.thinknessY=f.thicknessY,i=h&&l.marginX||0,s=d&&l.marginY||0,n?(f.viewWidth>WW&&(f.viewWidth=WW),f.viewWidth>screen.width&&(f.viewWidth=screen.width),c=f.viewWidth-i,a=f.viewHeight-s,m.md!=n&&M.tclass(ge,n)):(c=f.viewWidth+(d?f.margin:0)-i,a=f.viewHeight+(h?f.margin:0)-s),m.aw!==c&&(m.aw=c,n||p.css(ve,c),b&&(o=l.marginshadowY||0,b.css(ve,f.viewWidth-o),y.css(ve,f.viewWidth-o)),T&&T.css('left',f.viewWidth-z),W.css('y'===S?ve:'min-'+ve,f.viewWidth-i+(ce.isIE||R||!r?f.margin:0)-('x'===S?f.margin:0))),m.ah!==a&&(m.ah=a,p.css(be,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())),s=l.thickness||10,!f.thicknessH&&h&&(f.thicknessH=(F.height()||s)-1),!f.thicknessV&&d&&(f.thicknessV=(P.width()||s)-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&&(o=l.marginshadowX||0,c=!1===l.floating?0:F.height(),E.css(be,te.top-(l.marginshadowX||0)+c),T.css(be,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&&(k?(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<f.scrollHeight-f.clientHeight,f.vbar&&(f.vbarsize=f.clientHeight*(ne.height/f.scrollHeight)>>0,f.vbarsize<l.minsize&&(f.vbarsize=l.minsize),f.vbarlength=ne.height,m.vbarsize!==f.vbarsize&&(m.vbarsize=f.vbarsize,H.stop().css(be,f.vbarsize).attrd('size',f.vbarsize)))),h&&(f.hbar=f.scrollWidth>f.clientWidth,f.hbar&&(f.hbarsize=f.clientWidth*(te.width/f.scrollWidth)>>0,f.hbarlength=te.width,f.hbarsize<l.minsize&&(f.hbarsize=l.minsize),m.hbarsize!==f.hbarsize&&(m.hbarsize=f.hbarsize,j.stop().css(ve,f.hbarsize).attrd('size',f.hbarsize)))),m.canX!==h&&(m.canX=h,p[0].style['overflow-x']=h?'':'hidden'),m.canY!==d&&(m.canY=d,p[0].style['overflow-y']=d?'':'hidden'),f.vbarsize||(f.vbarsize=0),f.hbarsize||(f.hbarsize=0),t=fe.prefixcsslibrary+'scrollbar-',h&&m.hbar!==f.hbar&&(m.hbar=f.hbar,F.tclass((D?t:'')+ge,!f.hbar)),d&&m.vbar!==f.vbar&&(m.vbar=f.vbar,P.tclass((C?t:'')+ge,!f.vbar)),D&&!f.hbar&&(f.hbar=!0),C&&!f.vbar&&(f.vbar=!0),s=f.hbar&&h,o=f.vbar&&d,m.isx!==s&&(m.isx=s,v.tclass(t+'isx',s)),m.isy!==o&&(m.isy=o,v.tclass(t+'isy',o)),m.md!==n&&(m.md=n,v.tclass(t+'touch',n)),m.ready||(m.ready=1,M.rclass(t+'notready')),f.margin&&(c=f.margin,0==ce.isIE&&r&&!R&&(c=0),0==l.floating?(d&&(re[ie]=f.vbar?f.thicknessV+c:c),h&&(re[ae]=f.hbar?f.thicknessH+c:c)):(d&&(re[ie]=c),h&&(re[ae]=c)),m[ie]===re[ie]&&m[ae]===re[ae]||(m[ie]=re[ie],m[ae]=re[ae],W.css(re))),l.onresize&&l.onresize(u),e||_.onscroll(),u},u.scrollLeft=function(e){return null==e?p[0].scrollLeft:(typeof e===oe&&(e=p[0].scrollLeft+ +e),f.hpos=-1,p[0].scrollLeft=e)},u.scrollTop=function(e){return null==e?p[0].scrollTop:(typeof e===oe&&(e=p[0].scrollTop+ +e),f.vpos=-1,p[0].scrollTop=e)},u.scrollBottom=function(e){return null==e?p[0].scrollTop:(f.vpos=-1,p[0].scrollTop=p[0].scrollHeight-f.clientHeight-(e||0))},u.scrollRight=function(e){return null==e?p[0].scrollLeft:(f.hpos=-1,p[0].scrollLeft=p[0].scrollWidth-f.clientWidth-(e||0))},u.scroll=function(e,t){return p[0].scrollLeft=e,p[0].scrollTop=t,f.vpos=-1,f.hpos=-1,u},u.destroy=function(){clearInterval(o),t(),p&&p.off(),F&&F.off(),P&&P.off(),OFF(Ee,u.resize);var e=le.scrollbars.indexOf(u);-1!==e&&le.scrollbars.splice(e,1)},function(){HIDDEN(v[0])?setTimeout(se,234):(setTimeout(u.resize,500),setTimeout(u.resize,1e3),u.resize())});return null!=l.autoresize&&!l.autoresize||(Me.on(Ee,onresize),ON(Ee,u.resize)),u.unsyncdone=function(){O=x=null;for(var e=0;e<G.length;e++)G[e].style[L]='';for(e=0;e<Y.length;e++)Y[e].style[L]=''},u.unsync=function(){O&&clearTimeout(O),O=setTimeout(u.unsyncdone,300)},u.sync=function(e,t){(e=e instanceof jQuery?e:$(e))[0].$csid='cs'+GUID(8);var n=!t||'left'===t||'x'===t,r=!t||'top'===t||'y'===t;e.on('scroll',function(){x&&x!==this.$csid||(x=this.$csid,u.unsync(),n&&(u.area[0].scrollLeft=this.scrollLeft),r&&(u.area[0].scrollTop=this.scrollTop))}),n&&G.push(e[0]),r&&Y.push(e[0])},se(),o=setInterval(u.check,l.interval||54321),le.scrollbars.push(u),u}function Xr(e,t){for(var n=[],r=0,i=t.length,a=Math.floor(999999999*Math.random()),s=[],o=3;0<=o;o--)s.push(a>>8*o&255);for(o=0;o<e.length;o++){var c=e.charAt(o);Se[c]?n.push(c):(r===i&&(r=0),c=(e.charCodeAt(o)+2+t.charCodeAt(r++)).toString(36),n.push(c.length+c))}for(var l=[],n=n.join(''),o=0;o<n.length;o++)l.push(String.fromCharCode(n.charCodeAt(o)^s[o%4]));for(o=s.length-1;-1<o;o--)l.unshift(String.fromCharCode(s[o]));return btoa(l.join(''))}function _r(e,t){var n;try{n=atob(e)}catch(e){return''}for(var r=[],i=0;i<4;i++)r[i]=n.charCodeAt(i);for(var a=[],i=4;i<n.length;i++)a.push(String.fromCharCode(n.charCodeAt(i)^r[i%4]));var s=0,u=t.length,o=[];e=a.join('');for(i=0;i<e.length;i++){var c,f,l=e.charAt(i);Se[l]?o.push(l):(s===u&&(s=0),l=+e.charAt(i),c=parseInt(e.substring(i+1,i+1+l),36),f=t.charCodeAt(s++),o.push(String.fromCharCode(c-f-2)),i+=l)}return o.join('')}function Br(e){var t,n,r,i,a;Ge?(t=e.getAttribute('name')||'')&&(n=e.getAttribute(pe)||'null',r=e.getAttribute(ke)||'null',i=e.getAttribute(Ne)||'',a=t+'__'+n+'__'+r+(i?'__'+i:''),e.$jcwebcomponent=!0,cn(a,e),e.$com||e.$compilecomponent||(-1===(t='lazy '===t.substring(0,5).toLowerCase()?t.substring(5):t).lastIndexOf('@')&&(st[t]?t+='@'+st[t]:fe.versioncomponents&&(t+='@'+fe.versioncomponents)),le.$components[t]||(e.$componentname=t,e.$compilecomponent=()=>cn(a,e),kt.push(e)))):ht.push(e)}function Vr(e){Nt.push(e),vr&&clearTimeout(vr),vr=setTimeout(un,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===K&&(n=function(e,t,n){r(t,e,n)}),e=e.split(',').trim();for(var i=0;i<e.length;i++)e[i]=this.makepath(e[i]);return WATCH(e.join(','),n,t),this},Ur.set=function(e,t,n){return void 0===t&&(t=e,e=null),SET(this.makepath(e),t,n),this},Ur.nul=function(e,t){return SET(this.makepath(e),null,t),this},Ur.push=function(e,t,n){return void 0===t&&(t=e,e=null),PUSH(this.makepath(e),t,n),this},Ur.extend=function(e,t,n){return void 0===t&&(t=e,e=null),EXTEND(this.makepath(e),t,n),this},Ur.inc=function(e,t,n){return void 0===t&&(t=e,e=null),INC(this.makepath(e),t,n),this},Ur.toggle=function(e,t){return this.scope(),TOGGLE(this.makepath(e),t),this},Ur.upd=function(e,t){return UPD(this.makepath(e),t),this},Ur.reset=function(e){return RESET(this.makepath(e)),this},Ur.get=function(e){return GET(this.makepath(e))},Ur.$format=function(e){return this&&this[e]?(DEF.monitor&&ee('plugins'),this[e]):Fn.$formatnoop},Ur.exec=function(t,n,r,i,a,s){var e,o,c=this;return-1!==t.indexOf(' #')&&(o=(e=nr(t)).cl,t=e.path),t=rr(t),CL(o,function(){c.scope();var e=c[t];fe.monitor&&ee('plugins'),e&&e.call(c,n,r,i,a,s)}),c},Ur.scope=function(e){return Rt=Z=null===e?null:e||this.name,this},Ur.makepath=function(e){this.scope();var t=e?e.charAt(0):'';return'@'===t?this.name+' '+e:'|'===t?this.name+e:'%'===t||'#'===t?e:(e=e&&e.replace(/\?(\.)?/,''),this.name+(e?'.'+e:''))},Ur.remove=Ur.$remove=function(){var e=this;if(!e.element)return!0;var t,n=e.id+'_';for(t in Ot)t.substring(0,n.length)===n&&(clearInterval(Ot[t]),delete Ot[t]);for(t in DEF.monitor&&ee('plugins',2),EMIT('plugin.destroy',e),e.destroy&&e.destroy(),ue)ue[t].remove('owner',e.id).length||delete ue[t];return rt=rt.remove('owner',e.id),OFF(e.id+'#watch'),e.element=null,delete ce.PLUGINS[e.name],!0},ce.PLUGINABLE=function(e,t,n){var r=It[e];r&&r.pending?(r.fn=t,r.init=n):It[e]={name:e,fn:t,init:n}},ce.PLUGIN=function(e,t,n,r){var i;if(Ge)return-1!==e.indexOf(' ')?(i=e.split(' ').trim(),void(ut[i[1]]={fn:t,element:Ct})):(t=t&&new zr(Z=e,t,n,r,Rt&&PLUGINS[Rt]),n?void 0:(DEF.monitor&&ee('plugins',t?1:0),t||ce.PLUGINS[e]));ct.push({name:e,fn:t,init:n,done:r})},le.prototypes=function(e){var t={};t.Component=T,t.Plugin=Ur,t.VBinder=Ht,e.call(t,t)},ce.SCROLLBAR=function(e,t){return new Yr(e,t)},ce.NOTFOCUSED=function(){return document.hidden||document.msHidden||document.webkitHidden},ce.REPEAT=function(i,a,s,e){function o(e,t){if(fe.repeatfocus&&ce.NOTFOCUSED())return Ot[u]&&clearTimeout(Ot[u]),void(Ot[u]=setTimeout(o,1e3,e,t));var n,r=!1;l&&(c?(n=GET(c),i?i(GET(c))||(r=!0):n||(r=!0)):i()||(r=!0)),Ot[u]&&clearTimeout(Ot[u]),Ot[u]=setTimeout(o,s,e,r?t:t+1),r||(DEF.monitor&&ee('repeat'),e?(n=Z,a(t+1,Z=e),Z=n):a(t+1,''))}typeof a==P&&(e=s,s=a,a=i,i=null);var c,l=!!i,u=(typeof i===oe&&(t=i.split(te),c=t[0].replace(g,Z),i=t[1]?FN('value=>'+t[1]):null),('plug'+Z||'')+'_'+GUID(5)),t=0;e&&o(t++,Z),Ot[u]=setTimeout(o,s,Z,t)},ce.QUEUE=function(e,t){typeof e==K&&(t=e,e=E);var n=(n=gt[e])||(gt[e]=[]);return t?(n.push({fn:t,scope:Z}),ce.QUEUE(e)):n.isrunning||(t=n.shift())&&(n.isrunning=!0,Z=t.scope,t.fn(function(){n.isrunning=!1,ce.QUEUE(e)},n.length)),n.length},ce.WORKFLOW=function(e,t,n){typeof t===K&&(n=t,t=void 0);var i={};return i.tasks=t||{},i.scope=Z,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=Z,Z=i.scope,i.current=e,null!=t&&(i.value=t),n(i,i.value),Z=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<t.length;n++)if(t[n]===e)return n;return-1},ce.NODEINSERT=function(e,t,n){e instanceof jQuery&&(e=e[0]),t instanceof jQuery&&(t=t[0]),n?t.parentNode.insertBefore(e,t):t.nextSibling?t.parentNode.insertBefore(e,t.nextSibling):t.parentNode.appendChild(e)},ce.NODEMOVE=function(e,t){if(e instanceof jQuery)for(var n=0;n<e.length;n++)ce.NODEMOVE(e[n],t);else{var r,i,a=ce.NODEINDEXOF(e);-1<a&&(i=(r=e.parentNode).children,t?0<a&&r.insertBefore(e,i[a-1]):(i=i[a+2])?r.insertBefore(e,i):r.appendChild(e))}},ce.DECRYPT=function(e,t,n){var r=e.lastIndexOf('x');if(-1!==r){n=n||'';var i=e.substring(r+1),r=e.substring(n.length,r);if((n?e.substring(0,n.length):'')===n&&HASH(r+(t||'')+n).toString(32)===i)return'['===(e=(r=decodeURIComponent(r.replace(/(..)/g,'%$1'))).charAt(0))||'{'===e||'"'===e?PARSE(r):r}},ce.ENCRYPT=function(e,t,n){typeof e==he&&(e=STRINGIFY(e,!0));for(var r=unescape(encodeURIComponent(e)).split(''),i=0;i<r.length;i++)r[i]=r[i].charCodeAt(0).toString(16);n=n||'';e=r.join('');return n+e+'x'+HASH(e+(t||'')+n).toString(32)},ce.UNAUTHORIZED=function(){var e=ce.user;if(e){if(e.sa||e.su)return!1;var t=e.permissions||e.roles,n=arguments;if(t)if(t instanceof Array){for(var r=0;r<t.length;r++)for(var i=0;i<n.length;i++)if(n[i]===t[r])return!1}else for(i=0;i<n.length;i++)if(t[n[i]])return!1}return!0},ce.NEWUIBIND=function(e,t,n,r){var i;e instanceof jQuery&&(e=e[0]),r||Ge?(t=(t=t||e.getAttribute(pe))||'null',(n=n||e.getAttribute(ke))&&(t+='__'+(i='__',n.replace(/(.)?;/g,function(e){var t=e.charAt(0);return'\\'===t?e:t+i}))),e.ui=kr(e,t),e.ui?(e.$jcbind=e.ui,e.ui.$new=1,e.ui.$type='binder',Or()):WARN('Invalid <ui-bind>',e)):ft.push({el:e,path:t,config:n})},customElements.define('ui-plugin',class extends HTMLElement{constructor(){super(),this.ui={$new:1,$type:L},Ge?setTimeout(ln,1,this):lt.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(Br,1,this)}static get observedAttributes(){return[ke]}reconfigure(e,t,n){null==e&&(e=this.getAttribute(ke)),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===ke&&this.$com.reconfigure(n)}}),customElements.define('ui-import',class extends HTMLElement{constructor(){super(),setTimeout(Vr,1,this)}})}();