/** * crisp-client * @version v2.12.1 0a15717 * @author Crisp IM SAS * @date 1/4/2024 */ (function(){try{var g={},t=new function(){var t,i,n,e,s,c,a;try{this.ns="CrispLibrary";var r={},h=g;function oi(t,i){return function(t){if(Array.isArray(t))return t}(t)||function(t,i){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var e,s,c,a,r=[],o=!0,h=!1;try{if(c=(n=n.call(t)).next,0===i){if(Object(n)!==n)return;o=!1}else for(;!(o=(e=c.call(n)).done)&&(r.push(e.value),r.length!==i);o=!0);}catch(t){h=!0,s=t}finally{try{if(!o&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(h)throw s}}return r}}(t,i)||o(t,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hi(t,i){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=o(t))||i&&t&&"number"==typeof t.length){function e(){}n&&(t=n);var s=0;return{s:e,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,r=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){r=!0,c=t},f:function(){try{a||null==n.return||n.return()}finally{if(r)throw c}}}}function o(t,i){if(t){if("string"==typeof t)return l(t,i);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,i):void 0}}function l(t,i){(null==i||i>t.length)&&(i=t.length);for(var n=0,e=new Array(i);n/g,">").replace(/"/g,""");return i===""+t?t:i},o.rethrow=function i(n,t,e,s){if(!(n instanceof Error))throw n;if(!("undefined"==typeof window&&t||s))throw n.message+=" on line "+e,n;try{s=s||r("fs").readFileSync(t,"utf8")}catch(t){i(n,null,e)}var c=s.split("\n"),a=Math.max(e-3,0),s=Math.min(c.length,e+3),s=c.slice(a,s).map(function(t,i){i=i+a+1;return(i==e?" > ":" ")+i+"| "+t}).join("\n");throw n.path=t,n.message=(t||"Jade")+":"+e+"\n"+s+"\n\n"+n.message,n}},{fs:2}],2:[function(t,i,n){},{}]},{},[1])(1)},"object"==typeof __crisp_void_exports&&"undefined"!=typeof module?module.exports=s():"function"==typeof __crisp_void_define&&define.amd?define([],s):(void 0!==r?c=r:"undefined"!=typeof global?c=global:"undefined"!=typeof self&&(c=self),c.jade=s());var u=Object.defineProperty,f=Object.defineProperties,d=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,m=function(t,i,n){return i in t?u(t,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[i]=n},ui=function(t,i){for(var n in i=i||{})p.call(i,n)&&m(t,n,i[n]);if(v){var e,s=hi(v(i));try{for(s.s();!(e=s.n()).done;)n=e.value,y.call(i,n)&&m(t,n,i[n])}catch(t){s.e(t)}finally{s.f()}}return t},fi=function(t,i){return f(t,d(i))};r.PetiteVue=function(t){function r(t){if(k(t)){for(var i={},n=0;n <= >= && || ! =".split(" ").forEach(function(t){It[t]=!0});var Ot={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'};function St(t,i){this.lexer=t,this.options=i}function Dt(t){return t.type===St.Identifier||t.type===St.MemberExpression}function Rt(){}function Bt(t,i){this.ast=new St(t,i),this.astCompiler=new Rt}function Nt(t,i,n){try{return Lt(i)(t)}catch(t){console.error(t)}}function Mt(t,i){var n=t.nodeType;if(1===n){var e,s=t;if(!s.hasAttribute("v-pre")){if(Ft(s,"v-cloak"),e=Ft(s,"v-if"))return function(t,i,e){var s=t.parentElement,c=new Comment("v-if");s.insertBefore(c,t);for(var n,a,r=[{exp:i,el:t}];(n=t.nextElementSibling)&&(a=null,""===Ft(n,"v-else")||(a=Ft(n,"v-else-if")));)s.removeChild(n),r.push({exp:a,el:n});i=t.nextSibling;function o(){h&&(s.insertBefore(c,h.el),h.remove(),h=void 0)}s.removeChild(t);var h,l=-1;return e.effect(function(){for(var t=0;t","<=",">=");)i={type:St.BinaryExpression,operator:t.text,left:i,right:this.additive()};return i},additive:function(){for(var t,i=this.multiplicative();t=this.expect("+","-");)i={type:St.BinaryExpression,operator:t.text,left:i,right:this.multiplicative()};return i},multiplicative:function(){for(var t,i=this.unary();t=this.expect("*","/","%");)i={type:St.BinaryExpression,operator:t.text,left:i,right:this.unary()};return i},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:St.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t,i;for(this.expect("(")?(t=this.expression(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?t=Object.assign({},this.selfReferential[this.consume().text]):At.hasOwnProperty(this.peek().text)?t={type:St.Literal,value:At[this.consume().text]}:this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());i=this.expect("(","[",".");)"("===i.text?(t={type:St.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===i.text?(t={type:St.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===i.text?t={type:St.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)for(;t.push(this.expression()),this.expect(","););return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:St.Identifier,name:t.text}},constant:function(){return{type:St.Literal,value:this.consume().value}},arrayDeclaration:function(){var t=[];if("]"!==this.peekToken().text)for(;!this.peek("]")&&(t.push(this.expression()),this.expect(",")););return this.consume("]"),{type:St.ArrayExpression,elements:t}},object:function(){var t,i=[];if("}"!==this.peekToken().text)for(;!this.peek("}")&&(t={type:St.Property,kind:"init"},this.peek().constant?(t.key=this.constant(),t.computed=!1,this.consume(":"),t.value=this.expression()):this.peek().identifier?(t.key=this.identifier(),t.computed=!1,this.peek(":")?(this.consume(":"),t.value=this.expression()):t.value=t.key):this.peek("[")?(this.consume("["),t.key=this.expression(),this.consume("]"),t.computed=!0,this.consume(":"),t.value=this.expression()):this.throwError("invalid key",this.peek()),i.push(t),this.expect(",")););return this.consume("}"),{type:St.ObjectExpression,properties:i}},throwError:function(t,i){throw mt("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",i.text,t,i.index+1,this.text,this.text.substring(i.index))},consume:function(t){if(0===this.tokens.length)throw mt("ueoe","Unexpected end of expression: {0}",this.text);var i=this.expect(t);return i||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),i},peekToken:function(){if(0===this.tokens.length)throw mt("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(t,i,n,e){return this.peekAhead(0,t,i,n,e)},peekAhead:function(t,i,n,e,s){if(this.tokens.length>t){var c=this.tokens[t],t=c.text;if(t===i||t===n||t===e||t===s||!i&&!n&&!e&&!s)return c}return!1},expect:function(t,i,n,e){e=this.peek(t,i,n,e);return!!e&&(this.tokens.shift(),e)},selfReferential:{this:{type:St.ThisExpression},$locals:{type:St.LocalsExpression}}},Rt.prototype={compile:function(i){var e,s=this;(function i(t,n){var e,s,c=t.isPure=function(t,i){switch(t.type){case St.MemberExpression:if(t.computed)return!1;break;case St.UnaryExpression:return 1;case St.BinaryExpression:return"+"!==t.operator&&1;case St.CallExpression:return!1}return void 0===i?2:i}(t,n);switch(t.type){case St.Program:e=!0,t.body.forEach(function(t){i(t.expression,c),e=e&&t.expression.constant}),t.constant=e;break;case St.Literal:t.constant=!0,t.toWatch=[];break;case St.UnaryExpression:i(t.argument,c),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case St.BinaryExpression:i(t.left,c),i(t.right,c),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case St.LogicalExpression:i(t.left,c),i(t.right,c),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case St.ConditionalExpression:i(t.test,c),i(t.alternate,c),i(t.consequent,c),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case St.Identifier:t.constant=!1,t.toWatch=[t];break;case St.MemberExpression:i(t.object,c),t.computed&&i(t.property,c),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=t.constant?[]:[t];break;case St.CallExpression:e=!1,s=[],t.arguments.forEach(function(t){i(t,c),e=e&&t.constant,s.push.apply(s,t.toWatch)}),t.constant=e,t.toWatch=[t];break;case St.AssignmentExpression:i(t.left,c),i(t.right,c),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case St.ArrayExpression:e=!0,s=[],t.elements.forEach(function(t){i(t,c),e=e&&t.constant,s.push.apply(s,t.toWatch)}),t.constant=e,t.toWatch=s;break;case St.ObjectExpression:e=!0,s=[],t.properties.forEach(function(t){i(t.value,c),e=e&&t.value.constant,s.push.apply(s,t.value.toWatch),t.computed&&(i(t.key,!1),e=e&&t.key.constant,s.push.apply(s,t.key.toWatch))}),t.constant=e,t.toWatch=s;break;case St.ThisExpression:case St.LocalsExpression:t.constant=!1,t.toWatch=[]}})(i),(t=function(t){if(1===i.body.length&&Dt(i.body[0].expression))return{type:St.AssignmentExpression,left:i.body[0].expression,right:{type:St.NGValueParameter},operator:"="}}())&&(e=this.recurse(t));var c,t=function(t){if(1===t.length){var i=t[0].expression,t=i.toWatch;return 1!==t.length||t[0]!==i?t:void 0}}(i.body);t&&(c=[],t.forEach(function(t,i){var n=s.recurse(t);n.isPure=t.isPure,t.input=n,c.push(n),t.watchId=i}));var a=[];i.body.forEach(function(t){a.push(s.recurse(t.expression))});t=0===i.body.length?noop:1===i.body.length?a[0]:function(i,n){var e;return a.forEach(function(t){e=t(i,n)}),e};return e&&(t.assign=function(t,i,n){return e(t,n,i)}),c&&(t.inputs=c),t},recurse:function(t,o,i){var c,h,l,n=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case St.Literal:return this.value(t.value,o);case St.UnaryExpression:return h=this.recurse(t.argument),this["unary"+t.operator](h,o);case St.BinaryExpression:case St.LogicalExpression:return c=this.recurse(t.left),h=this.recurse(t.right),this["binary"+t.operator](c,h,o);case St.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),o);case St.Identifier:return n.identifier(t.name,o,i);case St.MemberExpression:return c=this.recurse(t.object,!1,!!i),t.computed||(h=t.property.name),t.computed&&(h=this.recurse(t.property)),t.computed?this.computedMember(c,h,o,i):this.nonComputedMember(c,h,o,i);case St.CallExpression:return l=[],t.arguments.forEach(function(t){l.push(n.recurse(t))}),h=this.recurse(t.callee,!0),function(t,i,n,e){var s,c=h(t,i,n,e);if(null!=c.value){for(var a=[],r=0;r":function(s,c,a){return function(t,i,n,e){e=s(t,i,n,e)>c(t,i,n,e);return a?{value:e}:e}},"binary<=":function(s,c,a){return function(t,i,n,e){e=s(t,i,n,e)<=c(t,i,n,e);return a?{value:e}:e}},"binary>=":function(s,c,a){return function(t,i,n,e){e=s(t,i,n,e)>=c(t,i,n,e);return a?{value:e}:e}},"binary&&":function(s,c,a){return function(t,i,n,e){e=s(t,i,n,e)&&c(t,i,n,e);return a?{value:e}:e}},"binary||":function(s,c,a){return function(t,i,n,e){e=s(t,i,n,e)||c(t,i,n,e);return a?{value:e}:e}},"ternary?:":function(s,c,a,r){return function(t,i,n,e){e=(s(t,i,n,e)?c:a)(t,i,n,e);return r?{value:e}:e}},value:function(t,i){return function(){return i?{context:void 0,name:void 0,value:t}:t}},identifier:function(s,c,a){return function(t,i,n,e){i=i&&s in i?i:t;a&&1!==a&&i&&null==i[s]&&(i[s]={});t=i?i[s]:void 0;return c?{context:i,name:s,value:t}:t}},computedMember:function(r,o,h,l){return function(t,i,n,e){var s,c,a=r(t,i,n,e);return null!=a&&(s=o(t,i,n,e),s+="",l&&1!==l&&a&&!a[s]&&(a[s]={}),c=a[s]),h?{context:a,name:s,value:c}:c}},nonComputedMember:function(s,c,a,r){return function(t,i,n,e){n=s(t,i,n,e);r&&1!==r&&n&&null==n[c]&&(n[c]={});e=null!=n?n[c]:void 0;return a?{context:n,name:c,value:e}:e}},inputs:function(s,c){return function(t,i,n,e){return e?e[c]:s(t,i,n)}}};var Lt=new function(){var e={};return function(t,i){var n;return t=t.trim(),(n=e[t])?n:new Bt(new qt).parse(t)}},Jt=function(t,i,n){return Nt(t,i)},Vt={bind:ot,on:ut,show:function(t){var i=t.el,n=t.get,t=t.effect,e=i.style.display;t(function(){i.style.display=n()?e:"none"})},text:Ct,html:function(t){var i=t.el,n=t.get;(0,t.effect)(function(){i.innerHTML=n()})},model:function(t){function c(t){t=(t=t.replace(l,"\\\\")).replace(u,'\\"');o("".concat(e,' = "').concat(t,'"'))}var a,i,n,r=t.el,e=t.exp,o=t.get,s=t.effect,h=t.modifiers,l=/\\/g,u=/"/g,f=r.type,t=h||{},d=t.trim,t=t.number,v=void 0===t?"number"===f:t;"SELECT"===r.tagName?(lt(a=r,"change",function(){var t=Array.prototype.filter.call(a.options,function(t){return t.selected}).map(function(t){return v?m(dt(t)):dt(t)});c(a.multiple?t:t[0])}),s(function(){for(var t=o(),i=a.multiple,n=0,e=a.options.length;n":/>/g,'"':/"/g},this.b={"&":/&/g,"<"://g,""":/"/g},this.k={"\\\\":/\\/g,"\\t":/\t/g,"\\n":/\n/g,"\\u00A0":/\u00A0/g,""":/"/g,"'":/'/g,"_":/_/g,"*":/\*/g,"+":/\+/g,"~":/~/g},this.$={"<":/</g,">":/>/g},this.F=/[-\/\\^$*+?.()|[\]{}]/g,this.j=/([\#$\*\_\-+![\]\(\)`~><\.|{}])/g,this.z=/\n(\s+)?\n(\s+)?\n/g,this.C=/\n/g,this.A=/^([a-z]{1,20})\n((?:\n?.*)*)$/,this.I=/(,|\.)(\s|$)/g,this.q=/\u0001/g,this.O=/^(www\.)/i,this.S={links:{prefix:"(\\s|<[^<>]+\\/>|<[^a][^<>]*>|\\(|^)",suffix:"(\\s||<[^<>]+\\/>|]*>|\\)|$)"},markdown_simple:{prefix:"(^)",suffix:"($)"},markdown_includes:{prefix:"(\\s|<[^<>]+\\/>|<[^<>]+>|\\(|^)",suffix:"(\\s|.|,|:|<[^<>]+\\/>|\\)|$)"},markdown_formatting:{prefix:"(\\s|<[^<>]+\\/>|\\(|^)",suffix:""},markdown_list:{prefix:"(^\\s*)",suffix:"(.*?)($)"}},this.D=["title","list","code_inline","blockquote","table","emphasis"],this.R=["code_block","code_inline"],this.B=["escape","consecutive_lines","markdown","links_uri","links_domain","emails","phones","smileys","new_lines"],this.N={escape:this.M,consecutive_lines:this.T,new_lines:this.U,emails:this.P,phones:this.L,markdown:this.J,links_domain:this.V,links_uri:this.W,smileys:this.H},this.K={markdown_code_block:this.G,markdown_table:this.Y},this.Z(),this.X()}var i=t.prototype;return i.format=function(t){for(var i,n=1\\(\\)\\s,@]+)(?:\\.(?:",this._.map(this.escape_regex.bind(this)).join("|"),")))"].join(""),"gim",this.S.links),uri:this.st("((?:(?:(?:https?|ftps?|file):)|(?:www\\.))(?:[^<>\\(\\)\\s]+))","gim",this.S.links)}},i.X=function(){this.it=[["code_block",this.st("(`{2,3})((?:\\n+)?(?:(?!\\2).(?:\\n+)?)*)(?:\\2)","gi",{prefix:"(\\s|<[^<>]+\\/>|^)",suffix:"(\\s|\\.|,|:|$)"})],["code_inline",this.st("(`{1})([^`]*)(?:\\2)","gim",{prefix:"(\\s|<[^<>]+\\/>|\\(|^)",suffix:"(\\s|\\.|,|:|\\)|<\\/[^<>]+>|$)"})],["title",this.st("(#{1})(?:[\\s]+)([^#].*)","gim",this.S.markdown_simple)],["title",this.st("(#{2})(?:[\\s]+)([^#].*)","gim",this.S.markdown_simple)],["title",this.st("(#{3})(?:[\\s]+)([^#].*)","gim",this.S.markdown_simple)],["title",this.st("(#{4})(?:[\\s]+)([^#].*)","gim",this.S.markdown_simple)],["title",this.st("(#{5})(?:[\\s]+)([^#].*)","gim",this.S.markdown_simple)],["title",this.st("(#{6})(?:[\\s]+)([^#].*)","gim",this.S.markdown_simple)],["link_image",this.st("\\[!\\[(?:[^\\[]*)\\]\\(([^\\)]+)\\)\\]\\(([^\\)]+)\\)","gim",this.S.markdown_includes)],["image",this.st("!\\[([^\\[]*)\\]\\(([^\\)]+)\\)","gim",this.S.markdown_includes)],["link_text",this.st("\\[([^\\[]+)\\]\\(([^\\)]+)\\)","gim",{prefix:"(\\s|<[^<>]+\\/>|<[^a][^<>]*>|\\(|^)",suffix:"(\\s|.|,|:|<[^<>]+\\/>|]*>|\\)|$)"})],["youtube",this.st("\\$\\{youtube\\}\\[([^\\[]*)\\]\\(([^\\)]+)\\)","gim",this.S.markdown_includes)],["vimeo",this.st("\\$\\{vimeo\\}\\[([^\\[]*)\\]\\(([^\\)]+)\\)","gim",this.S.markdown_includes)],["dailymotion",this.st("\\$\\{dailymotion\\}\\[([^\\[]*)\\]\\(([^\\)]+)\\)","gim",this.S.markdown_includes)],["frame",this.st("\\$\\{frame\\}\\[([^\\[]*)\\]\\(([^\\)]+)\\)","gim",this.S.markdown_includes)],["bold",this.st("(\\*\\*)(.*?)(?:\\2)","gim",this.S.markdown_formatting)],["underline",this.st("(__)(.*?)(?:\\2)","gim",this.S.markdown_formatting)],["italic",this.st("(\\*|_)(.*?)(?:\\2)","gim",this.S.markdown_formatting)],["delete",this.st("(\\~\\~)(.*?)(?:\\2)","gim",this.S.markdown_formatting)],["highlight",this.st("(\\+\\+)(.*?)(?:\\2)","gim",this.S.markdown_formatting)],["list",this.st("(\\*)(?:[\\s]+)","gim",this.S.markdown_list)],["list",this.st("(?:([\\d]{1,2})\\.)(?:[\\s]+)","gim",this.S.markdown_list)],["blockquote",this.st("(>|\\>)(?:[\\s]+)(.*)","gim",this.S.markdown_simple)],["table",this.st("(?:(\\|(?:[^\\|\\r\\n]{0,999}\\|){1,19})(?: *\\n)(?:\\|(?: *\\-{1,99} *\\|){1,19}))((?: *\\n\\|(?:[^\\|\\r\\n]{0,999}\\|){1,19}){1,49})","gi",{prefix:"(\\s|^)",suffix:"(\\s|$)"})],["emphasis",this.st("(\\|{1})(?:[\\s]+)([^\\|].*)","gim",this.S.markdown_simple)],["emphasis",this.st("(\\|{2})(?:[\\s]+)([^\\|].*)","gim",this.S.markdown_simple)],["emphasis",this.st("(\\|{3})(?:[\\s]+)([^\\|].*)","gim",this.S.markdown_simple)],["interpolate",this.st('(?:\\{\\{\\s*)([^\\{\\}\\|\\s]+)(?:\\s*\\|\\s*(?:(?:")|")([^&"]*)(?:(?:")|"))?(?:\\s*\\}\\})',"gim",{prefix:"(\\s|\\(|^)",suffix:""})],["line",this.st("(-{3,})","gim",{prefix:"(^)(\\s+)?",suffix:"(\\s|$)"})],["color",this.st("\\$\\{color\\}\\[(#[0-9A-Fa-f]{6})\\]\\(([^\\)]+)\\)","gim",this.S.markdown_includes)]]},t}(),e=function(){function t(t){this.parent=t,this.ct=/^(\S+)((?:\s+)(.+))?$/}var i=t.prototype;return i.parse_first_name=function(t){return this.rt(t,1)},i.parse_last_name=function(t){return this.rt(t,3)},i.rt=function(t,i){var n=(t||"").trim();return!n||null!=(t=n.match(this.ct))&&t[i]&&(n=t[i].trim()),n},t}();this.ot(t),this.Smileys=new i(this),this.Parse=new n(this),this.Name=new e(this)},i.ot=function(t){null!=t&&t.template&&(this.template=t.template),null!=t&&t.config&&(this.config=t.config)},t}(),n.CrispLibraryWeb=new e,t=r,i=function(){function t(){}var i=t.prototype;return i.init=function(t){var r={},i=function(){function t(t){this.parent=t,this.ht()}var i=t.prototype;return i.set_ignore_privacy=function(){this.lt=0=this.Ut)&&(this.Yt=(new Date).getTime(),this.Gt.local={type:t},n&&(this.Gt.local.excerpt=n),1==e&&null!==this.Zt&&(this.parent.Schedule.clear_timeout(this.Zt),this.Zt=null),null===this.Zt&&(this.Zt=this.parent.Schedule.set_timeout(function(){i.Zt=null,i.parent.socket.emit("message:compose:send",i.Gt.local),i.parent.event.publish("message:compose:send",i.Gt.local)},1==e?0:this.Pt)))},i.send_message_thread=function(t){var i=1i.timestamp?1:0})},i.Ht=function(){var t=""+(new Date).getTime()+Math.ceil(100*Math.random());return t.length<15&&(t+=new Array(15-t.length+1).join("0")),parseInt(t,10)},i.ii=function(t,i){t.is_me?this.yi(t,i):this.mi(t,i)},i.ai=function(){var t=0=this.Si&&this.hn(!0),this.an=t},i.acquire_saved=function(){var t=this.ln(),i=null,n=(location.search||"").match(this.qi),e=(document.referrer||"").match(this.Ii);n&&n[2]&&n[2]!==t.current&&(i=n[2]||null);e=(i=e&&e[1]===this.parent.url_go&&e[3]!==t.current?e[3]||null:i)||t.current,i=null;return{session_id:e,merge:i=t.previous&&t.current!==t.previous&&t.current===e?t.previous:i}},i.restore=function(){var t=this.acquire_saved();this.un(t.session_id,t.merge)},i.join=function(){var t,i={website_id:this.parent.website_id,session_id:this.Wt,expire:this.Ui,storage:!0,sync:0=this.Ri){this.bn=i;var n=document.title||"";if(n.length>this.Ni&&(n=n.substring(0,this.Ni-this.Mi.length),n+=this.Mi),!0===this.Oi.test(t)&&("?"!==(i=(t=t.replace(this.Oi,"$1$3"))[t.length-1])&&"&"!==i||(t=t.substr(0,t.length-1))),(t=t.length>this.Bi?t.split("?")[0]||"":t)&&n&&t.length<=this.Bi){t={page_url:t,page_title:n},n=(document.referrer||"").split("?")[0]||"";return n&&n.length<=this.Bi&&(t.page_referrer=n),t}}}return null},i.Ki=function(){var t=0t.length)&&(i=t.length);for(var n=0,e=new Array(i);n>4,o[r++]=(15&n)<<4|e>>2,o[r++]=(3&e)<<6|63&s;return c}(n),i):{base64:!0,data:n})}:g[e]?1this.maxPayload)return this.writeBuffer.slice(0,i);t+=2}return this.writeBuffer}},{key:"write",value:function(t,i,n){return this.sendPacket("message",t,i,n),this}},{key:"send",value:function(t,i,n){return this.sendPacket("message",t,i,n),this}},{key:"sendPacket",value:function(t,i,n,e){"function"==typeof i&&(e=i,i=void 0),"function"==typeof n&&(e=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState&&((n=n||{}).compress=!1!==n.compress,this.emitReserved("packetCreate",n={type:t,data:i,options:n}),this.writeBuffer.push(n),e&&this.once("flush",e),this.flush())}},{key:"close",value:function(){function t(){n.off("upgrade",t),n.off("upgradeError",t),e()}function i(){n.once("upgrade",t),n.once("upgradeError",t)}var n=this,e=function(){n.onClose("forced close"),n.transport.close()};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",function(){(n.upgrading?i:e)()}):(this.upgrading?i:e)()),this}},{key:"onError",value:function(t){u.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}},{key:"onClose",value:function(t,i){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",t,i),this.writeBuffer=[],this.prevBufferLen=0)}},{key:"filterUpgrades",value:function(t){for(var i=[],n=0,e=t.length;n=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,r=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){r=!0,c=t},f:function(){try{a||null==n.return||n.return()}finally{if(r)throw c}}}}(this._anyListeners.slice());try{for(n.s();!(i=n.n()).done;)i.value.apply(this,t)}catch(t){n.e(t)}finally{n.f()}}v(h(e.prototype),"emit",this).apply(this,t)}},{key:"ack",value:function(e){var s=this,c=!1;return function(){if(!c){c=!0;for(var t=arguments.length,i=new Array(t),n=0;n=this._reconnectionAttempts?(this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1):(t=this.backoff.duration(),this._reconnecting=!0,n=this.setTimeoutFn(function(){e.skipReconnect||(i.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(function(t){t?(e._reconnecting=!1,e.reconnect(),i.emitReserved("reconnect_error",t)):e.onreconnect()}))},t),this.opts.autoUnref&&n.unref(),this.subs.push(function(){clearTimeout(n)}))}},{key:"onreconnect",value:function(){var t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}]),i}(),ht={};function lt(t,i){"object"===o(t)&&(i=t,t=void 0);var n=function(t){var i=1t+n.te&&!0===n.de&&n.Ye()},n.Qn)})},i.re=function(){var i=this;this.parent.Listener.add_event("browsing","window","scroll",function(){var t;!0!==i.me&&(t=document.documentElement,i.Ae.last_x=(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0),i.Ae.last_y=(window.pageYOffset||t.scrollTop)-(t.clientTop||0))})},i.oe=function(){var i=this;this.parent.Listener.add_event("browsing","window","click",function(t){!0!==i.de||t.ts||i.es("click",function(){i.Qe(),i.Ge()})})},i.pe=function(){return null===this.rn||null!==this.rn&&(new Date).getTime()-this.rn>=this.Zn},i.hn=function(){var t=this,i=!(0=i.ne);t++)i.Xe(i.ze[t]);i.ze.splice(0,i.ne)},this.ie))},i.es=function(t,i){var n=this;void 0===this.mn[t]&&(this.mn[t]=this.parent.Schedule.set_timeout(function(){delete n.mn[t],i()},this.Li))},t}(),_=function(){function t(t){this.parent=t,this.Yn=1e4,this.ss=5e3,this.cs=200,this.ee=["call:request:initiate","call:request:accepted","call:request:declined","call:action:stopped","call:signaling:sdp","call:signaling:candidate"],this.ht(),this._t()}var i=t.prototype;return i.init=function(t,i,n){var e=this;this.parent.Stream.bind_to(null,this.ee,{session_id:this.parent.Session.Wt},function(){e.as=t.mode||null,e.rs=t.ice||[],!0===t.has_support?(e.parent.stream.emit("client:call:request:initiated",{call_id:t.call_id}),e.hn(!0)):e.parent.stream.emit("client:call:request:decline",{}),"function"==typeof i&&i()},function(){"function"==typeof n&&n()})},i.accept=function(){!0===this.ue&&(this.os=!0,this.parent.stream.emit("client:call:request:accept",{}))},i.decline=function(){!0===this.ue&&(this.parent.stream.emit("client:call:request:decline",{}),this.he())},i.stop=function(){!0===this.ue&&(this.parent.stream.emit("client:call:action:stopped",{}),this.he())},i.toggle_audio=function(){return this.hs("audio","getAudioTracks")},i.toggle_video=function(){return this.hs("video","getVideoTracks")},i.toggle_screensharing=function(){return!0===this.ue&&null!==this.ls.local&&(!1===this.us?this.ds():this.vs()),this.us},i.is_ongoing=function(){return!0===this.ue&&null!==this.ps&&!0},i.has_support_screensharing=function(){return!(!navigator.mediaDevices||"function"!=typeof navigator.mediaDevices.getDisplayMedia)},i.get_stream=function(t){return this.ls[t]||null},i.reset=function(){!0===this.ue&&this.he(),this.ht()},i.ht=function(){this.ue=!1,this.us=!1,this.os=!1,this.ys=!1,this.fe=null,this.ps=null,this.we=null,this._s=null,this.as=null,this.rs=[],this.ls={local:null,remote:null},this.gs={video:null}},i._t=function(){this.parent.socket.on("call:request:initiate",this.ye.Mt(this)),this.parent.stream.on("client:call:request:accepted",this.bs.Mt(this)),this.parent.stream.on("client:call:request:declined",this.ks.Mt(this)),this.parent.stream.on("client:call:action:stopped",this.xs.Mt(this)),this.parent.stream.on("client:call:signaling:sdp",this.Fs.Mt(this)),this.parent.stream.on("client:call:signaling:candidate",this.js.Mt(this))},i.ye=function(t){!0!==this.ue&&(t.has_support=-1!==(this.parent.device.capabilities||[]).indexOf("call"),this.ue=!0,this.parent.event.publish("call:request:initiate",t))},i.bs=function(){!0===this.ue&&!0!==this.os&&this.he()},i.ks=function(){!0===this.ue&&this.he()},i.xs=function(){!0===this.ue&&this.he()},i.Fs=function(t){var i=this;!0===this.ue&&(this.Es(),"operator"===t.from&&this.ps.setRemoteDescription(new RTCSessionDescription(t.sdp)).then(function(){return i.parent.event.publish("call:peer:remote:success",{}),null===i.ls.local?i.zs():"offer"===t.sdp.type?i.Cs("answer"):Promise.resolve()}).catch(function(){i.parent.event.publish("call:peer:remote:error",{})}))},i.js=function(t){!0===this.ue&&(this.Es(),"operator"===t.from&&"object"==typeof t.candidate&&null!==t.candidate&&this.ps.addIceCandidate(new RTCIceCandidate({sdpMLineIndex:t.candidate.sdpMLineIndex,candidate:t.candidate.candidate})).catch(function(){}))},i.Es=function(){var i=this;null===this.ps&&(this.ps=new RTCPeerConnection({iceServers:this.rs}),this.ps.onicecandidate=function(t){t&&t.candidate&&i.parent.stream.emit("client:call:signaling:candidate",{from:"user",candidate:t.candidate})},this.ps.ontrack=function(t){t=t.streams[0];i.ls.remote=t,i.parent.event.publish("call:media:remote:success",{}),t.onremovetrack=function(){i.parent.event.publish("call:media:remote:success",{})}},this.ps.oniceconnectionstatechange=function(){var t=i.ps;null!==t&&"failed"!==t.iceConnectionState&&"closed"!==t.iceConnectionState||i.As(),null!==t&&"disconnected"===t.iceConnectionState&&(i._s=i.parent.Schedule.set_timeout(function(){(i._s=null)!==i.ps&&"connected"===t.iceConnectionState||i.As()},i.ss)),null!==t&&"connected"===t.iceConnectionState&&!0!==i.ys&&i.parent.Schedule.set_timeout(function(){i.zs(!0)},i.cs)},this.ps.onnegotiationneeded=function(){i.Cs("offer")},this.ps.onclose=function(){i.As()})},i.zs=function(){function i(){n.parent.event.publish("call:peer:local:error",{})}var n=this,e=0>6:(e<55296||57344<=e?s[a++]=224|e>>12:(e=65536+((1023&e)<<10|1023&t.charCodeAt(++r)),s[a++]=240|e>>18,s[a++]=128|e>>12&63),s[a++]=128|e>>6&63),s[a++]=128|63&e);t=s}else{if("object"!=n)throw new Error(u);if(null===t)throw new Error(u);if(f&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||f&&ArrayBuffer.isView(t)))throw new Error(u)}64>2]|=t[c]<>2]|=e<>2]|=(192|e>>6)<>2]|=(224|e>>12)<>2]|=(240|e>>18)<>2]|=(128|e>>12&63)<>2]|=(128|e>>6&63)<>2]|=(128|63&e)<>2]|=n[3&i],this.block=t[16],56<=i&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash())},d.prototype.hash=function(){for(var t,i,n,e,s,c,a=this.h0,r=this.h1,o=this.h2,h=this.h3,l=this.h4,u=this.h5,f=this.h6,d=this.h7,v=this.blocks,p=16;p<64;++p)t=((i=v[p-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,i=v[p-2],v[p]=v[p-16]+t+v[p-7]+((i>>>17|i<<15)^(i>>>19|i<<13)^i>>>10)<<0;for(c=r&o,p=0;p<64;p+=4)this.first?(d=(i=v[0]-210244248)-1521486534<<0,h=i+143694565<<0,this.first=!(n=704751109)):(d=h+(i=d+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&u^~l&f)+y[p]+v[p])<<0,h=i+((t=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+((n=a&r)^a&o^c))<<0),f=o+(i=f+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&l^~d&u)+y[p+1]+v[p+1])<<0,o=i+((t=(h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((e=h&a)^h&r^n))<<0,u=r+(i=u+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&d^~f&l)+y[p+2]+v[p+2])<<0,r=i+((t=(o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+((s=o&h)^o&a^e))<<0,l=a+(i=l+((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&f^~u&d)+y[p+3]+v[p+3])<<0,a=i+((t=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+((c=r&o)^r&h^s))<<0;this.h0=this.h0+a<<0,this.h1=this.h1+r<<0,this.h2=this.h2+o<<0,this.h3=this.h3+h<<0,this.h4=this.h4+l<<0,this.h5=this.h5+u<<0,this.h6=this.h6+f<<0,this.h7=this.h7+d<<0},d.prototype.toString=d.prototype.hex=function(){this.finalize();var t=this.h0,i=this.h1,n=this.h2,e=this.h3,s=this.h4,c=this.h5,a=this.h6,r=this.h7;return o[t>>28&15]+o[t>>24&15]+o[t>>20&15]+o[t>>16&15]+o[t>>12&15]+o[t>>8&15]+o[t>>4&15]+o[15&t]+o[i>>28&15]+o[i>>24&15]+o[i>>20&15]+o[i>>16&15]+o[i>>12&15]+o[i>>8&15]+o[i>>4&15]+o[15&i]+o[n>>28&15]+o[n>>24&15]+o[n>>20&15]+o[n>>16&15]+o[n>>12&15]+o[n>>8&15]+o[n>>4&15]+o[15&n]+o[e>>28&15]+o[e>>24&15]+o[e>>20&15]+o[e>>16&15]+o[e>>12&15]+o[e>>8&15]+o[e>>4&15]+o[15&e]+o[s>>28&15]+o[s>>24&15]+o[s>>20&15]+o[s>>16&15]+o[s>>12&15]+o[s>>8&15]+o[s>>4&15]+o[15&s]+o[c>>28&15]+o[c>>24&15]+o[c>>20&15]+o[c>>16&15]+o[c>>12&15]+o[c>>8&15]+o[c>>4&15]+o[15&c]+o[a>>28&15]+o[a>>24&15]+o[a>>20&15]+o[a>>16&15]+o[a>>12&15]+o[a>>8&15]+o[a>>4&15]+o[15&a]+o[r>>28&15]+o[r>>24&15]+o[r>>20&15]+o[r>>16&15]+o[r>>12&15]+o[r>>8&15]+o[r>>4&15]+o[15&r]},d.prototype.digest=function(){this.finalize();var t=this.h0,i=this.h1,n=this.h2,e=this.h3,s=this.h4,c=this.h5,a=this.h6,r=this.h7;return[t>>24&255,t>>16&255,t>>8&255,255&t,i>>24&255,i>>16&255,i>>8&255,255&i,n>>24&255,n>>16&255,n>>8&255,255&n,e>>24&255,e>>16&255,e>>8&255,255&e,s>>24&255,s>>16&255,s>>8&255,255&s,c>>24&255,c>>16&255,c>>8&255,255&c,a>>24&255,a>>16&255,a>>8&255,255&a,r>>24&255,r>>16&255,r>>8&255,255&r]},(e.prototype=new d).finalize=function(){var t;d.prototype.finalize.call(this),this.inner&&(this.inner=!1,t=this.digest(),d.call(this,this.memory),this.update(this.oKeyPad),this.update(t),d.prototype.finalize.call(this))};var s=(c.create=function(){return new d},c.update=function(t){return c.create().update(t)},c);function c(t){return new d(!0).update(t).hex()}function a(t,i){return new e(t,!0).update(i).hex()}(s.sha256=s).sha256.hmac=(a.create=function(t){return new e(t)},a.update=function(t,i){return a.create(t).update(i)},a),t.sha256=s.sha256}(),this.Us=/^((?:https?|wss?):\/\/[^\/]+)(\/.*)?$/,this.Ps(),this.ot(t),this.Ls(t,r),this.Config=new i(this),this.Register=new n(this),this.Schedule=new e(this),this.Listener=new s(this),this.Socket=new c(this),this.Stream=new a(this),this.Storage=new o(this),this.Browsing=new m(this),this.Call=new _(this),this.Message=new h(this),this.Session=new l(this),this.Website=new u(this),this.Bucket=new f(this),this.Media=new d(this),this.Helpdesk=new y(this),this.Trigger=new g(this),this.Issue=new w(this),this.pt(),!0===t.connect_socket&&this.socket.connect()},i.Ps=function(){this.ht()},i.ht=function(){delete this.environment,delete this.disable_autoload,delete this.url_go,delete this.website_domain,delete this.website_id,delete this.token_id,delete this.cookie_expire,delete this.cookie_domain,delete this.platform_name,delete this.platform_signature_key,delete this.runtime_configuration,delete this.device,this.Js=!1,this.Vs=!1},i.ot=function(t){t&&t.environment&&(this.environment=t.environment||"development"),t&&t.disable_autoload&&(this.disable_autoload=t.disable_autoload),t&&t.url_go&&(this.url_go=t.url_go),t&&t.website_domain&&(this.website_domain=t.website_domain),t&&t.website_id&&(this.website_id=t.website_id),t&&t.token_id&&(this.token_id=t.token_id),t&&t.cookie_expire&&(this.cookie_expire=t.cookie_expire),t&&t.cookie_domain&&(this.cookie_domain=t.cookie_domain),t&&t.platform_name&&(this.platform_name=t.platform_name),t&&t.platform_signature_key&&(this.platform_signature_key=t.platform_signature_key),t&&t.runtime_configuration&&(this.runtime_configuration=t.runtime_configuration),this.device={},t&&t.useragent&&(this.device.useragent=t.useragent),t&&t.timezone&&(this.device.timezone=t.timezone),t&&t.capabilities&&(this.device.capabilities=t.capabilities),t&&t.locales&&(this.device.locales=t.locales)},i.Ls=function(t,i){var n=["websocket"],e=(t.url_relay_client||"").match(this.Us)||[],t=(t.url_relay_stream||"").match(this.Us)||[];this.event=i.PubSub,this.socket=i.io(e[1]||null,{path:e[2]||"/",transports:n,autoConnect:!1,timeout:25e3,reconnectionDelay:15e3,reconnectionDelayMax:6e4,reconnectionAttempts:5,randomizationFactor:.5}),this.stream=i.io(t[1]||null,{path:t[2]||"/",transports:n,reconnection:!1,autoConnect:!1}),this.cookie=i.Cookies(window),this.sha256=i.sha256},i.pt=function(){var t=this;this.Listener.add_event("index","window","pagehide",function(){t.Js=t.socket.connected||!1,t.Vs=t.stream.connected||!1,!0===t.socket.connected&&t.socket.disconnect(),!0===t.stream.connected&&t.stream.disconnect()}),this.Listener.add_event("index","window","pageshow",function(){!0===t.Js&&(t.Js=!1,t.socket.connect()),!0===t.Vs&&(t.Vs=!1,t.stream.connect())}),this.Listener.add_event("index","window","popstate",function(){t.Ws()}),"object"==typeof window.history&&(this.Listener.apply_patch("index","window.history","pushState",window.history,function(){t.Ws()}),this.Listener.apply_patch("index","window.history","replaceState",window.history,function(){t.Ws()}))},i.Ws=function(){this.Session.send_device(),this.event.publish("window:history",{page_url:document.location.href,page_domain:document.location.hostname})},t}(),t.CrispLibraryClient=new i;var _={client:function(t){var n=[],t=t||{};return function(t,i){n.push('
')}.call(this,"direction"in t?t.direction:"undefined"!=typeof direction?direction:void 0,"lang"in t?t.lang:"undefined"!=typeof lang?lang:void 0),n.join("")},viewport:function(t){var i=[],t=t||{};return function(t){i.push('")}.call(this,"content"in t?t.content:"undefined"!=typeof content?content:void 0),i.join("")},clear:function(t){var i=[];return i.push(''),i.join("")},style_color:function(t){var i,n=[],t=t||{};return function(t){n.push('
")}.call(this,"colors"in t?t.colors:"undefined"!=typeof colors?colors:void 0),n.join("")},style_other:function(t){var i,n=[],t=t||{};return function(t){n.push('
")}.call(this,"container_index"in t?t.container_index:"undefined"!=typeof container_index?container_index:void 0),n.join("")},style_position:function(t){var i,n=[],t=t||{};return function(t){n.push('
'),t.default_button_horizontal&&n.push('"),t.default_button_vertical&&n.push('"),t.mobile_button_horizontal&&n.push('"),t.mobile_button_vertical&&n.push('"),n.push("
")}.call(this,"position"in t?t.position:"undefined"!=typeof position?position:void 0),n.join("")},new_line:function(t){var i=[];return i.push('
'),i.join("")},link_phone:function(t){var i,n=[],t=t||{};return function(t){n.push("'+(null==(i=t)?"":i)+"")}.call(this,"phone"in t?t.phone:"undefined"!=typeof phone?phone:void 0),n.join("")},link_email:function(t){var i,n=[],t=t||{};return function(t){n.push("'+(null==(i=t)?"":i)+"")}.call(this,"email"in t?t.email:"undefined"!=typeof email?email:void 0),n.join("")},link_uri:function(t){var n,e=[],t=t||{};return function(t,i){e.push("'+(null==(n=t)?"":n)+"")}.call(this,"uri_name"in t?t.uri_name:"undefined"!=typeof uri_name?uri_name:void 0,"uri_value"in t?t.uri_value:"undefined"!=typeof uri_value?uri_value:void 0),e.join("")},link_domain:function(t){var n,e=[],t=t||{};return function(t,i){e.push("'+(null==(n=t)?"":n)+"")}.call(this,"domain_name"in t?t.domain_name:"undefined"!=typeof domain_name?domain_name:void 0,"domain_value"in t?t.domain_value:"undefined"!=typeof domain_value?domain_value:void 0),e.join("")},markdown_blockquote:function(t){var i,n=[],t=t||{};return function(t){n.push(''+(null==(i=t)?"":i)+"")}.call(this,"value"in t?t.value:"undefined"!=typeof value?value:void 0),n.join("")},markdown_table:function(t){var c,a=[],t=t||{};return function(s,t,e){a.push(''),0'),function(){var t=s;if("number"==typeof t.length)for(var i=0,n=t.length;i"+(null==(c=e)?"":c)+"")}else for(i in n=0,t)n++,e=t[i],a.push("")}.call(this),a.push("")),a.push(""),function(){var t=e;if("number"==typeof t.length)for(var i=0,n=t.length;i"),function(){var t=s;if("number"==typeof t.length)for(var i=0,n=t.length;i"+(null==(c=e)?"":c)+"")}else for(i in n=0,t)n++,e=t[i],a.push("")}.call(this),a.push("")}else for(i in n=0,t)n++,s=t[i],a.push(""),function(){var t=s;if("number"==typeof t.length)for(var i=0,n=t.length;i"+(null==(c=e)?"":c)+"")}else for(i in n=0,t)n++,e=t[i],a.push("")}.call(this),a.push("")}.call(this),a.push("
"+(null==(c=e)?"":c)+"
"+(null==(c=e)?"":c)+"
"+(null==(c=e)?"":c)+"
")}.call(this,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"undefined"in t?t.undefined:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),a.join("")},markdown_color:function(t){var n,e=[],t=t||{};return function(t,i){e.push("'+(null==(n=i)?"":n)+"")}.call(this,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),e.join("")},markdown_bold:function(t){var i,n=[],t=t||{};return function(t){n.push(''+(null==(i=t)?"":i)+"")}.call(this,"value"in t?t.value:"undefined"!=typeof value?value:void 0),n.join("")},markdown_code_inline:function(t){var i,n=[],t=t||{};return function(t){n.push(''+(null==(i=t)?"":i)+"")}.call(this,"value"in t?t.value:"undefined"!=typeof value?value:void 0),n.join("")},markdown_code_block:function(t){var i,n=[],t=t||{};return function(t){n.push(''+(null==(i=t)?"":i)+"")}.call(this,"value"in t?t.value:"undefined"!=typeof value?value:void 0),n.join("")},markdown_delete:function(t){var i,n=[],t=t||{};return function(t){n.push(''+(null==(i=t)?"":i)+"")}.call(this,"value"in t?t.value:"undefined"!=typeof value?value:void 0),n.join("")},markdown_highlight:function(t){var i,n=[],t=t||{};return function(t){n.push(''+(null==(i=t)?"":i)+"")}.call(this,"value"in t?t.value:"undefined"!=typeof value?value:void 0),n.join("")},markdown_emphasis:function(t){var i,n=[],t=t||{};return function(t){n.push(''+(null==(i=t)?"":i)+"")}.call(this,"value"in t?t.value:"undefined"!=typeof value?value:void 0),n.join("")},markdown_image:function(t){var s=[],t=t||{};return function(t,i,n,e){s.push("");e=t(e);s.push('")}.call(this,"encodeURIComponent"in t?t.encodeURIComponent:"undefined"!=typeof encodeURIComponent?encodeURIComponent:void 0,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"url_crisp_image"in t?t.url_crisp_image:"undefined"!=typeof url_crisp_image?url_crisp_image:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),s.join("")},markdown_interpolate:function(t){var n,e=[],t=t||{};return function(t,i){e.push('{{ '+h.Library.jade.runtime.escape(null==(n=t)?"":n)+h.Library.jade.runtime.escape(null==(n=i?' | "'+i+'"':"")?"":n)+" }}")}.call(this,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),e.join("")},markdown_italic:function(t){var i,n=[],t=t||{};return function(t){n.push(''+(null==(i=t)?"":i)+"")}.call(this,"value"in t?t.value:"undefined"!=typeof value?value:void 0),n.join("")},markdown_line:function(t){var i=[];return i.push(''),i.join("")},markdown_link_text:function(t){var e,s=[],t=t||{};return function(t,i,n){s.push("'+(null==(e=i)?"":e)+"")}.call(this,"methods"in t?t.methods:"undefined"!=typeof methods?methods:void 0,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),s.join("")},markdown_link_image:function(t){var c=[],t=t||{};return function(t,i,n,e,s){c.push("");n=t(n);c.push("')}.call(this,"encodeURIComponent"in t?t.encodeURIComponent:"undefined"!=typeof encodeURIComponent?encodeURIComponent:void 0,"methods"in t?t.methods:"undefined"!=typeof methods?methods:void 0,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"url_crisp_image"in t?t.url_crisp_image:"undefined"!=typeof url_crisp_image?url_crisp_image:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),c.join("")},markdown_list:function(t){var n,e=[],t=t||{};return function(t,i){e.push("'+(null==(n=i)?"":n)+"")}.call(this,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),e.join("")},markdown_title:function(t){var n,e=[],t=t||{};return function(t,i){e.push("'+(null==(n=i)?"":n)+"")}.call(this,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),e.join("")},markdown_underline:function(t){var i,n=[],t=t||{};return function(t){n.push(''+(null==(i=t)?"":i)+"")}.call(this,"value"in t?t.value:"undefined"!=typeof value?value:void 0),n.join("")},markdown_youtube:function(t){var a=[],t=t||{};return function(t,i,n,e,s){a.push("");var c="https://www.youtube.com/embed/"+t(s)+"?autoplay=1&rel=0",s=t("https://img.youtube.com/vi/"+t(s)+"/hqdefault.jpg");a.push("")}.call(this,"encodeURIComponent"in t?t.encodeURIComponent:"undefined"!=typeof encodeURIComponent?encodeURIComponent:void 0,"methods"in t?t.methods:"undefined"!=typeof methods?methods:void 0,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"url_crisp_image"in t?t.url_crisp_image:"undefined"!=typeof url_crisp_image?url_crisp_image:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),a.join("")},markdown_vimeo:function(t){var s,c=[],t=t||{};return function(t,i,n,e){c.push("");e="https://vimeo.com/"+t(e)+"?autoplay=1";c.push("'+(null==(s=n||e)?"":s)+"")}.call(this,"encodeURIComponent"in t?t.encodeURIComponent:"undefined"!=typeof encodeURIComponent?encodeURIComponent:void 0,"methods"in t?t.methods:"undefined"!=typeof methods?methods:void 0,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),c.join("")},markdown_dailymotion:function(t){var a=[],t=t||{};return function(t,i,n,e,s){a.push("");var c="https://www.dailymotion.com/embed/video/"+t(s),s=t("https://www.dailymotion.com/thumbnail/video/"+t(s));a.push("")}.call(this,"encodeURIComponent"in t?t.encodeURIComponent:"undefined"!=typeof encodeURIComponent?encodeURIComponent:void 0,"methods"in t?t.methods:"undefined"!=typeof methods?methods:void 0,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"url_crisp_image"in t?t.url_crisp_image:"undefined"!=typeof url_crisp_image?url_crisp_image:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),a.join("")},markdown_frame:function(t){var e,s=[],t=t||{};return function(t,i,n){s.push("'+(null==(e=i||n)?"":e)+"")}.call(this,"methods"in t?t.methods:"undefined"!=typeof methods?methods:void 0,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),s.join("")},smiley:function(t){var n=[],t=t||{};return function(t,i){n.push("')}.call(this,"name"in t?t.name:"undefined"!=typeof name?name:void 0,"size"in t?t.size:"undefined"!=typeof size?size:void 0),n.join("")},magnify:function(t){var i=[];return i.push('
'),i.join("")},date_now:function(t){var i,n=[],t=t||{};return function(t){n.push(''+h.Library.jade.runtime.escape(null==(i=t("date","now"))?"":i)+"")}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0),n.join("")},date_seconds:function(t){var i,n=[],t=t||{};return function(t){n.push(''+h.Library.jade.runtime.escape(null==(i=t("date","second"))?"":i)+"")}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0),n.join("")},date_minutes:function(t){var n,e=[],t=t||{};return function(t,i){e.push(''),1===i?e.push(h.Library.jade.runtime.escape(null==(n=t("date","minute_singular"))?"":n)):e.push(h.Library.jade.runtime.escape(null==(n=t("date","minute_plural",[i]))?"":n)),e.push("")}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0,"minutes"in t?t.minutes:"undefined"!=typeof minutes?minutes:void 0),e.join("")},date_hours:function(t){var n,e=[],t=t||{};return function(t,i){e.push(''),1===i?e.push(h.Library.jade.runtime.escape(null==(n=t("date","hour_singular"))?"":n)):e.push(h.Library.jade.runtime.escape(null==(n=t("date","hour_plural",[i]))?"":n)),e.push("")}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0,"hours"in t?t.hours:"undefined"!=typeof hours?hours:void 0),e.join("")},date_far_away:function(t){var i,n=[],t=t||{};return function(t){n.push(''+h.Library.jade.runtime.escape(null==(i=t)?"":i)+"")}.call(this,"date_full"in t?t.date_full:"undefined"!=typeof date_full?date_full:void 0),n.join("")},duration_now:function(t){var i,n=[],t=t||{};return function(t){n.push(''+h.Library.jade.runtime.escape(null==(i=t("duration","now"))?"":i)+"")}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0),n.join("")},duration_seconds:function(t){var i,n=[],t=t||{};return function(t){n.push(''+h.Library.jade.runtime.escape(null==(i=t("duration","second"))?"":i)+"")}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0),n.join("")},duration_minutes:function(t){var n,e=[],t=t||{};return function(t,i){e.push(''),1===i?e.push(h.Library.jade.runtime.escape(null==(n=t("duration","minute_singular"))?"":n)):e.push(h.Library.jade.runtime.escape(null==(n=t("duration","minute_plural",[i]))?"":n)),e.push("")}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0,"minutes"in t?t.minutes:"undefined"!=typeof minutes?minutes:void 0),e.join("")},duration_hours:function(t){var n,e=[],t=t||{};return function(t,i){e.push(''),1===i?e.push(h.Library.jade.runtime.escape(null==(n=t("duration","hour_singular"))?"":n)):e.push(h.Library.jade.runtime.escape(null==(n=t("duration","hour_plural",[i]))?"":n)),e.push("")}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0,"hours"in t?t.hours:"undefined"!=typeof hours?hours:void 0),e.join("")},duration_days:function(t){var i,n=[],t=t||{};return function(t){n.push(''+h.Library.jade.runtime.escape(null==(i=t("duration","days"))?"":i)+"")}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0),n.join("")},chat:function(t){var a,r=[],o={},t=t||{};return function(e,s,t,i){r.push(""),r.push(""),o["text-space"]=a=function(){this&&this.block,this&&this.attributes,r.push(" ")},r.push('
'),function(){var t=["chat","helpdesk"];if("number"==typeof t.length)for(var i=0,n=t.length;i'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_header_mode_"+e))?"":a)+"")}else for(i in n=0,t)n++,r.push("'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_header_mode_"+e))?"":a)+"")}.call(this),r.push('
{{ (active_avatar.type === \'website\' && $store.base.other_operators_count > 0 && $store.chat.show_operator_count === true) ? $render._e("chat", "chat_header_initial_avatar_website_tooltip", [$store.base.other_operators_count]) : active_avatar.name }}{{ $store.chat.ongoing_operator.name }}'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_header_ongoing_from"))?"":a)+' {{ $store.base.configuration.website.name }}'+h.Library.jade.runtime.escape(null==(a=s("theme_text",["default_chat",t.chat.theme_text+"_chat"]))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_header_ongoing_status_online"))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_header_ongoing_status_away"))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_header_channels"))?"":a)+'{{ $render._e("chat", "chat_header_ongoing_channel_continue", [channel.format]) }}
'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_header_helpdesk_results"))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_header_helpdesk_curated"))?"":a)+'
'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_offline_main"))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_offline_fail"))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_offline_inactive"))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_offline_label_resume"))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_offline_label_frozen"))?"":a)+'
'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_health_main"))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_health_label_link"))?"":a)+""),o["text-space"](),r.push(h.Library.jade.runtime.escape(null==(a=s("chat","chat_health_label_updates"))?"":a)+'
{{ $store.chat.timestamp_to_properties(message.timestamp).title }}
{{ ((message.user.type === \'website\') ? message.user.nickname : $render._n(message.user.nickname)) }}
{{ message.content.name }}'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_message_file_name"))?"":a)+'1x{{ $render.format_time(message.content.duration) }}
('+h.Library.jade.runtime.escape(null==(a=s("chat","chat_message_tag_participant"))?"":a)+','),o["text-space"](),r.push(''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_message_tag_edited"))?"":a)+','),o["text-space"](),r.push(''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_message_tag_translated"))?"":a)+')
{{ (message.content.value || message.content.explain) }}
{{ choice.label }}{{ target.title }}{{ target.description }}{{ action.label }}
{{ (link_preview.title || link_preview.website || link_preview.url) }}
'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_message_info_read"))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_message_error_retry"))?"":a)+'
'),function(){var t=e(3);if("number"==typeof t.length)for(var i=0,n=t.length;i');else for(i in n=0,t)n++,t[i],r.push('')}.call(this),r.push('
'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_form_attach_tooltip"))?"":a)+'
');var n=s("chat","chat_feedback_rate_placeholder");r.push(''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_feedback_rate_title"))?"":a)+''),function(){var t=e(5);if("number"==typeof t.length)for(var i=0,n=t.length;i');else for(i in n=0,t)n++,t[i],r.push("')}.call(this),r.push(''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_feedback_rate_submit"))?"":a)+'
');var c=s("chat","chat_pickers_gif_search");r.push(''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_pickers_gif_no_results"))?"":a)+"
');c=s("chat","chat_form_field_message"),n=s("chat","chat_form_field_disabled");r.push('
'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_form_smiley_tooltip"))?"":a)+''),!0===t.chat.file_transfer&&r.push(''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_form_attach_tooltip"))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_form_attach_wait_preparing"))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_form_attach_wait_uploading"))?"":a)+'{{ $render.format_time($store.chat.speech.duration) }}'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_form_speech_tooltip"))?"":a)+''),r.push(''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_form_feedback_tooltip"))?"":a)+'
{{ $store.chat.helpdesk_viewer.category }}/{{ $store.chat.helpdesk_viewer.title }}'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_helpdesk_viewer_open_tooltip"))?"":a)+'
'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_helpdesk_search_empty"))?"":a)+'
'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_helpdesk_search_unpopulated"))?"":a)+'
'+h.Library.jade.runtime.escape(null==(a=s("chat","minimized_tooltip_message_from"))?"":a)+'{{ (message.user.type === \'website\') ? message.user.nickname : $render._n(message.user.nickname) }}đŸ“Ļ {{ message.content.name }}🎧'+h.Library.jade.runtime.escape(null==(a=s("chat","minimized_tooltip_message_compose"))?"":a)+'{{ $store.minimized.pane.unread.count }}
')}.call(this,"Array"in t?t.Array:"undefined"!=typeof Array?Array:void 0,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0,"configuration"in t?t.configuration:"undefined"!=typeof configuration?configuration:void 0,"undefined"in t?t.undefined:void 0),r.join("")},minimized_authorized:function(t){var i,n=[],t=t||{};return function(t){n.push(""),n.push('")}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0),n.join("")},minimized_unauthorized:function(t){var i,n=[],t=t||{};return function(t){n.push(""),n.push('")}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0),n.join("")},chat_frame:function(t){var i=[];return i.push('
{{ $store.chat.frame.title }}
'),i.join("")},chat_game:function(t){var i,n=[],t=t||{};return function(t){n.push('')}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0),n.join("")},browsing_assist:function(t){var i=[];return i.push('
{{ $render._e("browsing", "assist_mouse_tooltip", [$store.base.configuration.website.name]) }}
'),i.join("")},call_ring:function(t){var i,n=[],t=t||{};return function(t){n.push('
{{ $render._e("call", "ring_title_label", [$store.call.user.nickname]) }}
{{ $render._e("call", "ring_title_website", [$store.base.configuration.website.name]) }}
  • '+h.Library.jade.runtime.escape(null==(i=t("call","ring_actions_decline"))?"":i)+'
  • '+h.Library.jade.runtime.escape(null==(i=t("call","ring_actions_accept"))?"":i)+"
")}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0),n.join("")},call_screen:function(t){var a,r=[],t=t||{};return function(s,t){r.push('
  • '+h.Library.jade.runtime.escape(null==(a=s("call","screen_label_audio_muted"))?"":a)+'
  • '+h.Library.jade.runtime.escape(null==(a=s("call","screen_label_video_muted"))?"":a)+'
{{ $store.call.user.nickname }}');var c=["connecting","ongoing"];(function(){var t=c;if("number"==typeof t.length)for(var i=0,n=t.length;i'+h.Library.jade.runtime.escape(null==(a=s("call","screen_status_"+e))?"":a)+"")}else for(i in n=0,t)n++,r.push("'+h.Library.jade.runtime.escape(null==(a=s("call","screen_status_"+e))?"":a)+"")}).call(this),r.push('{{ $render.format_time($store.call.duration) }}
')}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0,"undefined"in t?t.undefined:void 0),r.join("")}};this.logger=r.Console,this.vue=r.PetiteVue,this.crisp={web:r.CrispLibraryWeb,client:r.CrispLibraryClient},this.jade={runtime:r.jade,client:_}}catch(t){}};g.Library=t;var i=new(function(){function t(){try{this.ns="CrispCompatibility",this.Hs=2e4,this.Ks="UTF-8",this.Gs='You can disable this warning by adding: $crisp.push(["safe", true]) to your page JavaScript.',this.Ys=/\{\s*\[native code\]\s*\}$/,this.ht(),this.Zs()}catch(t){}}var i=t.prototype;return i.reset=function(){try{this.ht()}catch(t){}},i.schedule_warn_incompatible=function(){var t=this,i=0this.va||-1!==n.indexOf(s)){i=!1;break}n.push(s)}}catch(t){}finally{return i}},t}());g.Validate=o;var h=new(function(){function t(){try{this.ns="CrispDate",this.wa=20,this.ba=1e3,this.ka=60,this.$a=24,this.xa=60,this.Fa=this.ka*this.xa,this.ja=this.$a*this.Fa,this.Ea=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],this.za=["january","february","march","april","may","june","july","august","september","october","november","december"]}catch(t){}}var i=t.prototype;return i.directive=function(i){var t,n=this;try{var e=i.get()||{},s=e.date,c=e.format||"",a=e.type||"date",r=null,o=function(){g.Utility.clear_timeout(r),r=null},h=function(){o(),r=g.Utility.set_timeout(function(){l()},n.wa*n.ba)},l=function(){var t="";switch(a){case"date":t=n.format_date(n.timestamp_to_iso(s));break;case"duration":t=n.format_duration(s)}c&&(t=g.Library.crisp.web.Parse.replace(c,[g.Utility.lower_string_first(t)])),i.el.innerText=t,h()};i.effect(function(){var t=i.get()||{};s=t.date,c=t.format||"",l()}),t=function(){o()}}catch(t){}finally{return t||function(){}}},i.timestamp_to_iso=function(t){var i="";try{i=new Date(t).toISOString()}catch(t){}finally{return i}},i.iso_to_timestamp=function(t){var i=0;try{i=new Date(t).getTime()}catch(t){}finally{return i}},i.timestamp_to_properties=function(t){var i,n,e,s={day:"none",month:"none",year:"none",title:null};try{0n.ur&&(a=n.lr),u.playbackRate=a,h.innerText=a%1==0?"x".concat(Math.floor(a)):"".concat(a)}catch(t){}finally{return!1}}))}catch(t){}finally{return function(){}}},i.dr=function(t,i,n,e){var s=!(4t.length)&&(i=t.length);for(var n=0,e=new Array(i);n=this.Zo)&&(e+=1,n=s,g.Library.crisp.client.Storage.set_stamp_local(this.Xo,i,"".concat(e))),g.Library.crisp.client.Storage.set_stamp_local(this.Xo,t,"".concat(s))}catch(t){}},i.Eh=function(t){var i=[];try{i=[g.Base.wh,"visit",t]}catch(t){}finally{return i}},i.ht=function(){try{this.gh=[],this.yh=null,this.Fh=!1,this.qh=!1,this.Sh=null,this.Oh=10,this._h={}}catch(t){}},t}());g.Trigger=k;var $=new(function(){function t(){try{this.ns="CrispBase",this.Rh=600,this.Bh=480,this.Nh=720,this.Mh=540,this.Th=840,this.Uh=640,this.Ph=6e5,this.Lh=6e5,this.Jh=1728e5,this.Vh=1e3,this.Wh=1e4,this.Hh=3,this.Kh=/_/g,this.Gh={socket:!0,buster:1},this.Yh={other:{container_index:1e6}},this.Zh={childList:!0,attributes:!1,subtree:!1,characterData:!1},this.Xh=/^(?:https?:[\/]*)?([^\/]+)(?:\/.*)?$/i,this.Qh(),this.ht()}catch(t){}}var i=t.prototype;return i.init=function(){var i=this,t=0=this.Th&&window.innerWidth>=this.Uh&&(t=!0)}catch(t){}finally{return t}},i.is_invisible=function(){var t=!1;try{!0===this.ml.lock_maximized||!0===g.Chat.Message.zh&&!0!==this.is_activity_outdated()||(!0===this.is_blocked()&&(t=!0),!0===this.mc.chat.hide_vacation&&(t=!0),!0===this.mc.chat.hide_on_away&&!0!==g.Store.$store.base.was_availability_online&&!0!==g.Availability.Zc&&(t=!0),!0===this.mc.chat.hide_on_mobile&&!0===this.is_mobile_view()&&(t=!0))}catch(t){}finally{return t}},i.is_blocked=function(){var t=!1;try{t=(!0===this.Cl||!0===this.Al)&&!0}catch(t){}finally{return t}},i.is_activity_outdated=function(){var t=!1;try{0=this.Ph&&(t=!0)}catch(t){}finally{return t}},i.process_blocked_states=function(){var t=!1;try{var i=g.Locale.code();this.Cl=!(!(0=s.Wh&&(s.Ol=e,g.Library.crisp.client.Issue.report(t,i,n)))}))}catch(t){}},i.uninsert_client=function(){try{"MutationObserver"in window&&(this.Sl("html"),this.Sl("body")),g.Library.crisp.client.socket.disconnect(),this.Fl()}catch(t){}},i.re_trigger_loader=function(){try{"function"==typeof this.yl&&this.yl()}catch(t){}},i._l=function(n,e){var s=this;try{var t=new Date,i="".concat(t.getFullYear(),"-").concat(t.getMonth(),"-").concat(t.getDate(),"-")+"".concat(t.getHours(),"-").concat(t.getMinutes());this.load_dependency("website",["".concat(this.Ya,"/settings/website/"),"".concat(encodeURIComponent(this.wh),"/prelude/")].join(""),function(t){var i=null!=t&&t.error?t.error:null;i?e(i):n(t||s.Gh)},!0,i)}catch(t){}},i.zl=function(){try{this.Dl(),"MutationObserver"in window&&(this.Rl(document.documentElement),this.Bl(document.body))}catch(t){}},i.Dl=function(){try{var t=document.querySelector("body");t&&t.appendChild(this.jl),g.Template.vue(this.jl)}catch(t){}},i.Fl=function(){try{null!==this.jl&&(this.jl.remove(),this.jl=null)}catch(t){}},i.$l=function(){try{this.Nl(!0)}catch(t){}},i.xl=function(){var e=this;try{this.Nl(!1),this.load_website_settings({},function(t,i,n){!0!==n&&g.Availability.receive(i.online||!1,!1),e.spawn_client(t),g.Minimized.init(!1,!1,n),g.Utility.next_render(function(){e.trigger_session_loaded()})},this.wl)}catch(t){}},i.Nl=function(){var t=0e&&(i=n.website.count_operators-e),g.Store.$store.base.other_operators_count=i}catch(t){}},i.ht=function(){try{this.Vc=!1,this.mc={},this.Jc=null,this.tl=null,this.il=null,this.nl=null,this.sl=null,this.cl=null,this.pc=null,this.al=null,this.Ya=null,this.Ao=null,this.rl=null,this.ol=null,this.Za=null,this.yc=null,this.wh=null,this.hl=null,this.ll=null,this.ul=null,this.Oo=null,this.So=null,this.fl=null,this.dl=null,this.vl=null,this.ar=null,this.wl=1,this.gl=!0,this.bl={},this.Cl=!1,this.Al=!1,this.pl=null,this.yl=null,this.ml={},this.Ol=0,this.Ul=null,this.ql={color:{},other:{}},this.Ml={}}catch(t){}},t}());g.Base=$;var x=new(function(){function t(){try{this.ns="CrispMinimized",this.Event=void 0,this.Interface=void 0,this.ht()}catch(t){}}var i=t.prototype;return i.init=function(){var t=!(0=n)return alert(g.Locale.text("chat","chat_form_attach_alert_size")),void this.Ju();this.Vu=i,this.Wu(t,this.Lu[0])}}catch(t){}},i.set_drop_zone=function(t){try{!0===g.Base.mc.chat.file_transfer&&(g.Store.$store.chat.has_drop_zone=t)}catch(t){}},i.handle_file_change=function(){var t=0=i.if&&g.Library.crisp.client.Helpdesk.get_article_suggest(t,g.Locale.code())},this.tf))}catch(t){}},i.handle_articles=function(){var n=this,e=0=g.Store.$store.chat.helpdesk_search.articles.length?0:i)<0&&(i=g.Store.$store.chat.helpdesk_search.articles.length-1),g.Store.$store.chat.helpdesk_search.current_index=i,g.Utility.next_render(function(){var t=g.Chat.Selector.get("content").querySelector("".concat(".cc-1i08",'[data-active="true"]'));t&&t.scrollIntoView({behavior:"smooth",block:"nearest"})})}catch(t){}},i.ef=function(){try{null!==this.sf&&(g.Utility.clear_timeout(this.sf),this.sf=null),null!==this.cf&&(g.Utility.clear_timeout(this.cf),this.cf=null)}catch(t){}},i.ht=function(){try{this.cf=null,this.nf=""}catch(t){}},t}());g.Chat.Helpdesk=B;var N=new(function(){function t(){try{this.ns="CrispChatInterface",this.af=320,this.rf=340,this.hf=360,this.lf=460,this.uf=400,this.ff=580,this.df=440,this.vf=500,this.pf=600,this.yf=22,this.mf=8,this.gf=350,this.wf=1e3,this.bf=1e3,this.kf=216e5,this.$f=1e3,this.xf=10,this.Ff=!1,this.jf=[["email","Email"],["phone","Phone"],["messenger","Messenger"],["telegram","Telegram"],["twitter","X (Twitter)"],["whatsapp","WhatsApp"],["instagram","Instagram"]],this.Ef=/^(?:https?:)?(?:\/\/)?([^\/\?]+)/,this.ht()}catch(t){}}var i=t.prototype;return i.init=function(){try{this.zf()}catch(t){}},i.reset=function(){try{this.ht()}catch(t){}},i.toggle_visibility=function(){var t,i,n,e=this,s=0")):e&&(i="mailto:".concat(e));break;case"phone":e&&(i="tel:".concat(e));break;case"messenger":e&&(i="https://m.me/".concat(encodeURI(e)));break;case"telegram":e&&(i="https://telegram.me/".concat(encodeURI(e)));break;case"twitter":e&&(i="https://x.com/".concat(encodeURI(e)));break;case"whatsapp":e&&(i="https://wa.me/".concat(encodeURI(e)));break;case"instagram":e&&(i="https://www.instagram.com/".concat(encodeURI(e),"/"));break;case"helpdesk":case"status":e&&(n="production"===g.Base.ol?"https":"http",i="".concat(n,"://").concat(e,"/"))}}catch(t){}finally{return i}},i.request_dynamic_sizing_properties=function(){var t=this,i=0=this.xf||null!==this.Nf)&&(g.Chat.Scroll.Bf=t,this.Mf(g.Chat.Scroll.Bf))}catch(t){}},i.Ac=function(){var i=this,t=(g.Base.mc||{}).website||{},n=g.Base.mc.chat.helpdesk_link&&g.Base.mc.channels.helpdesk&&g.Base.So!==g.Base.mc.channels.helpdesk&&!0,t={blocked:g.Base.is_blocked(),helpdesk:{search:n,only:n&&g.Base.mc.chat.helpdesk_only&&!0},status:{url:this.generate_channel_link("status")},activity:{metrics:null!==(n=t.response_metrics)&&void 0!==n&&n.mean&&t.response_metrics.mean>=this.bf&&t.response_metrics.meane.xf&&document.activeElement.blur())},{passive:!1,capture:!0})):this.refresh_resize_page_scroll(!0)}catch(t){}},i.zf=function(){var t=this;try{this.Rf=(!window.hasFocus||window.hasFocus())&&!0,g.Utility.add_event_listener(this.ns,"window","focus",function(){t.Rf=!0,t.apply_chat_focus()},{capture:!1}),g.Utility.add_event_listener(this.ns,"window","blur",function(){t.Rf=!1,t.apply_chat_focus()},{capture:!1})}catch(t){}},i.Of=function(){try{this.Af=!1,g.Store.$store.chat.is_opened=!1}catch(t){}},i.ht=function(){try{this.Af=!0,this.Su=0,this.qu=0,this.Au=0,this.Ou=0,this.Jf=40,this.qf=null,this.If=null,this.Pf=0,this.Uf=0,this.Df=-1,this.Nf=null,this.Rf=!0}catch(t){}},t}());g.Chat.Interface=N;var M=new(function(){function t(){try{this.ns="CrispChatMessage",this.Vf=1500,this.Wf=3e4,this.Hf=6e4,this.Kf=3e4,this.Gf=400,this.Yf=5e3,this.Zf=12e4,this.Xf="urn:crisp.im:triggers:0",this.Qf=["welcome","identity","game","feedback"],this.td=["email","phone"],this.nd=["📨","☎ī¸"],this.ed=["field","picker"],this.ht()}catch(t){}}var i=t.prototype;return i.init=function(){try{this.sd()}catch(t){}},i.reset=function(){try{this.ht()}catch(t){}},i.send=function(){var t;try{!0!==this.check_intent_send()||(t=(t=g.Action.get_message_text()).trim())&&(g.Action.do_message_send("text",t),g.Action.set_message_text(""),g.Chat.Selector.get("form_textarea_message").dispatchEvent(new window.KeyboardEvent("keyup")))}catch(t){}},i.received=function(t){var i=!(1=this.Zf?this.hide_compose():g.Utility.set_timeout(function(){t.md()},this.Yf))}catch(t){}},i.cd=function(t){var i=!0;try{var n=g.Utility.clone(t);if(1==(i=!g.Store.$store.messages.fingerprints[n.fingerprint]))void 0===n.read&&(n.read=!1),void 0===n.metas&&(n.metas={is_new:!1,has_error:!1},"field"!==n.type&&"picker"!==n.type||(n.metas.field={value:""})),g.Store.$store.messages.fingerprints[n.fingerprint]=!0,g.Store.$store.messages.list.push(n);else for(var e=0;ethis.rd&&this.hide_compose(),0=i-g.Chat.Interface.Jf&&g.Chat.Alert.update("new_messages","hide")}catch(t){}},i.Id=function(t,i,n,e){var s=[];try{for(var c=null,a=[],r=n.length-1;0<=r&&!(-1!==i.indexOf(n[r].fingerprint)&&(s.unshift(n[r]),s.length>=this.Cd));r--);g.Store.$store.messages.preview=[];for(var o=0;o=i-this.Lf)&&(s=!0,this.to()),!1===s&&"from"===e&&g.Chat.Alert.update("new_messages","show"))}catch(t){}finally{return s}},i.unwind_wheel=function(t,i){var n=2=t?i.Wd.pause():(i.ev++,i.sv=Math.floor(100*Math.min(i.ev/t,1)),g.Store.$store.chat.speech.duration=i.ev,g.Store.$store.chat.speech.progress=i.sv)},this.ba))}catch(t){}},i.cv=function(){try{null!==this.ov&&(g.Utility.clear_interval(this.ov),this.ov=null)}catch(t){}},i.ht=function(){try{this.Wd=null,this.av=[],this.ev=0,this.sv=0,this.Hd=null,this.Kd=null,this.iv=!1,this.nv=!1,this.ov=null}catch(t){}},t}());g.Chat.Speech=J;var V=new(function(){function t(){try{this.ns="CrispChatState",this.hv=250,this.lv=240,this.uv=[["show","unlock"],["unlock","show"],["hide","lock"],["lock","hide"],["lock","show"]],this.fv={trigger:this.dv,alert:this.vv,intent:this.pv,operator:this.yv,scroll:this.mv,maximized:this._v,textarea:this.gv},this.wv(),this.ht()}catch(t){}}var i=t.prototype;return i.init=function(){},i.reset=function(t){var i=this;try{this.ht(),t.push(function(){i.wv()})}catch(t){}},i.receive=function(t){var i=1=i.Wv&&(g.Utility.clear_interval(i.Yv),(i.Yv=null)!==i.Zv&&g.Utility.clear_timeout(i.Zv),i.Zv=g.Utility.set_timeout(function(){i.Zv=null,g.Library.crisp.client.Browsing.toggle_ignore_scroll_event(!1)},i.Vv))},a))}}catch(t){}},i.pipe_click=function(t){var i,n,e,s,c=this;try{g.Browsing.Pv===this.Lv&&(null!==this.Gv&&(this.Gv.setAttribute("data-is-clicking","true"),null!==this.Xv&&g.Utility.clear_timeout(this.Xv),this.Xv=g.Utility.set_timeout(function(){c.Xv=null,c.Gv.removeAttribute("data-is-clicking")},this.Kv)),t.click&&(i=t.click.x-this.Hv,n=t.click.y,i<0&&(i=0),e=document.elementFromPoint(i,n),(s=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,null,t.click.x,t.click.y,0,0,!1,!1,!1,!1,0,null),s.ts=!0,e&&e.dispatchEvent(s)))}catch(t){}},i.Qh=function(){try{this.Gv=null}catch(t){}},i.ht=function(){try{this.Yv=null,this.Zv=null,this.Xv=null}catch(t){}},t}());g.Browsing.Assist=Y;var Z=new(function(){function t(){try{this.ns="CrispCall",this.Event=null,this.Qv=6,this.ba=1e3,this.ht()}catch(t){}}var i=t.prototype;return i.reset=function(){try{this.ht()}catch(t){}},i.ring=function(t){try{this.tp(),g.Sound.initialize("call"),g.Utility.merge(g.Store.$store.call,{mode:t.mode,size:"maximized",state:null,duration:0,user:{user_id:t.user.user_id||g.Base.wh,nickname:g.Library.crisp.web.Name.parse_first_name(t.user.nickname)||g.Base.mc.website.name,type:t.user.user_id?"operator":"website"},actions:this.ip(t.mode),muted:{audio:!1,video:!1}}),this.np=g.Template.dom(g.Template.render("call_ring")),g.Call.Event.bind(),g.Template.vue(this.np),g.Base.Kc.appendChild(this.np),g.Sound.start("call","call-ring",!0)}catch(t){}},i.screen=function(){try{this.tp(),this.np=g.Template.dom(g.Template.render("call_screen")),g.Call.Event.bind(),g.Template.vue(this.np),this.ep(),this.sp("connecting"),g.Base.Kc.appendChild(this.np)}catch(t){}},i.stop=function(){try{this.tp(),g.Sound.start("call","call-hangup")}catch(t){}},i.success=function(t){try{switch(t){case"media_remote":this.cp();break;case"media_local":this.ap()}}catch(t){}},i.error=function(){try{this.tp(),g.Sound.start("call","call-hangup")}catch(t){}},i.toggle_media_status=function(t){var i=1