function fixHTMLForMessage(n){return"undefined"==typeof n||null===n||n===""?"":(n=n.toString().trim(),n==="")?"":n.replace("<!DOCTYPE html>","").replace("<!doctype html>","").replace(/<html/ig,"<div class='q-html'").replace(/\/html>/ig,"/div>").replace(/<head/ig,"<div class='q-head' style='margin:0;padding:0;'").replace(/\/head>/ig,"/div>").replace(/<body/ig,"<div class='q-body' style='margin:0;padding:0;'").replace(/\/body>/ig,"/div>").replace(/<header/ig,"<div class='q-header' style='margin:0;padding:0;'").replace(/\/header>/ig,"/div>").replace(/<footer/ig,"<div class='q-footer' style='margin:0;padding:0;'").replace(/\/footer>/ig,"/div>").replace(/<script/ig,"<div style='display:none;'").replace(/\/script>/ig,"/div>").replace("body{",".q-body{").replace("body {",".q-body{").replace("a:link",".q-body a:link").replace(",a",",.q-body a").replace("a:hover",".q-body a:hover").replace("h1{",".q-body h1{").replace("h2{",".q-body h2{").replace("h3{",".q-body h3{text-align:center;").replace("h4{",".q-body h4{").replace("code{",".q-body code{").replace("pre{",".q-body pre{").replace("ul,ol{",".q-body ul,.q-body ol{").replace("#header",".q-body #header").replace("#content{margin:0 0 0 2%;",".q-body #content{margin:0;").replace(",.content-container{",",.q-body .content-container{text-align:left !important;width:100% !important;margin:0 !important;").replace("\n.content-container","\n.q-body .content-container").replace("table{",".q-body table{").replace("td,th{",".q-body td,.q-body th{").replace("\ntable tr","\n.q-body table tr").replace(",table tr",",.q-body table tr").replace("\nth{","\n.q-body th{").replace("\nthead th{","\n.q-body thead th{").replace("\n.clear{","\n.q-body .clear{").replace("\nul.first,ol.first{","\n.q-body ul.first,.q-body ol.first{").replace("\nfieldset{","\n.q-body fieldset{").replace("\nlegend","\n.q-body legend").replace("font-size:.7em","font-size:12px").replace("\n.preferred","\n.q-body .preferred").replace("\n.highlight-code","\n.q-body .highlight-code").replace("\n.summary-container","\n.q-body .summary-container").replace(/container/g,"cntainer").replace(/cntent/g,"cntent").replace("margin: 20vh 0","").replace("href="," href='javascript:void(0);' q-href=").replace("onclick=","q-onclick=")}function jqXHR_getSafeErrorHTMLResponseText(n,t){var h="jqXHR_getSafeErrorHTMLResponseText()",o,f,s,u;if("undefined"==typeof n||null===n)return"";("undefined"==typeof t||null===t)&&(t="html");var i="",r="",e=0;if("string"==typeof n)i=n;else{if("undefined"==typeof n.responseType){if("string"!=typeof n.responseText&&"string"!=typeof n.responseJSON)return"";r="string"==typeof n.responseJSON&&null!==n.responseJSON&&""!==n.responseJSON?"json":"text"}else r=n.responseType;"number"==typeof n.status&&(e=n.status);switch(r){case"":case"text":if("string"==typeof n.responseText)try{i=n.responseText.toString().trim()}catch(c){return"[ "+h+" parser error 20:] failed to parse server response ! [ responseType: "+r+" ]"}else i="Status ["+e+"]. Network/Server error. [ responseType: "+r+"] ";break;case"json":"string"==typeof n.responseJSON&&(i=n.responseJSON);i="Status ["+e+"]. Network/Server error. [ responseType: "+r+"] "+i}}if(i.length<1)return"";o="";f=i.indexOf("<!DOCTYPE html>");f>0&&(o=i.substr(0,f)+"<hr />",i=i.substring(f));switch(t){case"text":return"<xmp>\n"+i+"\n<\/xmp>";case"body":try{s=(new DOMParser).parseFromString(i,"text/html");u=$(s).find("body");u.find("header").remove();u.find("footer").remove();u.find("script").remove();u.find("link").remove();i=u.html()}catch(c){}break;case"html":i=i.removeHTMLTags("header").removeHTMLTags("footer").removeHTMLTags("script").removeHTMLTags("link").replaceHTMLTag("pre","div")}return"\n"+fixHTMLForMessage(o+i)+"\n"}function getRandomInt(n,t){return Math.round(Math.random()*(t-n))+n}function addJQExtends(n,t){if("undefined"==typeof t||null===t?t=1:(t=parseInt(t,0),isNaN(t)&&(t=1)),!(20<t)){if("undefined"==typeof n||null===n){setTimeout(function(){addJQExtends(n,t+1)},10);return}if("undefined"==typeof window.isDbg||!window.isDbg){n.fn.addBindInfo=function(){return this};n.fn.setBindInfo=function(){return this};n.fn.getBindInfo=function(){return[]};return}n.fn.addBindInfo=function(t){return this.each(function(){try{if("function"!=typeof this.setAttribute)return;var i=n(this),r="data-bind-info";i.attr(r,(i.attr(r)?i.attr(r)+"; ":"")+t)}catch(u){ztorx.trace("$.fn.addBindInfo() err: 200: v:",t);ztorx.trace("$.fn.addBindInfo() :",u);ztorx.trace("$.fn.addBindInfo() :",this)}})};n.fn.setBindInfo=function(t){return this.each(function(){try{if("function"!=typeof this.setAttribute)return;var i=n(this);i.attr("data-bind-info",t)}catch(r){ztorx.trace("$.fn.setBindInfo() err: 200: v:",t);ztorx.trace("$.fn.setBindInfo() :",r);ztorx.trace("$.fn.setBindInfo() :",this)}})};n.fn.getBindInfo=function(t){var i=[];return this.each(function(){try{if("function"!=typeof this.setAttribute)return i;var r=n(this);i.push(r.attr("data-bind-info",t))}catch(u){ztorx.trace("$.fn.getBindInfo() err: 200: v:",t);ztorx.trace("$.fn.getBindInfo() :",u);ztorx.trace("$.fn.getBindInfo() :",this)}}),i};n.fn.removeClassLike=function(n){if("undefined"!=typeof this.className)return this.removeClass(function(t,i){var r=n.replace(/\*/g,"\\S+");return(i.match(new RegExp("\\b"+r+"","g"))||[]).join(" ")})};n.fn.removeClasses=function(t){return this.each(function(){var r,i;if("undefined"!=typeof this.className&&"undefined"!=typeof t&&null!==t&&("string"==typeof t&&(t=t.indexOf(" ")>-1?t.split(" "):t.indexOf(",")>-1?t.split(","):[].push(t)),Array.isArray(t)&&!(t.length<1))){if("undefined"==typeof this.className){ztorx.trace("$.fn.removeClasses() err: 100: not DOM element!",this);return}for(r=n(this),i=0;i<t.length;i++)"undefined"!=typeof t[i]&&null!==t[i]&&""!==t[i]&&r.removeClass(t[i])}})}}}var _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol?"symbol":typeof n};try{window.isDebug&&console.log("-> main.js 1.33")}catch(e){}String.prototype.format=function(){var n=arguments;return this.replace(/{(\d+)}/g,function(t,i){return typeof n[i]!="undefined"?n[i]:t})};String.prototype.contains||(String.prototype.contains=function(n){return this.indexOf(n)!==-1});String.prototype.startsWith||(String.prototype.startsWith=function(n,t){return t=t||0,this.substr(t,n.length)===n});String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};String.prototype.left=function(n,t){return"undefined"==typeof n||null===n||1>n?"":(("undefined"==typeof t||null===t)&&(t=""),n>=this.length)?this:this.substr(0,n)+t};String.prototype.right=function(n,t){return"undefined"==typeof n||null===n||1>n?"":(("undefined"==typeof t||null===t)&&(t=""),n>=this.length)?this:t+this.substr(this.length-n)};String.prototype.removeHTMLTags=function(n,t,i){var u,r,f,e;if(("undefined"==typeof t||null===t||1>t)&&(t=1e6),"undefined"==typeof i||null===i?i=1:(i=parseInt(i,0),isNaN(i)&&(i=1)),!(i>t)){if("undefined"==typeof this||null===this)return"";if("undefined"==typeof n||null===n)return this;if(u=this.trim(),u==="")return"";if(n=n.toLowerCase(),r=u.indexOf("<"+n+" "),r===-1&&(r=u.indexOf("<"+n+">")),r===-1&&(r=u.indexOf("<"+n.toUpperCase()+" ")),r===-1&&(r=u.indexOf("<"+n.toUpperCase()+">")),r===-1)return u;f=-1;switch(n){case"br":case"link":case"meta":f=u.indexOf(">",r);f>-1&&(f=f+1);break;default:f=u.indexOf("/"+n+">");f===-1&&(f=u.indexOf("/"+n.toUpperCase()+">"));f=f===-1?u.length-1:f+n.length+2}return(f>u.length-1&&(f=u.length-1),e="",r>0&&(e=u.substring(0,r)),f<u.length-1&&(e+=u.substring(f)),r=e.indexOf("<"+n+" "),r===-1&&(r=e.indexOf("<"+n+">")),r===-1&&(r=e.indexOf("<"+n.toUpperCase()+" ")),r===-1&&(r=e.indexOf("<"+n.toUpperCase()+">")),r>-1)?e.removeHTMLTags(n,t,i+1):e}};String.prototype.replaceHTMLTag=function(n,t,i){var r=this.trim(),u;return r===""?"":(("undefined"==typeof i||null===i)&&(i=""),u=RegExp("<\\s*("+n+")(\\s+[^>]*|\\s*)>","ig"),r=r.replace(u,"<"+t+(i!==""?" "+i:" $2")+" data-oldtag='$1'>"),u=RegExp("<\\s*/\\s*"+n+"\\s*>","ig"),r.replace(u,"<\/"+t+">"))};typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(n){"use strict";var u,i,t,r;if(n===null)throw new TypeError("Cannot convert undefined or null to object");for(u=Object(n),i=1;i<arguments.length;i++)if(t=arguments[i],t!==null)for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(u[r]=t[r]);return u},writable:!0,configurable:!0});try{window.isDebug&&console.log("-> main_clientonly.js 1.5")}catch(e){}var gvideo=gvideo||{},MEDIA_ERR_ABORTED=1,MEDIA_ERR_NETWORK=2,MEDIA_ERR_DECODE=3,MEDIA_ERR_SRC_NOT_SUPPORTED=4,VIDEO_READY_STATE_HAVE_NOTHING=0,VIDEO_READY_STATE_HAVE_METADATA=1,VIDEO_READY_STATE_HAVE_CURRENT_DATA=2,VIDEO_READY_STATE_HAVE_FUTURE_DATA=3,VIDEO_READY_STATE_HAVE_ENOUGH_DATA=4;gvideo.isPlaing=function(n){if("object"!==(typeof n=="undefined"?"undefined":_typeof(n))||null===n)return!1;return!n.paused&&!n.ended&&n.readyState>VIDEO_READY_STATE_HAVE_CURRENT_DATA};gvideo.isEmptyOrError=function(n){if("object"!==(typeof n=="undefined"?"undefined":_typeof(n))||null===n)return console.log("gvideo.isEmptyOrError() ERR: 10: [v] null/undef. !"),!0;try{if(n.getAttribute("src")==="")return console.log("gvideo.isEmptyOrError() ERR: 20: src is EMPTY!"),!0}catch(t){return console.log("gvideo.isEmptyOrError() ERR: 25: v:",n),!0}return null!==n.error&&4===n.error.code?(console.log("gvideo.isEmptyOrError() ERR: 30: has error !",n.error),!0):!1};gvideo.play=function(n,t){if("object"!==(typeof n=="undefined"?"undefined":_typeof(n))||null===n)return console.log("gvideo.play() err: 10: invalid [v]",n),!1;if(gvideo.isPlaing(n))return console.log("gvideo.play() ERR: 20: is Playing."),"function"==typeof t&&t(),!1;if(gvideo.isEmptyOrError(n))return!1;try{!n.paused&&!n.seeking&&n.readyState<VIDEO_READY_STATE_HAVE_CURRENT_DATA&&n.load()}catch(i){console.log("gvideo.play() 135: ERR: --- LOAD VIDEO Failed. ",i.description)}try{n.playPromise=n.play()}catch(i){console.log("gvideo.play() 265: ERR: --- Failed to set v.playPromise()")}return!1};gvideo.pause=function(n,t){if("object"!==(typeof n=="undefined"?"undefined":_typeof(n))||null===n)return!1;if(!gvideo.isPlaing(n))return"function"==typeof t&&t(),!1;try{n.pause()}catch(i){console.log("gvideo.pause() 265: ERR: --- Failed to v.pause()")}return"function"==typeof t&&t(),!0};gvideo.toggle=function(n){return"object"!==(typeof n=="undefined"?"undefined":_typeof(n))||null===n?!1:"function"!=typeof n.play?!1:gvideo.isEmptyOrError(n)?!1:gvideo.isPlaing(n)?(setTimeout(function(){gvideo.pause(n)},1),!1):(setTimeout(function(){gvideo.play(n)},1),!0)};window.isTouchDevice=function(){return!!("ontouchstart"in window)};window.isSmallDevice=function(){return window.matchMedia("only screen and (max-width: 760px)").matches};window.isMobile=function(){return/iphone|ipad|ipod|android|blackberry|fennec|nokia|mobile|windows phone|webos|nexus/i.test(navigator.userAgent)};window.isOnScreen=function(n){var t=n.offset(),i=t.top-$(window).scrollTop(),r=$(window).height();return i>r?!1:!0}