function Alerts(t){this.callback=t||null,this.loadAlerts(),this.clean(),this.get()}Alerts.prototype.loadAlerts=function(){let t=this;new MustacheLoader("/templates/backend/partials/alert",null,(function(e){return t.alert_template=e,t.callback(t)}))},Alerts.prototype.get=function(){const t=$_(".alert-wrapper");let e=sessionStorage.getItem("alerts")||[];if(e=empty(e)?e:JSON.parse(e),empty(e))return!1;__(e).foreach((function(e,n){const r=createNode(n);t.nodes().prepend(r)})),sessionStorage.removeItem("alerts"),this.clean()},Alerts.prototype.set=function(t,e,n){const r=$_(".alert-wrapper");if(empty(r))return!1;const o=createNode(Mustache.render(this.alert_template,{notice:t,type:e}));if(empty(n))r.nodes().prepend(o);else{let t=sessionStorage.getItem("alerts")||[];t=empty(t)?t:JSON.parse(t),t.push(o.outerHTML),sessionStorage.setItem("alerts",JSON.stringify(t))}__(o).on("click",(function(t,e){__(t).remove()})),this.clean()},Alerts.prototype.clean=function(){const t=$_(".alert-wrapper");if(empty(t))return!1;const e=t.childs(".alert");empty(e)||(setTimeout((function(){e.foreach((function(t,e){e.classList.add("fadeOut")}))}),4e3),setTimeout((function(){e.foreach((function(t,e){__(e).remove()}))}),6e3))};var FrameworkCache=function(){};FrameworkCache.prototype.put=function(t,e){return sessionStorage.setItem(t,JSON.stringify(e).base64Encode())},FrameworkCache.prototype.get=function(t){let e=sessionStorage.getItem(t);return empty(e)?null:JSON.parse(e.base64Decode())},FrameworkCache.prototype.exists=function(t){return!empty(sessionStorage.getItem(t))},FrameworkCache.prototype.delete=function(t){return sessionStorage.removeItem(t)},FrameworkCache.prototype.clear=function(){return sessionStorage.clear()};var Format={randomString:function(t){void 0!==t&&0!==t||(t=10);let e=new Uint8Array((t||40)/2);return window.crypto.getRandomValues(e),Array.from(e,(function(t){return("0"+t.toString(16)).substr(-2)})).join("")},ucfirst:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},xhrEncode:function(t,e){if(e=e||1,!t||null==t||null==t)return t;for(let n=0;n<e;n++)t=encodeURIComponent(JSON.stringify(t).base64Encode());return t},xhrDecode:function(t,e){if(e=e||1,!t||null==t||null==t)return t;for(let n=0;n<e;n++)t=JSON.parse(decodeURIComponent(t).base64Decode());return t},urlEncode:function(t){return t=(t=(t=(t=t.trim()).toLowerCase()).replace(/[&\\#,+()$~%^@.'":*?<>{}]/g,"-")).split(" ").join("-"),encodeURI(t)}};function Framework(){const t=this;if(this.checkEnvironment(),this.component_index=0,this.lib={packages:packages={},frontend:frontend={},backend:backend={}},this.callbacks={},!1!==this.is_backend)return this.loadComponents();window.addEventListener("load",(function(){t.execute("load")}))}Framework.prototype.on=function(t,e){return void 0===this.callbacks[t]&&(this.callbacks[t]=[]),this.callbacks[t].push(e)},Framework.prototype.execute=function(t){if(void 0===this.callbacks[t])return!1;for(var e=0;e<this.callbacks[t].length;++e)this.callback=this.callbacks[t][e],this.callback(this)},Framework.prototype.checkEnvironment=function(){let t=document.head.querySelector("script[framework]"),e=!1;if(null===t&&(t=document.body.querySelector("script[framework]")),null!==t){let n=t.src.split("?")[1].split("&"),r={};for(let t=0;t<n.length;t++){const e=n[t].split("=");r[e[0]]=e[1]}e="backend"===r.environment,this.hash=r.hash||null;const o=t.getAttribute("host");null!=o&&(this.host=JSON.parse(atob(o)));const s=t.getAttribute("domain");null!=s&&(this.domain=JSON.parse(atob(s)))}this.is_backend=e},Framework.prototype.loadComponents=function(){let t=this,e=!0;switch(this.component_index++,this.component_index){case 1:e=!1,this.Languages=new Languages((function(){return t.loadComponents()}));break;case 2:e=!1,this.Alerts=new Alerts((function(){return t.loadComponents()}))}if(!0===e)return t.execute("load"),!1},Framework.prototype.loadLibrariesBackend=function(){this.lib.Layout=new Layout,this.lib.Forms=new Forms},Framework.prototype.loadLibrariesFrontend=function(){this.lib.frontend.Lazyload=new FrontendLazyload,this.lib.frontend.Forms=new FrontendForms,this.lib.frontend.Autoload=new FrontendAutoload,this.lib.frontend.Search=new FrontendSearch},Framework.prototype.loadLibrariesPackages=function(){this.lib.packages.Form=new PackagesForm},Framework.prototype.loadScriptsFrontend=function(){const t=document.body.querySelectorAll("script[data-src]");for(var e=0;e<t.length;++e){const n=t[e];n.setAttribute("src",n.getAttribute("data-src"))}},Framework.prototype.loadDynamicLibraries=function(){let t=this,e=document.body.getAttribute("data-js-libraries");if(empty(e))return!1;let n=e.split(" ");__(n).foreach((function(e,n){return""!==n&&("function"==typeof window[n]&&void(t.lib[n]=new window[n]))}))},Framework.prototype.__lang=function(t){return this.Languages.get(t)},Framework.prototype.redirect=function(t,e){new XHR("redirect","get_url").setHost("backend\\models\\json").setData({module:t,path:e}).on("success",(function(t,e){if(null==t)return!1;t=Format.xhrDecode(t),window.location.href=t})).execute()};const _Framework=new Framework,_Cache=new FrameworkCache;_Framework.on("load",(function(){!0===this.is_backend?(loadInstanceUtils(),this.loadLibrariesBackend(),this.loadDynamicLibraries(),this.loadLibrariesPackages()):(this.loadLibrariesPackages(),this.loadLibrariesFrontend())}));var createNode=function(t){let e=document.createElement("div");return e.innerHTML=t,e.firstChild},createNodes=function(t){let e=document.createElement("div");return e.innerHTML=t,e.children},isNode=function(t){return t&&t.nodeType===Node.ELEMENT_NODE},empty=function(t){return void 0===t||(null===t||(!1===t||(""===t||(0===t||(!(void 0===t.target&&!Array.prototype.isPrototypeOf(t.target)||!(null===t.target||t.target.length<1))||(t.length<1||t.constructor===Object&&0===Object.keys(t).length))))))},getParams=function(t){let e=t.replace("?","").split("&"),n={};for(let t=0;t<e.length;t++){const r=e[t].split("=");null!=r[1]&&null!=r[1]&&(n[r[0]]=r[1])}return n},getParamsAsArray=function(t){let e=t.split("&"),n={};for(let t=0;t<e.length;t++){const r=e[t].split("=");null!=r[1]&&null!=r[1]&&(r[0]=r[0].replace("%5B%5D",""),n[r[0]]=n[r[0]]||[],n[r[0]].push(r[1]))}return n},getURLKey=function(t){let e=window.location.search.substring(1).split("&"),n={};for(let t=0;t<e.length;t++){const r=e[t].split("=");n[r[0]]=r[1],t++}return n[t]},buildQuery=function(t){let e="";for(var n in t)if(""!=e&&(e+="&"),Array.isArray(t[n]))for(let r=0;r<t[n].length;r++)e+=n+"[]="+encodeURIComponent(t[n][r]);else e+=n+"="+encodeURIComponent(t[n]);return e};let timers={};var delay=function(t,e,n){return n=n||Format.randomString(),timers[n]=timers[n]||null,clearTimeout(timers[n]),timers[n]=setTimeout(t,e)},is_visible=function(t){const e=t.getBoundingClientRect(),n=e.top,r=e.bottom;return n>=0&&r<=window.innerHeight},replaceAll=function(t,e){var n=new RegExp(Object.keys(e).join("|"),"gi");return t.replace(n,(function(t){return e[t.toLowerCase()]}))},ObjectFromEntries=function(t){const e={};for(let n=0;n<t.length;n++){const r=t[n];if(Object(r)!==r)throw new TypeError("iterable for fromEntries should yield objects");const o=r[0],s=r[1];Object.defineProperty(e,o,{configurable:!0,enumerable:!0,writable:!0,value:s}),n++}return e},assignID=function(t){return Format.randomString(parseInt(t)||10)},getMouseX=function(t,e){const n=document.documentElement,r=document.body;let o=t.clientX+(n&&n.scrollLeft||r&&r.scrollLeft||0)-(n&&n.clientLeft||r&&r.clientLeft||0);if(!empty(e)){o-=e.getBoundingClientRect().left}return o},getMouseY=function(t,e){const n=document.documentElement,r=document.body;let o=t.clientY+(n&&n.scrollTop||r&&r.scrollTop||0)-(n&&n.clientTop||r&&r.clientTop||0);if(!empty(e)){o-=e.getBoundingClientRect().top}return o};String.prototype.substrSplit=function(t,e){let n=this.split(t);if(n=n.filter(Boolean),null==e)return n;switch(e){case"first":return n[0];case"last":return n.pop()}return isNaN(e)?this.value:n[e]},String.prototype.base64Encode=function(){return btoa(encodeURIComponent(this).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode("0x"+e)})))},String.prototype.base64Decode=function(){return decodeURIComponent(atob(this).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))};var __=function(t){return new __Instance(t)},$_=function(t,e){return __(document.querySelectorAll(t))},__Instance=function(t){if(this.target=t,this.checkQuery(),this.getType(),this.convertTarget(),null===this.target||void 0===this.target||this.target.length<1)return null};__Instance.prototype.checkQuery=function(){if("string"==typeof this.target||this.target instanceof String)return this.target=this.target.replace("!",""),this.target=$_(this.target,!0).nodes()},__Instance.prototype.getType=function(){return void 0!==this.target&&null!==this.target&&""!==this.target&&!1!==this.target&&(NodeList.prototype.isPrototypeOf(this.target)?this.type="NodeList":this.target.nodeType&&this.target.nodeType===Node.ELEMENT_NODE?this.type="Element":Array.prototype.isPrototypeOf(this.target)?this.type="Array":Object.prototype.isPrototypeOf(this.target)?this.type="Object":"string"==typeof this.target||this.target instanceof String?this.type="String":void 0)},__Instance.prototype.convertTarget=function(){switch(this.type){case"Element":case"Object":return this.target=[this.target];case"NodeList":let e=[];for(var t=0;t<this.target.length;++t)e.push(this.target[t]);return this.target=e}},__Instance.prototype.setProperties=function(){if("String"===this.type)return!1;for(var t=0;t<this.target.length;++t){const e=this.target[t];"string"==typeof e||e instanceof String||("Object"===this.type&&Object.keys(e).length<1||(e.__=e.__||{},e.__={properties:e.__.properties||{},methods:e.__.methods||{},utils:e.__.utils||{}}))}},__Instance.prototype.nodes=function(){this.target;return null===this.target||void 0===this.target||this.target.length<1?null:1===this.target.length?this.target[0]:this.target},__Instance.prototype.get=function(t){this.target;return null===this.target||this.target.length<1?null:__(this.target[t])},__Instance.prototype.prop=function(t,e){let n=this.target;if(n.length<1)return null;if(void 0!==e){for(var r=0;r<n.length;++r){n[r][t]=e}return!1}return this.target.length>1?null:this.target[0][t]||null},__Instance.prototype.method=function(t){let e=this.target;if(e.length<1)return null;for(var n=0;n<e.length;++n){e[n][t]()}return!1},__Instance.prototype.util=function(t,e){let n=this.target;this.setProperties();let r=[];"string"==typeof t||t instanceof String||(t=t.constructor.name);for(var o=0;o<n.length;++o){const e=n[o];void 0!==e.__.utils[t]&&null!==e.__.utils[t]&&r.push(n[o].__.utils[t])}return r.length<1?null:null!=e&&!0===e?r[0]:__(r)},__Instance.prototype.addUtil=function(t){let e=this.target;this.setProperties();for(var n=0;n<e.length;++n)e[n].__.utils[t.constructor.name]=t;return!1},__Instance.prototype.foreach=function(t){let e=0;"Object"===this.type&&(this.target=this.target[0]);if("object"==typeof this.target){let e=this.target;return Object.keys(this.target).forEach((function(n){if("__"===n)return!1;let r=n,o=e[n];t(r,o)})),!1}Array.isArray(this.target)&&null!==this.target&&(e=this.target.length),0===e&&(e=this.target.length);for(var n=0;n<e;++n){let e=this.target[n];t(n,e)}},__Instance.prototype.remove=function(){if(null===this.target)return!1;for(var t=this.target.length-1;t>=0;t--)this.target[t]&&this.target[t].parentElement&&this.target[t].parentElement.removeChild(this.target[t])},__Instance.prototype.on=function(t,e){let n=this.target;this.setProperties();for(var r=0;r<n.length;++r){const s=n[r],i=t.split(" ");for(var o=0;o<i.length;++o){const t=i[o];void 0!==s.__.methods[t]&&null!==s.__.methods[t]||(s.__.methods[t]=[]),s.__.methods[t].push(e),s.nodeType&&s.nodeType===Node.ELEMENT_NODE&&s.addEventListener(t,(function(t){s.callback=e,s.callback(s,t)}))}}},__Instance.prototype.execute=function(t){let e=this.target;if(this.setProperties(),null==e)return!1;for(var n=0;n<e.length;++n){const o=e[n];if(void 0===o.__.methods[t]||null===o.__.methods[t])return!1;for(var r=0;r<o.__.methods[t].length;++r)o.callback=o.__.methods[t][r],o.callback(o)}},__Instance.prototype.assignID=function(t){let e=this.target;for(var n=0;n<e.length;++n){e[n].ID=Format.randomString(parseInt(t)||10)}},__Instance.prototype.child=function(t){let e=this.target;if(null===e)return!1;let n=[];for(var r=0;r<e.length;++r){const o=e[r].querySelector(t);null!=o&&n.push(o)}return __(n)},__Instance.prototype.childs=function(t,e){let n=this.target,r=[];if(null===n)return __(r);for(var o=0;o<n.length;++o){const a=n[o];if(!(null===a.children||void 0===a.children||a.children.length<1)){if(null==t||""===t)if(void 0!==e&&!0===e)for(var s=0;s<a.children.length;++s){const t=a.children[s];r.push(t)}else{const t=a.querySelectorAll("*");for(s=0;s<t.length;++s){const e=t[s];r.push(e)}}if(void 0!==e&&!0===e){let e=a.children,n=a.querySelectorAll(t);for(s=0;s<n.length;++s)for(var i=0;i<e.length;++i)!0===n[s].isSameNode(e[i])&&r.push(n[s])}else{const e=a.querySelectorAll(t);if(e.length>0)for(s=0;s<e.length;++s)r.push(e[s])}}}return __(r)},__Instance.prototype.parent=function(t){let e=this.target,n=[];Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),n=e.length;--n>=0&&e.item(n)!==this;);return n>-1});for(var r=0;r<e.length;++r){let o=e[r];if(o.nodeType&&o.nodeType===Node.ELEMENT_NODE)if(null!=t){for(;o&&o!==document;o=o.parentNode)if(null!==o.parentNode&&o.parentNode.nodeType&&o.parentNode.nodeType===Node.ELEMENT_NODE&&o.parentNode.matches(t)){n.push(o.parentNode);break}}else n.push(o.parentNode)}return __(n)},__Instance.prototype.parents=function(t){let e=this.target,n=[];Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),n=e.length;--n>=0&&e.item(n)!==this;);return n>-1});for(var r=0;r<e.length;++r){let o=e[r];if(o.nodeType&&o.nodeType===Node.ELEMENT_NODE)for(;o&&o!==document;o=o.parentNode)t?o.matches(t)&&n.push(o):n.push(o)}return __(n)},__Instance.prototype.addClass=function(t){let e=this.target,n=Array.isArray(t);for(var r=0;r<e.length;++r){const o=e[r];if(!0!==n)t=t.replace(".",""),o.classList.add(t);else for(r=0;r<t.length;++r)class_item=t[r].replace(".",""),o.classList.add(class_item)}return!1},__Instance.prototype.removeClass=function(t){let e=this.target,n=Array.isArray(t);for(var r=0;r<e.length;++r){const o=e[r];if(!0!==n)o.classList.remove(t);else for(r=0;r<t.length;++r)o.classList.remove(t[r])}return!1},__Instance.prototype.hasClass=function(t){let e=this.target;if(null==e||null==e)return!1;let n=e.length,r=0;for(var o=0;o<e.length;++o){!0===e[o].classList.contains(t)&&r++}return r===n},__Instance.prototype.toggleClass=function(t){let e=this.target,n=Array.isArray(t);for(var r=0;r<e.length;++r){const o=e[r];!0===n&&t.foreach((function(t,e){o.classList.toggle(e)})),o.classList.toggle(t)}return!1},__Instance.prototype.attribute=function(t,e){let n=this.target;return_array=[];for(var r=0;r<n.length;++r){const o=n[r];void 0===e&&o.hasAttribute(t)?return_array.push(o.getAttribute(t)):null===e||""===e&&o.hasAttribute(t)?o.removeAttribute(t):null!=e&&o.setAttribute(t,e)}return 0===return_array.length?null:1===return_array.length?return_array[0]:return_array},__Instance.prototype.show=function(t){let e=this.target;t=t||"block";for(var n=0;n<e.length;++n){e[n].style.display=t}return!1},__Instance.prototype.hide=function(){let t=this.target;for(var e=0;e<t.length;++e){t[e].style.display="none"}return!1},__Instance.prototype.disable=function(){let t=this.target;for(var e=0;e<t.length;++e){t[e].disabled=!0}return!1},__Instance.prototype.enable=function(){let t=this.target;for(var e=0;e<t.length;++e){t[e].disabled=!1}return!1},__Instance.prototype.after=function(t){let e=this.target;for(var n=0;n<e.length;++n){const o=e[n];if(null!==o.parentNode){__Instance.prototype.isPrototypeOf(t)&&(t=t.nodes()),t.nodeType&&t.nodeType===Node.ELEMENT_NODE&&(t=[t]);for(var r=0;r<t.length;++r){const e=t[r];o.parentNode.insertBefore(e,o.nextSibling)}}}return!1},__Instance.prototype.before=function(t){let e=this.target;for(var n=0;n<e.length;++n){const o=e[n];if(null!==o.parentNode){__Instance.prototype.isPrototypeOf(t)&&(t=t.nodes()),t.nodeType&&t.nodeType===Node.ELEMENT_NODE&&(t=[t]);for(var r=0;r<t.length;++r){const e=t[r];o.parentNode.insertBefore(e,o)}}}},__Instance.prototype.replace=function(t){let e=this.target;for(var n=0;n<e.length;++n){const o=e[n];if(null!==o.parentNode){__Instance.prototype.isPrototypeOf(t)&&(t=t.nodes()),t.nodeType&&t.nodeType===Node.ELEMENT_NODE&&(t=[t]);for(var r=0;r<t.length;++r){const e=t[r];o.parentNode.replaceChild(e,o)}}}return!1},__Instance.prototype.append=function(t){let e=this.target;for(var n=0;n<e.length;++n){const o=e[n];__Instance.prototype.isPrototypeOf(t)&&(t=t.nodes()),t.nodeType&&t.nodeType===Node.ELEMENT_NODE&&(t=[t]);for(var r=0;r<t.length;++r){const e=t[r];o.appendChild(e)}}return!1},__Instance.prototype.prepend=function(t){let e=this.target;for(var n=0;n<e.length;++n){const o=e[n];__Instance.prototype.isPrototypeOf(t)&&(t=t.nodes()),t.nodeType&&t.nodeType===Node.ELEMENT_NODE&&(t=[t]);for(var r=0;r<t.length;++r){const e=t[r];o.prepend(e)}}return!1},__Instance.prototype.clear=function(t){let e=this.target;for(var n=0;n<e.length;++n){const r=e[n].querySelectorAll(":not("+t+")");__(r).remove()}return!1},__Instance.prototype.cloneNode=function(t,e){if(null===this.target||void 0===this.target)return!1;const n=this.target[0].cloneNode(!0),r=__(n).childs("input, textarea, select");if(empty(r))return!1;let o=parseInt($_(t,!0).target.length);return empty(e)||(o+=e),r.foreach((function(t,e){e.disabled=!1;const n=__(e).childs("option");if(empty(n)||n.foreach((function(t,e){e.disabled=!1})),empty(e.name))return!1;e.name=e.name.replace("[]","["+o+"]")})),n.setAttribute("data-row-id",o),__(n).hasClass("d-none")&&__(n).removeClass("d-none"),__(n)};var loadInstanceUtils=function(){__Instance.prototype.Accordion=function(t){let e=this.target;for(var n=0;n<e.length;++n){const r=e[n];new Accordion(r,t||{})}},__Instance.prototype.Dragdrop=function(t){let e=this.target;for(var n=0;n<e.length;++n){const r=__(e[n]);new Dragdrop(r.nodes(),t||{})}},__Instance.prototype.Dropdown=function(t){let e=this.target;for(var n=0;n<e.length;++n){const r=e[n];new Dropdown(r,t||{})}},__Instance.prototype.Duplicator=function(t){let e=this.target;for(var n=0;n<e.length;++n){const r=e[n],o=new Duplicator(r,t||{});__(r).addUtil(o)}},__Instance.prototype.Loader=function(t){let e=this.target;for(var n=0;n<e.length;++n){const r=e[n];new Loader(r,t||{})}},__Instance.prototype.MediaBrowser=function(t){let e=this.target;for(var n=0;n<e.length;++n){const r=e[n];new MediaBrowser(r,t||{})}},__Instance.prototype.MediaEditor=function(t){let e=this.target;for(var n=0;n<e.length;++n){const r=e[n];new MediaEditor(r,t||{})}},__Instance.prototype.Populator=function(t){let e=this.target;for(var n=0;n<e.length;++n){const r=e[n];new Populator(r,t||{})}},__Instance.prototype.Tabs=function(t){let e=this.target;for(var n=0;n<e.length;++n){const r=e[n];new Tabs(r,t||{})}},__Instance.prototype.Codeeditor=function(t){let e=this.target;for(var n=0;n<e.length;++n){const r=e[n];new CodeEditor(r,t||{})}},__Instance.prototype.DateTimePicker=function(t){let e=this.target;for(var n=0;n<e.length;++n){const r=e[n];new DateTimePicker(r,t||{})}},__Instance.prototype.Pagelinks=function(t){let e=this.target;for(var n=0;n<e.length;++n){const r=e[n];new Pagelinks(r,t||{})}},__Instance.prototype.TextEditor=function(t){let e=this.target;for(var n=0;n<e.length;++n){const r=e[n];new TextEditor(r,t||{})}},__Instance.prototype.Translations=function(t){let e=this.target;for(var n=0;n<e.length;++n){const r=e[n];new Translations(r,t||{})}},__Instance.prototype.Listing=function(t){let e=this.target;for(var n=0;n<e.length;++n){const r=e[n];new Listing(r,t||{})}}};function Languages(t){const e=this;this.languages={},this.callback=t||null,setTimeout((function(){e.loadLanguages()}),10)}function MustacheLoader(t,e,n){return new XHR("mustache","load").setHost("backend\\models\\json").setData({path:t+".mustache"}).on("success",(function(t,e){let r=t;if(null==r)return!1;r=Format.xhrDecode(r),null!=n&&n(r)})).execute(),this}
/*!
 * mustache.js - Logic-less {{mustache}} templates with JavaScript
 * http://github.com/janl/mustache.js
 */Languages.prototype.loadLanguages=function(){let t=this,e=document.documentElement.getAttribute("lang");return null!=e&&null!=e&&(e=e.split("-")[0],"en"==e?(t.languages={},t.callback()):void(new XHR).setUrl("\\languages\\backend\\"+e+".json").on("success",(function(e,n){t.languages=JSON.parse(e),void 0!==t.callback&&null!==t.callback&&t.callback(t)})).execute())},Languages.prototype.get=function(t){return 0===Object.keys(this.languages).length||void 0===this.languages[t]||null===this.languages[t]?t:this.languages[t]},function(t,e){"object"==typeof exports&&exports&&"string"!=typeof exports.nodeName?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):(t.Mustache={},e(t.Mustache))}(this,(function(t){var e=Object.prototype.toString,n=Array.isArray||function(t){return"[object Array]"===e.call(t)};function r(t){return"function"==typeof t}function o(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function s(t,e){return null!=t&&"object"==typeof t&&e in t}var i=RegExp.prototype.test;var a=/\S/;function l(t){return!function(t,e){return i.call(t,e)}(a,t)}var c={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};var u=/\s*/,h=/\s+/,p=/\s*=/,f=/\s*\}/,d=/#|\^|\/|>|\{|&|=|!/;function g(t){this.string=t,this.tail=t,this.pos=0}function y(t,e){this.view=t,this.cache={".":this.view},this.parent=e}function _(){this.cache={}}g.prototype.eos=function(){return""===this.tail},g.prototype.scan=function(t){var e=this.tail.match(t);if(!e||0!==e.index)return"";var n=e[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},g.prototype.scanUntil=function(t){var e,n=this.tail.search(t);switch(n){case-1:e=this.tail,this.tail="";break;case 0:e="";break;default:e=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=e.length,e},y.prototype.push=function(t){return new y(t,this)},y.prototype.lookup=function(t){var e,n=this.cache;if(n.hasOwnProperty(t))e=n[t];else{for(var o,i,a=this,l=!1;a;){if(t.indexOf(".")>0)for(e=a.view,o=t.split("."),i=0;null!=e&&i<o.length;)i===o.length-1&&(l=s(e,o[i])),e=e[o[i++]];else e=a.view[t],l=s(a.view,t);if(l)break;a=a.parent}n[t]=e}return r(e)&&(e=e.call(this.view)),e},_.prototype.clearCache=function(){this.cache={}},_.prototype.parse=function(e,r){var s=this.cache,i=s[e];return null==i&&(i=s[e]=function(e,r){if(!e)return[];var s,i,a,c=[],y=[],_=[],m=!1,v=!1;function b(){if(m&&!v)for(;_.length;)delete y[_.pop()];else _=[];m=!1,v=!1}function w(t){if("string"==typeof t&&(t=t.split(h,2)),!n(t)||2!==t.length)throw new Error("Invalid tags: "+t);s=new RegExp(o(t[0])+"\\s*"),i=new RegExp("\\s*"+o(t[1])),a=new RegExp("\\s*"+o("}"+t[1]))}w(r||t.tags);for(var k,E,I,S,N,T,L=new g(e);!L.eos();){if(k=L.pos,I=L.scanUntil(s))for(var A=0,x=I.length;A<x;++A)l(S=I.charAt(A))?_.push(y.length):v=!0,y.push(["text",S,k,k+1]),k+=1,"\n"===S&&b();if(!L.scan(s))break;if(m=!0,E=L.scan(d)||"name",L.scan(u),"="===E?(I=L.scanUntil(p),L.scan(p),L.scanUntil(i)):"{"===E?(I=L.scanUntil(a),L.scan(f),L.scanUntil(i),E="&"):I=L.scanUntil(i),!L.scan(i))throw new Error("Unclosed tag at "+L.pos);if(N=[E,I,k,L.pos],y.push(N),"#"===E||"^"===E)c.push(N);else if("/"===E){if(!(T=c.pop()))throw new Error('Unopened section "'+I+'" at '+k);if(T[1]!==I)throw new Error('Unclosed section "'+T[1]+'" at '+k)}else"name"===E||"{"===E||"&"===E?v=!0:"="===E&&w(I)}if(T=c.pop())throw new Error('Unclosed section "'+T[1]+'" at '+L.pos);return function(t){for(var e,n=[],r=n,o=[],s=0,i=t.length;s<i;++s)switch((e=t[s])[0]){case"#":case"^":r.push(e),o.push(e),r=e[4]=[];break;case"/":o.pop()[5]=e[2],r=o.length>0?o[o.length-1][4]:n;break;default:r.push(e)}return n}(function(t){for(var e,n,r=[],o=0,s=t.length;o<s;++o)(e=t[o])&&("text"===e[0]&&n&&"text"===n[0]?(n[1]+=e[1],n[3]=e[3]):(r.push(e),n=e));return r}(y))}(e,r)),i},_.prototype.render=function(t,e,n){void 0!==e&&(e.__lang=function(){return function(t,e){return _Framework.__lang(e(t))}});var r=this.parse(t),o=e instanceof y?e:new y(e);return this.renderTokens(r,o,n,t)},_.prototype.renderTokens=function(t,e,n,r){for(var o,s,i,a="",l=0,c=t.length;l<c;++l)i=void 0,"#"===(s=(o=t[l])[0])?i=this.renderSection(o,e,n,r):"^"===s?i=this.renderInverted(o,e,n,r):">"===s?i=this.renderPartial(o,e,n,r):"&"===s?i=this.unescapedValue(o,e):"name"===s?i=this.escapedValue(o,e):"text"===s&&(i=this.rawValue(o)),void 0!==i&&(a+=i);return a},_.prototype.renderSection=function(t,e,o,s){var i=this,a="",l=e.lookup(t[1]);if(l){if(n(l))for(var c=0,u=l.length;c<u;++c)a+=this.renderTokens(t[4],e.push(l[c]),o,s);else if("object"==typeof l||"string"==typeof l||"number"==typeof l)a+=this.renderTokens(t[4],e.push(l),o,s);else if(r(l)){if("string"!=typeof s)throw new Error("Cannot use higher-order sections without the original template");null!=(l=l.call(e.view,s.slice(t[3],t[5]),(function(t){return i.render(t,e,o)})))&&(a+=l)}else a+=this.renderTokens(t[4],e,o,s);return a}},_.prototype.renderInverted=function(t,e,r,o){var s=e.lookup(t[1]);if(!s||n(s)&&0===s.length)return this.renderTokens(t[4],e,r,o)},_.prototype.renderPartial=function(t,e,n){if(n){var o=r(n)?n(t[1]):n[t[1]];return null!=o?this.renderTokens(this.parse(o),e,n,o):void 0}},_.prototype.unescapedValue=function(t,e){var n=e.lookup(t[1]);if(null!=n)return n},_.prototype.escapedValue=function(e,n){var r=n.lookup(e[1]);if(null!=r)return t.escape(r)},_.prototype.rawValue=function(t){return t[1]},t.name="mustache.js",t.version="2.3.2",t.tags=["{{","}}"];var m=new _;return t.clearCache=function(){return m.clearCache()},t.parse=function(t,e){return m.parse(t,e)},t.render=function(t,e,r){if("string"!=typeof t)throw new TypeError('Invalid template! Template should be a "string" but "'+((n(o=t)?"array":typeof o)+'" was given as the first argument for mustache#render(template, view, partials)'));var o;return m.render(t,e,r)},t.to_html=function(e,n,o,s){var i=t.render(e,n,o);if(!r(s))return i;s(i)},t.escape=function(t){return String(t).replace(/[&<>"'`=\/]/g,(function(t){return c[t]}))},t.Scanner=g,t.Context=y,t.Writer=_,t}));var XHR=function(t,e,n){return this.is_obsolete=!1,this.xhr_host="frontend",null!=n?(this.xhr_class=void 0!==e?e:null,this.xhr_function=void 0!==t?t:null,this.xhr_host=n+"\\models",this.obsolete=!0):(this.xhr_class=void 0!==t?t:null,this.xhr_function=void 0!==e?e:null),this.core=!1,this.method="POST",this.url="",this.response,this.status,this.headers=[],this.callbacks={},this};XHR.prototype.on=function(t,e){return this.callbacks[t]=e,this},XHR.prototype.callback=function(t){if(void 0!==this.callbacks&&void 0!==this.callbacks[t])return!0===this.is_obsolete?this.callbacks[t](this.status,this.response):this.callbacks[t](this.response,this.status)},XHR.prototype.setRequest=function(){if(this.request=new XMLHttpRequest,this.request.open(this.method,void 0!==this.url&&""!==this.url?this.url:window.location.origin+"/"+_Framework.hash),console.warn(this),null!==this.xhr_class&&this.request.setRequestHeader("XHR",Format.xhrEncode({function:this.xhr_function,class:this.xhr_class,host:this.xhr_host,backend:void 0!==_Framework&&!0===_Framework.is_backend,core:!0===this.core},4)),this.headers.length>0)for(var t=0;t<this.headers.length;++t){const e=this.headers[t];this.request.setRequestHeader(e.key,e.value)}},XHR.prototype.execute=XHR.prototype.run=function(t){let e=this;if(void 0!==this.onSuccess&&(this.is_obsolete=!0,this.on("success",this.onSuccess)),void 0!==this.onError&&(this.is_obsolete=!0,this.on("error",this.onError)),this.core=t||!1,this.setRequest(),1!==this.request.readyState&&4!==this.request.readyState)return!1;let n=null;return void 0!==e.data&&null!==e.data&&(n=e.data instanceof FormData?e.data:!1!==e.use_format?Format.xhrEncode(e.data):e.data),this.request.send(n),this.request.onreadystatechange=function(){if(3===e.request.readyState&&void 0!==e.onProgress&&e.onProgress(status),4===e.request.readyState)if(200===e.request.status)e.response=e.request.response,e.status=e.request.status,e.callback("success");else e.response=e.request.response,e.status=e.request.status,e.callback("error")},this},XHR.prototype.cancel=function(){return this.request.abort()},XHR.prototype.setFunction=function(t){return this.xhr_function=t,this},XHR.prototype.setModel=function(t){return this.xhr_class=t,this},XHR.prototype.setUrl=function(t){return this.url=t,this},XHR.prototype.setHost=function(t){return this.xhr_host=t,this},XHR.prototype.setData=function(t,e){return this.data=t,this.use_format=e,this},XHR.prototype.setMethod=function(t){return this.method=t,this},XHR.prototype.addHeader=function(t,e){return this.headers.push({key:t,value:e}),this};