define(["exports","css:/base.css","css:/style-web.css","css:/header-web.css","./edu-vendor","inline-views:/header-tpl","systemjs","npm:tablesort/dist/tablesort.min.js","css:/icons-social.css","npm:zenscroll/zenscroll.js","npm:dompurify/dist/purify.js"],(function(e,t,n,i,r,s,o,a,l,c,u){"use strict";function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function d(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var m,p=d(o),g=h(a),f=h(c),v=h(u);function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},b.apply(this,arguments)}function y(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}m="function"!=typeof Object.assign?function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])}return t}:Object.assign;var w,S=m,E=["","webkit","Moz","MS","ms","o"],x="undefined"==typeof document?{style:{}}:document.createElement("div"),O=Math.round,k=Math.abs,P=Date.now;function C(e,t){for(var n,i,r=t[0].toUpperCase()+t.slice(1),s=0;s<E.length;){if((i=(n=E[s])?n+r:t)in e)return i;s++}}w="undefined"==typeof window?{}:window;var T=C(x.style,"touchAction"),N=void 0!==T;var I="compute",F="auto",A="manipulation",L="none",V="pan-x",z="pan-y",M=function(){if(!N)return!1;var e={},t=w.CSS&&w.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){return e[n]=!t||w.CSS.supports("touch-action",n)})),e}(),D="ontouchstart"in w,R=void 0!==C(w,"PointerEvent"),B=D&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),j="touch",$="mouse",U=16,W=24,H=["x","y"],G=["clientX","clientY"];function q(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(void 0!==e.length)for(i=0;i<e.length;)t.call(n,e[i],i,e),i++;else for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function K(e,t){return"function"==typeof e?e.apply(t&&t[0]||void 0,t):e}function Z(e,t){return e.indexOf(t)>-1}var Q=function(){function e(e,t){this.manager=e,this.set(t)}var t=e.prototype;return t.set=function(e){e===I&&(e=this.compute()),N&&this.manager.element.style&&M[e]&&(this.manager.element.style[T]=e),this.actions=e.toLowerCase().trim()},t.update=function(){this.set(this.manager.options.touchAction)},t.compute=function(){var e=[];return q(this.manager.recognizers,(function(t){K(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(Z(e,L))return L;var t=Z(e,V),n=Z(e,z);return t&&n?L:t||n?t?V:z:Z(e,A)?A:F}(e.join(" "))},t.preventDefaults=function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var i=this.actions,r=Z(i,L)&&!M.none,s=Z(i,z)&&!M["pan-y"],o=Z(i,V)&&!M["pan-x"];if(r){var a=1===e.pointers.length,l=e.distance<2,c=e.deltaTime<250;if(a&&l&&c)return}if(!o||!s)return r||s&&6&n||o&&n&W?this.preventSrc(t):void 0}},t.preventSrc=function(e){this.manager.session.prevented=!0,e.preventDefault()},e}();function Y(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function X(e){var t=e.length;if(1===t)return{x:O(e[0].clientX),y:O(e[0].clientY)};for(var n=0,i=0,r=0;r<t;)n+=e[r].clientX,i+=e[r].clientY,r++;return{x:O(n/t),y:O(i/t)}}function J(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:O(e.pointers[n].clientX),clientY:O(e.pointers[n].clientY)},n++;return{timeStamp:P(),pointers:t,center:X(t),deltaX:e.deltaX,deltaY:e.deltaY}}function ee(e,t,n){n||(n=H);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return Math.sqrt(i*i+r*r)}function te(e,t,n){n||(n=H);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return 180*Math.atan2(r,i)/Math.PI}function ne(e,t){return e===t?1:k(e)>=k(t)?e<0?2:4:t<0?8:U}function ie(e,t,n){return{x:t/e||0,y:n/e||0}}function re(e,t){var n=e.session,i=t.pointers,r=i.length;n.firstInput||(n.firstInput=J(t)),r>1&&!n.firstMultiple?n.firstMultiple=J(t):1===r&&(n.firstMultiple=!1);var s=n.firstInput,o=n.firstMultiple,a=o?o.center:s.center,l=t.center=X(i);t.timeStamp=P(),t.deltaTime=t.timeStamp-s.timeStamp,t.angle=te(a,l),t.distance=ee(a,l),function(e,t){var n=t.center,i=e.offsetDelta||{},r=e.prevDelta||{},s=e.prevInput||{};1!==t.eventType&&4!==s.eventType||(r=e.prevDelta={x:s.deltaX||0,y:s.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=r.x+(n.x-i.x),t.deltaY=r.y+(n.y-i.y)}(n,t),t.offsetDirection=ne(t.deltaX,t.deltaY);var c,u,h=ie(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=h.x,t.overallVelocityY=h.y,t.overallVelocity=k(h.x)>k(h.y)?h.x:h.y,t.scale=o?(c=o.pointers,ee((u=i)[0],u[1],G)/ee(c[0],c[1],G)):1,t.rotation=o?function(e,t){return te(t[1],t[0],G)+te(e[1],e[0],G)}(o.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,i,r,s,o=e.lastInterval||t,a=t.timeStamp-o.timeStamp;if(8!==t.eventType&&(a>25||void 0===o.velocity)){var l=t.deltaX-o.deltaX,c=t.deltaY-o.deltaY,u=ie(a,l,c);i=u.x,r=u.y,n=k(u.x)>k(u.y)?u.x:u.y,s=ne(l,c),e.lastInterval=t}else n=o.velocity,i=o.velocityX,r=o.velocityY,s=o.direction;t.velocity=n,t.velocityX=i,t.velocityY=r,t.direction=s}(n,t);var d,m=e.element,p=t.srcEvent;Y(d=p.composedPath?p.composedPath()[0]:p.path?p.path[0]:p.target,m)&&(m=d),t.target=m}function se(e,t,n){var i=n.pointers.length,r=n.changedPointers.length,s=1&t&&i-r==0,o=12&t&&i-r==0;n.isFirst=!!s,n.isFinal=!!o,s&&(e.session={}),n.eventType=t,re(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function oe(e){return e.trim().split(/\s+/g)}function ae(e,t,n){q(oe(t),(function(t){e.addEventListener(t,n,!1)}))}function le(e,t,n){q(oe(t),(function(t){e.removeEventListener(t,n,!1)}))}function ce(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||window}var ue=function(){function e(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){K(e.options.enable,[e])&&n.handler(t)},this.init()}var t=e.prototype;return t.handler=function(){},t.init=function(){this.evEl&&ae(this.element,this.evEl,this.domHandler),this.evTarget&&ae(this.target,this.evTarget,this.domHandler),this.evWin&&ae(ce(this.element),this.evWin,this.domHandler)},t.destroy=function(){this.evEl&&le(this.element,this.evEl,this.domHandler),this.evTarget&&le(this.target,this.evTarget,this.domHandler),this.evWin&&le(ce(this.element),this.evWin,this.domHandler)},e}();function he(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;i<e.length;){if(n&&e[i][n]==t||!n&&e[i]===t)return i;i++}return-1}var de={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},me={2:j,3:"pen",4:$,5:"kinect"},pe="pointerdown",ge="pointermove pointerup pointercancel";w.MSPointerEvent&&!w.PointerEvent&&(pe="MSPointerDown",ge="MSPointerMove MSPointerUp MSPointerCancel");var fe=function(e){function t(){var n,i=t.prototype;return i.evEl=pe,i.evWin=ge,(n=e.apply(this,arguments)||this).store=n.manager.session.pointerEvents=[],n}return y(t,e),t.prototype.handler=function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),r=de[i],s=me[e.pointerType]||e.pointerType,o=s===j,a=he(t,e.pointerId,"pointerId");1&r&&(0===e.button||o)?a<0&&(t.push(e),a=t.length-1):12&r&&(n=!0),a<0||(t[a]=e,this.callback(this.manager,r,{pointers:t,changedPointers:[e],pointerType:s,srcEvent:e}),n&&t.splice(a,1))},t}(ue);function ve(e){return Array.prototype.slice.call(e,0)}function be(e,t,n){for(var i=[],r=[],s=0;s<e.length;){var o=t?e[s][t]:e[s];he(r,o)<0&&i.push(e[s]),r[s]=o,s++}return n&&(i=t?i.sort((function(e,n){return e[t]>n[t]})):i.sort()),i}var ye={touchstart:1,touchmove:2,touchend:4,touchcancel:8},_e="touchstart touchmove touchend touchcancel",we=function(e){function t(){var n;return t.prototype.evTarget=_e,(n=e.apply(this,arguments)||this).targetIds={},n}return y(t,e),t.prototype.handler=function(e){var t=ye[e.type],n=Se.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:j,srcEvent:e})},t}(ue);function Se(e,t){var n,i,r=ve(e.touches),s=this.targetIds;if(3&t&&1===r.length)return s[r[0].identifier]=!0,[r,r];var o=ve(e.changedTouches),a=[],l=this.target;if(i=r.filter((function(e){return Y(e.target,l)})),1===t)for(n=0;n<i.length;)s[i[n].identifier]=!0,n++;for(n=0;n<o.length;)s[o[n].identifier]&&a.push(o[n]),12&t&&delete s[o[n].identifier],n++;return a.length?[be(i.concat(a),"identifier",!0),a]:void 0}var Ee={mousedown:1,mousemove:2,mouseup:4},xe="mousedown",Oe="mousemove mouseup",ke=function(e){function t(){var n,i=t.prototype;return i.evEl=xe,i.evWin=Oe,(n=e.apply(this,arguments)||this).pressed=!1,n}return y(t,e),t.prototype.handler=function(e){var t=Ee[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:$,srcEvent:e}))},t}(ue);function Pe(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY},i=this.lastTouches;this.lastTouches.push(n);setTimeout((function(){var e=i.indexOf(n);e>-1&&i.splice(e,1)}),2500)}}function Ce(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,Pe.call(this,t)):12&e&&Pe.call(this,t)}function Te(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],s=Math.abs(t-r.x),o=Math.abs(n-r.y);if(s<=25&&o<=25)return!0}return!1}var Ne=function(){return function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).handler=function(e,t,n){var r=n.pointerType===j,s=n.pointerType===$;if(!(s&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)Ce.call(_(_(i)),t,n);else if(s&&Te.call(_(_(i)),n))return;i.callback(e,t,n)}},i.touch=new we(i.manager,i.handler),i.mouse=new ke(i.manager,i.handler),i.primaryTouch=null,i.lastTouches=[],i}return y(t,e),t.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},t}(ue)}();function Ie(e,t,n){return!!Array.isArray(e)&&(q(e,n[t],n),!0)}var Fe=16,Ae=32,Le=1;function Ve(e,t){var n=t.manager;return n?n.get(e):e}function ze(e){return e&Fe?"cancel":8&e?"end":4&e?"move":2&e?"start":""}var Me=function(){function e(e){void 0===e&&(e={}),this.options=b({enable:!0},e),this.id=Le++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var t=e.prototype;return t.set=function(e){return S(this.options,e),this.manager&&this.manager.touchAction.update(),this},t.recognizeWith=function(e){if(Ie(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Ve(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},t.dropRecognizeWith=function(e){return Ie(e,"dropRecognizeWith",this)||(e=Ve(e,this),delete this.simultaneous[e.id]),this},t.requireFailure=function(e){if(Ie(e,"requireFailure",this))return this;var t=this.requireFail;return-1===he(t,e=Ve(e,this))&&(t.push(e),e.requireFailure(this)),this},t.dropRequireFailure=function(e){if(Ie(e,"dropRequireFailure",this))return this;e=Ve(e,this);var t=he(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},t.hasRequireFailures=function(){return this.requireFail.length>0},t.canRecognizeWith=function(e){return!!this.simultaneous[e.id]},t.emit=function(e){var t=this,n=this.state;function i(n){t.manager.emit(n,e)}n<8&&i(t.options.event+ze(n)),i(t.options.event),e.additionalEvent&&i(e.additionalEvent),n>=8&&i(t.options.event+ze(n))},t.tryEmit=function(e){if(this.canEmit())return this.emit(e);this.state=Ae},t.canEmit=function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},t.recognize=function(e){var t=S({},e);if(!K(this.options.enable,[this,t]))return this.reset(),void(this.state=Ae);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},t.process=function(e){},t.getTouchAction=function(){},t.reset=function(){},e}(),De=function(e){function t(t){var n;return void 0===t&&(t={}),(n=e.call(this,b({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},t))||this).pTime=!1,n.pCenter=!1,n._timer=null,n._input=null,n.count=0,n}y(t,e);var n=t.prototype;return n.getTouchAction=function(){return[A]},n.process=function(e){var t=this,n=this.options,i=e.pointers.length===n.pointers,r=e.distance<n.threshold,s=e.deltaTime<n.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(r&&s&&i){if(4!==e.eventType)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<n.interval,a=!this.pCenter||ee(this.pCenter,e.center)<n.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&o?this.count+=1:this.count=1,this._input=e,0===this.count%n.taps)return this.hasRequireFailures()?(this._timer=setTimeout((function(){t.state=8,t.tryEmit()}),n.interval),2):8}return Ae},n.failTimeout=function(){var e=this;return this._timer=setTimeout((function(){e.state=Ae}),this.options.interval),Ae},n.reset=function(){clearTimeout(this._timer)},n.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},t}(Me),Re=function(e){function t(t){return void 0===t&&(t={}),e.call(this,b({pointers:1},t))||this}y(t,e);var n=t.prototype;return n.attrTest=function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},n.process=function(e){var t=this.state,n=e.eventType,i=6&t,r=this.attrTest(e);return i&&(8&n||!r)?t|Fe:i||r?4&n?8|t:2&t?4|t:2:Ae},t}(Me);function Be(e){return e===U?"down":8===e?"up":2===e?"left":4===e?"right":""}var je=function(e){function t(t){var n;return void 0===t&&(t={}),(n=e.call(this,b({event:"pan",threshold:10,pointers:1,direction:30},t))||this).pX=null,n.pY=null,n}y(t,e);var n=t.prototype;return n.getTouchAction=function(){var e=this.options.direction,t=[];return 6&e&&t.push(z),e&W&&t.push(V),t},n.directionTest=function(e){var t=this.options,n=!0,i=e.distance,r=e.direction,s=e.deltaX,o=e.deltaY;return r&t.direction||(6&t.direction?(r=0===s?1:s<0?2:4,n=s!==this.pX,i=Math.abs(e.deltaX)):(r=0===o?1:o<0?8:U,n=o!==this.pY,i=Math.abs(e.deltaY))),e.direction=r,n&&i>t.threshold&&r&t.direction},n.attrTest=function(e){return Re.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},n.emit=function(t){this.pX=t.deltaX,this.pY=t.deltaY;var n=Be(t.direction);n&&(t.additionalEvent=this.options.event+n),e.prototype.emit.call(this,t)},t}(Re),$e=function(e){function t(t){return void 0===t&&(t={}),e.call(this,b({event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},t))||this}y(t,e);var n=t.prototype;return n.getTouchAction=function(){return je.prototype.getTouchAction.call(this)},n.attrTest=function(t){var n,i=this.options.direction;return 30&i?n=t.overallVelocity:6&i?n=t.overallVelocityX:i&W&&(n=t.overallVelocityY),e.prototype.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers===this.options.pointers&&k(n)>this.options.velocity&&4&t.eventType},n.emit=function(e){var t=Be(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)},t}(Re),Ue=function(e){function t(t){return void 0===t&&(t={}),e.call(this,b({event:"pinch",threshold:0,pointers:2},t))||this}y(t,e);var n=t.prototype;return n.getTouchAction=function(){return[L]},n.attrTest=function(t){return e.prototype.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},n.emit=function(t){if(1!==t.scale){var n=t.scale<1?"in":"out";t.additionalEvent=this.options.event+n}e.prototype.emit.call(this,t)},t}(Re),We=function(e){function t(t){return void 0===t&&(t={}),e.call(this,b({event:"rotate",threshold:0,pointers:2},t))||this}y(t,e);var n=t.prototype;return n.getTouchAction=function(){return[L]},n.attrTest=function(t){return e.prototype.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)},t}(Re),He=function(e){function t(t){var n;return void 0===t&&(t={}),(n=e.call(this,b({event:"press",pointers:1,time:251,threshold:9},t))||this)._timer=null,n._input=null,n}y(t,e);var n=t.prototype;return n.getTouchAction=function(){return[F]},n.process=function(e){var t=this,n=this.options,i=e.pointers.length===n.pointers,r=e.distance<n.threshold,s=e.deltaTime>n.time;if(this._input=e,!r||!i||12&e.eventType&&!s)this.reset();else if(1&e.eventType)this.reset(),this._timer=setTimeout((function(){t.state=8,t.tryEmit()}),n.time);else if(4&e.eventType)return 8;return Ae},n.reset=function(){clearTimeout(this._timer)},n.emit=function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=P(),this.manager.emit(this.options.event,this._input)))},t}(Me),Ge={domEvents:!1,touchAction:I,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},qe=[[We,{enable:!1}],[Ue,{enable:!1},["rotate"]],[$e,{direction:6}],[je,{direction:6},["swipe"]],[De],[De,{event:"doubletap",taps:2},["tap"]],[He]];function Ke(e,t){var n,i=e.element;i.style&&(q(e.options.cssProps,(function(r,s){n=C(i.style,s),t?(e.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}var Ze=function(){function e(e,t){var n,i=this;this.options=S({},Ge,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(R?fe:B?we:D?Ne:ke))(n,se),this.touchAction=new Q(this,this.options.touchAction),Ke(this,!0),q(this.options.recognizers,(function(e){var t=i.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}var t=e.prototype;return t.set=function(e){return S(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},t.stop=function(e){this.session.stopped=e?2:1},t.recognize=function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var i=this.recognizers,r=t.curRecognizer;(!r||r&&8&r.state)&&(t.curRecognizer=null,r=null);for(var s=0;s<i.length;)n=i[s],2===t.stopped||r&&n!==r&&!n.canRecognizeWith(r)?n.reset():n.recognize(e),!r&&14&n.state&&(t.curRecognizer=n,r=n),s++}},t.get=function(e){if(e instanceof Me)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event===e)return t[n];return null},t.add=function(e){if(Ie(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},t.remove=function(e){if(Ie(e,"remove",this))return this;var t=this.get(e);if(e){var n=this.recognizers,i=he(n,t);-1!==i&&(n.splice(i,1),this.touchAction.update())}return this},t.on=function(e,t){if(void 0===e||void 0===t)return this;var n=this.handlers;return q(oe(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this},t.off=function(e,t){if(void 0===e)return this;var n=this.handlers;return q(oe(e),(function(e){t?n[e]&&n[e].splice(he(n[e],t),1):delete n[e]})),this},t.emit=function(e,t){this.options.domEvents&&function(e,t){var n=document.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](t),i++}},t.destroy=function(){this.element&&Ke(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},e}(),Qe={touchstart:1,touchmove:2,touchend:4,touchcancel:8},Ye="touchstart",Xe="touchstart touchmove touchend touchcancel",Je=function(e){function t(){var n,i=t.prototype;return i.evTarget=Ye,i.evWin=Xe,(n=e.apply(this,arguments)||this).started=!1,n}return y(t,e),t.prototype.handler=function(e){var t=Qe[e.type];if(1===t&&(this.started=!0),this.started){var n=et.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:j,srcEvent:e})}},t}(ue);function et(e,t){var n=ve(e.touches),i=ve(e.changedTouches);return 12&t&&(n=be(n.concat(i),"identifier",!0)),[n,i]}function tt(e,t,n){var i="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=window.console&&(window.console.warn||window.console.log);return r&&r.call(window.console,i,n),e.apply(this,arguments)}}var nt=tt((function(e,t,n){for(var i=Object.keys(t),r=0;r<i.length;)(!n||n&&void 0===e[i[r]])&&(e[i[r]]=t[i[r]]),r++;return e}),"extend","Use `assign`."),it=tt((function(e,t){return nt(e,t,!0)}),"merge","Use `assign`.");function rt(e,t,n){var i,r=t.prototype;(i=e.prototype=Object.create(r)).constructor=e,i._super=r,n&&S(i,n)}function st(e,t){return function(){return e.apply(t,arguments)}}var ot=function(){var e=function(e,t){return void 0===t&&(t={}),new Ze(e,b({recognizers:qe.concat()},t))};return e.VERSION="2.0.17-rc",e.DIRECTION_ALL=30,e.DIRECTION_DOWN=U,e.DIRECTION_LEFT=2,e.DIRECTION_RIGHT=4,e.DIRECTION_UP=8,e.DIRECTION_HORIZONTAL=6,e.DIRECTION_VERTICAL=W,e.DIRECTION_NONE=1,e.DIRECTION_DOWN=U,e.INPUT_START=1,e.INPUT_MOVE=2,e.INPUT_END=4,e.INPUT_CANCEL=8,e.STATE_POSSIBLE=1,e.STATE_BEGAN=2,e.STATE_CHANGED=4,e.STATE_ENDED=8,e.STATE_RECOGNIZED=8,e.STATE_CANCELLED=Fe,e.STATE_FAILED=Ae,e.Manager=Ze,e.Input=ue,e.TouchAction=Q,e.TouchInput=we,e.MouseInput=ke,e.PointerEventInput=fe,e.TouchMouseInput=Ne,e.SingleTouchInput=Je,e.Recognizer=Me,e.AttrRecognizer=Re,e.Tap=De,e.Pan=je,e.Swipe=$e,e.Pinch=Ue,e.Rotate=We,e.Press=He,e.on=ae,e.off=le,e.each=q,e.merge=it,e.extend=nt,e.bindFn=st,e.assign=S,e.inherit=rt,e.bindFn=st,e.prefixed=C,e.toArray=ve,e.inArray=he,e.uniqueArray=be,e.splitStr=oe,e.boolOrFn=K,e.hasParent=Y,e.addEventListeners=ae,e.removeEventListeners=le,e.defaults=S({},Ge,{preset:qe}),e}(),at=ot.defaults,lt=ot,ct=Object.freeze({__proto__:null,default:lt,INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:Fe,STATE_FAILED:Ae,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:U,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:W,DIRECTION_ALL:30,Manager:Ze,Input:ue,TouchAction:Q,TouchInput:we,MouseInput:ke,PointerEventInput:fe,TouchMouseInput:Ne,SingleTouchInput:Je,Recognizer:Me,AttrRecognizer:Re,Tap:De,Pan:je,Swipe:$e,Pinch:Ue,Rotate:We,Press:He,on:ae,off:le,each:q,merge:it,extend:nt,assign:S,inherit:rt,bindFn:st,prefixed:C,toArray:ve,inArray:he,uniqueArray:be,splitStr:oe,boolOrFn:K,hasParent:Y,addEventListeners:ae,removeEventListeners:le,defaults:at}),ut=null;function ht(e,t){var n=t||{preventDefault:!1};if(e.Manager){var i=e,r=function(e,t){var r=Object.create(n);return t&&i.assign(r,t),ht(new i(e,r),r)};return i.assign(r,i),r.Manager=function(e,t){var r=Object.create(n);return t&&i.assign(r,t),ht(new i.Manager(e,r),r)},r}var s=Object.create(e),o=e.element;function a(e){return e.match(/[^ ]+/g)}function l(e){if("hammer.input"!==e.type){if(e.srcEvent._handled||(e.srcEvent._handled={}),e.srcEvent._handled[e.type])return;e.srcEvent._handled[e.type]=!0}var t=!1;e.stopPropagation=function(){t=!0};var n=e.srcEvent.stopPropagation.bind(e.srcEvent);"function"==typeof n&&(e.srcEvent.stopPropagation=function(){n(),e.stopPropagation()}),e.firstTarget=ut;for(var i=ut;i&&!t;){var r=i.hammer;if(r)for(var s,o=0;o<r.length;o++)if(s=r[o]._handlers[e.type])for(var a=0;a<s.length&&!t;a++)s[a](e);i=i.parentNode}}return o.hammer||(o.hammer=[]),o.hammer.push(s),e.on("hammer.input",(function(e){!0!==n.preventDefault&&n.preventDefault!==e.pointerType||e.preventDefault(),e.isFirst&&(ut=e.target)})),s._handlers={},s.on=function(t,n){return a(t).forEach((function(t){var i=s._handlers[t];i||(s._handlers[t]=i=[],e.on(t,l)),i.push(n)})),s},s.off=function(t,n){return a(t).forEach((function(t){var i=s._handlers[t];i&&((i=n?i.filter((function(e){return e!==n})):[]).length>0?s._handlers[t]=i:(e.off(t,l),delete s._handlers[t]))})),s},s.emit=function(t,n){ut=n.target,e.emit(t,n)},s.destroy=function(){var t=e.element.hammer,n=t.indexOf(s);-1!==n&&t.splice(n,1),t.length||delete e.element.hammer,s._handlers={},e.destroy()},s}var dt=Object.freeze({__proto__:null,default:ht});function mt(){let e=!1;try{e="undefined"!=typeof document&&"undefined"!=typeof window}catch(e){}return e&&!gt()}function pt(){return"DEV"==Ht.getEnv()&&((mt()||gt())&&window.isLocalEv||bt()&&global.isLOCAL)}function gt(){let e=!1;try{e=window.top.cordova&&window.top.cordova.platformId}catch(e){}return e}function ft(){return gt()&&window.top.device&&"android"==window.top.device.platform.toLowerCase()}let vt=function(){if(!mt())return!1;let e=window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone;return e||(e=window.Windows&&window.Windows.Devices),e}();function bt(){let e=!1;try{e="undefined"!=typeof document&&"undefined"!=typeof window}catch(e){}return!e}let yt=function(){let e=!1;try{e="undefined"!=typeof document&&"undefined"!=typeof window,e&&(e=window&&window.JSTESTING)}catch(e){}return e}();function _t(){return yt}function wt(){return"DEV"==Ht.getEnv()}function St(e){return String.prototype.trim?String.prototype.trim.call(e):e.replace(/(^\s*|\s*$)/gm,"")}function Et(e,t){return e.replace(/\{(\d+)\}/g,((e,n)=>void 0!==t[n]?t[n]:e))}function xt(e){return"string"==typeof e}function Ot(e){if(!xt(e))throw new TypeError("stringGetDigits called on a non-string. The given value is "+typeof e);return St(e).replace(/[^0-9]/g,"")}function kt(e,t){return"number"==typeof e&&(t&&isNaN(e)||isFinite(e))}function Pt(e){if(xt(e)){var t=e.trim(),n=t.replace(/[^0-9.]/g,"");0==t.indexOf("-")&&(n="-"+n);var i=parseFloat(n);return kt(i)?i:null}return kt(e)?e:null}function Ct(e,t=1,n="$",i=",",r="."){t=Math.abs(t),t=!isNaN(t)&&t>0?Math.pow(10,t):1,i=i||",",r=r||".";let s=e<0?"-":"";e=Math.round(Math.abs(+e||0)*t)/t;let o=parseInt(e.toString(),10)+"",a=o.length,l=a>3?a%3:0,c=n+s+(l?o.substring(0,l)+i:"")+o.substring(l).replace(/(\d{3})(?=\d)/g,"$1"+i);return t>1&&Math.round(Math.abs(e-o)>0)&&(c+=r+(Math.round(Math.abs(e-o)*t)/t).toString().substring(2)),c}function Tt(e){return Array.isArray?Array.isArray(e):e&&"[object Array]"===Object.prototype.toString.call(e)}function Nt(e,t,n=e){if(!Tt(e))throw new TypeError("forEach called on a non-array type value. The given value is "+typeof e);let i;n||(n=e);let r=0,s=e.length;for(;r<s&&(i=t.call(n,e[r],r,e),"boolean"!=typeof i||i);)r++}function It(e){return"function"==typeof e}function Ft(e){return null!==e&&"object"==typeof e&&!Tt(e)}function At(e,t=!0,n=!1){let i=Object.keys(e),r=[];return Nt(i,(i=>{n&&null===e[i]||r.push(encodeURIComponent(i)+"="+(t?encodeURIComponent(e[i]):e[i]))})),r.join("&")}function Lt(e,t,n=e){var i,r=n||e;if(!Ft(e))throw new TypeError("Object.forEach called on non-object. The given value is "+typeof e);if(!It(t))throw new TypeError("The given iterator is not a function");for(var s in e)if(e.hasOwnProperty(s)&&"boolean"==typeof(i=t.apply(r,[e[s],s]))&&!i)break}function Vt(e,t,n=!1){if(!Ft(t)&&!Tt(t))return t;let i,r=!Tt(t);var s=0,o=0;if(i=n?zt(e):e,!r){for(Tt(i)||(i=[]),s=0,o=t.length;s<o;s++){let e=t[s];i[e]=Vt(i[e],t[e])}return t}{let e=Object.keys(t);for(s=0,o=e.length;s<o;s++){let n=e[s];i[n]=Vt(i[n]||{},t[n])}}return i}function zt(e){if(!Ft(e)&&!Tt(e))return e;var t=!Tt(e);let n=t?{}:[],i=0,r=0;if(t){var s=Object.keys(e);for(i=0,r=s.length;i<r;i++){var o=s[i];n[o]=zt(e[o])}}else for(i=0,r=e.length;i<r;i++)n[i]=zt(e[i]);return n}function Mt(e,t,n=!1){if(!Ft(e)||!Ft(t))throw new TypeError("First or second argument is not an json object");return Vt(e,t,n)}function Dt(e){if(!Ft(e)&&!Tt(e))throw new TypeError("Object.copy called on non-object. The given value is "+typeof e);return zt(e)}function Rt(e,t){var n=!1;return Nt(t,(function(t){if(e===t)return n=!0,!1})),n}function Bt(e){return null==e||void 0===e}let jt={};function $t(e,t){var n;void 0===e&&(e="");var i=function(e,t){return t<(e=parseInt(e,10).toString(16)).length?e.slice(e.length-t):t>e.length?Array(t-e.length+1).join("0")+e:e};return jt||(jt={}),jt.uniqidSeed||(jt.uniqidSeed=Math.floor(123456789*Math.random())),jt.uniqidSeed++,n=e,n+=i(parseInt(((new Date).getTime()/1e3).toString(),10),8),n+=i(jt.uniqidSeed,5),t&&(n+=(10*Math.random()).toFixed(8).toString()),n}const Ut=function(){var e;if("undefined"!=typeof window){if(window.requestAnimationFrame)return function(e,t){return window.requestAnimationFrame.apply(window,[e,t])};var t=0;e=function(e){var n=(new Date).getTime(),i=Math.max(0,16-(n-t)),r=window.setTimeout((function(){e(n+i)}),i);return t=n+i,r}}else e=function(e){e()};return e}(),Wt=function(){let e=null;return function(){if(bt())return!1;if(null!==e)return e;e=!1;try{var t=function(){window.removeEventListener("test",t)},n=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",t,n)}catch(e){}return e}}(),Ht=function(){let e;return{getEnv:()=>e,setEnv:t=>{e=t}}}();let Gt,qt,Kt=!1;const Zt=ht||dt,Qt=lt||ct;function Yt(){return new Promise((function(e,t){gt()?p.import("utils:/material-ripple").then((t=>{e(t.default||t)}),(()=>{t()})):t()}))}class Xt{constructor(e,t){this.el=e,this._zone=t}CloseMobKeyboard(e){if(e.target!=document.activeElement&&(document.activeElement instanceof HTMLInputElement||document.activeElement instanceof HTMLTextAreaElement)){if(document.activeElement.hasAttribute&&document.activeElement.hasAttribute("keep-focus"))return;document.activeElement.blur()}}ngOnInit(){Kt=ft(),bt()||_t()||Yt().then((()=>{}),(()=>{})),this.CloseMobKeyboard=this.CloseMobKeyboard.bind(this),bt()||_t()||(Gt=Zt(new Qt(this.el.nativeElement,{touchAction:"pinch"})),Gt.on("tap",this.CloseMobKeyboard),qt=Wt())}ngOnDestroy(){bt()||_t()||this.el.nativeElement&&this._rippleJs&&(this._rippleJs.disable(),Gt.off("tap",this.CloseMobKeyboard))}}Xt.ɵfac=function(e){return new(e||Xt)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.NgZone))},Xt.ɵdir=r["ɵɵdefineDirective"]({type:Xt,selectors:[["","zing-region",""]]});class Jt{constructor(e,t){this.el=e,this._zone=t,this.onTap=new r.EventEmitter,this.onTapHover=new r.EventEmitter,this.onTapOutside=new r.EventEmitter,this.onTapHoverOutside=new r.EventEmitter,this.onTapDoc=new r.EventEmitter,this.onSwipeLeft=new r.EventEmitter,this.onTapUrl=new r.EventEmitter,this.onClick=new r.EventEmitter,this.zingToggle=!1,this.zingTouch=!1,this.zingSlider=!1,this.zingUrl=!1,this.zingUrlContainer=!1,this.zingUrlContainerTarget=null,this.zingUrlFeedback=!1,this.zingNoTouch=!1,this.zingTapDelay=0,this._eventsDestroyCallbacks=[]}_eventsDestroyCallbacksTrigger(){this._eventsDestroyCallbacks.forEach((e=>{e()})),this._eventsDestroyCallbacks=[]}specialEventsDestroy(e){this._eventsDestroyCallbacks.indexOf(e)<0&&this._eventsDestroyCallbacks.push(e)}addTouchFeed(){let e=()=>{this.el.nativeElement.classList.add("mob"),this.el.nativeElement.classList.add("touch")},t=()=>{this.el.nativeElement.classList.remove("touch")};qt?(this.el.nativeElement.addEventListener("touchstart",e,{passive:!0}),this.el.nativeElement.addEventListener("pointerstart",e,{passive:!0})):Qt.on(this.el.nativeElement,"touchstart pointerstart",e),Qt.on(this.el.nativeElement,"touchend touchcancel pointerend pointercancel",t),Kt&&Yt().then((e=>{e.enable(this.el.nativeElement)}),(()=>{})),this.specialEventsDestroy((()=>{Qt.off(this.el.nativeElement,"touchend touchcancel pointerend pointercancel",t),qt?(this.el.nativeElement.removeEventListener("touchstart",e),this.el.nativeElement.removeEventListener("pointerstart",e)):Qt.off(this.el.nativeElement,"touchstart pointerstart",e),Kt&&Yt().then((e=>{e.disable(this.el.nativeElement)}),(()=>{}))}))}sliderSetup(){this.the_slider=this.el.nativeElement.querySelector("input");let e=this.el.nativeElement.querySelector("i"),t=()=>{let e=parseInt(this.the_slider.min,10),t=parseInt(this.the_slider.max,10)-e;return~~(parseInt(this.the_slider.clientWidth,10)*(parseInt(this.the_slider.value,10)-e)/t)},n=()=>{e.style.width=100*t()/this.the_slider.clientWidth+"%"};n(),Qt.on(this.the_slider,"input",n);let i=function(e){e.stopPropagation()};Qt.on(this.el.nativeElement,"touchmove mousemove pointermove",i),this.specialEventsDestroy((()=>{this.the_slider&&this.el&&this.el.nativeElement&&(Qt.off(this.the_slider,"input",n),Qt.off(this.el.nativeElement,"touchmove mousemove pointermove",i))}))}_genericHammerEl(){this.hmEl&&this.hmEl.destroy(),this._zone.runOutsideAngular((()=>{this.hmEl=Zt(new Qt.Manager(this.el.nativeElement,{recognizers:[[Qt.Tap,{threshold:10,time:400,interval:450}],[Qt.Pinch,{enable:!1}],[Qt.Rotate,{enable:!1}],[Qt.Press,{enable:!1}],[Qt.Pan,{enable:!1}],[Qt.Swipe,{enable:!1}]]}))}))}ngAfterViewInit(){if(bt()||_t())return;Jt.hmDoc||(Jt.hmDoc=Gt||Zt(new Qt.Manager(document.getElementsByTagName("body")[0])));let e=this.onTap.observed;if(e){this._genericHammerEl();let e=this.onTapOutside.observed;e?"force"==this.zingNoTouch&&this._zone.runOutsideAngular((()=>{this.addTouchFeed()})):this._zone.runOutsideAngular((()=>{this.hmEl.on("tap",(e=>{let t=()=>{this._zone.run((()=>{this.onTap.emit(e)}))};this.zingTapDelay?setTimeout(t,this.zingTapDelay):t()})),this.zingNoTouch||this.addTouchFeed()})),e&&(()=>{let e=e=>{this._zone.run((()=>{this.onTap.emit(e)})),e.stopPropagation(),Jt.hmDoc.off("tap",t),setTimeout((()=>{Jt.hmDoc.on("tap",t)}))},t=e=>{setTimeout((()=>{this._zone.run((()=>{this.onTapOutside.emit(e)}))})),Jt.hmDoc.off("tap",t)};this._zone.runOutsideAngular((()=>{this.hmEl.on("tap",e),setTimeout((()=>{Jt.hmDoc.on("tap",t)}))})),this.specialEventsDestroy((()=>{this.hmEl&&this.hmEl.off("tap",e),Jt.hmDoc.off("tap",t)}))})()}if(this.onTapHover.observed){var t=!1;this._genericHammerEl();let e=this.onTapHoverOutside.observed;e||this._zone.runOutsideAngular((()=>{this.hmEl.on("tap",(e=>{t=!0,this._zone.run((()=>{this.onTapHover.emit(e)})),setTimeout((()=>{t=!1}))}))}));let i=e=>{t?t=!1:this._zone.run((()=>{this.onTapHover.emit(e)}))};if(this._zone.runOutsideAngular((()=>{Qt.on(this.el.nativeElement,"mouseenter",i)})),e){var n=!1;(()=>{let e=e=>{t=!0,this._zone.run((()=>{this.onTapHover.emit(e)})),e.stopPropagation(),Jt.hmDoc.off("tap",r),setTimeout((()=>{Jt.hmDoc.on("tap",r)})),setTimeout((()=>{t=!1}))},r=e=>{n=!0,this._zone.run((()=>{this.onTapHoverOutside.emit(e)})),Jt.hmDoc.off("tap",r),setTimeout((()=>{t=!1}))},s=e=>{n?n=!1:(this.onTapHoverOutside.emit(e),Jt.hmDoc.off("tap",r))};this._zone.runOutsideAngular((()=>{Qt.on(this.el.nativeElement,"mouseleave",s),this.hmEl.on("tap",e)})),this.specialEventsDestroy((()=>{this.hmEl&&this.hmEl.off("tap",e),Jt.hmDoc.off("tap",r),this.el&&this.el.nativeElement&&(Qt.off(this.el.nativeElement,"mouseleave",s),Qt.off(this.el.nativeElement,"mouseenter",i))}))})()}}if(!this.onTapDoc.observed||this.onTapHoverOutside.observed||this.onTapOutside.observed||(e||this._genericHammerEl(),this._zone.runOutsideAngular((()=>{let e=e=>{e.stopPropagation()};this.hmEl.on("tap",e);var t=e=>{setTimeout((()=>{this._zone.run((()=>{this.onTapDoc.emit(e)}))}))};Jt.hmDoc.on("tap",t),this.specialEventsDestroy((()=>{this.hmEl&&this.hmEl.off("tap",e),Jt.hmDoc.off("tap",t)}))}))),this.onClick.observed){const e=e=>{this.onClick.emit(e)};Qt.on(this.el.nativeElement,"click",e),this.specialEventsDestroy((()=>{Qt.off(this.el.nativeElement,"click",e)})),this.zingNoTouch||this.addTouchFeed()}if(this.zingToggle){this.hmEl?this.hmEl.off("tap"):this._genericHammerEl(),this._zone.runOutsideAngular((()=>{this.hmEl.on("tap",(e=>{e.pointerType.indexOf("touch")>-1&&setTimeout((()=>{this._zone.run((()=>{this.el.nativeElement.click()}))}))}))}));let e=e=>{try{e.preventDefault()}catch(e){}};this._zone.runOutsideAngular((()=>{Qt.on(this.el.nativeElement,"touchend pointerup touchcancel pointercancel",e)})),this.specialEventsDestroy((()=>{this.el&&Qt.off(this.el.nativeElement,"touchend pointerup touchcancel pointercancel",e)}))}this.zingSlider&&this.sliderSetup(),this.onSwipeLeft.observed&&(this.hmEl&&this.hmEl.destroy(),this.hmEl=new Qt.Manager(this.el.nativeElement,{recognizers:[[Qt.Swipe,{velocity:.15,threshold:8,direction:Qt.DIRECTION_LEFT}],[Qt.Pinch,{enable:!1}],[Qt.Rotate,{enable:!1}],[Qt.Press,{enable:!1}],[Qt.Pan,{enable:!1}],[Qt.Tap,{enable:!1}]]}),this._zone.runOutsideAngular((()=>{this.hmEl.on("swipeleft",(e=>{this._zone.run((()=>{this.onSwipeLeft.emit(e)}))}))}))),this.zingAllow&&this.el.nativeElement&&(this.el.nativeElement.style.touchAction=this.zingAllow),(this.zingUrl||this.zingUrlContainer)&&(this._eventsDestroyCallbacksTrigger(),this.hmEl?this.hmEl.off("tap"):this._genericHammerEl(),this._zone.runOutsideAngular((()=>{let e=e=>{let t=this.el.nativeElement;if(this.zingUrlContainer){t=null;let n=e.target;if("a"==n.tagName.toLowerCase())t=n;else{let e=n.parentNode;for(;e&&"body"!=n.tagName.toLowerCase()&&e!=this.el.nativeElement;){if(e&&e.tagName&&"a"==e.tagName.toLowerCase()){t=e;break}e&&(e=e.parentNode)}}}if(!t)return!0;let n=t.getAttribute("href"),i=t.getAttribute("target");this.zingUrlContainerTarget&&!i&&(i=this.zingUrlContainerTarget),vt?i="_parent":gt()&&(i="_blank"),this.onTapUrl.emit(n),window.open(n,i||"_parent")},t=e=>{e.preventDefault()};this.hmEl.on("tap",e),Qt.on(this.el.nativeElement,"click",t),!this.zingUrlContainer&&this.zingUrlFeedback&&this._zone.runOutsideAngular((()=>{this.addTouchFeed()})),this.specialEventsDestroy((()=>{this.hmEl&&(this.hmEl.off("tap",e),Qt.off(this.el.nativeElement,"click",t))}))}))),this.zingTouch&&this.addTouchFeed()}ngOnDestroy(){bt()||_t()||this.hmEl&&(this.hmEl.destroy(),this.the_slider&&(this.the_slider=!1),this._eventsDestroyCallbacksTrigger(),this.hmEl=!1)}}Jt.ɵfac=function(e){return new(e||Jt)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.NgZone))},Jt.ɵdir=r["ɵɵdefineDirective"]({type:Jt,selectors:[["","zing-touch",""]],inputs:{zingToggle:"zingToggle",zingTouch:["zing-feedback","zingTouch"],zingSlider:"zingSlider",zingUrl:["zing-url","zingUrl"],zingUrlContainer:["zing-url-container","zingUrlContainer"],zingUrlContainerTarget:["zing-url-container-target","zingUrlContainerTarget"],zingUrlFeedback:["zing-url-feedback","zingUrlFeedback"],zingNoTouch:["zing-no-touch","zingNoTouch"],zingAllow:["zing-allow-action","zingAllow"],zingTapDelay:["zing-tap-delay","zingTapDelay"]},outputs:{onTap:"onTap",onTapHover:"onTapHover",onTapOutside:"onTapOutside",onTapHoverOutside:"onTapHoverOutside",onTapDoc:"onTapDoc",onSwipeLeft:"onSwipeLeft",onTapUrl:"onTapUrl",onClick:"onClick"}});class en{static get TouchGestures(){return Jt}}en.ɵfac=function(e){return new(e||en)},en.ɵmod=r["ɵɵdefineNgModule"]({type:en}),en.ɵinj=r["ɵɵdefineInjector"]({});const tn=["pageScrollEl"];let nn,rn;let sn={_isScrollable:new r.BehaviorSubject(!0),_scrollTo:new r.Subject,_onScroll:new r.ReplaySubject(1),_zenScrollRegionResolve:null,_zenScrollRegionReject:null,_zenScrollRegionGet:null};sn._zenScrollRegionGet=new Promise(((e,t)=>{sn._zenScrollRegionResolve=e,sn._zenScrollRegionReject=t}));class on{constructor(){this.onScroll=sn._onScroll}scrollTo(e){let t={timing:300,offset:0};return Object.assign(t,e),new Promise((e=>{t.onDone=e,sn._scrollTo.next(t)}))}canScroll(e){sn._isScrollable.next(e)}UseBodyScroll(){this._use_body=!0}get element(){return nn}get overwrite_to_body(){return this._use_body}get scrollable(){return sn._isScrollable.getValue()}ngOnDestroy(){sn._isScrollable.complete(),sn._onScroll.complete(),sn._scrollTo.complete()}}on.ɵfac=function(e){return new(e||on)},on.ɵprov=r["ɵɵdefineInjectable"]({token:on,factory:on.ɵfac});class an{constructor(e,t,n,i){this.el=e,this._zone=t,this._render=n,this._service=i,this.useZen=!1,this.use_body=!1,this.main_header_offset="",this._selfoffset=!1,this._subscriptions=[],this._onScroll=this._onScroll.bind(this),this._service.overwrite_to_body&&(this.use_body=!0)}get noScroll(){return this._noscroll}set noScroll(e){this._noscroll=e,this._service.element&&(e?(this._render.addClass(this._service.element,"no-scroll"),this.use_body||this._render.setStyle(this._service.element,"overflow","hidden")):(this._render.removeClass(this._service.element,"no-scroll"),this.use_body||this._render.setStyle(this._service.element,"overflow","")))}set selfoffset(e){this._selfoffset=e}get sefoffset(){return this._selfoffset}_bodyFallbackTarget(e,t=0){let n=e.getBoundingClientRect().top,i=nn.scrollTop,r=0;r=n>=t?n-t:-1*(t-n),nn.scrollTop=i+r}_bodyFallbackPosition(e){nn.scrollTop=e}_onScroll(e){this._zone.run((()=>{let e=nn.scrollTop,t=this.use_body?1/0:nn.scrollHeight-nn.clientHeight;e<0?e=0:e>t&&(e=t),sn._onScroll.next(e)}))}ngOnInit(){if(bt())this._render.removeAttribute(this.el.nativeElement,"scroll-region");else{nn=this.el.nativeElement,this.use_body&&this._service.UseBodyScroll();let e=0;this._subscriptions.push(sn._isScrollable.subscribe((t=>{t?e--:e++,e<0&&(e=0),this._zone.run((()=>{this.noScroll=!(0===e)}))}))),this.use_body?(nn=document.scrollingElement||document.documentElement,"scrollRestoration"in history&&(history.scrollRestoration="manual")):document.querySelector("html").removeAttribute("scroll-region"),(this.use_body?document.querySelector("html"):nn).setAttribute("scroll-region","active"),this._subscriptions.push(sn._scrollTo.subscribe((e=>{!e.nozen&&rn?sn._zenScrollRegionGet.then((t=>{let n=nn.getBoundingClientRect(),i=e=>{if(this._sticky_header){rn.getY()-e>25&&(e-=this._sticky_header.offsetHeight)}return e},r=()=>{It(e.onDone)&&e.onDone()};if((()=>{let e=this._selfoffset?n.top:0;t.setup(null,e)})(),e.target){let t=e.target.offsetTop,n=e.target.offsetParent;for(;n&&n!=nn;)t+=n.offsetTop,n=n.offsetParent;if(e.inview){let n=e.target.offsetHeight,i=window.innerHeight,r=n+t-i,s=nn.scrollTop;if(r>s){let n=r+10;e.timing=300*Math.min(100,n-100*s/500)/100,t=n}else if(t<=s+i)return}t=i(t),t+=e.offset||0,rn.toY(t,e.timing,r)}else e.position+=e.offset||0,e.position=i(e.position),rn.toY(e.position,e.timing,r)})):(e.target?this._bodyFallbackTarget(e.target,e.offset||0):this._bodyFallbackPosition(e.position),It(e.onDone)&&e.onDone())})))}if(sn._zenScrollRegionGet.catch((()=>{})),this.useZen&&!bt()){this._zone.runOutsideAngular((()=>{rn=f.default.createScroller(nn,300,0),sn._zenScrollRegionResolve(f.default)}));let e=!!Wt()&&{passive:!0};(this.use_body?window:nn).addEventListener("scroll",this._onScroll,e),this._onScroll(nn.scrollTop)}else sn._zenScrollRegionReject()}ngOnDestroy(){try{(this.use_body?window:nn).removeEventListener("scroll",this._onScroll)}catch(e){}bt()||((this.use_body?document.querySelector("html"):nn).removeAttribute("scroll-region"),this._zone.run((()=>{this.noScroll=!1}))),nn=null,rn=null,this._subscriptions.forEach((e=>{try{e.unsubscribe()}catch(e){}})),nn=null,rn=null,this._subscriptions.forEach((e=>{try{e.unsubscribe()}catch(e){}}))}ngAfterViewInit(){if(this.main_header_offset&&!bt())try{this._sticky_header=document.querySelector(this.main_header_offset)}catch(e){}}}an.ɵfac=function(e){return new(e||an)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.NgZone),r["ɵɵdirectiveInject"](r.Renderer2),r["ɵɵdirectiveInject"](on))},an.ɵdir=r["ɵɵdefineDirective"]({type:an,selectors:[["","scroll-region",""]],inputs:{useZen:["usezen","useZen"],use_body:["scroll-region-viewport","use_body"],main_header_offset:["scroll-region-viewport-sticky-header","main_header_offset"],selfoffset:["scroll-region-offset","selfoffset"]}});class ln{constructor(e,t,n){this._zone=t,this._service=n,this.useZen=!0,this.zenSpeed=350,this.offset=0,this.scrolled=new r.EventEmitter,this._to_me=!1,this._target=e.nativeElement}_scrollNotify(){this._zone.run((()=>{this.scrolled.emit(this._target.offsetTop-this.offset)}))}set scrollToMe(e){bt()||_t()||this._to_me===e||!e||this._scrollExecute(),this._to_me=e}get scrollToMe(){return this._to_me}_scrollExecute(){this._zone.runOutsideAngular((()=>{this._scrollArea?this._target.scrollIntoView(!0):this._service.scrollTo({target:this._target,timing:this.zenSpeed,nozen:!this.useZen,offset:this.offset}).then((()=>{this._scrollNotify()}))}))}ngAfterViewInit(){!bt()&&xt(this._scrollParent)&&(this._scrollArea=document.querySelector(this._scrollParent),this._scrollArea&&(this._scrollArea.style.scrollBehavior="smooth"))}}ln.ɵfac=function(e){return new(e||ln)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.NgZone),r["ɵɵdirectiveInject"](on))},ln.ɵdir=r["ɵɵdefineDirective"]({type:ln,selectors:[["","scroll-to",""]],inputs:{useZen:["usezen","useZen"],zenSpeed:["zenspeed","zenSpeed"],offset:["scrolloffset","offset"],_scrollParent:["scroll-parent","_scrollParent"],scrollToMe:["scroll-to","scrollToMe"]},outputs:{scrolled:"scrolled"}});class cn{constructor(e){this._el=e}_lockScroll(e){e.preventDefault()}ngOnInit(){bt()||(this._el.nativeElement.addEventListener("touchstart",this._lockScroll),this._el.nativeElement.addEventListener("touchmove",this._lockScroll))}ngOnDestroy(){if(!bt()&&this._el&&this._el.nativeElement){const e=this._el.nativeElement;e.removeEventListener("touchstart",this._lockScroll),e.removeEventListener("touchmove",this._lockScroll)}}}cn.ɵfac=function(e){return new(e||cn)(r["ɵɵdirectiveInject"](r.ElementRef))},cn.ɵdir=r["ɵɵdefineDirective"]({type:cn,selectors:[["","prevent-body-scroll",""]]});class un{constructor(e){this._service=e,this.offset=0,this.btthr=50,this.disabled=!1,this._watchers=[],this.onView=new r.EventEmitter}ngOnInit(){!bt()&&_t()}ngAfterViewInit(){let e=0,t={idx:null,pos:null};this._watchers.push(this._service.onScroll.subscribe((n=>{if(this.disabled)return;let i=window.innerHeight;this.pages.forEach(((r,s)=>{if(!r||!r.nativeElement)return!0;let o=r.nativeElement.getBoundingClientRect(),a=o.top+(this.offset||0),l=o.bottom+(this.offset||0)-(this.btthr||0);if(n>=e)t=null,a<=0&&l>0&&this.onView.emit(s);else if(l>0&&l<=i){if(null==t)t={idx:s,pos:a};else{if(s!==t.idx&&a>=t.pos)return;t={idx:s,pos:a}}this.onView.emit(s)}else t&&t.idx==s&&(t={idx:s,pos:a})})),e=n})))}ngOnDestroy(){bt()||_t()||this._watchers.length>0&&this._watchers.forEach((e=>{e.unsubscribe()}))}}un.ɵfac=function(e){return new(e||un)(r["ɵɵdirectiveInject"](on))},un.ɵdir=r["ɵɵdefineDirective"]({type:un,selectors:[["","page-scrolling-container",""]],contentQueries:function(e,t,n){if(1&e&&r["ɵɵcontentQuery"](n,tn,5),2&e){let e;r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.pages=e)}},inputs:{offset:["scrolloffset","offset"],btthr:["bottom-threshold","btthr"],disabled:["pg-sc-container-disabled","disabled"]},outputs:{onView:"onView"}});class hn{}hn.ɵfac=function(e){return new(e||hn)},hn.ɵmod=r["ɵɵdefineNgModule"]({type:hn}),hn.ɵinj=r["ɵɵdefineInjector"]({imports:[r.CommonModule]});const dn={RETURN_DOM_FRAGMENT:!1,RETURN_DOM:!1,USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOW_UNKNOWN_PROTOCOLS:!0,KEEP_CONTENT:!0,ADD_TAGS:["meta","noscript","iframe"],ADD_ATTR:["content","itemprop","itemtype","itemscope","id","name","target"]};function mn(e,t=dn){let n=Object.assign(Dt(dn),t);return bt()?e:v.default.sanitize(e,n)}class pn{constructor(e,t){this.el=e,this.renderer=t,this._hidden=!1,this.onHide=new r.EventEmitter}set hidden(e){this.el.nativeElement,e?this.renderer.setAttribute(this.el.nativeElement,"hidden","true"):this.renderer.removeAttribute(this.el.nativeElement,"hidden");let t=this._hidden;this._hidden=e,bt()||t==e||Ut((()=>{this.onHide.emit(e)}))}get hidden(){return this._hidden}}pn.ɵfac=function(e){return new(e||pn)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.Renderer2))},pn.ɵdir=r["ɵɵdefineDirective"]({type:pn,selectors:[["","ng-hidden",""]],inputs:{hidden:["ng-hidden","hidden"]},outputs:{onHide:"onHide"}});class gn{constructor(e,t){this._el=e,this._renderer=t,this._ready=!1}set cond(e){this._cond=e,this._ready&&this._SetAttr()}get cond(){return this._cond}_SetAttr(){Tt(this.attributes)?this._cond?this.attributes.forEach((e=>{this._renderer.setAttribute(this._el.nativeElement,e.attribute,e.value)})):this.attributes.forEach((e=>{this._renderer.removeAttribute(this._el.nativeElement,e.attribute)})):Ft(this.attributes)&&Lt(this.attributes,((e,t)=>{this._cond?this._renderer.setAttribute(this._el.nativeElement,t,e):this._renderer.removeAttribute(this._el.nativeElement,t)}))}ngOnInit(){this._SetAttr(),this._ready=!0}}gn.ɵfac=function(e){return new(e||gn)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.Renderer2))},gn.ɵdir=r["ɵɵdefineDirective"]({type:gn,selectors:[["","ng-attribute",""]],inputs:{attributes:["ng-attribute","attributes"],cond:["ng-attribute-when","cond"]}});class fn{transform(e,t="",n=0,i=!1,r=!1){let s=Pt(e);if(!kt(s))return i?"N/A":"";if(r){let e=!isNaN(n=Math.abs(n))&&n>0?Math.pow(10,n):1;s=Math.floor(s*e)/e}return Ct(s,n,t)}}fn.ɵfac=function(e){return new(e||fn)},fn.ɵpipe=r["ɵɵdefinePipe"]({name:"moneyformat",type:fn,pure:!0});class vn{transform(e){return((t=e)?Ot(t.toString()):"").replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3");var t}}vn.ɵfac=function(e){return new(e||vn)},vn.ɵpipe=r["ɵɵdefinePipe"]({name:"phoneformat",type:vn,pure:!0});class bn{constructor(e,t){this._el=e,this._renderer=t,this.settings=dn,this._initiated=!1}_bindHTML(e){this._html=mn(e,this.settings),this._renderer.setProperty(this._el.nativeElement,"innerHTML",this._html)}set cleanHTML(e){this._initiated?this._bindHTML(e):this._html=e}get cleanHTML(){return this._html}ngOnInit(){this._html&&this._bindHTML(this._html),this._initiated=!0}}bn.ɵfac=function(e){return new(e||bn)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.Renderer2))},bn.ɵdir=r["ɵɵdefineDirective"]({type:bn,selectors:[["","cleanHTML",""]],inputs:{settings:["cleanHTML-sett","settings"],cleanHTML:"cleanHTML"}});class yn{constructor(e,t,n){this._sanitizer=e,this._el=t,this._renderer=n}set ngcontext(e){if(bt())this._renderer.setProperty(this._el.nativeElement,"innerHTML",mn(e));else{const t=this._sanitizer.sanitize(r.SecurityContext.HTML,(e||"").toString());this._el.nativeElement.innerHTML=t,this._el.nativeElement.innerHTML=this._el.nativeElement.textContent}}}yn.ɵfac=function(e){return new(e||yn)(r["ɵɵdirectiveInject"](r.DomSanitizer),r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.Renderer2))},yn.ɵdir=r["ɵɵdefineDirective"]({type:yn,selectors:[["","ng-context",""]],inputs:{ngcontext:["ng-context","ngcontext"]}});class _n{constructor(e,t){this._el=e,this._renderer=t}set ng_svg(e){if(this._svg_attrs=e,this._el&&this._el.nativeElement){let t=this._el.nativeElement;Lt(e,((e,n)=>{e?this._renderer.setAttribute(t,n,e):this._renderer.removeAttribute(t,n)}))}}get ng_svg(){return this._svg_attrs}}_n.ɵfac=function(e){return new(e||_n)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.Renderer2))},_n.ɵdir=r["ɵɵdefineDirective"]({type:_n,selectors:[["","ng-svg-attr",""]],inputs:{ng_svg:["ng-svg-attr","ng_svg"]}});class wn{transform(e,t=1,n=!1){return function(e,t=1,n=!1){let i=!1,r="";return e<0&&(i=!0),r=(e=Math.abs(e))>=1e9?n?(Math.floor(e/1e8)/10).toString().replace(/\.0$/,"")+"g":(e/1e9).toFixed(t).replace(/\.0$/,"")+"g":e>=1e6?n?(Math.floor(e/1e5)/10).toString().replace(/\.0$/,"")+"m":(e/1e6).toFixed(t).replace(/\.0$/,"")+"m":e>=1e3?n?(Math.floor(e/100)/10).toString().replace(/\.0$/,"")+"k":(e/1e3).toFixed(t).replace(/\.0$/,"")+"k":e.toString(),i&&(r="-"+r),r}(e,t,n)}}wn.ɵfac=function(e){return new(e||wn)},wn.ɵpipe=r["ɵɵdefinePipe"]({name:"formatnr",type:wn,pure:!0});class Sn{constructor(e,t){this.el=e,this.renderer=t,this._hidden=!1,this.onHide=new r.EventEmitter,this.tabindex="0"}set hidden(e){let t=this.el.nativeElement;e?(this.renderer.setAttribute(t,"aria-hidden","true"),this.renderer.setAttribute(t,"tabindex","-1")):(this.renderer.removeAttribute(t,"aria-hidden"),this.notab?this.renderer.removeAttribute(t,"tabindex"):this.renderer.setAttribute(t,"tabindex",this.tabindex));let n=this._hidden;this._hidden=e,bt()||n==e||Ut((()=>{this.onHide.emit(e)}))}get hidden(){return this._hidden}}Sn.ɵfac=function(e){return new(e||Sn)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.Renderer2))},Sn.ɵdir=r["ɵɵdefineDirective"]({type:Sn,selectors:[["","ng-aria-hidden",""]],inputs:{tabindex:"tabindex",notab:["no-tab","notab"],hidden:["ng-aria-hidden","hidden"]},outputs:{onHide:"onHide"}});class En{constructor(e,t){this._el=e,this._renderer=t,this.type="self"}ngAfterViewChecked(){if(bt())return;const e=[],t=this._el.nativeElement;if(this.type){for(var n=0,i=t.childNodes.length;n<i;n++){let i=t.childNodes[n],r="";1==i.nodeType?r=i.hasAttribute("aria-label")?St(i.getAttribute("aria-label")):St(i.innerText):3==i.nodeType&&(r=St(i.wholeText)),r&&e.push(r)}this._renderer.setAttribute(this._el.nativeElement,"aria-label",e.join("self"==this.type?" ":". "))}}}En.ɵfac=function(e){return new(e||En)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.Renderer2))},En.ɵdir=r["ɵɵdefineDirective"]({type:En,selectors:[["","ng-aria-label-self",""]],inputs:{type:["ng-aria-label-self","type"]}});class xn{constructor(e,t){this._el=e,this._renderer=t,this._speak="header",this.ngSpeakTabindex=0,this._cond=!0,this._ready=!1,bt()||(this._isIOS=(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream)}set cond(e){this._cond=e,this._ready&&this._iFocus()}get cond(){return this._cond}_iFocus(){if(bt())return;let e=this._speak,t=0==e||"header"==e?0:e,n=kt(t)?t:1,i=this._el.nativeElement,r=this.ngSpeakTabindex.toString();"header"==e?this._isIOS?(document.activeElement&&document.activeElement.blur&&document.activeElement.blur(),i.blur(),this._renderer.setAttribute(i,"tabindex","1"),i.focus(),setTimeout((()=>{i.focus(),this._renderer.setAttribute(i,"tabindex",r)}),300)):(this._renderer.setAttribute(i,"tabindex",r),setTimeout((()=>{i.focus()}),300)):0==n||1==n?(this._isIOS&&document.activeElement&&document.activeElement.blur&&document.activeElement.blur(),this._renderer.setAttribute(i,"tabindex",r),i.focus(),setTimeout((()=>{i.focus()}))):this._renderer.setAttribute(i,"tabindex",r)}ngOnInit(){this._cond&&this._iFocus(),this._ready=!0}}xn.ɵfac=function(e){return new(e||xn)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.Renderer2))},xn.ɵdir=r["ɵɵdefineDirective"]({type:xn,selectors:[["","ng-speak",""]],inputs:{_speak:["ng-speak","_speak"],ngSpeakTabindex:["ng-speak-tab-index","ngSpeakTabindex"],cond:["ng-speak-when","cond"]}});class On{constructor(e,t,n){this._el=e,this._zone=t,this._renderer=n,this._timer=null,this.is_android=!1,this.type="assertive"}set text(e){this._text=e,bt()||_t()||this._el&&this._el.nativeElement&&this._zone.runOutsideAngular((()=>{clearTimeout(this._timer),this._timer=setTimeout((()=>{this._renderer.setProperty(this._el.nativeElement,"innerHTML",this.text),this.is_android?this._renderer.setAttribute(this._el.nativeElement,"aria-label",this.text):(this._renderer.setAttribute(this._el.nativeElement,"tabindex","-1"),this._renderer.setStyle(this._el.nativeElement,"display","none"),this._renderer.setStyle(this._el.nativeElement,"display","inline"))}))}))}get text(){return this._text}ngOnInit(){bt()||(this.is_android=null!=navigator.userAgent.match(/Android/i)||navigator.platform&&null!=navigator.platform.match(/Android/i))}ngAfterViewInit(){this._renderer.setAttribute(this._el.nativeElement,"aria-live",this.type),this._renderer.setAttribute(this._el.nativeElement,"aria-atomic","true"),this._renderer.setAttribute(this._el.nativeElement,"role","status"),bt()||this.is_android&&(this._renderer.setAttribute(this._el.nativeElement,"aria-hidden","true"),this._renderer.setAttribute(this._el.nativeElement,"tabindex","-1"))}}On.ɵfac=function(e){return new(e||On)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.NgZone),r["ɵɵdirectiveInject"](r.Renderer2))},On.ɵdir=r["ɵɵdefineDirective"]({type:On,selectors:[["","ng-aria-live",""]],hostVars:2,hostBindings:function(e,t){2&e&&r["ɵɵclassProp"]("a11y-visually-hidden",!0)},inputs:{type:["live-type","type"],text:["ng-aria-live","text"]}});class kn{constructor(e,t){this._el=e,this._render=t,this._txt=""}set aria_text(e){this._txt=e,this._el&&this._el.nativeElement&&this._render.setAttribute(this._el.nativeElement,"aria-label",this._txt)}get aria_text(){return this._txt}ngOnInit(){this._render.setAttribute(this._el.nativeElement,"role","text")}ngAfterViewInit(){this._txt&&this._render.setAttribute(this._el.nativeElement,"aria-label",this._txt)}}kn.ɵfac=function(e){return new(e||kn)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.Renderer2))},kn.ɵdir=r["ɵɵdefineDirective"]({type:kn,selectors:[["","ng-aria-text",""]],inputs:{aria_text:["ng-aria-text","aria_text"]}});class Pn{constructor(e){this._injector=e,this._injector}static forRoot(){return{ngModule:Pn,providers:[on]}}}Pn.ɵfac=function(e){return new(e||Pn)(r["ɵɵinject"](r.Injector))},Pn.ɵmod=r["ɵɵdefineNgModule"]({type:Pn}),Pn.ɵinj=r["ɵɵdefineInjector"]({imports:[r.CommonModule,en,en]});let Cn,Tn={method:"POST",url:null,retry:0,needs_session:!1,expectedType:"json",data:{},query:{},headers:{"Content-Type":"application/json;charset=UTF-8"},events:!0,id:null,xsrf:!0,silent:!1},Nn={dev:"efdevhub.info",prod:"wallethub.com",web:"/",local:"wallethub.local",get internet_base(){return"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/6.0.0/sanitize.min.css"},get internet(){return Nn.internet_base+"?stamp="+$t()},updates:{dev:"https://cfdevcdn.s3.amazonaws.com/wallethub-ng2/updates.json?stamp="+$t(),prod:"https://efstatic.s3.amazonaws.com/wallethub-ng2/updates.json?stamp="+$t(),get backup(){return Fn()+"wp-content/uploads/app-ng2/updates.json?stamp="+$t()}},get webrpcpath(){return"home/rpc"},get mobilerpcpath(){return"home/mobile-rpc"}},In=new RegExp("^(?:[a-z]+:)?//","i");function Fn(e){return e&&(Cn=e,In.test(Cn)||Cn===Nn.web||(Cn="https://"+Cn)),Cn}let An="home/rpc";function Ln(e){return e&&(An=e),Fn()+"/"+An}let Vn="ajax.php";function zn(e){return e&&(Vn=e),Fn()+"/"+Vn}var Mn=new class{constructor(){this.events={},this.replayevents={}}eventGetorCreate(e){return this.events[e]||(this.replayevents[e]?this.events[e]=new r.ReplaySubject(1,kt(this.replayevents[e])?this.replayevents[e]:999999999):this.events[e]=new r.Subject),this.events[e]}keepValueFor(e,t){this.replayevents[e]=t||!0}subscribe(e,t,n,i,r=[]){let s,o=this.eventGetorCreate(e);return s=o.pipe.apply(o,r).subscribe({next:t,error:n,complete:()=>{i&&i(),s&&s.unsubscribe()}}),s}emit(e,t,n){if(n&&!this.events[e])return;this.eventGetorCreate(e).next(t)}terminate(e){let t;this.events[e]&&(t=this.events[e],t.complete(),delete this.events[e],this.replayevents[e]&&delete this.replayevents[e])}clear(){Lt(this.events,(e=>{e.complete()})),this.events={},this.replayevents={}}};let Dn,Rn,Bn=r.ajax;function jn(e){let t;e.progressSubscriber&&(t=e.progressSubscriber,delete e.progressSubscriber);let n=Mt(Tn,e,!0);t&&(n.progressSubscriber=t);let i,r,s,o=Bn,a=new Promise((function(e,t){i=e,r=t})),l={crossDomain:!0,responseType:"text",method:n.method||"POST",url:n.url||Ln(),headers:n.headers,timeout:3e4,async:!0,withCredentials:!1};"blob"==n.expectedType&&(l.responseType="blob"),n.timeout&&(l.timeout=n.timeout);let c=n.query;if("POST"==n.method){l.body=n.data;let e=l.headers||{},t=e["Content-Type"]||e["content-type"];!gt()&&t&&t.indexOf("application/x-www-form-urlencoded")>-1&&(l.body=At(n.data))}else c=Object.assign({},c,n.data);if(Object.keys(c).length>0){let e=At(c);l.url+="?"+e}let u=function(e){let t=o(l).subscribe({next:function(e){if(setTimeout((()=>{t&&t.unsubscribe()})),!i)return;let s={};if("json"==n.expectedType)try{s=JSON.parse(e.response)}catch(t){s={error:!0,message:"malformated json",raw:e.response}}else s=e.response;let o={};try{o=e.headers||e.xhr.getAllResponseHeaders().split("\r\n").reduce((function(e,t){var n=t.split(":");return e[n[0]]=n[1],e}),{})}catch(e){}s&&"malformated json"==s.message&&"json"==n.expectedType?r({status:200,type:s.message,data:s.raw,headers:o}):i({data:s,status:e.status,headers:o})},error:function(i){if(setTimeout((()=>{t&&t.unsubscribe()})),!r)return;let s=i.xhr&&i.xhr.response||"",o={};try{o=i.headers||i.xhr.getAllResponseHeaders().split("\r\n").reduce((function(e,t){var n=t.split(":");return e[n[0]]=n[1],e}),{})}catch(e){}if(-999==i.status)return n.events&&Mn.emit("$device:insecure"),void r({status:n.events?-1:-10,type:i.type,data:s,headers:o});if(403==i.status)r({status:i.status,type:i.type,data:s,headers:o});else if(i.status&&i.status>=500&&i.status<512)e?r({status:i.status,type:i.type,data:"internal error",headers:o}):u(!0);else{if(!r)return;e||i.status>399&&i.status<512?r({status:i.status,type:i.type,data:s,headers:o}):function(){let e=Bn;return new Promise((function(t,n){let i=e({crossDomain:!0,method:"GET",url:Nn.internet,timeout:15e3,responseType:"text",async:!0,withCredentials:!1,headers:{}}).subscribe({next:function(){t(null),i&&i.unsubscribe()},error:function(e){console.log(e),n(),setTimeout((()=>{i&&i.unsubscribe()}))}})}))}().then((function(){r&&(e?r({status:i.status,type:i.type,data:s,headers:o}):u(!0))}),(function(){r&&(n.events&&Mn.emit("$device:no-internet"),r({status:n.events?-1:-10,type:i.type,data:s,headers:o}))}))}}});s=function(){r=null,i=null,a=null,t&&(t.unsubscribe(),t=null),Rn===s&&(Rn=null)},Rn=s};return u(),a.then((function(){Rn===s&&(Rn=null)}),(function(){Rn===s&&(Rn=null)})),a}function $n(){return Rn}function Un(e){return new Promise((function(t,n){Bn({crossDomain:!0,responseType:"json",method:"GET",url:e}).subscribe({next:function(e){t(Ft(e.response)?e.response:null)},error:function(e){t({status:e.status,type:e.type,data:e.xhr&&e.xhr.response||""})}})}))}Mn.subscribe("$server:captcha-block",(function(e){if(Dn)return!1;Dn=!0}));const Wn=new class{constructor(){this._memstorage={},this.enabled||this.useMemory(!0)}get _storage(){return document.cookie}set _storage(e){document.cookie=e}useMemory(e){this._usememstorage=e,e||(this._memstorage={})}clearMemory(){this._memstorage={}}get(e){if(this._usememstorage||document.cookie){if(this._usememstorage)return this._memstorage[e];for(var t=this._storage.split(";"),n=e+"=",i=0;i<t.length;i++){for(var r=t[i];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(n))return decodeURIComponent(r.substring(n.length,r.length))}}}asyncget(e){if(gt()){const t=wt()?"efdevhub.info":"wallethub.com";return new Promise((n=>{window.top.sslHTTP.getCookies(t,(function(t){t[e]?n("value"in t[e]?t[e].value:t[e].Value):n(null)}),(function(){n(null)}))}))}return Promise.resolve(this.get(e))}set(e,t,n){if(gt()&&!this._usememstorage&&console.warn("Cannot set cookies in a cordova app, memory will be used instead"),this._usememstorage&&-1==n)delete this._memstorage[e];else if(this._usememstorage){let n;if(Ft(t)||Tt(t))try{n=JSON.stringify(t)}catch(e){}else n=It(t)?"":t;this._memstorage[e]=n}else{let i,r=new Date;0===n?i='expires=""':(n||(n=0),r.setTime(r.getTime()+24*n*60*60*1e3),i="expires="+r.toUTCString()),this._storage=e+"="+t+"; "+(this._usememstorage?"":i+"; path=/; secure; domain=."+window.location.hostname||window.location.host)}}get enabled(){return!bt()&&!1!==navigator.cookieEnabled&&(document.cookie="testcookie=1",-1!=document.cookie.indexOf("testcookie"))}remove(e){this.set(e,"",-1)}};var Hn,Gn={};function qn(e){let t=e;t.xsrf="xsrf"in t?t.xsrf:Tn.xsrf,t.method="method"in t?t.method:Tn.method,t.headers="headers"in t?t.headers:Tn.headers,t.data=t.data||{},t.events="events"in t?t.events:Tn.events,t.silent&&(t.events=!1);let n=t.id||$t(),i=t.retry||0;return null!==n&&Gn[n]&&(Gn[n](),delete Gn[n],n==Hn&&(Hn=null)),new Promise((function(e,r){let s=!1,o=!0;if(It(t.before)&&(o=t.before(),Bt(o)&&(o=!0)),!o)return null;var a=()=>{It(t.after)&&t.after()},l=t=>{e(t),a()},c=e=>{r(e),a()};let u=function(){var e,i,r;(e=n,i=t,r=s,!i||"GET"!=i.method&&i.xsrf?Wn.asyncget("XSRF-TOKEN").then((t=>r||!t?new Promise((function(t,n){(function(e,t){return Zn||(Qn=!0,Zn=new Promise((function(n,i){let r=function(s){jn({url:Fn()+"/sid.php",data:{a:"1",buster:$t()},method:"GET",events:!t||void 0===t.events||t.events}).then((function(t){if(Qn=!1,!e||Gn[e]){var o=t.data;if(!o.error&&o&&Ft(o))if(o.__whid){let e=o.__whid;Mn.emit("$server:whid",e),n(e)}else s?i({status:-1,type:"whiderror",data:o}):r(!0);else s?i({status:-1,type:"whiderror",data:o}):r(!0)}else Zn=!1}),(function(t){Zn=!1,Qn=!1,e&&!Gn[e]||(Rt(t.status,[-1,-10,999])?i(t):i({status:-1,type:"whiderror",data:t}))}))};r(),e&&(Gn[e]=$n())}))),Zn})(e,i).then((function(r){let s=function(o){jn({data:{action:"get-csrf-token",buster:$t()},headers:{"X-XSRF-WHID":r,"Content-Type":"text/html; charset=utf-8"},method:"GET",expectedType:"text",events:!i||void 0===i.events||i.events}).then((function(i){if(!e||Gn[e]){var a=i.data;xt(a)?t({token:a,whid:r}):o?n({status:400,type:"csrferror",data:a}):s(!0)}}),(function(t){e&&!Gn[e]||(Rt(t.status,[-1,-10,999])?n(t):n({status:400,type:"csrferror",data:t}))}))};s(),e&&(Gn[e]=$n())}),(function(e){n(e)})),e&&(Gn[e]=$n())})):Promise.resolve({token:t}))):new Promise((function(e){e({})}))).then((function(e){e.token&&(t.headers["X-XSRF-TOKEN"]=e.token),e.whid&&(t.headers["X-XSRF-WHID"]=e.whid),s&&(t.headers["X-XSRF-RETRY"]="1"),jn(t).then((function(e){if(!Gn[n])return;let i={data:null,headers:e.headers||{}};e.data&&e.data.maintainance?(t.events&&Mn.emit("$server:maintainance"),t.silent?l({error:!0}):(i.data={status:-1,type:"maintainance",data:null},c(t.readheaders?i:i.data))):e.data&&e.data.apiblocked?(t.events&&Mn.emit("$api:banned"),t.silent?l({error:!0}):(i.data={status:-1,type:"banned",data:null},c(t.readheaders?i:i.data))):(i.data=e.data,l(t.readheaders?i:i.data)),delete Gn[n],n==Hn&&(Hn=null)}),h),Gn[n]=$n()}),(function(e){Gn[n]&&h(e)})),"POST"===t.method&&t.xsrf||(Gn[n]=$n()),Hn=n},h=function(e){if(!Gn[n])return;if(-999==e.status||-10==e.status)return e.status=-10,t.silent?l({error:!0}):c(e),delete Gn[n],n==Hn&&(Hn=null),!1;let r={status:e.status,options:t};if(403==e.status&&"captcha block"!==e.type&&t.events)Mn.emit("$server:banned"),e.type="banned",e.httpstatus=e.status,e.status=-1;else{if(400!==e.status&&i>0)return i--,u(),!1;if(e.status&&(e.status>=404&&e.status<409||e.status>=500&&e.status<512)&&t.events)Mn.emit("$server:error",r),e.type="failed request",e.httpstatus=e.status,e.status=-1;else{if(400==e.status&&t.xsrf&&!s)return s=!0,u(),!1;!t.silent&&t.events&&("csrferror"==e.type?(Mn.emit("$server:csrferror",r),e.httpstatus=e.status,e.status=-1,e.type="failed request"):"whiderror"==e.type&&(Mn.emit("$server:whiderror",r),e.httpstatus=e.status,e.status=-1,e.type="failed request"))}}t.silent||c(e),delete Gn[n],n==Hn&&(Hn=null),t.silent&&l({error:!0})};u()}))}function Kn(e){void 0!==e?Gn[e]&&(Gn[e](),delete Gn[e],Hn==e&&(Hn=null),Qn&&Yn()):Hn&&Gn[Hn]&&(Gn[Hn](),delete Gn[Hn],Hn=null,Qn&&Yn())}let Zn,Qn;function Yn(){Zn=!1,Qn=!1}function Xn(){return document.querySelector("web-app #web-app")||document.querySelector("#web-app")}const Jn=new class{constructor(){let e;this._storage=null,this._oldStorage=null,this._types=[".json",".string",".number",".boolean"],this._group="";try{this._storage=!bt()&&"localStorage"in window?window.localStorage:null,e=!0}catch(e){this.useMemory(!0)}if(!bt()){try{window.localStorage.setItem("test","test"),window.localStorage.removeItem("test")}catch(e){this.useCookieStorage()}if(e&&this._storage==window.localStorage){let e,t=this._storage.getItem("_expirations.json")||null,n=new Date;if(t)try{e=JSON.parse(t),Lt(e,((t,i)=>{if(!t)return!0;for(var r,s=0;s<this._types.length;s++){if(this._storage.getItem(i+this._types[s])){r=!1,n.getTime()-t.since>=t.in&&(this._storage.removeItem(i+this._types[s]),delete e[i]);break}r=!0}r&&delete e[i]}));this._storage.setItem("_expirations.json",JSON.stringify(e))}catch(e){}}}}useCookieStorage(){Wn&&Wn.enabled?(this._storage={setItem:function(e,t,n){Wn.set(e,t,n)},removeItem:function(e){document.cookie=e+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;"},getItem:function(e){return Wn.get(e)}},this.isExpired=()=>(console.warn("not available for cookies"),0),this.removeGroup=e=>{Nt(function(){for(var e=document.cookie.split(";"),t=[],n=1,i=e.length;n<=i;n++)t[n-1]=St(e[n-1]);return t}(),((t,n)=>{0==t.indexOf(e+"_")&&this._storage.removeItem(t.split("=")[0])}))}):this.useMemory(!0)}useSession(e){this._storage=e?window.sessionStorage:window.localStorage}useMemory(e){if(e&&!this._oldStorage){this._oldStorage=this._storage;let e={_data:{},setItem:(e,t)=>this._storage._data[e]=String(t),getItem:e=>this._storage._data[e],removeItem:e=>delete this._storage._data[e],clear:()=>this._storage._data={}};this._storage=e}else e||(this._storage=this._oldStorage,this._oldStorage=null,this._storage||(this._storage=!bt()&&"localStorage"in window?window.localStorage:null))}clearMemory(){this._storage&&this._storage.clear&&this._storage.clear()}get(e){var t,n,i=e;e=this._group+e;for(var r=0;r<this._types.length;r++){let s=this._types[r];if(this._storage.getItem(e+s)){if(this.isExpired(i))return void this._storage.removeItem(e+s);switch(s){case this._types[0]:case this._types[3]:t=JSON.parse(this._storage.getItem(e+s)),n=!0;break;case this._types[1]:t=this._storage.getItem(e+s),n=!0;break;case this._types[2]:t=parseFloat(this._storage.getItem(e+s)),n=!0}break}}return!n&&xt(this._storage.getItem(e))&&(t=this._storage.getItem(e)),t="undefined"==t||null==t?void 0:"true"==t||"false"!=t&&t}set(e,t,n){var i=e,r="";if("expirations"==e)return!1;e=this._group+e,Ft(t)||Tt(t)?(t=JSON.stringify(t),r=this._types[0]):kt(t)?(t=t.toString(),r=this._types[2]):"boolean"==typeof t?(t=t.toString(),r=this._types[3]):r=this._types[1];for(var s=0,o=this._types.length;s<o;s++)if(this._storage.getItem(e+this._types[s])){this._storage.removeItem(e+this._types[s]);break}try{this._storage.setItem(e+r,t)}catch(e){console.warn(e)}n&&this.expire(i,n)}remove(e){e=this._group+e;for(var t=0,n=this._types.length;t<n;t++)this._storage.getItem(e+this._types[t])&&this._storage.removeItem(e+this._types[t])}expire(e,t){var n,i=this._storage.getItem("_expirations.json")||null;try{(n=JSON.parse(i))||(n={})}catch(e){n={}}n[this._group+e]={in:t,since:(new Date).getTime()},this._storage.setItem("_expirations.json",JSON.stringify(n))}getExpiration(e){var t=this._storage.getItem("_expirations.json")||!1;if(!t)return null;try{if(!(t=JSON.parse(t)))return null}catch(e){return null}return t[this._group+e]||null}isExpired(e,t){var n=this.getExpiration(e);if(null===n)return 0;let i=(new Date).getTime()-n.since;return i>=n.in?1:t?n.in-i:0}group(e){if(null==e){let e=this._group;return e&&(e=e.substring(0,e.length-1)),e}!1===e&&(this._group=""),this._group=e+"_"}removeGroup(e){Nt(Object.keys(this._storage)||[],(t=>{0===t.indexOf(e)&&this._storage.removeItem(t)}))}};function ei(e){if(bt())return e;let t=document.createTextNode(e.toString()),n=document.createElement("p");return n.appendChild(t),n=n.innerHTML,n}const ti=new class{constructor(){this.store={},this.groups={}}getKey(e){return this.store[e]}setKey(e,t){this.store[e]=t}group(e,t,n){if(t&&!Ft(t)&&!Tt(t))throw new TypeError("Data provided is not a plain object or array");return t&&(this.groups[e]=n?JSON.parse(JSON.stringify(t)):t),this.groups[e]||(this.groups[e]={}),this.groups[e]}hasGroup(e){return this.groups.hasOwnProperty(e)}clearKey(e){this.store.hasOwnProperty(e)&&delete this.store[e]}clearGroup(e){"all"==e?this.groups={}:this.groups.hasOwnProperty(e)&&delete this.groups[e]}clearAll(){this.store={},this.groups={}}pageLoadPopulate(){if(!bt())try{let e=document.querySelectorAll('script[type="application/json"][id*="jsondata-"]');if(e.length>0)for(let t=0,n=e.length;t<n;t++){let n,i=e[t],r=i.id.replace("jsondata-","");if(r){try{n=JSON.parse(i.innerHTML)}catch(e){console.warn("could not parse data for "+r)}n&&(this.groups[r]=n)}i.parentNode.removeChild(i)}}catch(e){console.error(e)}}};class ni{constructor(e,t,n){this._el=e,this._zone=t,this._renderer=n,this.no_click=!1,this.scrollto=!1,this.inner_focus=!1,this._zenscroll=!1,this.tabindex="-1"}set focus(e){this._focus=e,e&&!bt()&&this._el&&this._el.nativeElement&&this._el.nativeElement.focus&&this._FocusScroll()}get focus(){return this._focus}set zenscroll(e){this._zenscroll=e,this.scrollto=e}get zenscroll(){return this._zenscroll}_FocusScroll(){if(!this._ready)return;let e=document.activeElement;if(e&&e.blur&&Rt(e.tagName.toLowerCase(),["input","select","button","textarea"])&&e.blur(),this._el&&this._el.nativeElement)try{let e=this._el.nativeElement;if(this.inner_focus){let t=0;for(e.childNodes.length;t<length;t++){let n=e.childNodes[t];if(1==n.nodeType){e=n;break}}}"empty"==this.tabindex?this._renderer.removeAttribute(e,"tabindex"):this._renderer.setAttribute(e,"tabindex",this.tabindex),this.no_click||e.click(),e.focus(),setTimeout((()=>{e.focus()}))}catch(e){}this._zone.runOutsideAngular((()=>{const e={zen:rn,body:nn};this.scrollto&&setTimeout((()=>{Ut((()=>{let t=.42*window.innerHeight,n=this._el.nativeElement.getBoundingClientRect().top,i=Math.round(t-n);e.zen&&this.zenscroll?e.zen.toY(e.body.scrollTop-i,300):e.body?e.body.scrollTop-=i:window.scrollTo(window.screenX,window.scrollY-i)}))}))}))}ngOnInit(){this._ready=!0,bt()||this._focus&&this._el&&this._FocusScroll()}}ni.ɵfac=function(e){return new(e||ni)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.NgZone),r["ɵɵdirectiveInject"](r.Renderer2))},ni.ɵdir=r["ɵɵdefineDirective"]({type:ni,selectors:[["","ng-focus",""]],inputs:{focus:["focus-when","focus"],no_click:["no-click","no_click"],scrollto:["focus-scroll","scrollto"],inner_focus:["inner-focus","inner_focus"],zenscroll:["focus-zen-scroll","zenscroll"],tabindex:"tabindex"}});class ii{}ii.ɵfac=function(e){return new(e||ii)},ii.ɵmod=r["ɵɵdefineNgModule"]({type:ii}),ii.ɵinj=r["ɵɵdefineInjector"]({imports:[r.CommonModule]});const ri=["searchInput"],si=["mobilebg"],oi=["mobilemenu"],ai=["mobilebg2"],li=["mobilemenu2"],ci=["loansList"],ui=["bankList"],hi=["compList"],di=["toolsList"],mi=["userList"],pi=["moreList"],gi=["cardsList"];function fi(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"span",78),r["ɵɵlistener"]("onTap",(function(t){r["ɵɵrestoreView"](e);const n=r["ɵɵnextContext"]();return r["ɵɵresetView"](n.disableSearch(t))})),r["ɵɵelementEnd"]()}}function vi(e,t){1&e&&(r["ɵɵelementStart"](0,"div",79),r["ɵɵelement"](1,"span",80),r["ɵɵelementEnd"]())}function bi(e,t){1&e&&(r["ɵɵelementStart"](0,"button",81),r["ɵɵtext"](1,"Search"),r["ɵɵelementEnd"]())}function yi(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"button",82),r["ɵɵlistener"]("onTap",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.disableMobSearch())})),r["ɵɵtext"](1,"Cancel"),r["ɵɵelementEnd"]()}}function _i(e,t){1&e&&(r["ɵɵelementStart"](0,"button",83),r["ɵɵtext"](1,"Search"),r["ɵɵelementEnd"]())}function wi(e,t){1&e&&r["ɵɵelement"](0,"span",100)}function Si(e,t){1&e&&r["ɵɵelement"](0,"span",101)}function Ei(e,t){1&e&&r["ɵɵelement"](0,"span",102)}function xi(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div",96),r["ɵɵtemplate"](1,wi,1,0,"span",97),r["ɵɵtemplate"](2,Si,1,0,"span",98),r["ɵɵtemplate"](3,Ei,1,0,"span",99),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"](2).$implicit;r["ɵɵproperty"]("ngSwitch",e.label),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngSwitchCase","Answer"),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngSwitchCase","Glossary"),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngSwitchCase","Article")}}function Oi(e,t){if(1&e&&r["ɵɵelement"](0,"div",103),2&e){const e=r["ɵɵnextContext"](2).$implicit;r["ɵɵproperty"]("ngClass",e.icon)}}function ki(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div",104),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"](2).$implicit;r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.symbol)}}function Pi(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div",105),r["ɵɵelement"](1,"img",106),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"](2).$implicit;r["ɵɵadvance"](1),r["ɵɵproperty"]("src",e.image,r["ɵɵsanitizeUrl"])}}function Ci(e,t){if(1&e&&r["ɵɵelement"](0,"span",107),2&e){const e=r["ɵɵnextContext"](2).$implicit;r["ɵɵproperty"]("innerHtml",e.username,r["ɵɵsanitizeHtml"])}}function Ti(e,t){if(1&e&&r["ɵɵelement"](0,"div",107),2&e){const e=r["ɵɵnextContext"](2).$implicit;r["ɵɵproperty"]("innerHtml",e.label,r["ɵɵsanitizeHtml"])}}function Ni(e,t){if(1&e&&(r["ɵɵelementContainerStart"](0),r["ɵɵtemplate"](1,xi,4,4,"div",90),r["ɵɵtemplate"](2,Oi,1,1,"div",91),r["ɵɵtemplate"](3,ki,2,1,"div",92),r["ɵɵtemplate"](4,Pi,2,1,"div",93),r["ɵɵelementStart"](5,"div"),r["ɵɵelement"](6,"span",94),r["ɵɵtemplate"](7,Ci,1,1,"span",95),r["ɵɵelementEnd"](),r["ɵɵtemplate"](8,Ti,1,1,"div",95),r["ɵɵelementContainerEnd"]()),2&e){const e=r["ɵɵnextContext"]().$implicit;r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf","Other"==e.category),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",e.icon),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",e.symbol),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",e.image&&!e.icon),r["ɵɵadvance"](2),r["ɵɵproperty"]("innerHtml",e.name,r["ɵɵsanitizeHtml"]),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",e.username),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",e.label)}}function Ii(e,t){if(1&e&&(r["ɵɵelementStart"](0,"span",108),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]().$implicit;r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.cat)}}const Fi=function(e,t){return{"m-ac-li-cat bold-font":e,"m-ac-li-small":t}};function Ai(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"li",88),r["ɵɵlistener"]("onTap",(function(){const t=r["ɵɵrestoreView"](e).$implicit,n=r["ɵɵnextContext"](2);return r["ɵɵresetView"](n.goToUrl(t.url))}))("mouseenter",(function(){const t=r["ɵɵrestoreView"](e).$implicit,n=r["ɵɵnextContext"](2);return r["ɵɵresetView"](n.changeSearchVal(t))})),r["ɵɵtemplate"](1,Ni,9,7,"ng-container",35),r["ɵɵtemplate"](2,Ii,2,1,"span",89),r["ɵɵelementEnd"]()}if(2&e){const e=t.$implicit;r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction2"](4,Fi,e.cat,e.symbol&&e.symbol.length>4))("ng-aria-hidden",e.cat),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",!e.cat),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",e.cat)}}function Li(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",109),r["ɵɵtext"](1,"Show More Results"),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"](2);r["ɵɵproperty"]("zing-url",!0)("href",e.searchUri,r["ɵɵsanitizeUrl"])}}function Vi(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"div",84),r["ɵɵlistener"]("onTap",(function(t){r["ɵɵrestoreView"](e);const n=r["ɵɵnextContext"]();return r["ɵɵresetView"](n.preserveMobSearch(t))}))("scroll",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.BlurInput())})),r["ɵɵelementStart"](1,"ul",85),r["ɵɵtemplate"](2,Ai,3,7,"li",86),r["ɵɵelementEnd"](),r["ɵɵtemplate"](3,Li,2,2,"a",87),r["ɵɵelementEnd"]()}if(2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("ngStyle",e.searchResultBoxStyles),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngStyle",e.searchResultStyles),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngForOf",e.resultData)("ngForTrackBy",e.trackByFn),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",e.more_link)}}function zi(e,t){1&e&&(r["ɵɵelementStart"](0,"a",110),r["ɵɵtext"](1,"My Wallet"),r["ɵɵelementEnd"]()),2&e&&r["ɵɵproperty"]("zing-url",!0)("zing-url-feedback",!0)}function Mi(e,t){1&e&&(r["ɵɵelementStart"](0,"a",111),r["ɵɵtext"](1,"My Wallet"),r["ɵɵelementEnd"]()),2&e&&r["ɵɵproperty"]("zing-url",!0)("zing-url-feedback",!0)}function Di(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",118),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function Ri(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div",115,116),r["ɵɵtemplate"](2,Di,2,4,"a",117),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"](2);r["ɵɵproperty"]("ng-hidden",!e.cards_list),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngForOf",e.menuOptions.Cards)("ngForTrackBy",e.trackByFn)}}function Bi(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"div",112),r["ɵɵlistener"]("mouseleave",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.ListShow(!1,"cards_list"))})),r["ɵɵelementStart"](1,"a",113),r["ɵɵlistener"]("mouseenter",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.ListShow(!0,"cards_list"))})),r["ɵɵtext"](2,"Credit Cards"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](3,Ri,3,3,"div",114),r["ɵɵelementEnd"]()}if(2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](1),r["ɵɵclassProp"]("active",e.cards_list),r["ɵɵproperty"]("href",e.cc_link,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",!e.simple_version)}}function ji(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",119),r["ɵɵtext"](1,"Credit Cards"),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("href",e.cc_link,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0)}}function $i(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",118),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function Ui(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div",120,121),r["ɵɵtemplate"](2,$i,2,4,"a",117),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("ng-hidden",!e.loan_list),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngForOf",e.menuOptions.Loans)("ngForTrackBy",e.trackByFn)}}function Wi(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",118),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function Hi(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div",122,123),r["ɵɵtemplate"](2,Wi,2,4,"a",117),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("ng-hidden",!e.bank_list),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngForOf",e.menuOptions.Banking)("ngForTrackBy",e.trackByFn)}}function Gi(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",126),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}const qi=function(){return{"aria-labelledby":"banks-list-menu-name"}};function Ki(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div",124),r["ɵɵtemplate"](1,Gi,2,4,"a",125),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("ng-attribute-when",!e.desktop_more_list)("ng-attribute",r["ɵɵpureFunction0"](4,qi)),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngForOf",e.menuOptions.Banking)("ngForTrackBy",e.trackByFn)}}function Zi(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",118),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function Qi(e,t){if(1&e&&(r["ɵɵelementContainerStart"](0),r["ɵɵelementStart"](1,"span",127),r["ɵɵtext"](2,"Companies"),r["ɵɵelementEnd"](),r["ɵɵelementStart"](3,"div",128,129),r["ɵɵtemplate"](5,Zi,2,4,"a",117),r["ɵɵelementEnd"](),r["ɵɵelementContainerEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](3),r["ɵɵclassProp"]("ng-enter-element",!e.more_list),r["ɵɵproperty"]("ng-hidden",!e.comp_list),r["ɵɵattribute"]("role",e.desktop_more_list?"menu":"group"),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngForOf",e.menuOptions.Companies)("ngForTrackBy",e.trackByFn)}}function Yi(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",118),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function Xi(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div",130),r["ɵɵtemplate"](1,Yi,2,4,"a",117),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](1),r["ɵɵproperty"]("ngForOf",e.menuOptions.Loans)("ngForTrackBy",e.trackByFn)}}function Ji(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",118),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function er(e,t){if(1&e&&(r["ɵɵelementContainerStart"](0),r["ɵɵelementStart"](1,"span",131),r["ɵɵtext"](2,"Tools"),r["ɵɵelementEnd"](),r["ɵɵelementStart"](3,"div",132,133),r["ɵɵtemplate"](5,Ji,2,4,"a",117),r["ɵɵelementEnd"](),r["ɵɵelementContainerEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](3),r["ɵɵclassProp"]("ng-enter-element",!e.more_list),r["ɵɵproperty"]("ng-hidden",!e.tools_list),r["ɵɵattribute"]("role",e.desktop_loan_list?"menu":"group"),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngForOf",e.menuOptions.Tools)("ngForTrackBy",e.trackByFn)}}function tr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",142),r["ɵɵtext"](1,"Profile"),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"](3);r["ɵɵproperty"]("href",e.userLoggedInData.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0)}}function nr(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"div",137,138),r["ɵɵtemplate"](2,tr,2,3,"a",139),r["ɵɵelementStart"](3,"a",140),r["ɵɵtext"](4,"Settings"),r["ɵɵelementEnd"](),r["ɵɵelementStart"](5,"span",141),r["ɵɵlistener"]("onTap",(function(t){r["ɵɵrestoreView"](e);const n=r["ɵɵnextContext"](2);return r["ɵɵresetView"](n.logOut(t))})),r["ɵɵtext"](6,"Logout"),r["ɵɵelementEnd"]()()}if(2&e){const e=r["ɵɵnextContext"](2);r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",e.userLoggedInData.upr),r["ɵɵadvance"](1),r["ɵɵproperty"]("zing-url",!0)("zing-url-feedback",!0)}}function ir(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"div",134),r["ɵɵlistener"]("mouseleave",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.ListShow(!1,"user_list"))})),r["ɵɵelementStart"](1,"span",135),r["ɵɵlistener"]("onTapHover",(function(t){r["ɵɵrestoreView"](e);const n=r["ɵɵnextContext"]();return r["ɵɵresetView"](n.ListShow("mobiletoggle","user_list",t))})),r["ɵɵtext"](2),r["ɵɵelementEnd"](),r["ɵɵtemplate"](3,nr,7,3,"div",136),r["ɵɵelementEnd"]()}if(2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](1),r["ɵɵclassProp"]("active",e.user_list),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.userLoggedInData.name),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",e.user_list)}}function rr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",143),r["ɵɵtext"](1,"My Wallet"),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("ng-aria-hidden",e.is_opened_mobile_menu)("zing-url",!0)("zing-url-feedback",!0)}}function sr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",144),r["ɵɵtext"](1,"My Wallet"),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("ng-aria-hidden",e.is_opened_mobile_menu)("zing-url",!0)("zing-url-feedback",!0)}}function or(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"span",145),r["ɵɵlistener"]("click",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.MobileMenuExtra("sett"))})),r["ɵɵtext"](1,"Settings"),r["ɵɵelementEnd"]()}if(2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("ng-aria-hidden",e.is_opened_mobile_menu)("focus-when",e.closed_mobile_menu_sett)("no-click",!0),r["ɵɵattribute"]("aria-expanded",e.open_mobile_menu_sett)}}function ar(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",154),r["ɵɵtext"](1,"Profile"),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"](2);r["ɵɵproperty"]("href",e.userLoggedInData.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0)}}function lr(e,t){1&e&&(r["ɵɵelementStart"](0,"span",49),r["ɵɵtext"](1,"|"),r["ɵɵelementEnd"]())}function cr(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"div",146),r["ɵɵelement"](1,"img",147),r["ɵɵelementStart"](2,"div",148),r["ɵɵelement"](3,"div",149),r["ɵɵelementStart"](4,"div",150),r["ɵɵtemplate"](5,ar,2,3,"a",151),r["ɵɵtemplate"](6,lr,2,0,"span",152),r["ɵɵelementStart"](7,"span",153),r["ɵɵlistener"]("onTap",(function(t){r["ɵɵrestoreView"](e);const n=r["ɵɵnextContext"]();return r["ɵɵresetView"](n.logOut(t))})),r["ɵɵtext"](8,"Logout"),r["ɵɵelementEnd"]()()()()}if(2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("ng-aria-hidden",e.is_opened_mobile_menu)("no-tab",!0),r["ɵɵadvance"](1),r["ɵɵproperty"]("src",e.userLoggedInData.avatar,r["ɵɵsanitizeUrl"]),r["ɵɵattribute"]("alt","avatar of "+e.userLoggedInData.name),r["ɵɵadvance"](2),r["ɵɵproperty"]("ng-context",e.userLoggedInData.name),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",e.userLoggedInData.upr),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",e.userLoggedInData.upr),r["ɵɵadvance"](1),r["ɵɵclassProp"]("no-first",!e.userLoggedInData.upr)}}function ur(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div",155)(1,"a",156),r["ɵɵtext"](2,"Login"),r["ɵɵelementEnd"](),r["ɵɵelementStart"](3,"a",157),r["ɵɵtext"](4,"Sign Up for Free"),r["ɵɵelementEnd"]()()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("ng-aria-hidden",e.is_opened_mobile_menu)("no-tab",!0),r["ɵɵadvance"](1),r["ɵɵproperty"]("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](2),r["ɵɵproperty"]("zing-url",!0)("zing-url-feedback",!0)}}function hr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function dr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function mr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function pr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function gr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function fr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function vr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function br(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function yr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function _r(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function wr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function Sr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function Er(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}const xr=function(e,t){return{"brgmm-display":e,"brgmm-display-done":t}};function Or(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"div",159)(1,"div",160),r["ɵɵlistener"]("click",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.MobileMenuExtra("sett"))})),r["ɵɵtext"](2,"Back"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](3,Er,2,4,"a",68),r["ɵɵelementEnd"]()}if(2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction2"](6,xr,e.open_mobile_menu_sett,e.mobile_menu_displayed)),r["ɵɵadvance"](1),r["ɵɵproperty"]("focus-when",e.open_mobile_menu_sett)("no-click",!0),r["ɵɵattribute"]("aria-expanded",e.open_mobile_menu_sett),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngForOf",e.menuOptions.Settings)("ngForTrackBy",e.trackByFn)}}const kr=function(e){return{"hide-btn":e}};function Pr(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"span",161),r["ɵɵlistener"]("onTap",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.goToLogin())})),r["ɵɵtext"](1,"Login"),r["ɵɵelementEnd"]()}if(2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction1"](2,kr,e.mobile_menu_on))("zing-url-feedback",!0)}}function Cr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",162),r["ɵɵtext"](1,"Sign Up"),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction1"](3,kr,e.mobile_menu_on))("zing-url",!0)("zing-url-feedback",!0)}}function Tr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div",185)(1,"a",186)(2,"span",49),r["ɵɵtext"](3,"My Wallet"),r["ɵɵelementEnd"]()(),r["ɵɵelementStart"](4,"a",187)(5,"span",49),r["ɵɵtext"](6,"Credit Cards"),r["ɵɵelementEnd"]()(),r["ɵɵelementStart"](7,"span",188),r["ɵɵtext"](8,"Loans"),r["ɵɵelementEnd"]()()),2&e){const e=r["ɵɵnextContext"](2);r["ɵɵadvance"](1),r["ɵɵproperty"]("href",e.is_full_user?"/home/dashboard":"/mywallet",r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](3),r["ɵɵproperty"]("href",e.cc_link,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0)}}function Nr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",143),r["ɵɵtext"](1,"My Wallet"),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"](2);r["ɵɵproperty"]("ng-aria-hidden",e.is_opened_mobile_menu)("zing-url",!0)("zing-url-feedback",!0)}}function Ir(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",144),r["ɵɵtext"](1,"My Wallet"),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"](2);r["ɵɵproperty"]("ng-aria-hidden",e.is_opened_mobile_menu)("zing-url",!0)("zing-url-feedback",!0)}}function Fr(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"span",145),r["ɵɵlistener"]("click",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"](2);return r["ɵɵresetView"](t.MobileMenuExtra("sett"))})),r["ɵɵtext"](1,"Settings"),r["ɵɵelementEnd"]()}if(2&e){const e=r["ɵɵnextContext"](2);r["ɵɵproperty"]("ng-aria-hidden",e.is_opened_mobile_menu)("focus-when",e.closed_mobile_menu_sett)("no-click",!0),r["ɵɵattribute"]("aria-expanded",e.open_mobile_menu_sett)}}function Ar(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",154),r["ɵɵtext"](1,"Profile"),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"](3);r["ɵɵproperty"]("href",e.userLoggedInData.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0)}}function Lr(e,t){1&e&&(r["ɵɵelementStart"](0,"span",49),r["ɵɵtext"](1,"|"),r["ɵɵelementEnd"]())}function Vr(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"div",146),r["ɵɵelement"](1,"img",147),r["ɵɵelementStart"](2,"div",148),r["ɵɵelement"](3,"div",149),r["ɵɵelementStart"](4,"div",150),r["ɵɵtemplate"](5,Ar,2,3,"a",151),r["ɵɵtemplate"](6,Lr,2,0,"span",152),r["ɵɵelementStart"](7,"span",153),r["ɵɵlistener"]("onTap",(function(t){r["ɵɵrestoreView"](e);const n=r["ɵɵnextContext"](2);return r["ɵɵresetView"](n.logOut(t))})),r["ɵɵtext"](8,"Logout"),r["ɵɵelementEnd"]()()()()}if(2&e){const e=r["ɵɵnextContext"](2);r["ɵɵproperty"]("ng-aria-hidden",e.is_opened_mobile_menu)("no-tab",!0),r["ɵɵadvance"](1),r["ɵɵproperty"]("src",e.userLoggedInData.avatar,r["ɵɵsanitizeUrl"]),r["ɵɵattribute"]("alt","avatar of "+e.userLoggedInData.name),r["ɵɵadvance"](2),r["ɵɵproperty"]("ng-context",e.userLoggedInData.name),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",e.userLoggedInData.upr),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",e.userLoggedInData.upr),r["ɵɵadvance"](1),r["ɵɵclassProp"]("no-first",!e.userLoggedInData.upr)}}function zr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div",155)(1,"a",156),r["ɵɵtext"](2,"Login"),r["ɵɵelementEnd"](),r["ɵɵelementStart"](3,"a",157),r["ɵɵtext"](4,"Sign Up for Free"),r["ɵɵelementEnd"]()()),2&e){const e=r["ɵɵnextContext"](2);r["ɵɵproperty"]("ng-aria-hidden",e.is_opened_mobile_menu)("no-tab",!0),r["ɵɵadvance"](1),r["ɵɵproperty"]("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](2),r["ɵɵproperty"]("zing-url",!0)("zing-url-feedback",!0)}}function Mr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function Dr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function Rr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function Br(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function jr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function $r(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function Ur(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function Wr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function Hr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function Gr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function qr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function Kr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function Zr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"a",158),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=t.$implicit;r["ɵɵproperty"]("href",e.url,r["ɵɵsanitizeUrl"])("zing-url",!0)("zing-url-feedback",!0),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.name)}}function Qr(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"div",159)(1,"div",160),r["ɵɵlistener"]("click",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"](2);return r["ɵɵresetView"](t.MobileMenuExtra("sett"))})),r["ɵɵtext"](2,"Back"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](3,Zr,2,4,"a",68),r["ɵɵelementEnd"]()}if(2&e){const e=r["ɵɵnextContext"](2);r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction2"](6,xr,e.open_mobile_menu_sett,e.mobile_menu_displayed)),r["ɵɵadvance"](1),r["ɵɵproperty"]("focus-when",e.open_mobile_menu_sett)("no-click",!0),r["ɵɵattribute"]("aria-expanded",e.open_mobile_menu_sett),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngForOf",e.menuOptions.Settings)("ngForTrackBy",e.trackByFn)}}function Yr(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"nav",163),r["ɵɵtemplate"](1,Tr,9,6,"div",164),r["ɵɵelementStart"](2,"span",165),r["ɵɵlistener"]("click",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.ToggleMobileMenu(!0))})),r["ɵɵelement"](3,"span",40),r["ɵɵelementEnd"](),r["ɵɵelementStart"](4,"div",42,166),r["ɵɵlistener"]("click",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.ToggleMobileMenu(!1))})),r["ɵɵelementEnd"](),r["ɵɵelementStart"](6,"div",167,168)(8,"div",169),r["ɵɵlistener"]("click",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.ToggleMobileMenu(!1))})),r["ɵɵelementEnd"](),r["ɵɵelementStart"](9,"div",47),r["ɵɵlistener"]("click",(function(t){r["ɵɵrestoreView"](e);const n=r["ɵɵnextContext"]();return r["ɵɵresetView"](n.MobileSearch(t))})),r["ɵɵelement"](10,"span",48),r["ɵɵelementStart"](11,"span",49),r["ɵɵtext"](12,"Search"),r["ɵɵelementEnd"]()(),r["ɵɵtemplate"](13,Nr,2,3,"a",50),r["ɵɵtemplate"](14,Ir,2,3,"a",51),r["ɵɵelementStart"](15,"span",170),r["ɵɵlistener"]("click",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.MobileMenuExtra("credit_cards"))})),r["ɵɵtext"](16,"Credit Cards"),r["ɵɵelementEnd"](),r["ɵɵelementStart"](17,"span",171),r["ɵɵlistener"]("click",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.MobileMenuExtra("loans"))})),r["ɵɵtext"](18,"Loans"),r["ɵɵelementEnd"](),r["ɵɵelementStart"](19,"span",172),r["ɵɵlistener"]("click",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.MobileMenuExtra("bank"))})),r["ɵɵtext"](20,"Banking"),r["ɵɵelementEnd"](),r["ɵɵelementStart"](21,"span",173),r["ɵɵlistener"]("click",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.MobileMenuExtra("comp"))})),r["ɵɵtext"](22,"Companies"),r["ɵɵelementEnd"](),r["ɵɵelementStart"](23,"span",174),r["ɵɵlistener"]("click",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.MobileMenuExtra("tools"))})),r["ɵɵtext"](24,"Tools"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](25,Fr,2,4,"span",57),r["ɵɵtemplate"](26,Vr,9,9,"div",58),r["ɵɵtemplate"](27,zr,5,6,"div",59),r["ɵɵelementStart"](28,"div",175)(29,"div",176),r["ɵɵlistener"]("click",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.MobileMenuExtra("credit_cards"))})),r["ɵɵtext"](30,"Back"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](31,Mr,2,4,"a",62),r["ɵɵelementStart"](32,"div",63),r["ɵɵtext"](33,"Rates"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](34,Dr,2,4,"a",62),r["ɵɵelementStart"](35,"div",63),r["ɵɵtext"](36,"Rewards"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](37,Rr,2,4,"a",62),r["ɵɵelementStart"](38,"div",63),r["ɵɵtext"](39,"Types"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](40,Br,2,4,"a",62),r["ɵɵelementStart"](41,"div",63),r["ɵɵtext"](42,"Credit Score"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](43,jr,2,4,"a",62),r["ɵɵelementStart"](44,"div",63),r["ɵɵtext"](45,"Tools"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](46,$r,2,4,"a",62),r["ɵɵelementStart"](47,"div",63),r["ɵɵtext"](48,"Popular Cards"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](49,Ur,2,4,"a",62),r["ɵɵelementStart"](50,"div",63),r["ɵɵtext"](51,"Companies"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](52,Wr,2,4,"a",62),r["ɵɵelementEnd"](),r["ɵɵelementStart"](53,"div",177)(54,"div",178),r["ɵɵlistener"]("click",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.MobileMenuExtra("loans"))})),r["ɵɵtext"](55,"Back"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](56,Hr,2,4,"a",62),r["ɵɵelementEnd"](),r["ɵɵelementStart"](57,"div",179)(58,"div",180),r["ɵɵlistener"]("click",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.MobileMenuExtra("bank"))})),r["ɵɵtext"](59,"Back"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](60,Gr,2,4,"a",68),r["ɵɵelementEnd"](),r["ɵɵelementStart"](61,"div",181)(62,"div",182),r["ɵɵlistener"]("click",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.MobileMenuExtra("comp"))})),r["ɵɵtext"](63,"Back"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](64,qr,2,4,"a",68),r["ɵɵelementEnd"](),r["ɵɵelementStart"](65,"div",183)(66,"div",184),r["ɵɵlistener"]("click",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.MobileMenuExtra("tools"))})),r["ɵɵtext"](67,"Back"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](68,Kr,2,4,"a",68),r["ɵɵelementEnd"](),r["ɵɵtemplate"](69,Qr,4,9,"div",73),r["ɵɵelementEnd"]()()}if(2&e){const e=r["ɵɵnextContext"]();r["ɵɵclassProp"]("brgmm-guest-user",!e.isLoggedIn)("brgmrm-display",e.mobile_menu_on),r["ɵɵproperty"]("ng-hidden",e.searchMobEnabled||e.searchEnabled),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",e.isLoggedIn),r["ɵɵadvance"](1),r["ɵɵproperty"]("focus-when",e.mobile_menu_off)("no-click",!0),r["ɵɵattribute"]("aria-expanded",e.mobile_menu_on),r["ɵɵadvance"](2),r["ɵɵproperty"]("ng-hidden",!e.mobile_menu_on),r["ɵɵadvance"](2),r["ɵɵclassProp"]("brgmm-display",e.mobile_menu_on),r["ɵɵattribute"]("aria-modal",e.mobile_menu_on),r["ɵɵadvance"](2),r["ɵɵproperty"]("ng-aria-hidden",e.is_opened_mobile_menu)("focus-when",e.mobile_menu_on)("no-click",!0),r["ɵɵattribute"]("aria-expanded",e.mobile_menu_on),r["ɵɵadvance"](1),r["ɵɵproperty"]("ng-aria-hidden",e.is_opened_mobile_menu),r["ɵɵadvance"](4),r["ɵɵproperty"]("ngIf",!e.isLoggedIn||!e.is_full_user),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",e.isLoggedIn&&e.is_full_user),r["ɵɵadvance"](1),r["ɵɵproperty"]("ng-aria-hidden",e.is_opened_mobile_menu)("focus-when",e.closed_mobile_menu_credit_cards)("no-click",!0),r["ɵɵattribute"]("aria-expanded",e.open_mobile_menu_credit_cards),r["ɵɵadvance"](2),r["ɵɵproperty"]("ng-aria-hidden",e.is_opened_mobile_menu)("focus-when",e.closed_mobile_menu_loans)("no-click",!0),r["ɵɵattribute"]("aria-expanded",e.open_mobile_menu_loans),r["ɵɵadvance"](2),r["ɵɵproperty"]("ng-aria-hidden",e.is_opened_mobile_menu)("focus-when",e.closed_mobile_menu_bank)("no-click",!0),r["ɵɵattribute"]("aria-expanded",e.open_mobile_menu_bank),r["ɵɵadvance"](2),r["ɵɵproperty"]("ng-aria-hidden",e.is_opened_mobile_menu)("focus-when",e.closed_mobile_menu_comp)("no-click",!0),r["ɵɵattribute"]("aria-expanded",e.open_mobile_menu_comp),r["ɵɵadvance"](2),r["ɵɵproperty"]("ng-aria-hidden",e.is_opened_mobile_menu)("focus-when",e.closed_mobile_menu_tools)("no-click",!0),r["ɵɵattribute"]("aria-expanded",e.open_mobile_menu_tools),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",e.isLoggedIn),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",e.isLoggedIn),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",!e.isLoggedIn),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction2"](88,xr,e.open_mobile_menu_credit_cards,e.mobile_menu_displayed)),r["ɵɵadvance"](1),r["ɵɵproperty"]("focus-when",e.open_mobile_menu_credit_cards)("no-click",!0),r["ɵɵattribute"]("aria-expanded",e.open_mobile_menu_credit_cards),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngForOf",e.menuOptions.cc_all)("ngForTrackBy",e.trackByFn),r["ɵɵadvance"](3),r["ɵɵproperty"]("ngForOf",e.menuOptions.cc_rates)("ngForTrackBy",e.trackByFn),r["ɵɵadvance"](3),r["ɵɵproperty"]("ngForOf",e.menuOptions.cc_rewards)("ngForTrackBy",e.trackByFn),r["ɵɵadvance"](3),r["ɵɵproperty"]("ngForOf",e.menuOptions.cc_types)("ngForTrackBy",e.trackByFn),r["ɵɵadvance"](3),r["ɵɵproperty"]("ngForOf",e.menuOptions.cc_scores)("ngForTrackBy",e.trackByFn),r["ɵɵadvance"](3),r["ɵɵproperty"]("ngForOf",e.menuOptions.cc_tools)("ngForTrackBy",e.trackByFn),r["ɵɵadvance"](3),r["ɵɵproperty"]("ngForOf",e.menuOptions.cc_popular)("ngForTrackBy",e.trackByFn),r["ɵɵadvance"](3),r["ɵɵproperty"]("ngForOf",e.menuOptions.cc_companies)("ngForTrackBy",e.trackByFn),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction2"](91,xr,e.open_mobile_menu_loans,e.mobile_menu_displayed)),r["ɵɵadvance"](1),r["ɵɵproperty"]("focus-when",e.open_mobile_menu_loans)("no-click",!0),r["ɵɵattribute"]("aria-expanded",e.open_mobile_menu_loans),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngForOf",e.menuOptions.Loans)("ngForTrackBy",e.trackByFn),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction2"](94,xr,e.open_mobile_menu_bank,e.mobile_menu_displayed)),r["ɵɵadvance"](1),r["ɵɵproperty"]("focus-when",e.open_mobile_menu_bank)("no-click",!0),r["ɵɵattribute"]("aria-expanded",e.open_mobile_menu_bank),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngForOf",e.menuOptions.Banking)("ngForTrackBy",e.trackByFn),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction2"](97,xr,e.open_mobile_menu_comp,e.mobile_menu_displayed)),r["ɵɵadvance"](1),r["ɵɵproperty"]("focus-when",e.open_mobile_menu_comp)("no-click",!0),r["ɵɵattribute"]("aria-expanded",e.open_mobile_menu_comp),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngForOf",e.menuOptions.Companies)("ngForTrackBy",e.trackByFn),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction2"](100,xr,e.open_mobile_menu_tools,e.mobile_menu_displayed)),r["ɵɵadvance"](1),r["ɵɵproperty"]("focus-when",e.open_mobile_menu_tools)("no-click",!0),r["ɵɵattribute"]("aria-expanded",e.open_mobile_menu_tools),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngForOf",e.menuOptions.Tools)("ngForTrackBy",e.trackByFn),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",e.isLoggedIn)}}function Xr(e,t){if(1&e&&(r["ɵɵelementStart"](0,"form",189),r["ɵɵelement"](1,"input",190)(2,"input",191)(3,"input",192),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](1),r["ɵɵproperty"]("value",e.logout_redirect),r["ɵɵadvance"](1),r["ɵɵproperty"]("value",e.csrf_token)}}const Jr=function(e,t,n){return{"tp-hd-sc-enable":e,"tp-hd-sc-logged-in":t,"tp-hd-sc-mob-enable":n}},es=function(e){return{"brgmrm-display":e}},ts=function(){return{"aria-haspopup":"menu","aria-controls":"companies-list-menu"}};class ns{constructor(e,t){if(this._headerSect=e,this._dservice=t,this.searchVal="",this.live_status_search="",this.homeUrl="/",this.isLoggedIn=!1,this.userLoggedInData={name:"",url:"",avatar:"",alerts:10},this.searchUri="/search/?s=",this.loading_results=!1,this.showResult=!1,this._searchValue=new r.Subject,this.searchEnabled=!1,this.searchMobEnabled=!1,this.resultData=[],this.more_link=!1,this.is_full_user=!1,this.cc_link="/credit-cards/",this.menuOptions={Loans:[{name:"Car Loans",url:"/car-loans/rates"},{name:"Home Equity Loans",url:"/home-equity-loans"},{name:"Mortgages",url:"/mortgage-rates"},{name:"Personal Loans",url:"/personal-loans"}],Banking:[{name:"CDs / Savings",url:"/savings-accounts"},{name:"Checking",url:"/checking-accounts"},{name:"Prepaid Cards",url:"/prepaid-debit-cards"}],Tools:[{name:"Answers",url:"/answers/"},{name:"Calculators",url:"/calculators"},{name:"WalletLiteracy",url:"/wallet-literacy-score/"},{name:"Articles & Studies",url:"/edu"},{url:"/free-credit-score",name:"Free Credit Score"},{url:"/free-credit-report",name:"Free Credit Report"},{url:"/free-credit-monitoring",name:"Free Credit Monitoring"}],Companies:[{name:"Attorneys",url:"/attorneys"},{name:"Banks",url:"/banks"},{name:"Credit Unions",url:"/credit-unions"},{name:"Financial Advisors",url:"/financial-advisors"},{name:"Car Insurance",url:"/car-insurance"},{name:"Insurance Agents",url:"/insurance-agents"},{name:"Mortgage Providers",url:"/mortgage-lenders"},{name:"Real Estate Agents",url:"/real-estate-agents"}],Settings:[{name:"Public Info",url:"/home/settings/public-info"},{name:"Private Into",url:"/home/settings/private-info"},{name:"Login Settings",url:"/home/settings/login"},{name:"Notifications",url:"/home/settings/notifications"},{name:"Invite Your Friends",url:"/home/settings/invite"}],Cards:[{name:"Compare Cards",url:"/credit-cards/compare/"},{name:"Editors' Best",url:"/best-credit-cards"},{name:"CardAdvisor™",url:"/cardadvisor/"},{name:"Payoff Calculator",url:"/credit-card-calculator"}],cc_all:[{name:"All Credit Cards",url:"/credit-cards/"},{name:"Best Credit Cards",url:"/best-credit-cards"},{name:"Credit Card Deals",url:"/best-credit-card-deals"}],cc_rates:[{name:"0% APR Cards",url:"/credit-cards/0-apr/"},{name:"Balance Transfer Cards",url:"/credit-cards/balance-transfer/"},{name:"Best Credit Card Rates",url:"/best-credit-card-rates"},{name:"Low Interest Cards",url:"/credit-cards/low-interest/"}],cc_rewards:[{name:"Airline Credit Cards",url:"/best-airline-credit-card"},{name:"Cash Back Cards",url:"/best-cash-back-credit-card"},{name:"Gas Credit Cards",url:"/best-gas-credit-cards"},{name:"Hotel Credit Cards",url:"/best-hotel-credit-card"},{name:"Travel Credit Cards",url:"/best-travel-credit-cards"},{name:"All Rewards Cards",url:"/credit-cards/rewards/"}],cc_types:[{name:"Business Credit Cards",url:"/best-business-credit-cards"},{name:"No Foreign Fee Cards",url:"/credit-cards/no-foreign-transaction-fee/"},{name:"No Annual Fee Cards",url:"/credit-cards/no-annual-fee/"},{name:"Secured Credit Cards",url:"/credit-cards/secured/"},{name:"Student Credit Cards",url:"/best-credit-cards-for-students"},{name:"Unsecured Cards",url:"/credit-cards/unsecured/"}],cc_scores:[{name:"Excellent Credit",url:"/credit-cards/excellent-credit/"},{name:"Good Credit",url:"/credit-cards/good-credit/"},{name:"Fair Credit",url:"/credit-cards/fair-credit/"},{name:"Bad Credit",url:"/credit-cards/bad-credit/"},{name:"No Credit",url:"/credit-cards/no-credit/"}],cc_tools:[{name:"Card Advisor",url:"/cardadvisor/"},{name:"Credit Card Payoff Calculator",url:"/credit-card-calculator"},{name:"Balance Transfer Calculator",url:"/balance-transfer-calculator"}],cc_popular:[{name:"Citi Double Cash Card",url:"/d/citi-double-cash-card-121c"},{name:"Discover it Cash Back",url:"/d/discover-it-credit-card-801c"},{name:"Chase Freedom Unlimited",url:"/d/chase-freedom-unlimited-2293c"},{name:"Capital One Quicksilver",url:"/d/capital-one-quicksilver-76c"},{name:"Capital One Venture",url:"/d/capital-one-venture-378c"}],cc_companies:[{name:"American Express",url:"/credit-cards/american-express/"},{name:"Bank of America",url:"/credit-cards/bank-of-america/"},{name:"Capital One",url:"/credit-cards/capital-one/"},{name:"Chase",url:"/credit-cards/chase/"},{name:"Citi",url:"/credit-cards/citibank/"},{name:"Discover",url:"/credit-cards/discover/"},{name:"Mastercard",url:"/credit-cards/mastercard/"},{name:"Visa",url:"/credit-cards/visa/"},{name:"Wells Fargo",url:"/credit-cards/wells-fargo/"}]},this.hidden_header=!1,this.is_web=mt(),this.simple_version=!1,this._lastwsize=0,this.loan_list=!1,this.desktop_loan_list=!0,this.bank_list=!1,this.comp_list=!1,this.tools_list=!1,this.user_list=!1,this.more_list=!1,this.desktop_more_list=!0,this.cards_list=!1,this.delayedStates={},this.mobile_menu_off=!1,this.mobile_menu_displayed=!1,this.open_mobile_menu_credit_cards=!1,this.closed_mobile_menu_credit_cards=!1,this.open_mobile_menu_loans=!1,this.closed_mobile_menu_loans=!1,this.open_mobile_menu_bank=!1,this.closed_mobile_menu_bank=!1,this.open_mobile_menu_comp=!1,this.closed_mobile_menu_comp=!1,this.open_mobile_menu_tools=!1,this.closed_mobile_menu_tools=!1,this.open_mobile_menu_sett=!1,this.closed_mobile_menu_sett=!1,this.mobile_menu_on=!1,!bt()&&Wn.get("mw_signon")){this.isLoggedIn=!0,this.cc_link+="compare/";let e=JSON.parse(Wn.get("mw_signon"));this.userLoggedInData={name:e.ucrn,avatar:e.pp,url:"/profile/"+e.id+"i",upr:e.upr},this.is_full_user=Jn.get("full"),this.userLoggedInData.url||this.menuOptions.Settings.splice(0,1),this.is_full_user||this.menuOptions.Settings.splice(0,1)}bt()||(this.logout_redirect=window.location.href,this.logout_redirect.indexOf("/tasks")>0?this._loginurl="/join/login":this._loginurl="/join/login?redirect_to="+window.location.href,this._windowResize=this._windowResize.bind(this))}_windowResize(){this.setSearchResultStyles(),this._MobileTrackWindow();let e=window.innerWidth;if(this._lastwsize){if(this._lastwsize==e)return null;this._lastwsize=e}else this._lastwsize=e;this.searchMobEnabled&&(this.searchMobEnabled=!1),this.searchEnabled&&(this.searchEnabled=!1),this.isDesktopSize()&&(this.searchVal=""),this.desktop_loan_list=e>=740,this.desktop_more_list=e>=950&&!this.isLoggedIn||e>1019}_ScrollWatch(){let e,t,n=this._headerSect.nativeElement,i=n.clientHeight,s=0,o=0,a=0,l=this._AppContainer,c=0,u=n.parentElement.querySelector("[data-ng-sub-nav]");l&&!this._dservice.overwrite_to_body&&(c=i,u&&(c+=u.clientHeight,u.clientHeight)),Mn.subscribe("header:reset-tabs-element",(e=>{e&&(u=null)})),this._scrollSubscriber=this._dservice.onScroll.pipe(r.delay(50)).subscribe((r=>{this._dservice.scrollable&&(e=r>s?"down":"up",u||(u=n.parentElement.querySelector("[data-ng-sub-nav]"),u&&!this._dservice.overwrite_to_body&&(c+=u.clientHeight,u.clientHeight)),s=r,(()=>{let s=null;if("down"==e?(s=Math.max(-1*(r-a),-1*i),o=r,t=s,this.more_list=!1,this.comp_list=!1,this.bank_list=!1,this.loan_list=!1,this.tools_list=!1,this.user_list=!1,this.cards_list=!1):"up"==e&&(a=r,s=r?Math.min(0,t+Math.min(i,o-r)):0),null!==s&&(n.style.transform=`translate3d(0,${s}px,0 )`,n.style.webkitTransform=`translate3d(0,${s}px,0 )`,u&&(u.style.transform=`translate3d(0,${s}px,0 )`,u.style.webkitTransform=`translate3d(0,${s}px,0 )`)),this._dservice.overwrite_to_body)if(this._dservice.overwrite_to_body&&null!==s){let e=i- -1*s;Mn.emit("header:position-change",e)}else Mn.emit("header:position-change",i);else{let e=i- -1*s;Mn.emit("header:position-change",e)}})())}))}ngOnInit(){if(ti.getKey("simple-render")&&(this.simple_version=!0),bt())return;Mn.subscribe("header:visibility",(e=>{e?(this._headerSect.nativeElement.style.zIndex="",this._headerSect.nativeElement.style.visibility=""):(this._headerSect.nativeElement.style.zIndex=-1,this._headerSect.nativeElement.style.visibility="hidden")})),Mn.subscribe("header:reset-position",(()=>{let e=this._headerSect.nativeElement,t=e.parentElement.querySelector("[data-ng-sub-nav]");e.style.transform="translate3d(0,0,0 )",t&&(t.style.transform="translate3d(0,0,0 )")})),1==Wn.get("mw_prequal_offers")&&(this.menuOptions.Loans[3].url="/home/loans-for-me"),Mn.keepValueFor("header:position-change");let e=this._searchValue.pipe(r.debounceTime(500),r.map((e=>ei(e)))).subscribe({next:e=>{this.getSearchResults(e),this.searchUri="/search/?s="+e},error:()=>{},complete:()=>{e&&e.unsubscribe()}});this.setSearchResultStyles();const t=window.innerWidth;this.desktop_more_list=t>=950&&!this.isLoggedIn||t>1019,this.desktop_loan_list=t>=740}ngAfterViewInit(){if(bt())return;let e=null;Wt()&&(e={passive:!0}),window.addEventListener("resize",this._windowResize,e),this._AppContainer=Xn(),this._ScrollWatch(),this._lastwsize=window.innerWidth}ngOnDestroy(){bt()||(this._windowResize&&window.removeEventListener("resize",this._windowResize),Kn("header-web-search"),Mn.terminate("header:position-change"),Mn.terminate("header:position-behind"),Mn.terminate("header:visibility"),Mn.terminate("header:reset-position"),Mn.terminate("header:reset-tabs-element")),this._searchValue.complete();try{this._scrollSubscriber&&this._scrollSubscriber.unsubscribe()}catch(e){}}setSearchResultStyles(e=null){var t=window.innerHeight-150-37+"px";this.searchResultBoxStyles={},this.isDesktopSize()||(t="",this.searchResultBoxStyles["max-height"]=window.innerHeight-this._headerSect.nativeElement.offsetHeight+"px"),this.searchResultStyles={"max-height":t}}goToUrl(e=null){null!=e&&(window.location.href=e)}logIn(e){this.isLoggedIn=!0,this.homeUrl="/home/dashboard/"}logOut(e){this.logout_redirect=window.location.href,this.csrf_token=Wn.get("XSRF-TOKEN"),Jn.remove("has-sess"),Jn.remove("crd"),Jn.remove("vs"),setTimeout((()=>{document.querySelector("form#logout-form").submit()})),this.homeUrl="/"}goToLogin(){window.open(this._loginurl,"_self")}Input(e){var t=e.target.value;this.searchVal=t,t.length<3?(this.resultData=[],this.loading_results=!1,this.showResult=!1):(this.showResult=!0,this._searchValue.next(t))}changeSearchVal(e){let t=(e.username||e.name||"").replace(/<\/?[^>]+(>|$)/g,"");t&&(this.searchVal=t)}_parseData(e){const t=[];let n="";if(clearTimeout(this.live_status_timer),Ft(e)&&kt(e.total)&&Tt(e.terms)){e.total>e.terms.length?this.more_link=!0:this.more_link=!1;var i=e.terms;i.length?this.live_status_search=`Found, ${i.length} matching result${1!=i.length?"s":""}`:this.live_status_search="No matching results";for(var r=0;r<i.length;r++)i[r].category!=n&&(t.push({cat:i[r].category}),n=i[r].category),i[r].st&&(i[r].icon="wh-icon black icon-"+i[r].st),i[r].username&&(i[r].username="@"+i[r].username),t.push(i[r]);this.live_status_timer=setTimeout((()=>{this.live_status_search=""}),1300)}else this.more_link=!1;this.resultData=t}getSearchResults(e=null){Kn("header-web-search"),qn({method:"GET",url:"/ac/",id:"header-web-search",data:{v2:!0,term:e},events:!1,needs_session:!1,before:()=>{this.live_status_search="",this.loading_results=!0},after:()=>{this.loading_results=!1}}).then((e=>{this._parseData(e)}),(e=>{this.live_status_search="No matching results",clearTimeout(this.live_status_timer),this.live_status_timer=setTimeout((()=>{this.live_status_search=""}),1e3),this.resultData=[],this.more_link=!1}))}enableSearch(e){this.searchEnabled=!0}disableSearch(e){this.searchEnabled=!1,this.searchVal="",setTimeout((()=>{this.resultData=[]}),300)}disableMobSearch(){this.disableSearch(),this.searchMobEnabled=!1}preserveMobSearch(e){e.type.indexOf("mouse")<0&&e.stopPropagation()}BlurInput(){let e=document.activeElement;e&&e.tagName&&"input"==e.tagName.toLowerCase()&&e.blur()}isDesktopSize(){return!!(this.isLoggedIn&&window.innerWidth>691||!this.isLoggedIn&&window.innerWidth>688)}ListShow(e,t,n){if("mobiletoggle"==e&&n&&(e="mouseenter"==n.type||!this[t]),this[t]=e,e){let e;if("loan_list"==t?e=this.loansList:"bank_list"==t?e=this.bankList:"comp_list"==t?e=this.compList:"tools_list"==t?e=this.toolsList:"user_list"==t?e=this.userList:"more_list"==t?e=this.moreList:"cards_list"==t&&(e=this.cardsList),"more_list"==t){let e=window.innerWidth;e<950&&(this.ListShow(!0,"comp_list"),this.ListShow(!0,"tools_list")),e<740&&this.ListShow(!0,"loan_list")}let n=e.changes.subscribe((e=>{if(e&&e.first){const i=e.first;Ut((()=>{if(n.unsubscribe(),!this[t])return;let e=i.nativeElement,r=e.getBoundingClientRect(),s=document.body,o=e.offsetLeft,a=s.clientWidth||window.innerWidth,l=s.clientHeight||window.innerHeight;r.right>a&&(e.style.left=-1*(r.right-o-a)+"px"),r.bottom>l?e.style.maxHeight=e.offsetHeight-(r.bottom-l)+"px":e.style.maxHeight=e.offsetHeight+(l-r.bottom)+"px"}))}}))}else if("more_list"==t){let e=window.innerWidth;e<950&&(this.ListShow(!1,"comp_list"),this.ListShow(!1,"tools_list")),e<740&&this.ListShow(!0,"loan_list")}}CompListShow(e,t,n){var i=window.innerWidth;(i>1019&&this.isLoggedIn||i>949&&!this.isLoggedIn||"more_list"==t)&&this.ListShow(e,t)}DeskListShow(e,t){const n=this[e];this.more_list=!1,this.comp_list=!1,this.bank_list=!1,this.loan_list=!1,this.tools_list=!1,this.user_list=!1,this.cards_list=!1,this[e]=n,this.ListShow("mobiletoggle",e,t)}DelayListShow(e,t,n){clearTimeout(this.delayedStates[t]),this.delayedStates[t]=setTimeout((()=>{this.ListShow(e,t,n)}),50)}get is_opened_mobile_menu(){return Rt(!0,[this.open_mobile_menu_credit_cards,this.open_mobile_menu_bank,this.open_mobile_menu_loans,this.open_mobile_menu_sett,this.open_mobile_menu_comp,this.open_mobile_menu_tools])}ToggleMobileMenu(e){this.mobile_menu_on=!!e,this.mobile_menu_on||this.searchMobEnabled||(this.mobile_menu_off=!0,setTimeout((()=>{this.mobile_menu_off=!1}),100)),Ut((()=>{this._MobileTrackWindow(),this._dservice.canScroll(!this.mobile_menu_on),!1===e&&(this.open_mobile_menu_credit_cards=!1,this.open_mobile_menu_loans=!1,this.open_mobile_menu_bank=!1,this.open_mobile_menu_comp=!1,this.open_mobile_menu_tools=!1,this.open_mobile_menu_sett=!1);const t=document.querySelector("#scroller");t&&(this.mobile_menu_on?(t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true")):(t.removeAttribute("tabindex"),t.removeAttribute("aria-hidden")))}))}_MobileTrackWindow(){if(this.mobile_menu_on){let e=this.mobileBg.nativeElement,t=this.mobileBg2.nativeElement,n=this.mobileMenu.nativeElement,i=this.mobileMenu2.nativeElement;e.style.height=window.innerHeight-this._headerSect.nativeElement.offsetHeight+"px",t.style.height=window.innerHeight-this._headerSect.nativeElement.offsetHeight+"px",n.style.height=window.innerHeight+"px",i.style.height=window.innerHeight+"px"}}MobileMenuExtra(e,t){this["open_mobile_menu_"+e]="boolean"==typeof t?t:!this["open_mobile_menu_"+e],this.mobile_menu_displayed=!1,this["open_mobile_menu_"+e]?setTimeout((()=>{this.mobile_menu_displayed=!0}),350):(this["closed_mobile_menu_"+e]=!0,setTimeout((()=>{this["closed_mobile_menu_"+e]=!1}),100))}MobileSearch(e){this.searchEnabled=!0,this.searchMobEnabled=!0,this.mobile_menu_on=!1,e.preventDefault(),e.stopPropagation(),Ut((()=>{this.ToggleMobileMenu(!1)}))}trackByFn(e){return e}}ns.ɵfac=function(e){return new(e||ns)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](on))},ns.ɵcmp=r["ɵɵdefineComponent"]({type:ns,selectors:[["header","main-header",""]],viewQuery:function(e,t){if(1&e&&(r["ɵɵviewQuery"](ri,5),r["ɵɵviewQuery"](si,5),r["ɵɵviewQuery"](oi,5),r["ɵɵviewQuery"](ai,5),r["ɵɵviewQuery"](li,5),r["ɵɵviewQuery"](ci,5,r.ElementRef),r["ɵɵviewQuery"](ui,5,r.ElementRef),r["ɵɵviewQuery"](hi,5,r.ElementRef),r["ɵɵviewQuery"](di,5,r.ElementRef),r["ɵɵviewQuery"](mi,5,r.ElementRef),r["ɵɵviewQuery"](pi,5,r.ElementRef),r["ɵɵviewQuery"](gi,5,r.ElementRef)),2&e){let e;r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.searchInput=e.first),r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.mobileBg=e.first),r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.mobileMenu=e.first),r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.mobileBg2=e.first),r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.mobileMenu2=e.first),r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.loansList=e),r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.bankList=e),r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.compList=e),r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.toolsList=e),r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.userList=e),r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.moreList=e),r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.cardsList=e)}},attrs:["main-header",""],decls:121,vars:163,consts:[[1,"top-header-nav"],[1,"top-header-logo",3,"ng-hidden"],["zing-touch","","aria-label","WalletHub",1,"top-header-logo-link",3,"zing-url","href"],["tabindex","-1","aria-hidden","true",1,"w-icon-wallet"],["tabindex","-1","aria-hidden","true",1,"w-icon-txt"],["tabindex","-1","aria-hidden","true",1,"logo-anchor-text"],[1,"top-header-search",3,"ngClass"],["live-type","polite",3,"ng-aria-live"],["method","GET","action","/search/",1,"label-input","input-icon","full","blend","tall-lbl-input"],["aria-hidden","true","tabindex","-1",1,"tp-hd-sc-ic","af-icon-search","lbl"],["type","text","placeholder","Search","name","s","autocomplete","off","zing-touch","","aria-label","Site Search","tabindex","0","ng-focus","",1,"tp-hd-sc-input","textfield",3,"value","focus-when","input","focus","onTapDoc"],["searchInput",""],["class","tp-hd-sc-cross lbl-b","zing-touch","","role","button","aria-label","Close Search","tabindex","0",3,"onTap",4,"ngIf"],["class","progress-indicator visible","aria-hidden","true","tabindex","-1",4,"ngIf"],["type","submit","class","btn tp-hd-sc-btn basic-trans bold-font",4,"ngIf"],["type","button","class","btn tp-hd-sc-cancel regular-font","zing-touch","","aria-label","Close Search",3,"onTap",4,"ngIf"],["type","submit","hidden","true",4,"ngIf"],["class","dda","id","m-ac","zing-touch","","aria-hidden","true","tabindex","-1",3,"ngStyle","onTap","scroll",4,"ngIf"],["role","none",1,"burger-menu-right-menu",3,"ngClass","ng-hidden"],["class","brgm-button","href","/home/dashboard","zing-touch","","aria-label","My Wallet",3,"zing-url","zing-url-feedback",4,"ngIf"],["class","brgm-button","href","/mywallet","zing-touch","","aria-label","My Wallet",3,"zing-url","zing-url-feedback",4,"ngIf"],["class","brgm-button brgm-list-box brgm-list-cc-button",3,"mouseleave",4,"ngIf"],["class","brgm-button","zing-touch","","aria-label","Credit Cards",3,"href","zing-url","zing-url-feedback",4,"ngIf"],[1,"brgm-button","brgm-list-box","brgm-cl-third-hide","brgm-list-ln-button",3,"mouseleave"],["role","button","aria-haspopup","menu","aria-controls","loans-list-menu","zing-touch","","tabindex","0","id","loans-list-menu-name",1,"brgm-list-title",3,"onTapHover"],["class","brgm-list ng-enter-element","role","menu","id","loans-list-menu","aria-labelledby","loans-list-menu-name",3,"ng-hidden",4,"ngIf"],[1,"brgm-button","brgm-list-box","brgm-cl-second-hide","brgm-list-bnk-button",3,"mouseleave"],["zing-touch","","id","banks-list-menu-name","role","button","tabindex","0","aria-haspopup","menu","aria-controls","banks-list-menu",1,"brgm-list-title",3,"onTapHover"],["class","brgm-list ng-enter-element","aria-labelledby","banks-list-menu-name","id","banks-list-menu",3,"ng-hidden",4,"ngIf"],["role","menu","id","more-list-menu","aria-label","List of more navigations","zing-touch","",1,"brgm-compact-lists",3,"ng-hidden","onTapHover","mouseleave"],["moreList",""],["role","menuitem",1,"brgm-button","brgm-list-box",3,"mouseleave"],["aria-hidden","true","tabindex","-1",1,"brgm-cl-title","brgm-cl-second-show"],["role","menu","class","brgm-list brgm-cl-second-show",3,"ng-attribute-when","ng-attribute",4,"ngIf"],["zing-touch","","role","button","tabindex","0",1,"brgm-list-title","brgm-list-comp-title",3,"ng-attribute-when","ng-attribute","onTapHover"],[4,"ngIf"],[1,"brgm-cl-title","brgm-cl-third-show"],["class","brgm-list brgm-cl-third-show","role","menu","aria-labelledby","loans-list-menu-name",4,"ngIf"],["zing-touch","","tabindex","0","role","button",1,"brgm-list-title","brgm-list-tools-title",3,"onTapHover"],["role","button","aria-label","Toggle Navigation Menu","aria-haspopup","dialog","aria-controls","burger-menu-popup","tabindex","0","ng-focus","",1,"brgmm-toggle","brgm-cl-button",3,"focus-when","no-click","click"],[1,"brgmm-line"],["class","brgm-button brgm-user brgm-list-box",3,"mouseleave",4,"ngIf"],[1,"brgmm-backside",3,"ng-hidden","click"],["mobilebg2",""],["id","burger-menu-popup2","aria-label","navigation menu","role","dialog",1,"brgmm-content"],["mobilemenu2",""],["role","button","aria-label","Toggle Navigation Menu","tabindex","0","aria-haspopup","dialog","aria-controls","burger-menu-popup2","ng-focus","",1,"brgmm-close","bf-icon-cross-slim",3,"ng-aria-hidden","focus-when","no-click","click"],["role","button","aria-label","Search","tabindex","0",1,"brgms-button","brgms-src-ic",3,"ng-aria-hidden","click"],["aria-hidden","true","tabindex","-1",1,"bf-icon-search"],["aria-hidden","true","tabindex","-1"],["class","brgms-button","href","/mywallet","zing-touch","",3,"ng-aria-hidden","zing-url","zing-url-feedback",4,"ngIf"],["class","brgms-button","href","/home/dashboard","zing-touch","",3,"ng-aria-hidden","zing-url","zing-url-feedback",4,"ngIf"],["role","button","tabindex","0","aria-haspopup","menu","aria-controls","burger-menu-credit-cards2","ng-focus","","id","credit-cards-list-menu-name2",1,"brgms-button","brgms-list-bt","af-icon-right-open-big",3,"ng-aria-hidden","focus-when","no-click","click"],["role","button","tabindex","0","aria-haspopup","menu","aria-controls","burger-menu-loans2","ng-focus","",1,"brgms-button","brgms-list-bt","af-icon-right-open-big",3,"ng-aria-hidden","focus-when","no-click","click"],["role","button","tabindex","0","aria-haspopup","menu","aria-controls","burger-menu-bank2","ng-focus","",1,"brgms-button","brgms-list-bt","af-icon-right-open-big",3,"ng-aria-hidden","focus-when","no-click","click"],["role","button","tabindex","0","aria-haspopup","menu","aria-controls","burger-menu-comp2","ng-focus","",1,"brgms-button","brgms-list-bt","af-icon-right-open-big",3,"ng-aria-hidden","focus-when","no-click","click"],["role","button","tabindex","0","aria-haspopup","menu","aria-controls","burger-menu-tools2","ng-focus","",1,"brgms-button","brgms-list-bt","af-icon-right-open-big",3,"ng-aria-hidden","focus-when","no-click","click"],["class","brgms-button brgms-list-bt af-icon-right-open-big","role","button","tabindex","0","aria-haspopup","menu","aria-controls","burger-menu-sett","ng-focus","","id","sett-list-menu-name",3,"ng-aria-hidden","focus-when","no-click","click",4,"ngIf"],["class","brgm-user-info",3,"ng-aria-hidden","no-tab",4,"ngIf"],["class","brgm-guest-info",3,"ng-aria-hidden","no-tab",4,"ngIf"],["id","burger-menu-credit-cards2","role","menu","aria-labelledby","credit-cards-list-menu-name2",1,"brgm-content-extra",3,"ngClass"],["role","button","tabindex","0","aria-controls","burger-menu-credit-cards2","ng-focus","",1,"brgms-button","brgm-ctex-title","semi-bold-font","bf-icon-left-open-big",3,"focus-when","no-click","click"],["class","brgms-button","role","menuitem","zing-touch","",3,"href","zing-url","zing-url-feedback",4,"ngFor","ngForOf","ngForTrackBy"],[1,"side-category","bold-font"],["id","burger-menu-loans2","role","menu","aria-labelledby","loans-list-menu-name",1,"brgm-content-extra",3,"ngClass"],["role","button","tabindex","0","aria-controls","burger-menu-loans2","ng-focus","",1,"brgms-button","brgm-ctex-title","semi-bold-font","bf-icon-left-open-big",3,"focus-when","no-click","click"],["id","burger-menu-bank2","role","menu","aria-labelledby","banks-list-menu-name",1,"brgm-content-extra",3,"ngClass"],["role","button","tabindex","0","aria-controls","burger-menu-bank2","ng-focus","",1,"brgms-button","brgm-ctex-title","semi-bold-font","bf-icon-left-open-big",3,"focus-when","no-click","click"],["role","menuitem","class","brgms-button","zing-touch","",3,"href","zing-url","zing-url-feedback",4,"ngFor","ngForOf","ngForTrackBy"],["id","burger-menu-comp2","role","menu","aria-labelledby","comp-list-menu-name",1,"brgm-content-extra",3,"ngClass"],["role","button","tabindex","0","aria-controls","burger-menu-comp2","ng-focus","",1,"brgms-button","brgm-ctex-title","semi-bold-font","bf-icon-left-open-big",3,"focus-when","no-click","click"],["id","burger-menu-tools2","role","menu","aria-labelledby","tools-list-menu-name",1,"brgm-content-extra",3,"ngClass"],["role","button","tabindex","0","aria-controls","burger-menu-tools2","ng-focus","",1,"brgms-button","brgm-ctex-title","semi-bold-font","bf-icon-left-open-big",3,"focus-when","no-click","click"],["class","brgm-content-extra","id","burger-menu-sett","role","menu","aria-labelledby","sett-list-menu-name",3,"ngClass",4,"ngIf"],["class","brgm-button brgm-signup brgm-signup-login","zing-touch","","role","link","tabindex","0",3,"ngClass","zing-url-feedback","onTap",4,"ngIf"],["class","brgm-button brgm-signup brgm-signup-sign","zing-touch","","href","/join/",3,"ngClass","zing-url","zing-url-feedback",4,"ngIf"],["class","burger-menu-right-mobile","role","none",3,"brgmm-guest-user","brgmrm-display","ng-hidden",4,"ngIf"],["action","/logout/","method","post","id","logout-form","hidden","true",4,"ngIf"],["zing-touch","","role","button","aria-label","Close Search","tabindex","0",1,"tp-hd-sc-cross","lbl-b",3,"onTap"],["aria-hidden","true","tabindex","-1",1,"progress-indicator","visible"],[1,"progress-spin"],["type","submit",1,"btn","tp-hd-sc-btn","basic-trans","bold-font"],["type","button","zing-touch","","aria-label","Close Search",1,"btn","tp-hd-sc-cancel","regular-font",3,"onTap"],["type","submit","hidden","true"],["id","m-ac","zing-touch","","aria-hidden","true","tabindex","-1",1,"dda",3,"ngStyle","onTap","scroll"],[1,"m-ac-ul",3,"ngStyle"],["class","m-ac-li","zing-touch","","role","link listitem","ng-aria-label-self","split",3,"ngClass","ng-aria-hidden","onTap","mouseenter",4,"ngFor","ngForOf","ngForTrackBy"],["class","m-ac-more","zing-touch","",3,"zing-url","zing-url-feedback","href",4,"ngIf"],["zing-touch","","role","link listitem","ng-aria-label-self","split",1,"m-ac-li",3,"ngClass","ng-aria-hidden","onTap","mouseenter"],["class","",4,"ngIf"],["class","m-ac-symbol","aria-hidden","true","tabindex","-1",3,"ngSwitch",4,"ngIf"],["class","m-ac-symbol","aria-hidden","true","tabindex","-1",3,"ngClass",4,"ngIf"],["class","m-ac-symbol","aria-hidden","true","tabindex","-1",4,"ngIf"],["class","img",4,"ngIf"],["aria-hidden","true","tabindex","-1",3,"innerHtml"],["class","m-ac-label","aria-hidden","true","tabindex","-1",3,"innerHtml",4,"ngIf"],["aria-hidden","true","tabindex","-1",1,"m-ac-symbol",3,"ngSwitch"],["class","wh-icon thumb-answer",4,"ngSwitchCase"],["class","wh-icon thumb-glossary",4,"ngSwitchCase"],["class","wh-icon thumb-article",4,"ngSwitchCase"],[1,"wh-icon","thumb-answer"],[1,"wh-icon","thumb-glossary"],[1,"wh-icon","thumb-article"],["aria-hidden","true","tabindex","-1",1,"m-ac-symbol",3,"ngClass"],["aria-hidden","true","tabindex","-1",1,"m-ac-symbol"],[1,"img"],["aria-hidden","true","tabindex","-1",3,"src"],["aria-hidden","true","tabindex","-1",1,"m-ac-label",3,"innerHtml"],[1,""],["zing-touch","",1,"m-ac-more",3,"zing-url","zing-url-feedback","href"],["href","/home/dashboard","zing-touch","","aria-label","My Wallet",1,"brgm-button",3,"zing-url","zing-url-feedback"],["href","/mywallet","zing-touch","","aria-label","My Wallet",1,"brgm-button",3,"zing-url","zing-url-feedback"],[1,"brgm-button","brgm-list-box","brgm-list-cc-button",3,"mouseleave"],["zing-touch","",1,"brgm-list-title",3,"href","zing-url","zing-url-feedback","mouseenter"],["class","brgm-list ng-enter-element","id","cards-list-menu","role","menu",3,"ng-hidden",4,"ngIf"],["id","cards-list-menu","role","menu",1,"brgm-list","ng-enter-element",3,"ng-hidden"],["cardsList",""],["role","menuitem","class","brgm-list-it","zing-touch","",3,"href","zing-url","zing-url-feedback",4,"ngFor","ngForOf","ngForTrackBy"],["role","menuitem","zing-touch","",1,"brgm-list-it",3,"href","zing-url","zing-url-feedback"],["zing-touch","","aria-label","Credit Cards",1,"brgm-button",3,"href","zing-url","zing-url-feedback"],["role","menu","id","loans-list-menu","aria-labelledby","loans-list-menu-name",1,"brgm-list","ng-enter-element",3,"ng-hidden"],["loansList",""],["aria-labelledby","banks-list-menu-name","id","banks-list-menu",1,"brgm-list","ng-enter-element",3,"ng-hidden"],["bankList",""],["role","menu",1,"brgm-list","brgm-cl-second-show",3,"ng-attribute-when","ng-attribute"],["class","brgm-list-it","zing-touch","","role","menuitem",3,"href","zing-url","zing-url-feedback",4,"ngFor","ngForOf","ngForTrackBy"],["zing-touch","","role","menuitem",1,"brgm-list-it",3,"href","zing-url","zing-url-feedback"],["aria-hidden","true","tabindex","-1","id","comp-list-menu-name",1,"brgm-cl-title"],["id","companies-list-menu","aria-labelledby","comp-list-menu-name",1,"brgm-list","ng-enter-element",3,"ng-hidden"],["compList",""],["role","menu","aria-labelledby","loans-list-menu-name",1,"brgm-list","brgm-cl-third-show"],["aria-hidden","true","tabindex","-1","id","tools-list-menu-name",1,"brgm-cl-title"],["aria-labelledby","tools-list-menu-name",1,"brgm-list",2,"left","7px",3,"ng-hidden"],["toolsList",""],[1,"brgm-button","brgm-user","brgm-list-box",3,"mouseleave"],["zing-touch","",1,"brgm-list-title",3,"onTapHover"],["class","brgm-list brgm-user-list ng-enter-element",4,"ngIf"],[1,"brgm-list","brgm-user-list","ng-enter-element"],["userList",""],["class","brgm-list-it","zing-touch","",3,"href","zing-url","zing-url-feedback",4,"ngIf"],["href","/home/settings","zing-touch","",1,"brgm-list-it",3,"zing-url","zing-url-feedback"],["zing-touch","","role","button",1,"brgm-list-it",3,"onTap"],["zing-touch","",1,"brgm-list-it",3,"href","zing-url","zing-url-feedback"],["href","/mywallet","zing-touch","",1,"brgms-button",3,"ng-aria-hidden","zing-url","zing-url-feedback"],["href","/home/dashboard","zing-touch","",1,"brgms-button",3,"ng-aria-hidden","zing-url","zing-url-feedback"],["role","button","tabindex","0","aria-haspopup","menu","aria-controls","burger-menu-sett","ng-focus","","id","sett-list-menu-name",1,"brgms-button","brgms-list-bt","af-icon-right-open-big",3,"ng-aria-hidden","focus-when","no-click","click"],[1,"brgm-user-info",3,"ng-aria-hidden","no-tab"],["tabindex","0",1,"brgm-user-img",3,"src"],[1,"brgm-user-act"],["tabindex","0",1,"brgm-user-nm",3,"ng-context"],[1,"brgm-user-bts"],["class","link brgmu-lnk","zing-touch","",3,"href","zing-url","zing-url-feedback",4,"ngIf"],["aria-hidden","true","tabindex","-1",4,"ngIf"],["zing-touch","","role","link","tabindex","0",1,"link","brgmu-lnk-2",3,"onTap"],["zing-touch","",1,"link","brgmu-lnk",3,"href","zing-url","zing-url-feedback"],[1,"brgm-guest-info",3,"ng-aria-hidden","no-tab"],["href","/join/login","zing-touch","",1,"btn","blue","no-decoration","btn-guest-inf","bold-font",3,"zing-url","zing-url-feedback"],["href","/join/","zing-touch","",1,"btn","blue","no-decoration","btn-guest-inf","bold-font",3,"zing-url","zing-url-feedback"],["role","menuitem","zing-touch","",1,"brgms-button",3,"href","zing-url","zing-url-feedback"],["id","burger-menu-sett","role","menu","aria-labelledby","sett-list-menu-name",1,"brgm-content-extra",3,"ngClass"],["role","button","tabindex","0","aria-controls","burger-menu-sett","ng-focus","",1,"brgms-button","brgm-ctex-title","semi-bold-font","bf-icon-left-open-big",3,"focus-when","no-click","click"],["zing-touch","","role","link","tabindex","0",1,"brgm-button","brgm-signup","brgm-signup-login",3,"ngClass","zing-url-feedback","onTap"],["zing-touch","","href","/join/",1,"brgm-button","brgm-signup","brgm-signup-sign",3,"ngClass","zing-url","zing-url-feedback"],["role","none",1,"burger-menu-right-mobile",3,"ng-hidden"],["class","brgmm-imp-links",4,"ngIf"],["role","button","aria-label","Toggle Navigation Menu","aria-haspopup","dialog","aria-controls","burger-menu-popup","tabindex","0","ng-focus","",1,"brgmm-toggle",3,"focus-when","no-click","click"],["mobilebg",""],["id","burger-menu-popup","aria-label","navigation menu","role","dialog",1,"brgmm-content"],["mobilemenu",""],["role","button","aria-label","Toggle Navigation Menu","tabindex","0","aria-haspopup","dialog","aria-controls","burger-menu-popup","ng-focus","",1,"brgmm-close","bf-icon-cross-slim",3,"ng-aria-hidden","focus-when","no-click","click"],["role","button","tabindex","0","aria-haspopup","menu","aria-controls","burger-menu-credit-cards","ng-focus","","id","credit-cards-list-menu-name",1,"brgms-button","brgms-list-bt","af-icon-right-open-big",3,"ng-aria-hidden","focus-when","no-click","click"],["role","button","tabindex","0","aria-haspopup","menu","aria-controls","burger-menu-loans","ng-focus","",1,"brgms-button","brgms-list-bt","af-icon-right-open-big",3,"ng-aria-hidden","focus-when","no-click","click"],["role","button","tabindex","0","aria-haspopup","menu","aria-controls","burger-menu-bank","ng-focus","",1,"brgms-button","brgms-list-bt","af-icon-right-open-big",3,"ng-aria-hidden","focus-when","no-click","click"],["role","button","tabindex","0","aria-haspopup","menu","aria-controls","burger-menu-comp","ng-focus","",1,"brgms-button","brgms-list-bt","af-icon-right-open-big",3,"ng-aria-hidden","focus-when","no-click","click"],["role","button","tabindex","0","aria-haspopup","menu","aria-controls","burger-menu-tools","ng-focus","",1,"brgms-button","brgms-list-bt","af-icon-right-open-big",3,"ng-aria-hidden","focus-when","no-click","click"],["id","burger-menu-credit-cards","role","menu","aria-labelledby","credit-cards-list-menu-name",1,"brgm-content-extra",3,"ngClass"],["role","button","tabindex","0","aria-controls","burger-menu-credit-cards","ng-focus","",1,"brgms-button","brgm-ctex-title","semi-bold-font","bf-icon-left-open-big",3,"focus-when","no-click","click"],["id","burger-menu-loans","role","menu","aria-labelledby","loans-list-menu-name",1,"brgm-content-extra",3,"ngClass"],["role","button","tabindex","0","aria-controls","burger-menu-loans","ng-focus","",1,"brgms-button","brgm-ctex-title","semi-bold-font","bf-icon-left-open-big",3,"focus-when","no-click","click"],["id","burger-menu-bank","role","menu","aria-labelledby","banks-list-menu-name",1,"brgm-content-extra",3,"ngClass"],["role","button","tabindex","0","aria-controls","burger-menu-bank","ng-focus","",1,"brgms-button","brgm-ctex-title","semi-bold-font","bf-icon-left-open-big",3,"focus-when","no-click","click"],["id","burger-menu-comp","role","menu","aria-labelledby","comp-list-menu-name",1,"brgm-content-extra",3,"ngClass"],["role","button","tabindex","0","aria-controls","burger-menu-comp","ng-focus","",1,"brgms-button","brgm-ctex-title","semi-bold-font","bf-icon-left-open-big",3,"focus-when","no-click","click"],["id","burger-menu-tools","role","menu","aria-labelledby","tools-list-menu-name",1,"brgm-content-extra",3,"ngClass"],["role","button","tabindex","0","aria-controls","burger-menu-tools","ng-focus","",1,"brgms-button","brgm-ctex-title","semi-bold-font","bf-icon-left-open-big",3,"focus-when","no-click","click"],[1,"brgmm-imp-links"],["zing-touch","","aria-label","My Wallet",1,"brgm-button","brgmm-bt",3,"href","zing-url","zing-url-feedback"],["zing-touch","","aria-label","Credit Cards",1,"brgm-button","brgmm-bt",3,"href","zing-url","zing-url-feedback"],[1,"brgm-button","brgmm-bt","brgmm-bt-last"],["action","/logout/","method","post","id","logout-form","hidden","true"],["type","hidden","name","redirect_to",3,"value"],["type","hidden","name","XSRF-TOKEN",3,"value"],["type","submit","id","logout-button","value","submit"]],template:function(e,t){1&e&&(r["ɵɵelementStart"](0,"div",0)(1,"div",1)(2,"a",2),r["ɵɵelement"](3,"span",3)(4,"span",4),r["ɵɵelementStart"](5,"span",5),r["ɵɵtext"](6,"WalletHub"),r["ɵɵelementEnd"]()()(),r["ɵɵelementStart"](7,"div",6),r["ɵɵelement"](8,"div",7),r["ɵɵelementStart"](9,"form",8),r["ɵɵelement"](10,"span",9),r["ɵɵelementStart"](11,"input",10,11),r["ɵɵlistener"]("input",(function(e){return t.Input(e)}))("focus",(function(e){return t.enableSearch(e)}))("onTapDoc",(function(e){return t.disableSearch(e)})),r["ɵɵelementEnd"](),r["ɵɵtemplate"](13,fi,1,0,"span",12),r["ɵɵtemplate"](14,vi,2,0,"div",13),r["ɵɵtemplate"](15,bi,2,0,"button",14),r["ɵɵtemplate"](16,yi,2,0,"button",15),r["ɵɵtemplate"](17,_i,2,0,"button",16),r["ɵɵelementEnd"]()(),r["ɵɵtemplate"](18,Vi,4,5,"div",17),r["ɵɵelementStart"](19,"nav",18),r["ɵɵtemplate"](20,zi,2,2,"a",19),r["ɵɵtemplate"](21,Mi,2,2,"a",20),r["ɵɵtemplate"](22,Bi,4,6,"div",21),r["ɵɵtemplate"](23,ji,2,3,"a",22),r["ɵɵelementStart"](24,"div",23),r["ɵɵlistener"]("mouseleave",(function(){return t.ListShow(!1,"loan_list")})),r["ɵɵelementStart"](25,"span",24),r["ɵɵlistener"]("onTapHover",(function(e){return t.DeskListShow("loan_list",e)})),r["ɵɵtext"](26,"Loans"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](27,Ui,3,3,"div",25),r["ɵɵelementEnd"](),r["ɵɵelementStart"](28,"div",26),r["ɵɵlistener"]("mouseleave",(function(){return t.ListShow(!1,"bank_list")})),r["ɵɵelementStart"](29,"span",27),r["ɵɵlistener"]("onTapHover",(function(e){return t.DeskListShow("bank_list",e)})),r["ɵɵtext"](30,"Banking"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](31,Hi,3,3,"div",28),r["ɵɵelementEnd"](),r["ɵɵelementStart"](32,"div",29,30),r["ɵɵlistener"]("onTapHover",(function(){return t.DelayListShow(!0,"more_list")}))("mouseleave",(function(){return t.DelayListShow(!1,"more_list")})),r["ɵɵelementStart"](34,"div",31),r["ɵɵlistener"]("mouseleave",(function(){return t.CompListShow(!1,"comp_list")})),r["ɵɵelementStart"](35,"span",32),r["ɵɵtext"](36,"Banking"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](37,Ki,2,5,"div",33),r["ɵɵelementStart"](38,"span",34),r["ɵɵlistener"]("onTapHover",(function(e){return t.DeskListShow("comp_list",e)})),r["ɵɵtext"](39,"Companies"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](40,Qi,6,6,"ng-container",35),r["ɵɵelementEnd"](),r["ɵɵelementStart"](41,"div",31),r["ɵɵlistener"]("mouseleave",(function(){return t.CompListShow(!1,"tools_list")})),r["ɵɵelementStart"](42,"span",36),r["ɵɵtext"](43,"Loans"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](44,Xi,2,2,"div",37),r["ɵɵelementStart"](45,"span",38),r["ɵɵlistener"]("onTapHover",(function(e){return t.DeskListShow("tools_list",e)})),r["ɵɵtext"](46,"Tools"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](47,er,6,6,"ng-container",35),r["ɵɵelementEnd"]()(),r["ɵɵelementStart"](48,"span",39),r["ɵɵlistener"]("click",(function(){return t.ToggleMobileMenu(!0)})),r["ɵɵelement"](49,"span",40),r["ɵɵelementEnd"](),r["ɵɵtemplate"](50,ir,4,4,"div",41),r["ɵɵelementStart"](51,"div",42,43),r["ɵɵlistener"]("click",(function(){return t.ToggleMobileMenu(!1)})),r["ɵɵelementEnd"](),r["ɵɵelementStart"](53,"div",44,45)(55,"div",46),r["ɵɵlistener"]("click",(function(){return t.ToggleMobileMenu(!1)})),r["ɵɵelementEnd"](),r["ɵɵelementStart"](56,"div",47),r["ɵɵlistener"]("click",(function(e){return t.MobileSearch(e)})),r["ɵɵelement"](57,"span",48),r["ɵɵelementStart"](58,"span",49),r["ɵɵtext"](59,"Search"),r["ɵɵelementEnd"]()(),r["ɵɵtemplate"](60,rr,2,3,"a",50),r["ɵɵtemplate"](61,sr,2,3,"a",51),r["ɵɵelementStart"](62,"span",52),r["ɵɵlistener"]("click",(function(){return t.MobileMenuExtra("credit_cards")})),r["ɵɵtext"](63,"Credit Cards"),r["ɵɵelementEnd"](),r["ɵɵelementStart"](64,"span",53),r["ɵɵlistener"]("click",(function(){return t.MobileMenuExtra("loans")})),r["ɵɵtext"](65,"Loans"),r["ɵɵelementEnd"](),r["ɵɵelementStart"](66,"span",54),r["ɵɵlistener"]("click",(function(){return t.MobileMenuExtra("bank")})),r["ɵɵtext"](67,"Banking"),r["ɵɵelementEnd"](),r["ɵɵelementStart"](68,"span",55),r["ɵɵlistener"]("click",(function(){return t.MobileMenuExtra("comp")})),r["ɵɵtext"](69,"Companies"),r["ɵɵelementEnd"](),r["ɵɵelementStart"](70,"span",56),r["ɵɵlistener"]("click",(function(){return t.MobileMenuExtra("tools")})),r["ɵɵtext"](71,"Tools"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](72,or,2,4,"span",57),r["ɵɵtemplate"](73,cr,9,9,"div",58),r["ɵɵtemplate"](74,ur,5,6,"div",59),r["ɵɵelementStart"](75,"div",60)(76,"div",61),r["ɵɵlistener"]("click",(function(){return t.MobileMenuExtra("credit_cards")})),r["ɵɵtext"](77,"Back"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](78,hr,2,4,"a",62),r["ɵɵelementStart"](79,"div",63),r["ɵɵtext"](80,"Rates"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](81,dr,2,4,"a",62),r["ɵɵelementStart"](82,"div",63),r["ɵɵtext"](83,"Rewards"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](84,mr,2,4,"a",62),r["ɵɵelementStart"](85,"div",63),r["ɵɵtext"](86,"Types"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](87,pr,2,4,"a",62),r["ɵɵelementStart"](88,"div",63),r["ɵɵtext"](89,"Credit Score"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](90,gr,2,4,"a",62),r["ɵɵelementStart"](91,"div",63),r["ɵɵtext"](92,"Tools"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](93,fr,2,4,"a",62),r["ɵɵelementStart"](94,"div",63),r["ɵɵtext"](95,"Popular Cards"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](96,vr,2,4,"a",62),r["ɵɵelementStart"](97,"div",63),r["ɵɵtext"](98,"Companies"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](99,br,2,4,"a",62),r["ɵɵelementEnd"](),r["ɵɵelementStart"](100,"div",64)(101,"div",65),r["ɵɵlistener"]("click",(function(){return t.MobileMenuExtra("loans")})),r["ɵɵtext"](102,"Back"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](103,yr,2,4,"a",62),r["ɵɵelementEnd"](),r["ɵɵelementStart"](104,"div",66)(105,"div",67),r["ɵɵlistener"]("click",(function(){return t.MobileMenuExtra("bank")})),r["ɵɵtext"](106,"Back"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](107,_r,2,4,"a",68),r["ɵɵelementEnd"](),r["ɵɵelementStart"](108,"div",69)(109,"div",70),r["ɵɵlistener"]("click",(function(){return t.MobileMenuExtra("comp")})),r["ɵɵtext"](110,"Back"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](111,wr,2,4,"a",68),r["ɵɵelementEnd"](),r["ɵɵelementStart"](112,"div",71)(113,"div",72),r["ɵɵlistener"]("click",(function(){return t.MobileMenuExtra("tools")})),r["ɵɵtext"](114,"Back"),r["ɵɵelementEnd"](),r["ɵɵtemplate"](115,Sr,2,4,"a",68),r["ɵɵelementEnd"](),r["ɵɵtemplate"](116,Or,4,9,"div",73),r["ɵɵelementEnd"](),r["ɵɵtemplate"](117,Pr,2,4,"span",74),r["ɵɵtemplate"](118,Cr,2,5,"a",75),r["ɵɵelementEnd"](),r["ɵɵtemplate"](119,Yr,70,103,"nav",76),r["ɵɵelementEnd"](),r["ɵɵtemplate"](120,Xr,4,2,"form",77)),2&e&&(r["ɵɵclassProp"]("thn-guest-user",!t.isLoggedIn),r["ɵɵadvance"](1),r["ɵɵproperty"]("ng-hidden",t.searchMobEnabled),r["ɵɵadvance"](1),r["ɵɵproperty"]("zing-url",!0)("href",t.homeUrl,r["ɵɵsanitizeUrl"]),r["ɵɵadvance"](5),r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction3"](141,Jr,t.searchEnabled,t.isLoggedIn,t.searchMobEnabled)),r["ɵɵattribute"]("aria-modal",t.searchMobEnabled)("role",t.searchMobEnabled?"dialog":"none"),r["ɵɵadvance"](1),r["ɵɵproperty"]("ng-aria-live",t.live_status_search),r["ɵɵadvance"](1),r["ɵɵclassProp"]("both",t.searchEnabled)("front",!t.searchEnabled),r["ɵɵadvance"](2),r["ɵɵproperty"]("value",t.searchVal)("focus-when",t.searchMobEnabled),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",!(t.loading_results||!t.searchEnabled)),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.loading_results),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.searchEnabled),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.searchMobEnabled||t.searchEnabled),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.searchMobEnabled),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",(t.searchEnabled||t.searchMobEnabled)&&t.resultData.length>0&&t.showResult),r["ɵɵadvance"](1),r["ɵɵclassProp"]("brgm-guest-user",!t.isLoggedIn),r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction1"](145,es,t.mobile_menu_on))("ng-hidden",t.searchMobEnabled||t.searchEnabled),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.isLoggedIn&&t.is_full_user),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",!t.isLoggedIn||!t.is_full_user),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",!t.isLoggedIn),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.isLoggedIn),r["ɵɵadvance"](2),r["ɵɵclassProp"]("active",t.loan_list),r["ɵɵattribute"]("aria-expanded",t.loan_list),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",!t.simple_version),r["ɵɵadvance"](2),r["ɵɵclassProp"]("active",t.bank_list),r["ɵɵattribute"]("aria-expanded",t.bank_list),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",!t.simple_version),r["ɵɵadvance"](1),r["ɵɵclassProp"]("server-render",!t.is_web)("ng-enter-element",!t.desktop_more_list),r["ɵɵproperty"]("ng-hidden",!(t.more_list||t.desktop_more_list)),r["ɵɵadvance"](5),r["ɵɵproperty"]("ngIf",!t.simple_version),r["ɵɵadvance"](1),r["ɵɵclassProp"]("active",t.comp_list),r["ɵɵproperty"]("ng-attribute-when",t.desktop_more_list)("ng-attribute",r["ɵɵpureFunction0"](147,ts)),r["ɵɵattribute"]("aria-expanded",t.comp_list),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",!t.simple_version),r["ɵɵadvance"](4),r["ɵɵproperty"]("ngIf",!t.simple_version),r["ɵɵadvance"](1),r["ɵɵclassProp"]("active",t.comp_list),r["ɵɵattribute"]("aria-expanded",t.tools_list),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",!t.simple_version),r["ɵɵadvance"](1),r["ɵɵproperty"]("focus-when",t.mobile_menu_off)("no-click",!0),r["ɵɵattribute"]("aria-expanded",t.mobile_menu_on),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",t.isLoggedIn),r["ɵɵadvance"](1),r["ɵɵproperty"]("ng-hidden",!t.mobile_menu_on),r["ɵɵadvance"](2),r["ɵɵclassProp"]("brgmm-display",t.mobile_menu_on),r["ɵɵattribute"]("aria-modal",t.mobile_menu_on),r["ɵɵadvance"](2),r["ɵɵproperty"]("ng-aria-hidden",t.is_opened_mobile_menu)("focus-when",t.mobile_menu_on)("no-click",!0),r["ɵɵattribute"]("aria-expanded",t.mobile_menu_on),r["ɵɵadvance"](1),r["ɵɵproperty"]("ng-aria-hidden",t.is_opened_mobile_menu),r["ɵɵadvance"](4),r["ɵɵproperty"]("ngIf",!t.isLoggedIn||!t.is_full_user),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.isLoggedIn&&t.is_full_user),r["ɵɵadvance"](1),r["ɵɵproperty"]("ng-aria-hidden",t.is_opened_mobile_menu)("focus-when",t.closed_mobile_menu_credit_cards)("no-click",!0),r["ɵɵattribute"]("aria-expanded",t.open_mobile_menu_credit_cards),r["ɵɵadvance"](2),r["ɵɵproperty"]("ng-aria-hidden",t.is_opened_mobile_menu)("focus-when",t.closed_mobile_menu_loans)("no-click",!0),r["ɵɵattribute"]("aria-expanded",t.open_mobile_menu_loans),r["ɵɵadvance"](2),r["ɵɵproperty"]("ng-aria-hidden",t.is_opened_mobile_menu)("focus-when",t.closed_mobile_menu_bank)("no-click",!0),r["ɵɵattribute"]("aria-expanded",t.open_mobile_menu_bank),r["ɵɵadvance"](2),r["ɵɵproperty"]("ng-aria-hidden",t.is_opened_mobile_menu)("focus-when",t.closed_mobile_menu_comp)("no-click",!0),r["ɵɵattribute"]("aria-expanded",t.open_mobile_menu_comp),r["ɵɵadvance"](2),r["ɵɵproperty"]("ng-aria-hidden",t.is_opened_mobile_menu)("focus-when",t.closed_mobile_menu_tools)("no-click",!0),r["ɵɵattribute"]("aria-expanded",t.open_mobile_menu_tools),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngIf",t.isLoggedIn),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.isLoggedIn),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",!t.isLoggedIn),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction2"](148,xr,t.open_mobile_menu_credit_cards,t.mobile_menu_displayed)),r["ɵɵadvance"](1),r["ɵɵproperty"]("focus-when",t.open_mobile_menu_credit_cards)("no-click",!0),r["ɵɵattribute"]("aria-expanded",t.open_mobile_menu_credit_cards),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngForOf",t.menuOptions.cc_all)("ngForTrackBy",t.trackByFn),r["ɵɵadvance"](3),r["ɵɵproperty"]("ngForOf",t.menuOptions.cc_rates)("ngForTrackBy",t.trackByFn),r["ɵɵadvance"](3),r["ɵɵproperty"]("ngForOf",t.menuOptions.cc_rewards)("ngForTrackBy",t.trackByFn),r["ɵɵadvance"](3),r["ɵɵproperty"]("ngForOf",t.menuOptions.cc_types)("ngForTrackBy",t.trackByFn),r["ɵɵadvance"](3),r["ɵɵproperty"]("ngForOf",t.menuOptions.cc_scores)("ngForTrackBy",t.trackByFn),r["ɵɵadvance"](3),r["ɵɵproperty"]("ngForOf",t.menuOptions.cc_tools)("ngForTrackBy",t.trackByFn),r["ɵɵadvance"](3),r["ɵɵproperty"]("ngForOf",t.menuOptions.cc_popular)("ngForTrackBy",t.trackByFn),r["ɵɵadvance"](3),r["ɵɵproperty"]("ngForOf",t.menuOptions.cc_companies)("ngForTrackBy",t.trackByFn),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction2"](151,xr,t.open_mobile_menu_loans,t.mobile_menu_displayed)),r["ɵɵadvance"](1),r["ɵɵproperty"]("focus-when",t.open_mobile_menu_loans)("no-click",!0),r["ɵɵattribute"]("aria-expanded",t.open_mobile_menu_loans),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngForOf",t.menuOptions.Loans)("ngForTrackBy",t.trackByFn),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction2"](154,xr,t.open_mobile_menu_bank,t.mobile_menu_displayed)),r["ɵɵadvance"](1),r["ɵɵproperty"]("focus-when",t.open_mobile_menu_bank)("no-click",!0),r["ɵɵattribute"]("aria-expanded",t.open_mobile_menu_bank),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngForOf",t.menuOptions.Banking)("ngForTrackBy",t.trackByFn),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction2"](157,xr,t.open_mobile_menu_comp,t.mobile_menu_displayed)),r["ɵɵadvance"](1),r["ɵɵproperty"]("focus-when",t.open_mobile_menu_comp)("no-click",!0),r["ɵɵattribute"]("aria-expanded",t.open_mobile_menu_comp),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngForOf",t.menuOptions.Companies)("ngForTrackBy",t.trackByFn),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction2"](160,xr,t.open_mobile_menu_tools,t.mobile_menu_displayed)),r["ɵɵadvance"](1),r["ɵɵproperty"]("focus-when",t.open_mobile_menu_tools)("no-click",!0),r["ɵɵattribute"]("aria-expanded",t.open_mobile_menu_tools),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngForOf",t.menuOptions.Tools)("ngForTrackBy",t.trackByFn),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.isLoggedIn),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",!t.isLoggedIn),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",!t.isLoggedIn),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",!t.simple_version),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.is_web))},dependencies:[pn,gn,yn,Jt,Sn,En,On,r.NgClass,r.NgForOf,r.NgIf,r.NgStyle,r.NgSwitch,r.NgSwitchCase,ni],encapsulation:2});class is{}function rs(){let e=pt(),t=_t(),n={captureException:e=>{console.error(e)},captureMessage:(e,t)=>{console.info(e)},withScope:e=>{e({addBreadcrumb:function(){},setExtras:function(){},setExtra:function(){},setTag:(e,t)=>{},setLevel:function(){},setContext:function(){}})},Severity:{},addBreadcrumb:(...e)=>{},setTag:(...e)=>{}};return new Promise(((i,r)=>{e||t?i(n):p.import("package:/system/raven-lib").then((t=>{let r=t.Raven;if(e)i(n);else{if(!bt()){let e={id:Jn.get("support_id")||"--",username:Jn.get("pub_id")||"--"};"--"==e.id&&"--"!==e.username&&(e.id=e.username,delete e.username),"--"!==e.username&&(r.configureScope?r.configureScope((t=>{t.setExtra("id",e.id),t.setExtra("username",e.username)})):r.setUserContext(e))}i(r)}}),(e=>{console.warn("Cannot load raven js library"),console.error(e),i(n)}))}))}is.ɵfac=function(e){return new(e||is)},is.ɵmod=r["ɵɵdefineNgModule"]({type:is}),is.ɵinj=r["ɵɵdefineInjector"]({imports:[Pn,r.CommonModule,ii]});class ss{handleError(e){rs().then((t=>{let n=e.originalError||e;n&&(t.captureException(n),console.error(n))}))}}var os,as,ls=ls||function(e,t){var n={},i=n.lib={},r=function(){},s=i.Base={extend:function(e){r.prototype=this;var t=new r;return e&&t.mixIn(e),t.hasOwnProperty("init")||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},o=i.WordArray=s.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes;if(e=e.sigBytes,this.clamp(),i%4)for(var r=0;r<e;r++)t[i+r>>>2]|=(n[r>>>2]>>>24-r%4*8&255)<<24-(i+r)%4*8;else if(65535<n.length)for(r=0;r<e;r+=4)t[i+r>>>2]=n[r>>>2];else t.push.apply(t,n);return this.sigBytes+=e,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n=[],i=0;i<t;i+=4)n.push(4294967296*e.random()|0);return new o.init(n,t)}}),a=n.enc={},l=a.Hex={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],i=0;i<e;i++){var r=t[i>>>2]>>>24-i%4*8&255;n.push((r>>>4).toString(16)),n.push((15&r).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new o.init(n,t/2)}},c=a.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],i=0;i<e;i++)n.push(String.fromCharCode(t[i>>>2]>>>24-i%4*8&255));return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new o.init(n,t)}},u=a.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},h=i.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,i=n.words,r=n.sigBytes,s=this.blockSize,a=r/(4*s);if(t=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,r=e.min(4*t,r),t){for(var l=0;l<t;l+=s)this._doProcessBlock(i,l);l=i.splice(0,t),n.sigBytes-=r}return new o.init(l,r)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});i.Hasher=h.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new d.HMAC.init(e,n).finalize(t)}}});var d=n.algo={};return n}(Math);as=(os=ls).lib.WordArray,os.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,i=this._map;e.clamp(),e=[];for(var r=0;r<n;r+=3)for(var s=(t[r>>>2]>>>24-r%4*8&255)<<16|(t[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|t[r+2>>>2]>>>24-(r+2)%4*8&255,o=0;4>o&&r+.75*o<n;o++)e.push(i.charAt(s>>>6*(3-o)&63));if(t=i.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(e){var t=e.length,n=this._map;(i=n.charAt(64))&&-1!=(i=e.indexOf(i))&&(t=i);for(var i=[],r=0,s=0;s<t;s++)if(s%4){var o=n.indexOf(e.charAt(s-1))<<s%4*2,a=n.indexOf(e.charAt(s))>>>6-s%4*2;i[r>>>2]|=(o|a)<<24-r%4*8,r++}return as.create(i,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(e){function t(e,t,n,i,r,s,o){return((e=e+(t&n|~t&i)+r+o)<<s|e>>>32-s)+t}function n(e,t,n,i,r,s,o){return((e=e+(t&i|n&~i)+r+o)<<s|e>>>32-s)+t}function i(e,t,n,i,r,s,o){return((e=e+(t^n^i)+r+o)<<s|e>>>32-s)+t}function r(e,t,n,i,r,s,o){return((e=e+(n^(t|~i))+r+o)<<s|e>>>32-s)+t}for(var s=ls,o=(l=s.lib).WordArray,a=l.Hasher,l=s.algo,c=[],u=0;64>u;u++)c[u]=4294967296*e.abs(e.sin(u+1))|0;l=l.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,s){for(var o=0;16>o;o++){var a=e[l=s+o];e[l]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}o=this._hash.words;var l=e[s+0],u=(a=e[s+1],e[s+2]),h=e[s+3],d=e[s+4],m=e[s+5],p=e[s+6],g=e[s+7],f=e[s+8],v=e[s+9],b=e[s+10],y=e[s+11],_=e[s+12],w=e[s+13],S=e[s+14],E=e[s+15],x=t(x=o[0],P=o[1],k=o[2],O=o[3],l,7,c[0]),O=t(O,x,P,k,a,12,c[1]),k=t(k,O,x,P,u,17,c[2]),P=t(P,k,O,x,h,22,c[3]);x=t(x,P,k,O,d,7,c[4]),O=t(O,x,P,k,m,12,c[5]),k=t(k,O,x,P,p,17,c[6]),P=t(P,k,O,x,g,22,c[7]),x=t(x,P,k,O,f,7,c[8]),O=t(O,x,P,k,v,12,c[9]),k=t(k,O,x,P,b,17,c[10]),P=t(P,k,O,x,y,22,c[11]),x=t(x,P,k,O,_,7,c[12]),O=t(O,x,P,k,w,12,c[13]),k=t(k,O,x,P,S,17,c[14]),x=n(x,P=t(P,k,O,x,E,22,c[15]),k,O,a,5,c[16]),O=n(O,x,P,k,p,9,c[17]),k=n(k,O,x,P,y,14,c[18]),P=n(P,k,O,x,l,20,c[19]),x=n(x,P,k,O,m,5,c[20]),O=n(O,x,P,k,b,9,c[21]),k=n(k,O,x,P,E,14,c[22]),P=n(P,k,O,x,d,20,c[23]),x=n(x,P,k,O,v,5,c[24]),O=n(O,x,P,k,S,9,c[25]),k=n(k,O,x,P,h,14,c[26]),P=n(P,k,O,x,f,20,c[27]),x=n(x,P,k,O,w,5,c[28]),O=n(O,x,P,k,u,9,c[29]),k=n(k,O,x,P,g,14,c[30]),x=i(x,P=n(P,k,O,x,_,20,c[31]),k,O,m,4,c[32]),O=i(O,x,P,k,f,11,c[33]),k=i(k,O,x,P,y,16,c[34]),P=i(P,k,O,x,S,23,c[35]),x=i(x,P,k,O,a,4,c[36]),O=i(O,x,P,k,d,11,c[37]),k=i(k,O,x,P,g,16,c[38]),P=i(P,k,O,x,b,23,c[39]),x=i(x,P,k,O,w,4,c[40]),O=i(O,x,P,k,l,11,c[41]),k=i(k,O,x,P,h,16,c[42]),P=i(P,k,O,x,p,23,c[43]),x=i(x,P,k,O,v,4,c[44]),O=i(O,x,P,k,_,11,c[45]),k=i(k,O,x,P,E,16,c[46]),x=r(x,P=i(P,k,O,x,u,23,c[47]),k,O,l,6,c[48]),O=r(O,x,P,k,g,10,c[49]),k=r(k,O,x,P,S,15,c[50]),P=r(P,k,O,x,m,21,c[51]),x=r(x,P,k,O,_,6,c[52]),O=r(O,x,P,k,h,10,c[53]),k=r(k,O,x,P,b,15,c[54]),P=r(P,k,O,x,a,21,c[55]),x=r(x,P,k,O,f,6,c[56]),O=r(O,x,P,k,E,10,c[57]),k=r(k,O,x,P,p,15,c[58]),P=r(P,k,O,x,w,21,c[59]),x=r(x,P,k,O,d,6,c[60]),O=r(O,x,P,k,y,10,c[61]),k=r(k,O,x,P,u,15,c[62]),P=r(P,k,O,x,v,21,c[63]);o[0]=o[0]+x|0,o[1]=o[1]+P|0,o[2]=o[2]+k|0,o[3]=o[3]+O|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;n[r>>>5]|=128<<24-r%32;var s=e.floor(i/4294967296);for(n[15+(r+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),n[14+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(n.length+1),this._process(),n=(t=this._hash).words,i=0;4>i;i++)r=n[i],n[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);return t},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),s.MD5=a._createHelper(l),s.HmacMD5=a._createHmacHelper(l)}(Math),function(){var e,t=ls,n=(e=t.lib).Base,i=e.WordArray,r=(e=t.algo).EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:e.MD5,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=(a=this.cfg).hasher.create(),r=i.create(),s=r.words,o=a.keySize,a=a.iterations;s.length<o;){l&&n.update(l);var l=n.update(e).finalize(t);n.reset();for(var c=1;c<a;c++)l=n.finalize(l),n.reset();r.concat(l)}return r.sigBytes=4*o,r}});t.EvpKDF=function(e,t,n){return r.create(n).compute(e,t)}}(),ls.lib.Cipher||function(e){var t=(m=ls).lib,n=t.Base,i=t.WordArray,r=t.BufferedBlockAlgorithm,s=m.enc.Base64,o=m.algo.EvpKDF,a=t.Cipher=r.extend({cfg:n.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){r.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(e){return{encrypt:function(t,n,i){return("string"==typeof n?p:d).encrypt(e,t,n,i)},decrypt:function(t,n,i){return("string"==typeof n?p:d).decrypt(e,t,n,i)}}}});t.StreamCipher=a.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var l=m.mode={},c=function(e,t,n){var i=this._iv;i?this._iv=undefined:i=this._prevBlock;for(var r=0;r<n;r++)e[t+r]^=i[r]},u=(t.BlockCipherMode=n.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}})).extend();u.Encryptor=u.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;c.call(this,e,t,i),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),u.Decryptor=u.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,r=e.slice(t,t+i);n.decryptBlock(e,t),c.call(this,e,t,i),this._prevBlock=r}}),l=l.CBC=u,u=(m.pad={}).Pkcs7={pad:function(e,t){for(var n,r=(n=(n=4*t)-e.sigBytes%n)<<24|n<<16|n<<8|n,s=[],o=0;o<n;o+=4)s.push(r);n=i.create(s,n),e.concat(n)},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},t.BlockCipher=a.extend({cfg:a.cfg.extend({mode:l,padding:u}),reset:function(){a.reset.call(this);var e=(t=this.cfg).iv,t=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=t.createEncryptor;else n=t.createDecryptor,this._minBufferSize=1;this._mode=n.call(t,this,e&&e.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4});var h=t.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),d=(l=(m.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext;return((e=e.salt)?i.create([1398893684,1701076831]).concat(e).concat(t):t).toString(s)},parse:function(e){var t=(e=s.parse(e)).words;if(1398893684==t[0]&&1701076831==t[1]){var n=i.create(t.slice(2,4));t.splice(0,4),e.sigBytes-=16}return h.create({ciphertext:e,salt:n})}},t.SerializableCipher=n.extend({cfg:n.extend({format:l}),encrypt:function(e,t,n,i){i=this.cfg.extend(i);var r=e.createEncryptor(n,i);return t=r.finalize(t),r=r.cfg,h.create({ciphertext:t,key:n,iv:r.iv,algorithm:e,mode:r.mode,padding:r.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,n,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),e.createDecryptor(n,i).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}})),m=(m.kdf={}).OpenSSL={execute:function(e,t,n,r){return r||(r=i.random(8)),e=o.create({keySize:t+n}).compute(e,r),n=i.create(e.words.slice(t),4*n),e.sigBytes=4*t,h.create({key:e,iv:n,salt:r})}},p=t.PasswordBasedCipher=d.extend({cfg:d.cfg.extend({kdf:m}),encrypt:function(e,t,n,i){return n=(i=this.cfg.extend(i)).kdf.execute(n,e.keySize,e.ivSize),i.iv=n.iv,(e=d.encrypt.call(this,e,t,n.key,i)).mixIn(n),e},decrypt:function(e,t,n,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),n=i.kdf.execute(n,e.keySize,e.ivSize,t.salt),i.iv=n.iv,d.decrypt.call(this,e,t,n.key,i)}})}(),function(){for(var e=ls,t=e.lib.BlockCipher,n=e.algo,i=[],r=[],s=[],o=[],a=[],l=[],c=[],u=[],h=[],d=[],m=[],p=0;256>p;p++)m[p]=128>p?p<<1:p<<1^283;var g=0,f=0;for(p=0;256>p;p++){var v=(v=f^f<<1^f<<2^f<<3^f<<4)>>>8^255&v^99;i[g]=v,r[v]=g;var b=m[g],y=m[b],_=m[y],w=257*m[v]^16843008*v;s[g]=w<<24|w>>>8,o[g]=w<<16|w>>>16,a[g]=w<<8|w>>>24,l[g]=w,w=16843009*_^65537*y^257*b^16843008*g,c[v]=w<<24|w>>>8,u[v]=w<<16|w>>>16,h[v]=w<<8|w>>>24,d[v]=w,g?(g=b^m[m[m[_^b]]],f^=m[m[f]]):g=f=1}var S=[0,1,2,4,8,16,32,64,128,27,54];n=n.AES=t.extend({_doReset:function(){for(var e=(n=this._key).words,t=n.sigBytes/4,n=4*((this._nRounds=t+6)+1),r=this._keySchedule=[],s=0;s<n;s++)if(s<t)r[s]=e[s];else{var o=r[s-1];s%t?6<t&&4==s%t&&(o=i[o>>>24]<<24|i[o>>>16&255]<<16|i[o>>>8&255]<<8|i[255&o]):(o=i[(o=o<<8|o>>>24)>>>24]<<24|i[o>>>16&255]<<16|i[o>>>8&255]<<8|i[255&o],o^=S[s/t|0]<<24),r[s]=r[s-t]^o}for(e=this._invKeySchedule=[],t=0;t<n;t++)s=n-t,o=t%4?r[s]:r[s-4],e[t]=4>t||4>=s?o:c[i[o>>>24]]^u[i[o>>>16&255]]^h[i[o>>>8&255]]^d[i[255&o]]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,o,a,l,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,c,u,h,d,r),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,i,r,s,o,a){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],h=e[t+2]^n[2],d=e[t+3]^n[3],m=4,p=1;p<l;p++){var g=i[c>>>24]^r[u>>>16&255]^s[h>>>8&255]^o[255&d]^n[m++],f=i[u>>>24]^r[h>>>16&255]^s[d>>>8&255]^o[255&c]^n[m++],v=i[h>>>24]^r[d>>>16&255]^s[c>>>8&255]^o[255&u]^n[m++];d=i[d>>>24]^r[c>>>16&255]^s[u>>>8&255]^o[255&h]^n[m++],c=g,u=f,h=v}g=(a[c>>>24]<<24|a[u>>>16&255]<<16|a[h>>>8&255]<<8|a[255&d])^n[m++],f=(a[u>>>24]<<24|a[h>>>16&255]<<16|a[d>>>8&255]<<8|a[255&c])^n[m++],v=(a[h>>>24]<<24|a[d>>>16&255]<<16|a[c>>>8&255]<<8|a[255&u])^n[m++],d=(a[d>>>24]<<24|a[c>>>16&255]<<16|a[u>>>8&255]<<8|a[255&h])^n[m++],e[t]=g,e[t+1]=f,e[t+2]=v,e[t+3]=d},keySize:8});e.AES=t._createHelper(n)}();let cs,us=ls,hs=new Promise((e=>{cs=e}));const ds="MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC8mDjlmjdBvK7eonacVtuNKoGu\nY1uJtpLYjp3ptzeT1ZgygwG+gA19HvbPZ4mjf9Iy7RH41O58GlUrqL3/mi6rdEFe\nbBa/vqmVtb49+sEGbwqjw94qDLsOGa4luf4xInoswywP/+HuxP1nn+NYyER8Ugsh\nsvo0gaiMFXiv9cfn1wIDAQAB",ms="MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDsDGIqrmDXfzYlILwnJ0SSe5le\nfQX6EmTmOizn0YHT6YYdWlnV2GEBMU2Po6aCg8onLfGtpHXx3WV254GNUBB69jn8\n5Q/dMlhLaQ5E1kWCBRHPsqhHLlz21l3dRJafelXQ9ITgfgB+5N1WHjAA9kMOqz8P\n+2OImUt+qIKSkOxqmQIDAQAB";p.registerDynamic("Encryption",["jsencrypt"],!0,(function(){const e=new(window.JSEncrypt?window.JSEncrypt:require("jsencrypt").JSEncrypt);e.setPublicKey("PROD"==Ht.getEnv()||!gt()&&"STAGE"==Ht.getEnv()?ms:ds);let t=$t("wh-",!0),n=e.encrypt(t);const i={APIEncrypt:t=>e.encrypt(t),encrypt:e=>us.AES.encrypt(e.toString(),t).toString(),decrypt:e=>us.AES.decrypt(e,t).toString(us.enc.Utf8),get key(){return t},_setkey:i=>{t=i,n=e.encrypt(t)},send:(e={method:"POST",encryptprops:[],v2:!1})=>(e.encryptprops||(e.encryptprops=[]),e.encryptprops.forEach((t=>{if(e.data[t])try{e.data[t]=i.encrypt(e.data[t])}catch(e){console.log(e)}})),e.v2?(e.data.EncryptionKey=n,e.headers=e.headers||{},e.headers.EncryptionKey=n):e.data.publickey=n,delete e.encryptprops,qn(e))};return i}));let ps=!1;if("undefined"!=typeof window){const e={get passive(){ps=!0}};window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}const gs="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1);let fs,vs,bs=[],ys=!1,_s=-1;const ws=e=>bs.some((t=>!(!t.options.allowTouchMove||!t.options.allowTouchMove(e)))),Ss=e=>{const t=e||window.event;return!!ws(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},Es=(e,t)=>{if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(bs.some((t=>t.targetElement===e)))return;const n={targetElement:e,options:t||{}};bs=[...bs,n],gs?(e.ontouchstart=e=>{1===e.targetTouches.length&&(_s=e.targetTouches[0].clientY)},e.ontouchmove=t=>{1===t.targetTouches.length&&((e,t)=>{const n=e.targetTouches[0].clientY-_s;!ws(e.target)&&(t&&0===t.scrollTop&&n>0||(e=>!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight)(t)&&n<0?Ss(e):e.stopPropagation())})(t,e)},ys||(document.addEventListener("touchmove",Ss,ps?{passive:!1}:void 0),ys=!0)):(e=>{if(void 0===vs){const t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(vs=document.body.style.paddingRight,document.body.style.paddingRight=`${n}px`)}void 0===fs&&(fs=document.body.style.overflow,document.body.style.overflow="hidden")})(t)},xs=e=>{e?(bs=bs.filter((t=>t.targetElement!==e)),gs?(e.ontouchstart=null,e.ontouchmove=null,ys&&0===bs.length&&(document.removeEventListener("touchmove",Ss,ps?{passive:!1}:void 0),ys=!1)):bs.length||(void 0!==vs&&(document.body.style.paddingRight=vs,vs=void 0),void 0!==fs&&(document.body.style.overflow=fs,fs=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")};var Os=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],ks=Os.join(","),Ps="undefined"==typeof Element,Cs=Ps?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ts=!Ps&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},Ns=function(e,t,n){var i=Array.prototype.slice.apply(e.querySelectorAll(ks));return t&&Cs.call(e,ks)&&i.unshift(e),i=i.filter(n)},Is=function e(t,n,i){for(var r=[],s=Array.from(t);s.length;){var o=s.shift();if("SLOT"===o.tagName){var a=o.assignedElements(),l=e(a.length?a:o.children,!0,i);i.flatten?r.push.apply(r,l):r.push({scope:o,candidates:l})}else{Cs.call(o,ks)&&i.filter(o)&&(n||!t.includes(o))&&r.push(o);var c=o.shadowRoot||"function"==typeof i.getShadowRoot&&i.getShadowRoot(o),u=!i.shadowRootFilter||i.shadowRootFilter(o);if(c&&u){var h=e(!0===c?o.children:c.children,!0,i);i.flatten?r.push.apply(r,h):r.push({scope:o,candidates:h})}else s.unshift.apply(s,o.children)}}return r},Fs=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},As=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ls=function(e){return"INPUT"===e.tagName},Vs=function(e){return function(e){return Ls(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Ts(e),i=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=i(window.CSS.escape(e.name));else try{t=i(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var r=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!r||r===e}(e)},zs=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return 0===n&&0===i},Ms=function(e,t){return!(t.disabled||function(e){return Ls(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var r=Cs.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Cs.call(r,"details:not([open]) *"))return!0;var s=Ts(e).host,o=(null==s?void 0:s.ownerDocument.contains(s))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return zs(e)}else{if("function"==typeof i){for(var a=e;e;){var l=e.parentElement,c=Ts(e);if(l&&!l.shadowRoot&&!0===i(l))return zs(e);e=e.assignedSlot?e.assignedSlot:l||c===e.ownerDocument?l:c.host}e=a}if(o)return!e.getClientRects().length}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n);if("LEGEND"===i.tagName)return!!Cs.call(t,"fieldset[disabled] *")||!i.contains(e)}return!0}t=t.parentElement}return!1}(t))},Ds=function(e,t){return!(Vs(t)||Fs(t)<0||!Ms(e,t))},Rs=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Bs=function e(t){var n=[],i=[];return t.forEach((function(t,r){var s=!!t.scope,o=s?t.scope:t,a=Fs(o,s),l=s?e(t.candidates):o;0===a?s?n.push.apply(n,l):n.push(o):i.push({documentOrder:r,tabIndex:a,item:t,isScope:s,content:l})})),i.sort(As).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},js=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Is([e],t.includeContainer,{filter:Ds.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Rs}):Ns(e,t.includeContainer,Ds.bind(null,t)),Bs(n)},$s=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Cs.call(e,ks)&&Ds(t,e)},Us=Os.concat("iframe").join(","),Ws=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Cs.call(e,Us)&&Ms(t,e)};function Hs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Gs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hs(Object(n),!0).forEach((function(t){qs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ks,Zs=(Ks=[],{activateTrap:function(e){if(Ks.length>0){var t=Ks[Ks.length-1];t!==e&&t.pause()}var n=Ks.indexOf(e);-1===n||Ks.splice(n,1),Ks.push(e)},deactivateTrap:function(e){var t=Ks.indexOf(e);-1!==t&&Ks.splice(t,1),Ks.length>0&&Ks[Ks.length-1].unpause()}}),Qs=function(e){return setTimeout(e,0)},Ys=function(e,t){var n=-1;return e.every((function(e,i){return!t(e)||(n=i,!1)})),n},Xs=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return"function"==typeof e?e.apply(void 0,n):e},Js=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},eo=function(e,t){var n,i=(null==t?void 0:t.document)||document,r=Gs({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},o=function(e,t,n){return e&&void 0!==e[t]?e[t]:r[n||t]},a=function(e){return s.containerGroups.findIndex((function(t){var n=t.container,i=t.tabbableNodes;return n.contains(e)||i.find((function(t){return t===e}))}))},l=function(e){var t=r[e];if("function"==typeof t){for(var n=arguments.length,s=new Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];t=t.apply(void 0,s)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var a=t;if("string"==typeof t&&!(a=i.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return a},c=function(){var e=l("initialFocus");if(!1===e)return!1;if(void 0===e)if(a(i.activeElement)>=0)e=i.activeElement;else{var t=s.tabbableGroups[0];e=t&&t.firstTabbableNode||l("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},u=function(){if(s.containerGroups=s.containers.map((function(e){var t,n,i=js(e,r.tabbableOptions),s=(t=e,(n=(n=r.tabbableOptions)||{}).getShadowRoot?Is([t],n.includeContainer,{filter:Ms.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):Ns(t,n.includeContainer,Ms.bind(null,n)));return{container:e,tabbableNodes:i,focusableNodes:s,firstTabbableNode:i.length>0?i[0]:null,lastTabbableNode:i.length>0?i[i.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=s.findIndex((function(t){return t===e}));if(!(n<0))return t?s.slice(n+1).find((function(e){return $s(e,r.tabbableOptions)})):s.slice(0,n).reverse().find((function(e){return $s(e,r.tabbableOptions)}))}}})),s.tabbableGroups=s.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),s.tabbableGroups.length<=0&&!l("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},h=function e(t){!1!==t&&t!==i.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!r.preventScroll}),s.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},d=function(e){var t=l("setReturnFocus",e);return t||!1!==t&&e},m=function(e){var t=Js(e);a(t)>=0||(Xs(r.clickOutsideDeactivates,e)?n.deactivate({returnFocus:r.returnFocusOnDeactivate&&!Ws(t,r.tabbableOptions)}):Xs(r.allowOutsideClick,e)||e.preventDefault())},p=function(e){var t=Js(e),n=a(t)>=0;n||t instanceof Document?n&&(s.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),h(s.mostRecentlyFocusedNode||c()))},g=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==Xs(r.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=Js(e);u();var n=null;if(s.tabbableGroups.length>0){var i=a(t),o=i>=0?s.containerGroups[i]:void 0;if(i<0)n=e.shiftKey?s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:s.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var c=Ys(s.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(o.container===t||Ws(t,r.tabbableOptions)&&!$s(t,r.tabbableOptions)&&!o.nextTabbableNode(t,!1))&&(c=i),c>=0){var d=0===c?s.tabbableGroups.length-1:c-1;n=s.tabbableGroups[d].lastTabbableNode}}else{var m=Ys(s.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(m<0&&(o.container===t||Ws(t,r.tabbableOptions)&&!$s(t,r.tabbableOptions)&&!o.nextTabbableNode(t))&&(m=i),m>=0){var p=m===s.tabbableGroups.length-1?0:m+1;n=s.tabbableGroups[p].firstTabbableNode}}}else n=l("fallbackFocus");n&&(e.preventDefault(),h(n))}(e)},f=function(e){var t=Js(e);a(t)>=0||Xs(r.clickOutsideDeactivates,e)||Xs(r.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},v=function(){if(s.active)return Zs.activateTrap(n),s.delayInitialFocusTimer=r.delayInitialFocus?Qs((function(){h(c())})):h(c()),i.addEventListener("focusin",p,!0),i.addEventListener("mousedown",m,{capture:!0,passive:!1}),i.addEventListener("touchstart",m,{capture:!0,passive:!1}),i.addEventListener("click",f,{capture:!0,passive:!1}),i.addEventListener("keydown",g,{capture:!0,passive:!1}),n},b=function(){if(s.active)return i.removeEventListener("focusin",p,!0),i.removeEventListener("mousedown",m,!0),i.removeEventListener("touchstart",m,!0),i.removeEventListener("click",f,!0),i.removeEventListener("keydown",g,!0),n};return(n={get active(){return s.active},get paused(){return s.paused},activate:function(e){if(s.active)return this;var t=o(e,"onActivate"),n=o(e,"onPostActivate"),r=o(e,"checkCanFocusTrap");r||u(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=i.activeElement,t&&t();var a=function(){r&&u(),v(),n&&n()};return r?(r(s.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(e){if(!s.active)return this;var t=Gs({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},e);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,b(),s.active=!1,s.paused=!1,Zs.deactivateTrap(n);var i=o(t,"onDeactivate"),a=o(t,"onPostDeactivate"),l=o(t,"checkCanReturnFocus"),c=o(t,"returnFocus","returnFocusOnDeactivate");i&&i();var u=function(){Qs((function(){c&&h(d(s.nodeFocusedBeforeActivation)),a&&a()}))};return c&&l?(l(d(s.nodeFocusedBeforeActivation)).then(u,u),this):(u(),this)},pause:function(){return s.paused||!s.active||(s.paused=!0,b()),this},unpause:function(){return s.paused&&s.active?(s.paused=!1,u(),v(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return s.containers=t.map((function(e){return"string"==typeof e?i.querySelector(e):e})),s.active&&u(),this}}).updateContainerElements(e),n};class to{constructor(e){this._el=e}set focustrap(e){this._focustrap=e,bt()||(e?(this._trap||(this.returnFocusTo&&!this._static_options.setReturnFocus&&(this._static_options.returnFocusOnDeactivate=!0,this._static_options.setReturnFocus=this.returnFocusTo),this._trap=eo(this._el.nativeElement,this._static_options)),this._trap.activate()):this._trap&&this._trap.deactivate())}get focustrap(){return this._focustrap}ngAfterViewInit(){bt()||(this._static_options=Object.assign({clickOutsideDeactivates:!0,preventScroll:!0,returnFocusOnDeactivate:!1},this.options||{}),this._static_options.fallbackFocus=this._el.nativeElement,this._focustrap&&(this.returnFocusTo&&(this._static_options.returnFocusOnDeactivate=!0,this._static_options.setReturnFocus=this.returnFocusTo),this._trap=eo(this._el.nativeElement,this._static_options),this._trap.activate()))}ngOnDestroy(){this._trap&&this._trap.deactivate()}}to.ɵfac=function(e){return new(e||to)(r["ɵɵdirectiveInject"](r.ElementRef))},to.ɵdir=r["ɵɵdefineDirective"]({type:to,selectors:[["","ng-focus-trap",""]],inputs:{options:["ng-trap-options","options"],returnFocusTo:["return-focus","returnFocusTo"],focustrap:["ng-focus-trap","focustrap"]}});class no{}no.ɵfac=function(e){return new(e||no)},no.ɵmod=r["ɵɵdefineNgModule"]({type:no}),no.ɵinj=r["ɵɵdefineInjector"]({});const io=["content"],ro=["dialog"],so=["dialogContainer"];function oo(e,t){}function ao(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"div",8),r["ɵɵlistener"]("onTap",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"](2);return r["ɵɵresetView"](t.Close())})),r["ɵɵelementEnd"]()}2&e&&r["ɵɵproperty"]("zing-no-touch",!0)}const lo=function(e,t,n){return{opened:e,mobilefullscreen:t,"ng-md-fullscreen":n}};function co(e,t){if(1&e&&(r["ɵɵelementStart"](0,"div",1,2)(2,"div",3,4)(4,"span",5),r["ɵɵtext"](5),r["ɵɵelementEnd"](),r["ɵɵtemplate"](6,oo,0,0,"ng-template",null,6,r["ɵɵtemplateRefExtractor"]),r["ɵɵtemplate"](8,ao,1,1,"div",7),r["ɵɵelementEnd"]()()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("ngClass",r["ɵɵpureFunction3"](9,lo,e.opened,e.fullInMobile,e.fullscreenmode)),r["ɵɵadvance"](2),r["ɵɵclassProp"]("ready",e.ready),r["ɵɵproperty"]("ng-focus-trap",e.ready)("return-focus",e.return_focus_to),r["ɵɵattribute"]("aria-labelledby",e.dialog_title_id),r["ɵɵadvance"](2),r["ɵɵattribute"]("id",e.dialog_title_id),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.dialog_title),r["ɵɵadvance"](3),r["ɵɵproperty"]("ngIf",e.hasclose)}}class uo{constructor(e,t,n){this._zone=e,this._dservice=t,this._render=n,this.opened=!1,this.ready=!1,this.hasclose=!0,this.is_node=bt(),this.onClose=new r.EventEmitter,this.fullInMobile=!1,this.fullinmobileheader=!1,this.fullscreenmode=!1,this.dialog_title="",this.container_scroll=!1,this.dialog_title_id=null,this.dialog_title_id=$t("md-"),p.import("css:/modal-dialog.css").then((()=>{}),(()=>{}))}_destroyActiveComponent(){this._activeComponent&&(this._activeComponent.destroy(),this._activeComponent=null,this.container.clear()),Mn.emit("to-top-arrow:show",!0)}Close(e,t){this.opened=!1,this.return_focus_to=null,this.myEl&&this.myEl.nativeElement&&(this._render.setAttribute(this.myEl.nativeElement,"style",""),this._render.setAttribute(this.myElContainer.nativeElement,"style","")),setTimeout((()=>{Ut((()=>{this._zone.run((()=>{this._destroyActiveComponent(),this.ready=!1,t||this._dservice.canScroll(!0)}))}))}),300),this.onClose.emit(e),this.myId="",this._scroll_lock&&(this._dservice.canScroll(!0),xs(this.container_scroll?this.myElContainer.nativeElement:this.myEl.nativeElement),this._scroll_lock=!1),this._headerWatch&&(this._headerWatch.unsubscribe(),this._headerWatch=null),this.fullscreenmode&&(Mn.emit("header:visibility",!0,!0),Mn.emit("$native:modal-full","close")),this.fullInMobile&&this.fullinmobileheader&&Xn().classList.remove("ng-md-fullscreenmobile")}Open(e,t,n){this.opened=!0,this.ready=!0,this._destroyActiveComponent(),this._activeComponent=this.container.createComponent(e);const i=this._activeComponent.instance;return i.data=t,n&&(n.hostid&&(this.myId=n.hostid),"withclose"in n&&(this.hasclose=n.withclose),n.return_focus_to&&(this.return_focus_to=n.return_focus_to)),this.fullscreenmode?(Mn.emit("header:visibility",!1,!0),Mn.emit("$native:modal-full","open"),this.hasclose=!1):this._headerWatch=Mn.subscribe("header:position-change",(e=>{e&&e>0&&this.myEl?this.myEl.nativeElement.style.top=e+"px":this.myEl.nativeElement.style.top=""})),i.closeDialog=e=>{this._zone.run((()=>{this.Close(e)}))},!this._scroll_lock&&this.myEl&&(this._dservice.canScroll(!1),Es(this.container_scroll?this.myElContainer.nativeElement:this.myEl.nativeElement),this._scroll_lock=!0),Mn.emit("to-top-arrow:show",!1),this.fullInMobile&&this.fullinmobileheader&&Xn().classList.add("ng-md-fullscreenmobile"),this}UpdateData(e){this._activeComponent.instance.data=e}GetActiveComponent(){return this._activeComponent.instance}ngOnDestroy(){this._destroyActiveComponent(),this._headerWatch&&(this._headerWatch.unsubscribe(),this._headerWatch=null),this.onClose.complete&&this.onClose.complete(),this.fullscreenmode&&Mn.emit("header:visibility",!0,!0),this.fullInMobile&&this.fullinmobileheader&&Xn().classList.remove("ng-md-fullscreenmobile")}}uo.ɵfac=function(e){return new(e||uo)(r["ɵɵdirectiveInject"](r.NgZone),r["ɵɵdirectiveInject"](on),r["ɵɵdirectiveInject"](r.Renderer2))},uo.ɵcmp=r["ɵɵdefineComponent"]({type:uo,selectors:[["modal-dialog"]],viewQuery:function(e,t){if(1&e&&(r["ɵɵviewQuery"](io,5,r.ViewContainerRef),r["ɵɵviewQuery"](ro,5),r["ɵɵviewQuery"](so,5)),2&e){let e;r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.container=e.first),r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.myEl=e.first),r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.myElContainer=e.first)}},hostVars:1,hostBindings:function(e,t){2&e&&r["ɵɵattribute"]("id",t.myId)},inputs:{fullInMobile:["mobile-full","fullInMobile"],fullinmobileheader:["mobile-full-no-header","fullinmobileheader"],fullscreenmode:["fullscreen","fullscreenmode"],dialog_title:["title","dialog_title"],container_scroll:["container-scroll","container_scroll"]},outputs:{onClose:"onClose"},decls:1,vars:1,consts:[["class","ng-modal-dialog",3,"ngClass",4,"ngIf"],[1,"ng-modal-dialog",3,"ngClass"],["dialog",""],["role","dialog","aria-modal","true","tabindex","0",1,"ng-modal-container",3,"ng-focus-trap","return-focus"],["dialogContainer",""],["hidden","true"],["content",""],["class","close-btn af-icon-cross-slim","zing-touch","","aria-label","Close overlay","role","button","tabindex","0",3,"zing-no-touch","onTap",4,"ngIf"],["zing-touch","","aria-label","Close overlay","role","button","tabindex","0",1,"close-btn","af-icon-cross-slim",3,"zing-no-touch","onTap"]],template:function(e,t){1&e&&r["ɵɵtemplate"](0,co,9,13,"div",0),2&e&&r["ɵɵproperty"]("ngIf",!t.is_node)},dependencies:[r.NgClass,r.NgIf,Jt,to],encapsulation:2});class ho{}ho.ɵfac=function(e){return new(e||ho)},ho.ɵmod=r["ɵɵdefineNgModule"]({type:ho}),ho.ɵinj=r["ɵɵdefineInjector"]({imports:[r.CommonModule,Pn,no]});function mo(e,t){if(1&e&&r["ɵɵelement"](0,"p",6),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("innerHTML",e.titlecontent,r["ɵɵsanitizeHtml"])}}function po(e,t){1&e&&r["ɵɵelement"](0,"br")}function go(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"p"),r["ɵɵtext"](1,"If the issue persists please "),r["ɵɵelementStart"](2,"span",7),r["ɵɵlistener"]("onTap",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.ContactUs())})),r["ɵɵtext"](3,"email us"),r["ɵɵelementEnd"](),r["ɵɵtext"](4),r["ɵɵelementEnd"]()}if(2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](4),r["ɵɵtextInterpolate1"](" and mention: ",e.data.type,"")}}function fo(e,t){if(1&e&&r["ɵɵelement"](0,"p",8),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("innerHTML",e.customcontent,r["ɵɵsanitizeHtml"])}}const vo=["appErrors"];function bo(e,t){rs().then((n=>{n.withScope((i=>{let r={status:e?e.status:null,httpstatus:e&&e.httpstatus?e.status:null,response:e&&e.data?JSON.stringify(e.data):null,type:e&&e.type||null,path:window.location.pathname||window.location.href,rayid:e&&e.rayid||null,arguments:{url:e&&e.options?e.options.url:null,action:e&&e.options&&e.options.data&&(e.options.data.action||e.options.data.customAction)||null,query:e&&e.options?"GET"==e.options.method?e.options.data:e.options.query:null}},s=r.arguments.action,o=r.arguments.url;(s||o)&&(t+="("+(s||o)+")"),i.setExtras(r),n.captureMessage(t,n.Severity.Warning)}))}))}bt()||(Mn.subscribe("$server:error",(e=>{bo(e,"NG Request Failed : Server Error")})),Mn.subscribe("$server:whiderror",(e=>{bo(e,"NG Request Failed : WHID Fetch Error")})),Mn.subscribe("$server:csrferror",(e=>{console.log(e),bo(e,"NG Request Failed : Xsrf Token Fetch Error")})));class yo{constructor(){this.inprogress=!1,this.data={},this.emailparams={subject:"Internal Error",body:"Please help me with an error I encountered while using WalletHub. Details are below:\nIP address:{0}\nSupport ID:{1}\nCode:{2}"},this.iserror=!1,this.titlecontent="",this.customcontent=""}_openMail(){var e=At(this.emailparams,!0);window.top.open("mailto:help@wallethub.com?"+e,mt()?"_self":"_system")}_stopProgress(){setTimeout((()=>{this.inprogress=!1}),300)}ContactUs(){this.inprogress=!0,function(){let e=Ln()+"?action=get-my-ip";return new Promise((function(t,n){let i=function(){Un(e).then((function(e){e.ip?t(e.ip):n(null)}),(function(){n(null)}))};Un("https://api.ipify.org/?format=json").then((function(e){e.ip?t(e.ip):i()}),(function(){i()}))}))}().then((e=>{this._stopProgress(),this.emailparams.body=Et(this.emailparams.body,[e,"--",this.data.type]),this._openMail()}),(()=>{this._stopProgress(),this.emailparams.body=Et(this.emailparams.body,["--","--",this.data.type]),this._openMail()}))}ngOnInit(){this.data.maintainance?(this.titlecontent=this.data.maintainancetitle||"Sorry! Be Right Back in 5 minutes.",this.customcontent=this.data.maintainancecontent||"Our engineers are upgrading our servers."):this.data.offline?(this.titlecontent="Connection could not be established",this.customcontent="Please make sure your internet is working properly and try again."):this.data.insecure?(this.titlecontent="Connection not secure",this.customcontent="It appears your internet connection might not be secure. Ensure you are on a secure and stable network."):this.data.custom?(this.customcontent=this.data.content,this.titlecontent=this.data.title):(this.titlecontent="Oops, we encountered an error. Please retry.",this.iserror=!!this.data.type)}}yo.ɵfac=function(e){return new(e||yo)},yo.ɵcmp=r["ɵɵdefineComponent"]({type:yo,selectors:[["error-message-overlay",8,"progress-indicator-container"]],attrs:["class","progress-indicator-container"],decls:9,vars:6,consts:[["class","bold-font",3,"innerHTML",4,"ngIf"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[1,"overlay-row","center"],["zing-touch","",1,"btn","blue","fixed-w-c",3,"onTap"],[1,"progress-indicator"],[1,"bold-font",3,"innerHTML"],["zing-touch","",1,"link",3,"onTap"],[3,"innerHTML"]],template:function(e,t){1&e&&(r["ɵɵtemplate"](0,mo,1,1,"p",0),r["ɵɵtemplate"](1,po,1,0,"br",1),r["ɵɵtemplate"](2,go,5,1,"p",1),r["ɵɵtemplate"](3,fo,1,1,"p",2),r["ɵɵelementStart"](4,"div",3)(5,"button",4),r["ɵɵlistener"]("onTap",(function(){return t.closeDialog()})),r["ɵɵtext"](6,"Ok"),r["ɵɵelementEnd"]()(),r["ɵɵelementStart"](7,"div",5),r["ɵɵelement"](8,"i"),r["ɵɵelementEnd"]()),2&e&&(r["ɵɵproperty"]("ngIf",t.titlecontent),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.iserror||t.customcontent),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.iserror),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.customcontent),r["ɵɵadvance"](4),r["ɵɵclassProp"]("visible",t.inprogress))},dependencies:[r.NgIf,Jt],styles:["[_nghost-%COMP%] { position:relative; text-align: center; max-width: 100%; width: 312px; display: block;}"]});class _o{constructor(e){this._scservice=e}_onClose(){this._error_showing=!0;let e=this._appErrors.onClose.subscribe((()=>{this._error_showing=!1,e&&e.unsubscribe()}))}ngOnInit(){Mn.subscribe("$server:error",(()=>{this._error_showing||(this._appErrors.Open(yo,{type:"Internal Error"},{withclose:!1}),this._onClose())})),Mn.subscribe("$server:csrferror",(()=>{this._error_showing||(this._appErrors.Open(yo,{type:"CSRF Error"},{withclose:!1}),this._onClose())})),Mn.subscribe("$server:whiderror",(()=>{this._error_showing||(this._appErrors.Open(yo,{type:"WHID Error"},{withclose:!1}),this._onClose())})),Mn.subscribe("$server:maintainance",(()=>{this._error_showing||(this._appErrors.Open(yo,{maintainance:!0},{withclose:!1}),this._onClose())})),Mn.subscribe("$device:no-internet",(()=>{this._error_showing||(this._appErrors.Open(yo,{offline:!0},{withclose:!1}),this._onClose())})),Mn.subscribe("$device:insecure",(()=>{this._error_showing||(this._appErrors.Open(yo,{insecure:!0},{withclose:!1}),this._onClose())})),Mn.subscribe("$app:error",(e=>{this._error_showing||(this._appErrors.Open(yo,{custom:!e.generic,title:e.title,content:e.content}),this._onClose())}));const e=this._scservice.overwrite_to_body?window:this._scservice.element;Mn.subscribe("$shortcodes:set",(()=>{Promise.all([p.import("shortcode-js"),p.import("css:/shortcodes.css")]).then((t=>{let n=t[0];n.ClearPrsWidgets(),n.SetPrsWidgets(e,Fn()),n.ClearBoxes(),n.SetBoxes(e,Fn()),n.ClearEduBoxes(),n.SetEduBoxes()}),(function(){}))}))}ngOnDestroy(){!function(e,t){try{e()}catch(e){return It(t)?t(e):void 0}}((()=>{Mn.terminate("$server:error"),Mn.terminate("$server:csrferror"),Mn.terminate("$server:whiderror"),Mn.terminate("$device:no-internet"),Mn.terminate("$app:error")}))}}_o.ɵfac=function(e){return new(e||_o)(r["ɵɵdirectiveInject"](on))},_o.ɵcmp=r["ɵɵdefineComponent"]({type:_o,selectors:[["app-errors"]],viewQuery:function(e,t){if(1&e&&r["ɵɵviewQuery"](vo,5),2&e){let e;r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t._appErrors=e.first)}},decls:2,vars:0,consts:[["appErrors",""]],template:function(e,t){1&e&&r["ɵɵelement"](0,"modal-dialog",null,0)},dependencies:[uo],encapsulation:2});class wo{}function So(e,t,n,i,s,o,a={},l){let c;return Promise.resolve(r.createNgModuleRef(i,t)).then((n=>{let i=n.componentFactoryResolver.resolveComponentFactory(s);return c=i.create(t,[],o),Lt(a,((e,t)=>{c.instance[t]=e})),e.attachView(c.hostView),{ngModule:n,Component:c,destroy:()=>{n.destroy(),c.destroy()}}}))}wo.ɵfac=function(e){return new(e||wo)},wo.ɵmod=r["ɵɵdefineNgModule"]({type:wo}),wo.ɵinj=r["ɵɵdefineInjector"]({imports:[r.CommonModule,Pn,ho]});class Eo{constructor(e,t,n){this._rendererFactory=e,this._zone=t,this._service=n,this.renderer=this._rendererFactory.createRenderer(null,null),this.scroller=new an({nativeElement:document.querySelector("#scroller")},this._zone,this.renderer,this._service),this.scroller.useZen=!0,this.scroller.use_body=!0,this.scroller.main_header_offset="web-app header[main-header]",this.scroller.ngOnInit(),this.scroller.ngAfterViewInit()}Destroy(){this.scroller.ngOnDestroy(),this.renderer.destroy()}}class xo{constructor(e,t){this._el=e,this._renderer=t,this.onImageFailed=new r.EventEmitter}set src(e){e?this._src=e:this.fallback&&(this._src=this.fallback)}get src(){return this._src}ngOnInit(){bt()?this._src&&(this.server_render?ti.getKey("server-render")?this._renderer.setAttribute(this._el.nativeElement,"src",this._src):(this._renderer.setAttribute(this._el.nativeElement,"data-src",this._src),this.keep_space?this._renderer.setStyle(this._el.nativeElement,"opacity","0"):this._renderer.setStyle(this._el.nativeElement,"display","none")):(this._renderer.setAttribute(this._el.nativeElement,this.prepare_ui?"data-src":"src",this._src),this.prepare_ui&&(this.keep_space?this._renderer.setStyle(this._el.nativeElement,"opacity","0"):this._renderer.setStyle(this._el.nativeElement,"display","none")))):this._Preload()}_Preload(){if(this._el.nativeElement&&(this._src||this.fallback)){const e=this._src||this.fallback;let t=this._renderer.createElement("img");const n=this._renderer.listen(t,"load",(()=>{n(),i(),this._renderer.setAttribute(this._el.nativeElement,"src",e),this._renderer.setStyle(this._el.nativeElement,"display",""),this._renderer.setStyle(this._el.nativeElement,"opacity","1"),t=null})),i=this._renderer.listen(t,"error",(()=>{i(),n(),this.onImageFailed.emit(),t=null,this.keep_space||this._renderer.setStyle(this._el.nativeElement,"display","none")}));this._renderer.setAttribute(t,"src",e),this.keep_space?this._renderer.setStyle(this._el.nativeElement,"opacity","0"):this._renderer.setStyle(this._el.nativeElement,"display","none")}}}xo.ɵfac=function(e){return new(e||xo)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.Renderer2))},xo.ɵdir=r["ɵɵdefineDirective"]({type:xo,selectors:[["","preload-src",""]],inputs:{src:["preload-src","src"],fallback:["src-fallback","fallback"],prepare_ui:["ui-hydrate","prepare_ui"],keep_space:["keep-space","keep_space"],server_render:["server-render","server_render"]},outputs:{onImageFailed:"imageFailed"}});class Oo{}Oo.ɵfac=function(e){return new(e||Oo)},Oo.ɵmod=r["ɵɵdefineNgModule"]({type:Oo}),Oo.ɵinj=r["ɵɵdefineInjector"]({imports:[r.CommonModule]});const ko=["deferImg"];class Po{constructor(e,t){this._el=e,this._renderer=t,this._viewed=!1,this._has_intersect=!(bt()||!window.IntersectionObserver)}set src(e){e?this._src=e:this.fallback&&(this._src=this.fallback),this._src&&(this._viewed||(!this._has_intersect||bt())&&this._src&&this.deferImg)&&this._renderer.setAttribute(this.deferImg.nativeElement,"src",this._src)}get src(){return this._src}ngOnInit(){this.onError=this.onError.bind(this),this.onLoad=this.onLoad.bind(this),ti.getKey("server-render")&&(this._prepare_ui=!1)}ngAfterViewInit(){if(this._has_intersect){this._intersectionObserver=new IntersectionObserver((e=>{let t=!1;for(let n=0,i=e.length;n<i;n++){let i=e[n];if(Bt(i.isIntersecting)&&this._isInViewport(i,!0)){t=!0;break}if(i.isIntersecting){t=!0;break}}t&&this._InitiateImageLoad()}),{threshold:.7}),this._renderer.setStyle(this.deferImg.nativeElement,"opacity",0);let e=this.deferImg.nativeElement.width,t=this.deferImg.nativeElement.height;if(window.getComputedStyle){let n=Pt(window.getComputedStyle(this.deferImg.nativeElement).width),i=Pt(window.getComputedStyle(this.deferImg.nativeElement).height);kt(n)&&kt(i)&&(e=n,t=i)}e&&this._renderer.setStyle(this.deferImg.nativeElement,"width",e+"px"),t&&this._renderer.setStyle(this.deferImg.nativeElement,"height",t+"px"),this._intersectionObserver.observe(this._el.nativeElement),this._isInViewport(this._el)&&this._InitiateImageLoad()}else if(this.src){let e=this.deferImg.nativeElement;bt()?this._prepare_ui?(this._renderer.setStyle(e,"display","none"),this._renderer.setAttribute(e,"data-src",this.src)):(this._renderer.setAttribute(e,"src",this.src),this._renderer.setAttribute(e,"loading","lazy")):(this._renderer.listen(e,"error",this.onError),this._renderer.setAttribute(e,"src",this.src))}}ngOnDestroy(){this._intersectionObserver&&this._intersectionObserver.disconnect(),this._intersectionObserver=null}onError(e){if(bt()||!e)return;let t=this.deferImg.nativeElement;this.fallback&&t.src!=this.fallback?(t.src=this.fallback,t.style.display=""):t.style.display="none"}onLoad(e){this._renderer.setStyle(this.deferImg.nativeElement,"display",""),this._renderer.addClass(this.deferImg.nativeElement,"defer-img-ok"),this._renderer.setStyle(this.deferImg.nativeElement,"opacity",""),this._renderer.addClass(this.deferImg.nativeElement,"ng-enter-element"),this._renderer.setStyle(this.deferImg.nativeElement,"width",""),this._renderer.setStyle(this.deferImg.nativeElement,"height","")}_isInViewport(e,t){var n=t?e.boundingClientRect:e.nativeElement.getBoundingClientRect(),i=n.height||n.bottom-n.top,r=n.width||n.right-n.left;return!(!i||!r)&&!(n.top+.4*n.height>window.innerHeight||n.bottom<0)}_InitiateImageLoad(){if(!this.src)return;if(this._viewed)return;let e=this.deferImg.nativeElement;this._renderer.listen(e,"error",this.onError),this._renderer.listen(e,"load",this.onLoad),this._viewed=!0,this._intersectionObserver&&(this._intersectionObserver.disconnect(),this._intersectionObserver=null),this._renderer.setAttribute(this.deferImg.nativeElement,"src",this.src)}}Po.ɵfac=function(e){return new(e||Po)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.Renderer2))},Po.ɵdir=r["ɵɵdefineDirective"]({type:Po,selectors:[["","defer-src",""]],contentQueries:function(e,t,n){if(1&e&&r["ɵɵcontentQuery"](n,ko,5,r.ElementRef),2&e){let e;r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.deferImg=e.first)}},inputs:{src:["defer-src","src"],fallback:["src-fallback","fallback"],_prepare_ui:["ui-hydrate","_prepare_ui"]}});class Co{}function To(e,t){let n=e.src||e.getAttribute("data-src");e.removeAttribute("src");let i=t.createRenderer(null,null),r=new xo({nativeElement:e},i);return r.src=n,r.prepare_ui=!0,r.ngOnInit(),()=>{i.destroy()}}function No(e,t,n){let i=e.src||e.getAttribute("data-src");e.removeAttribute("src"),e.removeAttribute("data-src");let r=t.createRenderer(null,null),s=new Po({nativeElement:e.parentNode},r);return s.deferImg={nativeElement:e},s.src=i,n&&(s.fallback=n),s.ngOnInit(),s.ngAfterViewInit(),()=>{r.destroy(),s.ngOnDestroy()}}Co.ɵfac=function(e){return new(e||Co)},Co.ɵmod=r["ɵɵdefineNgModule"]({type:Co}),Co.ɵinj=r["ɵɵdefineInjector"]({imports:[r.CommonModule]});class Io{constructor(e){this._el=e,this._cleanups=[],this._TabSwitch=this._TabSwitch.bind(this);let t=e.querySelectorAll(".main-content .top-nav a");if(t&&t.length>0)for(let e=0,n=t.length;e<n;e++){let n=t[e],i=e=>{this._TabSwitch(e,n)};n.addEventListener("click",i),this._cleanups.push((()=>{n.removeEventListener("click",i)}))}}_TabSwitch(e,t){e.preventDefault();let n=t.getAttribute("href").substring(1),i=this._el.querySelectorAll(".top-nav .nav-content a");if(i&&i.length>0)for(let e=0,t=i.length;e<t;e++){i[e].classList.remove("selected")}let r=this._el.querySelectorAll(".main-content .content");if(r&&r.length>0)for(let e=0,t=r.length;e<t;e++){r[e].classList.remove("selected")}t.classList.add("selected"),this._el.querySelector(".cc-section .main-content ."+n).classList.add("selected")}Destroy(){Nt(this._cleanups,(e=>{e()}))}}const Fo=function(e){return e.replace(/[^\-?0-9.]/g,"")};g.default.extend("number",(function(e){return e.match(/^[-+]?[£\x24Û¢´€]?\d+\s*([,\.]\d{0,2})/)||e.match(/^[-+]?\d+\s*([,\.]\d{0,2})?[£\x24Û¢´€]/)||e.match(/^[-+]?(\d)*-?([,\.]){0,1}-?(\d)+([E,e][\-+][\d]+)?%?$/)}),(function(e,t){return e=Fo(e),function(e,t){return e=parseFloat(e),t=parseFloat(t),(e=isNaN(e)?0:e)-(isNaN(t)?0:t)}(t=Fo(t),e)}));class Ao{constructor(e,t=.5,n=250){this._dservice=e,this.threshold=t,this._obsEl=[],this._sbs=[],this._obs=[],this._intersected=[],window.IntersectionObserver&&(this._intersectionObserver=new IntersectionObserver((e=>{this.CheckForIntersection(e)}),{threshold:.5})),this._sbs.push(this._dservice.onScroll.subscribe((()=>{clearTimeout(this._scrolltimer),this._scrolltimer=setTimeout((()=>{this._intersectionObserver?(Nt(this._intersected,(e=>{let t=this._obsEl.findIndex((t=>t.el==e)),n=this._obsEl[t];n&&(n.obs.next(),n.obs.complete(),this._obsEl.splice(t,1),this._intersectionObserver.unobserve(n.el))})),this._intersected=[]):this.CheckInView()}),n)}))),this._obs.push(r.fromEvent(window,"resize")),this._obs[this._obs.length-1].subscribe((()=>{Ut((()=>{this._GetViewportSize(),this._intersectionObserver||this.CheckInView()}))})),this._GetViewportSize()}Destroy(){Nt(this._obsEl,(e=>{e.obs.complete()})),Nt(this._sbs,(e=>{e.unsubscribe()})),this._intersected=[],this._obsEl=[],this._obs=[]}Observe(e){let t,n=this._obsEl.findIndex((t=>t.el==e));return t=new r.Subject,n<0?(this._obsEl.push({el:e,obs:t}),n=this._obsEl.length-1):(this._obsEl[n].obs.complete(),this._obsEl[n].obs=t),Ut((()=>{if(null==this._obsEl||!this._obsEl.length)return;this._InViewport(e)?(this._obsEl.splice(n,1),t.next(),t.complete(),this._intersectionObserver&&this._intersectionObserver.unobserve(e)):this._intersectionObserver&&(this._intersectionObserver.unobserve(e),this._intersectionObserver.observe(e))})),t}Unobserve(e){let t=this._obsEl.findIndex((t=>t.el==e));t>-1&&(this._obsEl[t].obs.complete(),this._obsEl.splice(t,1),this._intersectionObserver&&this._intersectionObserver.unobserve(e))}_GetViewportSize(){var e=window;null!=e.innerWidth&&(this._viewport={w:e.innerWidth,h:e.innerHeight})}_InViewport(e){if(!this._viewport)return!1;var t=e instanceof Element?e.getBoundingClientRect():e.boundingClientRect,n=t.height||t.bottom-t.top,i=t.width||t.right-t.left;return!(!n||!i)&&!(t.top+t.height*this.threshold>this._viewport.h||t.bottom<0)}CheckForIntersection(e){this._intersected=[];for(let t=0,n=e.length;t<n;t++){let n=e[t],i=e[t].target;(n.isIntersecting||Bt(n.isIntersecting)&&this._InViewport(n))&&this._intersected.push(i)}}CheckInView(){this._obsEl&&Nt(this._obsEl,((e,t)=>{if(this._InViewport(e.el))return e.obs.next(),e.obs.complete(),this._obsEl.splice(t,1),!1}))}}const Lo=["searchfield"];function Vo(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"th",9),r["ɵɵlistener"]("onTap",(function(){const t=r["ɵɵrestoreView"](e),n=t.$implicit,i=t.index,s=r["ɵɵnextContext"]();return r["ɵɵresetView"](s.SortToggle(n,i))})),r["ɵɵelement"](1,"span",10)(2,"b"),r["ɵɵelementEnd"]()}if(2&e){const e=t.$implicit,n=r["ɵɵnextContext"]();r["ɵɵclassProp"]("headerSortUp",e.sorted_by&&"asc"==n.sorting)("headerSortDown",e.sorted_by&&"desc"==n.sorting),r["ɵɵadvance"](1),r["ɵɵproperty"]("cleanHTML",e.text)}}function zo(e,t){if(1&e&&r["ɵɵelement"](0,"td",10),2&e){const e=t.$implicit;r["ɵɵproperty"]("cleanHTML",e)}}function Mo(e,t){if(1&e&&(r["ɵɵelementStart"](0,"tr"),r["ɵɵtemplate"](1,zo,1,1,"td",12),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"](),t=e.index,n=e.$implicit,i=r["ɵɵnextContext"]();r["ɵɵclassProp"]("ng-enter-element",t>=i.def_limit),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngForOf",n)("ngForTrackBy",i.trackByIndex)}}function Do(e,t){if(1&e&&(r["ɵɵelementContainerStart"](0),r["ɵɵtemplate"](1,Mo,2,4,"tr",11),r["ɵɵelementContainerEnd"]()),2&e){const e=t.index,n=r["ɵɵnextContext"]();r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",e<n.limit||n.show_all)}}function Ro(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"div",13)(1,"button",14),r["ɵɵlistener"]("onTap",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.ToggleMore())})),r["ɵɵelement"](2,"i",15),r["ɵɵelementStart"](3,"span"),r["ɵɵtext"](4),r["ɵɵelementEnd"]()()()}if(2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](1),r["ɵɵclassProp"]("loadactive",e.toggling_display),r["ɵɵadvance"](3),r["ɵɵtextInterpolate"](e.show_all?"Show Less":"Show All")}}class Bo{constructor(e,t){this._scrollservice=e,this._cd=t,this.input={placeholder:""},this._search_by=null,this.headersTable=[],this.itemsTable=[],this._itemsTableOrg=[],this.sorting_row=null,this.show_all=!1,this.toggling_display=!1,this.limit=30,this._max_limit=30,this.def_limit=30}ngOnInit(){this._inputValue=new r.BehaviorSubject(""),this.input.placeholder=`&#xe80f;&nbsp;&nbsp;Search by ${this.index||""}`,Object.defineProperty(this.input,"value",{get:()=>this._inputValue.getValue(),set:e=>{this._inputValue.next(e)}}),this._inputValue.pipe(r.delay(50)).subscribe((e=>{e.length>2?this.itemsTable=this._itemsTableOrg.filter((t=>{let n=!1;return Nt(t,((t,i)=>{if(i==this._search_by){const i=t.toString().toLowerCase(),r=e.toString().toLowerCase();return n=i.indexOf(r)>-1,!1}})),n})):this.itemsTable=this._itemsTableOrg.slice(0),this._cd.detectChanges()})),this._max_limit=this.items.length,Nt(this.items,((e,t)=>{let n=[],i=0;Lt(e,((e,r)=>{0==t&&(this.headersTable.push({sorted_by:!1,text:r}),r==this.index&&(this._search_by=i),i++),n.push(e)})),this.itemsTable.push(n),this._itemsTableOrg.push(n)}))}ngAfterViewInit(){if(!bt()){let e=document.createElement("span");e.innerHTML=this.input.placeholder,this.searchfield.nativeElement.setAttribute("placeholder",e.textContent)}}ngOnDestroy(){this._inputValue&&this._inputValue.complete()}_SortBy(){const e=(e,t)=>{const n=e[this.sorting_row],i=t[this.sorting_row];return"asc"==this.sorting?kt(n)?i-n:i>n?-1:i<n?1:0:kt(n)?n-i:i<n?-1:i>n?1:0};this.itemsTable.sort(e),Ut((()=>{this._itemsTableOrg.sort(e)}))}trackByIndex(e){return e}SortToggle(e,t){this.sorting_row=t,e.sorted_by?"desc"==this.sorting?this.sorting="asc":this.sorting="desc":(this.headersTable.forEach((e=>{e.sorted_by=!1})),e.sorted_by=!0,this.sorting="asc"),this._SortBy()}Search(e){const t=e.target.value;this.input.value=t}ToggleMore(){if(this.toggling_display)return;this.toggling_display=!0;let e=0;this._scrollservice.onScroll.pipe(r.take(1)).subscribe((t=>{e=t}));let t=!1;Ut((()=>{if(this.show_all){const e=()=>{this.limit--,this.limit>this.def_limit?this.limit%(2*this.def_limit)==0?Ut(e):e():(this.show_all=!1,this.toggling_display=!1)};e()}else{const n=()=>{this.limit++,t||(Ut((()=>{this._scrollservice.scrollTo({position:e,timing:0})})),t=!0),this.limit<this._max_limit?this.limit%(2*this.def_limit)==0?Ut(n):n():(this.show_all=!0,this.toggling_display=!1)};n()}}))}}Bo.ɵfac=function(e){return new(e||Bo)(r["ɵɵdirectiveInject"](on),r["ɵɵdirectiveInject"](r.ChangeDetectorRef))},Bo.ɵcmp=r["ɵɵdefineComponent"]({type:Bo,selectors:[["div",8,"city-table-container"]],viewQuery:function(e,t){if(1&e&&r["ɵɵviewQuery"](Lo,5),2&e){let e;r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.searchfield=e.first)}},inputs:{index:"index",items:"items"},attrs:["class","city-table-container"],decls:13,vars:11,consts:[[1,"search-city-container"],[3,"id","for","hidden"],["type","text","role","textbox",1,"single",3,"value","id","input"],["searchfield",""],[1,"data-table"],["border","0","cellpadding","0","cellspacing","0",1,"city-table","center-aligned","table"],["zing-touch","",3,"headerSortUp","headerSortDown","onTap",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","btn-toggle-container",4,"ngIf"],["zing-touch","",3,"onTap"],[3,"cleanHTML"],[3,"ng-enter-element",4,"ngIf"],[3,"cleanHTML",4,"ngFor","ngForOf","ngForTrackBy"],[1,"btn-toggle-container"],["zing-touch","",1,"btn","blue","with-loader",3,"onTap"],[1,"btn-loader"]],template:function(e,t){1&e&&(r["ɵɵelementStart"](0,"div",0)(1,"label",1),r["ɵɵtext"](2,"Search"),r["ɵɵelementEnd"](),r["ɵɵelementStart"](3,"input",2,3),r["ɵɵlistener"]("input",(function(e){return t.Search(e)})),r["ɵɵelementEnd"]()(),r["ɵɵelementStart"](5,"div",4)(6,"table",5)(7,"thead")(8,"tr"),r["ɵɵtemplate"](9,Vo,3,5,"th",6),r["ɵɵelementEnd"]()(),r["ɵɵelementStart"](10,"tbody"),r["ɵɵtemplate"](11,Do,2,1,"ng-container",7),r["ɵɵelementEnd"]()()(),r["ɵɵtemplate"](12,Ro,5,3,"div",8)),2&e&&(r["ɵɵadvance"](1),r["ɵɵproperty"]("id",t.index+"-ipt-label")("for",t.index+"-ipt")("hidden",!0),r["ɵɵadvance"](2),r["ɵɵproperty"]("value",t.input.value)("id",t.index+"-ipt"),r["ɵɵattribute"]("aria-labelledby",t.index+"-ipt-label"),r["ɵɵadvance"](6),r["ɵɵproperty"]("ngForOf",t.headersTable)("ngForTrackBy",t.trackByIndex),r["ɵɵadvance"](2),r["ɵɵproperty"]("ngForOf",t.itemsTable)("ngForTrackBy",t.trackByIndex),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.itemsTable.length>=t.limit))},dependencies:[r.NgForOf,r.NgIf,bn,Jt],encapsulation:2});class jo{}jo.ɵfac=function(e){return new(e||jo)},jo.ɵmod=r["ɵɵdefineNgModule"]({type:jo}),jo.ɵinj=r["ɵɵdefineInjector"]({imports:[r.CommonModule,Pn]});class $o{constructor(e,t,n){this._el=e,this._render=t,this._cd=n,this.is_hidden=!0,this.initial=!0,this.active=!1}ControlPopup(){const e=this._el.nativeElement,t=e.querySelector(".fcs-main-content");if(this.is_hidden=!this.is_hidden,this.initial)return this._render.setStyle(e,"bottom",-1*t.offsetHeight+"px"),this.initial=!1,this.active=!0,this._cd.detectChanges(),void Ut((()=>{this._render.setStyle(e,"bottom","0px"),this._cd.detectChanges()}));this.initial=!1,this.active=!0,this.is_hidden?this._render.setStyle(e,"bottom",-1*t.offsetHeight+"px"):this._render.setStyle(e,"bottom","0px"),this._cd.detectChanges()}ngAfterViewInit(){Ut((()=>{const e=this._el.nativeElement,t=e.querySelector(".fcs-main-content");this._render.setStyle(e,"bottom",-1*t.offsetHeight+"px"),this._cd.detectChanges(),Ut((()=>{this.initial=!1,this.active=!0,this._cd.detectChanges()}))}))}}$o.ɵfac=function(e){return new(e||$o)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.Renderer2),r["ɵɵdirectiveInject"](r.ChangeDetectorRef))},$o.ɵcmp=r["ɵɵdefineComponent"]({type:$o,selectors:[["free-credit"]],hostVars:6,hostBindings:function(e,t){2&e&&r["ɵɵclassProp"]("fcs-hidden",t.is_hidden)("fcs-render",t.initial)("fcs-active",t.active)},decls:37,vars:1,consts:[["zing-touch","","role","button","tabindex","0","aria-haspopup","dialog",1,"fcs-head-content","bold-font",3,"onTap"],["aria-hidden","true","tabindex","-1",1,"fcs-cta-arrow"],[1,"af-icon-up-open"],[1,"af-icon-cross"],[1,"fcs-main-content"],[1,"fcs-mc-hd"],[1,"fcs-mc-prg","semi-bold-font"],["aria-hidden","true","tabindex","-1"],[1,"fcs-mc-center"],["role","link","onclick","location.href='/join/';",1,"fcs-mc-button","semi-bold-font"],[1,"fcs-mc-bt-p","semi-bold-font"]],template:function(e,t){1&e&&(r["ɵɵelementStart"](0,"div",0),r["ɵɵlistener"]("onTap",(function(){return t.ControlPopup()})),r["ɵɵtext"](1," GET YOUR FREE CREDIT SCORE & REPORT "),r["ɵɵelementStart"](2,"span",1),r["ɵɵelement"](3,"i",2)(4,"i",3),r["ɵɵelementEnd"]()(),r["ɵɵelementStart"](5,"div",4)(6,"div",5),r["ɵɵtext"](7,"Join WalletHub"),r["ɵɵelementEnd"](),r["ɵɵelementStart"](8,"p",6)(9,"span",7),r["ɵɵtext"](10,"+"),r["ɵɵelementEnd"](),r["ɵɵtext"](11," 100% FREE"),r["ɵɵelementEnd"](),r["ɵɵelementStart"](12,"p",6)(13,"span",7),r["ɵɵtext"](14,"+"),r["ɵɵelementEnd"](),r["ɵɵtext"](15," Unlimited Credit Reports"),r["ɵɵelementEnd"](),r["ɵɵelementStart"](16,"p",6)(17,"span",7),r["ɵɵtext"](18,"+"),r["ɵɵelementEnd"](),r["ɵɵtext"](19," Unlimited Credit Scores"),r["ɵɵelementEnd"](),r["ɵɵelementStart"](20,"p",6)(21,"span",7),r["ɵɵtext"](22,"+"),r["ɵɵelementEnd"](),r["ɵɵtext"](23," Credit Monitoring Protection"),r["ɵɵelementEnd"](),r["ɵɵelementStart"](24,"p",6)(25,"span",7),r["ɵɵtext"](26,"+"),r["ɵɵelementEnd"](),r["ɵɵtext"](27," Credit Improvement Tips"),r["ɵɵelementEnd"](),r["ɵɵelementStart"](28,"p",6)(29,"span",7),r["ɵɵtext"](30,"+"),r["ɵɵelementEnd"](),r["ɵɵtext"](31," Automatically Finds Savings"),r["ɵɵelementEnd"](),r["ɵɵelementStart"](32,"div",8)(33,"button",9),r["ɵɵtext"](34,"SIGN UP FOR FREE"),r["ɵɵelementEnd"](),r["ɵɵelementStart"](35,"p",10),r["ɵɵtext"](36,"No credit card needed"),r["ɵɵelementEnd"]()()()),2&e&&r["ɵɵattribute"]("aria-expanded",!t.is_hidden)},dependencies:[Jt],encapsulation:2,changeDetection:0});class Uo{}Uo.ɵfac=function(e){return new(e||Uo)},Uo.ɵmod=r["ɵɵdefineNgModule"]({type:Uo}),Uo.ɵinj=r["ɵɵdefineInjector"]({imports:[Pn,r.CommonModule]}),function(t,n){"object"==typeof e&&"undefined"!=typeof module?n(e):"function"==typeof define&&define.amd?define(["exports"],n):n((t=t||self).googleCharts={})}(void 0,(function(e){function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function n(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}function i(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}function r(e,t){return e(t={exports:{}},t.exports),t.exports}var s=r((function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)})),o=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},a=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}},l={}.toString,c=function(e){return l.call(e).slice(8,-1)},u=r((function(e){var t=e.exports={version:"2.6.1"};"number"==typeof __e&&(__e=t)})),h=r((function(e){var t="__core-js_shared__",n=s[t]||(s[t]={});(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:u.version,mode:"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})})),d=0,m=Math.random(),p=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++d+m).toString(36))},g=r((function(e){var t=h("wks"),n=s.Symbol,i="function"==typeof n;(e.exports=function(e){return t[e]||(t[e]=i&&n[e]||(i?n:p)("Symbol."+e))}).store=t})),f=g("toStringTag"),v="Arguments"==c(function(){return arguments}()),b=function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),f))?n:v?c(t):"Object"==(i=c(t))&&"function"==typeof t.callee?"Arguments":i},y=function(e){return"object"==typeof e?null!==e:"function"==typeof e},_=function(e){if(!y(e))throw TypeError(e+" is not an object!");return e},w=function(e){try{return!!e()}catch(e){return!0}},S=!w((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),E=s.document,x=y(E)&&y(E.createElement),O=function(e){return x?E.createElement(e):{}},k=!S&&!w((function(){return 7!=Object.defineProperty(O("div"),"a",{get:function(){return 7}}).a})),P=function(e,t){if(!y(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!y(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!y(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!y(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")},C=Object.defineProperty,T={f:S?Object.defineProperty:function(e,t,n){if(_(e),t=P(t,!0),_(n),k)try{return C(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},N=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},I=S?function(e,t,n){return T.f(e,t,N(1,n))}:function(e,t,n){return e[t]=n,e},F={}.hasOwnProperty,A=function(e,t){return F.call(e,t)},L=r((function(e){var t=p("src"),n="toString",i=Function.toString,r=(""+i).split(n);u.inspectSource=function(e){return i.call(e)},(e.exports=function(e,n,i,o){var a="function"==typeof i;a&&(A(i,"name")||I(i,"name",n)),e[n]!==i&&(a&&(A(i,t)||I(i,t,e[n]?""+e[n]:r.join(String(n)))),e===s?e[n]=i:o?e[n]?e[n]=i:I(e,n,i):(delete e[n],I(e,n,i)))})(Function.prototype,n,(function(){return"function"==typeof this&&this[t]||i.call(this)}))})),V=function(e,t,n){var i,r,o,l,c=e&V.F,h=e&V.G,d=e&V.S,m=e&V.P,p=e&V.B,g=h?s:d?s[t]||(s[t]={}):(s[t]||{}).prototype,f=h?u:u[t]||(u[t]={}),v=f.prototype||(f.prototype={});for(i in h&&(n=t),n)o=((r=!c&&g&&void 0!==g[i])?g:n)[i],l=p&&r?a(o,s):m&&"function"==typeof o?a(Function.call,o):o,g&&L(g,i,o,e&V.U),f[i]!=o&&I(f,i,l),m&&v[i]!=o&&(v[i]=o)};s.core=u,V.F=1,V.G=2,V.S=4,V.P=8,V.B=16,V.W=32,V.U=64,V.R=128;var z,M,D,R=V,B=function(e,t,n,i){try{return i?t(_(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&_(r.call(e)),t}},j={},$=g("iterator"),U=Array.prototype,W=function(e){return void 0!==e&&(j.Array===e||U[$]===e)},H=Math.ceil,G=Math.floor,q=function(e){return isNaN(e=+e)?0:(e>0?G:H)(e)},K=Math.min,Z=function(e){return e>0?K(q(e),9007199254740991):0},Q=g("iterator"),Y=u.getIteratorMethod=function(e){if(null!=e)return e[Q]||e["@@iterator"]||j[b(e)]},X=r((function(e){var t={},n={},i=e.exports=function(e,i,r,s,o){var l,c,u,h,d=o?function(){return e}:Y(e),m=a(r,s,i?2:1),p=0;if("function"!=typeof d)throw TypeError(e+" is not iterable!");if(W(d)){for(l=Z(e.length);l>p;p++)if((h=i?m(_(c=e[p])[0],c[1]):m(e[p]))===t||h===n)return h}else for(u=d.call(e);!(c=u.next()).done;)if((h=B(u,m,c.value,i))===t||h===n)return h};i.BREAK=t,i.RETURN=n})),J=g("species"),ee=function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)},te=s.document,ne=te&&te.documentElement,ie=s.process,re=s.setImmediate,se=s.clearImmediate,oe=s.MessageChannel,ae=s.Dispatch,le=0,ce={},ue="onreadystatechange",he=function(){var e=+this;if(ce.hasOwnProperty(e)){var t=ce[e];delete ce[e],t()}},de=function(e){he.call(e.data)};re&&se||(re=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return ce[++le]=function(){ee("function"==typeof e?e:Function(e),t)},z(le),le},se=function(e){delete ce[e]},"process"==c(ie)?z=function(e){ie.nextTick(a(he,e,1))}:ae&&ae.now?z=function(e){ae.now(a(he,e,1))}:oe?(D=(M=new oe).port2,M.port1.onmessage=de,z=a(D.postMessage,D,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(z=function(e){s.postMessage(e+"","*")},s.addEventListener("message",de,!1)):z=ue in O("script")?function(e){ne.appendChild(O("script")).onreadystatechange=function(){ne.removeChild(this),he.call(e)}}:function(e){setTimeout(a(he,e,1),0)});var me={set:re,clear:se},pe=me.set,ge=s.MutationObserver||s.WebKitMutationObserver,fe=s.process,ve=s.Promise,be="process"==c(fe);function ye(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i})),this.resolve=o(t),this.reject=o(n)}var _e={f:function(e){return new ye(e)}},we=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}},Se=s.navigator,Ee=Se&&Se.userAgent||"",xe=T.f,Oe=g("toStringTag"),ke=function(e,t,n){e&&!A(e=n?e:e.prototype,Oe)&&xe(e,Oe,{configurable:!0,value:t})},Pe=g("species"),Ce=g("iterator"),Te=!1;try{[7][Ce]().return=function(){Te=!0}}catch(e){}var Ne,Ie,Fe,Ae,Le,Ve=me.set,ze=function(){var e,t,n,i=function(){var i,r;for(be&&(i=fe.domain)&&i.exit();e;){r=e.fn,e=e.next;try{r()}catch(i){throw e?n():t=void 0,i}}t=void 0,i&&i.enter()};if(be)n=function(){fe.nextTick(i)};else if(!ge||s.navigator&&s.navigator.standalone)if(ve&&ve.resolve){var r=ve.resolve(void 0);n=function(){r.then(i)}}else n=function(){pe.call(s,i)};else{var o=!0,a=document.createTextNode("");new ge(i).observe(a,{characterData:!0}),n=function(){a.data=o=!o}}return function(i){var r={fn:i,next:void 0};t&&(t.next=r),e||(e=r,n()),t=r}}(),Me="Promise",De=s.TypeError,Re=s.process,Be=Re&&Re.versions,je=Be&&Be.v8||"",$e=s.Promise,Ue="process"==b(Re),We=function(){},He=Ie=_e.f,Ge=!!function(){try{var e=$e.resolve(1),t=(e.constructor={})[g("species")]=function(e){e(We,We)};return(Ue||"function"==typeof PromiseRejectionEvent)&&e.then(We)instanceof t&&0!==je.indexOf("6.6")&&-1===Ee.indexOf("Chrome/66")}catch(e){}}(),qe=function(e){var t;return!(!y(e)||"function"!=typeof(t=e.then))&&t},Ke=function(e,t){if(!e._n){e._n=!0;var n=e._c;ze((function(){for(var i=e._v,r=1==e._s,s=0,o=function(t){var n,s,o,a=r?t.ok:t.fail,l=t.resolve,c=t.reject,u=t.domain;try{a?(r||(2==e._h&&Ye(e),e._h=1),!0===a?n=i:(u&&u.enter(),n=a(i),u&&(u.exit(),o=!0)),n===t.promise?c(De("Promise-chain cycle")):(s=qe(n))?s.call(n,l,c):l(n)):c(i)}catch(e){u&&!o&&u.exit(),c(e)}};n.length>s;)o(n[s++]);e._c=[],e._n=!1,t&&!e._h&&Ze(e)}))}},Ze=function(e){Ve.call(s,(function(){var t,n,i,r=e._v,o=Qe(e);if(o&&(t=we((function(){Ue?Re.emit("unhandledRejection",r,e):(n=s.onunhandledrejection)?n({promise:e,reason:r}):(i=s.console)&&i.error&&i.error("Unhandled promise rejection",r)})),e._h=Ue||Qe(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},Qe=function(e){return 1!==e._h&&0===(e._a||e._c).length},Ye=function(e){Ve.call(s,(function(){var t;Ue?Re.emit("rejectionHandled",e):(t=s.onrejectionhandled)&&t({promise:e,reason:e._v})}))},Xe=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),Ke(t,!0))},Je=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw De("Promise can't be resolved itself");(t=qe(e))?ze((function(){var i={_w:n,_d:!1};try{t.call(e,a(Je,i,1),a(Xe,i,1))}catch(e){Xe.call(i,e)}})):(n._v=e,n._s=1,Ke(n,!1))}catch(e){Xe.call({_w:n,_d:!1},e)}}};Ge||($e=function(e){!function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!")}(this,$e,Me,"_h"),o(e),Ne.call(this);try{e(a(Je,this,1),a(Xe,this,1))}catch(e){Xe.call(this,e)}},(Ne=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=function(e,t,n){for(var i in t)L(e,i,t[i],n);return e}($e.prototype,{then:function(e,t){var n,i,r,s=He((n=$e,void 0===(r=_(this).constructor)||null==(i=_(r)[J])?n:o(i)));return s.ok="function"!=typeof e||e,s.fail="function"==typeof t&&t,s.domain=Ue?Re.domain:void 0,this._c.push(s),this._a&&this._a.push(s),this._s&&Ke(this,!1),s.promise},catch:function(e){return this.then(void 0,e)}}),Fe=function(){var e=new Ne;this.promise=e,this.resolve=a(Je,e,1),this.reject=a(Xe,e,1)},_e.f=He=function(e){return e===$e||e===Ae?new Fe(e):Ie(e)}),R(R.G+R.W+R.F*!Ge,{Promise:$e}),ke($e,Me),Le=s[Me],S&&Le&&!Le[Pe]&&T.f(Le,Pe,{configurable:!0,get:function(){return this}}),Ae=u.Promise,R(R.S+R.F*!Ge,Me,{reject:function(e){var t=He(this);return(0,t.reject)(e),t.promise}}),R(R.S+R.F*!Ge,Me,{resolve:function(e){return function(e,t){if(_(e),y(t)&&t.constructor===e)return t;var n=_e.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),R(R.S+R.F*!(Ge&&function(e,t){if(!t&&!Te)return!1;var n=!1;try{var i=[7],r=i[Ce]();r.next=function(){return{done:n=!0}},i[Ce]=function(){return r},e(i)}catch(e){}return n}((function(e){$e.all(e).catch(We)}))),Me,{all:function(e){var t=this,n=He(t),i=n.resolve,r=n.reject,s=we((function(){var n=[],s=0,o=1;X(e,!1,(function(e){var a=s++,l=!1;n.push(void 0),o++,t.resolve(e).then((function(e){l||(l=!0,n[a]=e,--o||i(n))}),r)})),--o||i(n)}));return s.e&&r(s.v),n.promise},race:function(e){var t=this,n=He(t),i=n.reject,r=we((function(){X(e,!1,(function(e){t.resolve(e).then(n.resolve,i)}))}));return r.e&&i(r.v),n.promise}});var et={f:g},tt=T.f,nt=function(e){var t=u.Symbol||(u.Symbol=s.Symbol||{});"_"==e.charAt(0)||e in t||tt(t,e,{value:et.f(e)})};nt("asyncIterator");var it,rt=r((function(e){var t=p("meta"),n=T.f,i=0,r=Object.isExtensible||function(){return!0},s=!w((function(){return r(Object.preventExtensions({}))})),o=function(e){n(e,t,{value:{i:"O"+ ++i,w:{}}})},a=e.exports={KEY:t,NEED:!1,fastKey:function(e,n){if(!y(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!A(e,t)){if(!r(e))return"F";if(!n)return"E";o(e)}return e[t].i},getWeak:function(e,n){if(!A(e,t)){if(!r(e))return!0;if(!n)return!1;o(e)}return e[t].w},onFreeze:function(e){return s&&a.NEED&&r(e)&&!A(e,t)&&o(e),e}}})),st=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==c(e)?e.split(""):Object(e)},ot=function(e){return st(function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}(e))},at=Math.max,lt=Math.min,ct=h("keys"),ut=function(e){return ct[e]||(ct[e]=p(e))},ht=(it=!1,function(e,t,n){var i,r=ot(e),s=Z(r.length),o=function(e,t){return(e=q(e))<0?at(e+t,0):lt(e,t)}(n,s);if(it&&t!=t){for(;s>o;)if((i=r[o++])!=i)return!0}else for(;s>o;o++)if((it||o in r)&&r[o]===t)return it||o||0;return!it&&-1}),dt=ut("IE_PROTO"),mt=function(e,t){var n,i=ot(e),r=0,s=[];for(n in i)n!=dt&&A(i,n)&&s.push(n);for(;t.length>r;)A(i,n=t[r++])&&(~ht(s,n)||s.push(n));return s},pt="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),gt=Object.keys||function(e){return mt(e,pt)},ft={f:Object.getOwnPropertySymbols},vt={f:{}.propertyIsEnumerable},bt=Array.isArray||function(e){return"Array"==c(e)},yt=S?Object.defineProperties:function(e,t){_(e);for(var n,i=gt(t),r=i.length,s=0;r>s;)T.f(e,n=i[s++],t[n]);return e},_t=ut("IE_PROTO"),wt=function(){},St=function(){var e,t=O("iframe"),n=pt.length;for(t.style.display="none",ne.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),St=e.F;n--;)delete St.prototype[pt[n]];return St()},Et=Object.create||function(e,t){var n;return null!==e?(wt.prototype=_(e),n=new wt,wt.prototype=null,n[_t]=e):n=St(),void 0===t?n:yt(n,t)},xt=pt.concat("length","prototype"),Ot={f:Object.getOwnPropertyNames||function(e){return mt(e,xt)}},kt=Ot.f,Pt={}.toString,Ct="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Tt={f:function(e){return Ct&&"[object Window]"==Pt.call(e)?function(e){try{return kt(e)}catch(e){return Ct.slice()}}(e):kt(ot(e))}},Nt=Object.getOwnPropertyDescriptor,It={f:S?Nt:function(e,t){if(e=ot(e),t=P(t,!0),k)try{return Nt(e,t)}catch(e){}if(A(e,t))return N(!vt.f.call(e,t),e[t])}},Ft=rt.KEY,At=It.f,Lt=T.f,Vt=Tt.f,zt=s.Symbol,Mt=s.JSON,Dt=Mt&&Mt.stringify,Rt=g("_hidden"),Bt=g("toPrimitive"),jt={}.propertyIsEnumerable,$t=h("symbol-registry"),Ut=h("symbols"),Wt=h("op-symbols"),Ht=Object.prototype,Gt="function"==typeof zt,qt=s.QObject,Kt=!qt||!qt.prototype||!qt.prototype.findChild,Zt=S&&w((function(){return 7!=Et(Lt({},"a",{get:function(){return Lt(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=At(Ht,t);i&&delete Ht[t],Lt(e,t,n),i&&e!==Ht&&Lt(Ht,t,i)}:Lt,Qt=function(e){var t=Ut[e]=Et(zt.prototype);return t._k=e,t},Yt=Gt&&"symbol"==typeof zt.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof zt},Xt=function(e,t,n){return e===Ht&&Xt(Wt,t,n),_(e),t=P(t,!0),_(n),A(Ut,t)?(n.enumerable?(A(e,Rt)&&e[Rt][t]&&(e[Rt][t]=!1),n=Et(n,{enumerable:N(0,!1)})):(A(e,Rt)||Lt(e,Rt,N(1,{})),e[Rt][t]=!0),Zt(e,t,n)):Lt(e,t,n)},Jt=function(e,t){_(e);for(var n,i=function(e){var t=gt(e),n=ft.f;if(n)for(var i,r=n(e),s=vt.f,o=0;r.length>o;)s.call(e,i=r[o++])&&t.push(i);return t}(t=ot(t)),r=0,s=i.length;s>r;)Xt(e,n=i[r++],t[n]);return e},en=function(e){var t=jt.call(this,e=P(e,!0));return!(this===Ht&&A(Ut,e)&&!A(Wt,e))&&(!(t||!A(this,e)||!A(Ut,e)||A(this,Rt)&&this[Rt][e])||t)},tn=function(e,t){if(e=ot(e),t=P(t,!0),e!==Ht||!A(Ut,t)||A(Wt,t)){var n=At(e,t);return!n||!A(Ut,t)||A(e,Rt)&&e[Rt][t]||(n.enumerable=!0),n}},nn=function(e){for(var t,n=Vt(ot(e)),i=[],r=0;n.length>r;)A(Ut,t=n[r++])||t==Rt||t==Ft||i.push(t);return i},rn=function(e){for(var t,n=e===Ht,i=Vt(n?Wt:ot(e)),r=[],s=0;i.length>s;)!A(Ut,t=i[s++])||n&&!A(Ht,t)||r.push(Ut[t]);return r};Gt||(zt=function(){if(this instanceof zt)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===Ht&&t.call(Wt,n),A(this,Rt)&&A(this[Rt],e)&&(this[Rt][e]=!1),Zt(this,e,N(1,n))};return S&&Kt&&Zt(Ht,e,{configurable:!0,set:t}),Qt(e)},L(zt.prototype,"toString",(function(){return this._k})),It.f=tn,T.f=Xt,Ot.f=Tt.f=nn,vt.f=en,ft.f=rn,S&&L(Ht,"propertyIsEnumerable",en,!0),et.f=function(e){return Qt(g(e))}),R(R.G+R.W+R.F*!Gt,{Symbol:zt});for(var sn="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),on=0;sn.length>on;)g(sn[on++]);for(var an=gt(g.store),ln=0;an.length>ln;)nt(an[ln++]);R(R.S+R.F*!Gt,"Symbol",{for:function(e){return A($t,e+="")?$t[e]:$t[e]=zt(e)},keyFor:function(e){if(!Yt(e))throw TypeError(e+" is not a symbol!");for(var t in $t)if($t[t]===e)return t},useSetter:function(){Kt=!0},useSimple:function(){Kt=!1}}),R(R.S+R.F*!Gt,"Object",{create:function(e,t){return void 0===t?Et(e):Jt(Et(e),t)},defineProperty:Xt,defineProperties:Jt,getOwnPropertyDescriptor:tn,getOwnPropertyNames:nn,getOwnPropertySymbols:rn}),Mt&&R(R.S+R.F*(!Gt||w((function(){var e=zt();return"[null]"!=Dt([e])||"{}"!=Dt({a:e})||"{}"!=Dt(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,i=[e],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=t=i[1],(y(t)||void 0!==e)&&!Yt(e))return bt(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Yt(t))return t}),i[1]=t,Dt.apply(Mt,i)}}),zt.prototype[Bt]||I(zt.prototype,Bt,zt.prototype.valueOf),ke(zt,"Symbol"),ke(Math,"Math",!0),ke(s.JSON,"JSON",!0);var cn,un=Symbol("loadScript"),hn=Symbol("instance"),dn=function(){function e(){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this[hn])return this[hn];this[hn]=this}return n(e,[{key:hn,get:function(){return cn},set:function(e){cn=e}}]),n(e,[{key:"reset",value:function(){cn=null}},{key:un,value:function(){var e=this;return this.scriptPromise||(this.scriptPromise=new Promise(function(t){i(this,e);var n=document.getElementsByTagName("body")[0],r=document.createElement("script");r.type="text/javascript",r.onload=function(){var e=this;mn.api=window.google,mn.api.charts.load("current",{packages:["corechart","table"]}),mn.api.charts.setOnLoadCallback(function(){i(this,e),t()}.bind(this))},r.src="https://www.gstatic.com/charts/loader.js",n.appendChild(r)}.bind(this))),this.scriptPromise}},{key:"load",value:function(e,t){var n=this;return this[un]().then(function(){if(i(this,n),t){var r={};r=t instanceof Object?t:Array.isArray(t)?{packages:t}:{packages:[t]},this.api.charts.load("current",r),this.api.charts.setOnLoadCallback(e)}else{if("function"!=typeof e)throw"callback must be a function";e()}}.bind(this))}}]),e}(),mn=new dn;e.GoogleCharts=mn,e.default=dn,Object.defineProperty(e,"__esModule",{value:!0})}));const Wo={allowedTagList:["b","caption","cite","code","const","dd","del","div","dfn","dt","em","h1","h2","h3","h4","h5","h6","input","ins","kdb","label","li","option","output","p","q","s","sample","span","strong","td","th","u"]};Object.freeze(Wo.allowedTagList),Object.defineProperty(Wo,"allowedTagList",{configurable:!1,writable:!1}),Wo.keyCode={Backspace:8,Tab:9,Enter:13,Shift:16,Ctrl:17,Alt:18,Pause:19,CapsLock:20,Esc:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,LeftArrow:37,UpArrow:38,RightArrow:39,DownArrow:40,Insert:45,Delete:46,num0:48,num1:49,num2:50,num3:51,num4:52,num5:53,num6:54,num7:55,num8:56,num9:57,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,OSLeft:91,OSRight:92,ContextMenu:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,MultiplyNumpad:106,PlusNumpad:107,MinusNumpad:109,DotNumpad:110,SlashNumpad:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NumLock:144,ScrollLock:145,HyphenFirefox:173,MyComputer:182,MyCalculator:183,Semicolon:186,Equal:187,Comma:188,Hyphen:189,Dot:190,Slash:191,Backquote:192,LeftBracket:219,Backslash:220,RightBracket:221,Quote:222,Command:224,AltGraph:225,AndroidDefault:229},Object.freeze(Wo.keyCode),Object.defineProperty(Wo,"keyCode",{configurable:!1,writable:!1}),Wo.fromCharCodeKeyCode={0:"LaunchCalculator",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",91:"OS",92:"OSRight",93:"ContextMenu",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",173:"-",182:"MyComputer",183:"MyCalculator",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Meta",225:"AltGraph"},Object.freeze(Wo.fromCharCodeKeyCode),Object.defineProperty(Wo,"fromCharCodeKeyCode",{configurable:!1,writable:!1}),Wo.keyName={Unidentified:"Unidentified",AndroidDefault:"AndroidDefault",Alt:"Alt",AltGr:"AltGraph",CapsLock:"CapsLock",Ctrl:"Control",Fn:"Fn",FnLock:"FnLock",Hyper:"Hyper",Meta:"Meta",OSLeft:"OS",OSRight:"OS",Command:"OS",NumLock:"NumLock",ScrollLock:"ScrollLock",Shift:"Shift",Super:"Super",Symbol:"Symbol",SymbolLock:"SymbolLock",Enter:"Enter",Tab:"Tab",Space:" ",LeftArrow:"ArrowLeft",UpArrow:"ArrowUp",RightArrow:"ArrowRight",DownArrow:"ArrowDown",End:"End",Home:"Home",PageUp:"PageUp",PageDown:"PageDown",Backspace:"Backspace",Clear:"Clear",Copy:"Copy",CrSel:"CrSel",Cut:"Cut",Delete:"Delete",EraseEof:"EraseEof",ExSel:"ExSel",Insert:"Insert",Paste:"Paste",Redo:"Redo",Undo:"Undo",Accept:"Accept",Again:"Again",Attn:"Attn",Cancel:"Cancel",ContextMenu:"ContextMenu",Esc:"Escape",Execute:"Execute",Find:"Find",Finish:"Finish",Help:"Help",Pause:"Pause",Play:"Play",Props:"Props",Select:"Select",ZoomIn:"ZoomIn",ZoomOut:"ZoomOut",BrightnessDown:"BrightnessDown",BrightnessUp:"BrightnessUp",Eject:"Eject",LogOff:"LogOff",Power:"Power",PowerOff:"PowerOff",PrintScreen:"PrintScreen",Hibernate:"Hibernate",Standby:"Standby",WakeUp:"WakeUp",Compose:"Compose",Dead:"Dead",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F11",F12:"F12",Print:"Print",num0:"0",num1:"1",num2:"2",num3:"3",num4:"4",num5:"5",num6:"6",num7:"7",num8:"8",num9:"9",a:"a",b:"b",c:"c",d:"d",e:"e",f:"f",g:"g",h:"h",i:"i",j:"j",k:"k",l:"l",m:"m",n:"n",o:"o",p:"p",q:"q",r:"r",s:"s",t:"t",u:"u",v:"v",w:"w",x:"x",y:"y",z:"z",A:"A",B:"B",C:"C",D:"D",E:"E",F:"F",G:"G",H:"H",I:"I",J:"J",K:"K",L:"L",M:"M",N:"N",O:"O",P:"P",Q:"Q",R:"R",S:"S",T:"T",U:"U",V:"V",W:"W",X:"X",Y:"Y",Z:"Z",Semicolon:";",Equal:"=",Comma:",",Hyphen:"-",Minus:"-",Plus:"+",Dot:".",Slash:"/",Backquote:"`",LeftParenthesis:"(",RightParenthesis:")",LeftBracket:"[",RightBracket:"]",Backslash:"\\",Quote:"'",numpad0:"0",numpad1:"1",numpad2:"2",numpad3:"3",numpad4:"4",numpad5:"5",numpad6:"6",numpad7:"7",numpad8:"8",numpad9:"9",NumpadDot:".",NumpadDotAlt:",",NumpadMultiply:"*",NumpadPlus:"+",NumpadMinus:"-",NumpadSubtract:"-",NumpadSlash:"/",NumpadDotObsoleteBrowsers:"Decimal",NumpadMultiplyObsoleteBrowsers:"Multiply",NumpadPlusObsoleteBrowsers:"Add",NumpadMinusObsoleteBrowsers:"Subtract",NumpadSlashObsoleteBrowsers:"Divide",_allFnKeys:["F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"],_someNonPrintableKeys:["Tab","Enter","Shift","ShiftLeft","ShiftRight","Control","ControlLeft","ControlRight","Alt","AltLeft","AltRight","Pause","CapsLock","Escape"],_directionKeys:["PageUp","PageDown","End","Home","ArrowDown","ArrowLeft","ArrowRight","ArrowUp"]},Object.freeze(Wo.keyName._allFnKeys),Object.freeze(Wo.keyName._someNonPrintableKeys),Object.freeze(Wo.keyName._directionKeys),Object.freeze(Wo.keyName),Object.defineProperty(Wo,"keyName",{configurable:!1,writable:!1}),Object.freeze(Wo);class Ho{static isNull(e){return null===e}static isUndefined(e){return void 0===e}static isUndefinedOrNullOrEmpty(e){return null==e||""===e}static isString(e){return"string"==typeof e||e instanceof String}static isEmptyString(e){return""===e}static isBoolean(e){return"boolean"==typeof e}static isTrueOrFalseString(e){const t=String(e).toLowerCase();return"true"===t||"false"===t}static isObject(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}static isEmptyObj(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}static isNumberStrict(e){return"number"==typeof e}static isNumber(e){return!this.isArray(e)&&!isNaN(parseFloat(e))&&isFinite(e)}static isDigit(e){return/\d/.test(e)}static isNumberOrArabic(e){const t=this.arabicToLatinNumbers(e,!1,!0,!0);return this.isNumber(t)}static isInt(e){return"number"==typeof e&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)}static isFunction(e){return"function"==typeof e}static isIE11(){return"undefined"!=typeof window&&!!window.MSInputMethodContext&&!!document.documentMode}static contains(e,t){return!(!this.isString(e)||!this.isString(t)||""===e||""===t)&&-1!==e.indexOf(t)}static isInArray(e,t){return!(!this.isArray(t)||t===[]||this.isUndefined(e))&&-1!==t.indexOf(e)}static isArray(e){if("[object Array]"===Object.prototype.toString.call([]))return Array.isArray(e)||"object"==typeof e&&"[object Array]"===Object.prototype.toString.call(e);throw new Error("toString message changed for Object Array")}static isElement(e){return"undefined"!=typeof Element&&e instanceof Element}static isInputElement(e){return this.isElement(e)&&"input"===e.tagName.toLowerCase()}static decimalPlaces(e){const[,t]=e.split(".");return this.isUndefined(t)?0:t.length}static indexFirstNonZeroDecimalPlace(e){const[,t]=String(Math.abs(e)).split(".");if(this.isUndefined(t))return 0;let n=t.lastIndexOf("0");return-1===n?n=0:n+=2,n}static keyCodeNumber(e){return void 0===e.which?e.keyCode:e.which}static character(e){let t;if("Unidentified"===e.key||void 0===e.key||this.isSeleniumBot()){const n=this.keyCodeNumber(e);if(n===Wo.keyCode.AndroidDefault)return Wo.keyName.AndroidDefault;const i=Wo.fromCharCodeKeyCode[n];t=Ho.isUndefinedOrNullOrEmpty(i)?String.fromCharCode(n):i}else{let n;switch(e.key){case"Add":t=Wo.keyName.NumpadPlus;break;case"Apps":t=Wo.keyName.ContextMenu;break;case"Crsel":t=Wo.keyName.CrSel;break;case"Decimal":t=e.char?e.char:Wo.keyName.NumpadDot;break;case"Del":n=this.browser(),t="firefox"===n.name&&n.version<=36||"ie"===n.name&&n.version<=9?Wo.keyName.Dot:Wo.keyName.Delete;break;case"Divide":t=Wo.keyName.NumpadSlash;break;case"Down":t=Wo.keyName.DownArrow;break;case"Esc":t=Wo.keyName.Esc;break;case"Exsel":t=Wo.keyName.ExSel;break;case"Left":t=Wo.keyName.LeftArrow;break;case"Meta":case"Super":t=Wo.keyName.OSLeft;break;case"Multiply":t=Wo.keyName.NumpadMultiply;break;case"Right":t=Wo.keyName.RightArrow;break;case"Spacebar":t=Wo.keyName.Space;break;case"Subtract":t=Wo.keyName.NumpadMinus;break;case"Up":t=Wo.keyName.UpArrow;break;default:t=e.key}}return t}static browser(){const e=navigator.userAgent;let t,n=e.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?(t=/\brv[ :]+(\d+)/g.exec(e)||[],{name:"ie",version:t[1]||""}):"Chrome"===n[1]&&(t=e.match(/\b(OPR|Edge)\/(\d+)/),null!==t)?{name:t[1].replace("OPR","opera"),version:t[2]}:(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],null!==(t=e.match(/version\/(\d+)/i))&&n.splice(1,1,t[1]),{name:n[0].toLowerCase(),version:n[1]})}static isSeleniumBot(){return!0===window.navigator.webdriver}static isNegative(e,t="-",n=!0){return e===t||""!==e&&(Ho.isNumber(e)?e<0:n?this.contains(e,t):this.isNegativeStrict(e,t))}static isNegativeStrict(e,t="-"){return e.charAt(0)===t}static isNegativeWithBrackets(e,t,n){return e.charAt(0)===t&&this.contains(e,n)}static isZeroOrHasNoValue(e){return!/[1-9]/g.test(e)}static setRawNegativeSign(e){return this.isNegativeStrict(e,"-")?e:`-${e}`}static replaceCharAt(e,t,n){return`${e.substr(0,t)}${n}${e.substr(t+n.length)}`}static clampToRangeLimits(e,t){return Math.max(t.minimumValue,Math.min(t.maximumValue,e))}static countNumberCharactersOnTheCaretLeftSide(e,t,n){const i=new RegExp(`[0-9${n}-]`);let r=0;for(let n=0;n<t;n++)i.test(e[n])&&r++;return r}static findCaretPositionInFormattedNumber(e,t,n,i){const r=n.length,s=e.length;let o,a=0;for(o=0;o<r&&a<s&&a<t;o++)(e[a]===n[o]||"."===e[a]&&n[o]===i)&&a++;return o}static countCharInText(e,t){let n=0;for(let i=0;i<t.length;i++)t[i]===e&&n++;return n}static convertCharacterCountToIndexPosition(e){return Math.max(e,e-1)}static getElementSelection(e){const t={};let n;try{n=this.isUndefined(e.selectionStart)}catch(e){n=!1}try{if(n){const e=window.getSelection().getRangeAt(0);t.start=e.startOffset,t.end=e.endOffset,t.length=t.end-t.start}else t.start=e.selectionStart,t.end=e.selectionEnd,t.length=t.end-t.start}catch(e){t.start=0,t.end=0,t.length=0}return t}static setElementSelection(e,t,n=null){if(this.isUndefinedOrNullOrEmpty(n)&&(n=t),this.isInputElement(e))e.setSelectionRange(t,n);else if(!Ho.isNull(e.firstChild)){const i=document.createRange();i.setStart(e.firstChild,t),i.setEnd(e.firstChild,n);const r=window.getSelection();r.removeAllRanges(),r.addRange(i)}}static throwError(e){throw new Error(e)}static warning(e,t=!0){t&&console.warn(`Warning: ${e}`)}static isWheelEvent(e){return e instanceof WheelEvent}static isWheelUpEvent(e){return this.isWheelEvent(e)&&!this.isUndefinedOrNullOrEmpty(e.deltaY)||this.throwError(`The event passed as a parameter is not a valid wheel event, '${e.type}' given.`),e.deltaY<0}static isWheelDownEvent(e){return this.isWheelEvent(e)&&!this.isUndefinedOrNullOrEmpty(e.deltaY)||this.throwError(`The event passed as a parameter is not a valid wheel event, '${e.type}' given.`),e.deltaY>0}static forceDecimalPlaces(e,t){const[n,i]=String(e).split(".");return i?`${n}.${i.substr(0,t)}`:e}static roundToNearest(e,t=1e3){return 0===e?0:(0===t&&this.throwError("The `stepPlace` used to round is equal to `0`. This value must not be equal to zero."),Math.round(e/t)*t)}static modifyAndRoundToNearestAuto(e,t,n){e=Number(this.forceDecimalPlaces(e,n));const i=Math.abs(e);if(i>=0&&i<1){const i=Math.pow(10,-n);if(0===e)return t?i:-i;let r;const s=n,o=this.indexFirstNonZeroDecimalPlace(e);let a;return r=o>=s-1?i:Math.pow(10,-(o+1)),a=t?e+r:e-r,this.roundToNearest(a,r)}{e=parseInt(e,10);const n=Math.abs(e).toString().length;let i;switch(n){case 1:i=0;break;case 2:case 3:i=1;break;case 4:case 5:i=2;break;default:i=n-3}const r=Math.pow(10,i);let s;return s=t?e+r:e-r,s<=10&&s>=-10?s:this.roundToNearest(s,r)}}static addAndRoundToNearestAuto(e,t){return this.modifyAndRoundToNearestAuto(e,!0,t)}static subtractAndRoundToNearestAuto(e,t){return this.modifyAndRoundToNearestAuto(e,!1,t)}static arabicToLatinNumbers(e,t=!0,n=!1,i=!1){if(this.isNull(e))return e;let r=e.toString();if(""===r)return e;if(null===r.match(/[٠١٢٣٤٥٦٧٨٩۴۵۶]/g))return t&&(r=Number(r)),r;n&&(r=r.replace(/٫/,".")),i&&(r=r.replace(/٬/g,"")),r=r.replace(/[٠١٢٣٤٥٦٧٨٩]/g,(e=>e.charCodeAt(0)-1632)).replace(/[۰۱۲۳۴۵۶۷۸۹]/g,(e=>e.charCodeAt(0)-1776));const s=Number(r);return isNaN(s)?s:(t&&(r=s),r)}static triggerEvent(e,t=document,n=null,i=!0,r=!0){let s;window.CustomEvent?s=new CustomEvent(e,{detail:n,bubbles:i,cancelable:r}):(s=document.createEvent("CustomEvent"),s.initCustomEvent(e,i,r,{detail:n})),t.dispatchEvent(s)}static parseStr(e){const t={};let n,i,r,s;if(0===e&&1/e<0&&(e="-0"),e=e.toString(),this.isNegativeStrict(e,"-")?(e=e.slice(1),t.s=-1):t.s=1,n=e.indexOf("."),n>-1&&(e=e.replace(".","")),n<0&&(n=e.length),i=-1===e.search(/[1-9]/i)?e.length:e.search(/[1-9]/i),r=e.length,i===r)t.e=0,t.c=[0];else{for(s=r-1;"0"===e.charAt(s);s-=1)r-=1;for(r-=1,t.e=n-i-1,t.c=[],n=0;i<=r;i+=1)t.c[n]=+e.charAt(i),n+=1}return t}static testMinMax(e,t){const n=t.c,i=e.c;let r=t.s,s=e.s,o=t.e,a=e.e;if(!n[0]||!i[0]){let e;return e=n[0]?r:i[0]?-s:0,e}if(r!==s)return r;const l=r<0;if(o!==a)return o>a^l?1:-1;for(r=-1,o=n.length,a=i.length,s=o<a?o:a,r+=1;r<s;r+=1)if(n[r]!==i[r])return n[r]>i[r]^l?1:-1;let c;return c=o===a?0:o>a^l?1:-1,c}static randomString(e=5){return Math.random().toString(36).substr(2,e)}static domElement(e){let t;return t=Ho.isString(e)?document.querySelector(e):e,t}static getElementValue(e){return"input"===e.tagName.toLowerCase()?e.value:this.text(e)}static setElementValue(e,t=null){"input"===e.tagName.toLowerCase()?e.value=t:e.textContent=t}static setInvalidState(e,t="Invalid"){(""===t||this.isNull(t))&&this.throwError("Cannot set the invalid state with an empty message."),e.setCustomValidity(t)}static setValidState(e){e.setCustomValidity("")}static cloneObject(e){return Object.assign({},e)}static camelize(e,t="-",n=!0,i=!0){if(this.isNull(e))return null;n&&(e=e.replace(/^data-/,""));let r=e.split(t).map((e=>`${e.charAt(0).toUpperCase()}${e.slice(1)}`));return r=r.join(""),i&&(r=`${r.charAt(0).toLowerCase()}${r.slice(1)}`),r}static text(e){const t=e.nodeType;let n;return n=t===Node.ELEMENT_NODE||t===Node.DOCUMENT_NODE||t===Node.DOCUMENT_FRAGMENT_NODE?e.textContent:t===Node.TEXT_NODE?e.nodeValue:"",n}static setText(e,t){const n=e.nodeType;n!==Node.ELEMENT_NODE&&n!==Node.DOCUMENT_NODE&&n!==Node.DOCUMENT_FRAGMENT_NODE||(e.textContent=t)}static filterOut(e,t){return e.filter((e=>!this.isInArray(e,t)))}static trimPaddedZerosFromDecimalPlaces(e){if(""===(e=String(e)))return"";const[t,n]=e.split(".");if(this.isUndefinedOrNullOrEmpty(n))return t;const i=n.replace(/0+$/g,"");let r;return r=""===i?t:`${t}.${i}`,r}static getHoveredElement(){const e=[...document.querySelectorAll(":hover")];return e[e.length-1]}static arrayTrim(e,t){const n=e.length;return 0===n||t>n?e:t<0?[]:(e.length=parseInt(t,10),e)}static arrayUnique(...e){return[...new Set([].concat(...e))]}static mergeMaps(...e){return new Map(e.reduce(((e,t)=>e.concat([...t])),[]))}static objectKeyLookup(e,t){const n=Object.entries(e).find((e=>e[1]===t));let i=null;return void 0!==n&&(i=n[0]),i}static insertAt(e,t,n){if(n>(e=String(e)).length)throw new Error("The given index is out of the string range.");if(1!==t.length)throw new Error("The given string `char` should be only one character long.");return""===e&&0===n?t:`${e.slice(0,n)}${t}${e.slice(n)}`}static scientificToDecimal(e){const t=Number(e);if(isNaN(t))return NaN;e=String(e);if(!(this.contains(e,"e")||this.contains(e,"E")))return e;let[n,i]=e.split(/e/i);const r=n<0;r&&(n=n.replace("-",""));const s=+i<0;s&&(i=i.replace("-",""));const[o,a]=n.split(/\./);let l;return s?(l=o.length>i?this.insertAt(o,".",o.length-i):`0.${"0".repeat(i-o.length)}${o}`,l=`${l}${a||""}`):a?(n=`${o}${a}`,l=i<a.length?this.insertAt(n,".",+i+o.length):`${n}${"0".repeat(i-a.length)}`):(n=n.replace(".",""),l=`${n}${"0".repeat(Number(i))}`),r&&(l=`-${l}`),l}}class Go{constructor(e){if(null===e)throw new Error("Invalid AST")}evaluate(e){if(null==e)throw new Error("Invalid AST sub-tree");if("number"===e.type)return e.value;if("unaryMinus"===e.type)return-this.evaluate(e.left);{const t=this.evaluate(e.left),n=this.evaluate(e.right);switch(e.type){case"op_+":return Number(t)+Number(n);case"op_-":return t-n;case"op_*":return t*n;case"op_/":return t/n;default:throw new Error(`Invalid operator '${e.type}'`)}}}}class qo{static createNode(e,t,n){const i=new qo;return i.type=e,i.left=t,i.right=n,i}static createUnaryNode(e){const t=new qo;return t.type="unaryMinus",t.left=e,t.right=null,t}static createLeaf(e){const t=new qo;return t.type="number",t.value=e,t}}class Ko{constructor(e,t,n){this.type=e,this.value=t,this.symbol=n}}class Zo{constructor(e){this.text=e,this.textLength=e.length,this.index=0,this.token=new Ko("Error",0,0)}_skipSpaces(){for(;" "===this.text[this.index]&&this.index<=this.textLength;)this.index++}getIndex(){return this.index}getNextToken(e="."){if(this._skipSpaces(),this.textLength===this.index)return this.token.type="EOT",this.token;if(Ho.isDigit(this.text[this.index]))return this.token.type="num",this.token.value=this._getNumber(e),this.token;switch(this.token.type="Error",this.text[this.index]){case"+":this.token.type="+";break;case"-":this.token.type="-";break;case"*":this.token.type="*";break;case"/":this.token.type="/";break;case"(":this.token.type="(";break;case")":this.token.type=")"}if("Error"===this.token.type)throw new Error(`Unexpected token '${this.token.symbol}' at position '${this.token.index}' in the token function`);return this.token.symbol=this.text[this.index],this.index++,this.token}_getNumber(e){this._skipSpaces();const t=this.index;for(;this.index<=this.textLength&&Ho.isDigit(this.text[this.index]);)this.index++;for(this.text[this.index]===e&&this.index++;this.index<=this.textLength&&Ho.isDigit(this.text[this.index]);)this.index++;if(this.index===t)throw new Error("No number has been found while it was expected");return this.text.substring(t,this.index).replace(e,".")}}class Qo{constructor(e,t="."){return this.text=e,this.decimalCharacter=t,this.lexer=new Zo(e),this.token=this.lexer.getNextToken(this.decimalCharacter),this._exp()}_exp(){const e=this._term(),t=this._moreExp();return qo.createNode("op_+",e,t)}_moreExp(){let e,t;switch(this.token.type){case"+":return this.token=this.lexer.getNextToken(this.decimalCharacter),e=this._term(),t=this._moreExp(),qo.createNode("op_+",t,e);case"-":return this.token=this.lexer.getNextToken(this.decimalCharacter),e=this._term(),t=this._moreExp(),qo.createNode("op_-",t,e)}return qo.createLeaf(0)}_term(){const e=this._factor(),t=this._moreTerms();return qo.createNode("op_*",e,t)}_moreTerms(){let e,t;switch(this.token.type){case"*":return this.token=this.lexer.getNextToken(this.decimalCharacter),e=this._factor(),t=this._moreTerms(),qo.createNode("op_*",t,e);case"/":return this.token=this.lexer.getNextToken(this.decimalCharacter),e=this._factor(),t=this._moreTerms(),qo.createNode("op_/",t,e)}return qo.createLeaf(1)}_factor(){let e,t,n;switch(this.token.type){case"num":return n=this.token.value,this.token=this.lexer.getNextToken(this.decimalCharacter),qo.createLeaf(n);case"-":return this.token=this.lexer.getNextToken(this.decimalCharacter),t=this._factor(),qo.createUnaryNode(t);case"(":return this.token=this.lexer.getNextToken(this.decimalCharacter),e=this._exp(),this._match(")"),e;default:throw new Error(`Unexpected token '${this.token.symbol}' with type '${this.token.type}' at position '${this.token.index}' in the factor function`)}}_match(e){const t=this.lexer.getIndex()-1;if(this.text[t]!==e)throw new Error(`Unexpected token '${this.token.symbol}' at position '${t}' in the match function`);this.token=this.lexer.getNextToken(this.decimalCharacter)}}class Yo{constructor(e=null,t=null,n=null){const{domElement:i,initialValue:r,userOptions:s}=Yo._setArgumentsValues(e,t,n);if(this.domElement=i,this.defaultRawValue="",this._setSettings(s,!1),this._checkElement(),this.savedCancellableValue=null,this.historyTable=[],this.historyTableIndex=-1,this.onGoingRedo=!1,this.parentForm=this._getParentForm(),!this.runOnce&&this.settings.formatOnPageLoad)this._formatDefaultValueOnPageLoad(r);else{let e;if(Ho.isNull(r))switch(this.settings.emptyInputBehavior){case Yo.options.emptyInputBehavior.min:e=this.settings.minimumValue;break;case Yo.options.emptyInputBehavior.max:e=this.settings.maximumValue;break;case Yo.options.emptyInputBehavior.zero:e="0";break;case Yo.options.emptyInputBehavior.focus:case Yo.options.emptyInputBehavior.press:case Yo.options.emptyInputBehavior.always:case Yo.options.emptyInputBehavior.null:e="";break;default:e=this.settings.emptyInputBehavior}else e=r;this._setElementAndRawValue(e)}this.runOnce=!0,this.hasEventListeners=!1,(this.isInputElement||this.isContentEditable)&&(this.settings.noEventListeners||this._createEventListeners(),this._setWritePermissions(!0)),this._saveInitialValues(r),this.sessionStorageAvailable=this.constructor._storageTest(),this.storageNamePrefix="AUTO_",this._setPersistentStorageName(),this.validState=!0,this.isFocused=!1,this.isWheelEvent=!1,this.isDropEvent=!1,this.isEditing=!1,this.rawValueOnFocus=void 0,this.internalModification=!1,this.attributeToWatch=this._getAttributeToWatch(),this.getterSetter=Object.getOwnPropertyDescriptor(this.domElement.__proto__,this.attributeToWatch),this._addWatcher(),this.settings.createLocalList&&this._createLocalList(),this.constructor._addToGlobalList(this),this.global={set:(e,t=null)=>{this.autoNumericLocalList.forEach((n=>{n.set(e,t)}))},setUnformatted:(e,t=null)=>{this.autoNumericLocalList.forEach((n=>{n.setUnformatted(e,t)}))},get:(e=null)=>{const t=[];return this.autoNumericLocalList.forEach((e=>{t.push(e.get())})),this._executeCallback(t,e),t},getNumericString:(e=null)=>{const t=[];return this.autoNumericLocalList.forEach((e=>{t.push(e.getNumericString())})),this._executeCallback(t,e),t},getFormatted:(e=null)=>{const t=[];return this.autoNumericLocalList.forEach((e=>{t.push(e.getFormatted())})),this._executeCallback(t,e),t},getNumber:(e=null)=>{const t=[];return this.autoNumericLocalList.forEach((e=>{t.push(e.getNumber())})),this._executeCallback(t,e),t},getLocalized:(e=null)=>{const t=[];return this.autoNumericLocalList.forEach((e=>{t.push(e.getLocalized())})),this._executeCallback(t,e),t},reformat:()=>{this.autoNumericLocalList.forEach((e=>{e.reformat()}))},unformat:()=>{this.autoNumericLocalList.forEach((e=>{e.unformat()}))},unformatLocalized:(e=null)=>{this.autoNumericLocalList.forEach((t=>{t.unformatLocalized(e)}))},update:(...e)=>{this.autoNumericLocalList.forEach((t=>{t.update(...e)}))},isPristine:(e=!0)=>{let t=!0;return this.autoNumericLocalList.forEach((n=>{t&&!n.isPristine(e)&&(t=!1)})),t},clear:(e=!1)=>{this.autoNumericLocalList.forEach((t=>{t.clear(e)}))},remove:()=>{this.autoNumericLocalList.forEach((e=>{e.remove()}))},wipe:()=>{this.autoNumericLocalList.forEach((e=>{e.wipe()}))},nuke:()=>{this.autoNumericLocalList.forEach((e=>{e.nuke()}))},has:e=>{let t;return t=e instanceof Yo?this.autoNumericLocalList.has(e.node()):this.autoNumericLocalList.has(e),t},addObject:e=>{let t,n;e instanceof Yo?(t=e.node(),n=e):(t=e,n=Yo.getAutoNumericElement(t)),this._hasLocalList()||this._createLocalList();let i,r=n._getLocalList();0===r.size&&(n._createLocalList(),r=n._getLocalList()),r instanceof Map?i=Ho.mergeMaps(this._getLocalList(),r):(this._addToLocalList(t,n),i=this._getLocalList()),i.forEach((e=>{e._setLocalList(i)}))},removeObject:(e,t=!1)=>{let n,i;e instanceof Yo?(n=e.node(),i=e):(n=e,i=Yo.getAutoNumericElement(n));const r=this.autoNumericLocalList;this.autoNumericLocalList.delete(n),r.forEach((e=>{e._setLocalList(this.autoNumericLocalList)})),t||n!==this.node()?i._createLocalList():i._setLocalList(new Map)},empty:(e=!1)=>{this.autoNumericLocalList.forEach((t=>{e?t._createLocalList():t._setLocalList(new Map)}))},elements:()=>{const e=[];return this.autoNumericLocalList.forEach((t=>{e.push(t.node())})),e},getList:()=>this.autoNumericLocalList,size:()=>this.autoNumericLocalList.size},this.options={reset:()=>(this.settings={rawValue:this.defaultRawValue},this.update(Yo.defaultSettings),this),allowDecimalPadding:e=>(this.update({allowDecimalPadding:e}),this),alwaysAllowDecimalCharacter:e=>(this.update({alwaysAllowDecimalCharacter:e}),this),caretPositionOnFocus:e=>(this.settings.caretPositionOnFocus=e,this),createLocalList:e=>(this.settings.createLocalList=e,this.settings.createLocalList?this._hasLocalList()||this._createLocalList():this._deleteLocalList(),this),currencySymbol:e=>(this.update({currencySymbol:e}),this),currencySymbolPlacement:e=>(this.update({currencySymbolPlacement:e}),this),decimalCharacter:e=>(this.update({decimalCharacter:e}),this),decimalCharacterAlternative:e=>(this.settings.decimalCharacterAlternative=e,this),decimalPlaces:e=>(Ho.warning("Using `options.decimalPlaces()` instead of calling the specific `options.decimalPlacesRawValue()`, `options.decimalPlacesShownOnFocus()` and `options.decimalPlacesShownOnBlur()` methods will reset those options.\nPlease call the specific methods if you do not want to reset those.",this.settings.showWarnings),this.update({decimalPlaces:e}),this),decimalPlacesRawValue:e=>(this.update({decimalPlacesRawValue:e}),this),decimalPlacesShownOnBlur:e=>(this.update({decimalPlacesShownOnBlur:e}),this),decimalPlacesShownOnFocus:e=>(this.update({decimalPlacesShownOnFocus:e}),this),defaultValueOverride:e=>(this.update({defaultValueOverride:e}),this),digitalGroupSpacing:e=>(this.update({digitalGroupSpacing:e}),this),digitGroupSeparator:e=>(this.update({digitGroupSeparator:e}),this),divisorWhenUnfocused:e=>(this.update({divisorWhenUnfocused:e}),this),emptyInputBehavior:e=>(null===this.rawValue&&e!==Yo.options.emptyInputBehavior.null&&(Ho.warning(`You are trying to modify the \`emptyInputBehavior\` option to something different than \`'null'\` (${e}), but the element raw value is currently set to \`null\`. This would result in an invalid \`rawValue\`. In order to fix that, the element value has been changed to the empty string \`''\`.`,this.settings.showWarnings),this.rawValue=""),this.update({emptyInputBehavior:e}),this),eventBubbles:e=>(this.settings.eventBubbles=e,this),eventIsCancelable:e=>(this.settings.eventIsCancelable=e,this),failOnUnknownOption:e=>(this.settings.failOnUnknownOption=e,this),formatOnPageLoad:e=>(this.settings.formatOnPageLoad=e,this),formulaMode:e=>(this.settings.formulaMode=e,this),historySize:e=>(this.settings.historySize=e,this),invalidClass:e=>(this.settings.invalidClass=e,this),isCancellable:e=>(this.settings.isCancellable=e,this),leadingZero:e=>(this.update({leadingZero:e}),this),maximumValue:e=>(this.update({maximumValue:e}),this),minimumValue:e=>(this.update({minimumValue:e}),this),modifyValueOnWheel:e=>(this.settings.modifyValueOnWheel=e,this),negativeBracketsTypeOnBlur:e=>(this.update({negativeBracketsTypeOnBlur:e}),this),negativePositiveSignPlacement:e=>(this.update({negativePositiveSignPlacement:e}),this),negativeSignCharacter:e=>(this.update({negativeSignCharacter:e}),this),noEventListeners:e=>(e===Yo.options.noEventListeners.noEvents&&this.settings.noEventListeners===Yo.options.noEventListeners.addEvents&&this._removeEventListeners(),this.update({noEventListeners:e}),this),onInvalidPaste:e=>(this.settings.onInvalidPaste=e,this),outputFormat:e=>(this.settings.outputFormat=e,this),overrideMinMaxLimits:e=>(this.update({overrideMinMaxLimits:e}),this),positiveSignCharacter:e=>(this.update({positiveSignCharacter:e}),this),rawValueDivisor:e=>(this.update({rawValueDivisor:e}),this),readOnly:e=>(this.settings.readOnly=e,this._setWritePermissions(),this),roundingMethod:e=>(this.update({roundingMethod:e}),this),saveValueToSessionStorage:e=>(this.update({saveValueToSessionStorage:e}),this),symbolWhenUnfocused:e=>(this.update({symbolWhenUnfocused:e}),this),selectNumberOnly:e=>(this.settings.selectNumberOnly=e,this),selectOnFocus:e=>(this.settings.selectOnFocus=e,this),serializeSpaces:e=>(this.settings.serializeSpaces=e,this),showOnlyNumbersOnFocus:e=>(this.update({showOnlyNumbersOnFocus:e}),this),showPositiveSign:e=>(this.update({showPositiveSign:e}),this),showWarnings:e=>(this.settings.showWarnings=e,this),styleRules:e=>(this.update({styleRules:e}),this),suffixText:e=>(this.update({suffixText:e}),this),unformatOnHover:e=>(this.settings.unformatOnHover=e,this),unformatOnSubmit:e=>(this.settings.unformatOnSubmit=e,this),valuesToStrings:e=>(this.update({valuesToStrings:e}),this),watchExternalChanges:e=>(this.update({watchExternalChanges:e}),this),wheelOn:e=>(this.settings.wheelOn=e,this),wheelStep:e=>(this.settings.wheelStep=e,this)},this._triggerEvent(Yo.events.initialized,this.domElement,{newValue:Ho.getElementValue(this.domElement),newRawValue:this.rawValue,error:null,aNElement:this})}static version(){return"4.6.0"}static _setArgumentsValues(e,t,n){Ho.isNull(e)&&Ho.throwError("At least one valid parameter is needed in order to initialize an AutoNumeric object");const i=Ho.isElement(e),r=Ho.isString(e),s=Ho.isObject(t),o=Array.isArray(t)&&t.length>0,a=Ho.isNumberOrArabic(t)||""===t,l=this._isPreDefinedOptionValid(t),c=Ho.isNull(t),u=Ho.isEmptyString(t),h=Ho.isObject(n),d=Array.isArray(n)&&n.length>0,m=Ho.isNull(n),p=this._isPreDefinedOptionValid(n);let g,f,v;return i&&c&&m?(g=e,v=null,f=null):i&&a&&m?(g=e,v=t,f=null):i&&s&&m?(g=e,v=null,f=t):i&&l&&m?(g=e,v=null,f=this._getOptionObject(t)):i&&o&&m?(g=e,v=null,f=this.mergeOptions(t)):i&&(c||u)&&h?(g=e,v=null,f=n):i&&(c||u)&&d?(g=e,v=null,f=this.mergeOptions(n)):r&&c&&m?(g=document.querySelector(e),v=null,f=null):r&&s&&m?(g=document.querySelector(e),v=null,f=t):r&&l&&m?(g=document.querySelector(e),v=null,f=this._getOptionObject(t)):r&&o&&m?(g=document.querySelector(e),v=null,f=this.mergeOptions(t)):r&&(c||u)&&h?(g=document.querySelector(e),v=null,f=n):r&&(c||u)&&d?(g=document.querySelector(e),v=null,f=this.mergeOptions(n)):r&&a&&m?(g=document.querySelector(e),v=t,f=null):r&&a&&h?(g=document.querySelector(e),v=t,f=n):r&&a&&p?(g=document.querySelector(e),v=t,f=this._getOptionObject(n)):r&&a&&d?(g=document.querySelector(e),v=t,f=this.mergeOptions(n)):i&&a&&h?(g=e,v=t,f=n):i&&a&&p?(g=e,v=t,f=this._getOptionObject(n)):i&&a&&d?(g=e,v=t,f=this.mergeOptions(n)):Ho.throwError(`The parameters given to the AutoNumeric object are not valid, '${e}', '${t}' and '${n}' given.`),Ho.isNull(g)&&Ho.throwError(`The selector '${e}' did not select any valid DOM element. Please check on which element you called AutoNumeric.`),{domElement:g,initialValue:v,userOptions:f}}static mergeOptions(e){const t={};return e.forEach((e=>{Object.assign(t,this._getOptionObject(e))})),t}static _isPreDefinedOptionValid(e){return Object.prototype.hasOwnProperty.call(Yo.predefinedOptions,e)}static _getOptionObject(e){let t;return Ho.isString(e)?(t=Yo.getPredefinedOptions()[e],null==t&&Ho.warning(`The given pre-defined option [${e}] is not recognized by autoNumeric. Please check that pre-defined option name.`,!0)):t=e,t}_saveInitialValues(e){this.initialValueHtmlAttribute=Ho.scientificToDecimal(this.domElement.getAttribute("value")),Ho.isNull(this.initialValueHtmlAttribute)&&(this.initialValueHtmlAttribute=""),this.initialValue=e,Ho.isNull(this.initialValue)&&(this.initialValue="")}_createEventListeners(){this.formulaMode=!1,this._onFocusInFunc=e=>{this._onFocusIn(e)},this._onFocusInAndMouseEnterFunc=e=>{this._onFocusInAndMouseEnter(e)},this._onFocusFunc=()=>{this._onFocus()},this._onKeydownFunc=e=>{this._onKeydown(e)},this._onKeypressFunc=e=>{this._onKeypress(e)},this._onKeyupFunc=e=>{this._onKeyup(e)},this._onFocusOutAndMouseLeaveFunc=e=>{this._onFocusOutAndMouseLeave(e)},this._onPasteFunc=e=>{this._onPaste(e)},this._onWheelFunc=e=>{this._onWheel(e)},this._onDropFunc=e=>{this._onDrop(e)},this._onKeydownGlobalFunc=e=>{this._onKeydownGlobal(e)},this._onKeyupGlobalFunc=e=>{this._onKeyupGlobal(e)},this.domElement.addEventListener("focusin",this._onFocusInFunc,!1),this.domElement.addEventListener("focus",this._onFocusInAndMouseEnterFunc,!1),this.domElement.addEventListener("focus",this._onFocusFunc,!1),this.domElement.addEventListener("mouseenter",this._onFocusInAndMouseEnterFunc,!1),this.domElement.addEventListener("keydown",this._onKeydownFunc,!1),this.domElement.addEventListener("keypress",this._onKeypressFunc,!1),this.domElement.addEventListener("keyup",this._onKeyupFunc,!1),this.domElement.addEventListener("blur",this._onFocusOutAndMouseLeaveFunc,!1),this.domElement.addEventListener("mouseleave",this._onFocusOutAndMouseLeaveFunc,!1),this.domElement.addEventListener("paste",this._onPasteFunc,!1),this.domElement.addEventListener("wheel",this._onWheelFunc,!1),this.domElement.addEventListener("drop",this._onDropFunc,!1),this._setupFormListener(),this.hasEventListeners=!0,Yo._doesGlobalListExists()||(document.addEventListener("keydown",this._onKeydownGlobalFunc,!1),document.addEventListener("keyup",this._onKeyupGlobalFunc,!1))}_removeEventListeners(){this.domElement.removeEventListener("focusin",this._onFocusInFunc,!1),this.domElement.removeEventListener("focus",this._onFocusInAndMouseEnterFunc,!1),this.domElement.removeEventListener("focus",this._onFocusFunc,!1),this.domElement.removeEventListener("mouseenter",this._onFocusInAndMouseEnterFunc,!1),this.domElement.removeEventListener("blur",this._onFocusOutAndMouseLeaveFunc,!1),this.domElement.removeEventListener("mouseleave",this._onFocusOutAndMouseLeaveFunc,!1),this.domElement.removeEventListener("keydown",this._onKeydownFunc,!1),this.domElement.removeEventListener("keypress",this._onKeypressFunc,!1),this.domElement.removeEventListener("keyup",this._onKeyupFunc,!1),this.domElement.removeEventListener("paste",this._onPasteFunc,!1),this.domElement.removeEventListener("wheel",this._onWheelFunc,!1),this.domElement.removeEventListener("drop",this._onDropFunc,!1),this._removeFormListener(),this.hasEventListeners=!1,document.removeEventListener("keydown",this._onKeydownGlobalFunc,!1),document.removeEventListener("keyup",this._onKeyupGlobalFunc,!1)}_updateEventListeners(){this.settings.noEventListeners||this.hasEventListeners||this._createEventListeners(),this.settings.noEventListeners&&this.hasEventListeners&&this._removeEventListeners()}_setupFormListener(){Ho.isNull(this.parentForm)||(this._onFormSubmitFunc=()=>{this._onFormSubmit()},this._onFormResetFunc=()=>{this._onFormReset()},this._hasParentFormCounter()?this._incrementParentFormCounter():(this._initializeFormCounterToOne(),this.parentForm.addEventListener("submit",this._onFormSubmitFunc,!1),this.parentForm.addEventListener("reset",this._onFormResetFunc,!1),this._storeFormHandlerFunction()))}_removeFormListener(){if(!Ho.isNull(this.parentForm)){const e=this._getParentFormCounter();1===e?(this.parentForm.removeEventListener("submit",this._getFormHandlerFunction().submitFn,!1),this.parentForm.removeEventListener("reset",this._getFormHandlerFunction().resetFn,!1),this._removeFormDataSetInfo()):e>1?this._decrementParentFormCounter():Ho.throwError("The AutoNumeric object count on the form is incoherent.")}}_hasParentFormCounter(){return"anCount"in this.parentForm.dataset}_getParentFormCounter(){return Number(this.parentForm.dataset.anCount)}_initializeFormCounterToOne(e=null){this._getFormElement(e).dataset.anCount=1}_incrementParentFormCounter(e=null){this._getFormElement(e).dataset.anCount++}_decrementParentFormCounter(){this.parentForm.dataset.anCount--}static _doesFormHandlerListExists(){const e=typeof window.aNFormHandlerMap;return"undefined"!==e&&"object"===e}static _createFormHandlerList(){window.aNFormHandlerMap=new Map}_hasFormHandlerFunction(e=null){return"anFormHandler"in this._getFormElement(e).dataset}_getFormElement(e=null){let t;return t=Ho.isNull(e)?this.parentForm:e,t}_storeFormHandlerFunction(e=null){this.constructor._doesFormHandlerListExists()||this.constructor._createFormHandlerList();const t=Ho.randomString();this._getFormElement(e).dataset.anFormHandler=t,window.aNFormHandlerMap.set(t,{submitFn:this._onFormSubmitFunc,resetFn:this._onFormResetFunc})}_getFormHandlerKey(){this._hasFormHandlerFunction()||Ho.throwError("Unable to retrieve the form handler name");const e=this.parentForm.dataset.anFormHandler;return""===e&&Ho.throwError("The form handler name is invalid"),e}_getFormHandlerFunction(){const e=this._getFormHandlerKey();return window.aNFormHandlerMap.get(e)}_removeFormDataSetInfo(){this._decrementParentFormCounter(),window.aNFormHandlerMap.delete(this._getFormHandlerKey()),this.parentForm.removeAttribute("data-an-count"),this.parentForm.removeAttribute("data-an-form-handler")}_setWritePermissions(e=!1){e&&this.domElement.readOnly||this.settings.readOnly?this._setReadOnly():this._setReadWrite()}_setReadOnly(){this.isInputElement?this.domElement.readOnly=!0:this.domElement.setAttribute("contenteditable",!1)}_setReadWrite(){this.isInputElement?this.domElement.readOnly=!1:this.domElement.setAttribute("contenteditable",!0)}_addWatcher(){if(!Ho.isUndefined(this.getterSetter)){const{set:e,get:t}=this.getterSetter;Object.defineProperty(this.domElement,this.attributeToWatch,{configurable:!0,get:()=>t.call(this.domElement),set:t=>{e.call(this.domElement,t),this.settings.watchExternalChanges&&!this.internalModification&&this.set(t)}})}}_removeWatcher(){if(!Ho.isUndefined(this.getterSetter)){const{set:e,get:t}=this.getterSetter;Object.defineProperty(this.domElement,this.attributeToWatch,{configurable:!0,get:()=>t.call(this.domElement),set:t=>{e.call(this.domElement,t)}})}}_getAttributeToWatch(){let e;if(this.isInputElement)e="value";else{const t=this.domElement.nodeType;t===Node.ELEMENT_NODE||t===Node.DOCUMENT_NODE||t===Node.DOCUMENT_FRAGMENT_NODE?e="textContent":t===Node.TEXT_NODE&&(e="nodeValue")}return e}_historyTableAdd(){const e=0===this.historyTable.length;if(e||this.rawValue!==this._historyTableCurrentValueUsed()){let t=!0;if(!e){const e=this.historyTableIndex+1;e<this.historyTable.length&&this.rawValue===this.historyTable[e].value?t=!1:Ho.arrayTrim(this.historyTable,this.historyTableIndex+1)}if(this.historyTableIndex++,t){const e=Ho.getElementSelection(this.domElement);this.selectionStart=e.start,this.selectionEnd=e.end,this.historyTable.push({value:this.rawValue,start:this.selectionStart+1,end:this.selectionEnd+1}),this.historyTable.length>1&&(this.historyTable[this.historyTableIndex-1].start=this.selectionStart,this.historyTable[this.historyTableIndex-1].end=this.selectionEnd)}this.historyTable.length>this.settings.historySize&&this._historyTableForget()}}_historyTableUndoOrRedo(e=!0){let t;if(e?(t=this.historyTableIndex>0,t&&this.historyTableIndex--):(t=this.historyTableIndex+1<this.historyTable.length,t&&this.historyTableIndex++),t){const e=this.historyTable[this.historyTableIndex];this.set(e.value,null,!1),Ho.setElementSelection(this.domElement,e.start,e.end)}}_historyTableUndo(){this._historyTableUndoOrRedo(!0)}_historyTableRedo(){this._historyTableUndoOrRedo(!1)}_historyTableForget(e=1){const t=[];for(let n=0;n<e;n++)t.push(this.historyTable.shift()),this.historyTableIndex--,this.historyTableIndex<0&&(this.historyTableIndex=0);return 1===t.length?t[0]:t}_historyTableCurrentValueUsed(){let e,t=this.historyTableIndex;return t<0&&(t=0),e=Ho.isUndefinedOrNullOrEmpty(this.historyTable[t])?"":this.historyTable[t].value,e}_parseStyleRules(){Ho.isUndefinedOrNullOrEmpty(this.settings.styleRules)||""===this.rawValue||(Ho.isUndefinedOrNullOrEmpty(this.settings.styleRules.positive)||(this.rawValue>=0?this._addCSSClass(this.settings.styleRules.positive):this._removeCSSClass(this.settings.styleRules.positive)),Ho.isUndefinedOrNullOrEmpty(this.settings.styleRules.negative)||(this.rawValue<0?this._addCSSClass(this.settings.styleRules.negative):this._removeCSSClass(this.settings.styleRules.negative)),Ho.isUndefinedOrNullOrEmpty(this.settings.styleRules.ranges)||0===this.settings.styleRules.ranges.length||this.settings.styleRules.ranges.forEach((e=>{this.rawValue>=e.min&&this.rawValue<e.max?this._addCSSClass(e.class):this._removeCSSClass(e.class)})),Ho.isUndefinedOrNullOrEmpty(this.settings.styleRules.userDefined)||0===this.settings.styleRules.userDefined.length||this.settings.styleRules.userDefined.forEach((e=>{if(Ho.isFunction(e.callback))if(Ho.isString(e.classes))e.callback(this.rawValue)?this._addCSSClass(e.classes):this._removeCSSClass(e.classes);else if(Ho.isArray(e.classes))if(2===e.classes.length)e.callback(this.rawValue)?(this._addCSSClass(e.classes[0]),this._removeCSSClass(e.classes[1])):(this._removeCSSClass(e.classes[0]),this._addCSSClass(e.classes[1]));else if(e.classes.length>2){const t=e.callback(this.rawValue);Ho.isArray(t)?e.classes.forEach(((e,n)=>{Ho.isInArray(n,t)?this._addCSSClass(e):this._removeCSSClass(e)})):Ho.isInt(t)?e.classes.forEach(((e,n)=>{n===t?this._addCSSClass(e):this._removeCSSClass(e)})):Ho.isNull(t)?e.classes.forEach((e=>{this._removeCSSClass(e)})):Ho.throwError(`The callback result is not an array nor a valid array index, ${typeof t} given.`)}else Ho.throwError("The classes attribute is not valid for the `styleRules` option.");else Ho.isUndefinedOrNullOrEmpty(e.classes)?e.callback(this):Ho.throwError("The callback/classes structure is not valid for the `styleRules` option.");else Ho.warning(`The given \`styleRules\` callback is not a function, ${typeof callback} given.`,this.settings.showWarnings)})))}_addCSSClass(e){this.domElement.classList.add(e)}_removeCSSClass(e){this.domElement.classList.remove(e)}update(...e){Array.isArray(e)&&Array.isArray(e[0])&&(e=e[0]);const t=Ho.cloneObject(this.settings),n=this.rawValue;let i={};Ho.isUndefinedOrNullOrEmpty(e)||0===e.length?i=null:e.length>=1&&e.forEach((e=>{this.constructor._isPreDefinedOptionValid(e)&&(e=this.constructor._getOptionObject(e)),Object.assign(i,e)}));try{this._setSettings(i,!0),this._setWritePermissions(),this._updateEventListeners(),this.set(n)}catch(e){return this._setSettings(t,!0),Ho.throwError(`Unable to update the settings, those are invalid: [${e}]`),this}return this}getSettings(){return this.settings}set(e,t=null,n=!0){if(Ho.isUndefined(e))return Ho.warning("You are trying to set an 'undefined' value ; an error could have occurred.",this.settings.showWarnings),this;if(Ho.isNull(t)||this._setSettings(t,!0),null===e&&this.settings.emptyInputBehavior!==Yo.options.emptyInputBehavior.null)return Ho.warning(`You are trying to set the \`null\` value while the \`emptyInputBehavior\` option is set to ${this.settings.emptyInputBehavior}. If you want to be able to set the \`null\` value, you need to change the 'emptyInputBehavior' option to \`'null'\`.`,this.settings.showWarnings),this;let i;if(null===e)return this._setElementAndRawValue(null,null,n),this._saveValueToPersistentStorage(),this;if(i=this.constructor._toNumericValue(e,this.settings),isNaN(Number(i)))return Ho.warning("The value you are trying to set results in `NaN`. The element value is set to the empty string instead.",this.settings.showWarnings),this.setValue("",n),this;if(""===i)switch(this.settings.emptyInputBehavior){case Yo.options.emptyInputBehavior.zero:i=0;break;case Yo.options.emptyInputBehavior.min:i=this.settings.minimumValue;break;case Yo.options.emptyInputBehavior.max:i=this.settings.maximumValue;break;default:Ho.isNumber(this.settings.emptyInputBehavior)&&(i=Number(this.settings.emptyInputBehavior))}if(""!==i){const[e,t]=this.constructor._checkIfInRangeWithOverrideOption(i,this.settings);if(e&&t&&this.settings.valuesToStrings&&this._checkValuesToStrings(i))return this._setElementAndRawValue(this.settings.valuesToStrings[i],i,n),this._saveValueToPersistentStorage(),this;if(Ho.isZeroOrHasNoValue(i)&&(i="0"),e&&t){let e=this.constructor._roundRawValue(i,this.settings);return e=this._trimLeadingAndTrailingZeros(e.replace(this.settings.decimalCharacter,".")),i=this._getRawValueToFormat(i),this.isFocused?i=this.constructor._roundFormattedValueShownOnFocus(i,this.settings):(this.settings.divisorWhenUnfocused&&(i/=this.settings.divisorWhenUnfocused,i=i.toString()),i=this.constructor._roundFormattedValueShownOnBlur(i,this.settings)),i=this.constructor._modifyNegativeSignAndDecimalCharacterForFormattedValue(i,this.settings),i=this.constructor._addGroupSeparators(i,this.settings,this.isFocused,this.rawValue,e),!this.isFocused&&this.settings.symbolWhenUnfocused&&(i=`${i}${this.settings.symbolWhenUnfocused}`),(this.settings.decimalPlacesShownOnFocus||this.settings.divisorWhenUnfocused)&&this._saveValueToPersistentStorage(),this._setElementAndRawValue(i,e,n),this._setValidOrInvalidState(e),this}return this._triggerRangeEvents(e,t),Ho.throwError(`The value [${i}] being set falls outside of the minimumValue [${this.settings.minimumValue}] and maximumValue [${this.settings.maximumValue}] range set for this element`),this._removeValueFromPersistentStorage(),this.setValue("",n),this}{let e;return e=this.settings.emptyInputBehavior===Yo.options.emptyInputBehavior.always?this.settings.currencySymbol:"",this._setElementAndRawValue(e,"",n),this}}setUnformatted(e,t=null){if(null===e||Ho.isUndefined(e))return this;Ho.isNull(t)||this._setSettings(t,!0);const n=this.constructor._removeBrackets(e,this.settings),i=this.constructor._stripAllNonNumberCharacters(n,this.settings,!0,this.isFocused);return Ho.isNumber(i)||Ho.throwError("The value is not a valid one, it's not a numeric string nor a recognized currency."),this.constructor._isWithinRangeWithOverrideOption(i,this.settings)?this.setValue(e):Ho.throwError(`The value is out of the range limits [${this.settings.minimumValue}, ${this.settings.maximumValue}].`),this}setValue(e,t=!0){return this._setElementAndRawValue(e,t),this}_setRawValue(e,t=!0){if(this.rawValue!==e){const n=this.rawValue;this.rawValue=e,!Ho.isNull(this.settings.rawValueDivisor)&&0!==this.settings.rawValueDivisor&&""!==e&&null!==e&&this._isUserManuallyEditingTheValue()&&(this.rawValue/=this.settings.rawValueDivisor),this._triggerEvent(Yo.events.rawValueModified,this.domElement,{oldRawValue:n,newRawValue:this.rawValue,isPristine:this.isPristine(!0),error:null,aNElement:this}),this._parseStyleRules(),t&&this._historyTableAdd()}}_setElementValue(e,t=!0){const n=Ho.getElementValue(this.domElement);return e!==n&&(this.internalModification=!0,Ho.setElementValue(this.domElement,e),this.internalModification=!1,t&&this._triggerEvent(Yo.events.formatted,this.domElement,{oldValue:n,newValue:e,oldRawValue:this.rawValue,newRawValue:this.rawValue,isPristine:this.isPristine(!1),error:null,aNElement:this})),this}_setElementAndRawValue(e,t=null,n=!0){return Ho.isNull(t)?t=e:Ho.isBoolean(t)&&(n=t,t=e),this._setElementValue(e),this._setRawValue(t,n),this}_getRawValueToFormat(e){let t;return t=Ho.isNull(this.settings.rawValueDivisor)||0===this.settings.rawValueDivisor||""===e||null===e?e:e*this.settings.rawValueDivisor,t}_checkValuesToStrings(e){return this.constructor._checkValuesToStringsArray(e,this.valuesToStringsKeys)}static _checkValuesToStringsArray(e,t){return Ho.isInArray(String(e),t)}static _checkValuesToStringsSettings(e,t){return this._checkValuesToStringsArray(e,Object.keys(t.valuesToStrings))}static _checkStringsToValuesSettings(e,t){return this._checkValuesToStringsArray(e,Object.values(t.valuesToStrings))}_isUserManuallyEditingTheValue(){return this.isFocused&&this.isEditing||this.isDropEvent}_executeCallback(e,t){!Ho.isNull(t)&&Ho.isFunction(t)&&t(e,this)}_triggerEvent(e,t=document,n=null){Ho.triggerEvent(e,t,n,this.settings.eventBubbles,this.settings.eventIsCancelable)}get(e=null){return this.getNumericString(e)}getNumericString(e=null){let t;return t=Ho.isNull(this.rawValue)?null:Ho.trimPaddedZerosFromDecimalPlaces(this.rawValue),this._executeCallback(t,e),t}getFormatted(e=null){"value"in this.domElement||"textContent"in this.domElement||Ho.throwError("Unable to get the formatted string from the element.");const t=Ho.getElementValue(this.domElement);return this._executeCallback(t,e),t}getNumber(e=null){let t;return t=null===this.rawValue?null:this.constructor._toLocale(this.getNumericString(),"number",this.settings),this._executeCallback(t,e),t}getLocalized(e=null,t=null){let n,i;Ho.isFunction(e)&&Ho.isNull(t)&&(t=e,e=null),n=Ho.isEmptyString(this.rawValue)?"":""+Number(this.rawValue),""!==n&&0===Number(n)&&this.settings.leadingZero!==Yo.options.leadingZero.keep&&(n="0"),i=Ho.isNull(e)?this.settings.outputFormat:e;const r=this.constructor._toLocale(n,i,this.settings);return this._executeCallback(r,t),r}reformat(){return this.set(this.rawValue),this}unformat(){return this._setElementValue(this.getNumericString()),this}unformatLocalized(e=null){return this._setElementValue(this.getLocalized(e)),this}isPristine(e=!0){let t;return t=e?this.initialValue===this.getNumericString():this.initialValueHtmlAttribute===this.getFormatted(),t}select(){return this.settings.selectNumberOnly?this.selectNumber():this._defaultSelectAll(),this}_defaultSelectAll(){Ho.setElementSelection(this.domElement,0,Ho.getElementValue(this.domElement).length)}selectNumber(){const e=Ho.getElementValue(this.domElement),t=e.length,n=this.settings.currencySymbol.length,i=this.settings.currencySymbolPlacement,r=Ho.isNegative(e,this.settings.negativeSignCharacter)?1:0,s=this.settings.suffixText.length;let o,a;if(o=i===Yo.options.currencySymbolPlacement.suffix?0:this.settings.negativePositiveSignPlacement===Yo.options.negativePositiveSignPlacement.left&&1===r&&n>0?n+1:n,i===Yo.options.currencySymbolPlacement.prefix)a=t-s;else switch(this.settings.negativePositiveSignPlacement){case Yo.options.negativePositiveSignPlacement.left:a=t-(s+n);break;case Yo.options.negativePositiveSignPlacement.right:a=n>0?t-(n+r+s):t-(n+s);break;default:a=t-(n+s)}return Ho.setElementSelection(this.domElement,o,a),this}selectInteger(){let e=0;const t=this.rawValue>=0;this.settings.currencySymbolPlacement!==Yo.options.currencySymbolPlacement.prefix&&(this.settings.currencySymbolPlacement!==Yo.options.currencySymbolPlacement.suffix||this.settings.negativePositiveSignPlacement!==Yo.options.negativePositiveSignPlacement.prefix&&this.settings.negativePositiveSignPlacement!==Yo.options.negativePositiveSignPlacement.none)||(this.settings.showPositiveSign&&t||!t&&this.settings.currencySymbolPlacement===Yo.options.currencySymbolPlacement.prefix&&this.settings.negativePositiveSignPlacement===Yo.options.negativePositiveSignPlacement.left)&&(e+=1),this.settings.currencySymbolPlacement===Yo.options.currencySymbolPlacement.prefix&&(e+=this.settings.currencySymbol.length);const n=Ho.getElementValue(this.domElement);let i=n.indexOf(this.settings.decimalCharacter);return-1===i&&(i=this.settings.currencySymbolPlacement===Yo.options.currencySymbolPlacement.suffix?n.length-this.settings.currencySymbol.length:n.length,t||this.settings.negativePositiveSignPlacement!==Yo.options.negativePositiveSignPlacement.suffix&&this.settings.currencySymbolPlacement!==Yo.options.currencySymbolPlacement.suffix||(i-=1),i-=this.settings.suffixText.length),Ho.setElementSelection(this.domElement,e,i),this}selectDecimal(){let e,t=Ho.getElementValue(this.domElement).indexOf(this.settings.decimalCharacter);if(-1===t)t=0,e=0;else{let n;t+=1,n=this.isFocused?this.settings.decimalPlacesShownOnFocus:this.settings.decimalPlacesShownOnBlur,e=t+Number(n)}return Ho.setElementSelection(this.domElement,t,e),this}node(){return this.domElement}parent(){return this.domElement.parentNode}detach(e=null){let t;return t=Ho.isNull(e)?this.domElement:e.node(),this._removeFromLocalList(t),this}attach(e,t=!0){return this._addToLocalList(e.node()),t&&e.update(this.settings),this}formatOther(e,t=null){return this._formatOrUnformatOther(!0,e,t)}unformatOther(e,t=null){return this._formatOrUnformatOther(!1,e,t)}_formatOrUnformatOther(e,t,n=null){let i,r;if(i=Ho.isNull(n)?this.settings:this._cloneAndMergeSettings(n),Ho.isElement(t)){const n=Ho.getElementValue(t);return r=e?Yo.format(n,i):Yo.unformat(n,i),Ho.setElementValue(t,r),null}return r=e?Yo.format(t,i):Yo.unformat(t,i),r}init(e,t=!0){let n=!1,i=[];if(Ho.isString(e)?i=[...document.querySelectorAll(e)]:Ho.isElement(e)?(i.push(e),n=!0):Ho.isArray(e)?i=e:Ho.throwError("The given parameters to the 'init' function are invalid."),0===i.length)return Ho.warning("No valid DOM elements were given hence no AutoNumeric object were instantiated.",!0),[];const r=this._getLocalList(),s=[];return i.forEach((e=>{const n=this.settings.createLocalList;t&&(this.settings.createLocalList=!1);const i=new Yo(e,Ho.getElementValue(e),this.settings);t&&(i._setLocalList(r),this._addToLocalList(e,i),this.settings.createLocalList=n),s.push(i)})),n?s[0]:s}clear(e=!1){if(e){const e={emptyInputBehavior:Yo.options.emptyInputBehavior.focus};this.set("",e)}else this.set("");return this}remove(){this._removeValueFromPersistentStorage(),this._removeEventListeners(),this._removeWatcher(),this._removeFromLocalList(this.domElement),this.constructor._removeFromGlobalList(this)}wipe(){this._setElementValue("",!1),this.remove()}nuke(){this.remove(),this.domElement.parentNode.removeChild(this.domElement)}form(e=!1){if(e||Ho.isUndefinedOrNullOrEmpty(this.parentForm)){const e=this._getParentForm();if(!Ho.isNull(e)&&e!==this.parentForm){const t=this._getFormAutoNumericChildren(this.parentForm);this.parentForm.dataset.anCount=t.length,this._hasFormHandlerFunction(e)?this._incrementParentFormCounter(e):(this._storeFormHandlerFunction(e),this._initializeFormCounterToOne(e))}this.parentForm=e}return this.parentForm}_getFormAutoNumericChildren(e){return[...e.querySelectorAll("input")].filter((e=>this.constructor.isManagedByAutoNumeric(e)))}_getParentForm(){if("body"===this.domElement.tagName.toLowerCase())return null;let e,t=this.domElement;do{if(t=t.parentNode,Ho.isNull(t))return null;if(e=t.tagName?t.tagName.toLowerCase():"","body"===e)break}while("form"!==e);return"form"===e?t:null}formNumericString(){return this.constructor._serializeNumericString(this.form(),this.settings.serializeSpaces)}formFormatted(){return this.constructor._serializeFormatted(this.form(),this.settings.serializeSpaces)}formLocalized(e=null){let t;return t=Ho.isNull(e)?this.settings.outputFormat:e,this.constructor._serializeLocalized(this.form(),this.settings.serializeSpaces,t)}formArrayNumericString(){return this.constructor._serializeNumericStringArray(this.form(),this.settings.serializeSpaces)}formArrayFormatted(){return this.constructor._serializeFormattedArray(this.form(),this.settings.serializeSpaces)}formArrayLocalized(e=null){let t;return t=Ho.isNull(e)?this.settings.outputFormat:e,this.constructor._serializeLocalizedArray(this.form(),this.settings.serializeSpaces,t)}formJsonNumericString(){return JSON.stringify(this.formArrayNumericString())}formJsonFormatted(){return JSON.stringify(this.formArrayFormatted())}formJsonLocalized(e=null){return JSON.stringify(this.formArrayLocalized(e))}formUnformat(){return this.constructor._getChildANInputElement(this.form()).forEach((e=>{Yo.getAutoNumericElement(e).unformat()})),this}formUnformatLocalized(){return this.constructor._getChildANInputElement(this.form()).forEach((e=>{Yo.getAutoNumericElement(e).unformatLocalized()})),this}formReformat(){return this.constructor._getChildANInputElement(this.form()).forEach((e=>{Yo.getAutoNumericElement(e).reformat()})),this}formSubmitNumericString(e=null){return Ho.isNull(e)?(this.formUnformat(),this.form().submit(),this.formReformat()):Ho.isFunction(e)?e(this.formNumericString()):Ho.throwError("The given callback is not a function."),this}formSubmitFormatted(e=null){return Ho.isNull(e)?this.form().submit():Ho.isFunction(e)?e(this.formFormatted()):Ho.throwError("The given callback is not a function."),this}formSubmitLocalized(e=null,t=null){return Ho.isNull(t)?(this.formUnformatLocalized(),this.form().submit(),this.formReformat()):Ho.isFunction(t)?t(this.formLocalized(e)):Ho.throwError("The given callback is not a function."),this}formSubmitArrayNumericString(e){return Ho.isFunction(e)?e(this.formArrayNumericString()):Ho.throwError("The given callback is not a function."),this}formSubmitArrayFormatted(e){return Ho.isFunction(e)?e(this.formArrayFormatted()):Ho.throwError("The given callback is not a function."),this}formSubmitArrayLocalized(e,t=null){return Ho.isFunction(e)?e(this.formArrayLocalized(t)):Ho.throwError("The given callback is not a function."),this}formSubmitJsonNumericString(e){return Ho.isFunction(e)?e(this.formJsonNumericString()):Ho.throwError("The given callback is not a function."),this}formSubmitJsonFormatted(e){return Ho.isFunction(e)?e(this.formJsonFormatted()):Ho.throwError("The given callback is not a function."),this}formSubmitJsonLocalized(e,t=null){return Ho.isFunction(e)?e(this.formJsonLocalized(t)):Ho.throwError("The given callback is not a function."),this}static _unformatAltHovered(e){e.hoveredWithAlt=!0,e.unformat()}static _reformatAltHovered(e){e.hoveredWithAlt=!1,e.reformat()}static _getChildANInputElement(e){const t=e.getElementsByTagName("input"),n=[];return Array.prototype.slice.call(t,0).forEach((e=>{this.test(e)&&n.push(e)})),n}static test(e){return this._isInGlobalList(Ho.domElement(e))}static _createWeakMap(e){window[e]=new WeakMap}static _createGlobalList(){this.autoNumericGlobalListName="autoNumericGlobalList",this._createWeakMap(this.autoNumericGlobalListName)}static _doesGlobalListExists(){const e=typeof window[this.autoNumericGlobalListName];return"undefined"!==e&&"object"===e}static _addToGlobalList(e){this._doesGlobalListExists()||this._createGlobalList();const t=e.node();if(this._isInGlobalList(t)){if(this._getFromGlobalList(t)===this)return;Ho.warning("A reference to the DOM element you just initialized already exists in the global AutoNumeric element list. Please make sure to not initialize the same DOM element multiple times.",e.getSettings().showWarnings)}window[this.autoNumericGlobalListName].set(t,e)}static _removeFromGlobalList(e){this._doesGlobalListExists()&&window[this.autoNumericGlobalListName].delete(e.node())}static _getFromGlobalList(e){return this._doesGlobalListExists()?window[this.autoNumericGlobalListName].get(e):null}static _isInGlobalList(e){return!!this._doesGlobalListExists()&&window[this.autoNumericGlobalListName].has(e)}_createLocalList(){this.autoNumericLocalList=new Map,this._addToLocalList(this.domElement)}_deleteLocalList(){delete this.autoNumericLocalList}_setLocalList(e){this.autoNumericLocalList=e}_getLocalList(){return this.autoNumericLocalList}_hasLocalList(){return this.autoNumericLocalList instanceof Map&&0!==this.autoNumericLocalList.size}_addToLocalList(e,t=null){Ho.isNull(t)&&(t=this),Ho.isUndefined(this.autoNumericLocalList)?Ho.throwError(`The local list provided does not exists when trying to add an element. [${this.autoNumericLocalList}] given.`):this.autoNumericLocalList.set(e,t)}_removeFromLocalList(e){Ho.isUndefined(this.autoNumericLocalList)?this.settings.createLocalList&&Ho.throwError(`The local list provided does not exists when trying to remove an element. [${this.autoNumericLocalList}] given.`):this.autoNumericLocalList.delete(e)}_mergeSettings(...e){Object.assign(this.settings,...e)}_cloneAndMergeSettings(...e){const t={};return Object.assign(t,this.settings,...e),t}static validate(e,t=!0,n=null){!Ho.isUndefinedOrNullOrEmpty(e)&&Ho.isObject(e)||Ho.throwError(`The userOptions are invalid ; it should be a valid object, [${e}] given.`);const i=Ho.isObject(n);let r;i||Ho.isNull(n)||Ho.throwError(`The 'originalOptions' parameter is invalid ; it should either be a valid option object or \`null\`, [${e}] given.`),Ho.isNull(e)||this._convertOldOptionsToNewOnes(e),r=t?Object.assign({},this.getDefaultConfig(),e):e,Ho.isTrueOrFalseString(r.showWarnings)||Ho.isBoolean(r.showWarnings)||Ho.throwError(`The debug option 'showWarnings' is invalid ; it should be either 'true' or 'false', [${r.showWarnings}] given.`);const s=/^[0-9]+$/,o=/[0-9]+/,a=/^-?[0-9]+(\.?[0-9]+)?$/,l=/^[0-9]+(\.?[0-9]+)?$/;let c;Ho.isTrueOrFalseString(r.allowDecimalPadding)||Ho.isBoolean(r.allowDecimalPadding)||r.allowDecimalPadding===Yo.options.allowDecimalPadding.floats||Ho.throwError(`The decimal padding option 'allowDecimalPadding' is invalid ; it should either be \`false\`, \`true\` or \`'floats'\`, [${r.allowDecimalPadding}] given.`),r.allowDecimalPadding!==Yo.options.allowDecimalPadding.never&&"false"!==r.allowDecimalPadding||r.decimalPlaces===Yo.options.decimalPlaces.none&&r.decimalPlacesShownOnBlur===Yo.options.decimalPlacesShownOnBlur.none&&r.decimalPlacesShownOnFocus===Yo.options.decimalPlacesShownOnFocus.none||Ho.warning(`Setting 'allowDecimalPadding' to [${r.allowDecimalPadding}] will override the current 'decimalPlaces*' settings [${r.decimalPlaces}, ${r.decimalPlacesShownOnBlur} and ${r.decimalPlacesShownOnFocus}].`,r.showWarnings),Ho.isTrueOrFalseString(r.alwaysAllowDecimalCharacter)||Ho.isBoolean(r.alwaysAllowDecimalCharacter)||Ho.throwError(`The option 'alwaysAllowDecimalCharacter' is invalid ; it should either be \`true\` or \`false\`, [${r.alwaysAllowDecimalCharacter}] given.`),Ho.isNull(r.caretPositionOnFocus)||Ho.isInArray(r.caretPositionOnFocus,[Yo.options.caretPositionOnFocus.start,Yo.options.caretPositionOnFocus.end,Yo.options.caretPositionOnFocus.decimalLeft,Yo.options.caretPositionOnFocus.decimalRight])||Ho.throwError(`The display on empty string option 'caretPositionOnFocus' is invalid ; it should either be \`null\`, 'focus', 'press', 'always' or 'zero', [${r.caretPositionOnFocus}] given.`),c=i?n:this._correctCaretPositionOnFocusAndSelectOnFocusOptions(e),Ho.isNull(c)||c.caretPositionOnFocus===Yo.options.caretPositionOnFocus.doNoForceCaretPosition||c.selectOnFocus!==Yo.options.selectOnFocus.select||Ho.warning(`The 'selectOnFocus' option is set to 'select', which is in conflict with the 'caretPositionOnFocus' which is set to '${c.caretPositionOnFocus}'. As a result, if this has been called when instantiating an AutoNumeric object, the 'selectOnFocus' option is forced to 'doNotSelect'.`,r.showWarnings),Ho.isInArray(r.digitGroupSeparator,[Yo.options.digitGroupSeparator.comma,Yo.options.digitGroupSeparator.dot,Yo.options.digitGroupSeparator.normalSpace,Yo.options.digitGroupSeparator.thinSpace,Yo.options.digitGroupSeparator.narrowNoBreakSpace,Yo.options.digitGroupSeparator.noBreakSpace,Yo.options.digitGroupSeparator.noSeparator,Yo.options.digitGroupSeparator.apostrophe,Yo.options.digitGroupSeparator.arabicThousandsSeparator,Yo.options.digitGroupSeparator.dotAbove,Yo.options.digitGroupSeparator.privateUseTwo])||Ho.throwError(`The thousand separator character option 'digitGroupSeparator' is invalid ; it should be ',', '.', '٬', '˙', "'", '', ' ', ' ', ' ', ' ' or empty (''), [${r.digitGroupSeparator}] given.`),Ho.isTrueOrFalseString(r.showOnlyNumbersOnFocus)||Ho.isBoolean(r.showOnlyNumbersOnFocus)||Ho.throwError(`The 'showOnlyNumbersOnFocus' option is invalid ; it should be either 'true' or 'false', [${r.showOnlyNumbersOnFocus}] given.`),Ho.isInArray(r.digitalGroupSpacing,[Yo.options.digitalGroupSpacing.two,Yo.options.digitalGroupSpacing.twoScaled,Yo.options.digitalGroupSpacing.three,Yo.options.digitalGroupSpacing.four])||r.digitalGroupSpacing>=2&&r.digitalGroupSpacing<=4||Ho.throwError(`The grouping separator option for thousands 'digitalGroupSpacing' is invalid ; it should be '2', '2s', '3', or '4', [${r.digitalGroupSpacing}] given.`),Ho.isInArray(r.decimalCharacter,[Yo.options.decimalCharacter.comma,Yo.options.decimalCharacter.dot,Yo.options.decimalCharacter.middleDot,Yo.options.decimalCharacter.arabicDecimalSeparator,Yo.options.decimalCharacter.decimalSeparatorKeySymbol])||Ho.throwError(`The decimal separator character option 'decimalCharacter' is invalid ; it should be '.', ',', '·', '⎖' or '٫', [${r.decimalCharacter}] given.`),r.decimalCharacter===r.digitGroupSeparator&&Ho.throwError(`autoNumeric will not function properly when the decimal character 'decimalCharacter' [${r.decimalCharacter}] and the thousand separator 'digitGroupSeparator' [${r.digitGroupSeparator}] are the same character.`),Ho.isNull(r.decimalCharacterAlternative)||Ho.isString(r.decimalCharacterAlternative)||Ho.throwError(`The alternate decimal separator character option 'decimalCharacterAlternative' is invalid ; it should be a string, [${r.decimalCharacterAlternative}] given.`),""===r.currencySymbol||Ho.isString(r.currencySymbol)||Ho.throwError(`The currency symbol option 'currencySymbol' is invalid ; it should be a string, [${r.currencySymbol}] given.`),Ho.isInArray(r.currencySymbolPlacement,[Yo.options.currencySymbolPlacement.prefix,Yo.options.currencySymbolPlacement.suffix])||Ho.throwError(`The placement of the currency sign option 'currencySymbolPlacement' is invalid ; it should either be 'p' (prefix) or 's' (suffix), [${r.currencySymbolPlacement}] given.`),Ho.isInArray(r.negativePositiveSignPlacement,[Yo.options.negativePositiveSignPlacement.prefix,Yo.options.negativePositiveSignPlacement.suffix,Yo.options.negativePositiveSignPlacement.left,Yo.options.negativePositiveSignPlacement.right,Yo.options.negativePositiveSignPlacement.none])||Ho.throwError(`The placement of the negative sign option 'negativePositiveSignPlacement' is invalid ; it should either be 'p' (prefix), 's' (suffix), 'l' (left), 'r' (right) or 'null', [${r.negativePositiveSignPlacement}] given.`),Ho.isTrueOrFalseString(r.showPositiveSign)||Ho.isBoolean(r.showPositiveSign)||Ho.throwError(`The show positive sign option 'showPositiveSign' is invalid ; it should be either 'true' or 'false', [${r.showPositiveSign}] given.`),(!Ho.isString(r.suffixText)||""!==r.suffixText&&(Ho.isNegative(r.suffixText,r.negativeSignCharacter)||o.test(r.suffixText)))&&Ho.throwError(`The additional suffix option 'suffixText' is invalid ; it should not contains the negative sign '${r.negativeSignCharacter}' nor any numerical characters, [${r.suffixText}] given.`),(!Ho.isString(r.negativeSignCharacter)||1!==r.negativeSignCharacter.length||Ho.isUndefinedOrNullOrEmpty(r.negativeSignCharacter)||o.test(r.negativeSignCharacter))&&Ho.throwError(`The negative sign character option 'negativeSignCharacter' is invalid ; it should be a single character, and cannot be any numerical characters, [${r.negativeSignCharacter}] given.`),(!Ho.isString(r.positiveSignCharacter)||1!==r.positiveSignCharacter.length||Ho.isUndefinedOrNullOrEmpty(r.positiveSignCharacter)||o.test(r.positiveSignCharacter))&&Ho.throwError(`The positive sign character option 'positiveSignCharacter' is invalid ; it should be a single character, and cannot be any numerical characters, [${r.positiveSignCharacter}] given.\nIf you want to hide the positive sign character, you need to set the \`showPositiveSign\` option to \`true\`.`),r.negativeSignCharacter===r.positiveSignCharacter&&Ho.throwError(`The positive 'positiveSignCharacter' and negative 'negativeSignCharacter' sign characters cannot be identical ; [${r.negativeSignCharacter}] given.`);const[u,h]=Ho.isNull(r.negativeBracketsTypeOnBlur)?["",""]:r.negativeBracketsTypeOnBlur.split(",");(Ho.contains(r.digitGroupSeparator,r.negativeSignCharacter)||Ho.contains(r.decimalCharacter,r.negativeSignCharacter)||Ho.contains(r.decimalCharacterAlternative,r.negativeSignCharacter)||Ho.contains(u,r.negativeSignCharacter)||Ho.contains(h,r.negativeSignCharacter)||Ho.contains(r.suffixText,r.negativeSignCharacter))&&Ho.throwError(`The negative sign character option 'negativeSignCharacter' is invalid ; it should not be equal or a part of the digit separator, the decimal character, the decimal character alternative, the negative brackets or the suffix text, [${r.negativeSignCharacter}] given.`),(Ho.contains(r.digitGroupSeparator,r.positiveSignCharacter)||Ho.contains(r.decimalCharacter,r.positiveSignCharacter)||Ho.contains(r.decimalCharacterAlternative,r.positiveSignCharacter)||Ho.contains(u,r.positiveSignCharacter)||Ho.contains(h,r.positiveSignCharacter)||Ho.contains(r.suffixText,r.positiveSignCharacter))&&Ho.throwError(`The positive sign character option 'positiveSignCharacter' is invalid ; it should not be equal or a part of the digit separator, the decimal character, the decimal character alternative, the negative brackets or the suffix text, [${r.positiveSignCharacter}] given.`),Ho.isNull(r.overrideMinMaxLimits)||Ho.isInArray(r.overrideMinMaxLimits,[Yo.options.overrideMinMaxLimits.ceiling,Yo.options.overrideMinMaxLimits.floor,Yo.options.overrideMinMaxLimits.ignore,Yo.options.overrideMinMaxLimits.invalid])||Ho.throwError(`The override min & max limits option 'overrideMinMaxLimits' is invalid ; it should either be 'ceiling', 'floor', 'ignore' or 'invalid', [${r.overrideMinMaxLimits}] given.`),r.overrideMinMaxLimits!==Yo.options.overrideMinMaxLimits.invalid&&r.overrideMinMaxLimits!==Yo.options.overrideMinMaxLimits.ignore&&(r.minimumValue>0||r.maximumValue<0)&&Ho.warning("You've set a `minimumValue` or a `maximumValue` excluding the value `0`. AutoNumeric will force the users to always have a valid value in the input, hence preventing them to clear the field. If you want to allow for temporary invalid values (ie. out-of-range), you should use the 'invalid' option for the 'overrideMinMaxLimits' setting."),Ho.isString(r.maximumValue)&&a.test(r.maximumValue)||Ho.throwError(`The maximum possible value option 'maximumValue' is invalid ; it should be a string that represents a positive or negative number, [${r.maximumValue}] given.`),Ho.isString(r.minimumValue)&&a.test(r.minimumValue)||Ho.throwError(`The minimum possible value option 'minimumValue' is invalid ; it should be a string that represents a positive or negative number, [${r.minimumValue}] given.`),parseFloat(r.minimumValue)>parseFloat(r.maximumValue)&&Ho.throwError(`The minimum possible value option is greater than the maximum possible value option ; 'minimumValue' [${r.minimumValue}] should be smaller than 'maximumValue' [${r.maximumValue}].`),Ho.isInt(r.decimalPlaces)&&r.decimalPlaces>=0||Ho.isString(r.decimalPlaces)&&s.test(r.decimalPlaces)||Ho.throwError(`The number of decimal places option 'decimalPlaces' is invalid ; it should be a positive integer, [${r.decimalPlaces}] given.`),Ho.isNull(r.decimalPlacesRawValue)||Ho.isInt(r.decimalPlacesRawValue)&&r.decimalPlacesRawValue>=0||Ho.isString(r.decimalPlacesRawValue)&&s.test(r.decimalPlacesRawValue)||Ho.throwError(`The number of decimal places for the raw value option 'decimalPlacesRawValue' is invalid ; it should be a positive integer or \`null\`, [${r.decimalPlacesRawValue}] given.`),this._validateDecimalPlacesRawValue(r),Ho.isNull(r.decimalPlacesShownOnFocus)||s.test(String(r.decimalPlacesShownOnFocus))||Ho.throwError(`The number of expanded decimal places option 'decimalPlacesShownOnFocus' is invalid ; it should be a positive integer or \`null\`, [${r.decimalPlacesShownOnFocus}] given.`),!Ho.isNull(r.decimalPlacesShownOnFocus)&&Number(r.decimalPlaces)>Number(r.decimalPlacesShownOnFocus)&&Ho.warning(`The extended decimal places 'decimalPlacesShownOnFocus' [${r.decimalPlacesShownOnFocus}] should be greater than the 'decimalPlaces' [${r.decimalPlaces}] value. Currently, this will limit the ability of your user to manually change some of the decimal places. Do you really want to do that?`,r.showWarnings),(Ho.isNull(r.divisorWhenUnfocused)||l.test(r.divisorWhenUnfocused))&&0!==r.divisorWhenUnfocused&&"0"!==r.divisorWhenUnfocused&&1!==r.divisorWhenUnfocused&&"1"!==r.divisorWhenUnfocused||Ho.throwError(`The divisor option 'divisorWhenUnfocused' is invalid ; it should be a positive number higher than one, preferably an integer, [${r.divisorWhenUnfocused}] given.`),Ho.isNull(r.decimalPlacesShownOnBlur)||s.test(r.decimalPlacesShownOnBlur)||Ho.throwError(`The number of decimals shown when unfocused option 'decimalPlacesShownOnBlur' is invalid ; it should be a positive integer or \`null\`, [${r.decimalPlacesShownOnBlur}] given.`),Ho.isNull(r.symbolWhenUnfocused)||Ho.isString(r.symbolWhenUnfocused)||Ho.throwError(`The symbol to show when unfocused option 'symbolWhenUnfocused' is invalid ; it should be a string, [${r.symbolWhenUnfocused}] given.`),Ho.isTrueOrFalseString(r.saveValueToSessionStorage)||Ho.isBoolean(r.saveValueToSessionStorage)||Ho.throwError(`The save to session storage option 'saveValueToSessionStorage' is invalid ; it should be either 'true' or 'false', [${r.saveValueToSessionStorage}] given.`),Ho.isInArray(r.onInvalidPaste,[Yo.options.onInvalidPaste.error,Yo.options.onInvalidPaste.ignore,Yo.options.onInvalidPaste.clamp,Yo.options.onInvalidPaste.truncate,Yo.options.onInvalidPaste.replace])||Ho.throwError(`The paste behavior option 'onInvalidPaste' is invalid ; it should either be 'error', 'ignore', 'clamp', 'truncate' or 'replace' (cf. documentation), [${r.onInvalidPaste}] given.`),Ho.isInArray(r.roundingMethod,[Yo.options.roundingMethod.halfUpSymmetric,Yo.options.roundingMethod.halfUpAsymmetric,Yo.options.roundingMethod.halfDownSymmetric,Yo.options.roundingMethod.halfDownAsymmetric,Yo.options.roundingMethod.halfEvenBankersRounding,Yo.options.roundingMethod.upRoundAwayFromZero,Yo.options.roundingMethod.downRoundTowardZero,Yo.options.roundingMethod.toCeilingTowardPositiveInfinity,Yo.options.roundingMethod.toFloorTowardNegativeInfinity,Yo.options.roundingMethod.toNearest05,Yo.options.roundingMethod.toNearest05Alt,Yo.options.roundingMethod.upToNext05,Yo.options.roundingMethod.downToNext05])||Ho.throwError(`The rounding method option 'roundingMethod' is invalid ; it should either be 'S', 'A', 's', 'a', 'B', 'U', 'D', 'C', 'F', 'N05', 'CHF', 'U05' or 'D05' (cf. documentation), [${r.roundingMethod}] given.`),Ho.isNull(r.negativeBracketsTypeOnBlur)||Ho.isInArray(r.negativeBracketsTypeOnBlur,[Yo.options.negativeBracketsTypeOnBlur.parentheses,Yo.options.negativeBracketsTypeOnBlur.brackets,Yo.options.negativeBracketsTypeOnBlur.chevrons,Yo.options.negativeBracketsTypeOnBlur.curlyBraces,Yo.options.negativeBracketsTypeOnBlur.angleBrackets,Yo.options.negativeBracketsTypeOnBlur.japaneseQuotationMarks,Yo.options.negativeBracketsTypeOnBlur.halfBrackets,Yo.options.negativeBracketsTypeOnBlur.whiteSquareBrackets,Yo.options.negativeBracketsTypeOnBlur.quotationMarks,Yo.options.negativeBracketsTypeOnBlur.guillemets])||Ho.throwError(`The brackets for negative values option 'negativeBracketsTypeOnBlur' is invalid ; it should either be '(,)', '[,]', '<,>', '{,}', '〈,〉', '｢,｣', '⸤,⸥', '⟦,⟧', '‹,›' or '«,»', [${r.negativeBracketsTypeOnBlur}] given.`),(Ho.isString(r.emptyInputBehavior)||Ho.isNumber(r.emptyInputBehavior))&&(Ho.isInArray(r.emptyInputBehavior,[Yo.options.emptyInputBehavior.focus,Yo.options.emptyInputBehavior.press,Yo.options.emptyInputBehavior.always,Yo.options.emptyInputBehavior.min,Yo.options.emptyInputBehavior.max,Yo.options.emptyInputBehavior.zero,Yo.options.emptyInputBehavior.null])||a.test(r.emptyInputBehavior))||Ho.throwError(`The display on empty string option 'emptyInputBehavior' is invalid ; it should either be 'focus', 'press', 'always', 'min', 'max', 'zero', 'null', a number, or a string that represents a number, [${r.emptyInputBehavior}] given.`),r.emptyInputBehavior===Yo.options.emptyInputBehavior.zero&&(r.minimumValue>0||r.maximumValue<0)&&Ho.throwError(`The 'emptyInputBehavior' option is set to 'zero', but this value is outside of the range defined by 'minimumValue' and 'maximumValue' [${r.minimumValue}, ${r.maximumValue}].`),a.test(String(r.emptyInputBehavior))&&(this._isWithinRangeWithOverrideOption(r.emptyInputBehavior,r)||Ho.throwError(`The 'emptyInputBehavior' option is set to a number or a string that represents a number, but its value [${r.emptyInputBehavior}] is outside of the range defined by the 'minimumValue' and 'maximumValue' options [${r.minimumValue}, ${r.maximumValue}].`)),Ho.isTrueOrFalseString(r.eventBubbles)||Ho.isBoolean(r.eventBubbles)||Ho.throwError(`The event bubbles option 'eventBubbles' is invalid ; it should be either 'true' or 'false', [${r.eventBubbles}] given.`),Ho.isTrueOrFalseString(r.eventIsCancelable)||Ho.isBoolean(r.eventIsCancelable)||Ho.throwError(`The event is cancelable option 'eventIsCancelable' is invalid ; it should be either 'true' or 'false', [${r.eventIsCancelable}] given.`),!Ho.isBoolean(r.invalidClass)&&/^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$/.test(r.invalidClass)||Ho.throwError(`The name of the 'invalidClass' option is not a valid CSS class name ; it should not be empty, and should follow the '^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$' regex, [${r.invalidClass}] given.`),Ho.isInArray(r.leadingZero,[Yo.options.leadingZero.allow,Yo.options.leadingZero.deny,Yo.options.leadingZero.keep])||Ho.throwError(`The leading zero behavior option 'leadingZero' is invalid ; it should either be 'allow', 'deny' or 'keep', [${r.leadingZero}] given.`),Ho.isTrueOrFalseString(r.formatOnPageLoad)||Ho.isBoolean(r.formatOnPageLoad)||Ho.throwError(`The format on initialization option 'formatOnPageLoad' is invalid ; it should be either 'true' or 'false', [${r.formatOnPageLoad}] given.`),Ho.isTrueOrFalseString(r.formulaMode)||Ho.isBoolean(r.formulaMode)||Ho.throwError(`The formula mode option 'formulaMode' is invalid ; it should be either 'true' or 'false', [${r.formulaMode}] given.`),s.test(r.historySize)&&0!==r.historySize||Ho.throwError(`The history size option 'historySize' is invalid ; it should be a positive integer, [${r.historySize}] given.`),Ho.isTrueOrFalseString(r.selectNumberOnly)||Ho.isBoolean(r.selectNumberOnly)||Ho.throwError(`The select number only option 'selectNumberOnly' is invalid ; it should be either 'true' or 'false', [${r.selectNumberOnly}] given.`),Ho.isTrueOrFalseString(r.selectOnFocus)||Ho.isBoolean(r.selectOnFocus)||Ho.throwError(`The select on focus option 'selectOnFocus' is invalid ; it should be either 'true' or 'false', [${r.selectOnFocus}] given.`),Ho.isNull(r.defaultValueOverride)||""===r.defaultValueOverride||a.test(r.defaultValueOverride)||Ho.throwError(`The unformatted default value option 'defaultValueOverride' is invalid ; it should be a string that represents a positive or negative number, [${r.defaultValueOverride}] given.`),Ho.isTrueOrFalseString(r.unformatOnSubmit)||Ho.isBoolean(r.unformatOnSubmit)||Ho.throwError(`The remove formatting on submit option 'unformatOnSubmit' is invalid ; it should be either 'true' or 'false', [${r.unformatOnSubmit}] given.`),Ho.isNull(r.valuesToStrings)||Ho.isObject(r.valuesToStrings)||Ho.throwError(`The option 'valuesToStrings' is invalid ; it should be an object, ideally with 'key -> value' entries, [${r.valuesToStrings}] given.`),Ho.isNull(r.outputFormat)||Ho.isInArray(r.outputFormat,[Yo.options.outputFormat.string,Yo.options.outputFormat.number,Yo.options.outputFormat.dot,Yo.options.outputFormat.negativeDot,Yo.options.outputFormat.comma,Yo.options.outputFormat.negativeComma,Yo.options.outputFormat.dotNegative,Yo.options.outputFormat.commaNegative])||Ho.throwError(`The custom locale format option 'outputFormat' is invalid ; it should either be null, 'string', 'number', '.', '-.', ',', '-,', '.-' or ',-', [${r.outputFormat}] given.`),Ho.isTrueOrFalseString(r.isCancellable)||Ho.isBoolean(r.isCancellable)||Ho.throwError(`The cancellable behavior option 'isCancellable' is invalid ; it should be either 'true' or 'false', [${r.isCancellable}] given.`),Ho.isTrueOrFalseString(r.modifyValueOnWheel)||Ho.isBoolean(r.modifyValueOnWheel)||Ho.throwError(`The increment/decrement on mouse wheel option 'modifyValueOnWheel' is invalid ; it should be either 'true' or 'false', [${r.modifyValueOnWheel}] given.`),Ho.isTrueOrFalseString(r.watchExternalChanges)||Ho.isBoolean(r.watchExternalChanges)||Ho.throwError(`The option 'watchExternalChanges' is invalid ; it should be either 'true' or 'false', [${r.watchExternalChanges}] given.`),Ho.isInArray(r.wheelOn,[Yo.options.wheelOn.focus,Yo.options.wheelOn.hover])||Ho.throwError(`The wheel behavior option 'wheelOn' is invalid ; it should either be 'focus' or 'hover', [${r.wheelOn}] given.`),(!Ho.isString(r.wheelStep)&&!Ho.isNumber(r.wheelStep)||"progressive"!==r.wheelStep&&!l.test(r.wheelStep)||0===Number(r.wheelStep))&&Ho.throwError(`The wheel step value option 'wheelStep' is invalid ; it should either be the string 'progressive', or a number or a string that represents a positive number (excluding zero), [${r.wheelStep}] given.`),Ho.isInArray(r.serializeSpaces,[Yo.options.serializeSpaces.plus,Yo.options.serializeSpaces.percent])||Ho.throwError(`The space replacement character option 'serializeSpaces' is invalid ; it should either be '+' or '%20', [${r.serializeSpaces}] given.`),Ho.isTrueOrFalseString(r.noEventListeners)||Ho.isBoolean(r.noEventListeners)||Ho.throwError(`The option 'noEventListeners' that prevent the creation of event listeners is invalid ; it should be either 'true' or 'false', [${r.noEventListeners}] given.`),Ho.isNull(r.styleRules)||Ho.isObject(r.styleRules)&&(Object.prototype.hasOwnProperty.call(r.styleRules,"positive")||Object.prototype.hasOwnProperty.call(r.styleRules,"negative")||Object.prototype.hasOwnProperty.call(r.styleRules,"ranges")||Object.prototype.hasOwnProperty.call(r.styleRules,"userDefined"))||Ho.throwError(`The option 'styleRules' is invalid ; it should be a correctly structured object, with one or more 'positive', 'negative', 'ranges' or 'userDefined' attributes, [${r.styleRules}] given.`),Ho.isNull(r.styleRules)||!Object.prototype.hasOwnProperty.call(r.styleRules,"userDefined")||Ho.isNull(r.styleRules.userDefined)||r.styleRules.userDefined.forEach((e=>{Object.prototype.hasOwnProperty.call(e,"callback")&&!Ho.isFunction(e.callback)&&Ho.throwError(`The callback defined in the \`userDefined\` attribute is not a function, ${typeof e.callback} given.`)})),(Ho.isNull(r.rawValueDivisor)||l.test(r.rawValueDivisor))&&0!==r.rawValueDivisor&&"0"!==r.rawValueDivisor&&1!==r.rawValueDivisor&&"1"!==r.rawValueDivisor||Ho.throwError(`The raw value divisor option 'rawValueDivisor' is invalid ; it should be a positive number higher than one, preferably an integer, [${r.rawValueDivisor}] given.`),Ho.isTrueOrFalseString(r.readOnly)||Ho.isBoolean(r.readOnly)||Ho.throwError(`The option 'readOnly' is invalid ; it should be either 'true' or 'false', [${r.readOnly}] given.`),Ho.isTrueOrFalseString(r.unformatOnHover)||Ho.isBoolean(r.unformatOnHover)||Ho.throwError(`The option 'unformatOnHover' is invalid ; it should be either 'true' or 'false', [${r.unformatOnHover}] given.`),Ho.isTrueOrFalseString(r.failOnUnknownOption)||Ho.isBoolean(r.failOnUnknownOption)||Ho.throwError(`The debug option 'failOnUnknownOption' is invalid ; it should be either 'true' or 'false', [${r.failOnUnknownOption}] given.`),Ho.isTrueOrFalseString(r.createLocalList)||Ho.isBoolean(r.createLocalList)||Ho.throwError(`The debug option 'createLocalList' is invalid ; it should be either 'true' or 'false', [${r.createLocalList}] given.`)}static _validateDecimalPlacesRawValue(e){Ho.isNull(e.decimalPlacesRawValue)||(e.decimalPlacesRawValue<e.decimalPlaces&&Ho.warning(`The number of decimal places to store in the raw value [${e.decimalPlacesRawValue}] is lower than the ones to display [${e.decimalPlaces}]. This will likely confuse your users.\nTo solve that, you'd need to either set \`decimalPlacesRawValue\` to \`null\`, or set a number of decimal places for the raw value equal of bigger than \`decimalPlaces\`.`,e.showWarnings),e.decimalPlacesRawValue<e.decimalPlacesShownOnFocus&&Ho.warning(`The number of decimal places to store in the raw value [${e.decimalPlacesRawValue}] is lower than the ones shown on focus [${e.decimalPlacesShownOnFocus}]. This will likely confuse your users.\nTo solve that, you'd need to either set \`decimalPlacesRawValue\` to \`null\`, or set a number of decimal places for the raw value equal of bigger than \`decimalPlacesShownOnFocus\`.`,e.showWarnings),e.decimalPlacesRawValue<e.decimalPlacesShownOnBlur&&Ho.warning(`The number of decimal places to store in the raw value [${e.decimalPlacesRawValue}] is lower than the ones shown when unfocused [${e.decimalPlacesShownOnBlur}]. This will likely confuse your users.\nTo solve that, you'd need to either set \`decimalPlacesRawValue\` to \`null\`, or set a number of decimal places for the raw value equal of bigger than \`decimalPlacesShownOnBlur\`.`,e.showWarnings))}static areSettingsValid(e){let t=!0;try{this.validate(e,!0)}catch(e){t=!1}return t}static getDefaultConfig(){return Yo.defaultSettings}static getPredefinedOptions(){return Yo.predefinedOptions}static _generateOptionsObjectFromOptionsArray(e){let t;return Ho.isUndefinedOrNullOrEmpty(e)||0===e.length?t=null:(t={},1===e.length&&Array.isArray(e[0])?e[0].forEach((e=>{Object.assign(t,this._getOptionObject(e))})):e.length>=1&&e.forEach((e=>{Object.assign(t,this._getOptionObject(e))}))),t}static format(e,...t){if(Ho.isUndefined(e)||null===e)return null;let n;n=Ho.isElement(e)?Ho.getElementValue(e):e,Ho.isString(n)||Ho.isNumber(n)||Ho.throwError(`The value "${n}" being "set" is not numeric and therefore cannot be used appropriately.`);const i=this._generateOptionsObjectFromOptionsArray(t),r=Object.assign({},this.getDefaultConfig(),i);r.isNegativeSignAllowed=n<0,r.isPositiveSignAllowed=n>=0,this._setBrackets(r);this._cachesUsualRegularExpressions(r,{});let s=this._toNumericValue(n,r);return isNaN(Number(s))&&Ho.throwError(`The value [${s}] that you are trying to format is not a recognized number.`),this._isWithinRangeWithOverrideOption(s,r)||(Ho.triggerEvent(Yo.events.formatted,document,{oldValue:null,newValue:null,oldRawValue:null,newRawValue:null,isPristine:null,error:"Range test failed",aNElement:null},!0,!0),Ho.throwError(`The value [${s}] being set falls outside of the minimumValue [${r.minimumValue}] and maximumValue [${r.maximumValue}] range set for this element`)),r.valuesToStrings&&this._checkValuesToStringsSettings(n,r)?r.valuesToStrings[n]:(this._correctNegativePositiveSignPlacementOption(r),this._calculateDecimalPlacesOnInit(r),Ho.isUndefinedOrNullOrEmpty(r.rawValueDivisor)||0===r.rawValueDivisor||""===s||null===s||(s*=r.rawValueDivisor),s=this._roundFormattedValueShownOnFocus(s,r),s=this._modifyNegativeSignAndDecimalCharacterForFormattedValue(s,r),s=this._addGroupSeparators(s,r,!1,s),s)}static formatAndSet(e,t=null){const n=this.format(e,t);return Ho.setElementValue(e,n),n}static unformat(e,...t){if(Ho.isNumberStrict(e))return e;let n;if(n=Ho.isElement(e)?Ho.getElementValue(e):e,""===n)return"";if(Ho.isUndefined(n)||null===n)return null;(Ho.isArray(n)||Ho.isObject(n))&&Ho.throwError(`A number or a string representing a number is needed to be able to unformat it, [${n}] given.`);const i=this._generateOptionsObjectFromOptionsArray(t),r=Object.assign({},this.getDefaultConfig(),i);if(r.isNegativeSignAllowed=!1,r.isPositiveSignAllowed=!0,n=n.toString(),r.valuesToStrings&&this._checkStringsToValuesSettings(n,r))return Ho.objectKeyLookup(r.valuesToStrings,n);Ho.isNegative(n,r.negativeSignCharacter)?(r.isNegativeSignAllowed=!0,r.isPositiveSignAllowed=!1):Ho.isNull(r.negativeBracketsTypeOnBlur)||([r.firstBracket,r.lastBracket]=r.negativeBracketsTypeOnBlur.split(","),n.charAt(0)===r.firstBracket&&n.charAt(n.length-1)===r.lastBracket&&(r.isNegativeSignAllowed=!0,r.isPositiveSignAllowed=!1,n=this._removeBrackets(n,r,!1))),n=this._convertToNumericString(n,r);return new RegExp("[^+-0123456789.]","gi").test(n)?NaN:(this._correctNegativePositiveSignPlacementOption(r),r.decimalPlacesRawValue?r.originalDecimalPlacesRawValue=r.decimalPlacesRawValue:r.originalDecimalPlacesRawValue=r.decimalPlaces,this._calculateDecimalPlacesOnInit(r),Ho.isUndefinedOrNullOrEmpty(r.rawValueDivisor)||0===r.rawValueDivisor||""===n||null===n||(n/=r.rawValueDivisor),n=this._roundRawValue(n,r),n=n.replace(r.decimalCharacter,"."),n=this._toLocale(n,r.outputFormat,r),n)}static unformatAndSet(e,t=null){const n=this.unformat(e,t);return Ho.setElementValue(e,n),n}static localize(e,t=null){let n,i;return n=Ho.isElement(e)?Ho.getElementValue(e):e,""===n?"":(Ho.isNull(t)&&(t=Yo.defaultSettings),n=this.unformat(n,t),0===Number(n)&&t.leadingZero!==Yo.options.leadingZero.keep&&(n="0"),i=Ho.isNull(t)?t.outputFormat:Yo.defaultSettings.outputFormat,this._toLocale(n,i,t))}static localizeAndSet(e,t=null){const n=this.localize(e,t);return Ho.setElementValue(e,n),n}static isManagedByAutoNumeric(e){return this._isInGlobalList(Ho.domElement(e))}static getAutoNumericElement(e){const t=Ho.domElement(e);return this.isManagedByAutoNumeric(t)?this._getFromGlobalList(t):null}static set(e,t,n=null,i=!0){const r=Ho.domElement(e);if(!this.isManagedByAutoNumeric(r)){let e;return e=!(!Ho.isNull(n)&&Object.prototype.hasOwnProperty.call(n,"showWarnings"))||n.showWarnings,Ho.warning("Impossible to find an AutoNumeric object for the given DOM element or selector.",e),null}return this.getAutoNumericElement(r).set(t,n,i)}static getNumericString(e,t=null){return this._get(e,"getNumericString",t)}static getFormatted(e,t=null){return this._get(e,"getFormatted",t)}static getNumber(e,t=null){return this._get(e,"getNumber",t)}static _get(e,t,n=null){const i=Ho.domElement(e);return this.isManagedByAutoNumeric(i)||Ho.throwError("Impossible to find an AutoNumeric object for the given DOM element or selector."),this.getAutoNumericElement(i)[t](n)}static getLocalized(e,t=null,n=null){const i=Ho.domElement(e);return this.isManagedByAutoNumeric(i)||Ho.throwError("Impossible to find an AutoNumeric object for the given DOM element or selector."),this.getAutoNumericElement(i).getLocalized(t,n)}_updatePredefinedOptions(e,t=null){return Ho.isNull(t)?this.update(e):(this._mergeSettings(e,t),this.update(this.settings)),this}french(e=null){return this._updatePredefinedOptions(Yo.getPredefinedOptions().French,e),this}northAmerican(e=null){return this._updatePredefinedOptions(Yo.getPredefinedOptions().NorthAmerican,e),this}british(e=null){return this._updatePredefinedOptions(Yo.getPredefinedOptions().British,e),this}swiss(e=null){return this._updatePredefinedOptions(Yo.getPredefinedOptions().Swiss,e),this}japanese(e=null){return this._updatePredefinedOptions(Yo.getPredefinedOptions().Japanese,e),this}spanish(e=null){return this._updatePredefinedOptions(Yo.getPredefinedOptions().Spanish,e),this}chinese(e=null){return this._updatePredefinedOptions(Yo.getPredefinedOptions().Chinese,e),this}brazilian(e=null){return this._updatePredefinedOptions(Yo.getPredefinedOptions().Brazilian,e),this}_runCallbacksFoundInTheSettingsObject(){for(const e in this.settings)if(Object.prototype.hasOwnProperty.call(this.settings,e)){const t=this.settings[e];if("function"==typeof t)this.settings[e]=t(this,e);else{let t=this.domElement.getAttribute(e);t=Ho.camelize(t),"function"==typeof this.settings[t]&&(this.settings[e]=t(this,e))}}}_setTrailingNegativeSignInfo(){this.isTrailingNegative=this.settings.currencySymbolPlacement===Yo.options.currencySymbolPlacement.prefix&&this.settings.negativePositiveSignPlacement===Yo.options.negativePositiveSignPlacement.suffix||this.settings.currencySymbolPlacement===Yo.options.currencySymbolPlacement.suffix&&(this.settings.negativePositiveSignPlacement===Yo.options.negativePositiveSignPlacement.left||this.settings.negativePositiveSignPlacement===Yo.options.negativePositiveSignPlacement.right)}static _stripAllNonNumberCharacters(e,t,n,i){return this._stripAllNonNumberCharactersExceptCustomDecimalChar(e,t,n,i).replace(t.decimalCharacter,".")}static _stripAllNonNumberCharactersExceptCustomDecimalChar(e,t,n,i){const r=(e=(e=this._normalizeCurrencySuffixAndNegativeSignCharacters(e,t)).replace(t.allowedAutoStrip,"")).match(t.numRegAutoStrip);if(e=r?[r[1],r[2],r[3]].join(""):"",t.leadingZero===Yo.options.leadingZero.allow||t.leadingZero===Yo.options.leadingZero.keep){let n="";const[i,r]=e.split(t.decimalCharacter);let s=i;Ho.contains(s,t.negativeSignCharacter)&&(n=t.negativeSignCharacter,s=s.replace(t.negativeSignCharacter,"")),""===n&&s.length>t.mIntPos&&"0"===s.charAt(0)&&(s=s.slice(1)),""!==n&&s.length>t.mIntNeg&&"0"===s.charAt(0)&&(s=s.slice(1)),e=`${n}${s}${Ho.isUndefined(r)?"":t.decimalCharacter+r}`}return(n&&t.leadingZero===Yo.options.leadingZero.deny||!i&&t.leadingZero===Yo.options.leadingZero.allow)&&(e=e.replace(t.stripReg,"$1$2")),e}static _toggleNegativeBracket(e,t,n){let i;return i=n?this._removeBrackets(e,t):this._addBrackets(e,t),i}static _addBrackets(e,t){return Ho.isNull(t.negativeBracketsTypeOnBlur)?e:`${t.firstBracket}${e.replace(t.negativeSignCharacter,"")}${t.lastBracket}`}static _removeBrackets(e,t,n=!0){let i;return Ho.isNull(t.negativeBracketsTypeOnBlur)||e.charAt(0)!==t.firstBracket?i=e:(i=e.replace(t.firstBracket,""),i=i.replace(t.lastBracket,""),n?(i=i.replace(t.currencySymbol,""),i=this._mergeCurrencySignNegativePositiveSignAndValue(i,t,!0,!1)):i=`${t.negativeSignCharacter}${i}`),i}static _setBrackets(e){if(Ho.isNull(e.negativeBracketsTypeOnBlur))e.firstBracket="",e.lastBracket="";else{const[t,n]=e.negativeBracketsTypeOnBlur.split(",");e.firstBracket=t,e.lastBracket=n}}static _convertToNumericString(e,t){e=this._removeBrackets(e,t,!1),e=(e=this._normalizeCurrencySuffixAndNegativeSignCharacters(e,t)).replace(new RegExp(`[${t.digitGroupSeparator}]`,"g"),""),"."!==t.decimalCharacter&&(e=e.replace(t.decimalCharacter,".")),Ho.isNegative(e)&&e.lastIndexOf("-")===e.length-1&&(e=`-${e=e.replace("-","")}`),t.showPositiveSign&&(e=e.replace(t.positiveSignCharacter,""));const n=t.leadingZero!==Yo.options.leadingZero.keep,i=Ho.arabicToLatinNumbers(e,n,!1,!1);return isNaN(i)||(e=i.toString()),e}static _normalizeCurrencySuffixAndNegativeSignCharacters(e,t){return e=String(e),t.currencySymbol!==Yo.options.currencySymbol.none&&(e=e.replace(t.currencySymbol,"")),t.suffixText!==Yo.options.suffixText.none&&(e=e.replace(t.suffixText,"")),t.negativeSignCharacter!==Yo.options.negativeSignCharacter.hyphen&&(e=e.replace(t.negativeSignCharacter,"-")),e}static _toLocale(e,t,n){if(Ho.isNull(t)||t===Yo.options.outputFormat.string)return e;let i;switch(t){case Yo.options.outputFormat.number:i=Number(e);break;case Yo.options.outputFormat.dotNegative:i=Ho.isNegative(e)?e.replace("-","")+"-":e;break;case Yo.options.outputFormat.comma:case Yo.options.outputFormat.negativeComma:i=e.replace(".",",");break;case Yo.options.outputFormat.commaNegative:i=e.replace(".",","),i=Ho.isNegative(i)?i.replace("-","")+"-":i;break;case Yo.options.outputFormat.dot:case Yo.options.outputFormat.negativeDot:i=e;break;default:Ho.throwError(`The given outputFormat [${t}] option is not recognized.`)}return t!==Yo.options.outputFormat.number&&"-"!==n.negativeSignCharacter&&(i=i.replace("-",n.negativeSignCharacter)),i}_modifyNegativeSignAndDecimalCharacterForRawValue(e){return"."!==this.settings.decimalCharacter&&(e=e.replace(this.settings.decimalCharacter,".")),"-"!==this.settings.negativeSignCharacter&&this.settings.isNegativeSignAllowed&&(e=e.replace(this.settings.negativeSignCharacter,"-")),e.match(/\d/)||(e+="0"),e}static _modifyNegativeSignAndDecimalCharacterForFormattedValue(e,t){return"-"!==t.negativeSignCharacter&&(e=e.replace("-",t.negativeSignCharacter)),"."!==t.decimalCharacter&&(e=e.replace(".",t.decimalCharacter)),e}static _isElementValueEmptyOrOnlyTheNegativeSign(e,t){return""===e||e===t.negativeSignCharacter}static _orderValueCurrencySymbolAndSuffixText(e,t,n){let i;if(t.emptyInputBehavior===Yo.options.emptyInputBehavior.always||n)switch(t.negativePositiveSignPlacement){case Yo.options.negativePositiveSignPlacement.left:case Yo.options.negativePositiveSignPlacement.prefix:case Yo.options.negativePositiveSignPlacement.none:i=e+t.currencySymbol+t.suffixText;break;default:i=t.currencySymbol+e+t.suffixText}else i=e;return i}static _addGroupSeparators(e,t,n,i,r=null){let s;if(s=Ho.isNull(r)?Ho.isNegative(e,t.negativeSignCharacter)||Ho.isNegativeWithBrackets(e,t.firstBracket,t.lastBracket):r<0,e=this._stripAllNonNumberCharactersExceptCustomDecimalChar(e,t,!1,n),this._isElementValueEmptyOrOnlyTheNegativeSign(e,t))return this._orderValueCurrencySymbolAndSuffixText(e,t,!0);const o=Ho.isZeroOrHasNoValue(e);let a;switch(s&&(e=e.replace("-","")),t.digitalGroupSpacing=t.digitalGroupSpacing.toString(),t.digitalGroupSpacing){case Yo.options.digitalGroupSpacing.two:a=/(\d)((\d)(\d{2}?)+)$/;break;case Yo.options.digitalGroupSpacing.twoScaled:a=/(\d)((?:\d{2}){0,2}\d{3}(?:(?:\d{2}){2}\d{3})*?)$/;break;case Yo.options.digitalGroupSpacing.four:a=/(\d)((\d{4}?)+)$/;break;case Yo.options.digitalGroupSpacing.three:default:a=/(\d)((\d{3}?)+)$/}let l,c,[u,h]=e.split(t.decimalCharacter);if(t.decimalCharacterAlternative&&Ho.isUndefined(h)&&([u,h]=e.split(t.decimalCharacterAlternative)),""!==t.digitGroupSeparator)for(;a.test(u);)u=u.replace(a,`$1${t.digitGroupSeparator}$2`);return l=n?t.decimalPlacesShownOnFocus:t.decimalPlacesShownOnBlur,0===l||Ho.isUndefined(h)?e=u:(h.length>l&&(h=h.substring(0,l)),e=`${u}${t.decimalCharacter}${h}`),e=Yo._mergeCurrencySignNegativePositiveSignAndValue(e,t,s,o),Ho.isNull(r)&&(r=i),null!==t.negativeBracketsTypeOnBlur&&(r<0||Ho.isNegativeStrict(e,t.negativeSignCharacter))&&(e=this._toggleNegativeBracket(e,t,n)),c=t.suffixText?`${e}${t.suffixText}`:e,c}static _mergeCurrencySignNegativePositiveSignAndValue(e,t,n,i){let r,s="";if(n?s=t.negativeSignCharacter:t.showPositiveSign&&!i&&(s=t.positiveSignCharacter),t.currencySymbolPlacement===Yo.options.currencySymbolPlacement.prefix)if(t.negativePositiveSignPlacement!==Yo.options.negativePositiveSignPlacement.none&&(n||!n&&t.showPositiveSign&&!i))switch(t.negativePositiveSignPlacement){case Yo.options.negativePositiveSignPlacement.prefix:case Yo.options.negativePositiveSignPlacement.left:r=`${s}${t.currencySymbol}${e}`;break;case Yo.options.negativePositiveSignPlacement.right:r=`${t.currencySymbol}${s}${e}`;break;case Yo.options.negativePositiveSignPlacement.suffix:r=`${t.currencySymbol}${e}${s}`}else r=t.currencySymbol+e;else if(t.currencySymbolPlacement===Yo.options.currencySymbolPlacement.suffix)if(t.negativePositiveSignPlacement!==Yo.options.negativePositiveSignPlacement.none&&(n||!n&&t.showPositiveSign&&!i))switch(t.negativePositiveSignPlacement){case Yo.options.negativePositiveSignPlacement.suffix:case Yo.options.negativePositiveSignPlacement.right:r=`${e}${t.currencySymbol}${s}`;break;case Yo.options.negativePositiveSignPlacement.left:r=`${e}${s}${t.currencySymbol}`;break;case Yo.options.negativePositiveSignPlacement.prefix:r=`${s}${e}${t.currencySymbol}`}else r=e+t.currencySymbol;return r}_initialCaretPosition(e){Ho.isNull(this.settings.caretPositionOnFocus)&&this.settings.selectOnFocus===Yo.options.selectOnFocus.doNotSelect&&Ho.throwError("`_initialCaretPosition()` should never be called when the `caretPositionOnFocus` option is `null`.");const t=this.rawValue<0,n=Ho.isZeroOrHasNoValue(e),i=e.length;let r=0,s=0,o=!1,a=0;this.settings.caretPositionOnFocus!==Yo.options.caretPositionOnFocus.start&&(r=(e=(e=(e=e.replace(this.settings.negativeSignCharacter,"")).replace(this.settings.positiveSignCharacter,"")).replace(this.settings.currencySymbol,"")).length,o=Ho.contains(e,this.settings.decimalCharacter),this.settings.caretPositionOnFocus!==Yo.options.caretPositionOnFocus.decimalLeft&&this.settings.caretPositionOnFocus!==Yo.options.caretPositionOnFocus.decimalRight||(o?(s=e.indexOf(this.settings.decimalCharacter),a=this.settings.decimalCharacter.length):(s=r,a=0)));let l="";t?l=this.settings.negativeSignCharacter:this.settings.showPositiveSign&&!n&&(l=this.settings.positiveSignCharacter);const c=l.length,u=this.settings.currencySymbol.length;let h;if(this.settings.currencySymbolPlacement===Yo.options.currencySymbolPlacement.prefix){if(this.settings.caretPositionOnFocus===Yo.options.caretPositionOnFocus.start)if(this.settings.negativePositiveSignPlacement!==Yo.options.negativePositiveSignPlacement.none&&(t||!t&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case Yo.options.negativePositiveSignPlacement.prefix:case Yo.options.negativePositiveSignPlacement.left:case Yo.options.negativePositiveSignPlacement.right:h=c+u;break;case Yo.options.negativePositiveSignPlacement.suffix:h=u}else h=u;else if(this.settings.caretPositionOnFocus===Yo.options.caretPositionOnFocus.end)if(this.settings.negativePositiveSignPlacement!==Yo.options.negativePositiveSignPlacement.none&&(t||!t&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case Yo.options.negativePositiveSignPlacement.prefix:case Yo.options.negativePositiveSignPlacement.left:case Yo.options.negativePositiveSignPlacement.right:h=i;break;case Yo.options.negativePositiveSignPlacement.suffix:h=u+r}else h=i;else if(this.settings.caretPositionOnFocus===Yo.options.caretPositionOnFocus.decimalLeft)if(this.settings.negativePositiveSignPlacement!==Yo.options.negativePositiveSignPlacement.none&&(t||!t&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case Yo.options.negativePositiveSignPlacement.prefix:case Yo.options.negativePositiveSignPlacement.left:case Yo.options.negativePositiveSignPlacement.right:h=c+u+s;break;case Yo.options.negativePositiveSignPlacement.suffix:h=u+s}else h=u+s;else if(this.settings.caretPositionOnFocus===Yo.options.caretPositionOnFocus.decimalRight)if(this.settings.negativePositiveSignPlacement!==Yo.options.negativePositiveSignPlacement.none&&(t||!t&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case Yo.options.negativePositiveSignPlacement.prefix:case Yo.options.negativePositiveSignPlacement.left:case Yo.options.negativePositiveSignPlacement.right:h=c+u+s+a;break;case Yo.options.negativePositiveSignPlacement.suffix:h=u+s+a}else h=u+s+a}else if(this.settings.currencySymbolPlacement===Yo.options.currencySymbolPlacement.suffix)if(this.settings.caretPositionOnFocus===Yo.options.caretPositionOnFocus.start)if(this.settings.negativePositiveSignPlacement!==Yo.options.negativePositiveSignPlacement.none&&(t||!t&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case Yo.options.negativePositiveSignPlacement.suffix:case Yo.options.negativePositiveSignPlacement.right:case Yo.options.negativePositiveSignPlacement.left:h=0;break;case Yo.options.negativePositiveSignPlacement.prefix:h=c}else h=0;else if(this.settings.caretPositionOnFocus===Yo.options.caretPositionOnFocus.end)if(this.settings.negativePositiveSignPlacement!==Yo.options.negativePositiveSignPlacement.none&&(t||!t&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case Yo.options.negativePositiveSignPlacement.suffix:case Yo.options.negativePositiveSignPlacement.right:case Yo.options.negativePositiveSignPlacement.left:h=r;break;case Yo.options.negativePositiveSignPlacement.prefix:h=c+r}else h=r;else if(this.settings.caretPositionOnFocus===Yo.options.caretPositionOnFocus.decimalLeft)if(this.settings.negativePositiveSignPlacement!==Yo.options.negativePositiveSignPlacement.none&&(t||!t&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case Yo.options.negativePositiveSignPlacement.suffix:case Yo.options.negativePositiveSignPlacement.right:case Yo.options.negativePositiveSignPlacement.left:h=s;break;case Yo.options.negativePositiveSignPlacement.prefix:h=c+s}else h=s;else if(this.settings.caretPositionOnFocus===Yo.options.caretPositionOnFocus.decimalRight)if(this.settings.negativePositiveSignPlacement!==Yo.options.negativePositiveSignPlacement.none&&(t||!t&&this.settings.showPositiveSign&&!n))switch(this.settings.negativePositiveSignPlacement){case Yo.options.negativePositiveSignPlacement.suffix:case Yo.options.negativePositiveSignPlacement.right:case Yo.options.negativePositiveSignPlacement.left:h=s+a;break;case Yo.options.negativePositiveSignPlacement.prefix:h=c+s+a}else h=s+a;return h}static _truncateZeros(e,t){let n;switch(t){case 0:n=/(\.(?:\d*[1-9])?)0*$/;break;case 1:n=/(\.\d(?:\d*[1-9])?)0*$/;break;default:n=new RegExp(`(\\.\\d{${t}}(?:\\d*[1-9])?)0*`)}return e=e.replace(n,"$1"),0===t&&(e=e.replace(/\.$/,"")),e}static _roundRawValue(e,t){return this._roundValue(e,t,t.decimalPlacesRawValue)}static _roundFormattedValueShownOnFocus(e,t){return this._roundValue(e,t,Number(t.decimalPlacesShownOnFocus))}static _roundFormattedValueShownOnBlur(e,t){return this._roundValue(e,t,Number(t.decimalPlacesShownOnBlur))}static _roundFormattedValueShownOnFocusOrBlur(e,t,n){return n?this._roundFormattedValueShownOnFocus(e,t):this._roundFormattedValueShownOnBlur(e,t)}static _roundValue(e,t,n){if(Ho.isNull(e))return e;if(e=""===e?"0":e.toString(),t.roundingMethod===Yo.options.roundingMethod.toNearest05||t.roundingMethod===Yo.options.roundingMethod.toNearest05Alt||t.roundingMethod===Yo.options.roundingMethod.upToNext05||t.roundingMethod===Yo.options.roundingMethod.downToNext05)return this._roundCloseTo05(e,t);const[i,r]=Yo._prepareValueForRounding(e,t),s=(e=r).lastIndexOf("."),o=-1===s,[a,l]=e.split(".");if(!(l>0)&&(t.allowDecimalPadding===Yo.options.allowDecimalPadding.never||t.allowDecimalPadding===Yo.options.allowDecimalPadding.floats))return 0===Number(e)?a:`${i}${a}`;let c;c=t.allowDecimalPadding===Yo.options.allowDecimalPadding.always||t.allowDecimalPadding===Yo.options.allowDecimalPadding.floats?n:0;const u=o?e.length-1:s;let h,d=e.length-1-u,m="";if(d<=n){if(m=e,d<c){o&&(m=`${m}${t.decimalCharacter}`);let e="000000";for(;d<c;)e=e.substring(0,c-d),m+=e,d+=e.length}else d>c?m=this._truncateZeros(m,c):0===d&&0===c&&(m=m.replace(/\.$/,""));return 0===Number(m)?m:`${i}${m}`}h=o?n-1:Number(n)+Number(s);const p=Number(e.charAt(h+1));let g,f=e.substring(0,h+1).split("");if(g="."===e.charAt(h)?e.charAt(h-1)%2:e.charAt(h)%2,this._shouldRoundUp(p,t,i,g))for(let e=f.length-1;e>=0;e-=1)if("."!==f[e]){if(f[e]=+f[e]+1,f[e]<10)break;e>0&&(f[e]="0")}return f=f.slice(0,h+1),m=this._truncateZeros(f.join(""),c),0===Number(m)?m:`${i}${m}`}static _roundCloseTo05(e,t){switch(t.roundingMethod){case Yo.options.roundingMethod.toNearest05:case Yo.options.roundingMethod.toNearest05Alt:e=(Math.round(20*e)/20).toString();break;case Yo.options.roundingMethod.upToNext05:e=(Math.ceil(20*e)/20).toString();break;default:e=(Math.floor(20*e)/20).toString()}let n;return n=Ho.contains(e,".")?e.length-e.indexOf(".")<3?e+"0":e:e+".00",n}static _prepareValueForRounding(e,t){let n="";return Ho.isNegativeStrict(e,"-")&&(n="-",e=e.replace("-","")),e.match(/^\d/)||(e=`0${e}`),0===Number(e)&&(n=""),(Number(e)>0&&t.leadingZero!==Yo.options.leadingZero.keep||e.length>0&&t.leadingZero===Yo.options.leadingZero.allow)&&(e=e.replace(/^0*(\d)/,"$1")),[n,e]}static _shouldRoundUp(e,t,n,i){return e>4&&t.roundingMethod===Yo.options.roundingMethod.halfUpSymmetric||e>4&&t.roundingMethod===Yo.options.roundingMethod.halfUpAsymmetric&&""===n||e>5&&t.roundingMethod===Yo.options.roundingMethod.halfUpAsymmetric&&"-"===n||e>5&&t.roundingMethod===Yo.options.roundingMethod.halfDownSymmetric||e>5&&t.roundingMethod===Yo.options.roundingMethod.halfDownAsymmetric&&""===n||e>4&&t.roundingMethod===Yo.options.roundingMethod.halfDownAsymmetric&&"-"===n||e>5&&t.roundingMethod===Yo.options.roundingMethod.halfEvenBankersRounding||5===e&&t.roundingMethod===Yo.options.roundingMethod.halfEvenBankersRounding&&1===i||e>0&&t.roundingMethod===Yo.options.roundingMethod.toCeilingTowardPositiveInfinity&&""===n||e>0&&t.roundingMethod===Yo.options.roundingMethod.toFloorTowardNegativeInfinity&&"-"===n||e>0&&t.roundingMethod===Yo.options.roundingMethod.upRoundAwayFromZero}static _truncateDecimalPlaces(e,t,n,i){n&&(e=this._roundFormattedValueShownOnFocus(e,t));const[r,s]=e.split(t.decimalCharacter);if(s&&s.length>i)if(i>0){const n=s.substring(0,i);e=`${r}${t.decimalCharacter}${n}`}else e=r;return e}static _checkIfInRangeWithOverrideOption(e,t){if(Ho.isNull(e)&&t.emptyInputBehavior===Yo.options.emptyInputBehavior.null||t.overrideMinMaxLimits===Yo.options.overrideMinMaxLimits.ignore||t.overrideMinMaxLimits===Yo.options.overrideMinMaxLimits.invalid)return[!0,!0];e=(e=e.toString()).replace(",",".");const n=Ho.parseStr(t.minimumValue),i=Ho.parseStr(t.maximumValue),r=Ho.parseStr(e);let s;switch(t.overrideMinMaxLimits){case Yo.options.overrideMinMaxLimits.floor:s=[Ho.testMinMax(n,r)>-1,!0];break;case Yo.options.overrideMinMaxLimits.ceiling:s=[!0,Ho.testMinMax(i,r)<1];break;default:s=[Ho.testMinMax(n,r)>-1,Ho.testMinMax(i,r)<1]}return s}static _isWithinRangeWithOverrideOption(e,t){const[n,i]=this._checkIfInRangeWithOverrideOption(e,t);return n&&i}static _cleanValueForRangeParse(e){return e=e.toString().replace(",","."),Ho.parseStr(e)}static _isMinimumRangeRespected(e,t){return Ho.testMinMax(Ho.parseStr(t.minimumValue),this._cleanValueForRangeParse(e))>-1}static _isMaximumRangeRespected(e,t){return Ho.testMinMax(Ho.parseStr(t.maximumValue),this._cleanValueForRangeParse(e))<1}_triggerRangeEvents(e,t){e||this._triggerEvent(Yo.events.minRangeExceeded,this.domElement),t||this._triggerEvent(Yo.events.maxRangeExceeded,this.domElement)}_setInvalidState(){this.isInputElement?Ho.setInvalidState(this.domElement):this._addCSSClass(this.settings.invalidClass),this._triggerEvent(Yo.events.invalidValue,this.domElement),this.validState=!1}_setValidState(){this.isInputElement?Ho.setValidState(this.domElement):this._removeCSSClass(this.settings.invalidClass),this.validState||this._triggerEvent(Yo.events.correctedValue,this.domElement),this.validState=!0}_setValidOrInvalidState(e){if(this.settings.overrideMinMaxLimits===Yo.options.overrideMinMaxLimits.invalid){const t=this.constructor._isMinimumRangeRespected(e,this.settings),n=this.constructor._isMaximumRangeRespected(e,this.settings);t&&n?this._setValidState():this._setInvalidState(),this._triggerRangeEvents(t,n)}}_keepAnOriginalSettingsCopy(){this.originalDigitGroupSeparator=this.settings.digitGroupSeparator,this.originalCurrencySymbol=this.settings.currencySymbol,this.originalSuffixText=this.settings.suffixText}static _readCookie(e){const t=e+"=",n=document.cookie.split(";");let i="";for(let e=0;e<n.length;e+=1){for(i=n[e];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null}static _storageTest(){const e="modernizr";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(e){return!1}}_trimLeadingAndTrailingZeros(e){if(""===e||null===e)return e;if(this.settings.leadingZero!==Yo.options.leadingZero.keep){if(0===Number(e))return"0";e=e.replace(/^(-)?0+(?=\d)/g,"$1")}return Ho.contains(e,".")&&(e=e.replace(/(\.[0-9]*?)0+$/,"$1")),e=e.replace(/\.$/,"")}_setPersistentStorageName(){this.settings.saveValueToSessionStorage&&(""===this.domElement.name||Ho.isUndefined(this.domElement.name)?this.rawValueStorageName=`${this.storageNamePrefix}${this.domElement.id}`:this.rawValueStorageName=`${this.storageNamePrefix}${decodeURIComponent(this.domElement.name)}`)}_saveValueToPersistentStorage(){this.settings.saveValueToSessionStorage&&(this.sessionStorageAvailable?sessionStorage.setItem(this.rawValueStorageName,this.rawValue):document.cookie=`${this.rawValueStorageName}=${this.rawValue}; expires= ; path=/`)}_getValueFromPersistentStorage(){if(this.settings.saveValueToSessionStorage){let e;return e=this.sessionStorageAvailable?sessionStorage.getItem(this.rawValueStorageName):this.constructor._readCookie(this.rawValueStorageName),e}return Ho.warning("`_getValueFromPersistentStorage()` is called but `settings.saveValueToSessionStorage` is false. There must be an error that needs fixing.",this.settings.showWarnings),null}_removeValueFromPersistentStorage(){if(this.settings.saveValueToSessionStorage)if(this.sessionStorageAvailable)sessionStorage.removeItem(this.rawValueStorageName);else{const e=new Date;e.setTime(e.getTime()-864e5);const t=`; expires=${e.toUTCString()}`;document.cookie=`${this.rawValueStorageName}='' ;${t}; path=/`}}_getDefaultValue(e){const t=e.getAttribute("value");return Ho.isNull(t)?"":t}_onFocusInAndMouseEnter(e){if(this.isEditing=!1,!this.formulaMode&&this.settings.unformatOnHover&&"mouseenter"===e.type&&e.altKey)this.constructor._unformatAltHovered(this);else if("focus"===e.type&&(this.isFocused=!0,this.rawValueOnFocus=this.rawValue),"focus"===e.type&&this.settings.unformatOnHover&&this.hoveredWithAlt&&this.constructor._reformatAltHovered(this),"focus"===e.type||"mouseenter"===e.type&&!this.isFocused){let t=null;this.settings.emptyInputBehavior===Yo.options.emptyInputBehavior.focus&&this.rawValue<0&&null!==this.settings.negativeBracketsTypeOnBlur&&this.settings.isNegativeSignAllowed&&(t=this.constructor._removeBrackets(Ho.getElementValue(this.domElement),this.settings));const n=this._getRawValueToFormat(this.rawValue);if(""!==n){const e=this.constructor._roundFormattedValueShownOnFocusOrBlur(n,this.settings,this.isFocused);if(this.settings.showOnlyNumbersOnFocus===Yo.options.showOnlyNumbersOnFocus.onlyNumbers)this.settings.digitGroupSeparator="",this.settings.currencySymbol="",this.settings.suffixText="",t=e.replace(".",this.settings.decimalCharacter);else{let i;i=Ho.isNull(e)?"":this.constructor._addGroupSeparators(e.replace(".",this.settings.decimalCharacter),this.settings,this.isFocused,n),t=i}}Ho.isNull(t)?this.valueOnFocus="":this.valueOnFocus=t,this.lastVal=this.valueOnFocus;const i=this.constructor._isElementValueEmptyOrOnlyTheNegativeSign(this.valueOnFocus,this.settings),r=this.constructor._orderValueCurrencySymbolAndSuffixText(this.valueOnFocus,this.settings,!0),s=i&&""!==r&&this.settings.emptyInputBehavior===Yo.options.emptyInputBehavior.focus;s&&(t=r),Ho.isNull(t)||this._setElementValue(t),s&&r===this.settings.currencySymbol&&this.settings.currencySymbolPlacement===Yo.options.currencySymbolPlacement.suffix&&Ho.setElementSelection(e.target,0)}}_onFocus(){this.settings.isCancellable&&this._saveCancellableValue()}_onFocusIn(e){this.settings.selectOnFocus?this.select():Ho.isNull(this.settings.caretPositionOnFocus)||Ho.setElementSelection(e.target,this._initialCaretPosition(Ho.getElementValue(this.domElement)))}_enterFormulaMode(){this.settings.formulaMode&&(this.formulaMode=!0,Ho.setElementValue(this.domElement,"="),Ho.setElementSelection(this.domElement,1))}_exitFormulaMode(){let e,t=Ho.getElementValue(this.domElement);t=t.replace(/^\s*=/,"");try{const n=new Qo(t,this.settings.decimalCharacter);e=(new Go).evaluate(n)}catch(e){return this._triggerEvent(Yo.events.invalidFormula,this.domElement,{formula:t,aNElement:this}),this.reformat(),void(this.formulaMode=!1)}this._triggerEvent(Yo.events.validFormula,this.domElement,{formula:t,result:e,aNElement:this}),this.set(e),this.formulaMode=!1}_acceptNonPrintableKeysInFormulaMode(){return this.eventKey===Wo.keyName.Backspace||this.eventKey===Wo.keyName.Delete||this.eventKey===Wo.keyName.LeftArrow||this.eventKey===Wo.keyName.RightArrow||this.eventKey===Wo.keyName.Home||this.eventKey===Wo.keyName.End}_onKeydown(e){if(this.formatted=!1,this.isEditing=!0,!this.formulaMode&&!this.isFocused&&this.settings.unformatOnHover&&e.altKey&&this.domElement===Ho.getHoveredElement())return void this.constructor._unformatAltHovered(this);if(this._updateEventKeyInfo(e),this.keydownEventCounter+=1,1===this.keydownEventCounter&&(this.initialValueOnFirstKeydown=Ho.getElementValue(e.target),this.initialRawValueOnFirstKeydown=this.rawValue),this.formulaMode){if(this.eventKey===Wo.keyName.Esc)return this.formulaMode=!1,void this.reformat();if(this.eventKey===Wo.keyName.Enter)return void this._exitFormulaMode();if(this._acceptNonPrintableKeysInFormulaMode())return}else if(this.eventKey===Wo.keyName.Equal)return void this._enterFormulaMode();if(this.domElement.readOnly||this.settings.readOnly||this.domElement.disabled)return void(this.processed=!0);this.eventKey===Wo.keyName.Esc&&(e.preventDefault(),this.settings.isCancellable&&this.rawValue!==this.savedCancellableValue&&(this.set(this.savedCancellableValue),this._triggerEvent(Yo.events.native.input,e.target)),this.select());let t=Ho.getElementValue(e.target);if(this.eventKey===Wo.keyName.Enter&&this.rawValue!==this.rawValueOnFocus&&(this._triggerEvent(Yo.events.native.change,e.target),this.valueOnFocus=t,this.rawValueOnFocus=this.rawValue,this.settings.isCancellable&&this._saveCancellableValue()),this._updateInternalProperties(e),this._processNonPrintableKeysAndShortcuts(e))this.processed=!0;else if(this.eventKey===Wo.keyName.Backspace||this.eventKey===Wo.keyName.Delete){const n=this._processCharacterDeletion();if(this.processed=!0,!n)return void e.preventDefault();this._formatValue(e),t=Ho.getElementValue(e.target),t!==this.lastVal&&this.throwInput&&(this._triggerEvent(Yo.events.native.input,e.target),e.preventDefault()),this.lastVal=t,this.throwInput=!0}}_onKeypress(e){if(this.formulaMode){if(this._acceptNonPrintableKeysInFormulaMode())return;if(this.settings.formulaChars.test(this.eventKey))return;return void e.preventDefault()}if(this.eventKey===Wo.keyName.Insert)return;const t=this.processed;if(this._updateInternalProperties(e),this._processNonPrintableKeysAndShortcuts(e))return;if(t)return void e.preventDefault();if(this._processCharacterInsertion()){this._formatValue(e);const t=Ho.getElementValue(e.target);if(t!==this.lastVal&&this.throwInput)this._triggerEvent(Yo.events.native.input,e.target),e.preventDefault();else{if((this.eventKey===this.settings.decimalCharacter||this.eventKey===this.settings.decimalCharacterAlternative)&&Ho.getElementSelection(e.target).start===Ho.getElementSelection(e.target).end&&Ho.getElementSelection(e.target).start===t.indexOf(this.settings.decimalCharacter)){const t=Ho.getElementSelection(e.target).start+1;Ho.setElementSelection(e.target,t)}e.preventDefault()}return this.lastVal=Ho.getElementValue(e.target),this.throwInput=!0,void this._setValidOrInvalidState(this.rawValue)}e.preventDefault()}_onKeyup(e){if(this.isEditing=!1,this.keydownEventCounter=0,this.formulaMode)return;if(this.settings.isCancellable&&this.eventKey===Wo.keyName.Esc)return void e.preventDefault();if(this.eventKey===Wo.keyName.Z||this.eventKey===Wo.keyName.z){if(e.ctrlKey&&e.shiftKey)return e.preventDefault(),this._historyTableRedo(),void(this.onGoingRedo=!0);if(e.ctrlKey&&!e.shiftKey){if(!this.onGoingRedo)return e.preventDefault(),void this._historyTableUndo();this.onGoingRedo=!1}}if(this.onGoingRedo&&(e.ctrlKey||e.shiftKey)&&(this.onGoingRedo=!1),(e.ctrlKey||e.metaKey)&&this.eventKey===Wo.keyName.x){const t=Ho.getElementSelection(this.domElement).start,n=this.constructor._toNumericValue(Ho.getElementValue(e.target),this.settings);this.set(n),this._setCaretPosition(t)}if(this.eventKey===Wo.keyName.Alt&&this.settings.unformatOnHover&&this.hoveredWithAlt)return void this.constructor._reformatAltHovered(this);if((e.ctrlKey||e.metaKey)&&(this.eventKey===Wo.keyName.Backspace||this.eventKey===Wo.keyName.Delete)){const t=Ho.getElementValue(e.target);return void this._setRawValue(this._formatOrUnformatOther(!1,t))}this._updateInternalProperties(e);const t=this._processNonPrintableKeysAndShortcuts(e);delete this.valuePartsBeforePaste;const n=Ho.getElementValue(e.target);if(!(t||""===n&&""===this.initialValueOnFirstKeydown)&&(n===this.settings.currencySymbol?this.settings.currencySymbolPlacement===Yo.options.currencySymbolPlacement.suffix?Ho.setElementSelection(e.target,0):Ho.setElementSelection(e.target,this.settings.currencySymbol.length):this.eventKey===Wo.keyName.Tab&&Ho.setElementSelection(e.target,0,n.length),(n===this.settings.suffixText||""===this.rawValue&&""!==this.settings.currencySymbol&&""!==this.settings.suffixText)&&Ho.setElementSelection(e.target,0),null!==this.settings.decimalPlacesShownOnFocus&&this._saveValueToPersistentStorage(),this.formatted||this._formatValue(e),this._setValidOrInvalidState(this.rawValue),this._saveRawValueForAndroid(),n!==this.initialValueOnFirstKeydown&&this._triggerEvent(Yo.events.formatted,e.target,{oldValue:this.initialValueOnFirstKeydown,newValue:n,oldRawValue:this.initialRawValueOnFirstKeydown,newRawValue:this.rawValue,isPristine:this.isPristine(!1),error:null,aNElement:this}),this.historyTable.length>1)){const e=Ho.getElementSelection(this.domElement);this.selectionStart=e.start,this.selectionEnd=e.end,this.historyTable[this.historyTableIndex].start=this.selectionStart,this.historyTable[this.historyTableIndex].end=this.selectionEnd}}_saveRawValueForAndroid(){if(this.eventKey===Wo.keyName.AndroidDefault){let e=this.constructor._stripAllNonNumberCharactersExceptCustomDecimalChar(this.getFormatted(),this.settings,!0,this.isFocused);e=this.constructor._convertToNumericString(e,this.settings),this._setRawValue(e)}}_onFocusOutAndMouseLeave(e){if(this.isEditing=!1,"mouseleave"!==e.type||!this.formulaMode)if(this.settings.unformatOnHover&&"mouseleave"===e.type&&this.hoveredWithAlt)this.constructor._reformatAltHovered(this);else if("mouseleave"===e.type&&!this.isFocused||"blur"===e.type){"blur"===e.type&&this.formulaMode&&this._exitFormulaMode(),this._saveValueToPersistentStorage(),this.settings.showOnlyNumbersOnFocus===Yo.options.showOnlyNumbersOnFocus.onlyNumbers&&(this.settings.digitGroupSeparator=this.originalDigitGroupSeparator,this.settings.currencySymbol=this.originalCurrencySymbol,this.settings.suffixText=this.originalSuffixText);const t=this._getRawValueToFormat(this.rawValue),n=Ho.isNull(t),[i,r]=this.constructor._checkIfInRangeWithOverrideOption(t,this.settings);let s=!1;if(""===t||n||(this._triggerRangeEvents(i,r),this.settings.valuesToStrings&&this._checkValuesToStrings(t)&&(this._setElementValue(this.settings.valuesToStrings[t]),s=!0)),!s){let e;if(e=n||""===t?t:String(t),""===t||n){if(""===t)switch(this.settings.emptyInputBehavior){case Yo.options.emptyInputBehavior.zero:this._setRawValue("0"),e=this.constructor._roundValue("0",this.settings,0);break;case Yo.options.emptyInputBehavior.min:this._setRawValue(this.settings.minimumValue),e=this.constructor._roundFormattedValueShownOnFocusOrBlur(this.settings.minimumValue,this.settings,this.isFocused);break;case Yo.options.emptyInputBehavior.max:this._setRawValue(this.settings.maximumValue),e=this.constructor._roundFormattedValueShownOnFocusOrBlur(this.settings.maximumValue,this.settings,this.isFocused);break;default:Ho.isNumber(this.settings.emptyInputBehavior)&&(this._setRawValue(this.settings.emptyInputBehavior),e=this.constructor._roundFormattedValueShownOnFocusOrBlur(this.settings.emptyInputBehavior,this.settings,this.isFocused))}}else i&&r&&!this.constructor._isElementValueEmptyOrOnlyTheNegativeSign(t,this.settings)?(e=this._modifyNegativeSignAndDecimalCharacterForRawValue(e),this.settings.divisorWhenUnfocused&&!Ho.isNull(e)&&(e/=this.settings.divisorWhenUnfocused,e=e.toString()),e=this.constructor._roundFormattedValueShownOnBlur(e,this.settings),e=this.constructor._modifyNegativeSignAndDecimalCharacterForFormattedValue(e,this.settings)):this._triggerRangeEvents(i,r);let s=this.constructor._orderValueCurrencySymbolAndSuffixText(e,this.settings,!1);this.constructor._isElementValueEmptyOrOnlyTheNegativeSign(e,this.settings)||n&&this.settings.emptyInputBehavior===Yo.options.emptyInputBehavior.null||(s=this.constructor._addGroupSeparators(e,this.settings,!1,t)),s===t&&""!==t&&this.settings.allowDecimalPadding!==Yo.options.allowDecimalPadding.never&&this.settings.allowDecimalPadding!==Yo.options.allowDecimalPadding.floats||(this.settings.symbolWhenUnfocused&&""!==t&&null!==t&&(s=`${s}${this.settings.symbolWhenUnfocused}`),this._setElementValue(s))}this._setValidOrInvalidState(this.rawValue),"blur"===e.type&&this._onBlur(e)}}_onPaste(e){if(e.preventDefault(),this.settings.readOnly||this.domElement.readOnly||this.domElement.disabled)return;let t,n;window.clipboardData&&window.clipboardData.getData?t=window.clipboardData.getData("Text"):e.clipboardData&&e.clipboardData.getData?t=e.clipboardData.getData("text/plain"):Ho.throwError("Unable to retrieve the pasted value. Please use a modern browser (ie. Firefox or Chromium)."),n=e.target.tagName?e.target:e.explicitOriginalTarget;const i=Ho.getElementValue(n),r=n.selectionStart||0,s=n.selectionEnd||0,o=s-r;if(o===i.length){const e=this._preparePastedText(t),i=Ho.arabicToLatinNumbers(e,!1,!1,!1);return"."===i||""===i||"."!==i&&!Ho.isNumber(i)?(this.formatted=!0,void(this.settings.onInvalidPaste===Yo.options.onInvalidPaste.error&&Ho.throwError(`The pasted value '${t}' is not a valid paste content.`))):(this.set(i),this.formatted=!0,void this._triggerEvent(Yo.events.native.input,n))}const a=Ho.isNegativeStrict(t,this.settings.negativeSignCharacter);a&&(t=t.slice(1,t.length));const l=this._preparePastedText(t);let c,u;if(c="."===l?".":Ho.arabicToLatinNumbers(l,!1,!1,!1),"."!==c&&(!Ho.isNumber(c)||""===c))return this.formatted=!0,void(this.settings.onInvalidPaste===Yo.options.onInvalidPaste.error&&Ho.throwError(`The pasted value '${t}' is not a valid paste content.`));let h,d,m=Ho.isNegativeStrict(this.getNumericString(),this.settings.negativeSignCharacter);a&&!m?(m=!0,h=!0):h=!1;const p=i.slice(0,r),g=i.slice(s,i.length);d=r!==s?this._preparePastedText(p+g):this._preparePastedText(i),m&&(d=Ho.setRawNegativeSign(d)),u=Ho.convertCharacterCountToIndexPosition(Ho.countNumberCharactersOnTheCaretLeftSide(i,r,this.settings.decimalCharacter)),h&&u++;let f=d.slice(0,u),v=d.slice(u,d.length),b=!1;"."===c&&(Ho.contains(f,".")&&(b=!0,f=f.replace(".","")),v=v.replace(".",""));let y=!1;switch(""===f&&"-"===v&&(f="-",v="",y=!0),this.settings.onInvalidPaste){case Yo.options.onInvalidPaste.truncate:case Yo.options.onInvalidPaste.replace:const e=Ho.parseStr(this.settings.minimumValue),t=Ho.parseStr(this.settings.maximumValue);let a=d,l=0,m=f;for(;l<c.length&&(m+=c[l],d=m+v,this.constructor._checkIfInRange(d,e,t));)a=d,l++;if(u+=l,y&&u++,this.settings.onInvalidPaste===Yo.options.onInvalidPaste.truncate){d=a,b&&u--;break}let p=u;const g=a.length;for(;l<c.length&&p<g;)if("."!==a[p]){if(d=Ho.replaceCharAt(a,p,c[l]),!this.constructor._checkIfInRange(d,e,t))break;a=d,l++,p++}else p++;u=p,b&&u--,d=a;break;case Yo.options.onInvalidPaste.error:case Yo.options.onInvalidPaste.ignore:case Yo.options.onInvalidPaste.clamp:default:if(d=`${f}${c}${v}`,r===s){u=Ho.convertCharacterCountToIndexPosition(Ho.countNumberCharactersOnTheCaretLeftSide(i,r,this.settings.decimalCharacter))+c.length}else if(""===v)u=Ho.convertCharacterCountToIndexPosition(Ho.countNumberCharactersOnTheCaretLeftSide(i,r,this.settings.decimalCharacter))+c.length,y&&u++;else{const e=Ho.convertCharacterCountToIndexPosition(Ho.countNumberCharactersOnTheCaretLeftSide(i,s,this.settings.decimalCharacter)),t=Ho.getElementValue(n).slice(r,s);u=e-o+Ho.countCharInText(this.settings.digitGroupSeparator,t)+c.length}h&&u++,b&&u--}if(!Ho.isNumber(d)||""===d)return void(this.settings.onInvalidPaste===Yo.options.onInvalidPaste.error&&Ho.throwError(`The pasted value '${t}' would result into an invalid content '${d}'.`));let _=!1,w=!1;try{this.set(d),_=!0}catch(e){let n;switch(this.settings.onInvalidPaste){case Yo.options.onInvalidPaste.clamp:n=Ho.clampToRangeLimits(d,this.settings);try{this.set(n)}catch(e){Ho.throwError(`Fatal error: Unable to set the clamped value '${n}'.`)}w=!0,_=!0,d=n;break;case Yo.options.onInvalidPaste.error:case Yo.options.onInvalidPaste.truncate:case Yo.options.onInvalidPaste.replace:Ho.throwError(`The pasted value '${t}' results in a value '${d}' that is outside of the minimum [${this.settings.minimumValue}] and maximum [${this.settings.maximumValue}] value range.`);case Yo.options.onInvalidPaste.ignore:default:return}}const S=Ho.getElementValue(n);let E;if(_)switch(this.settings.onInvalidPaste){case Yo.options.onInvalidPaste.clamp:if(w){this.settings.currencySymbolPlacement===Yo.options.currencySymbolPlacement.suffix?Ho.setElementSelection(n,S.length-this.settings.currencySymbol.length):Ho.setElementSelection(n,S.length);break}case Yo.options.onInvalidPaste.error:case Yo.options.onInvalidPaste.ignore:case Yo.options.onInvalidPaste.truncate:case Yo.options.onInvalidPaste.replace:default:E=Ho.findCaretPositionInFormattedNumber(d,u,S,this.settings.decimalCharacter),Ho.setElementSelection(n,E)}_&&i!==S&&this._triggerEvent(Yo.events.native.input,n)}_onBlur(e){this.isFocused=!1,this.isEditing=!1,this.rawValue!==this.rawValueOnFocus&&this._triggerEvent(Yo.events.native.change,e.target),this.rawValueOnFocus=void 0}_onWheel(e){this.formulaMode||this.settings.readOnly||this.domElement.readOnly||this.domElement.disabled||this.settings.modifyValueOnWheel&&(this.settings.wheelOn===Yo.options.wheelOn.focus?this.isFocused?e.shiftKey||this.wheelAction(e):e.shiftKey&&this.wheelAction(e):this.settings.wheelOn===Yo.options.wheelOn.hover?e.shiftKey?(e.preventDefault(),window.scrollBy(0,Ho.isNegativeStrict(String(e.deltaY))?-50:50)):this.wheelAction(e):Ho.throwError("Unknown `wheelOn` option."))}wheelAction(e){this.isWheelEvent=!0;const t=e.target.selectionStart||0,n=e.target.selectionEnd||0,i=this.rawValue;let r;if(Ho.isUndefinedOrNullOrEmpty(i)?this.settings.minimumValue>0||this.settings.maximumValue<0?Ho.isWheelUpEvent(e)?r=this.settings.minimumValue:Ho.isWheelDownEvent(e)?r=this.settings.maximumValue:Ho.throwError("The event is not a 'wheel' event."):r=0:r=i,r=+r,Ho.isNumber(this.settings.wheelStep)){const t=+this.settings.wheelStep;Ho.isWheelUpEvent(e)?r+=t:Ho.isWheelDownEvent(e)&&(r-=t)}else Ho.isWheelUpEvent(e)?r=Ho.addAndRoundToNearestAuto(r,this.settings.decimalPlacesRawValue):Ho.isWheelDownEvent(e)&&(r=Ho.subtractAndRoundToNearestAuto(r,this.settings.decimalPlacesRawValue));r=Ho.clampToRangeLimits(r,this.settings),r!==+i&&(this.set(r),this._triggerEvent(Yo.events.native.input,e.target)),e.preventDefault(),this._setSelection(t,n),this.isWheelEvent=!1}_onDrop(e){if(this.formulaMode)return;let t;this.isDropEvent=!0,e.preventDefault(),t=Ho.isIE11()?"text":"text/plain";const n=e.dataTransfer.getData(t),i=this.unformatOther(n);this.set(i),this.isDropEvent=!1}_onFormSubmit(){return this._getFormAutoNumericChildren(this.parentForm).map((e=>this.constructor.getAutoNumericElement(e))).forEach((e=>e._unformatOnSubmit())),!0}_onFormReset(){this._getFormAutoNumericChildren(this.parentForm).map((e=>this.constructor.getAutoNumericElement(e))).forEach((e=>{const t=this._getDefaultValue(e.node());setTimeout((()=>e.set(t)),0)}))}_unformatOnSubmit(){this.settings.unformatOnSubmit&&this._setElementValue(this.rawValue)}_onKeydownGlobal(e){if(Ho.character(e)===Wo.keyName.Alt){const e=Ho.getHoveredElement();if(Yo.isManagedByAutoNumeric(e)){const t=Yo.getAutoNumericElement(e);!t.formulaMode&&t.settings.unformatOnHover&&this.constructor._unformatAltHovered(t)}}}_onKeyupGlobal(e){if(Ho.character(e)===Wo.keyName.Alt){const e=Ho.getHoveredElement();if(Yo.isManagedByAutoNumeric(e)){const t=Yo.getAutoNumericElement(e);if(t.formulaMode||!t.settings.unformatOnHover)return;this.constructor._reformatAltHovered(t)}}}_isElementTagSupported(){return Ho.isElement(this.domElement)||Ho.throwError(`The DOM element is not valid, ${this.domElement} given.`),Ho.isInArray(this.domElement.tagName.toLowerCase(),this.allowedTagList)}_isInputElement(){return"input"===this.domElement.tagName.toLowerCase()}_isInputTypeSupported(){return"text"===this.domElement.type||"hidden"===this.domElement.type||"tel"===this.domElement.type||Ho.isUndefinedOrNullOrEmpty(this.domElement.type)}_checkElement(){const e=this.domElement.tagName.toLowerCase();this._isElementTagSupported()||Ho.throwError(`The <${e}> tag is not supported by autoNumeric`),this._isInputElement()?(this._isInputTypeSupported()||Ho.throwError(`The input type "${this.domElement.type}" is not supported by autoNumeric`),this.isInputElement=!0):(this.isInputElement=!1,this.isContentEditable=this.domElement.hasAttribute("contenteditable")&&"true"===this.domElement.getAttribute("contenteditable"))}_formatDefaultValueOnPageLoad(e=null){let t,n=!0;if(Ho.isNull(e)?(t=Ho.getElementValue(this.domElement).trim(),this.domElement.setAttribute("value",t)):t=e,this.isInputElement||this.isContentEditable){const e=this.constructor._toNumericValue(t,this.settings);if(this.domElement.hasAttribute("value")&&""!==this.domElement.getAttribute("value")){if(null!==this.settings.defaultValueOverride&&this.settings.defaultValueOverride.toString()!==t||null===this.settings.defaultValueOverride&&""!==t&&t!==this.domElement.getAttribute("value")||""!==t&&"hidden"===this.domElement.getAttribute("type")&&!Ho.isNumber(e)){if(this.settings.saveValueToSessionStorage&&(null!==this.settings.decimalPlacesShownOnFocus||this.settings.divisorWhenUnfocused)&&this._setRawValue(this._getValueFromPersistentStorage()),!this.settings.saveValueToSessionStorage){const e=this.constructor._removeBrackets(t,this.settings);(this.settings.negativePositiveSignPlacement===Yo.options.negativePositiveSignPlacement.suffix||this.settings.negativePositiveSignPlacement!==Yo.options.negativePositiveSignPlacement.prefix&&this.settings.currencySymbolPlacement===Yo.options.currencySymbolPlacement.suffix)&&""!==this.settings.negativeSignCharacter&&Ho.isNegative(t,this.settings.negativeSignCharacter)?this._setRawValue(`-${this.constructor._stripAllNonNumberCharacters(e,this.settings,!0,this.isFocused)}`):this._setRawValue(this.constructor._stripAllNonNumberCharacters(e,this.settings,!0,this.isFocused))}n=!1}}else isNaN(Number(e))||1/0===e?Ho.throwError(`The value [${t}] used in the input is not a valid value autoNumeric can work with.`):(this.set(e),n=!1);if(""===t)switch(this.settings.emptyInputBehavior){case Yo.options.emptyInputBehavior.focus:case Yo.options.emptyInputBehavior.null:case Yo.options.emptyInputBehavior.press:break;case Yo.options.emptyInputBehavior.always:this._setElementValue(this.settings.currencySymbol);break;case Yo.options.emptyInputBehavior.min:this.set(this.settings.minimumValue);break;case Yo.options.emptyInputBehavior.max:this.set(this.settings.maximumValue);break;case Yo.options.emptyInputBehavior.zero:this.set("0");break;default:this.set(this.settings.emptyInputBehavior)}else n&&t===this.domElement.getAttribute("value")&&this.set(t)}else null!==this.settings.defaultValueOverride&&this.settings.defaultValueOverride!==t||this.set(t)}static _correctNegativePositiveSignPlacementOption(e){if(Ho.isNull(e.negativePositiveSignPlacement))if(Ho.isUndefined(e)||!Ho.isUndefinedOrNullOrEmpty(e.negativePositiveSignPlacement)||Ho.isUndefinedOrNullOrEmpty(e.currencySymbol))e.negativePositiveSignPlacement=Yo.options.negativePositiveSignPlacement.left;else switch(e.currencySymbolPlacement){case Yo.options.currencySymbolPlacement.suffix:e.negativePositiveSignPlacement=Yo.options.negativePositiveSignPlacement.prefix;break;case Yo.options.currencySymbolPlacement.prefix:e.negativePositiveSignPlacement=Yo.options.negativePositiveSignPlacement.left}}static _correctCaretPositionOnFocusAndSelectOnFocusOptions(e){return Ho.isNull(e)?null:(!Ho.isUndefinedOrNullOrEmpty(e.caretPositionOnFocus)&&Ho.isUndefinedOrNullOrEmpty(e.selectOnFocus)&&(e.selectOnFocus=Yo.options.selectOnFocus.doNotSelect),Ho.isUndefinedOrNullOrEmpty(e.caretPositionOnFocus)&&!Ho.isUndefinedOrNullOrEmpty(e.selectOnFocus)&&e.selectOnFocus===Yo.options.selectOnFocus.select&&(e.caretPositionOnFocus=Yo.options.caretPositionOnFocus.doNoForceCaretPosition),e)}static _calculateDecimalPlacesOnInit(e){this._validateDecimalPlacesRawValue(e),e.decimalPlacesShownOnFocus===Yo.options.decimalPlacesShownOnFocus.useDefault&&(e.decimalPlacesShownOnFocus=e.decimalPlaces),e.decimalPlacesShownOnBlur===Yo.options.decimalPlacesShownOnBlur.useDefault&&(e.decimalPlacesShownOnBlur=e.decimalPlaces),e.decimalPlacesRawValue===Yo.options.decimalPlacesRawValue.useDefault&&(e.decimalPlacesRawValue=e.decimalPlaces);let t=0;e.rawValueDivisor&&e.rawValueDivisor!==Yo.options.rawValueDivisor.none&&(t=String(e.rawValueDivisor).length-1,t<0&&(t=0)),e.decimalPlacesRawValue=Math.max(Math.max(e.decimalPlacesShownOnBlur,e.decimalPlacesShownOnFocus)+t,Number(e.originalDecimalPlacesRawValue)+t)}static _calculateDecimalPlacesOnUpdate(e,t=null){this._validateDecimalPlacesRawValue(e),Ho.isNull(t)&&Ho.throwError("When updating the settings, the previous ones should be passed as an argument.");const n="decimalPlaces"in e;if(!(n||"decimalPlacesRawValue"in e||"decimalPlacesShownOnFocus"in e||"decimalPlacesShownOnBlur"in e||"rawValueDivisor"in e))return;n?("decimalPlacesShownOnFocus"in e&&e.decimalPlacesShownOnFocus!==Yo.options.decimalPlacesShownOnFocus.useDefault||(e.decimalPlacesShownOnFocus=e.decimalPlaces),"decimalPlacesShownOnBlur"in e&&e.decimalPlacesShownOnBlur!==Yo.options.decimalPlacesShownOnBlur.useDefault||(e.decimalPlacesShownOnBlur=e.decimalPlaces),"decimalPlacesRawValue"in e&&e.decimalPlacesRawValue!==Yo.options.decimalPlacesRawValue.useDefault||(e.decimalPlacesRawValue=e.decimalPlaces)):(Ho.isUndefined(e.decimalPlacesShownOnFocus)&&(e.decimalPlacesShownOnFocus=t.decimalPlacesShownOnFocus),Ho.isUndefined(e.decimalPlacesShownOnBlur)&&(e.decimalPlacesShownOnBlur=t.decimalPlacesShownOnBlur));let i=0;e.rawValueDivisor&&e.rawValueDivisor!==Yo.options.rawValueDivisor.none&&(i=String(e.rawValueDivisor).length-1,i<0&&(i=0)),e.decimalPlaces||e.decimalPlacesRawValue?e.decimalPlacesRawValue=Math.max(Math.max(e.decimalPlacesShownOnBlur,e.decimalPlacesShownOnFocus)+i,Number(e.decimalPlacesRawValue)+i):e.decimalPlacesRawValue=Math.max(Math.max(e.decimalPlacesShownOnBlur,e.decimalPlacesShownOnFocus)+i,Number(t.originalDecimalPlacesRawValue)+i)}_calculateVMinAndVMaxIntegerSizes(){let[e]=this.settings.maximumValue.toString().split("."),[t]=this.settings.minimumValue||0===this.settings.minimumValue?this.settings.minimumValue.toString().split("."):[];e=e.replace(this.settings.negativeSignCharacter,""),t=t.replace(this.settings.negativeSignCharacter,""),this.settings.mIntPos=Math.max(e.length,1),this.settings.mIntNeg=Math.max(t.length,1)}_calculateValuesToStringsKeys(){this.settings.valuesToStrings?this.valuesToStringsKeys=Object.keys(this.settings.valuesToStrings):this.valuesToStringsKeys=[]}static _cachesUsualRegularExpressions(e,t){let n;n=e.negativeSignCharacter!==Yo.options.negativeSignCharacter.hyphen?`([-\\${e.negativeSignCharacter}]?)`:"(-?)",t.aNegRegAutoStrip=n,e.allowedAutoStrip=new RegExp(`[^-0123456789\\${e.decimalCharacter}]`,"g"),e.numRegAutoStrip=new RegExp(`${n}(?:\\${e.decimalCharacter}?([0-9]+\\${e.decimalCharacter}[0-9]+)|([0-9]*(?:\\${e.decimalCharacter}[0-9]*)?))`),e.stripReg=new RegExp(`^${t.aNegRegAutoStrip}0*([0-9])`),e.formulaChars=new RegExp(`[0-9${e.decimalCharacter}+\\-*/() ]`)}_transformOptionsValuesToDefaultTypes(){for(const e in this.settings)if(Object.prototype.hasOwnProperty.call(this.settings,e)){const t=this.settings[e];"true"!==t&&"false"!==t||(this.settings[e]="true"===t),"number"==typeof t&&(this.settings[e]=t.toString())}}static _convertOldOptionsToNewOnes(e){const t={aSep:"digitGroupSeparator",nSep:"showOnlyNumbersOnFocus",dGroup:"digitalGroupSpacing",aDec:"decimalCharacter",altDec:"decimalCharacterAlternative",aSign:"currencySymbol",pSign:"currencySymbolPlacement",pNeg:"negativePositiveSignPlacement",aSuffix:"suffixText",oLimits:"overrideMinMaxLimits",vMax:"maximumValue",vMin:"minimumValue",mDec:"decimalPlacesOverride",eDec:"decimalPlacesShownOnFocus",scaleDecimal:"decimalPlacesShownOnBlur",aStor:"saveValueToSessionStorage",mRound:"roundingMethod",aPad:"allowDecimalPadding",nBracket:"negativeBracketsTypeOnBlur",wEmpty:"emptyInputBehavior",lZero:"leadingZero",aForm:"formatOnPageLoad",sNumber:"selectNumberOnly",anDefault:"defaultValueOverride",unSetOnSubmit:"unformatOnSubmit",outputType:"outputFormat",debug:"showWarnings",allowDecimalPadding:!0,alwaysAllowDecimalCharacter:!0,caretPositionOnFocus:!0,createLocalList:!0,currencySymbol:!0,currencySymbolPlacement:!0,decimalCharacter:!0,decimalCharacterAlternative:!0,decimalPlaces:!0,decimalPlacesRawValue:!0,decimalPlacesShownOnBlur:!0,decimalPlacesShownOnFocus:!0,defaultValueOverride:!0,digitalGroupSpacing:!0,digitGroupSeparator:!0,divisorWhenUnfocused:!0,emptyInputBehavior:!0,eventBubbles:!0,eventIsCancelable:!0,failOnUnknownOption:!0,formatOnPageLoad:!0,formulaMode:!0,historySize:!0,isCancellable:!0,leadingZero:!0,maximumValue:!0,minimumValue:!0,modifyValueOnWheel:!0,negativeBracketsTypeOnBlur:!0,negativePositiveSignPlacement:!0,negativeSignCharacter:!0,noEventListeners:!0,onInvalidPaste:!0,outputFormat:!0,overrideMinMaxLimits:!0,positiveSignCharacter:!0,rawValueDivisor:!0,readOnly:!0,roundingMethod:!0,saveValueToSessionStorage:!0,selectNumberOnly:!0,selectOnFocus:!0,serializeSpaces:!0,showOnlyNumbersOnFocus:!0,showPositiveSign:!0,showWarnings:!0,styleRules:!0,suffixText:!0,symbolWhenUnfocused:!0,unformatOnHover:!0,unformatOnSubmit:!0,valuesToStrings:!0,watchExternalChanges:!0,wheelOn:!0,wheelStep:!0,allowedAutoStrip:!0,formulaChars:!0,isNegativeSignAllowed:!0,isPositiveSignAllowed:!0,mIntNeg:!0,mIntPos:!0,numRegAutoStrip:!0,originalDecimalPlaces:!0,originalDecimalPlacesRawValue:!0,stripReg:!0};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(!0===t[n])continue;Object.prototype.hasOwnProperty.call(t,n)?(Ho.warning(`You are using the deprecated option name '${n}'. Please use '${t[n]}' instead from now on. The old option name will be dropped very soon™.`,!0),e[t[n]]=e[n],delete e[n]):e.failOnUnknownOption&&Ho.throwError(`Option name '${n}' is unknown. Please fix the options passed to autoNumeric`)}"mDec"in e&&Ho.warning("The old `mDec` option has been deprecated in favor of more accurate options ; `decimalPlaces`, `decimalPlacesRawValue`, `decimalPlacesShownOnFocus` and `decimalPlacesShownOnBlur`.",!0)}_setSettings(e,t=!1){if(!t&&Ho.isNull(e)||this.constructor._convertOldOptionsToNewOnes(e),t){"decimalPlacesRawValue"in e&&(this.settings.originalDecimalPlacesRawValue=e.decimalPlacesRawValue);"decimalPlaces"in e&&(this.settings.originalDecimalPlaces=e.decimalPlaces),this.constructor._calculateDecimalPlacesOnUpdate(e,this.settings),this._mergeSettings(e)}else this.settings={},this._mergeSettings(this.constructor.getDefaultConfig(),this.domElement.dataset,e,{rawValue:this.defaultRawValue}),this.caretFix=!1,this.throwInput=!0,this.allowedTagList=Wo.allowedTagList,this.runOnce=!1,this.hoveredWithAlt=!1;this._transformOptionsValuesToDefaultTypes(),this._runCallbacksFoundInTheSettingsObject(),this.constructor._correctNegativePositiveSignPlacementOption(this.settings),this.constructor._correctCaretPositionOnFocusAndSelectOnFocusOptions(this.settings),this.constructor._setNegativePositiveSignPermissions(this.settings),t||(Ho.isNull(e)||!e.decimalPlaces?this.settings.originalDecimalPlaces=null:this.settings.originalDecimalPlaces=e.decimalPlaces,this.settings.originalDecimalPlacesRawValue=this.settings.decimalPlacesRawValue,this.constructor._calculateDecimalPlacesOnInit(this.settings)),this._calculateVMinAndVMaxIntegerSizes(),this._setTrailingNegativeSignInfo(),this.regex={},this.constructor._cachesUsualRegularExpressions(this.settings,this.regex),this.constructor._setBrackets(this.settings),this._calculateValuesToStringsKeys(),Ho.isEmptyObj(this.settings)&&Ho.throwError("Unable to set the settings, those are invalid ; an empty object was given."),this.constructor.validate(this.settings,!1,e),this._keepAnOriginalSettingsCopy()}static _setNegativePositiveSignPermissions(e){e.isNegativeSignAllowed=e.minimumValue<0,e.isPositiveSignAllowed=e.maximumValue>=0}static _toNumericValue(e,t){let n;return Ho.isNumber(Number(e))?n=Ho.scientificToDecimal(e):(n=this._convertToNumericString(e.toString(),t),Ho.isNumber(Number(n))||(Ho.warning(`The given value "${e}" cannot be converted to a numeric one and therefore cannot be used appropriately.`,t.showWarnings),n=NaN)),n}_preparePastedText(e){return this.constructor._stripAllNonNumberCharacters(e,this.settings,!0,this.isFocused)}static _checkIfInRange(e,t,n){const i=Ho.parseStr(e);return Ho.testMinMax(t,i)>-1&&Ho.testMinMax(n,i)<1}_updateInternalProperties(){this.selection=Ho.getElementSelection(this.domElement),this.processed=!1}_updateEventKeyInfo(e){this.eventKey=Ho.character(e)}_saveCancellableValue(){this.savedCancellableValue=this.rawValue}_setSelection(e,t){e=Math.max(e,0),t=Math.min(t,Ho.getElementValue(this.domElement).length),this.selection={start:e,end:t,length:t-e},Ho.setElementSelection(this.domElement,e,t)}_setCaretPosition(e){this._setSelection(e,e)}_getLeftAndRightPartAroundTheSelection(){const e=Ho.getElementValue(this.domElement);return[e.substring(0,this.selection.start),e.substring(this.selection.end,e.length)]}_getUnformattedLeftAndRightPartAroundTheSelection(){let[e,t]=this._getLeftAndRightPartAroundTheSelection();if(""===e&&""===t)return["",""];let n=!0;return this.eventKey!==Wo.keyName.Hyphen&&this.eventKey!==Wo.keyName.Minus||0!==Number(e)||(n=!1),this.isTrailingNegative&&(Ho.isNegative(t,this.settings.negativeSignCharacter)&&!Ho.isNegative(e,this.settings.negativeSignCharacter)||""===t&&Ho.isNegative(e,this.settings.negativeSignCharacter,!0))&&(e=e.replace(this.settings.negativeSignCharacter,""),t=t.replace(this.settings.negativeSignCharacter,""),e=e.replace("-",""),t=t.replace("-",""),e=`-${e}`),e=Yo._stripAllNonNumberCharactersExceptCustomDecimalChar(e,this.settings,n,this.isFocused),t=Yo._stripAllNonNumberCharactersExceptCustomDecimalChar(t,this.settings,!1,this.isFocused),[e,t]}_normalizeParts(e,t){let n=!0;this.eventKey!==Wo.keyName.Hyphen&&this.eventKey!==Wo.keyName.Minus||0!==Number(e)||(n=!1),this.isTrailingNegative&&Ho.isNegative(t,this.settings.negativeSignCharacter)&&!Ho.isNegative(e,this.settings.negativeSignCharacter)&&(e=`-${e}`,t=t.replace(this.settings.negativeSignCharacter,"")),e=Yo._stripAllNonNumberCharactersExceptCustomDecimalChar(e,this.settings,n,this.isFocused),t=Yo._stripAllNonNumberCharactersExceptCustomDecimalChar(t,this.settings,!1,this.isFocused),this.settings.leadingZero!==Yo.options.leadingZero.deny||this.eventKey!==Wo.keyName.num0&&this.eventKey!==Wo.keyName.numpad0||0!==Number(e)||Ho.contains(e,this.settings.decimalCharacter)||""===t||(e=e.substring(0,e.length-1));let i=e+t;if(this.settings.decimalCharacter){const n=i.match(new RegExp(`^${this.regex.aNegRegAutoStrip}\\${this.settings.decimalCharacter}`));n&&(i=(e=e.replace(n[1],n[1]+"0"))+t)}return[e,t,i]}_setValueParts(e,t,n=!1){const[i,r,s]=this._normalizeParts(e,t),[o,a]=Yo._checkIfInRangeWithOverrideOption(s,this.settings);if(o&&a){const e=Yo._truncateDecimalPlaces(s,this.settings,n,this.settings.decimalPlacesRawValue).replace(this.settings.decimalCharacter,".");if(""===e||e===this.settings.negativeSignCharacter){let e;switch(this.settings.emptyInputBehavior){case Yo.options.emptyInputBehavior.focus:case Yo.options.emptyInputBehavior.press:case Yo.options.emptyInputBehavior.always:e="";break;case Yo.options.emptyInputBehavior.min:e=this.settings.minimumValue;break;case Yo.options.emptyInputBehavior.max:e=this.settings.maximumValue;break;case Yo.options.emptyInputBehavior.zero:e="0";break;case Yo.options.emptyInputBehavior.null:e=null;break;default:e=this.settings.emptyInputBehavior}this._setRawValue(e)}else this._setRawValue(this._trimLeadingAndTrailingZeros(e));const t=Yo._truncateDecimalPlaces(s,this.settings,n,this.settings.decimalPlacesShownOnFocus);let o=i.length;return o>t.length&&(o=t.length),1===o&&"0"===i&&this.settings.leadingZero===Yo.options.leadingZero.deny&&(o=""===r||"0"===i&&""!==r?1:0),this._setElementValue(t,!1),this._setCaretPosition(o),!0}return this._triggerRangeEvents(o,a),!1}_getSignPosition(){let e;if(this.settings.currencySymbol){const t=this.settings.currencySymbol.length,n=Ho.getElementValue(this.domElement);if(this.settings.currencySymbolPlacement===Yo.options.currencySymbolPlacement.prefix){e=this.settings.negativeSignCharacter&&n&&n.charAt(0)===this.settings.negativeSignCharacter?[1,t+1]:[0,t]}else{const i=n.length;e=[i-t,i]}}else e=[1e3,-1];return e}_expandSelectionOnSign(){const[e,t]=this._getSignPosition(),n=this.selection;n.start<t&&n.end>e&&((n.start<e||n.end>t)&&Ho.getElementValue(this.domElement).substring(Math.max(n.start,e),Math.min(n.end,t)).match(/^\s*$/)?n.start<e?this._setSelection(n.start,e):this._setSelection(t,n.end):this._setSelection(Math.min(n.start,e),Math.max(n.end,t)))}_checkPaste(){if(!this.formatted&&!Ho.isUndefined(this.valuePartsBeforePaste)){const e=this.valuePartsBeforePaste,[t,n]=this._getLeftAndRightPartAroundTheSelection();delete this.valuePartsBeforePaste;const i=t.substr(0,e[0].length)+Yo._stripAllNonNumberCharactersExceptCustomDecimalChar(t.substr(e[0].length),this.settings,!0,this.isFocused);this._setValueParts(i,n,!0)||(this._setElementValue(e.join(""),!1),this._setCaretPosition(e[0].length))}}static _shouldSkipEventKey(e){const t=Ho.isInArray(e,Wo.keyName._allFnKeys),n=e===Wo.keyName.OSLeft||e===Wo.keyName.OSRight,i=e===Wo.keyName.ContextMenu,r=Ho.isInArray(e,Wo.keyName._someNonPrintableKeys),s=e===Wo.keyName.NumLock||e===Wo.keyName.ScrollLock||e===Wo.keyName.Insert||e===Wo.keyName.Command,o=e===Wo.keyName.Unidentified;return t||n||i||r||o||s}_processNonPrintableKeysAndShortcuts(e){if((e.ctrlKey||e.metaKey)&&"keyup"===e.type&&!Ho.isUndefined(this.valuePartsBeforePaste)||e.shiftKey&&this.eventKey===Wo.keyName.Insert)return this._checkPaste(),!1;if(this.constructor._shouldSkipEventKey(this.eventKey))return!0;if((e.ctrlKey||e.metaKey)&&this.eventKey===Wo.keyName.a)return this.settings.selectNumberOnly&&(e.preventDefault(),this.selectNumber()),!0;if((e.ctrlKey||e.metaKey)&&(this.eventKey===Wo.keyName.c||this.eventKey===Wo.keyName.v||this.eventKey===Wo.keyName.x))return"keydown"===e.type&&this._expandSelectionOnSign(),this.eventKey!==Wo.keyName.v&&this.eventKey!==Wo.keyName.Insert||("keydown"===e.type||"keypress"===e.type?Ho.isUndefined(this.valuePartsBeforePaste)&&(this.valuePartsBeforePaste=this._getLeftAndRightPartAroundTheSelection()):this._checkPaste()),"keydown"===e.type||"keypress"===e.type||this.eventKey===Wo.keyName.c;if(e.ctrlKey||e.metaKey)return!(this.eventKey===Wo.keyName.Z||this.eventKey===Wo.keyName.z);if(this.eventKey===Wo.keyName.LeftArrow||this.eventKey===Wo.keyName.RightArrow){if("keydown"===e.type&&!e.shiftKey){const e=Ho.getElementValue(this.domElement);this.eventKey!==Wo.keyName.LeftArrow||e.charAt(this.selection.start-2)!==this.settings.digitGroupSeparator&&e.charAt(this.selection.start-2)!==this.settings.decimalCharacter?this.eventKey!==Wo.keyName.RightArrow||e.charAt(this.selection.start+1)!==this.settings.digitGroupSeparator&&e.charAt(this.selection.start+1)!==this.settings.decimalCharacter||this._setCaretPosition(this.selection.start+1):this._setCaretPosition(this.selection.start-1)}return!0}return Ho.isInArray(this.eventKey,Wo.keyName._directionKeys)}_processCharacterDeletionIfTrailingNegativeSign([e,t]){const n=Ho.getElementValue(this.domElement),i=Ho.isNegative(n,this.settings.negativeSignCharacter);if(this.settings.currencySymbolPlacement===Yo.options.currencySymbolPlacement.prefix&&this.settings.negativePositiveSignPlacement===Yo.options.negativePositiveSignPlacement.suffix&&(this.eventKey===Wo.keyName.Backspace?(this.caretFix=this.selection.start>=n.indexOf(this.settings.suffixText)&&""!==this.settings.suffixText,"-"===n.charAt(this.selection.start-1)?e=e.substring(1):this.selection.start<=n.length-this.settings.suffixText.length&&(e=e.substring(0,e.length-1))):(this.caretFix=this.selection.start>=n.indexOf(this.settings.suffixText)&&""!==this.settings.suffixText,this.selection.start>=n.indexOf(this.settings.currencySymbol)+this.settings.currencySymbol.length&&(t=t.substring(1,t.length)),Ho.isNegative(e,this.settings.negativeSignCharacter)&&"-"===n.charAt(this.selection.start)&&(e=e.substring(1)))),this.settings.currencySymbolPlacement===Yo.options.currencySymbolPlacement.suffix)switch(this.settings.negativePositiveSignPlacement){case Yo.options.negativePositiveSignPlacement.left:this.caretFix=this.selection.start>=n.indexOf(this.settings.negativeSignCharacter)+this.settings.negativeSignCharacter.length,this.eventKey===Wo.keyName.Backspace?this.selection.start===n.indexOf(this.settings.negativeSignCharacter)+this.settings.negativeSignCharacter.length&&i?e=e.substring(1):"-"!==e&&(this.selection.start<=n.indexOf(this.settings.negativeSignCharacter)||!i)&&(e=e.substring(0,e.length-1)):("-"===e[0]&&(t=t.substring(1)),this.selection.start===n.indexOf(this.settings.negativeSignCharacter)&&i&&(e=e.substring(1)));break;case Yo.options.negativePositiveSignPlacement.right:this.caretFix=this.selection.start>=n.indexOf(this.settings.negativeSignCharacter)+this.settings.negativeSignCharacter.length,this.eventKey===Wo.keyName.Backspace?this.selection.start===n.indexOf(this.settings.negativeSignCharacter)+this.settings.negativeSignCharacter.length?e=e.substring(1):"-"!==e&&this.selection.start<=n.indexOf(this.settings.negativeSignCharacter)-this.settings.currencySymbol.length?e=e.substring(0,e.length-1):""===e||i||(e=e.substring(0,e.length-1)):(this.caretFix=this.selection.start>=n.indexOf(this.settings.currencySymbol)&&""!==this.settings.currencySymbol,this.selection.start===n.indexOf(this.settings.negativeSignCharacter)&&(e=e.substring(1)),t=t.substring(1))}return[e,t]}_processCharacterDeletion(){let e,t;return this.selection.length?(this._expandSelectionOnSign(),[e,t]=this._getUnformattedLeftAndRightPartAroundTheSelection()):([e,t]=this._getUnformattedLeftAndRightPartAroundTheSelection(),""===e&&""===t&&(this.throwInput=!1),this.isTrailingNegative&&Ho.isNegative(Ho.getElementValue(this.domElement),this.settings.negativeSignCharacter)?[e,t]=this._processCharacterDeletionIfTrailingNegativeSign([e,t]):this.eventKey===Wo.keyName.Backspace?e=e.substring(0,e.length-1):t=t.substring(1,t.length)),!!this.constructor._isWithinRangeWithOverrideOption(`${e}${t}`,this.settings)&&(this._setValueParts(e,t),!0)}_isDecimalCharacterInsertionAllowed(){return String(this.settings.decimalPlacesShownOnFocus)!==String(Yo.options.decimalPlacesShownOnFocus.none)&&String(this.settings.decimalPlaces)!==String(Yo.options.decimalPlaces.none)}_processCharacterInsertion(){let[e,t]=this._getUnformattedLeftAndRightPartAroundTheSelection();if(this.eventKey!==Wo.keyName.AndroidDefault&&(this.throwInput=!0),this.eventKey===this.settings.decimalCharacter||this.settings.decimalCharacterAlternative&&this.eventKey===this.settings.decimalCharacterAlternative){if(!this._isDecimalCharacterInsertionAllowed()||!this.settings.decimalCharacter)return!1;if(this.settings.alwaysAllowDecimalCharacter)e=e.replace(this.settings.decimalCharacter,""),t=t.replace(this.settings.decimalCharacter,"");else{if(Ho.contains(e,this.settings.decimalCharacter))return!0;if(t.indexOf(this.settings.decimalCharacter)>0)return!0;0===t.indexOf(this.settings.decimalCharacter)&&(t=t.substr(1))}return this.settings.negativeSignCharacter&&Ho.contains(t,this.settings.negativeSignCharacter)&&(e=`${this.settings.negativeSignCharacter}${e}`,t=t.replace(this.settings.negativeSignCharacter,"")),this._setValueParts(e+this.settings.decimalCharacter,t),!0}if(("-"===this.eventKey||"+"===this.eventKey)&&this.settings.isNegativeSignAllowed)return""===e&&Ho.contains(t,"-")?t=t.replace("-",""):e=Ho.isNegativeStrict(e,"-")?e.replace("-",""):`${this.settings.negativeSignCharacter}${e}`,this._setValueParts(e,t),!0;const n=Number(this.eventKey);return n>=0&&n<=9?(this.settings.isNegativeSignAllowed&&""===e&&Ho.contains(t,"-")&&(e="-",t=t.substring(1,t.length)),this.settings.maximumValue<=0&&this.settings.minimumValue<this.settings.maximumValue&&!Ho.contains(Ho.getElementValue(this.domElement),this.settings.negativeSignCharacter)&&"0"!==this.eventKey&&(e=`-${e}`),this._setValueParts(`${e}${this.eventKey}`,t),!0):(this.throwInput=!1,!1)}_formatValue(e){const t=Ho.getElementValue(this.domElement);let[n]=this._getUnformattedLeftAndRightPartAroundTheSelection();if((""===this.settings.digitGroupSeparator||""!==this.settings.digitGroupSeparator&&!Ho.contains(t,this.settings.digitGroupSeparator))&&(""===this.settings.currencySymbol||""!==this.settings.currencySymbol&&!Ho.contains(t,this.settings.currencySymbol))){let[e]=t.split(this.settings.decimalCharacter),i="";Ho.isNegative(e,this.settings.negativeSignCharacter)&&(i=this.settings.negativeSignCharacter,e=e.replace(this.settings.negativeSignCharacter,""),n=n.replace("-","")),""===i&&e.length>this.settings.mIntPos&&"0"===n.charAt(0)&&(n=n.slice(1)),i===this.settings.negativeSignCharacter&&e.length>this.settings.mIntNeg&&"0"===n.charAt(0)&&(n=n.slice(1)),this.isTrailingNegative||(n=`${i}${n}`)}const i=this.constructor._addGroupSeparators(t,this.settings,this.isFocused,this.rawValue);let r=i.length;if(i){const t=n.split("");if((this.settings.negativePositiveSignPlacement===Yo.options.negativePositiveSignPlacement.suffix||this.settings.negativePositiveSignPlacement!==Yo.options.negativePositiveSignPlacement.prefix&&this.settings.currencySymbolPlacement===Yo.options.currencySymbolPlacement.suffix)&&t[0]===this.settings.negativeSignCharacter&&!this.settings.isNegativeSignAllowed&&(t.shift(),(this.eventKey===Wo.keyName.Backspace||this.eventKey===Wo.keyName.Delete)&&this.caretFix&&((this.settings.currencySymbolPlacement===Yo.options.currencySymbolPlacement.suffix&&this.settings.negativePositiveSignPlacement===Yo.options.negativePositiveSignPlacement.left||this.settings.currencySymbolPlacement===Yo.options.currencySymbolPlacement.prefix&&this.settings.negativePositiveSignPlacement===Yo.options.negativePositiveSignPlacement.suffix)&&(t.push(this.settings.negativeSignCharacter),this.caretFix="keydown"===e.type),this.settings.currencySymbolPlacement===Yo.options.currencySymbolPlacement.suffix&&this.settings.negativePositiveSignPlacement===Yo.options.negativePositiveSignPlacement.right))){const n=this.settings.currencySymbol.split(""),i=["\\","^","$",".","|","?","*","+","(",")","["],r=[];n.forEach(((e,t)=>{t=n[e],Ho.isInArray(t,i)?r.push("\\"+t):r.push(t)})),this.eventKey===Wo.keyName.Backspace&&"-"===this.settings.negativeSignCharacter&&r.push("-"),t.push(r.join("")),this.caretFix="keydown"===e.type}for(let e=0;e<t.length;e++)t[e].match("\\d")||(t[e]="\\"+t[e]);let s;s=this.settings.currencySymbolPlacement===Yo.options.currencySymbolPlacement.suffix?new RegExp(`^.*?${t.join(".*?")}`):new RegExp(`^.*?${this.settings.currencySymbol}${t.join(".*?")}`);const o=i.match(s);o?(r=o[0].length,this.settings.showPositiveSign&&(0===r&&o.input.charAt(0)===this.settings.positiveSignCharacter&&(r=1===o.input.indexOf(this.settings.currencySymbol)?this.settings.currencySymbol.length+1:1),0===r&&o.input.charAt(this.settings.currencySymbol.length)===this.settings.positiveSignCharacter&&(r=this.settings.currencySymbol.length+1)),(0===r&&i.charAt(0)!==this.settings.negativeSignCharacter||1===r&&i.charAt(0)===this.settings.negativeSignCharacter)&&this.settings.currencySymbol&&this.settings.currencySymbolPlacement===Yo.options.currencySymbolPlacement.prefix&&(r=this.settings.currencySymbol.length+(Ho.isNegativeStrict(i,this.settings.negativeSignCharacter)?1:0))):(this.settings.currencySymbol&&this.settings.currencySymbolPlacement===Yo.options.currencySymbolPlacement.suffix&&(r-=this.settings.currencySymbol.length),this.settings.suffixText&&(r-=this.settings.suffixText.length))}i!==t&&(this._setElementValue(i,!1),this._setCaretPosition(r)),this.formatted=!0}static _serialize(e,t=!1,n="unformatted",i="+",r=null){const s=[];let o;return"object"==typeof e&&"form"===e.nodeName.toLowerCase()&&Array.prototype.slice.call(e.elements).forEach((e=>{if(e.name&&!e.disabled&&-1===["file","reset","submit","button"].indexOf(e.type))if("select-multiple"===e.type)Array.prototype.slice.call(e.options).forEach((n=>{n.selected&&(t?s.push({name:e.name,value:n.value}):s.push(`${encodeURIComponent(e.name)}=${encodeURIComponent(n.value)}`))}));else if(-1===["checkbox","radio"].indexOf(e.type)||e.checked){let i;if(this.isManagedByAutoNumeric(e)){let t;switch(n){case"unformatted":t=this.getAutoNumericElement(e),Ho.isNull(t)||(i=this.unformat(e,t.getSettings()));break;case"localized":if(t=this.getAutoNumericElement(e),!Ho.isNull(t)){const n=Ho.cloneObject(t.getSettings());Ho.isNull(r)||(n.outputFormat=r),i=this.localize(e,n)}break;default:i=e.value}}else i=e.value;Ho.isUndefined(i)&&Ho.throwError("This error should never be hit. If it has, something really wrong happened!"),t?s.push({name:e.name,value:i}):s.push(`${encodeURIComponent(e.name)}=${encodeURIComponent(i)}`)}})),t?o=s:(o=s.join("&"),"+"===i&&(o=o.replace(/%20/g,"+"))),o}static _serializeNumericString(e,t="+"){return this._serialize(e,!1,"unformatted",t)}static _serializeFormatted(e,t="+"){return this._serialize(e,!1,"formatted",t)}static _serializeLocalized(e,t="+",n=null){return this._serialize(e,!1,"localized",t,n)}static _serializeNumericStringArray(e,t="+"){return this._serialize(e,!0,"unformatted",t)}static _serializeFormattedArray(e,t="+"){return this._serialize(e,!0,"formatted",t)}static _serializeLocalizedArray(e,t="+",n=null){return this._serialize(e,!0,"localized",t,n)}}var Xo;Yo.multiple=(e,t=null,n=null)=>{const i=[];if(Ho.isObject(t)&&(n=t,t=null),Ho.isString(e))e=[...document.querySelectorAll(e)];else if(Ho.isObject(e)){Object.prototype.hasOwnProperty.call(e,"rootElement")||Ho.throwError("The object passed to the 'multiple' function is invalid ; no 'rootElement' attribute found.");const t=[...e.rootElement.querySelectorAll("input")];Object.prototype.hasOwnProperty.call(e,"exclude")?(Array.isArray(e.exclude)||Ho.throwError("The 'exclude' array passed to the 'multiple' function is invalid."),e=Ho.filterOut(t,e.exclude)):e=t}else Ho.isArray(e)||Ho.throwError("The given parameters to the 'multiple' function are invalid.");if(0===e.length){let e=!0;return!Ho.isNull(n)&&Ho.isBoolean(n.showWarnings)&&(e=n.showWarnings),Ho.warning("No valid DOM elements were given hence no AutoNumeric objects were instantiated.",e),[]}const r=Ho.isArray(t)&&t.length>=1;let s=!1,o=!1;if(r){const e=typeof Number(t[0]);s="number"===e&&!isNaN(Number(t[0])),s||("string"===e||isNaN(e)||"object"===e)&&(o=!0)}let a,l=!1;if(Ho.isArray(n)&&n.length>=1){const e=typeof n[0];"string"!==e&&"object"!==e||(l=!0)}a=o?Yo.mergeOptions(t):l?Yo.mergeOptions(n):n;const c=Ho.isNumber(t);let u;return s&&(u=t.length),e.forEach(((e,n)=>{c?i.push(new Yo(e,t,a)):s&&n<=u?i.push(new Yo(e,t[n],a)):i.push(new Yo(e,null,a))})),i},function(){if(Array.from||(Array.from=e=>[].slice.call(e)),"undefined"==typeof window||"function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}(),Yo.events={correctedValue:"autoNumeric:correctedValue",initialized:"autoNumeric:initialized",invalidFormula:"autoNumeric:invalidFormula",invalidValue:"autoNumeric:invalidValue",formatted:"autoNumeric:formatted",rawValueModified:"autoNumeric:rawValueModified",minRangeExceeded:"autoNumeric:minExceeded",maxRangeExceeded:"autoNumeric:maxExceeded",native:{input:"input",change:"change"},validFormula:"autoNumeric:validFormula"},Object.freeze(Yo.events.native),Object.freeze(Yo.events),Object.defineProperty(Yo,"events",{configurable:!1,writable:!1}),Yo.options={allowDecimalPadding:{always:!0,never:!1,floats:"floats"},alwaysAllowDecimalCharacter:{alwaysAllow:!0,doNotAllow:!1},caretPositionOnFocus:{start:"start",end:"end",decimalLeft:"decimalLeft",decimalRight:"decimalRight",doNoForceCaretPosition:null},createLocalList:{createList:!0,doNotCreateList:!1},currencySymbol:{none:"",currencySign:"¤",austral:"₳",australCentavo:"¢",baht:"฿",cedi:"₵",cent:"¢",colon:"₡",cruzeiro:"₢",dollar:"$",dong:"₫",drachma:"₯",dram:"​֏",european:"₠",euro:"€",florin:"ƒ",franc:"₣",guarani:"₲",hryvnia:"₴",kip:"₭",att:"ອັດ",lepton:"Λ.",lira:"₺",liraOld:"₤",lari:"₾",mark:"ℳ",mill:"₥",naira:"₦",peseta:"₧",peso:"₱",pfennig:"₰",pound:"£",real:"R$",riel:"៛",ruble:"₽",rupee:"₹",rupeeOld:"₨",shekel:"₪",shekelAlt:"ש״ח‎‎",taka:"৳",tenge:"₸",togrog:"₮",won:"₩",yen:"¥"},currencySymbolPlacement:{prefix:"p",suffix:"s"},decimalCharacter:{comma:",",dot:".",middleDot:"·",arabicDecimalSeparator:"٫",decimalSeparatorKeySymbol:"⎖"},decimalCharacterAlternative:{none:null,comma:",",dot:"."},decimalPlaces:{none:0,one:1,two:2,three:3,four:4,five:5,six:6},decimalPlacesRawValue:{useDefault:null,none:0,one:1,two:2,three:3,four:4,five:5,six:6},decimalPlacesShownOnBlur:{useDefault:null,none:0,one:1,two:2,three:3,four:4,five:5,six:6},decimalPlacesShownOnFocus:{useDefault:null,none:0,one:1,two:2,three:3,four:4,five:5,six:6},defaultValueOverride:{doNotOverride:null},digitalGroupSpacing:{two:"2",twoScaled:"2s",three:"3",four:"4"},digitGroupSeparator:{comma:",",dot:".",normalSpace:" ",thinSpace:" ",narrowNoBreakSpace:" ",noBreakSpace:" ",noSeparator:"",apostrophe:"'",arabicThousandsSeparator:"٬",dotAbove:"˙",privateUseTwo:"’"},divisorWhenUnfocused:{none:null,percentage:100,permille:1e3,basisPoint:1e4},emptyInputBehavior:{focus:"focus",press:"press",always:"always",zero:"zero",min:"min",max:"max",null:"null"},eventBubbles:{bubbles:!0,doesNotBubble:!1},eventIsCancelable:{isCancelable:!0,isNotCancelable:!1},failOnUnknownOption:{fail:!0,ignore:!1},formatOnPageLoad:{format:!0,doNotFormat:!1},formulaMode:{enabled:!0,disabled:!1},historySize:{verySmall:5,small:10,medium:20,large:50,veryLarge:100,insane:Number.MAX_SAFE_INTEGER},invalidClass:"an-invalid",isCancellable:{cancellable:!0,notCancellable:!1},leadingZero:{allow:"allow",deny:"deny",keep:"keep"},maximumValue:{tenTrillions:"10000000000000",oneBillion:"1000000000",zero:"0"},minimumValue:{tenTrillions:"-10000000000000",oneBillion:"-1000000000",zero:"0"},modifyValueOnWheel:{modifyValue:!0,doNothing:!1},negativeBracketsTypeOnBlur:{parentheses:"(,)",brackets:"[,]",chevrons:"<,>",curlyBraces:"{,}",angleBrackets:"〈,〉",japaneseQuotationMarks:"｢,｣",halfBrackets:"⸤,⸥",whiteSquareBrackets:"⟦,⟧",quotationMarks:"‹,›",guillemets:"«,»",none:null},negativePositiveSignPlacement:{prefix:"p",suffix:"s",left:"l",right:"r",none:null},negativeSignCharacter:{hyphen:"-",minus:"−",heavyMinus:"➖",fullWidthHyphen:"－",circledMinus:"⊖",squaredMinus:"⊟",triangleMinus:"⨺",plusMinus:"±",minusPlus:"∓",dotMinus:"∸",minusTilde:"≂",not:"¬"},noEventListeners:{noEvents:!0,addEvents:!1},onInvalidPaste:{error:"error",ignore:"ignore",clamp:"clamp",truncate:"truncate",replace:"replace"},outputFormat:{string:"string",number:"number",dot:".",negativeDot:"-.",comma:",",negativeComma:"-,",dotNegative:".-",commaNegative:",-",none:null},overrideMinMaxLimits:{ceiling:"ceiling",floor:"floor",ignore:"ignore",invalid:"invalid",doNotOverride:null},positiveSignCharacter:{plus:"+",fullWidthPlus:"＋",heavyPlus:"➕",doublePlus:"⧺",triplePlus:"⧻",circledPlus:"⊕",squaredPlus:"⊞",trianglePlus:"⨹",plusMinus:"±",minusPlus:"∓",dotPlus:"∔",altHebrewPlus:"﬩",normalSpace:" ",thinSpace:" ",narrowNoBreakSpace:" ",noBreakSpace:" "},rawValueDivisor:{none:null,percentage:100,permille:1e3,basisPoint:1e4},readOnly:{readOnly:!0,readWrite:!1},roundingMethod:{halfUpSymmetric:"S",halfUpAsymmetric:"A",halfDownSymmetric:"s",halfDownAsymmetric:"a",halfEvenBankersRounding:"B",upRoundAwayFromZero:"U",downRoundTowardZero:"D",toCeilingTowardPositiveInfinity:"C",toFloorTowardNegativeInfinity:"F",toNearest05:"N05",toNearest05Alt:"CHF",upToNext05:"U05",downToNext05:"D05"},saveValueToSessionStorage:{save:!0,doNotSave:!1},selectNumberOnly:{selectNumbersOnly:!0,selectAll:!1},selectOnFocus:{select:!0,doNotSelect:!1},serializeSpaces:{plus:"+",percent:"%20"},showOnlyNumbersOnFocus:{onlyNumbers:!0,showAll:!1},showPositiveSign:{show:!0,hide:!1},showWarnings:{show:!0,hide:!1},styleRules:{none:null,positiveNegative:{positive:"autoNumeric-positive",negative:"autoNumeric-negative"},range0To100With4Steps:{ranges:[{min:0,max:25,class:"autoNumeric-red"},{min:25,max:50,class:"autoNumeric-orange"},{min:50,max:75,class:"autoNumeric-yellow"},{min:75,max:100,class:"autoNumeric-green"}]},evenOdd:{userDefined:[{callback:e=>e%2==0,classes:["autoNumeric-even","autoNumeric-odd"]}]},rangeSmallAndZero:{userDefined:[{callback:e=>e>=-1&&e<0?0:0===Number(e)?1:e>0&&e<=1?2:null,classes:["autoNumeric-small-negative","autoNumeric-zero","autoNumeric-small-positive"]}]}},suffixText:{none:"",percentage:"%",permille:"‰",basisPoint:"‱"},symbolWhenUnfocused:{none:null,percentage:"%",permille:"‰",basisPoint:"‱"},unformatOnHover:{unformat:!0,doNotUnformat:!1},unformatOnSubmit:{unformat:!0,keepCurrentValue:!1},valuesToStrings:{none:null,zeroDash:{0:"-"},oneAroundZero:{"-1":"Min",1:"Max"}},watchExternalChanges:{watch:!0,doNotWatch:!1},wheelOn:{focus:"focus",hover:"hover"},wheelStep:{progressive:"progressive"}},Xo=Yo.options,Object.getOwnPropertyNames(Xo).forEach((e=>{"valuesToStrings"===e?Object.getOwnPropertyNames(Xo.valuesToStrings).forEach((e=>{Ho.isIE11()||null===Xo.valuesToStrings[e]||Object.freeze(Xo.valuesToStrings[e])})):"styleRules"!==e&&(Ho.isIE11()||null===Xo[e]||Object.freeze(Xo[e]))})),Object.freeze(Xo),Object.defineProperty(Yo,"options",{configurable:!1,writable:!1}),Yo.defaultSettings={allowDecimalPadding:Yo.options.allowDecimalPadding.always,alwaysAllowDecimalCharacter:Yo.options.alwaysAllowDecimalCharacter.doNotAllow,caretPositionOnFocus:Yo.options.caretPositionOnFocus.doNoForceCaretPosition,createLocalList:Yo.options.createLocalList.createList,currencySymbol:Yo.options.currencySymbol.none,currencySymbolPlacement:Yo.options.currencySymbolPlacement.prefix,decimalCharacter:Yo.options.decimalCharacter.dot,decimalCharacterAlternative:Yo.options.decimalCharacterAlternative.none,decimalPlaces:Yo.options.decimalPlaces.two,decimalPlacesRawValue:Yo.options.decimalPlacesRawValue.useDefault,decimalPlacesShownOnBlur:Yo.options.decimalPlacesShownOnBlur.useDefault,decimalPlacesShownOnFocus:Yo.options.decimalPlacesShownOnFocus.useDefault,defaultValueOverride:Yo.options.defaultValueOverride.doNotOverride,digitalGroupSpacing:Yo.options.digitalGroupSpacing.three,digitGroupSeparator:Yo.options.digitGroupSeparator.comma,divisorWhenUnfocused:Yo.options.divisorWhenUnfocused.none,emptyInputBehavior:Yo.options.emptyInputBehavior.focus,eventBubbles:Yo.options.eventBubbles.bubbles,eventIsCancelable:Yo.options.eventIsCancelable.isCancelable,failOnUnknownOption:Yo.options.failOnUnknownOption.ignore,formatOnPageLoad:Yo.options.formatOnPageLoad.format,formulaMode:Yo.options.formulaMode.disabled,historySize:Yo.options.historySize.medium,invalidClass:Yo.options.invalidClass,isCancellable:Yo.options.isCancellable.cancellable,leadingZero:Yo.options.leadingZero.deny,maximumValue:Yo.options.maximumValue.tenTrillions,minimumValue:Yo.options.minimumValue.tenTrillions,modifyValueOnWheel:Yo.options.modifyValueOnWheel.modifyValue,negativeBracketsTypeOnBlur:Yo.options.negativeBracketsTypeOnBlur.none,negativePositiveSignPlacement:Yo.options.negativePositiveSignPlacement.none,negativeSignCharacter:Yo.options.negativeSignCharacter.hyphen,noEventListeners:Yo.options.noEventListeners.addEvents,onInvalidPaste:Yo.options.onInvalidPaste.error,outputFormat:Yo.options.outputFormat.none,overrideMinMaxLimits:Yo.options.overrideMinMaxLimits.doNotOverride,positiveSignCharacter:Yo.options.positiveSignCharacter.plus,rawValueDivisor:Yo.options.rawValueDivisor.none,readOnly:Yo.options.readOnly.readWrite,roundingMethod:Yo.options.roundingMethod.halfUpSymmetric,saveValueToSessionStorage:Yo.options.saveValueToSessionStorage.doNotSave,selectNumberOnly:Yo.options.selectNumberOnly.selectNumbersOnly,selectOnFocus:Yo.options.selectOnFocus.select,serializeSpaces:Yo.options.serializeSpaces.plus,showOnlyNumbersOnFocus:Yo.options.showOnlyNumbersOnFocus.showAll,showPositiveSign:Yo.options.showPositiveSign.hide,showWarnings:Yo.options.showWarnings.show,styleRules:Yo.options.styleRules.none,suffixText:Yo.options.suffixText.none,symbolWhenUnfocused:Yo.options.symbolWhenUnfocused.none,unformatOnHover:Yo.options.unformatOnHover.unformat,unformatOnSubmit:Yo.options.unformatOnSubmit.keepCurrentValue,valuesToStrings:Yo.options.valuesToStrings.none,watchExternalChanges:Yo.options.watchExternalChanges.doNotWatch,wheelOn:Yo.options.wheelOn.focus,wheelStep:Yo.options.wheelStep.progressive},Object.freeze(Yo.defaultSettings),Object.defineProperty(Yo,"defaultSettings",{configurable:!1,writable:!1});const Jo={digitGroupSeparator:Yo.options.digitGroupSeparator.dot,decimalCharacter:Yo.options.decimalCharacter.comma,decimalCharacterAlternative:Yo.options.decimalCharacterAlternative.dot,currencySymbol:" €",currencySymbolPlacement:Yo.options.currencySymbolPlacement.suffix,negativePositiveSignPlacement:Yo.options.negativePositiveSignPlacement.prefix},ea={digitGroupSeparator:Yo.options.digitGroupSeparator.comma,decimalCharacter:Yo.options.decimalCharacter.dot,currencySymbol:Yo.options.currencySymbol.dollar,currencySymbolPlacement:Yo.options.currencySymbolPlacement.prefix,negativePositiveSignPlacement:Yo.options.negativePositiveSignPlacement.right},ta={digitGroupSeparator:Yo.options.digitGroupSeparator.comma,decimalCharacter:Yo.options.decimalCharacter.dot,currencySymbol:Yo.options.currencySymbol.yen,currencySymbolPlacement:Yo.options.currencySymbolPlacement.prefix,negativePositiveSignPlacement:Yo.options.negativePositiveSignPlacement.right};Ho.cloneObject(Jo).formulaMode=Yo.options.formulaMode.enabled;const na=Ho.cloneObject(Jo);na.minimumValue=0;const ia=Ho.cloneObject(Jo);ia.maximumValue=0,ia.negativePositiveSignPlacement=Yo.options.negativePositiveSignPlacement.prefix;const ra=Ho.cloneObject(Jo);ra.digitGroupSeparator=Yo.options.digitGroupSeparator.normalSpace;const sa=Ho.cloneObject(ra);sa.minimumValue=0;const oa=Ho.cloneObject(ra);oa.maximumValue=0,oa.negativePositiveSignPlacement=Yo.options.negativePositiveSignPlacement.prefix;const aa=Ho.cloneObject(Jo);aa.currencySymbol=Yo.options.currencySymbol.none,aa.suffixText=` ${Yo.options.suffixText.percentage}`,aa.wheelStep=1e-4,aa.rawValueDivisor=Yo.options.rawValueDivisor.percentage;const la=Ho.cloneObject(aa);la.minimumValue=0;const ca=Ho.cloneObject(aa);ca.maximumValue=0,ca.negativePositiveSignPlacement=Yo.options.negativePositiveSignPlacement.prefix;const ua=Ho.cloneObject(aa);ua.decimalPlaces=3;const ha=Ho.cloneObject(la);ha.decimalPlaces=3;const da=Ho.cloneObject(ca);da.decimalPlaces=3;Ho.cloneObject(ea).formulaMode=Yo.options.formulaMode.enabled;const ma=Ho.cloneObject(ea);ma.minimumValue=0;const pa=Ho.cloneObject(ea);pa.maximumValue=0,pa.negativePositiveSignPlacement=Yo.options.negativePositiveSignPlacement.prefix;const ga=Ho.cloneObject(pa);ga.negativeBracketsTypeOnBlur=Yo.options.negativeBracketsTypeOnBlur.parentheses;const fa=Ho.cloneObject(ea);fa.currencySymbol=Yo.options.currencySymbol.none,fa.suffixText=Yo.options.suffixText.percentage,fa.wheelStep=1e-4,fa.rawValueDivisor=Yo.options.rawValueDivisor.percentage;const va=Ho.cloneObject(fa);va.minimumValue=0;const ba=Ho.cloneObject(fa);ba.maximumValue=0,ba.negativePositiveSignPlacement=Yo.options.negativePositiveSignPlacement.prefix;const ya=Ho.cloneObject(fa);ya.decimalPlaces=3;const _a=Ho.cloneObject(va);_a.decimalPlaces=3;const wa=Ho.cloneObject(ba);wa.decimalPlaces=3;const Sa=Ho.cloneObject(Jo);Sa.currencySymbol=Yo.options.currencySymbol.lira,Yo.predefinedOptions={euro:Jo,euroPos:na,euroNeg:ia,euroSpace:ra,euroSpacePos:sa,euroSpaceNeg:oa,percentageEU2dec:aa,percentageEU2decPos:la,percentageEU2decNeg:ca,percentageEU3dec:ua,percentageEU3decPos:ha,percentageEU3decNeg:da,dollar:ea,dollarPos:ma,dollarNeg:pa,dollarNegBrackets:ga,percentageUS2dec:fa,percentageUS2decPos:va,percentageUS2decNeg:ba,percentageUS3dec:ya,percentageUS3decPos:_a,percentageUS3decNeg:wa,French:Jo,Spanish:Jo,NorthAmerican:ea,British:{digitGroupSeparator:Yo.options.digitGroupSeparator.comma,decimalCharacter:Yo.options.decimalCharacter.dot,currencySymbol:Yo.options.currencySymbol.pound,currencySymbolPlacement:Yo.options.currencySymbolPlacement.prefix,negativePositiveSignPlacement:Yo.options.negativePositiveSignPlacement.right},Swiss:{digitGroupSeparator:Yo.options.digitGroupSeparator.apostrophe,decimalCharacter:Yo.options.decimalCharacter.dot,currencySymbol:" CHF",currencySymbolPlacement:Yo.options.currencySymbolPlacement.suffix,negativePositiveSignPlacement:Yo.options.negativePositiveSignPlacement.prefix},Japanese:ta,Chinese:ta,Brazilian:{digitGroupSeparator:Yo.options.digitGroupSeparator.dot,decimalCharacter:Yo.options.decimalCharacter.comma,currencySymbol:Yo.options.currencySymbol.real,currencySymbolPlacement:Yo.options.currencySymbolPlacement.prefix,negativePositiveSignPlacement:Yo.options.negativePositiveSignPlacement.right},Turkish:Sa,dotDecimalCharCommaSeparator:{digitGroupSeparator:Yo.options.digitGroupSeparator.comma,decimalCharacter:Yo.options.decimalCharacter.dot},commaDecimalCharDotSeparator:{digitGroupSeparator:Yo.options.digitGroupSeparator.dot,decimalCharacter:Yo.options.decimalCharacter.comma,decimalCharacterAlternative:Yo.options.decimalCharacterAlternative.dot},integer:{decimalPlaces:0},integerPos:{minimumValue:Yo.options.minimumValue.zero,decimalPlaces:0},integerNeg:{maximumValue:Yo.options.maximumValue.zero,decimalPlaces:0},float:{allowDecimalPadding:Yo.options.allowDecimalPadding.never},floatPos:{allowDecimalPadding:Yo.options.allowDecimalPadding.never,minimumValue:Yo.options.minimumValue.zero,maximumValue:Yo.options.maximumValue.tenTrillions},floatNeg:{allowDecimalPadding:Yo.options.allowDecimalPadding.never,minimumValue:Yo.options.minimumValue.tenTrillions,maximumValue:Yo.options.maximumValue.zero},numeric:{digitGroupSeparator:Yo.options.digitGroupSeparator.noSeparator,decimalCharacter:Yo.options.decimalCharacter.dot,currencySymbol:Yo.options.currencySymbol.none},numericPos:{digitGroupSeparator:Yo.options.digitGroupSeparator.noSeparator,decimalCharacter:Yo.options.decimalCharacter.dot,currencySymbol:Yo.options.currencySymbol.none,minimumValue:Yo.options.minimumValue.zero,maximumValue:Yo.options.maximumValue.tenTrillions},numericNeg:{digitGroupSeparator:Yo.options.digitGroupSeparator.noSeparator,decimalCharacter:Yo.options.decimalCharacter.dot,currencySymbol:Yo.options.currencySymbol.none,minimumValue:Yo.options.minimumValue.tenTrillions,maximumValue:Yo.options.maximumValue.zero}},Object.getOwnPropertyNames(Yo.predefinedOptions).forEach((e=>{Object.freeze(Yo.predefinedOptions[e])})),Object.freeze(Yo.predefinedOptions),Object.defineProperty(Yo,"predefinedOptions",{configurable:!1,writable:!1});var Ea=Object.freeze({__proto__:null,default:Yo});class xa{constructor(e,t){this._el=e,this._render=t,this._def_options={historySize:5,allowDecimalPadding:!1,emptyInputBehavior:"focus",delay:100,showWarnings:!1,modifyValueOnWheel:!1},this.numeric_style="dollarPos",this._valueUpdate=new r.Subject,this.numericInput=new r.EventEmitter,this._min=0,this._max=1e6,this.options=Dt(this._def_options),this._OnKey=this._OnKey.bind(this),this._OnInput=this._OnInput.bind(this)}get value(){return this._value}set value(e){if(e!==this._lastvalue)if(!bt()&&this._Numeric)this._Numeric.set(null!=e?e:"");else{let t="",n="";switch(this.numeric_style){case"percentageUS2decPos":n="%";break;case"dollarPos":t="$"}null!=e?this._render.setProperty(this._el.nativeElement,"value",n+Ct(e,1,t)):this._render.setProperty(this._el.nativeElement,"value","")}this._value=e,this._lastvalue=e}set min(e){this._min=e,this._Numeric&&this._Numeric.update({minimumValue:e})}get min(){return this._min}set max(e){this._max=e,this._Numeric&&this._value&&this._value>this._max&&(this._Numeric.set(this._max),this._value=this._max,setTimeout((()=>{this._valueUpdate.next(this._max)})))}get max(){return this._max}_OnInput(e){e.detail.newRawValue!==e.detail.oldRawValue&&this._valueUpdate.next(e.detail.newRawValue)}_OnKey(e){if(e.target.value&&this.min>-1&&"selectionStart"in e.target){let t=e.target.selectionStart-1,n=e.target.value;"-"==e.target.value.charAt(t)&&(setTimeout((()=>{e.target.value=n.substr(0,t)+""+(t==n.length-1?"":n.substr(t)),this._Numeric.set(Ot(e.target.value||""))})),e.stopPropagation())}}ngAfterViewInit(){if(!bt()){let e=this.options,t=Yo||Ea;this.numeric_style&&(e=Object.assign({},t.getPredefinedOptions()[this.numeric_style],this._def_options,e)),"percentageUS2decPos"==this.numeric_style&&(e.rawValueDivisor=null);let n=this.min||0;ft()&&this._el.nativeElement.addEventListener("input",this._OnKey),this._Numeric=new t(this._el.nativeElement,Object.assign({minimumValue:n},e)),this._Numeric.set(null!=this.value?this.value:""),this._Numeric.update({minimumValue:n}),this._el.nativeElement.addEventListener("autoNumeric:formatted",this._OnInput);let i=this._valueUpdate;e.delay&&(i=this._valueUpdate.pipe(r.debounceTime(e.delay)));let s=i.subscribe({next:t=>{let n=t;if(e.leadingZero||(n=Pt(t)),kt(n)){if(n>this._max)return void setTimeout((()=>{n=this._max,this._lastvalue=n,this.numericInput.emit(n),this._Numeric.set(this._max)}),100)}else n=t;this._lastvalue=n,this.numericInput.emit(n)},error:()=>{},complete:()=>{s&&s.unsubscribe()}})}}ngOnDestroy(){this._valueUpdate.complete(),this._Numeric&&(this._Numeric.remove(),this._Numeric=null),this._el.nativeElement.removeEventListener("autoNumeric:formatted",this._OnInput),ft()&&this._el.nativeElement.removeEventListener("input",this._OnKey)}}xa.ɵfac=function(e){return new(e||xa)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.Renderer2))},xa.ɵdir=r["ɵɵdefineDirective"]({type:xa,selectors:[["","ng-numeric",""]],inputs:{options:["nr-options","options"],numeric_style:["nr-style","numeric_style"],value:["nr-value","value"],min:["nr-min","min"],max:["nr-max","max"]},outputs:{numericInput:"nrInput"}});class Oa{}Oa.ɵfac=function(e){return new(e||Oa)},Oa.ɵmod=r["ɵɵdefineNgModule"]({type:Oa}),Oa.ɵinj=r["ɵɵdefineInjector"]({imports:[r.CommonModule]});class ka{constructor(e){this._cd=e,this.timer=2500,this.message="something went wrong, please retry",this.close_on_change=!1,this.onhidden=new r.EventEmitter,this._show=!1,this.center=!1}set show(e){let t=this;e?(t._show=!0,t._showtimeout&&clearTimeout(t._showtimeout),t._showtimeout=setTimeout((()=>{t._show=!1,t._cd.detectChanges(),t.onhidden.emit()}),t.timer)):t.close_on_change&&(t._show=!1,t._showtimeout&&clearTimeout(t._showtimeout),t.onhidden.emit()),t._cd.detectChanges()}get show(){return this._show}ngOnDestroy(){clearTimeout(this._showtimeout)}}ka.ɵfac=function(e){return new(e||ka)(r["ɵɵdirectiveInject"](r.ChangeDetectorRef))},ka.ɵcmp=r["ɵɵdefineComponent"]({type:ka,selectors:[["error-toast"]],hostVars:2,hostBindings:function(e,t){2&e&&r["ɵɵclassProp"]("error-toast-center",t.center)},inputs:{timer:"timer",message:"message",close_on_change:["close-on-change","close_on_change"],show:"show",center:"center"},outputs:{onhidden:"onhidden"},decls:2,vars:2,consts:[["hidden","true","role","alert","tabindex","-1","aria-atomic","true",1,"errortoast",3,"ng-hidden"]],template:function(e,t){1&e&&(r["ɵɵelementStart"](0,"div",0),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e&&(r["ɵɵproperty"]("ng-hidden",!t.show),r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](t.message))},dependencies:[pn],encapsulation:2});class Pa{}Pa.ɵfac=function(e){return new(e||Pa)},Pa.ɵmod=r["ɵɵdefineNgModule"]({type:Pa}),Pa.ɵinj=r["ɵɵdefineInjector"]({imports:[r.CommonModule,Pn]});class Ca{constructor(){this.field_value=1e3,this.api_message="Please enter a value",this._ajaxdir="Hotelrewards",this.best_program="Radisson Rewards Americas",this.best_program_score="74.01",this.runn_program="World of Hyatt",this.runn_program_score="72.96",this.focus_update=!1,this.focus_result=!1,this.title="Annual Amount Spent On Hotel Stays",this.live_status=""}_showError(e){this.api_message=e,this.api_error=!1,setTimeout((()=>{this.api_error=!0}))}focusUpdate(){this.focus_update=!0,document.getElementById("update_btn").focus(),setTimeout((()=>{this.focus_update=!1}))}Calculate(){if(!kt(this.field_value))return this._showError("Please enter a value"),this.api_error=!1,void setTimeout((()=>{this.api_error=!0}));this.input_updating=!0,this.focus_result=!1,this.live_status="Calculating",qn({method:"GET",url:zn(),data:{action:`Calculators.${this._ajaxdir}`,input:this.field_value},before:()=>{this.input_updating=!0},after:()=>{this.input_updating=!1}}).then((e=>{if(this.live_status="",!e||e.error||!e.message)throw new Error("error");const t=e.message;this.live_status="Displaying results",setTimeout((()=>{document.getElementById("js-results-focus").focus(),this.focus_result=!0,this.live_status=""}),1e3),"Best"in t&&("#REF!"==t.Best.name&&(t.Best.name="N/A"),"#REF!"==t.Best.value&&(t.Best.value="N/A"),this.best_program=t.Best.name,this.best_program_score=t.Best.value),"RunnerUp"in t&&("#REF!"==t.RunnerUp.name&&(t.RunnerUp.name="N/A"),"#REF!"==t.RunnerUp.value&&(t.RunnerUp.value="N/A"),this.runn_program=t.RunnerUp.name,this.runn_program_score=t.RunnerUp.value)})).catch((()=>{this.focus_result=!1,this.live_status="",this._showError("something went wrong, please retry")}))}}Ca.ɵfac=function(e){return new(e||Ca)},Ca.ɵcmp=r["ɵɵdefineComponent"]({type:Ca,selectors:[["div","hotelcalculator",""]],hostAttrs:[1,"ch-edu-calc"],attrs:["hotelcalculator",""],decls:27,vars:13,consts:[[1,"ch-edu-calc-container"],[1,"ch-edu-calc-header"],[1,"ch-edu-calc-label"],[1,"ch-edu-calc-input"],["type","text","aria-label","amount","ng-numeric","",1,"numeric-input",3,"nr-value","keyup.enter","nrInput"],["id","update_btn","zing-touch","","aria-label","Update",1,"btn","purple","no-decoration","with-loader",3,"disabled","onTap"],["aria-hidden","true","tabindex","-1",1,"btn-loader"],[1,"bt-text"],[3,"center","show","message"],["role","table","aria-label","Results",1,"ch-edu-calc-body"],["role","row",1,"ch-edu-calc-box"],["role","cell"],["id","js-results-focus",1,"ch-edu-calc-label"],[1,"ch-edu-calc-title",3,"ng-context"],[1,"ch-edu-calc-content"],[3,"ng-aria-live"]],template:function(e,t){1&e&&(r["ɵɵelementStart"](0,"div",0)(1,"div",1)(2,"h3",2),r["ɵɵtext"](3),r["ɵɵelementEnd"](),r["ɵɵelementStart"](4,"div",3)(5,"input",4),r["ɵɵlistener"]("keyup.enter",(function(){return t.focusUpdate()}))("nrInput",(function(e){return t.field_value=e})),r["ɵɵelementEnd"](),r["ɵɵelementStart"](6,"button",5),r["ɵɵlistener"]("onTap",(function(){return t.Calculate()})),r["ɵɵelement"](7,"span",6),r["ɵɵelementStart"](8,"span",7),r["ɵɵtext"](9,"Update"),r["ɵɵelementEnd"]()(),r["ɵɵelement"](10,"error-toast",8),r["ɵɵelementEnd"]()(),r["ɵɵelementStart"](11,"div",9)(12,"div",10)(13,"div",11)(14,"p",12),r["ɵɵtext"](15,"Best Program"),r["ɵɵelementEnd"](),r["ɵɵelement"](16,"p",13),r["ɵɵelementStart"](17,"p",14),r["ɵɵtext"](18),r["ɵɵelementEnd"]()()(),r["ɵɵelementStart"](19,"div",10)(20,"div",11)(21,"p",2),r["ɵɵtext"](22,"Runner Up"),r["ɵɵelementEnd"](),r["ɵɵelement"](23,"p",13),r["ɵɵelementStart"](24,"p",14),r["ɵɵtext"](25),r["ɵɵelementEnd"]()()()()(),r["ɵɵelement"](26,"div",15)),2&e&&(r["ɵɵadvance"](3),r["ɵɵtextInterpolate"](t.title),r["ɵɵadvance"](2),r["ɵɵproperty"]("nr-value",t.field_value),r["ɵɵadvance"](1),r["ɵɵclassProp"]("loadactive",t.input_updating),r["ɵɵproperty"]("disabled",t.input_updating),r["ɵɵadvance"](4),r["ɵɵproperty"]("center",!0)("show",t.api_error)("message",t.api_message),r["ɵɵadvance"](6),r["ɵɵproperty"]("ng-context",t.best_program),r["ɵɵadvance"](2),r["ɵɵtextInterpolate1"]("WalletHub Score: ",t.best_program_score,""),r["ɵɵadvance"](5),r["ɵɵproperty"]("ng-context",t.runn_program),r["ɵɵadvance"](2),r["ɵɵtextInterpolate1"]("WalletHub Score: ",t.runn_program_score,""),r["ɵɵadvance"](1),r["ɵɵproperty"]("ng-aria-live",t.live_status))},dependencies:[yn,Jt,On,xa,ka],encapsulation:2});class Ta extends Ca{constructor(){super(...arguments),this._ajaxdir="Airlines",this.title="Annual Amount Spent On Airline Travel",this.best_program="Alaska Airlines",this.best_program_score="73.17",this.runn_program="United Airlines",this.runn_program_score="69.75"}}Ta.ɵfac=function(){let e;return function(t){return(e||(e=r["ɵɵgetInheritedFactory"](Ta)))(t||Ta)}}(),Ta.ɵcmp=r["ɵɵdefineComponent"]({type:Ta,selectors:[["div","airlinecalculator",""]],hostAttrs:[1,"ch-edu-calc","airline"],features:[r["ɵɵInheritDefinitionFeature"]],attrs:["airlinecalculator",""],decls:27,vars:13,consts:[[1,"ch-edu-calc-container"],[1,"ch-edu-calc-header"],[1,"ch-edu-calc-label"],[1,"ch-edu-calc-input"],["type","text","aria-label","amount","ng-numeric","",1,"numeric-input",3,"nr-value","keyup.enter","nrInput"],["id","update_btn","zing-touch","","aria-label","Update",1,"btn","purple","no-decoration","with-loader",3,"disabled","onTap"],["aria-hidden","true","tabindex","-1",1,"btn-loader"],[1,"bt-text"],[3,"center","show","message"],["role","table","aria-label","Results",1,"ch-edu-calc-body"],["role","row",1,"ch-edu-calc-box"],["role","cell"],["id","js-results-focus",1,"ch-edu-calc-label"],[1,"ch-edu-calc-title",3,"ng-context"],[1,"ch-edu-calc-content"],[3,"ng-aria-live"]],template:function(e,t){1&e&&(r["ɵɵelementStart"](0,"div",0)(1,"div",1)(2,"h3",2),r["ɵɵtext"](3),r["ɵɵelementEnd"](),r["ɵɵelementStart"](4,"div",3)(5,"input",4),r["ɵɵlistener"]("keyup.enter",(function(){return t.focusUpdate()}))("nrInput",(function(e){return t.field_value=e})),r["ɵɵelementEnd"](),r["ɵɵelementStart"](6,"button",5),r["ɵɵlistener"]("onTap",(function(){return t.Calculate()})),r["ɵɵelement"](7,"span",6),r["ɵɵelementStart"](8,"span",7),r["ɵɵtext"](9,"Update"),r["ɵɵelementEnd"]()(),r["ɵɵelement"](10,"error-toast",8),r["ɵɵelementEnd"]()(),r["ɵɵelementStart"](11,"div",9)(12,"div",10)(13,"div",11)(14,"p",12),r["ɵɵtext"](15,"Best Program"),r["ɵɵelementEnd"](),r["ɵɵelement"](16,"p",13),r["ɵɵelementStart"](17,"p",14),r["ɵɵtext"](18),r["ɵɵelementEnd"]()()(),r["ɵɵelementStart"](19,"div",10)(20,"div",11)(21,"p",2),r["ɵɵtext"](22,"Runner Up"),r["ɵɵelementEnd"](),r["ɵɵelement"](23,"p",13),r["ɵɵelementStart"](24,"p",14),r["ɵɵtext"](25),r["ɵɵelementEnd"]()()()()(),r["ɵɵelement"](26,"div",15)),2&e&&(r["ɵɵadvance"](3),r["ɵɵtextInterpolate"](t.title),r["ɵɵadvance"](2),r["ɵɵproperty"]("nr-value",t.field_value),r["ɵɵadvance"](1),r["ɵɵclassProp"]("loadactive",t.input_updating),r["ɵɵproperty"]("disabled",t.input_updating),r["ɵɵadvance"](4),r["ɵɵproperty"]("center",!0)("show",t.api_error)("message",t.api_message),r["ɵɵadvance"](6),r["ɵɵproperty"]("ng-context",t.best_program),r["ɵɵadvance"](2),r["ɵɵtextInterpolate1"]("WalletHub Score: ",t.best_program_score,""),r["ɵɵadvance"](5),r["ɵɵproperty"]("ng-context",t.runn_program),r["ɵɵadvance"](2),r["ɵɵtextInterpolate1"]("WalletHub Score: ",t.runn_program_score,""),r["ɵɵadvance"](1),r["ɵɵproperty"]("ng-aria-live",t.live_status))},dependencies:[yn,Jt,On,xa,ka],encapsulation:2});class Na{}Na.ɵfac=function(e){return new(e||Na)},Na.ɵmod=r["ɵɵdefineNgModule"]({type:Na}),Na.ɵinj=r["ɵɵdefineInjector"]({imports:[r.CommonModule,Pn,Oa,Pa]});class Ia{constructor(e,t,n,i,r,s){this._AppRef=e,this._Injector=t,this._compiler=n,this._renderFactory=i,this._scrollservice=r,this._data=s,this._cleanups=[],this._ToDisclosure=this._ToDisclosure.bind(this);if(bt())return;let o=document.querySelector(".edu-auth-avatar img");o&&this._cleanups.push(To(o,this._renderFactory));let a=document.querySelectorAll(".edu-art-content-table img[class*=wp-image-]");if(a&&a.length>0)for(let e=0,t=a.length;e<t;e++){let t=a[e],n=t.parentNode;n&&n.classList&&n.classList.contains("wp-image-defer")?this._cleanups.push(No(t,this._renderFactory)):this._cleanups.push(To(t,this._renderFactory))}let l=document.querySelectorAll(".cardhub-edu-img,.cc-section .shortcode-img");if(l&&l.length>0)for(let e=0,t=l.length;e<t;e++){let t=l[e];this._cleanups.push(No(t,this._renderFactory))}let c=document.querySelectorAll('a[href^="#"]');if(c&&c.length>0){const e=document.querySelectorAll("h2");this._JumpTo=this._JumpTo.bind(this);for(let t=0,n=c.length;t<n;t++){let n=c[t],i=n.getAttribute("href").substring(1);n.setAttribute("data-jump-to",i),n.addEventListener("click",this._JumpTo),this._cleanups.push((()=>{n.removeEventListener("click",this._JumpTo)}));for(let t=0,r=e.length;t<r;t++){const r=e[t];if(r.dataset.name==i||St(r.textContent.toLowerCase())==St(n.textContent.toLowerCase())){r.dataset.name=i,r.setAttribute("tabindex","0");break}}}}if(location.hash&&location.hash.indexOf("expert=")<0){const e=location.hash.replace("#",""),t=document.querySelector(`.edu-art-content-table a[name=${e}]`);t&&this._scrollservice.scrollTo({target:t,timing:0})}let u=document.querySelector(".edu-article .edu-art-tnav-disc");u&&(u.addEventListener("click",this._ToDisclosure),this._cleanups.push((()=>{u.removeEventListener("click",this._ToDisclosure)})));let h=document.querySelectorAll(".cardhub-edu-spnsrd.link");if(h&&h.length)for(let e=0,t=h.length;e<t;e++){let t=h[e];t.addEventListener("click",this._ToDisclosure),this._cleanups.push((()=>{t.removeEventListener("click",this._ToDisclosure)}))}let d=document.querySelectorAll(".cc-section");if(d&&d.length>0)for(let e=0,t=d.length;e<t;e++){let t=d[e],n=d[e].querySelector(".top-content a.ad");n&&(n.addEventListener("click",this._ToDisclosure),this._cleanups.push((()=>{n.removeEventListener("click",this._ToDisclosure)})));let i=new Io(t);this._cleanups.push(i.Destroy)}const m=document.querySelectorAll(".embedholder");let g={};function f(e){let t=this.parentNode.querySelector(".embedcode");t.style.display=t.style.display&&"block"==t.style.display?"none":"block",t.blur(),e.preventDefault(),e.stopPropagation()}function v(){this.select()}function b(){let e=this,t=e.parentNode.parentNode.getAttribute("id");g[t]=window.setTimeout((function(){e.parentNode.style.display="none"}),1500)}function y(){let e=this.parentNode.parentNode.getAttribute("id");e in g&&window.clearTimeout(g[e])}function _(e){e.stopPropagation()}function w(){for(let e=0,t=m.length;e<t;e++){m[e].querySelector(".embedcode").style.display="none"}}if(m&&m.length>0){for(let e=0,t=m.length;e<t;e++){let t=m[e],n=t.querySelector("a"),i=t.querySelector("textarea");t.addEventListener("click",_),n.addEventListener("click",f),i.addEventListener("focus",v),i.addEventListener("mouseleave",b),i.addEventListener("mouseenter",y),i.setAttribute("readonly","readonly"),this._cleanups.push((()=>{i.removeEventListener("focus",v),i.removeEventListener("mouseleave",b),n.removeEventListener("click",f),i.removeEventListener("mouseenter",y),t.removeEventListener("click",_)}))}window.addEventListener("click",w),this._cleanups.push((()=>{window.removeEventListener("click",w)}))}const S=document.querySelector(".edu-art-social-buttons .button-reddit");S&&(S.innerHTML='<script type="text/javascript" src="https://www.reddit.com/static/button/button2.js"><\/script>');const E=document.querySelectorAll('div[data-calculator="hotel"]');for(let e=0,t=E.length;e<t;e++){const t=E[e],n=$t();t.setAttribute("calc-id",n),So(this._AppRef,this._Injector,this._compiler,Na,Ca,`div[calc-id="${n}"]`).then((e=>{this._cleanups.push(e.destroy)}))}const x=document.querySelectorAll('div[data-calculator="airline"]');for(let e=0,t=x.length;e<t;e++){const t=x[e],n=$t();t.setAttribute("calc-id",n),So(this._AppRef,this._Injector,this._compiler,Na,Ta,`div[calc-id="${n}"]`).then((e=>{this._cleanups.push(e.destroy)}))}const O=document.querySelectorAll(".edu-art-pag-link");for(let e=0,t=O.length;e<t;e++){const t=O[e],n=[];for(let e=0,i=t.childNodes.length;e<i;e++){const i=t.childNodes[e];let r="";1==i.nodeType?i.hasAttribute("aria-label")?(r=i.getAttribute("aria-label"),i.removeAttribute("aria-label")):r=i.textContent:3==i.nodeType&&(r=i.wholeText),r=St(r),r&&n.push(r)}t.setAttribute("aria-label",n.join("."))}Promise.all([p.import("shortcode-js"),p.import("css:/shortcodes.css")]).then((e=>{let t=e[0];const n=this._scrollservice.overwrite_to_body?window:this._scrollservice.element;t.ClearPrsWidgets(),t.SetPrsWidgets(n,Fn()),t.ClearBoxes(),t.SetBoxes(n,Fn()),t.ClearEduBoxes(),t.SetEduBoxes(),this._cleanups.push((()=>{t.ClearBoxes(),t.ClearPrsWidgets(),t.ClearEduBoxes()}))}),(function(){}))}_JumpTo(e,t=!1){let n=e.target;for(;n&&"a"!=n.tagName.toLowerCase()&&"body"!=n.tagName.toLowerCase();)n=n.parentNode;let i=n.getAttribute("data-jump-to");if(i){const n=document.querySelector(`.edu-art-content-table a[name=${i}]`);if(n){const e=document.querySelector(`h2[data-name="${i}"]`);e&&(e.focus(),setTimeout((()=>{e.focus()}))),this._scrollservice.scrollTo({target:n,timing:t?0:300})}e.preventDefault(),e.stopPropagation()}}_ToDisclosure(e){e.preventDefault(),e.stopPropagation();let t=document.querySelector(".edu-page-disclaimer");if(t){this._scrollservice.scrollTo({target:t});let e=document.querySelector(".ed-disc-ad");e&&(e.focus(),e.classList.add("ed-disc-yellow"),setTimeout((()=>{e.classList.remove("ed-disc-yellow")}),3500))}}_Expand(){const e=this;if(window.innerWidth>1003)return;const t=e.parentNode;t.classList.toggle("edu-sidebar-expand"),t.classList.contains("edu-sidebar-expand")?e.setAttribute("aria-expanded","true"):e.setAttribute("aria-expanded","false")}InitiateSharing(){p.import("components:/bootstrap/edu/edu-share-ui-component").then((e=>{document.querySelector("article .edu-art-main .social-share-box")&&So(this._AppRef,this._Injector,this._compiler,e.NgEduShareUIModule,e.EduShareBox,"article .edu-art-main .social-share-box",{title:this._data.title,template:"v2"!=this._data.template?"v1":"v2"}).then((e=>{this._cleanups.push(e.destroy)})),document.querySelector("article .edu-art-sidebar .social-share-box")&&So(this._AppRef,this._Injector,this._compiler,e.NgEduShareUIModule,e.EduShareBox,"article .edu-art-sidebar .social-share-box",{title:this._data.title,permanent_sticky:!0,no_shares:!0}).then((e=>{this._cleanups.push(e.destroy)}))}))}InitiateHelpful(){p.import("modules:/Pages/edu/edu-helpful").then((e=>{So(this._AppRef,this._Injector,this._compiler,e.NgEduHepfulModule,e.EduHepful,"div.helpful-article").then((e=>{this._cleanups.push(e.destroy)}))}))}InitiateQnA(){return this._qnaModule=this._qnaModule||Promise.all([p.import("components:/qna-comp"),p.import("components:/bootstrap/route-ui-module"),p.import("css:/components/qna-comp.css")]).then((e=>{let t=e[0],n=e[1];return this._compiler.compileModuleAsync(n.RouterModule).then((e=>{let i=e.create(this._Injector);return this._cleanups.push(i.destroy),So(i.injector.get(r.ApplicationRef),i.injector,this._compiler,t.QnAModule,t.QnAComp,"section#qna-box",{layout_type:1,toggleSchema:!0,ques_data:this._data.qnadata,page_query:"p",ques_referer:this._data.qnauri,section_title:this._data.qna_header}).then((e=>{this._cleanups.push(e.destroy)})),{routeRef:i,ActivatedRoute:n.ActivatedRoute}}))})),this._qnaModule}InitiateExperts(e){let t=document.querySelector("div[id=experts-gallery]");return t?(this._expertsModule=this._expertsModule||Promise.all([p.import("components:/bootstrap/experts-gallery-ui-component"),p.import("css:/components/experts-gallery.css")]).then((n=>{let i=n[0];return this.InitiateQnA().then((n=>new Promise(((r,s)=>{let o=n.routeRef.injector.get(n.ActivatedRoute);i.CompileExpertsGallery(this._AppRef,this._Injector,this._compiler,o,{data:this._data.experts,hashname:e}).then((n=>{try{e?(this._scrollservice.scrollTo({target:t,timing:0}).then((()=>{Ut((()=>{r(null)}))})),this._cleanups.push((()=>{n.destroy()}))):r(null)}catch(e){r(null)}})).catch(s),setTimeout((()=>{r(null)}),1e3)}))))})),this._expertsModule):Promise.resolve(null)}InitiateExpertsDev(e){document.querySelector("div[id=experts-gallery]")&&Promise.all([p.import("components:/bootstrap/experts-gallery-ui-component"),p.import("css:/components/experts-gallery.css")]).then((t=>{t[0].CompileExpertsGallery(this._AppRef,this._Injector,this._compiler,e,{data:this._data.experts,expert_offset:-100,back_bt_text:(this._data.experts||{}).back_link_text,more_btn_txt:(this._data.experts||{}).more_text,max_experts:6}).then((e=>{this._cleanups.push((()=>{e.destroy()}))}))}))}InitiateTableSorting(){const e=document.querySelectorAll(".cardhub-edu-table.sortable");if(e&&e.length>0)for(let t=0,n=e.length;t<n;t++){let n=e[t],i=n.querySelectorAll("thead th");if(i&&i.length>0)for(let e=0,t=i.length;e<t;e++){let t=i[e];if(t.classList.contains("rank-numeric")){t.setAttribute("data-sort-method","number");let e=t.querySelector("p");e?e.innerHTML+=' <i class="rank-arrow"></i>':t.innerHTML+=' <i class="rank-arrow"></i>'}else t.setAttribute("data-sort-method","none")}try{new g.default(n,{})}catch(e){}}}InitiateTableSearch(){Tt(this._data.tablesearchdata)&&Nt(this._data.tablesearchdata,(e=>{let t=e.id;So(this._AppRef,this._Injector,this._compiler,jo,Bo,`[data-ts-id="${t}"]`,{items:e.list,index:e.index}).then((e=>{this._cleanups.push(e.destroy)})).catch((e=>{}))}))}InitiateTableSearchNode(){}InitiateGeoCharts(){if(!this._data.charts)return;let e=this,t=new Ao(this._scrollservice,.2,1);this._cleanups.push((()=>{t.Destroy()}));let n=document.querySelectorAll(".chart-container"),i=!1;const r=()=>{i||(i=!0,p.import("npm:google-charts/dist/googleCharts.js").then((e=>{const t=e.GoogleCharts;return new Promise((e=>{t.load((()=>{t.api?e(t.api):t.load((()=>{e(t.api)}))}))}))})).then((t=>{if(!t||!t.charts)return Promise.reject("Google chart failed to load");t.charts.load("current",{packages:["corechart"].concat(this._data.charts.packages)}),t.charts.setOnLoadCallback((()=>{Lt({geo:"GeoChart",pie:"PieChart",column:"ColumnChart",line:"LineChart",bubble:"BubbleChart"},((n,i)=>{if(!e._data.charts[i]||e._data.charts[i].length<1)return!0;for(let s=0,o=e._data.charts[i].length;s<o;s++){let o=e._data.charts[i][s];if(!("id"in o)||!("data"in o)||!("config"in o))continue;if("ToolTip"==o.data[0][o.data[0].length-1]&&(o.data[0][o.data[0].length-1]={role:"tooltip",p:{html:!0}}),"line"==i&&2==o.data[0].length){o.data[0].push({type:"string",role:"style"});for(var r=1;r<o.data.length;r++)o.data[r].push("point {stroke-width: 2;  stroke-color: #fff; }")}let a=t.visualization.arrayToDataTable(o.data),l=document.querySelector("#"+o.id),c=new t.visualization[n](l);if(["column","line","geo"].indexOf(i)>-1&&"fmt"in o.config){let e=o.data[0].length;if("pattern"in o.config.fmt&&Tt(o.config.fmt.pattern)&&o.config.fmt.pattern.length==e)for(let n=0;n<e;n++){new t.visualization.NumberFormat({pattern:o.config.fmt.pattern[n]}).format(a,n)}else{"geo"==i&&(o.config.firstColStr=!0);for(let n=o.config.firstColStr?2:1;n<=e;n++){new t.visualization.NumberFormat(o.config.fmt).format(a,n-1)}}}"geo"==i&&o.data[0].length<3&&(o.config.hasOwnProperty("displayMode")?o.config.hasOwnProperty("displayMode")&&o.config.displayMode:(o.config.colors=["#2CDBDB","#fff"],document.querySelector("head").innerHTML+="<style>#"+o.id+" path{ stroke:#555; }</style>")),delete o.config.fmt,o.config.chartArea=o.config.chartArea||{},o.config.chartArea.width="100%",o.config.chartArea.bottom="bottom"in o.config.chartArea?o.config.chartArea.bottom:200,"column"!=i&&"line"!=i&&"bubble"!=i||(o.config.explorer={actions:["dragToZoom","rightClickToReset"],axis:"horizontal",keepInBounds:!0,maxZoomIn:4}),!o.config.legend||o.config.legend.position&&"right"!=o.config.legend.position||(o.config.legend.position="bottom");let u=l.parentNode,h=u.querySelector(".progress-indicator");try{h&&u.removeChild(h)}catch(e){}const d=o.config.width,m=o.config.height,p=()=>{let e=l.getBoundingClientRect();Bt(d)||(o.config.width=e.width),(Bt(m)||"auto"==m)&&("geo"!=i&&"auto"!==m?o.config.height=Math.max(e.height,500):delete o.config.height),c.draw(a,o.config)};window.addEventListener("resize",p),setTimeout((()=>{Ut(p)}),Math.floor(31*Math.random())+30),this._cleanups.push((()=>{window.removeEventListener("resize",p),c.clearChart()})),"column"==i||"line"==i||"bubble"==i?t.visualization.events.addListener(c,"ready",(function(){let e=document.createElement("div");e.classList.add("left-border");let t=document.createElement("div");t.classList.add("right-border"),l.appendChild(e),l.appendChild(t),l.classList.add("ng-enter-element");let n=c.getContainer().getElementsByTagName("svg");n.length>0&&(n[0].setAttribute("focusable","false"),n[0].setAttribute("aria-hidden","true"),n[0].setAttribute("tabindex","-1"))})):t.visualization.events.addListener(c,"ready",(function(){l.classList.add("ng-enter-element");let e=c.getContainer().getElementsByTagName("svg");if(e.length>0&&(e[0].setAttribute("focusable","false"),e[0].setAttribute("aria-hidden","true"),e[0].setAttribute("tabindex","-1")),"geo"==i){const e=(e,...t)=>(t.forEach((t=>e.appendChild(t))),e),t=(t,n,i,...r)=>{let s=document.createElement(t);return Object.keys(n||{}).forEach((e=>s[e]=n[e])),Object.keys(i||{}).forEach((e=>s.setAttribute(e,i[e]))),e(s,...r)},n=n=>{let i=document.createElement("TABLE"),r=i.appendChild(t("THEAD")),s=i.appendChild(t("TBODY"));if(null!=n&&n.length>0){let i=r.querySelectorAll("tr th"),o=[];i.length?o=Array.from(i).map((e=>e.textContent)):(o=n[0],r.appendChild(t("TR",null,null,...o.map((e=>t("TH",{textContent:e})))))),e(s,...n.map((e=>t("TR",null,null,...e.map((e=>t("TD",{textContent:e})))))))}return i},i=o.data;if(null!=i&&i.length>0&&"Lat"===i[0][0]&&"Lon"===i[0][1]&&i.forEach(((e,t)=>{e.splice(0,2)})),0===Object.keys(i).length);else{let e=n(i),t=document.createElement("div");t.setAttribute("aria-label","A tabular representation of the data in the chart."),t.style.position="absolute",t.style.top="auto",t.style.left="-10000px",t.style.height="1px",t.style.width="1px",t.style.overflow="hidden",t.className="wh-geo-table",t.appendChild(e),l.appendChild(t)}}}))}}))}))})).catch((e=>{rs().then((t=>{t.captureException(e)}))})))};if(n&&n.length>0)for(let e=0,i=n.length;e<i;e++)t.Observe(n[e]).subscribe((()=>{r(),t.Unobserve(n[e])}))}InitiateMobileRelated(){const e=document.querySelectorAll(".edu-art-cross-links .edu-sd-exp");if(e)for(let t=0,n=e.length;t<n;t++){const n=e[t].querySelector(".edu-art-sidebar-title");n.addEventListener("click",this._Expand),this._cleanups.push((()=>{n.removeEventListener("click",this._Expand)}))}}InitiateFreeCreditModal(){if(Wn.get("mw_signon")&&Jn.get("has-sess"))return;let e=document.createElement("free-credit");document.body.appendChild(e),So(this._AppRef,this._Injector,this._compiler,Uo,$o,"free-credit").then((e=>{this._cleanups.push(e.destroy)}))}InitiateCIWidget(){var e,t;(e=this._AppRef,t=this._Injector,this._compiler,document.querySelectorAll("div.car-insurance-widget").length>0?p.import("components:/ci-shortcode").then((n=>{let i=[];const r=document.querySelectorAll("div.car-insurance-widget");for(let s=0,o=r.length;s<o;s++){const o=r[s],a=$t();o.setAttribute("ci-id","ci-id-"+a);let l=o.querySelector(".ciw-head")?o.querySelector(".ciw-head").innerHTML:"",c=So(e,t,0,n.NGCIShortCodeModule,n.CIShortCode,`div[ci-id="ci-id-${a}"]`,{data:l}).then((e=>(e.Component.changeDetectorRef.detectChanges(),e)));i.push(c)}return Promise.all(i).then((e=>({destroy:()=>{e.forEach((e=>{e.destroy()}))}})))})):Promise.resolve(null)).then((e=>{e&&this._cleanups.push(e.destroy)}))}InitiateLazyNgModules(){return this._lazyNgModules=this._lazyNgModules||Promise.all([p.import("components:/bootstrap/edu/edu-share-ui-component"),p.import("components:/bootstrap/experts-gallery-ui-component"),p.import("css:/components/experts-gallery.css"),p.import("components:/qna-comp"),p.import("components:/bootstrap/route-ui-module"),p.import("css:/components/qna-comp.css")]).then((()=>{this.InitiateTableSearch(),document.querySelector("div[id=experts-gallery]")&&this._data.experts?this.InitiateExperts():this.InitiateQnA()})),this._lazyNgModules}Destroy(){this._cleanups.forEach((e=>{e()}))}}class Fa{constructor(e,t,n,i,r,s){this.zone=e,this.scroll=t,this.renderFactory=n,this.compiler=i,this.injector=r,this.appref=s}}Fa.ɵfac=function(e){return new(e||Fa)(r["ɵɵinject"](r.NgZone),r["ɵɵinject"](on),r["ɵɵinject"](r.RendererFactory2),r["ɵɵinject"](r.Compiler),r["ɵɵinject"](r.Injector),r["ɵɵinject"](r.ApplicationRef))},Fa.ɵmod=r["ɵɵdefineNgModule"]({type:Fa,bootstrap:[ns]}),Fa.ɵinj=r["ɵɵdefineInjector"]({providers:[{provide:r.ErrorHandler,useClass:ss}],imports:[r.BrowserModule,r.CommonModule,is,Pn.forRoot()]}),function(){let e,t;return bt()?Ht.setEnv(global.ISPROD?"PROD":"DEV"):Ht.setEnv(window.isDevEv||_t()?"DEV":window.isDEVSTAGE?"STAGE":"PROD"),wt()?(e="cfstatic.efdevhub.info",t="cfstatic.efdevhub.info"):(e="cdn.wallethub.com",t="cdn.wallethub.com"),ti.setKey("cdn_url",bt()?`https://${e}/`:window.CDN_URL||`https://${e}/`),ti.setKey("cdn_static_url",bt()?`https://${t}/`:window.CDN_STATIC_URL||`https://${t}/`),ti.setKey("fb_app_id",wt()?"772865386137702":"171743162916597"),(!pt()&&!_t()||bt())&&r.enableProdMode(),Jn.group("mw"),ti.pageLoadPopulate(),mt()?Fn(window.location.host):wt()?Fn(Nn.dev):Fn(Nn.prod),cs(),hs}().then((()=>{const e=[],t=[];r.platformBrowser().bootstrapModule(Fa).then((n=>{const i=ti.group("edu-page"),s=n.instance,o=new Eo(s.renderFactory,s.zone,s.scroll);e.push(o.Destroy);const a=new Ia(s.appref,s.injector,s.compiler,s.renderFactory,s.scroll,i);e.push(a.Destroy),window.addEventListener("load",(()=>{let n=!1,o=location.hash;if(!n&&o&&o.indexOf("expert=")>-1&&i.experts){n=!0;let e=o.split("expert=");a.InitiateExperts(e[e.length-1]).then((()=>{n=!1})).catch((e=>{n=!1}))}Ut((()=>{a.InitiateTableSorting(),a.InitiateGeoCharts(),a.InitiateMobileRelated(),a.InitiateHelpful(),a.InitiateSharing(),a.InitiateCIWidget();let n=s.scroll.onScroll.pipe(r.skip(1)).subscribe((t=>{var i,r;a.InitiateLazyNgModules(),(i=s.appref,r=s.injector,s.compiler,p.import("components:/site-footer-web").then((e=>So(i,r,0,e.FooterModule,e.PageFooter,"footer[main-footer]").then((e=>document.querySelector("app-errors")?So(i,r,0,wo,_o,"app-errors").then((t=>(Ut((()=>{Mn.emit("$shortcodes:set")})),()=>{t.destroy(),e.destroy()}))):e.destroy))))).then((t=>{e.push(t)})),setTimeout((()=>{n.unsubscribe()}))}));t.push(n),a.InitiateFreeCreditModal()}))})),n.onDestroy((()=>{o.Destroy(),Nt(t,(e=>{e.unsubscribe()})),Nt(e,(e=>{e()}))}))}))}));class Aa{constructor(e){this.onSubmit=new r.EventEmitter,this._allow_submit=!1,this._form=e.nativeElement,this.submit=this.submit.bind(this)}submit(e){return this.onSubmit.emit(e),this._allow_submit||e.preventDefault(),this._allow_submit}ngAfterViewInit(){this._form&&!bt()&&this._form.addEventListener("submit",this.submit,!1)}ngOnDestroy(){this._form&&!bt()&&this._form.removeEventListener("submit",this.submit)}}Aa.ɵfac=function(e){return new(e||Aa)(r["ɵɵdirectiveInject"](r.ElementRef))},Aa.ɵdir=r["ɵɵdefineDirective"]({type:Aa,selectors:[["form","form-submit",""]],inputs:{_allow_submit:["allow-submit","_allow_submit"]},outputs:{onSubmit:"onSubmit"}});class La{}La.ɵfac=function(e){return new(e||La)},La.ɵmod=r["ɵɵdefineNgModule"]({type:La}),La.ɵinj=r["ɵɵdefineInjector"]({imports:[r.CommonModule,Pn]});function Va(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementContainerStart"](0),r["ɵɵelement"](1,"p",4),r["ɵɵelementStart"](2,"div",5)(3,"button",6),r["ɵɵlistener"]("onTap",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.Yes())})),r["ɵɵelement"](4,"i",7),r["ɵɵelementStart"](5,"span",8),r["ɵɵtext"](6,"Yes"),r["ɵɵelementEnd"]()(),r["ɵɵelementStart"](7,"button",9),r["ɵɵlistener"]("click",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.No())})),r["ɵɵtext"](8,"No"),r["ɵɵelementEnd"]()(),r["ɵɵelementContainerEnd"]()}if(2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](1),r["ɵɵproperty"]("innerHTML",e.headline,r["ɵɵsanitizeHtml"]),r["ɵɵadvance"](2),r["ɵɵclassProp"]("loadactive",e.saving)}}function za(e,t){1&e&&(r["ɵɵelementStart"](0,"p",10),r["ɵɵtext"](1,"Awesome! Thanks for your feedback."),r["ɵɵelementEnd"]()),2&e&&r["ɵɵproperty"]("focus-when",!0)}function Ma(e,t){if(1&e&&(r["ɵɵelementStart"](0,"p",11),r["ɵɵtext"](1,"Thank you for your feedback."),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵproperty"]("focus-when",e.after_submit)}}function Da(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"form",12),r["ɵɵlistener"]("onSubmit",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.SubmitReason())})),r["ɵɵelementStart"](1,"p",11),r["ɵɵtext"](2,"Sorry! How can we improve it?"),r["ɵɵelementEnd"](),r["ɵɵelementStart"](3,"textarea",13),r["ɵɵlistener"]("input",(function(t){r["ɵɵrestoreView"](e);const n=r["ɵɵnextContext"]();return r["ɵɵresetView"](n.reason=t.target.value)})),r["ɵɵelementEnd"](),r["ɵɵelementStart"](4,"div",14)(5,"button",15),r["ɵɵelement"](6,"i",7),r["ɵɵelementStart"](7,"span",8),r["ɵɵtext"](8,"Submit"),r["ɵɵelementEnd"]()(),r["ɵɵelement"](9,"error-toast",16),r["ɵɵelementEnd"]()()}if(2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](1),r["ɵɵproperty"]("focus-when",!0),r["ɵɵadvance"](2),r["ɵɵproperty"]("value",e.reason),r["ɵɵadvance"](2),r["ɵɵclassProp"]("loadactive",e.saving),r["ɵɵadvance"](4),r["ɵɵproperty"]("message",e.errormsg)("show",e.show_submit_error)("close-on-change",!0)}}class Ra{constructor(e){this._loc=e,this.submited=!1,this.headline="Was this article helpful?",this.type="EDU",this.reason="",this.live_status="",this.after_submit=!1}ngOnInit(){this._url=(Fn()+this._loc.path()).replace("https://",""),this.voted="1"==Wn.get("h"+this._url)}Yes(){let e="h"+this._url;Wn.set(e,"1",7),qn({url:zn(),data:{action:"send_edu_feedback",postId:this.id,url:this._url,helpful:!0,type:this.type},before:()=>{this.saving=!0},after:()=>{this.saving=!1},silent:!0,headers:{"Content-Type":"application/x-www-form-urlencoded"}}),this.submited=!0}No(){this.unhelpful=!0}_ShowReqError(){this.show_submit_error&&(this.show_submit_error=!1),setTimeout((()=>{this.show_submit_error=!0}))}_ThrowReqError(e="We encountered an error. Please retry"){this.errormsg?this.errormsg=null:this.errormsg=e,setTimeout((()=>{this.errormsg=e}),100),this._ShowReqError()}SubmitReason(){if(this.saving)return;let e,t=ei(this.reason||"");(!t||t.length<10)&&(e="Content must have 30 characters"),e?this._ThrowReqError(e):qn({url:zn(),data:{action:"send_edu_feedback",postId:this.id,url:this._url,helpful:!1,feedback:t,type:this.type},before:()=>{this.saving=!0},after:()=>{this.saving=!1},headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((e=>{if(e.error)this._ThrowReqError();else{this.voted=!0,this.unhelpful=!1,this.after_submit=!0;let e="h"+this._url;Wn.set(e,"0",7)}})).catch((()=>{this._ThrowReqError()}))}}Ra.ɵfac=function(e){return new(e||Ra)(r["ɵɵdirectiveInject"](r.Location))},Ra.ɵcmp=r["ɵɵdefineComponent"]({type:Ra,selectors:[["div",8,"helpful-article"]],hostAttrs:[1,"text-select","helpful-article"],inputs:{id:"id",headline:"headline",type:"type"},attrs:["class","helpful-article"],decls:4,vars:4,consts:[[4,"ngIf"],["class","ng-enter-element helpful-head","ng-focus","","tabindex","0",3,"focus-when",4,"ngIf"],["class","helpful-head","ng-focus","","tabindex","0",3,"focus-when",4,"ngIf"],["class","ng-enter-element","form-submit","",3,"onSubmit",4,"ngIf"],[1,"helpful-head",3,"innerHTML"],[1,"helpful-btn-container"],["type","button","zing-touch","","aria-label","Yes",1,"btn","blue-brds","helpful-btn","with-loader",3,"onTap"],["aria-hidden","true","tabindex","-1",1,"btn-loader"],[1,"bt-text"],["type","button",1,"btn","blue-brds","helpful-btn",3,"click"],["ng-focus","","tabindex","0",1,"ng-enter-element","helpful-head",3,"focus-when"],["ng-focus","","tabindex","0",1,"helpful-head",3,"focus-when"],["form-submit","",1,"ng-enter-element",3,"onSubmit"],["aria-label","Please write here how can we improve it!",1,"textarea","large","helpful-textarea",3,"value","input"],[1,"helpful-form-btn"],["type","submit",1,"btn","fixed-w","with-loader"],[3,"message","show","close-on-change"]],template:function(e,t){1&e&&(r["ɵɵtemplate"](0,Va,9,3,"ng-container",0),r["ɵɵtemplate"](1,za,2,1,"p",1),r["ɵɵtemplate"](2,Ma,2,1,"p",2),r["ɵɵtemplate"](3,Da,10,7,"form",3)),2&e&&(r["ɵɵproperty"]("ngIf",!t.submited&&!t.voted&&!t.unhelpful),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.submited),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.voted),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.unhelpful))},dependencies:[r.NgIf,Jt,ka,Aa,ni],encapsulation:2});class Ba{}Ba.ɵfac=function(e){return new(e||Ba)},Ba.ɵmod=r["ɵɵdefineNgModule"]({type:Ba}),Ba.ɵinj=r["ɵɵdefineInjector"]({imports:[r.CommonModule,Pn,Pa,La,ii]});class ja{constructor(e,t,n){this._el=e,this._zone=t,this._dserv=n,this.offset=null,this.fixedcenter=!1,this.userscrolleroffset=!0,this._enable=!0,this.auto_start=!0,this._nativesupport="fixed",this.trynative=!1,this.sticky_parent=!1}get refresh(){return this._refresh}set refresh(e){this._refresh=e,!bt()&&this._scroller&&setTimeout((()=>{this._scrollWatch()}))}get enabled(){return this._enable}set enabled(e){this._enable=e,e&&!bt()&&setTimeout((()=>{this._scrollWatch()}))}_getSupport(){if(!window.getComputedStyle)return!1;let e=document.createElement("div"),t=["","-webkit-","-moz-","-ms-"],n=null;for(let i=0,r=t.length;i<r;i++){let r=t[i]+"sticky";try{e.style.position=r}catch(e){}if(e.style.position&&e.style.position.indexOf("sticky")>-1){n=r;break}}return n}_scrollWatch(){if(!this.enabled)return;let e=this._el.nativeElement,t=this._el.nativeElement.parentNode.getBoundingClientRect(),n={};if(0===e.offsetHeight&&0===e.offsetWidth)return;let i=t.top<this.offset?this.offset:t.top;i+e.offsetHeight>t.bottom&&(i=t.bottom-e.offsetHeight),n.top=i+"px",this.fixedcenter&&(n.left=t.left+"px",n.right=window.innerWidth-t.right+"px");let r="position:fixed;top:"+n.top+";left:"+n.left+";";n.right&&(r+="right:"+n.right),e.style.cssText!==r&&(e.style.cssText=r)}ngAfterViewInit(){if(this._scrollWatch=this._scrollWatch.bind(this),!bt()&&!window.JSTESTING){if(this.sticky_parent&&(this._el={nativeElement:this._el.nativeElement.parentNode}),this.trynative){let e=this._getSupport();if(e){return void(this._el.nativeElement.style.position=e)}}let e;this._scroller=this.scroller?document.querySelector(this.scroller):this._dserv.overwrite_to_body?window:this._dserv.element,this.scroller&&this.userscrolleroffset&&null===this.offset&&!this._dserv.overwrite_to_body&&(this.offset=this._scroller.getBoundingClientRect().top),null===this.offset&&(this.offset=0),e=!!Wt()&&{passive:!0},e=!1,this._zone.runOutsideAngular((()=>{this._scroller.addEventListener("scroll",this._scrollWatch,e),window.addEventListener("resize",this._scrollWatch,e),this.auto_start&&Ut((()=>{this._el.nativeElement.style.position=this._nativesupport,this._el.nativeElement.top="0px",this._scrollWatch()}))}))}}ngOnDestroy(){this._scroller&&"fixed"==this._nativesupport&&(this._scroller.removeEventListener("scroll",this._scrollWatch),window.removeEventListener("resize",this._scrollWatch))}}ja.ɵfac=function(e){return new(e||ja)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.NgZone),r["ɵɵdirectiveInject"](on))},ja.ɵdir=r["ɵɵdefineDirective"]({type:ja,selectors:[["","ng-sticky",""]],inputs:{scroller:["sticky-scroller","scroller"],offset:["stickyoffset","offset"],fixedcenter:["stickyfull","fixedcenter"],userscrolleroffset:["sticky-scroller-offset","userscrolleroffset"],refresh:["sticky-refresh-toggle","refresh"],enabled:["stickyenabled","enabled"],auto_start:["sticky-auto-start","auto_start"],trynative:["sticky-native","trynative"],sticky_parent:["sticky-parent","sticky_parent"]}});class $a{constructor(e,t,n,i){this._el=e,this._zone=t,this._dscroll=n,this._renderer=i,this.allow_native=!0,this.onPosition=new r.EventEmitter,this._curr_pos="static",this._enabled=!0,this.sticky_parent=!1,this.offset=0,this.force_offset=!1,this._subscriptions=[],this._observables=[],this._native=!1,this._ScrollWatch=this._ScrollWatch.bind(this)}set enabled(e){if(e!==this._enabled){let t=this._el.nativeElement;e?(this._native&&t&&this._renderer.setStyle(t,"position","sticky"),Ut((()=>{this._ScrollWatch()}))):t&&this._renderer.setStyle(t,"position","")}this._enabled=e}get enabled(){return this._enabled}_getSupport(){if(!window.getComputedStyle)return!1;let e=document.createElement("div"),t=["","-webkit-","-moz-","-ms-"],n=null;for(let i=0,r=t.length;i<r;i++){let r=t[i]+"sticky";try{e.style.position=r}catch(e){}if(e.style.position&&e.style.position.indexOf("sticky")>-1){n=r;break}}return n}_ScrollWatch(e){this.enabled&&this._zone.runOutsideAngular((()=>{const t=this._el.nativeElement;if(t)if(this._native){let e=0,n=t.style.top?Pt(t.style.top):0,i=t.offsetTop;if(Mn.subscribe("header:position-change",(t=>{e=t}),(()=>{}),(()=>{}),[r.take(1)]),this.force_offset||e!==n&&0!=i?this._renderer.setStyle(t,"top",e+this.offset+"px"):0==i&&(e=0,this._renderer.setStyle(t,"top",e+this.offset+"px")),this._stickyWayPoint){let e=this._stickyWayPoint.offsetTop,n=this._stickyWayPoint.offsetParent;if(i=t.offsetTop,this._dscroll.overwrite_to_body)for(;n&&n!=this._dscroll.element;)e+=n.offsetTop,n=n.offsetParent;0!==i?i>e?(this.onPosition.emit("sticky"),this._curr_pos="sticky"):(this.onPosition.emit("static"),this._curr_pos="static"):"sticky"==this._curr_pos&&this.onPosition.emit("static")}}else if(this._stickyContainer)if(e){let n=this._stickyContainer.offsetTop,i=this._stickyContainer.offsetParent;for(;i&&i!=this._dscroll.element;)n+=i.offsetTop,i=i.offsetParent;if(e>=n){let e=0;Mn.subscribe("header:position-change",(t=>{e=t}),(()=>{}),(()=>{}),[r.take(1)]),this._renderer.setStyle(t,"top",e+"px"),this._renderer.setStyle(t,"position","fixed"),"static"==this._curr_pos&&(this.onPosition.emit("sticky"),this._curr_pos="sticky")}else this._renderer.setStyle(t,"top",""),this._renderer.setStyle(t,"position",""),"sticky"==this._curr_pos&&(this.onPosition.emit("static"),this._curr_pos="static")}else this._renderer.setStyle(t,"top",""),this._renderer.setStyle(t,"position",""),"sticky"==this._curr_pos&&(this.onPosition.emit("static"),this._curr_pos="static")}))}ngAfterViewInit(){if(!bt()&&!_t()){if(this.sticky_parent&&(this._el={nativeElement:this._el.nativeElement.parentNode}),this._native=!!this.allow_native&&this._getSupport(),this.enabled&&this._el.nativeElement&&this._renderer.setStyle(this._el.nativeElement,"position",this._native?"sticky":""),this._native){if(this._stickyWayPoint=document.createElement("div"),this._stickyWayPoint.classList.add("sticky-waypoint"),this._el.nativeElement){let e=this._el.nativeElement;e.parentNode.insertBefore(this._stickyWayPoint,e)}}else{this._stickyContainer=document.createElement("div"),this._stickyContainer.classList.add("sticky-container");let e=this._el.nativeElement.getBoundingClientRect();this._stickyContainer.style.height=e.height+"px";let t=this._el.nativeElement;t.parentNode.insertBefore(this._stickyContainer,t),this._stickyContainer.appendChild(this._el.nativeElement)}this._observables.push(r.fromEvent(window,"resize")),this._observables.forEach((e=>{this._subscriptions.push(e.subscribe((()=>{if(this._stickyContainer){let e=this._el.nativeElement.getBoundingClientRect();this._stickyContainer.style.height=e.height+"px"}this._ScrollWatch()})))})),this._subscriptions.push(this._dscroll.onScroll.subscribe((e=>{this._ScrollWatch(e)}))),this._ScrollWatch()}}ngOnDestroy(){if(this._subscriptions.forEach((e=>{e.unsubscribe()})),this._observables=[],this._stickyContainer){this._stickyContainer.after(this._el.nativeElement);try{this._stickyContainer.parentNode.removeChild(this._stickyContainer)}catch(e){}this._stickyContainer=null}if(this._stickyWayPoint){try{this._stickyWayPoint.parentNode.removeChild(this._stickyWayPoint)}catch(e){}this._stickyWayPoint=null}}}$a.ɵfac=function(e){return new(e||$a)(r["ɵɵdirectiveInject"](r.ElementRef),r["ɵɵdirectiveInject"](r.NgZone),r["ɵɵdirectiveInject"](on),r["ɵɵdirectiveInject"](r.Renderer2))},$a.ɵdir=r["ɵɵdefineDirective"]({type:$a,selectors:[["","ng-position-sticky",""]],inputs:{allow_native:["native","allow_native"],enabled:"enabled",sticky_parent:["sticky-parent","sticky_parent"],offset:["stickyoffset","offset"],force_offset:["force-offset","force_offset"]},outputs:{onPosition:"onPosition"}});class Ua{}Ua.ɵfac=function(e){return new(e||Ua)},Ua.ɵmod=r["ɵɵdefineNgModule"]({type:Ua}),Ua.ɵinj=r["ɵɵdefineInjector"]({imports:[r.CommonModule]});const Wa=["urlText"];function Ha(e,t){1&e&&r["ɵɵelement"](0,"div",4)}function Ga(e,t){1&e&&(r["ɵɵelementStart"](0,"div",5),r["ɵɵtext"](1,"Link copied to clipboard."),r["ɵɵelementEnd"]())}function qa(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementStart"](0,"div",6),r["ɵɵlistener"]("onTap",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.closeDialog())})),r["ɵɵtext"](1,"Close"),r["ɵɵelementEnd"]()}}function Ka(e,t){if(1&e){const e=r["ɵɵgetCurrentView"]();r["ɵɵelementContainerStart"](0),r["ɵɵelementStart"](1,"div",7),r["ɵɵtext"](2,"Share"),r["ɵɵelementEnd"](),r["ɵɵelementStart"](3,"div",8)(4,"span",9),r["ɵɵlistener"]("onTap",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.OpenUrl(t.data.fblink))})),r["ɵɵelement"](5,"i",10),r["ɵɵelementStart"](6,"span"),r["ɵɵtext"](7,"Facebook"),r["ɵɵelementEnd"]()(),r["ɵɵelementStart"](8,"span",9),r["ɵɵlistener"]("onTap",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.OpenUrl(t.data.twlink))})),r["ɵɵelement"](9,"i",11),r["ɵɵelementStart"](10,"span"),r["ɵɵtext"](11,"Twitter"),r["ɵɵelementEnd"]()(),r["ɵɵelementStart"](12,"span",9),r["ɵɵlistener"]("onTap",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.OpenUrl(t.data.inlink))})),r["ɵɵelement"](13,"i",12),r["ɵɵelementStart"](14,"span"),r["ɵɵtext"](15,"LinkedIn"),r["ɵɵelementEnd"]()(),r["ɵɵelementStart"](16,"a",13),r["ɵɵelement"](17,"i",14),r["ɵɵelementStart"](18,"span"),r["ɵɵtext"](19,"Email"),r["ɵɵelementEnd"]()()(),r["ɵɵelementStart"](20,"div",15),r["ɵɵelement"](21,"textarea",16,17),r["ɵɵelementStart"](23,"span",18),r["ɵɵlistener"]("onTap",(function(){r["ɵɵrestoreView"](e);const t=r["ɵɵnextContext"]();return r["ɵɵresetView"](t.CopyUrl())})),r["ɵɵtext"](24,"copy"),r["ɵɵelementEnd"]()(),r["ɵɵelementContainerEnd"]()}if(2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](16),r["ɵɵproperty"]("href",e.email,r["ɵɵsanitizeUrl"])("zing-url",!0),r["ɵɵadvance"](5),r["ɵɵproperty"]("value",e.data.link)}}const Za=["shareBox"];function Qa(e,t){if(1&e&&(r["ɵɵelementStart"](0,"span",10),r["ɵɵtext"](1),r["ɵɵelementEnd"]()),2&e){const e=r["ɵɵnextContext"]();r["ɵɵadvance"](1),r["ɵɵtextInterpolate"](e.shares_count)}}function Ya(e,t){1&e&&r["ɵɵelement"](0,"modal-dialog",null,11)}class Xa{constructor(){this.width=575,this.height=400}ngOnInit(){this.email=`mailto:?subject=${encodeURIComponent(this.data.title)}&body=`,this.email+=encodeURIComponent(`From WalletHub:\n${this.data.title}\n${this.data.link}?utm_source=emailshare`)}CopyUrl(){let e=this.urlText.nativeElement;if(navigator.userAgent.match(/ipad|ipod|iphone/i)){let t=e.contentEditable;e.contentEditable="true";let n=document.createRange();n.selectNodeContents(e);let i=window.getSelection();i.removeAllRanges(),i.addRange(n),e.setSelectionRange(0,999999),e.contentEditable=t}else e.select();document.execCommand("copy"),e.blur(),setTimeout((()=>{this.link_copied=!0}),100)}OpenUrl(e){let t=(window.innerWidth-this.width)/2,n=(window.innerHeight-this.height)/2,i="status=1,width="+this.width+",height="+this.height+",top="+n+",left="+t;window.open(e,"whpopup",i)}}Xa.ɵfac=function(e){return new(e||Xa)},Xa.ɵcmp=r["ɵɵdefineComponent"]({type:Xa,selectors:[["social-shareov"]],viewQuery:function(e,t){if(1&e&&r["ɵɵviewQuery"](Wa,5),2&e){let e;r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.urlText=e.first)}},hostVars:2,hostBindings:function(e,t){2&e&&r["ɵɵclassProp"]("edu-ss-copied",t.link_copied)},decls:4,vars:4,consts:[["class","edu-ss-link-cpy ng-enter-element",4,"ngIf"],["class","edu-ss-title ng-enter-element",4,"ngIf"],["class","edu-ss-link-cpy-bt btn fixed-w-b ng-enter-element","zing-touch","",3,"onTap",4,"ngIf"],[4,"ngIf"],[1,"edu-ss-link-cpy","ng-enter-element"],[1,"edu-ss-title","ng-enter-element"],["zing-touch","",1,"edu-ss-link-cpy-bt","btn","fixed-w-b","ng-enter-element",3,"onTap"],[1,"edu-ss-title"],[1,"edu-ss-links-bt-box"],["zing-touch","",1,"edu-ss-ln-bt",3,"onTap"],[1,"edu-ss-ln-ic","bf-icon-social-fbk"],[1,"edu-ss-ln-ic","bf-icon-social-tw"],[1,"edu-ss-ln-ic","bf-icon-social-in"],["zing-touch","","target","_system",1,"edu-ss-ln-bt",3,"href","zing-url"],[1,"edu-ss-ln-ic","bf-icon-social-email"],[1,"edu-copy-url"],[1,"edu-cpu-txt",3,"value"],["urlText",""],["zing-touch","",1,"edu-cpu-bt","semi-bold-font",3,"onTap"]],template:function(e,t){1&e&&(r["ɵɵtemplate"](0,Ha,1,0,"div",0),r["ɵɵtemplate"](1,Ga,2,0,"div",1),r["ɵɵtemplate"](2,qa,2,0,"div",2),r["ɵɵtemplate"](3,Ka,25,3,"ng-container",3)),2&e&&(r["ɵɵproperty"]("ngIf",t.link_copied),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.link_copied),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",t.link_copied),r["ɵɵadvance"](1),r["ɵɵproperty"]("ngIf",!t.link_copied))},dependencies:[r.NgIf,Jt],encapsulation:2});class Ja{constructor(e){this._loc=e,this.shares_count=0,this.is_web=!1,this.width=575,this.height=400}ngOnInit(){this.is_web=!bt();let e=encodeURIComponent(this.url||`https://wallethub.com${this._loc.path()}`),t=encodeURIComponent((this.title||"Wallethub").replace(/ /g,"+"));ti.getKey("fb_app_id"),this.fblink=`https://www.facebook.com/share.php?display=popup&skip_api_login=1&u=${e}&title=${t}`,this.twlink=`https://twitter.com/intent/tweet?text=${t}+${e}+${encodeURIComponent("via+@WalletHub")}`,this.inlink=`https://www.linkedin.com/shareArticle?mini=true&source=WalletHub&url=${e}&title=${t}`,bt()||pt()||!this.float_shares||qn({method:"GET",url:"https://opensharecount.com/count.json",query:{url:`https://wallethub.com${this._loc.path()}`}}).then((e=>{e&&kt(e.count)?this.shares_count=e.count:this.shares_count=0})).catch((()=>{this.shares_count=0}))}ngOnDestroy(){this.eventresize&&(this.eventresize=null),this.subsresize&&this.subsresize.unsubscribe()}OpenShare(){this.shareBox.Open(Xa,{fblink:this.fblink,twlink:this.twlink,inlink:this.inlink,link:this.url||`https://wallethub.com${this._loc.path()}`,title:this.title}),this.eventresize=r.fromEvent(window,"resize"),this.subsresize=this.eventresize.subscribe((()=>{this.shareBox.Close(),setTimeout((()=>{this.eventresize&&(this.eventresize=null),this.subsresize&&this.subsresize.unsubscribe()}))}))}OpenUrl(e){let t=(window.innerWidth-this.width)/2,n=(window.innerHeight-this.height)/2,i="status=1,width="+this.width+",height="+this.height+",top="+n+",left="+t;window.open(e,"whpopup",i)}}Ja.ɵfac=function(e){return new(e||Ja)(r["ɵɵdirectiveInject"](r.Location))},Ja.ɵcmp=r["ɵɵdefineComponent"]({type:Ja,selectors:[["social-share"]],viewQuery:function(e,t){if(1&e&&r["ɵɵviewQuery"](Za,5),2&e){let e;r["ɵɵqueryRefresh"](e=r["ɵɵloadQuery"]())&&(t.shareBox=e.first)}},hostVars:4,hostBindings:function(e,t){2&e&&r["ɵɵclassProp"]("edu-ss-float",t.float_shares&&t.shares_count)("edu-ss-shares-static",t.shares_count)},inputs:{title:"title",url:"url",float_shares:["float-shares","float_shares"]},decls:10,vars:2,consts:[["class","edu-ss-link edu-ss-shares-link ng-enter-element","data-after","shares",4,"ngIf"],["tabindex","0","aria-label","Share on Facebook","zing-touch","",1,"edu-ss-link","edu-ss-fb",3,"onTap"],["aria-hidden","true","tabindex","-1",1,"bf-icon-social-fbk"],["tabindex","0","aria-label","Share on Twitter","zing-touch","",1,"edu-ss-link","edu-ss-tw",3,"onTap"],["tabindex","-1","aria-hidden","true",1,"bf-icon-social-tw"],["tabindex","0","aria-label","Share on LinkedIn","zing-touch","",1,"edu-ss-link","edu-ss-in",3,"onTap"],["tabindex","-1","aria-hidden","true",1,"bf-icon-social-in"],["tabindex","0","aria-label","Share via Email","zing-touch","",1,"edu-ss-link","edu-ss-email",3,"onTap"],["tabindex","-1","aria-hidden","true",1,"bf-icon-social-email"],[4,"ngIf"],["data-after","shares",1,"edu-ss-link","edu-ss-shares-link","ng-enter-element"],["shareBox",""]],template:function(e,t){1&e&&(r["ɵɵtemplate"](0,Qa,2,1,"span",0),r["ɵɵelementStart"](1,"button",1),r["ɵɵlistener"]("onTap",(function(){return t.OpenUrl(t.fblink)})),r["ɵɵelement"](2,"em",2),r["ɵɵelementEnd"](),r["ɵɵelementStart"](3,"button",3),r["ɵɵlistener"]("onTap",(function(){return t.OpenUrl(t.twlink)})),r["ɵɵelement"](4,"em",4),r["ɵɵelementEnd"](),r["ɵɵelementStart"](5,"button",5),r["ɵɵlistener"]("onTap",(function(){return t.OpenUrl(t.inlink)})),r["ɵɵelement"](6,"em",6),r["ɵɵelementEnd"](),r["ɵɵelementStart"](7,"button",7),r["ɵɵlistener"]("onTap",(function(){return t.OpenShare()})),r["ɵɵelement"](8,"em",8),r["ɵɵelementEnd"](),r["ɵɵtemplate"](9,Ya,2,0,"modal-dialog",9)),2&e&&(r["ɵɵproperty"]("ngIf",t.float_shares&&t.shares_count),r["ɵɵadvance"](9),r["ɵɵproperty"]("ngIf",t.is_web))},dependencies:[r.NgIf,Jt,uo],encapsulation:2});class el{}el.ɵfac=function(e){return new(e||el)},el.ɵmod=r["ɵɵdefineNgModule"]({type:el}),el.ɵinj=r["ɵɵdefineInjector"]({imports:[r.CommonModule,Pn,ho,Ua]});class tl{constructor(){this.template="v1",this.permanent_sticky=!1,this.no_shares=!1,this.social_shares=!1,this.sticky_social=!1,this.is_floating=!1}ngOnInit(){if(!bt())if(this.permanent_sticky)this.sticky_social=!0,this.social_shares=!1;else{this._windowobs=r.fromEvent(window,"resize"),this._windowsubs=this._windowobs.subscribe((()=>{let e=window.innerWidth;this.sticky_social=e<=767}));let e=window.innerWidth;this.sticky_social=e<=767}}ngOnDestroy(){this._windowobs&&(this._windowsubs.unsubscribe(),this._windowobs=null)}SocialFloating(e){this.no_shares||(this.social_shares="sticky"==e),this.is_floating="sticky"==e}}tl.ɵfac=function(e){return new(e||tl)},tl.ɵcmp=r["ɵɵdefineComponent"]({type:tl,selectors:[["",8,"social-share-box"]],hostVars:2,hostBindings:function(e,t){2&e&&r["ɵɵclassProp"]("ss-box-float",t.is_floating)},inputs:{title:"title",template:"template",permanent_sticky:["sticky","permanent_sticky"],no_shares:["no-shares","no_shares"]},attrs:["class","social-share-box"],decls:1,vars:6,consts:[["ng-position-sticky","",3,"title","float-shares","enabled","sticky-parent","onPosition"]],template:function(e,t){1&e&&(r["ɵɵelementStart"](0,"social-share",0),r["ɵɵlistener"]("onPosition",(function(e){return t.SocialFloating(e)})),r["ɵɵelementEnd"]()),2&e&&(r["ɵɵclassProp"]("social-share-mobile-only","v1"==t.template),r["ɵɵproperty"]("title",t.title)("float-shares",t.social_shares)("enabled",t.sticky_social)("sticky-parent",!0))},dependencies:[$a,Ja],encapsulation:2});class nl{}nl.ɵfac=function(e){return new(e||nl)},nl.ɵmod=r["ɵɵdefineNgModule"]({type:nl}),nl.ɵinj=r["ɵɵdefineInjector"]({imports:[r.CommonModule,Ua,el]}),e.$http=qn,e.$httpAbort=Kn,e.AppContainer=Xn,e.AppData=ti,e.AppModule=Fa,e.Cookies=Wn,e.DirectivesModule=Pn,e.EduHepful=Ra,e.EduShareBox=tl,e.ErrorToastComponent=ka,e.ErrorsModule=Pa,e.Events=Mn,e.FormSubmit=Aa,e.FormSubmitModule=La,e.ImageLoader=Po,e.ImageLoaderModule=Co,e.NgEduHepfulModule=Ba,e.NgEduShareUIModule=nl,e.RavenJs=rs,e.RavenRequestFail=function(e,t,n,i="warning"){const r=pt();rs().then((s=>{Rt(e.status,[-1,-999,-10,400])||e.status&&e.status>=500||(e.status&&(t+="; status: "+e.status),r?console.warn(t):s.withScope((r=>{switch(r.setExtras({details:JSON.stringify(e),params:n?JSON.stringify(n):null,path:window.location.pathname||window.location.href}),i){case"critical":r.setLevel(s.Severity.Critical);break;case"error":r.setLevel(s.Severity.Error);break;default:r.setLevel(s.Severity.Warning);break;case"info":r.setLevel(s.Severity.Info);break;case"debug":r.setLevel(s.Severity.Debug)}s.captureMessage(t)})))}))},e.Sanitize=mn,e.ScrollerService=on,e.StickerModule=Ua,e.TouchGestures=Jt,e.ajaxUrl=zn,e.arrayForEach=Nt,e.baseUrl=Fn,e.cleanInput=ei,e.injectModuleAsync=So,e.isAny=Rt,e.isArray=Tt,e.isCordova=gt,e.isNode=bt,e.isNullorUndefined=Bt,e.isObject=Ft,e.isWeb=mt,e.ngAriaLive=On,e.ngAttribute=gn,e.ngCleanBind=yn,e.ngCleanHTML=bn,e.ngFocus=ni,e.ngFocusModule=ii,e.ngHidden=pn,e.ngModalDialog=uo,e.ngModalsModule=ho,e.ngSpeak=xn,e.ngZenScroll=ln,e.objectForEach=Lt,e.objectFromParam=function(e,t=null,n=!1){let i={};return e.split("&").forEach((e=>{const[r,s]=e.split("=");if(void 0!==s){let e=t;try{e=""===r?s:decodeURIComponent(s)}catch(e){}n?(i.params||(i.params={},i.paramstring=""),i.params[r]=e,i.paramstring&&(i.paramstring+="&"),i.paramstring+=`${r}=${s}`):i[r]=e}else r&&(n?(i.nulls||(i.nulls={}),i.nulls[r]=t):i[r]=t)})),i},e.objectSerialize=At,e.reqAnimationFrame=Ut,e.stringGetDigits=Ot,e.toNumber=Pt,e.trim=St,e.uniqid=$t}));