UNPKG

@syncfusion/ej2-vue-navigations

Version:

A package of Essential JS 2 navigation components such as Tree-view, Tab, Toolbar, Context-menu, and Accordion which is used to navigate from one page to another for Vue

10 lines 1.01 MB
/*! * filename: ej2-vue-navigations.min.js * version : 18.3.51 * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing * licensing@syncfusion.com. Any infringement will be prosecuted under * applicable laws. */ var ej=function(e,t){"use strict";function i(e,t){var i=t;return i.unshift(void 0),new(Function.prototype.bind.apply(e,i))}function s(e){var t,i=new Uint16Array(5);(window.msCrypto||window.crypto).getRandomValues(i);var s="ej2"+function(e){for(var t="",i=0;i<5;i++)t+=(i?",":"")+e[i];return t}(i),n=function(i){i.source===window&&"string"==typeof i.data&&i.data.length<=32&&i.data===s&&(e(),t())};return window.addEventListener("message",n,!1),window.postMessage(s,"*"),t=function(){window.removeEventListener("message",n),e=n=s=void 0}}function n(e,t){for(var i=t,s=e.replace(/\[/g,".").replace(/\]/g,"").split("."),n=0;n<s.length&&!d(i);n++)i=i[s[n]];return i}function r(e,t,i){var s,n,r=e.replace(/\[/g,".").replace(/\]/g,"").split("."),o=i||{},a=o,l=r.length;for(s=0;s<l;s++)n=r[s],s+1===l?a[n]=void 0===t?{}:t:c(a[n])&&(a[n]={}),a=a[n];return o}function o(e,t){delete e[t]}function a(e){return!c(e)&&e.constructor==={}.constructor}function l(e,t){if(!c(t))for(var i=e,s=t,n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];c(i.deepMerge)||-1===i.deepMerge.indexOf(o)||!a(s[o])&&!Array.isArray(s[o])?i[o]=s[o]:h(i[o],i[o],s[o],!0)}}function h(e,t,i,s){var n=e&&"object"==typeof e?e:{},r=arguments.length;s&&(r-=1);for(var o=function(e){if(!l[e])return"continue";var t=l[e];Object.keys(t).forEach(function(e){var i,r=n[e],o=t[e],l=Array.isArray(o)&&Array.isArray(r)&&o.length!==r.length,c=!v()||!(r instanceof Event||l);s&&c&&(a(o)||Array.isArray(o))?a(o)?(i=r||{},Array.isArray(i)&&i.hasOwnProperty("isComplexArray")?h(i,{},o,s):n[e]=h(i,{},o,s)):(i=v()?r&&Object.keys(o).length:r||[],n[e]=h([],i,o,s)):n[e]=o})},l=arguments,c=1;c<r;c++)o(c);return n}function c(e){return void 0===e||null===e}function d(e){return void 0===e}function p(e){return e+"_"+ci++}function u(e,t){var i;return function(){var s=this,n=arguments;clearTimeout(i),i=setTimeout(function(){return i=null,e.apply(s,n)},t)}}function m(e,t){var i=e;return i===t||!(i===document||!i)&&m(i.parentNode,t)}function f(e){try{throw new Error(e)}catch(e){throw e.message+"\n"+e.stack}}function g(e){var t=e+"";return t.match(/auto|%|px|vh|vm|vmax|vmin|em/)?t:t+"px"}function v(){return di}function y(e){return e instanceof Node||!v()||c(e.xPath)?e:document.evaluate(e.xPath,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}function b(e,t){var i="string"==typeof e?document.querySelector(e):e;if(i[hi])for(var s=0,n=i[hi];s<n.length;s++){var r=n[s];if(r instanceof t)return r}return null}function C(){if("undefined"!=typeof window){var e=new Uint16Array(5);return(window.msCrypto||window.crypto).getRandomValues(e)}}function S(e,t){var i=vi.getDependables(Hi,e,"",!0)[ji[0]],s=vi.getDependables(Hi,e,"")[ji[1]],r=n("defaultNumberingSystem",i),o=v()?n("numberSymbols",i):n("symbols-numberSystem-"+r,i),a=vi.getSymbolPattern(t||"decimal",r,i,!1);return h(o,vi.getFormatData(a,!0,"",!0),{dateSeparator:vi.getDateSeparator(s)})}function E(e,t){var i='var str="'+function(e,t,i){var s=0,n=[],r=e.match(/class="([^\"]+|)\s{2}/g),o="";r&&r.forEach(function(t){o=t.replace(/\s\s+/g," "),e=e.replace(t,o)});return e.replace(ss,"").replace(us,"'$1'").replace(fs,function(e,r,o,a){var l=r.match(cs);if(l){var h=l[1];if(os.test(r))r='";} '+r.replace(l[1],h.replace(ps,function(e){return e=e.trim(),x(e,!ns.test(e)&&-1===n.indexOf(e),t,n)}))+'{ \n str = str + "';else if(rs.test(r))r='"; '+r.replace(l[1],h.replace(ms,function(e){return L(e,t,n)}))+'{ \n str = str + "';else if(ls.test(r)){var c=l[1].split(" of ");r='"; '+r.replace(l[1],function(e){return n.push(c[0]),n.push(c[0]+"Index"),"var i"+(s+=1)+"=0; i"+s+" < "+x(c[1],!0,t,n)+".length; i"+s+"++"})+"{ \n "+c[0]+"= "+x(c[1],!0,t,n)+"[i"+s+"]; \n var "+c[0]+"Index=i"+s+'; \n str = str + "'}else{var d=r.split("("),p=i&&i.hasOwnProperty(d[0])?"this.":"global";p=/\./.test(d[0])?"":p;var u=l[1].split(",");0===l[1].length||/data/.test(u[0])||/window./.test(u[0])||(l[1]="global"===p?t+"."+l[1]:l[1]);if(Cs.test(r)&&/\]\./gm.test(r)||/\@|\$|\#/gm.test(r)){/\@|\$|\#|\]\./gm.test(r)&&(r='"+ '+("global"===p?"":p)+r.replace(l[1],h.replace(bs,function(e){return L(e,t,n)}))+'+ "')}else r='" + '+("global"===p?"":p)+r.replace(h,x(l[1].replace(/,( |)data.|,/gi,","+t+".").replace(/,( |)data.window/gi,",window"),"global"!==p,t,n))+'+"'}}else as.test(r)?r='"; '+r.replace(as,'} else { \n str = str + "'):r.match(hs)?r=r.replace(hs,'"; \n } \n str = str + "'):/\@|\#|\$/gm.test(r)?(r.match(vs)&&(r=k(r)),r='"+'+w(r,-1===n.indexOf(r),t,n)+'"]+"'):r=r.match(vs)?'"+'+w(r=k(r),-1===n.indexOf(r),t,n)+'"]+"':'"+'+x(r.replace(/\,/gi,"+"+t+"."),-1===n.indexOf(r),t,n)+'+"';return r})}(e,"data",t)+'"; return str;';return new Function("data",i).bind(t)}function x(e,t,i,s){return t&&!ds.test(e)&&-1===s.indexOf(e.split(".")[0])?i+"."+e:e}function w(e,t,i,s){return t&&!ds.test(e)&&-1===s.indexOf(e.split(".")[0])?i+'["'+e:e}function k(e){return e=e.match(ys)?e:e.replace(vs,"\\\\")}function L(e,t,i){e=e.trim();if(/\window\./gm.test(e))return e;var s=/'|"/gm;return/\@|\$|\#/gm.test(e)&&(e=w(e,-1===i.indexOf(e),t,i)+'"]'),gs.test(e)?function(e,t,i,s){return!t||ds.test(e)||-1!==s.indexOf(e.split(".")[0])||/^\..*/gm.test(e)?e:i+"."+e}(e,!s.test(e)&&-1===i.indexOf(e),t,i):x(e,!s.test(e)&&-1===i.indexOf(e),t,i)}function T(){return"-"+Math.random().toString(36).substr(2,5)}function O(e,t){var i=ws.compile(e,t);return function(e,t,s,n,r,o,a){var l=i(e,t,s,a),h="BlazorTemplateId";if(v()&&!r){var d=n+T();if(xs[n]||(xs[n]=[]),c(o))e[h]=d,xs[n].push(e);else for(var p=0,u=Object.keys(xs[n][o]);p<u.length;p++){var m=u[p];m!==h&&e[m]&&(xs[n][o][m]=e[m]),m===h&&(d=xs[n][o][m])}return"rowTemplate"===s?[R("tr",{id:d,className:"e-blazor-template"})]:[R("div",{id:d,className:"e-blazor-template"})]}if("string"==typeof l){if(Es.test(l)){return R("svg",{innerHTML:l}).childNodes}return R(Ss.test(l)?"table":"div",{innerHTML:l}).childNodes}return l}}function A(e,t,i,s,n){if(v()){window.sfBlazor.updateTemplate(t,xs[e],e,i,n),!1!==s&&(xs[e]=[])}}function I(e,t,i){var s=document.getElementById(e);if(s)for(var n=s.getElementsByClassName("blazor-inner-template"),r=0;r<n.length;r++){var o=" ";o=c(i)?n[r].getAttribute("data-templateId"):n[i].getAttribute("data-templateId");var a=document.getElementById(o);if(a)for(var l=a.childNodes.length,h=0;h<l;h++)c(i)?n[r].appendChild(a.childNodes[0]):(n[i].appendChild(a.childNodes[0]),r=n.length)}}function P(e){ws.compile=e.compile}function D(){return ws.compile}function R(e,t){var i=Vs.test(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return void 0===t?i:(i.innerHTML=t.innerHTML?t.innerHTML:"",void 0!==t.className&&(i.className=t.className),void 0!==t.id&&(i.id=t.id),void 0!==t.styles&&i.setAttribute("style",t.styles),void 0!==t.attrs&&U(i,t.attrs),i)}function N(e,t){for(var i=H(t),s=0,o=e;s<o.length;s++)for(var l=o[s],h=0,d=i;h<d.length;h++){var p=d[h];if(a(l)){var u=n("attributes.className",l);c(u)?r("attributes.className",p,l):new RegExp("\\b"+p+"\\b","i").test(u)||r("attributes.className",u+" "+p,l)}else l.classList.contains(p)||l.classList.add(p)}return e}function M(e,t){for(var i=H(t),s=0,o=e;s<o.length;s++){var l=o[s],h=a(l);if(h?n("attributes.className",l):""!==l.className)for(var c=0,d=i;c<d.length;c++){var p=d[c];if(h){var u=n("attributes.className",l).split(" "),m=u.indexOf(p);-1!==m&&u.splice(m,1),r("attributes.className",u.join(" "),l)}else l.classList.remove(p)}}return e}function H(e){var t=[];return"string"==typeof e?t.push(e):t=e,t}function B(e){var t=e;return""===t.style.visibility&&t.offsetWidth>0}function F(e,t,i){if(a(t))es.prepend(e,t);else{for(var s=document.createDocumentFragment(),n=0,r=e;n<r.length;n++){var o=r[n];s.appendChild(o)}t.insertBefore(s,t.firstElementChild),i&&z(t)}return e}function j(e,t,i){if(a(t))es.append(e,t);else{for(var s=document.createDocumentFragment(),n=0,r=e;n<r.length;n++){var o=r[n];s.appendChild(o)}t.appendChild(s),i&&z(t)}return e}function z(e){e.querySelectorAll("script").forEach(function(e){var t=document.createElement("script");t.text=e.innerHTML,document.head.appendChild(t),q(t)})}function q(e){if(a(e))return es.detach(e);var t=e.parentNode;return t?t.removeChild(e):void 0}function V(e){if(a(e))es.detach(e);else{var t=e.parentNode;is.clearEvents(e),t.removeChild(e)}}function U(e,t){for(var i=e,s=0,n=Object.keys(t);s<n.length;s++){var r=n[s];if(a(i)){var o=r;"tabindex"===r&&(o="tabIndex"),i.attributes[o]=t[r]}else i.setAttribute(r,t[r])}return i}function W(e,t,i){return void 0===t&&(t=document),a(t)&&i?es.vDomSelector({ele:t,selector:e,selectAll:!1}):(e=Y(e),t.querySelector(e))}function _(e,t,i){if(void 0===t&&(t=document),a(t)&&!i)return es.vDomSelector({ele:t,selector:e,selectAll:!0});e=Y(e);return t.querySelectorAll(e)}function Y(e){if(e.match(/#[0-9]/g)){for(var t=e.split(","),i=0;i<t.length;i++){for(var s=t[i].split(" "),n=0;n<s.length;n++)if(s[n].match(/#/)){s[n].split("#")[1].match(/^\d/)&&(s[n]=s[n].replace(/#/,"[id='")+"']")}t[i]=s.join(" ")}return t.join(",")}return e}function X(e,t){var i=e;if("function"==typeof i.closest)return i.closest(t);for(;i&&1===i.nodeType;){if(J(i,t))return i;i=i.parentNode}return null}function G(e,t){void 0!==t&&(a(e)?es.setStyleAttribute(e,t):Object.keys(t).forEach(function(i){e.style[i]=t[i]}))}function K(e,t,i){N([e],t),M([e],i)}function J(e,t){var i=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return i?i.call(e,t):-1!==[].indexOf.call(document.querySelectorAll(t),e)}function $(e,t){var i,s,n="string"==typeof e?document.getElementById(e):e;for(s=0;s<n.ej2_instances.length;s++)if(i=n.ej2_instances[s],"string"==typeof t){if(t===i.getModuleName())return i}else if(i instanceof t)return i}function Z(e,t,s,n){return e.properties.hasOwnProperty(t)&&e.properties[t]instanceof n||(e.properties[t]=i(n,[e,t,s])),e.properties[t]}function Q(e,t,s,n,r,o){for(var a=[],l=s?s.length:0,h=0;h<l;h++){var c=n;if(o&&(c=n(s[h],e)),r){var d=i(c,[e,t,{},!0]);d.setProperties(s[h],!0),a.push(d)}else a.push(i(c,[e,t,s[h],!1]))}return a}function ee(e,t){return function(){return this.properties.hasOwnProperty(t)||(this.properties[t]=e),this.properties[t]}}function te(e,t,i){return function(){var s=this;if(!this.properties.hasOwnProperty(t)){var n=Q(this,t,e,i,!1);this.properties[t]=n}var r=void 0!==this.controlParent&&this.controlParent.ignoreCollectionWatch||this.ignoreCollectionWatch;return this.properties[t].hasOwnProperty("push")||r||["push","pop"].forEach(function(e){var i={value:function(e,t,i,s){return function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var r=this.propName?this.getParentKey()+"."+t+"-":t+"-";switch(e){case"push":for(var o=0;o<i.length;o++){Array.prototype[e].apply(s,[i[o]]);var a=ie(r+(s.length-1),i[o],!this.controlParent,e);this.serverDataBind(a,i[o],!1,e)}break;case"pop":Array.prototype[e].apply(s);var l=ie(r+s.length,null,!this.controlParent,e);this.serverDataBind(l,{ejsAction:"pop"},!1,e)}return s}}(e,t,0,s.properties[t]).bind(s),configurable:!0};Object.defineProperty(s.properties[t],e,i)}),this.properties[t].hasOwnProperty("isComplexArray")||Object.defineProperty(this.properties[t],"isComplexArray",{value:!0}),this.properties[t]}}function ie(e,t,i,s){var n=e;if(i&&(n={},n[e]=t,t&&"object"==typeof t)){n[e].ejsAction=s}return n}function se(e){return function(t,i){var s={set:function(e,t){return function(i){if(this.properties[t]!==i){var s=this.properties.hasOwnProperty(t)?this.properties[t]:e;this.saveChanges(t,i,s),this.properties[t]=i}}}(e,i),get:ee(e,i),enumerable:!0,configurable:!0};Object.defineProperty(t,i,s),le(t,i,"prop",e)}}function ne(e,t){return function(i,s){var n={set:function(e,t,i){return function(s){Z(this,t,e,i).setProperties(s)}}(e,s,t),get:function(e,t,i){return function(){return Z(this,t,e,i)}}(e,s,t),enumerable:!0,configurable:!0};Object.defineProperty(i,s,n),le(i,s,"complexProp",e,t)}}function re(e,t){return function(i,s){var n={set:function(e,t,i){return function(s){this.isComplexArraySetter=!0;var n=Q(this,t,e,i,!1),r=Q(this,t,s,i,!0);this.isComplexArraySetter=!1,this.saveChanges(t,r,n),this.properties[t]=r}}(e,s,t),get:te(e,s,t),enumerable:!0,configurable:!0};Object.defineProperty(i,s,n),le(i,s,"colProp",e,t)}}function oe(){return function(e,t){var i={set:function(e){var i=this.properties[t];if(i!==e){var s=ce(this,t);!1===d(i)&&s.context.removeEventListener(s.prefix,i),s.context.addEventListener(s.prefix,e),this.properties[t]=e}},get:ee(void 0,t),enumerable:!0,configurable:!0};Object.defineProperty(e,t,i),le(e,t,"event")}}function ae(e){}function le(e,t,i,s,n){d(e.propList)&&(e.propList={props:[],complexProps:[],colProps:[],events:[],propNames:[],complexPropNames:[],colPropNames:[],eventNames:[]}),e.propList[i+"s"].push({propertyName:t,defaultValue:s,type:n}),e.propList[i+"Names"].push(t)}function he(e){if(d(e.prototype.builderObject)){e.prototype.builderObject={properties:{},propCollections:[],add:function(){this.isPropertyArray=!0,this.propCollections.push(h({},this.properties,{}))}};for(var t=/complex/,i=0,s=Object.keys(e.prototype.propList);i<s.length;i++)for(var n=s[i],r=function(i){t.test(n)?e.prototype.builderObject[i.propertyName]=function(e){var t={};l(t,he(i.type)),e(t);var s;return s=t.isPropertyArray?t.propCollections:h({},t.properties,{}),this.properties[i.propertyName]=s,t.properties={},t.propCollections=[],t.isPropertyArray=!1,this}:e.prototype.builderObject[i.propertyName]=function(e){return this.properties[i.propertyName]=e,this}},o=0,a=e.prototype.propList[n];o<a.length;o++){r(a[o])}}return e.prototype.builderObject}function ce(e,t){if(!1===e.hasOwnProperty("parentObj"))return{context:e,prefix:t};var i=n("propName",e);return i&&(t=i+"-"+t),ce(n("parentObj",e),t)}function de(e,t,i){var s=function(e){return{selector:e&&e.selector?e.selector:null,ignore:e&&e.ignore?e.ignore:null,rippleFlag:e&&e.rippleFlag,isCenterRipple:e&&e.isCenterRipple,duration:e&&e.duration?e.duration:350}}(t);return!1===s.rippleFlag||void 0===s.rippleFlag&&!Gs?Function:(e.setAttribute("data-ripple","true"),is.add(e,"mousedown",pe,{parent:e,rippleOptions:s}),is.add(e,"mouseup",ue,{parent:e,rippleOptions:s,done:i}),is.add(e,"mouseleave",me,{parent:e,rippleOptions:s}),ts.isPointer&&is.add(e,"transitionend",me,{parent:e,rippleOptions:s}),function(){e.removeAttribute("data-ripple"),is.remove(e,"mousedown",pe),is.remove(e,"mouseup",ue),is.remove(e,"mouseleave",me),is.remove(e,"transitionend",me)})}function pe(e){var t=e.target,i=this.rippleOptions.selector,s=i?X(t,i):t;if(!(!s||this.rippleOptions&&X(t,this.rippleOptions.ignore))){var n=s.getBoundingClientRect(),r=e.pageX-document.body.scrollLeft,o=e.pageY-(!document.body.scrollTop&&document.documentElement?document.documentElement.scrollTop:document.body.scrollTop),a=Math.max(Math.abs(r-n.left),Math.abs(r-n.right)),l=Math.max(Math.abs(o-n.top),Math.abs(o-n.bottom)),h=Math.sqrt(a*a+l*l),c=2*h+"px",d=r-n.left-h,p=o-n.top-h;this.rippleOptions&&this.rippleOptions.isCenterRipple&&(d=0,p=0,c="100%"),s.classList.add("e-ripple");var u=R("div",{className:"e-ripple-element",styles:"width: "+c+";height: "+c+";left: "+d+"px;top: "+p+"px;transition-duration: "+this.rippleOptions.duration.toString()+"ms;"});s.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)",s!==this.parent&&is.add(s,"mouseleave",me,{parent:this.parent,rippleOptions:this.rippleOptions})}}function ue(e){fe(e,this)}function me(e){fe(e,this)}function fe(e,t){var i=t.rippleOptions.duration,s=e.target,n=t.rippleOptions.selector,r=n?X(s,n):s;if(r&&(!r||-1!==r.className.indexOf("e-ripple"))){var o=_(".e-ripple-element",r),a=o[o.length-1];a&&(a.style.opacity="0.5"),t.parent!==r&&is.remove(r,"mouseleave",me),setTimeout(function(){a&&a.parentNode&&a.parentNode.removeChild(a),r.getElementsByClassName("e-ripple-element").length||r.classList.remove("e-ripple"),t.done&&t.done(e)},i)}}function ge(e,t){function i(){this.constructor=e}for(var s in t)t.hasOwnProperty(s)&&(e[s]=t[s]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}function ve(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}function ye(e,t,i,s,n,r){var o,a;if("vscroll"===s?(o=r||t.offsetHeight,a=i.offsetHeight):(o=t.offsetWidth,a=i.offsetWidth),o<a){var l=e("div",{className:"e-menu-"+s});t.appendChild(l),l.appendChild(i),r?(l.style.overflow="hidden",l.style.height=r+"px"):(l.style.maxHeight=t.style.maxHeight,t.style.overflow="hidden");return"vscroll"===s?new Qn({enableRtl:n},l).scrollStep=W(".e-"+s+"-bar",t).offsetHeight/2:new qn({enableRtl:n},l).scrollStep=W(".e-"+s+"-bar",t).offsetWidth,l}return i}function be(e,t,i){if(e){var s=W(".e-menu-parent",t);s?i&&i!==s||(e.destroy(),t.parentElement.appendChild(s),q(t)):(e.destroy(),q(t))}}function Ce(e,t,i,s,a,l){var h=s;if(s.tagName===t){var c=n("ej2_instances",s);h=e("input",{attrs:{type:i}});for(var d=["change","cssClass","label","labelPosition","id"],p=0,u=s.attributes.length;p<u;p++)-1===d.indexOf(s.attributes[p].nodeName)&&h.setAttribute(s.attributes[p].nodeName,s.attributes[p].nodeValue);U(s,{class:a,role:l,"aria-checked":"false"}),s.appendChild(h),r("ej2_instances",c,h),o(s,"ej2_instances")}return h}function Se(e){for(var t,i=e.childNodes,s=0;s<i.length;s++)if(3===(t=i[s]).nodeType)return t;return null}function Ee(e,t,i){void 0===t&&(t=!1),void 0===i&&(i={});var s=e("div",{className:"e-checkbox-wrapper e-css"});if(i.cssClass&&N([s],i.cssClass.split(" ")),i.enableRtl&&s.classList.add("e-rtl"),t){var n=e("span",{className:"e-ripple-container"});de(n,{isCenterRipple:!0,duration:400}),s.appendChild(n)}var r=e("span",{className:"e-frame e-icons"});if(i.checked&&r.classList.add("e-check"),s.appendChild(r),i.label){var o=e("span",{className:"e-label",innerHTML:i.label});s.appendChild(o)}return s}function xe(e,t){if(t){var i=document.createEvent("MouseEvents");i.initEvent(e.type,!1,!0),t.dispatchEvent(i)}}function we(e,t){e.element.getAttribute("ejs-for")&&t.appendChild(e.createElement("input",{attrs:{name:e.name||e.element.name,value:"false",type:"hidden"}}))}function ke(e,t){var i={};if(c(e)||"string"==typeof e||"number"==typeof e||!c(e.isHeader))return e;for(var s=0,r=Object.keys(t);s<r.length;s++){var o=t[r[s]],a=c(o)||"string"!=typeof o?void 0:n(o,e);c(a)||(i[o]=a)}return i}function Le(e,t,i,s,n){if(Wr=i+t==="topright"?void 0:n,Wr=n,vo=!!s,!e)return{left:0,top:0};t||(t="left"),i||(i="top"),Yr=e.ownerDocument,_r=e;return function(e,t,i){switch(Ur=_r.getBoundingClientRect(),t+e){case"topcenter":Te(He(),i),Oe(Re(),i);break;case"topright":Te(Me(),i),Oe(Re(),i);break;case"centercenter":Te(He(),i),Oe(De(),i);break;case"centerright":Te(Me(),i),Oe(De(),i);break;case"centerleft":Te(Ne(),i),Oe(De(),i);break;case"bottomcenter":Te(He(),i),Oe(Pe(),i);break;case"bottomright":Te(Me(),i),Oe(Pe(),i);break;case"bottomleft":Te(Ne(),i),Oe(Pe(),i);break;default:case"topleft":Te(Ne(),i),Oe(Re(),i)}return i}(t.toLowerCase(),i.toLowerCase(),{left:0,top:0})}function Te(e,t){t.left=e}function Oe(e,t){t.top=e}function Ae(){return Yr.documentElement.scrollTop||Yr.body.scrollTop}function Ie(){return Yr.documentElement.scrollLeft||Yr.body.scrollLeft}function Pe(){return vo?Ur.bottom:Ur.bottom+Ae()}function De(){return Re()+Ur.height/2}function Re(){return vo?Ur.top:Ur.top+Ae()}function Ne(){return Ur.left+Ie()}function Me(){return Ur.right+Ie()-(Wr?Wr.width:0)}function He(){return Ne()+Ur.width/2}function Be(e,t,i,s){if(void 0===t&&(t=null),void 0===i&&(i={X:!1,Y:!1}),!i.Y&&!i.X)return{left:0,top:0};var n=e.getBoundingClientRect();if(Gr=t,Xr=e.ownerDocument,s||(s=Le(e,"left","top")),i.X){var r=Gr?_e():it(),o=Je(),a=$e(),l=o-s.left,h=s.left+n.width-a;n.width>r?s.left=l>0&&h<=0?a-n.width:h>0&&l<=0?o:l>h?a-n.width:o:l>0?s.left+=l:h>0&&(s.left-=h)}if(i.Y){var c=Gr?Ye():tt(),d=Ke(),p=Ze(),u=d-s.top,m=s.top+n.height-p;n.height>c?s.top=u>0&&m<=0?p-n.height:m>0&&u<=0?d:u>m?p-n.height:d:u>0?s.top+=u:m>0&&(s.top-=m)}return s}function Fe(e,t,i,s){void 0===t&&(t=null);var n=Le(e,"left","top");i&&(n.left=i),s&&(n.top=s);var r=[];Gr=t,Xr=e.ownerDocument;var o=e.getBoundingClientRect(),a=n.top,l=n.left,h=n.left+o.width,c=We(a,n.top+o.height),d=qe(l,h);return c.topSide&&r.push("top"),d.rightSide&&r.push("right"),d.leftSide&&r.push("left"),c.bottomSide&&r.push("bottom"),r}function je(e,t,i,s,n,r,o,a,l){if(void 0===o&&(o=null),void 0===a&&(a={X:!0,Y:!0}),t&&e&&n&&r&&(a.X||a.Y)){var h={TL:null,TR:null,BL:null,BR:null},c={TL:null,TR:null,BL:null,BR:null},d=e.getBoundingClientRect(),p={posX:n,posY:r,offsetX:i,offsetY:s,position:{left:0,top:0}};Gr=o,Xr=t.ownerDocument,function(e,t,i,s,n){i.position=Le(e,i.posX,i.posY,s,n),t.TL=Le(e,"left","top",s,n),t.TR=Le(e,"right","top",s,n),t.BR=Le(e,"left","bottom",s,n),t.BL=Le(e,"right","bottom",s,n)}(t,h,p,l,d),ze(c,p,d),a.X&&Ve(t,c,h,p,d,!0),a.Y&&h.TL.top>-1&&Ue(t,c,h,p,d,!0),function(e,t,i){var s=0,n=0;if(null!=e.offsetParent&&("absolute"===getComputedStyle(e.offsetParent).position||"relative"===getComputedStyle(e.offsetParent).position)){var r=Le(e.offsetParent,"left","top",!1,i);s=r.left,n=r.top}e.style.top=t.position.top+t.offsetY-n+"px",e.style.left=t.position.left+t.offsetX-s+"px"}(e,p,d)}}function ze(e,t,i){e.TL={top:t.position.top+t.offsetY,left:t.position.left+t.offsetX},e.TR={top:e.TL.top,left:e.TL.left+i.width},e.BL={top:e.TL.top+i.height,left:e.TL.left},e.BR={top:e.TL.top+i.height,left:e.TL.left+i.width}}function qe(e,t){var i=!1,s=!1;return e-et()<Je()&&(i=!0),t>$e()&&(s=!0),{leftSide:i,rightSide:s}}function Ve(e,t,i,s,n,r){var o=qe(t.TL.left,t.TR.left);i.TL.left-et()<=Je()&&(o.leftSide=!1),i.TR.left>=$e()&&(o.rightSide=!1),(o.leftSide&&!o.rightSide||!o.leftSide&&o.rightSide)&&("right"===s.posX?s.posX="left":s.posX="right",s.offsetX=s.offsetX+n.width,s.offsetX=-1*s.offsetX,s.position=Le(e,s.posX,s.posY,!1),ze(t,s,n),r&&Ve(e,t,i,s,n,!1))}function Ue(e,t,i,s,n,r){var o=We(t.TL.top,t.BL.top);i.TL.top-Qe()<=Ke()&&(o.topSide=!1),i.BL.top>=Ze()&&(o.bottomSide=!1),(o.topSide&&!o.bottomSide||!o.topSide&&o.bottomSide)&&("top"===s.posY?s.posY="bottom":s.posY="top",s.offsetY=s.offsetY+n.height,s.offsetY=-1*s.offsetY,s.position=Le(e,s.posX,s.posY,!1,n),ze(t,s,n),r&&Ue(e,t,i,s,n,!1))}function We(e,t){var i=!1,s=!1;return e-Qe()<Ke()&&(i=!0),t>Ze()&&(s=!0),{topSide:i,bottomSide:s}}function _e(){return Gr.getBoundingClientRect().width}function Ye(){return Gr.getBoundingClientRect().height}function Xe(){return Gr.getBoundingClientRect().left}function Ge(){return Gr.getBoundingClientRect().top}function Ke(){return Gr?Ge():0}function Je(){return Gr?Xe():0}function $e(){return Gr?et()+Xe()+_e():et()+it()}function Ze(){return Gr?Qe()+Ge()+Ye():Qe()+tt()}function Qe(){return Xr.documentElement.scrollTop||Xr.body.scrollTop}function et(){return Xr.documentElement.scrollLeft||Xr.body.scrollLeft}function tt(){return window.innerHeight}function it(){var e=window.innerWidth;return e-(e-(c(document.documentElement)?0:document.documentElement.offsetWidth))}function st(e,t){for(var i=getComputedStyle(e),s=[],n=/(auto|scroll)/,r=e.parentElement;r&&"HTML"!==r.tagName;){var o=getComputedStyle(r);"absolute"===i.position&&"static"===o.position||!n.test(o.overflow+o.overflowY+o.overflowX)||s.push(r),r=r.parentElement}return t||s.push(document),s}function nt(e){for(var t=e.parentElement,i=[];t&&"BODY"!==t.tagName;){var s=document.defaultView.getComputedStyle(t,null).getPropertyValue("z-index"),n=document.defaultView.getComputedStyle(t,null).getPropertyValue("position");"auto"!==s&&"static"!==n&&i.push(s),t=t.parentElement}for(var r=[],o=0;o<document.body.children.length;o++)if(!e.isEqualNode(document.body.children[o])){s=document.defaultView.getComputedStyle(document.body.children[o],null).getPropertyValue("z-index"),n=document.defaultView.getComputedStyle(document.body.children[o],null).getPropertyValue("position");"auto"!==s&&"static"!==n&&r.push(s)}r.push("999");var a=[];if(!c(e.parentElement)&&"BODY"!==e.parentElement.tagName){var l=[].slice.call(e.parentElement.children);for(o=0;o<l.length;o++){s=document.defaultView.getComputedStyle(l[o],null).getPropertyValue("z-index"),n=document.defaultView.getComputedStyle(l[o],null).getPropertyValue("position");"auto"!==s&&"static"!==n&&a.push(s)}}var h=i.concat(r,a),d=Math.max.apply(Math,h)+1;return d>2147483647?2147483647:d}function rt(e){var t;return c(e)||(t="string"==typeof e?document.querySelector(e):e),t}function ot(e){c(e)&&(e=this);for(var t=Kr.querySelectorAll("."+Ro),i=0;i<t.length;i++){Jr=t[i],is.add(Jr,"mousedown",lt,e);var s="msie"===ts.info.name?"pointerdown":"touchstart";is.add(Jr,s,dt,e)}}function at(e){return e.indexOf("mouse")>-1?"mouse":"touch"}function lt(e){if(e.preventDefault(),Kr=e.target.parentElement,ct(),Po=e.pageX,Do=e.pageY,e.target.classList.add(No),c(Bo)||(so=this,!0!==Bo(e,so))){var t=c(to)?document:to;is.add(t,"mousemove",pt,this),is.add(document,"mouseup",ht,this);for(var i=0;i<Mo.length;i++)zo=!Kr.classList.contains(Mo[i])}}function ht(e){var t="msie"===ts.info.name?"pointermove":"touchmove",i="msie"===ts.info.name?"pointerup":"touchend",s=c(to)?document:to;is.remove(s,"mousemove",pt),is.remove(s,t,pt);var n="msie"===ts.info.name?"pointerdown":"touchstart";is.remove(s,n,pt),c(document.body.querySelector("."+No))||document.body.querySelector("."+No).classList.remove(No),c(jo)||jo(e,so=this),is.remove(document,"mouseup",ht),is.remove(document,i,ht)}function ct(){To=parseFloat(getComputedStyle(Kr,null).getPropertyValue("width").replace("px","")),Oo=parseFloat(getComputedStyle(Kr,null).getPropertyValue("height").replace("px","")),Ao=Kr.getBoundingClientRect().left,Io=Kr.getBoundingClientRect().top}function dt(e){Kr=e.target.parentElement,ct();var t=e.touches?e.changedTouches[0]:e;if(Po=t.pageX,Do=t.pageY,c(Bo)||(so=this,!0!==Bo(e,so))){var i="msie"===ts.info.name?"pointermove":"touchmove",s="msie"===ts.info.name?"pointerup":"touchend",n=c(to)?document:to;is.add(n,i,pt,this),is.add(document,s,ht)}}function pt(e){if(e.target.classList.contains(Ro)&&e.target.classList.contains(No)?Jr=e.target:c(document.body.querySelector("."+No))||(Jr=document.body.querySelector("."+No)),!c(Jr)){for(var t="",i=0;i<Lo.length;i++)Jr.classList.contains("e-"+Lo[i])&&(t=Lo[i]);switch(c(Fo)||Fo(e,so=this),t){case"south":mt(e);break;case"north":ft(e);break;case"west":gt(e);break;case"east":vt(e);break;case"south-east":mt(e),vt(e);break;case"south-west":mt(e),gt(e);break;case"north-east":ft(e),vt(e);break;case"north-west":ft(e),gt(e)}}}function ut(e){return e.getBoundingClientRect()}function mt(e){var t,i=document.documentElement.clientHeight,s=!1,n=(e.touches?e.changedTouches[0]:e).pageY,r=ut(Kr);c(to)||(t=ut(to)),c(to)?c(to)&&(i-n>=0||r.top<0)&&(s=!0):s=!0;var o=Oo+(n-Do);o=o>$r?o:$r;var a=0;c(to)||(a=t.top);var l=c(to)?0:to.offsetHeight-to.clientHeight,h=r.top-a-l/2;if(h=h<0?0:h,r.top>0&&h+o>Zr){if(s=!1,Kr.classList.contains(Ho))return;Kr.style.height=Zr-parseInt(h.toString(),10)+"px"}else{var d=0;if(s){r.top<0&&i+(r.height+r.top)>0&&o+(d=r.top)<=30&&(o=r.height-(r.height+r.top)+30),o+r.top>=Zr&&(Kr.style.height=r.height+(i-(r.height+r.top))+"px");var p=c(to)?d:h;o>=$r&&o+p<=Zr&&(Kr.style.height=o+"px")}}}function ft(e){var t,i=!1,s="mouse"===at(e.type)?e.pageY:e.touches[0].pageY,n=ut(Kr);c(to)||(t=ut(to)),!c(to)&&n.top-t.top>0?i=!0:c(to)&&s>0&&(i=!0);var r=Oo-(s-Do);if(ut(Kr).bottom+r>Zr&&(i=!1,Kr.style.height=Zr-ut(Kr).bottom+"px"),i&&r>=$r&&r<=Zr){var o=0;c(to)||(o=t.top);var a=Io-o+(s-Do);a=a>0?a:1,Kr.style.height=r+"px",Kr.style.top=a+"px"}}function gt(e){var t,i=document.documentElement.clientWidth,s=!1;c(to)||(t=ut(to));var n="mouse"===at(e.type)?e.pageX:e.touches[0].pageX,r=ut(Kr),o=c(to)?0:to.offsetWidth-to.clientWidth,a=c(to)?0:t.left,l=c(to)?0:t.width;c(io)&&(c(to)?io=i:(io=r.left-a-o/2+r.width,io+=l-o-io)),!c(to)&&r.left-t.left+r.width+(t.right-r.right)-o<=eo?s=!0:c(to)&&n>=0&&(s=!0);var h=To-(n-Po);if(zo&&(h=h>io?io:h),s&&h>=Qr&&h<=eo){var d=0;c(to)||(d=t.left);var p=Ao-d+(n-Po);p=p>0?p:1,h!==qo&&Vo&&(Kr.style.width=h+"px"),zo&&(Kr.style.left=p+"px",Vo=1!==p)}qo=h}function vt(e){var t,i=document.documentElement.clientWidth,s=!1;c(to)||(t=ut(to));var n=(e.touches?e.changedTouches[0]:e).pageX,r=ut(Kr);!c(to)&&(r.left-t.left+r.width<eo||r.right-t.left>r.width)?s=!0:c(to)&&i-n>0&&(s=!0);var o=To+(n-Po),a=0;if(c(to)||(a=t.left),r.left-a+o>eo){if(s=!1,Kr.classList.contains(Ho))return;Kr.style.width=eo-(r.left-a)+"px"}s&&o>=Qr&&o<=eo&&(Kr.style.width=o+"px")}function yt(){for(var e=Kr.querySelectorAll("."+Ro),t=0;t<e.length;t++)q(e[t])}function bt(e,t){if(e.target){var i,s=c(t)?R:t,n=function(e,t){var i=t("div",{});i.classList.add(Ba);var s=t("div",{});return s.classList.add(Fa),e.appendChild(i),i.appendChild(s),{wrap:i,inner_wrap:s}}(e.target,s);if(c(e.cssClass)||n.wrap.classList.add(e.cssClass),c(e.template)&&c(wa)){var r=c(e.type)?function(e){return window.getComputedStyle(e,":after").getPropertyValue("content").replace(/['"]+/g,"")}(n.wrap):e.type;i=function(e,t){var i;switch(t){case"Material":i=La;break;case"Fabric":i=Ta;break;case"Bootstrap4":i=Aa;break;default:i=Oa}return e=e?parseFloat(e+""):i,"Bootstrap"===t?e:e/2}(c(e.width)?void 0:e.width,r),function(e,t,i,s){var n=t.querySelector("."+Fa),r=n.querySelector("svg");c(r)||n.removeChild(r);switch(e){case"Material":!function(e,t,i){var s=St();xa[s]={timeOut:0,type:"Material",radius:t},xt(e,s,i,Da),kt(t,e,"Material",Da)}(n,i,s);break;case"Fabric":!function(e,t,i){var s=St();xa[s]={timeOut:0,type:"Fabric",radius:t},Et(e,s,Ra,i),At(t,e,Ra)}(n,i,s);break;case"Bootstrap":!function(e,t,i){var s=St();xa[s]={timeOut:0,type:"Bootstrap",radius:t},function(e,t,i){var s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttribute("id",t),s.setAttribute("class",Na),s.setAttribute("viewBox","0 0 64 64"),e.insertBefore(s,e.firstChild);for(var n=0;n<=7;n++){var r=document.createElementNS("http://www.w3.org/2000/svg","circle");r.setAttribute("class",ja+"_"+n),r.setAttribute("r","2"),r.setAttribute("transform","translate(32,32)"),s.appendChild(r)}}(e,s),function(e,t){var i=e.querySelector("svg.e-spin-bootstrap");i.style.width=i.style.height=t+"px";for(var s=90,n=0;n<=7;n++){var r=It(0,0,24,s),o=i.querySelector("."+ja+"_"+n);o.setAttribute("cx",r.x+""),o.setAttribute("cy",r.y+""),s=s>=360?0:s,s+=45}}(e,t)}(n,i);break;case"HighContrast":!function(e,t,i){var s=St();xa[s]={timeOut:0,type:"HighContrast",radius:t},Et(e,s,Ha,i),At(t,e,Ha)}(n,i,s);break;case"Bootstrap4":!function(e,t,i){var s=St();xa[s]={timeOut:0,type:"Bootstrap4",radius:t},xt(e,s,i,Ma),kt(t,e,"Bootstrap4",Ma)}(n,i,s)}}(r,n.wrap,i,s),c(e.label)||function(e,t,i){var s=i("div",{});s.classList.add(qa),s.textContent=t,e.appendChild(s)}(n.inner_wrap,e.label,s)}else{var o=c(e.template)?wa:e.template;n.wrap.classList.add(Va),function(e,t,i){c(i)||e.classList.add(i);e.querySelector(".e-spinner-inner").innerHTML=t}(n.wrap,o,ka)}n.wrap.classList.add(Pa),n=null}}function Ct(e,t){function i(e){s.push(e),e===r&&1!==a||(e<=n&&e>1&&!o?e=parseFloat((e-.2).toFixed(2)):1===e?(e=7,e=parseFloat((e+.2).toFixed(2)),o=!0):e<8&&o?8===(e=parseFloat((e+.2).toFixed(2)))&&(o=!1):e<=8&&!o&&(e=parseFloat((e-.2).toFixed(2))),++a,i(e))}var s=[],n=e,r=t,o=!1,a=1;return i(n),s}function St(){for(var e="",t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=0;i<5;i++)e+=t.charAt(Math.floor(Math.random()*t.length));return e}function Et(e,t,i,s){var n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("id",t),n.setAttribute("class",i);var r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("class",ja);var o=document.createElementNS("http://www.w3.org/2000/svg","path");o.setAttribute("class",za),e.insertBefore(n,e.firstChild),n.appendChild(r),n.appendChild(o)}function xt(e,t,i,s){var n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class",s),n.setAttribute("id",t);var r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("class",ja),e.insertBefore(n,e.firstChild),n.appendChild(r)}function wt(e){!function(e,t,i,s,n,r,o){function a(t){var n=Math.max(0,Math.min((new Date).getTime()-h,s));!function(e,t){if(!c(t.querySelector("svg.e-spin-material"))&&!c(t.querySelector("svg.e-spin-material").querySelector("path.e-path-circle"))){var i=t.querySelector("svg.e-spin-material"),s=i.querySelector("path.e-path-circle");s.setAttribute("stroke-dashoffset",Tt(p,u,e,r)+""),s.setAttribute("transform","rotate("+m+" "+p/2+" "+p/2+")")}}(i(n,e,d,s),t.container),l===t.globalInfo[t.uniqueID].previousId&&n<s?xa[t.uniqueID].timeOut=setTimeout(a.bind(null,t),1):wt(t)}var l=++o.globalInfo[o.uniqueID].previousId,h=(new Date).getTime(),d=t-e,p=function(e){return parseFloat(e)}(2*o.globalInfo[o.uniqueID].radius+""),u=Lt(p),m=-90*(o.globalInfo[o.uniqueID].count||0);a(o)}(1,149,Ot,1333,e.globalInfo[e.uniqueID].count,75,e),e.globalInfo[e.uniqueID].count=++e.globalInfo[e.uniqueID].count%4}function kt(e,t,i,s){var n=2*e,r=t.querySelector("svg."+s),o=r.querySelector("path.e-path-circle"),a=Lt(n),l=n/2+"px";r.setAttribute("viewBox","0 0 "+n+" "+n),r.style.width=r.style.height=n+"px",r.style.transformOrigin=l+" "+l+" "+l,o.setAttribute("d",function(e,t){var i=e/2,s=t/2;return"M"+i+","+s+"A"+(i-s)+","+(i-s)+" 0 1 1 "+s+","+i}(n,a)),"Material"===i&&(o.setAttribute("stroke-width",a+""),o.setAttribute("stroke-dasharray",(n-a)*Math.PI*.75+""),o.setAttribute("stroke-dashoffset",Tt(n,a,1,75)+""))}function Lt(e){return.1*e}function Tt(e,t,i,s){return(e-t)*Math.PI*(3*s/100-i/100)}function Ot(e,t,i,s){var n=(e/=s)*e,r=n*e;return t+i*(6*r*n+-15*n*n+10*r)}function At(e,t,i){var s=e,n=e,r=2*e,o=t.querySelector("."+i),a=o.querySelector(".e-path-circle"),l=o.querySelector(".e-path-arc"),h=r/2+"px";a.setAttribute("d",function(e,t,i){return["M",e,t,"m",-i,0,"a",i,i,0,1,0,2*i,0,"a",i,i,0,1,0,2*-i,0].join(" ")}(s,n,e)),l.setAttribute("d",function(e,t,i,s,n){var r=It(e,t,i,n),o=It(e,t,i,s);return["M",r.x,r.y,"A",i,i,0,0,0,o.x,o.y].join(" ")}(s,n,e,315,45)),o.setAttribute("viewBox","0 0 "+r+" "+r),o.style.transformOrigin=h+" "+h+" "+h,o.style.width=o.style.height=r+"px"}function It(e,t,i,s){var n=(s-90)*Math.PI/180;return{x:e+i*Math.cos(n),y:t+i*Math.sin(n)}}function Pt(e){Dt(e,!1),e=null}function Dt(e,t){var i;if(e&&(i=e.classList.contains(Ba)?e:e.querySelector("."+Ba)),e&&i){var s=i.querySelector("."+Fa);if(t?!i.classList.contains(Va)&&!i.classList.contains(Pa):!i.classList.contains(Va)&&!i.classList.contains(Ia)){var n=i.querySelector("svg");if(c(n))return;var r=n.getAttribute("id");switch(xa[r].isAnimate=!t,xa[r].type){case"Material":t?clearTimeout(xa[r].timeOut):function(e,t,i){var s={};xa[t].timeOut=0,s[t]=function(e,t,i,s){return{radius:t,count:i,previousId:s}}(0,i,0,0),wt({uniqueID:t,container:e,globalInfo:s,timeOutVar:0})}(s,r,xa[r].radius);break;case"Bootstrap":t?clearTimeout(xa[r].timeOut):function(e){for(var t=e.querySelector("svg.e-spin-bootstrap").getAttribute("id"),i=1;i<=8;i++)!function(e,t,i,s,n){function r(t){xa[n].isAnimate&&(++o,e.setAttribute("r",t+""),o>=s.length&&(o=0),xa[n].timeOut=setTimeout(r.bind(null,s[o]),18))}var o=0;r(t)}(e.getElementsByClassName("e-path-circle_"+(8===i?0:i))[0],i,0,Ct(i,i),t)}(s)}}t?K(i,[Pa],[Ia]):K(i,[Ia],[Pa]),e=null}}function Rt(e){Dt(e,!0),e=null}function Nt(){is.remove(this.element,"keydown",Yt),is.remove(this.element,"keypress",Kt),is.remove(this.element,"keyup",$t),is.remove(this.element,"input",_t),is.remove(this.element,"focus",zt),is.remove(this.element,"blur",qt),is.remove(this.element,"paste",Vt),is.remove(this.element,"cut",Ut),this.formElement&&is.remove(this.formElement,"reset",Bt)}function Mt(){this.showClearButton&&is.add(this.inputObj.clearButton,"mousedown touchstart",Ht,this)}function Ht(e){e.preventDefault(),this.inputObj.clearButton.classList.contains("e-clear-icon-hide")||(function(e){var t=this.element.value;ni.call(this,this.promptMask),this.redoCollec.unshift({value:this.promptMask,startIndex:this.element.selectionStart,endIndex:this.element.selectionEnd}),Jt.call(this,e,t),this.element.setSelectionRange(0,0)}.call(this,e),this.value="")}function Bt(){"EJS-MASKEDTEXTBOX"===this.element.tagName?ni.call(this,this.promptMask):this.value=this.initInputValue}function Ft(e,t){var i="",s=0,n=!1,r=c(t)?c(e)||c(this)?t:e.value:t;if(r!==this.promptMask)for(var o=0;o<this.customRegExpCollec.length;o++)n&&(n=!1),">"!==this.customRegExpCollec[s]&&"<"!==this.customRegExpCollec[s]&&"|"!==this.customRegExpCollec[s]&&"\\"!==this.customRegExpCollec[s]||(--o,n=!0),n||r[o]!==this.promptChar&&!c(this.customRegExpCollec[s])&&(this._callPasteHandler||!c(this.regExpCollec[this.customRegExpCollec[s]])||this.customRegExpCollec[s].length>2&&"["===this.customRegExpCollec[s][0]&&"]"===this.customRegExpCollec[s][this.customRegExpCollec[s].length-1]||!c(this.customCharacters)&&!c(this.customCharacters[this.customRegExpCollec[s]]))&&""!==r&&(i+=r[o]),++s;return(null===this.mask||""===this.mask&&void 0!==this.value)&&(i=r),i}function jt(e){for(var t=0;t<e.length;t++)this.hiddenMask+=e[t],"\\"!==e[t]&&this.customRegExpCollec.push(e[t])}function zt(e){var t=this,i={selectionStart:0,event:e,value:this.value,maskedValue:this.element.value,container:this.inputObj.container,selectionEnd:this.promptMask.length>0?this.promptMask.length:this.element.value.length};this.trigger("focus",i,function(e){if(t.mask)if(t.isFocus=!0,""===t.element.value?ni.call(t,t.promptMask):ni.call(t,t.element.value),ts.isDevice||"11.0"!==ts.info.version){var i=ts.isDevice&&ts.isIos?450:0;setTimeout(function(){t.element.setSelectionRange(e.selectionStart,e.selectionEnd)},i)}else t.element.setSelectionRange(e.selectionStart,e.selectionEnd)})}function qt(e){if(this.blurEventArgs={event:e,value:this.value,maskedValue:this.element.value,container:this.inputObj.container},this.trigger("blur",this.blurEventArgs),this.mask&&(this.isFocus=!1,this.placeholder&&this.element.value===this.promptMask&&"Always"!==this.floatLabelType)){ni.call(this,"");var t=this.element.parentNode.querySelector(".e-float-text");"Auto"===this.floatLabelType&&!c(t)&&t.classList.contains(nc)&&M([t],nc)}}function Vt(e){var t=this;if(this.mask&&!this.readonly){var i=this.element.selectionStart,s=this.element.selectionEnd,n=this.element.value;ni.call(this,""),this._callPasteHandler=!0,setTimeout(function(){var r=t.element.value.replace(/ /g,"");t.redoCollec.length>0&&t.redoCollec[0].value===t.element.value&&(r=Ft.call(t,t.element)),ni.call(t,n),t.element.selectionStart=i,t.element.selectionEnd=s;var o=0;t.maskKeyPress=!0;do{Qt.call(t,r[o],!1,null),++o}while(o<r.length);if(t.maskKeyPress=!1,t._callPasteHandler=!1,t.element.value===n){var a=0;t.maskKeyPress=!0;do{Qt.call(t,r[a],!1,null),++a}while(a<r.length);t.maskKeyPress=!1}else Jt.call(t,e,n)},1)}}function Ut(e){var t=this;if(this.mask&&!this.readonly){var i=this.element.value,s=this.element.selectionStart,n=this.element.selectionEnd;this.undoCollec.push({value:this.element.value,startIndex:this.element.selectionStart,endIndex:this.element.selectionEnd});var r=this.element.value.substring(0,s)+this.promptMask.substring(s,n)+this.element.value.substring(n);setTimeout(function(){ni.call(t,r),t.element.selectionStart=t.element.selectionEnd=s,t.element.value!==i&&Jt.call(t,e,null)},0)}}function Wt(e){e.preventDefault()}function _t(e){if(!0!==ts.isIE||""!==this.element.value||"Never"!==this.floatLabelType){if(h(e,{ctrlKey:!1,keyCode:229}),this.mask){if(""===this.element.value&&this.redoCollec.unshift({value:this.promptMask,startIndex:this.element.selectionStart,endIndex:this.element.selectionEnd}),1===this.element.value.length&&(this.element.value=this.element.value+this.promptMask,this.element.setSelectionRange(1,1)),this._callPasteHandler||Gt.call(this,e),this.element.value.length>this.promptMask.length){var t=this.element.selectionStart,i=this.element.value.length-this.promptMask.length,s=this.element.value.substring(t-i,t);this.maskKeyPress=!1;var n=0;do{Qt.call(this,s[n],e.ctrlKey,e),++n}while(n<s.length);this.element.value!==this.preEleVal&&Jt.call(this,e,null)}var r=Ft.call(this,this.element);this.prevValue=r,this.value=r,""===r&&(ni.call(this,this.promptMask),this.element.setSelectionRange(0,0))}}}function Yt(e){if(this.mask&&!this.readonly){229!==e.keyCode&&(!e.ctrlKey||89!==e.keyCode&&90!==e.keyCode||e.preventDefault(),Gt.call(this,e));var t=this.element.value;if(e.ctrlKey&&(89===e.keyCode||90===e.keyCode)){var i=void 0;90===e.keyCode&&this.undoCollec.length>0&&t!==this.undoCollec[this.undoCollec.length-1].value?(i=this.undoCollec[this.undoCollec.length-1],this.redoCollec.unshift({value:this.element.value,startIndex:this.element.selectionStart,endIndex:this.element.selectionEnd}),ni.call(this,i.value),this.element.selectionStart=i.startIndex,this.element.selectionEnd=i.endIndex,this.undoCollec.splice(this.undoCollec.length-1,1)):89===e.keyCode&&this.redoCollec.length>0&&t!==this.redoCollec[0].value&&(i=this.redoCollec[0],this.undoCollec.push({value:this.element.value,startIndex:this.element.selectionStart,endIndex:this.element.selectionEnd}),ni.call(this,i.value),this.element.selectionStart=i.startIndex,this.element.selectionEnd=i.endIndex,this.redoCollec.splice(0,1))}}}function Xt(e,t,i){return"input"===i.type&&(e=!1,t=this.element.value,ni.call(this,this.promptMask),si.call(this,t)),e}function Gt(e){var t,i=!1,s=!1;this.element.value.length<this.promptMask.length&&(i=!0,t=this.element.value,i=Xt.call(this,i,t,e),function(){var e,t=this.element.selectionStart,i=this.element.selectionEnd;this.redoCollec.length>0?(e=this.redoCollec[0],ni.call(this,e.value),e.startIndex-t==1?(this.element.selectionStart=e.startIndex,this.element.selectionEnd=e.endIndex):(this.element.selectionStart=t+1,this.element.selectionEnd=i+1)):(ni.call(this,this.promptMask),this.element.selectionStart=this.element.selectionEnd=t)}.call(this)),this.element.value.length>=this.promptMask.length&&"input"===e.type&&(i=Xt.call(this,i,t,e));var n=this.element.selectionStart,r=this.element.selectionEnd,o=this.element.selectionStart,a=this.element.selectionEnd,l=this.hiddenMask.replace(/[>|\\<]/g,""),h=l[o-1];this.element.parentNode;if(i||8===e.keyCode||46===e.keyCode){this.undoCollec.push({value:this.element.value,startIndex:this.element.selectionStart,endIndex:a});var d=!1,p=this.element.value;if(o>0||(8===e.keyCode||46===e.keyCode)&&o<this.element.value.length&&this.element.selectionEnd-o!==this.element.value.length){var u=o;o!==a?(o=a,46===e.keyCode&&(d=!0)):46===e.keyCode?++u:--u;for(var m=o;8===e.keyCode||i||d?m>u:m<u;8===e.keyCode||i||d?m--:m++)for(var f=o;8===e.keyCode||i||d?f>0:f<this.element.value.length;8===e.keyCode||i||d?f--:f++){var g=void 0;(8===e.keyCode||d)&&(n!==r&&n!==o||n===r)||i?(h=l[f-1],g=o-1):(h=l[f],g=o,++o);var v=this.element.value[g];if(c(this.regExpCollec[h])&&!c(this.customCharacters)&&c(this.customCharacters[h])&&this.hiddenMask[g]!==this.promptChar&&"["!==this.customRegExpCollec[g][0]&&"]"!==this.customRegExpCollec[g][this.customRegExpCollec[g].length-1]||this.promptMask[g]!==this.promptChar&&c(this.customCharacters))this.element.selectionStart=this.element.selectionEnd=g,e.preventDefault(),46!==e.keyCode||d||++this.element.selectionStart;else{var y=this.element.value,b=this.promptChar,C=y.substring(0,g)+b+y.substring(o,y.length);ni.call(this,C),e.preventDefault(),this.element.selectionStart=this.element.selectionEnd=g,s=!0}if(o=this.element.selectionStart,!s&&8===e.keyCode||d||!s&&46!==e.keyCode?g=o-1:(g=o,s=!1),v=this.element.value[g],n!==r&&this.element.selectionStart===n||this.promptMask[g]===this.promptChar||v!==this.promptMask[g]&&this.promptMask[g]!==this.promptChar&&!c(this.customCharacters))break}}0===this.element.selectionStart&&this.element.selectionEnd===this.element.value.length&&(ni.call(this,this.promptMask),e.preventDefault(),this.element.selectionStart=this.element.selectionEnd=o),this.redoCollec.unshift({value:this.element.value,startIndex:this.element.selectionStart,endIndex:this.element.selectionEnd}),this.element.value!==p&&Jt.call(this,e,t)}}function Kt(e){if(this.mask&&!this.readonly){var t=this.element.value;if(!e.ctrlKey||e.ctrlKey&&"KeyA"!==e.code&&"KeyY"!==e.code&&"KeyZ"!==e.code&&"KeyX"!==e.code&&"KeyC"!==e.code&&"KeyV"!==e.code){this.maskKeyPress=!0;var i=e.key;"Spacebar"===i&&(i=String.fromCharCode(e.keyCode)),i?i&&1===i.length&&(Qt.call(this,i,e.ctrlKey,e),e.preventDefault()):(this.isIosInvalid=!0,Qt.call(this,String.fromCharCode(e.keyCode),e.ctrlKey,e),e.preventDefault(),this.isIosInvalid=!1),32===e.keyCode&&" "===i&&" "===this.promptChar&&(this.element.selectionStart=this.element.selectionEnd=this.element.selectionStart-i.length)}this.element.value!==t&&Jt.call(this,e,t)}}function Jt(e,t){var i=this.isProtectedOnChange;if(!c(this.changeEventArgs)&&!this.isInitial){var s={};this.changeEventArgs={value:this.element.value,maskedValue:this.element.value,isInteraction:!1,isInteracted:!1},this.mask&&(this.changeEventArgs.value=Ft.call(this,this.element)),c(e)||(this.changeEventArgs.isInteracted=!0,this.changeEventArgs.isInteraction=!0,this.changeEventArgs.event=e),this.isProtectedOnChange=!0,this.value=this.changeEventArgs.value,this.isProtectedOnChange=i,l(s,this.changeEventArgs),this.trigger("change",s)}this.preEleVal=this.element.value,this.prevValue=Ft.call(this,this.element),U(this.element,{"aria-valuenow":this.element.value})}function $t(e){if(this.mask&&!this.readonly){var t=void 0;if(this.maskKeyPress||229!==e.keyCode)ii.call(this);else{var i=void 0;if(1===this.element.value.length&&(this.element.value=this.element.value+this.promptMask,this.element.setSelectionRange(1,1)),this.element.value.length>this.promptMask.length){var s=this.element.selectionStart,n=this.element.value.length-this.promptMask.length,r=this.element.value.substring(s-n,s);if(this.undoCollec.length>0){t=this.undoCollec[this.undoCollec.length-1];var o=this.element.selectionStart;i=t.value;var a=t.value.substring(o-n,o);t=this.redoCollec[0],r=r.trim();var l=ts.isAndroid&&""===r;l||a===r||t.value.substring(o-n,o)===r?l&&ei.call(this,e,o-1,this.element.selectionEnd-1,r,e.ctrlKey,!1):Qt.call(this,r,e.ctrlKey,e)}else i=this.promptMask,Qt.call(this,r,e.ctrlKey,e);this.maskKeyPress=!1,Jt.call(this,e,i)}}var h=Ft.call(this,this.element);(0!==this.element.selectionStart||this.promptMask!==this.element.value||""!==h||""===h&&this.value!==h)&&(this.prevValue=h,this.value=h)}else Jt.call(this,e);if(0===this.element.selectionStart&&0===this.element.selectionEnd){var c=this.element;setTimeout(function(){c.setSelectionRange(0,0)},0)}}function Zt(e){this.maskKeyPress||function(e){if(e.length>1&&this.promptMask.length+e.length<this.element.value.length){var t=this.redoCollec[0].value.substring(0,this.redoCollec[0].startIndex)+e+this.redoCollec[0].value.substring(this.redoCollec[0].startIndex,this.redoCollec[0].value.length);ni.call(this,t),this.element.selectionStart=this.element.selectionEnd=this.redoCollec[0].startIndex+e.length}this.element.selectionStart=this.element.selectionStart-e.length,this.element.selectionEnd=this.element.selectionEnd-e.length}.call(this,e)}function Qt(e,t,i){if(Zt.call(this,e),!c(this)&&!c(e))for(var s,n,r=this.element.selectionStart,o=r,a=(this.element.selectionEnd,!1),l=this.element.value,h=!1,d=!1,p=0;p<e.length;p++){var u=e[p];if(r=this.element.selectionStart,this.element.selectionEnd,this.maskKeyPress||o!==r||(r+=p),!this.maskKeyPress||r<this.promptMask.length){for(var m=r;m<this.promptMask.length;m++){s=this.escapeMaskValue[r],"\\"===this.hiddenMask[r]&&this.hiddenMask[r+1]===e&&(d=!0),(c(this.regExpCollec[s])&&(c(this.customCharacters)||!c(this.customCharacters)&&c(this.customCharacters[s]))&&this.hiddenMask[r]!==this.promptChar&&"["!==this.customRegExpCollec[r][0]&&"]"!==this.customRegExpCollec[r][this.customRegExpCollec[r].length-1]||this.promptMask[r]!==this.promptChar&&c(this.customCharacters)||this.promptChar===s&&this.escapeMaskValue===this.mask)&&(this.element.selectionStart=this.element.selectionEnd=r+1,r=this.element.selectionStart,s=this.hiddenMask[r])}if(c(this.customCharacters)||c(this.customCharacters[s]))!c(this.regExpCollec[s])&&u.match(new RegExp(this.regExpCollec[s]))&&this.promptMask[r]===this.promptChar?a=!0:this.promptMask[r]===this.promptChar&&"["===this.customRegExpCollec[r][0]&&"]"===this.customRegExpCollec[r][this.customRegExpCollec[r].length-1]&&u.match(new RegExp(this.customRegExpCollec[r]))&&(a=!0);else{var f=this.customCharacters[s].split(",");for(m=0;m<f.length;m++)if(u.match(new RegExp("["+f[m]+"]"))){a=!0;break}}if((!this.maskKeyPress||r<this.hiddenMask.length)&&a){if(0===p)if(this.maskKeyPress)this.undoCollec.push({value:l,startIndex:r,endIndex:r});else{var g=this.element.selectionStart,v=this.element.selectionEnd;this.redoCollec.length>0?(n=this.redoCollec[0].value,ni.call(this,n),this.undoCollec.push(this.redoCollec[0])):(this.undoCollec.push({value:this.promptMask,startIndex:r,endIndex:r}),n=this.promptMask,ni.call(this,n)),this.element.selectionStart=g,this.element.selectionEnd=v}r=this.element.selectionStart,function(e,t,i,s,n){this.hiddenMask.length>this.promptMask.length&&(i=function(e,t){var i,s,n=t,r=0;for(s=0;s<this.hiddenMask.length;s++)if("\\"===this.hiddenMask[s]&&(i=n.substring(0,s)+"\\"+n.substring(s,n.length)),">"!==this.hiddenMask[s]&&"<"!==this.hiddenMask[s]&&"|"!==this.hiddenMask[s]||(this.hiddenMask[s]!==n[s]&&(i=n.substring(0,s)+this.hiddenMask[s]+n.substring(s,n.length)),++r),i){if(i[s]===this.promptChar&&s>this.element.selectionStart||this.element.value.indexOf(this.promptChar)<0&&this.element