var__extends=this&&this.__extends||function(){vare=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(e,t){e.__proto__=t}||function(e,t){for(varoint)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};returnfunction(t,o){functionn(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,newn)}}(),Exception=function(e){functiont(t){varo=e.call(this,t)||this;returno.message=t,o.name="Exception",o.message=t,o}return__extends(t,e),t.prototype.toString=function(){return"["+this.name+']: "'+this.message+'"'},t}(Error),EInvalidHtmlElement=function(e){functiont(t){varo=e.call(this,t)||this;returno.message=t,o.name="EInvalidHtmlElement",o}return__extends(t,e),t}(Exception),Hnd;!function(e){vart=function(){functione(){}returne}();e.AppOptions=t;varo=function(){functione(){}returne}();e.AppEvents=o;varn=function(){functione(e){this.DEFAULTS={animationDelay:200,elHeadroom:"header",elMask:".mask",elModal:"#hndModal",elSearchForm:"#search-form",elSearchInfo:"#search-info",elSearchInput:"#input-search",elToggler:".hnd-toggle",elTopicContainer:"article",elTopicContent:"#topic-content",elTreeContainers:".tree-container",elTreeSearch:"#search-tree",classNavExpandedSmall:"sm-nav-expanded",classNavExpandedMedium:"md-nav-expanded"},this.EVENTS={onTopicChanged:null},this.TRANSLATIONS={"Search term too short":"Search term too short","No results":"No results","Please enter 3 or more characters":"Please enter 3 or more characters","Word list not ready yet. Please wait until the word list is fully downloaded":"Word list not ready yet. Please wait until the word list is fully downloaded","Incorrect or corrupt search data. Please check your HelpNDoc template":"Incorrect or corrupt search data. Please check your HelpNDoc template","Related topics...":"Related topics...","Loading...":"Loading...",Close:"Close"},this.options=$.extend({},this.DEFAULTS,e),this.Init()}returne.prototype._=function(e){vart=this.TRANSLATIONS[e];returnt||e},e.prototype.doOnJsTreeError=function(e,t){console.error("JSTree Error",t);varo=e.find(".jstree-loading");o&&(t.error&&"ajax"==t.error?o.html('<strong>Loading Error</strong>: Please make sure your web-server is correctly configured to serve JSON files. <a href="https://www.helpndoc.com/sites/default/files/documentation/html/Tableofcontentsisemptyorloadingi.html">Learn more...</a>'):o.html("<strong>Error</strong>: please check your web-developer console for more information."))},e.prototype.doOnTopicChanged=function(e){this.EVENTS.onTopicChanged&&("string"==typeofe&&""!==e||(e=$(this.options.elTopicContent).data("hnd-id")+".html"),this.EVENTS.onTopicChanged(e))},e.prototype.doProcessParameters=function(){vare=URI(location.href),t=e.search(!0);t.tab&&""!=t.tab&&$("#tab-"+t.tab).tab("show"),t.search&&void0!==t.search&&""!=t.search&&(this.$elSearchInput.val(t.search),this.$elSearchInput.keyup(),this.$elSearchForm.submit())},e.prototype.fixURI=function(e){returne.replace(/\%u00A0/g,"%20")},e.prototype.getAnchor=function(){returnwindow.location.hash.substr(1)},e.prototype.isExternalLink=function(e){vart=function(e){return0===e.indexOf("//")&&(e=location.protocol+e),e.toLowerCase().replace(/([a-z])?:\/\//,"$1").split("/")[0]};return(e.indexOf(":")>-1||e.indexOf("//")>-1)&&t(location.href)!==t(e)||-1==["htm","html"].indexOf(newURI(e).suffix().toLowerCase())},e.prototype.DoShowExternalUrl=function(e,t,o){"mailto:"==t.substring(0,7).toLowerCase()?location.href=t:window.open(t,o)},e.prototype.DoShowTopic=function(e,t,o){varn=this;this.$elTopicContainer.load(o+" "+this.options.elTopicContent,function(e,r,i){vara=$(n.options.elTopicContent),s=a.data("hnd-id");if(window.history.pushState({id:s,title:t},t,o),"undefined"!=typeofga&&ga)try{if(void0!==ga.getAll&&ga.getAll&&ga.getAll()[0]){ga.getAll()[0].send("pageview",location.pathname)}elsega("send","pageview",location.pathname)}catch(e){console.error("[HND-APP] An error occurred while using Google Analytics tracking code =>",e.toString())}n.SelectTopicInToc(s,t,!1),n