apxor-rtm 1.2.8 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("apxor"),require("apxor-qe")):"function"==typeof define&&define.amd?define(["exports","apxor","apxor-qe"],t):t((e=e||self)["apxor-rtm"]={},e.Apxor,e.CE)}(this,(function(e,t,n){"use strict";function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var o,i,r=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(r.push(o.value),!t||r.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return r}(e,t)||u(e,t)||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 p(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var f="https://server.apxor.com",m=f+"/v2/api/survey-response?appId=<app_id>",v=1,g=2,b=3,y=4,x=function(e){return"InApp".concat(e,"Clicked")},w=["&#128545;","&#128544;","&#128534;","&#128547;","&#128577;","&#128528;","&#128578;","&#128516;","&#128515;","&#128525;"],_=["&#128545;","&#128577;","&#128528;","&#128515;","&#128525;"],E=["#E5510A","#EA731D","#F8C94F","#A3CF6A","#7BB65C"],k=["#E5510A","#EA731D","#EA8F4D","#EA8F4D","#F1B052","#F8C94F","#F6DE4F","#D7D55A","#B7CF6A","#A3CF6A","#7BB65C"],C=function(e){return void 0!==e&&!function(e){return null===e}(e)},T=function(e){var t=e.indexOf("svg");-1!==t&&(e=e.substring(0,t)+"svg:svg");try{return document.evaluate(e,document,(function(e){return"svg"===e?"http://www.w3.org/2000/svg":null}),XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}catch(e){}return null},A=function(e){switch(e){case"center":return"center";case"left":return"flex-start";default:return"flex-end"}},O=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o="";if(e.length>0){var i=e[0],r=i.bg_color,a=i.text_color,s=i.size,c=i.font_family,l=i.borders,d=l.stroke_color,p=l.radius;o="\n ".concat(n," footer .shepherd-button.button-o {\n background-color: ").concat("#"===r?"transparent":r,";\n color: ").concat(a,";font-size: ").concat(s,"px;font-family: ").concat(c,";\n font-weight: ").concat("bold"!==c?"normal":c,";\n font-style: ").concat("italic"===c?"italic":"unset",";\n border: 0px solid ").concat(d,";border-radius: ").concat(p,"px;\n margin-right:").concat("#"===r?0:"12px","\n }\n ")}if(e.length>1){var u=e[1],h=u.bg_color,f=u.text_color,m=u.size,v=u.font_family,g=u.borders,b=g.stroke_color,y=g.radius;o+="\n ".concat(n," footer .shepherd-button.button-t {\n background-color: ").concat("#"===h?"transparent":h,";\n color: ").concat(f,";font-size: ").concat(m,"px;font-family: ").concat(v,";\n font-weight: ").concat("bold"!==v?"normal":v,";\n font-style: ").concat("italic"===v?"italic":"unset",";\n border: 0px solid ").concat(b,";border-radius: ").concat(y,"px;\n }\n ")}return"\n ".concat(n," footer .shepherd-button {\n display: inline-block;\n *display: inline;\n vertical-align: middle;\n *vertical-align: auto;\n *zoom: 1;\n border: 0;border-radius: 3px;cursor: pointer;display: inline;font-family: inherit;\n font-size: .8em;letter-spacing: .01em;line-height: 18px;margin-right: 12px;\n padding: 8px 16px;text-transform: none;transition: all .5s ease\n }\n ").concat(o,"\n ").concat(n," footer .shepherd-button:last-child {\n margin-right: 0\n }\n\n ").concat(n," footer {\n border-bottom-left-radius: 5px;\n border-bottom-right-radius: 5px;\n display: flex;\n justify-content: ").concat(A(t),";\n padding: 0 .8em .8em\n }\n ")},L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=window.ApxorRTM,r=[],a=[];return e.forEach((function(e,s){var c,l,d,p,u,h,f,m,v,g=null!==(c=null==e||null===(l=e.action_config)||void 0===l?void 0:l.action)&&void 0!==c?c:"end",b=null!==(d=null==e||null===(p=e.action_config)||void 0===p?void 0:p.url)&&void 0!==d?d:"",y=null===(u=null==e||null===(h=e.action_config)||void 0===h?void 0:h.is_external)||void 0===u||u,x=null!==(f=null==e||null===(m=e.action_config)||void 0===m?void 0:m.is_within)&&void 0!==f&&f,w=e.borders,_=e.color,E=e.text_config,k=E.text,C=E.color,T=E.size,A=E.style,O=E.font_family;try{switch(g){case"done":case"dismiss":v=function(){i.logActionEvent("Inline_"+k+"_Clicked",n,o),t.complete()};break;case"next":v=t.next;break;case"redirect":v=function(){i.logActionEvent("Inline_"+k+"_Clicked",n,o),x||y?window.open(b,x?"_self":"_blank"):i.logClientEvent("REDIRECT",{url:b}),t.next()};break;case"cancel":v=function(){i.logActionEvent("Inline_"+k+"_Clicked",n,o),t._isCancelled=!0,t.cancel()};break;default:v=function(){i.logActionEvent("Inline_"+k+"_Clicked",n,o),t.cancel()}}}catch(e){}a.push({borders:w,bg_color:_,text_color:C,size:T,style:A,font_family:O}),r.push({classes:0===s?"button-o":"button-t",text:k,action:v})})),{buttons_array:r,buttons_css:a}};var S=function(e,t,n){var o=n.dim_background,i=void 0===o||o,r=n.dim_bg_color,a=void 0===r?"#000000":r,s=n.dim_bg_opacity,c=void 0===s?.87:s,l=n.position,d=document.createElement("div");d.setAttribute("id","apx-oly");var p=document.createElement("style"),u="center",h="center";switch(l){case"bottom-left":u="flex-start",h="flex-end";break;case"bottom-right":u="flex-end",h="flex-end";break;case"top-left":u="flex-start",h="flex-start";break;case"top-right":u="flex-end",h="flex-start"}var f="none";if(i){var m=function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,o){return t+t+n+n+o+o}));var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}(a);f="rgb(".concat(m.r,", ").concat(m.g,", ").concat(m.b,", ").concat(c,")")}p.innerHTML="\n#apx-oly {\n width:100%;height:100%;position:fixed;top:0;left:0;background-color:".concat(f,";\n display:flex;justify-content:").concat(u,";align-items:").concat(h,";border-radius:3px;z-index:2147483647\n}\n#apx-oly > * {font-family: inherit;box-sizing:unset}\n.apx-dlg-c {\n width:").concat(e,"px;min-height:").concat(t,"%;background:white;z-index:99999999;opacity:0;position:relative;visibility:hidden;\n transition:all 500ms cubic-bezier(0, -0.37, 0, 2.06);top:-15px;border-radius:3px;margin:20px\n}\n.apx-dlg-c.open {opacity:1;visibility:visible;top:0}\n ").replaceAll("\n","").replace(/[\s]{2,999}/g,"");var v=document.createElement("div");return v.setAttribute("id","apx-dlg-c"),v.classList.add("apx-dlg-c"),d.appendChild(v),d.appendChild(p),document.body.appendChild(d),d},M=function(e){var t=e.offsetHeight,n=e.offsetWidth,o=e.getBoundingClientRect();return o.left>=-n&&o.top>=-t&&o.right<=(window.innerWidth||document.documentElement.clientWidth)+n&&o.bottom<=(window.innerHeight||document.documentElement.clientHeight)+t},N=function(e,t,n,o){return e.substring(0,t)+o+e.substring(n)},I=function(e){var n=t.getController().getUserAttributes(),o=t.getController().getSessionAttributes(),i=e.script.vmap,r=e.script.src,a=r.indexOf("{"),s=r.indexOf("}"),c=t.getController().getMasterEvents();try{for(;-1!=a&&-1!=s&&a<s;){var l=r.substring(a+1,s),d=i[l].t,p=i[l].n,u=i[l].def,h="";if("s"===d)h=o[p]?o[p]:u;else if("u"===d)h=n[p]?n[p]:u;else if("v"===d){var f=document.getElementById(p);(h=null==f?void 0:f.textContent)||(h=(null==f?void 0:f.value)||"")}else if("ev"===d){var m=i[l].n,v=i[l].prop;c[m]&&c[m][v]&&(h=c[m][v])}a=(r=N(r,a,s+1,h)).indexOf("{"),s=r.indexOf("}")}e.text=r}catch(e){console.log("Can't evaluate the dynamic text")}},D=function(e){var n=t.getController().getUserAttributes(),o=t.getController().getSessionAttributes(),i=e.script.vmap,r="",a=e.script.src,s=t.getController().getMasterEvents();Object.entries(i).forEach((function(e,t){var a=d(e,2),c=a[0],l=a[1],p=l.t,u=l.n,h=l.def,f="";if("s"===p)f=o[u]?o[u]:h;else if("u"===p)f=n[u]?n[u]:h;else if("v"===p){var m=document.getElementById(u);(f=null==m?void 0:m.textContent)||(f=(null==m?void 0:m.value)||"")}else if("ev"===p){var v=i[c].n,g=i[c].prop;s[v]&&s[v][g]&&(f=s[v][g])}r="".concat(r," \n let ").concat(c,' = "').concat(f,'";')}));var c="".concat(r," \n ").concat(a),l=new Function(c);e.text=l()};
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("apxor"),require("apxor-qe")):"function"==typeof define&&define.amd?define(["exports","apxor","apxor-qe"],t):t((e=e||self)["apxor-rtm"]={},e.Apxor,e.CE)}(this,(function(e,t,n){"use strict";function i(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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 l(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,o,r=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(r.push(i.value),!t||r.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return r}(e,t)||u(e,t)||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 p(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var f="https://server.apxor.com",m=f+"/v2/api/survey-response?appId=<app_id>",v=1,g=2,y=3,b=4,x=function(e){return"InApp".concat(e,"Clicked")},w=["&#128545;","&#128544;","&#128534;","&#128547;","&#128577;","&#128528;","&#128578;","&#128516;","&#128515;","&#128525;"],C=["&#128545;","&#128577;","&#128528;","&#128515;","&#128525;"],_=["#E5510A","#EA731D","#F8C94F","#A3CF6A","#7BB65C"],E=["#E5510A","#EA731D","#EA8F4D","#EA8F4D","#F1B052","#F8C94F","#F6DE4F","#D7D55A","#B7CF6A","#A3CF6A","#7BB65C"],k=function(e){return void 0!==e&&!function(e){return null===e}(e)},A=function(e){var t=e.indexOf("svg");-1!==t&&(e=e.substring(0,t)+"svg:svg");try{return document.evaluate(e,document,(function(e){return"svg"===e?"http://www.w3.org/2000/svg":null}),XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}catch(e){}return null},L=function(e){switch(e){case"center":return"center";case"left":return"flex-start";default:return"flex-end"}},M=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i="";if(e.length>0){var o=e[0],r=o.bg_color,a=o.text_color,s=o.size,l=o.font_family,c=o.borders,d=c.stroke_color,p=c.radius;i="\n ".concat(n," footer .shepherd-button.button-o {\n background-color: ").concat("#"===r?"transparent":r,";\n color: ").concat(a,";font-size: ").concat(s,"px;font-family: ").concat(l,";\n font-weight: ").concat("bold"!==l?"normal":l,";\n font-style: ").concat("italic"===l?"italic":"unset",";\n border: 0px solid ").concat(d,";border-radius: ").concat(p,"px;\n margin-right:").concat("#"===r?0:"12px","\n }\n ")}if(e.length>1){var u=e[1],h=u.bg_color,f=u.text_color,m=u.size,v=u.font_family,g=u.borders,y=g.stroke_color,b=g.radius;i+="\n ".concat(n," footer .shepherd-button.button-t {\n background-color: ").concat("#"===h?"transparent":h,";\n color: ").concat(f,";font-size: ").concat(m,"px;font-family: ").concat(v,";\n font-weight: ").concat("bold"!==v?"normal":v,";\n font-style: ").concat("italic"===v?"italic":"unset",";\n border: 0px solid ").concat(y,";border-radius: ").concat(b,"px;\n }\n ")}return"\n ".concat(n," footer .shepherd-button {\n display: inline-block;\n *display: inline;\n vertical-align: middle;\n *vertical-align: auto;\n *zoom: 1;\n border: 0;border-radius: 3px;cursor: pointer;display: inline;font-family: inherit;\n font-size: .8em;letter-spacing: .01em;line-height: 18px;margin-right: 12px;\n padding: 8px 16px;text-transform: none;transition: all .5s ease\n }\n ").concat(i,"\n ").concat(n," footer .shepherd-button:last-child {\n margin-right: 0\n }\n\n ").concat(n," footer {\n border-bottom-left-radius: 5px;\n border-bottom-right-radius: 5px;\n display: flex;\n justify-content: ").concat(L(t),";\n padding: 0 .8em .8em\n }\n ")},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=window.ApxorRTM,r=[],a=[];return e.forEach((function(e,s){var l,c,d,p,u,h,f,m,v,g=null!==(l=null==e||null===(c=e.action_config)||void 0===c?void 0:c.action)&&void 0!==l?l:"end",y=null!==(d=null==e||null===(p=e.action_config)||void 0===p?void 0:p.url)&&void 0!==d?d:"",b=null===(u=null==e||null===(h=e.action_config)||void 0===h?void 0:h.is_external)||void 0===u||u,x=null!==(f=null==e||null===(m=e.action_config)||void 0===m?void 0:m.is_within)&&void 0!==f&&f,w=e.borders,C=e.color,_=e.text_config,E=_.text,k=_.color,A=_.size,L=_.style,M=_.font_family;try{switch(g){case"done":case"dismiss":v=function(){o.logActionEvent("Inline_"+E+"_Clicked",n,i),t.complete()};break;case"next":v=t.next;break;case"redirect":v=function(){o.logActionEvent("Inline_"+E+"_Clicked",n,i),x||b?window.open(y,x?"_self":"_blank"):o.logClientEvent("REDIRECT",{url:y}),t.next()};break;case"cancel":v=function(){o.logActionEvent("Inline_"+E+"_Clicked",n,i),t._isCancelled=!0,t.cancel()};break;default:v=function(){o.logActionEvent("Inline_"+E+"_Clicked",n,i),t.cancel()}}}catch(e){}a.push({borders:w,bg_color:C,text_color:k,size:A,style:L,font_family:M}),r.push({classes:0===s?"button-o":"button-t",text:E,action:v})})),{buttons_array:r,buttons_css:a}};var O=function(e,t,n){var i=n.dim_background,o=void 0===i||i,r=n.dim_bg_color,a=void 0===r?"#000000":r,s=n.dim_bg_opacity,l=void 0===s?.87:s,c=n.position,d=document.createElement("div");d.setAttribute("id","apx-oly");var p=document.createElement("style"),u="center",h="center";switch(c){case"bottom-left":u="flex-start",h="flex-end";break;case"bottom-right":u="flex-end",h="flex-end";break;case"top-left":u="flex-start",h="flex-start";break;case"top-right":u="flex-end",h="flex-start"}var f="none";if(o){var m=function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,i){return t+t+n+n+i+i}));var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}(a);f="rgb(".concat(m.r,", ").concat(m.g,", ").concat(m.b,", ").concat(l,")")}p.innerHTML="\n#apx-oly {\n width:100%;height:100%;position:fixed;top:0;left:0;background-color:".concat(f,";\n display:flex;justify-content:").concat(u,";align-items:").concat(h,";border-radius:3px;z-index:2147483647\n}\n#apx-oly > * {font-family: inherit;box-sizing:unset}\n.apx-dlg-c {\n width:").concat(e,"px;min-height:").concat(t,"%;background:white;z-index:99999999;opacity:0;position:relative;visibility:hidden;\n transition:all 500ms cubic-bezier(0, -0.37, 0, 2.06);top:-15px;border-radius:3px;margin:20px\n}\n.apx-dlg-c.open {opacity:1;visibility:visible;top:0}\n ").replaceAll("\n","").replace(/[\s]{2,999}/g,"");var v=document.createElement("div");return v.setAttribute("id","apx-dlg-c"),v.classList.add("apx-dlg-c"),d.appendChild(v),d.appendChild(p),document.body.appendChild(d),d},S=function(e){var t=e.offsetHeight,n=e.offsetWidth,i=e.getBoundingClientRect();return i.left>=-n&&i.top>=-t&&i.right<=(window.innerWidth||document.documentElement.clientWidth)+n&&i.bottom<=(window.innerHeight||document.documentElement.clientHeight)+t},D=function(e,t,n,i){return e.substring(0,t)+i+e.substring(n)},I=function(e){var n=t.getController().getUserAttributes(),i=t.getController().getSessionAttributes(),o=e.script.vmap,r=e.script.src,a=r.indexOf("{"),s=r.indexOf("}"),l=t.getController().getMasterEvents();try{for(;-1!=a&&-1!=s&&a<s;){var c=r.substring(a+1,s),d=o[c].t,p=o[c].n,u=o[c].def,h="";if("s"===d)h=i[p]?i[p]:u;else if("u"===d)h=n[p]?n[p]:u;else if("v"===d){var f=document.getElementById(p);(h=null==f?void 0:f.textContent)||(h=(null==f?void 0:f.value)||"")}else if("ev"===d){var m=o[c].n,v=o[c].prop;l[m]&&l[m][v]&&(h=l[m][v])}a=(r=D(r,a,s+1,h)).indexOf("{"),s=r.indexOf("}")}e.text=r}catch(e){console.log("Can't evaluate the dynamic text")}},N=function(e){var n=t.getController().getUserAttributes(),i=t.getController().getSessionAttributes(),o=e.script.vmap,r="",a=e.script.src,s=t.getController().getMasterEvents();Object.entries(o).forEach((function(e,t){var a=d(e,2),l=a[0],c=a[1],p=c.t,u=c.n,h=c.def,f="";if("s"===p)f=i[u]?i[u]:h;else if("u"===p)f=n[u]?n[u]:h;else if("v"===p){var m=document.getElementById(u);(f=null==m?void 0:m.textContent)||(f=(null==m?void 0:m.value)||"")}else if("ev"===p){var v=o[l].n,g=o[l].prop;s[v]&&s[v][g]&&(f=s[v][g])}r="".concat(r," \n let ").concat(l,' = "').concat(f,'";')}));var l="".concat(r," \n ").concat(a),c=new Function(l);e.text=c()};
2
2
  /*! shepherd.js 4.0.0-beta.1 */
3
- function P(e){return(P="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}function B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function F(e,t,n){return t&&j(e.prototype,t),n&&j(e,n),e}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(){return(z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function q(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&V(e,t)}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function V(e,t){return(V=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function U(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?U(e):t}function Y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==s.return||s.return()}finally{if(i)throw r}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function X(e){return e instanceof HTMLElement}function Z(e){return"function"==typeof e}function K(e){return"string"==typeof e}function Q(e){return void 0===e}
3
+ function B(e){return(B="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F(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 z(e,t,n){return t&&F(e.prototype,t),n&&F(e,n),e}function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(){return(H=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}).apply(this,arguments)}function j(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&V(e,t)}function q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function V(e,t){return(V=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?R(e):t}function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Y(e){return e instanceof HTMLElement}function X(e){return"function"==typeof e}function K(e){return"string"==typeof e}function J(e){return void 0===e}
4
4
  /**!
5
5
  * tippy.js v5.0.0-alpha.2
6
6
  * (c) 2017-2019 atomiks
7
7
  * MIT License
8
- */function G(){return(G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var J="undefined"!=typeof window&&"undefined"!=typeof document,$=J?navigator.userAgent:"",ee=/MSIE |Trident\//.test($),te=/UCBrowser\//.test($),ne=J&&/iPhone|iPad|iPod/.test(navigator.platform),oe={allowHTML:!0,animateFill:!1,animation:"fade",appendTo:function(){return document.body},aria:"describedby",arrow:!0,boundary:"scrollParent",content:"",delay:0,distance:10,duration:[325,275],flip:!0,flipBehavior:"flip",flipOnUpdate:!1,hideOnClick:!0,ignoreAttributes:!1,inertia:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,lazy:!0,maxWidth:350,multiple:!1,offset:0,onCreate:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},placement:"top",popperOptions:{},role:"tooltip",showOnCreate:!1,sticky:!1,theme:"",touch:!0,trigger:"mouseenter focus",triggerTarget:null,updateDuration:0,wait:null,zIndex:9999},ie=["arrow","boundary","distance","flip","flipBehavior","flipOnUpdate","offset","placement","popperOptions"],re={passive:!0},ae={isTouch:!1},se=0;function ce(){ae.isTouch||(ae.isTouch=!0,ne&&document.body.classList.add("tippy-iOS"),window.performance&&document.addEventListener("mousemove",le))}function le(){var e=performance.now();e-se<20&&(ae.isTouch=!1,document.removeEventListener("mousemove",le),ne||document.body.classList.remove("tippy-iOS")),se=e}function de(){var e=document.activeElement,t=e._tippy;e&&e.blur&&t&&!t.state.isVisible&&e.blur()}var pe=Object.keys(oe);function ue(e,t){return{}.hasOwnProperty.call(e,t)}function he(e,t,n){if(Array.isArray(e)){var o=e[t];return null==o?n:o}return e}function fe(e,t){return e&&e.modifiers&&e.modifiers[t]}function me(e){return e instanceof Element}function ve(e,t){return"function"==typeof e?e.apply(null,t):e}function ge(e,t){e.filter((function(e){return"flip"===e.name}))[0].enabled=t}function be(){return document.createElement("div")}function ye(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function xe(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function we(e,t){var n=G({},t,{content:ve(t.content,[e])},t.ignoreAttributes?{}:function(e){return pe.reduce((function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t}),{})}(e));return n.animateFill&&(n.arrow=!1),(n.arrow||te)&&(n.animateFill=!1),n}function _e(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout((function(){e(o)}),t)};var n}function Ee(e,t,n){e&&e!==t&&e.apply(null,n)}function ke(e){return[].slice.call(e)}function Ce(e,t){return e.indexOf(t)>-1}function Te(e,t){e.innerHTML=me(t)?t.innerHTML:t}function Ae(e,t){if(me(t.content))Te(e,""),e.appendChild(t.content);else if("function"!=typeof t.content){e[t.allowHTML?"innerHTML":"textContent"]=t.content}}function Oe(e){return{tooltip:e.querySelector(".tippy-tooltip"),backdrop:e.querySelector(".tippy-backdrop"),content:e.querySelector(".tippy-content"),arrow:e.querySelector(".tippy-arrow")||e.querySelector(".tippy-svg-arrow")}}function Le(e){e.setAttribute("data-inertia","")}function Se(e){var t=be();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",me(e)?t.appendChild(e):Te(t,"round"===e?'<svg viewBox="0 0 18 7" xmlns="http://www.w3.org/2000/svg"><path d="M0 7s2.021-.015 5.253-4.218C6.584 1.051 7.797.007 9 0c1.203-.007 2.416 1.035 3.761 2.782C16.012 7.005 18 7 18 7H0z"/></svg>':e)),t}function Me(e){var t=be();return t.className="tippy-backdrop",t.setAttribute("data-state",e?"visible":"hidden"),t}function Ne(e){e.setAttribute("data-interactive","")}function Ie(e,t,n){var o=te&&void 0!==document.body.style.webkitTransition?"webkitTransitionEnd":"transitionend";e[t+"EventListener"](o,n)}function De(e){return e.split("-")[0]}function Pe(e,t,n){n.split(" ").forEach((function(n){n&&e.classList[t](n+"-theme")}))}function Be(e,t){var n=be();n.className="tippy-popper",n.style.position="absolute",n.style.top="0",n.style.left="0";var o=be();o.className="tippy-tooltip",o.id="tippy-"+e,o.setAttribute("data-state","hidden"),o.setAttribute("tabindex","-1"),Pe(o,"add",t.theme);var i=be();return i.className="tippy-content",i.setAttribute("data-state","hidden"),t.interactive&&Ne(o),t.arrow&&(o.setAttribute("data-arrow",""),o.appendChild(Se(t.arrow))),t.animateFill&&(o.appendChild(Me(!1)),o.setAttribute("data-animatefill","")),t.inertia&&Le(o),Ae(i,t),o.appendChild(i),n.appendChild(o),je(n,t,t,!1),n}function je(e,t,n,o){var i=Oe(e),r=i.tooltip,a=i.content,s=i.backdrop,c=i.arrow;e.style.zIndex=""+n.zIndex,r.setAttribute("data-animation",n.animation),r.style.maxWidth=n.maxWidth+("number"==typeof n.maxWidth?"px":""),n.role?r.setAttribute("role",n.role):r.removeAttribute("role"),t.content!==n.content&&Ae(a,n),!t.animateFill&&n.animateFill?(r.appendChild(Me(o)),r.setAttribute("data-animatefill","")):t.animateFill&&!n.animateFill&&(r.removeChild(s),r.removeAttribute("data-animatefill")),!t.arrow&&n.arrow?(r.appendChild(Se(n.arrow)),r.setAttribute("data-arrow","")):t.arrow&&!n.arrow?(r.removeChild(c),r.removeAttribute("data-arrow")):t.arrow!==n.arrow&&(r.removeChild(c),r.appendChild(Se(n.arrow))),!t.interactive&&n.interactive?Ne(r):t.interactive&&!n.interactive&&function(e){e.removeAttribute("data-interactive")}(r),!t.inertia&&n.inertia?Le(r):t.inertia&&!n.inertia&&function(e){e.removeAttribute("data-inertia")}(r),t.theme!==n.theme&&(Pe(r,"remove",t.theme),Pe(r,"add",n.theme))}for(
8
+ */function G(){return(G=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}).apply(this,arguments)}var Q="undefined"!=typeof window&&"undefined"!=typeof document,$=Q?navigator.userAgent:"",ee=/MSIE |Trident\//.test($),te=/UCBrowser\//.test($),ne=Q&&/iPhone|iPad|iPod/.test(navigator.platform),ie={allowHTML:!0,animateFill:!1,animation:"fade",appendTo:function(){return document.body},aria:"describedby",arrow:!0,boundary:"scrollParent",content:"",delay:0,distance:10,duration:[325,275],flip:!0,flipBehavior:"flip",flipOnUpdate:!1,hideOnClick:!0,ignoreAttributes:!1,inertia:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,lazy:!0,maxWidth:350,multiple:!1,offset:0,onCreate:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},placement:"top",popperOptions:{},role:"tooltip",showOnCreate:!1,sticky:!1,theme:"",touch:!0,trigger:"mouseenter focus",triggerTarget:null,updateDuration:0,wait:null,zIndex:9999},oe=["arrow","boundary","distance","flip","flipBehavior","flipOnUpdate","offset","placement","popperOptions"],re={passive:!0},ae={isTouch:!1},se=0;function le(){ae.isTouch||(ae.isTouch=!0,ne&&document.body.classList.add("tippy-iOS"),window.performance&&document.addEventListener("mousemove",ce))}function ce(){var e=performance.now();e-se<20&&(ae.isTouch=!1,document.removeEventListener("mousemove",ce),ne||document.body.classList.remove("tippy-iOS")),se=e}function de(){var e=document.activeElement,t=e._tippy;e&&e.blur&&t&&!t.state.isVisible&&e.blur()}var pe=Object.keys(ie);function ue(e,t){return{}.hasOwnProperty.call(e,t)}function he(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?n:i}return e}function fe(e,t){return e&&e.modifiers&&e.modifiers[t]}function me(e){return e instanceof Element}function ve(e,t){return"function"==typeof e?e.apply(null,t):e}function ge(e,t){e.filter((function(e){return"flip"===e.name}))[0].enabled=t}function ye(){return document.createElement("div")}function be(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function xe(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function we(e,t){var n=G({},t,{content:ve(t.content,[e])},t.ignoreAttributes?{}:function(e){return pe.reduce((function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t}),{})}(e));return n.animateFill&&(n.arrow=!1),(n.arrow||te)&&(n.animateFill=!1),n}function Ce(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout((function(){e(i)}),t)};var n}function _e(e,t,n){e&&e!==t&&e.apply(null,n)}function Ee(e){return[].slice.call(e)}function ke(e,t){return e.indexOf(t)>-1}function Ae(e,t){e.innerHTML=me(t)?t.innerHTML:t}function Le(e,t){if(me(t.content))Ae(e,""),e.appendChild(t.content);else if("function"!=typeof t.content){e[t.allowHTML?"innerHTML":"textContent"]=t.content}}function Me(e){return{tooltip:e.querySelector(".tippy-tooltip"),backdrop:e.querySelector(".tippy-backdrop"),content:e.querySelector(".tippy-content"),arrow:e.querySelector(".tippy-arrow")||e.querySelector(".tippy-svg-arrow")}}function Te(e){e.setAttribute("data-inertia","")}function Oe(e){var t=ye();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",me(e)?t.appendChild(e):Ae(t,"round"===e?'<svg viewBox="0 0 18 7" xmlns="http://www.w3.org/2000/svg"><path d="M0 7s2.021-.015 5.253-4.218C6.584 1.051 7.797.007 9 0c1.203-.007 2.416 1.035 3.761 2.782C16.012 7.005 18 7 18 7H0z"/></svg>':e)),t}function Se(e){var t=ye();return t.className="tippy-backdrop",t.setAttribute("data-state",e?"visible":"hidden"),t}function De(e){e.setAttribute("data-interactive","")}function Ie(e,t,n){var i=te&&void 0!==document.body.style.webkitTransition?"webkitTransitionEnd":"transitionend";e[t+"EventListener"](i,n)}function Ne(e){return e.split("-")[0]}function Be(e,t,n){n.split(" ").forEach((function(n){n&&e.classList[t](n+"-theme")}))}function Pe(e,t){var n=ye();n.className="tippy-popper",n.style.position="absolute",n.style.top="0",n.style.left="0";var i=ye();i.className="tippy-tooltip",i.id="tippy-"+e,i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1"),Be(i,"add",t.theme);var o=ye();return o.className="tippy-content",o.setAttribute("data-state","hidden"),t.interactive&&De(i),t.arrow&&(i.setAttribute("data-arrow",""),i.appendChild(Oe(t.arrow))),t.animateFill&&(i.appendChild(Se(!1)),i.setAttribute("data-animatefill","")),t.inertia&&Te(i),Le(o,t),i.appendChild(o),n.appendChild(i),Fe(n,t,t,!1),n}function Fe(e,t,n,i){var o=Me(e),r=o.tooltip,a=o.content,s=o.backdrop,l=o.arrow;e.style.zIndex=""+n.zIndex,r.setAttribute("data-animation",n.animation),r.style.maxWidth=n.maxWidth+("number"==typeof n.maxWidth?"px":""),n.role?r.setAttribute("role",n.role):r.removeAttribute("role"),t.content!==n.content&&Le(a,n),!t.animateFill&&n.animateFill?(r.appendChild(Se(i)),r.setAttribute("data-animatefill","")):t.animateFill&&!n.animateFill&&(r.removeChild(s),r.removeAttribute("data-animatefill")),!t.arrow&&n.arrow?(r.appendChild(Oe(n.arrow)),r.setAttribute("data-arrow","")):t.arrow&&!n.arrow?(r.removeChild(l),r.removeAttribute("data-arrow")):t.arrow!==n.arrow&&(r.removeChild(l),r.appendChild(Oe(n.arrow))),!t.interactive&&n.interactive?De(r):t.interactive&&!n.interactive&&function(e){e.removeAttribute("data-interactive")}(r),!t.inertia&&n.inertia?Te(r):t.inertia&&!n.inertia&&function(e){e.removeAttribute("data-inertia")}(r),t.theme!==n.theme&&(Be(r,"remove",t.theme),Be(r,"add",n.theme))}for(
9
9
  /**!
10
10
  * @fileOverview Kickass library to create and place poppers near their reference elements.
11
11
  * @version 1.15.0
@@ -30,15 +30,15 @@ function P(e){return(P="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?
30
30
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
31
  * SOFTWARE.
32
32
  */
33
- var Fe="undefined"!=typeof window&&"undefined"!=typeof document,He=["Edge","Trident","Firefox"],ze=0,qe=0;qe<He.length;qe+=1)if(Fe&&navigator.userAgent.indexOf(He[qe])>=0){ze=1;break}var Re=Fe&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),ze))}};function Ve(e){return e&&"[object Function]"==={}.toString.call(e)}function Ue(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function We(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function Ye(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Ue(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+o)?e:Ye(We(e))}var Xe=Fe&&!(!window.MSInputMethodContext||!document.documentMode),Ze=Fe&&/MSIE 10/.test(navigator.userAgent);function Ke(e){return 11===e?Xe:10===e?Ze:Xe||Ze}function Qe(e){if(!e)return document.documentElement;for(var t=Ke(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Ue(n,"position")?Qe(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Ge(e){return null!==e.parentNode?Ge(e.parentNode):e}function Je(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?e:t,i=n?t:e,r=document.createRange();r.setStart(o,0),r.setEnd(i,0);var a,s,c=r.commonAncestorContainer;if(e!==c&&t!==c||o.contains(i))return"BODY"===(s=(a=c).nodeName)||"HTML"!==s&&Qe(a.firstElementChild)!==a?Qe(c):c;var l=Ge(e);return l.host?Je(l.host,t):Je(e,Ge(t).host)}function $e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",o=e.nodeName;if("BODY"===o||"HTML"===o){var i=e.ownerDocument.documentElement,r=e.ownerDocument.scrollingElement||i;return r[n]}return e[n]}function et(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=$e(t,"top"),i=$e(t,"left"),r=n?-1:1;return e.top+=o*r,e.bottom+=o*r,e.left+=i*r,e.right+=i*r,e}function tt(e,t){var n="x"===t?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+o+"Width"],10)}function nt(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Ke(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function ot(e){var t=e.body,n=e.documentElement,o=Ke(10)&&getComputedStyle(n);return{height:nt("Height",t,n,o),width:nt("Width",t,n,o)}}var it=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},rt=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),at=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},st=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function ct(e){return st({},e,{right:e.left+e.width,bottom:e.top+e.height})}function lt(e){var t={};try{if(Ke(10)){t=e.getBoundingClientRect();var n=$e(e,"top"),o=$e(e,"left");t.top+=n,t.left+=o,t.bottom+=n,t.right+=o}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},r="HTML"===e.nodeName?ot(e.ownerDocument):{},a=r.width||e.clientWidth||i.right-i.left,s=r.height||e.clientHeight||i.bottom-i.top,c=e.offsetWidth-a,l=e.offsetHeight-s;if(c||l){var d=Ue(e);c-=tt(d,"x"),l-=tt(d,"y"),i.width-=c,i.height-=l}return ct(i)}function dt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=Ke(10),i="HTML"===t.nodeName,r=lt(e),a=lt(t),s=Ye(e),c=Ue(t),l=parseFloat(c.borderTopWidth,10),d=parseFloat(c.borderLeftWidth,10);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=ct({top:r.top-a.top-l,left:r.left-a.left-d,width:r.width,height:r.height});if(p.marginTop=0,p.marginLeft=0,!o&&i){var u=parseFloat(c.marginTop,10),h=parseFloat(c.marginLeft,10);p.top-=l-u,p.bottom-=l-u,p.left-=d-h,p.right-=d-h,p.marginTop=u,p.marginLeft=h}return(o&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(p=et(p,t)),p}function pt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,o=dt(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:$e(n),s=t?0:$e(n,"left"),c={top:a-o.top+o.marginTop,left:s-o.left+o.marginLeft,width:i,height:r};return ct(c)}function ut(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Ue(e,"position"))return!0;var n=We(e);return!!n&&ut(n)}function ht(e){if(!e||!e.parentElement||Ke())return document.documentElement;for(var t=e.parentElement;t&&"none"===Ue(t,"transform");)t=t.parentElement;return t||document.documentElement}function ft(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},a=i?ht(e):Je(e,t);if("viewport"===o)r=pt(a,i);else{var s=void 0;"scrollParent"===o?"BODY"===(s=Ye(We(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===o?e.ownerDocument.documentElement:o;var c=dt(s,a,i);if("HTML"!==s.nodeName||ut(a))r=c;else{var l=ot(e.ownerDocument),d=l.height,p=l.width;r.top+=c.top-c.marginTop,r.bottom=d+c.top,r.left+=c.left-c.marginLeft,r.right=p+c.left}}var u="number"==typeof(n=n||0);return r.left+=u?n:n.left||0,r.top+=u?n:n.top||0,r.right-=u?n:n.right||0,r.bottom-=u?n:n.bottom||0,r}function mt(e){return e.width*e.height}function vt(e,t,n,o,i){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=ft(n,o,r,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(s).map((function(e){return st({key:e},s[e],{area:mt(s[e])})})).sort((function(e,t){return t.area-e.area})),l=c.filter((function(e){var t=e.width,o=e.height;return t>=n.clientWidth&&o>=n.clientHeight})),d=l.length>0?l[0].key:c[0].key,p=e.split("-")[1];return d+(p?"-"+p:"")}function gt(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=o?ht(t):Je(t,n);return dt(n,i,o)}function bt(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),o=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+o,height:e.offsetHeight+n}}function yt(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function xt(e,t,n){n=n.split("-")[0];var o=bt(e),i={width:o.width,height:o.height},r=-1!==["right","left"].indexOf(n),a=r?"top":"left",s=r?"left":"top",c=r?"height":"width",l=r?"width":"height";return i[a]=t[a]+t[c]/2-o[c]/2,i[s]=n===s?t[s]-o[l]:t[yt(s)],i}function wt(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function _t(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var o=wt(e,(function(e){return e[t]===n}));return e.indexOf(o)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&Ve(n)&&(t.offsets.popper=ct(t.offsets.popper),t.offsets.reference=ct(t.offsets.reference),t=n(t,e))})),t}function Et(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=gt(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=vt(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=xt(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=_t(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function kt(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function Ct(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length;o++){var i=t[o],r=i?""+i+n:e;if(void 0!==document.body.style[r])return r}return null}function Tt(){return this.state.isDestroyed=!0,kt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Ct("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function At(e){var t=e.ownerDocument;return t?t.defaultView:window}function Ot(e,t,n,o){n.updateBound=o,At(e).addEventListener("resize",n.updateBound,{passive:!0});var i=Ye(e);return function e(t,n,o,i){var r="BODY"===t.nodeName,a=r?t.ownerDocument.defaultView:t;a.addEventListener(n,o,{passive:!0}),r||e(Ye(a.parentNode),n,o,i),i.push(a)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Lt(){this.state.eventsEnabled||(this.state=Ot(this.reference,this.options,this.state,this.scheduleUpdate))}function St(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,At(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function Mt(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Nt(e,t){Object.keys(t).forEach((function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Mt(t[n])&&(o="px"),e.style[n]=t[n]+o}))}var It=Fe&&/Firefox/i.test(navigator.userAgent);function Dt(e,t,n){var o=wt(e,(function(e){return e.name===t})),i=!!o&&e.some((function(e){return e.name===n&&e.enabled&&e.order<o.order}));if(!i){var r="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return i}var Pt=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Bt=Pt.slice(3);function jt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Bt.indexOf(e),o=Bt.slice(n+1).concat(Bt.slice(0,n));return t?o.reverse():o}var Ft="flip",Ht="clockwise",zt="counterclockwise";function qt(e,t,n,o){var i=[0,0],r=-1!==["right","left"].indexOf(o),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(wt(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,l=-1!==s?[a.slice(0,s).concat([a[s].split(c)[0]]),[a[s].split(c)[1]].concat(a.slice(s+1))]:[a];return(l=l.map((function(e,o){var i=(1===o?!r:r)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,o){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+i[1],a=i[2];if(!r)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=o}return ct(s)[t]/100*r}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r}return r}(e,i,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,o){Mt(n)&&(i[t]+=n*("-"===e[o-1]?-1:1))}))})),i}var Rt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],o=t.split("-")[1];if(o){var i=e.offsets,r=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),c=s?"left":"top",l=s?"width":"height",d={start:at({},c,r[c]),end:at({},c,r[c]+r[l]-a[l])};e.offsets.popper=st({},a,d[o])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,o=e.placement,i=e.offsets,r=i.popper,a=i.reference,s=o.split("-")[0],c=void 0;return c=Mt(+n)?[+n,0]:qt(n,r,a,s),"left"===s?(r.top+=c[0],r.left-=c[1]):"right"===s?(r.top+=c[0],r.left+=c[1]):"top"===s?(r.left+=c[0],r.top-=c[1]):"bottom"===s&&(r.left+=c[0],r.top+=c[1]),e.popper=r,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Qe(e.instance.popper);e.instance.reference===n&&(n=Qe(n));var o=Ct("transform"),i=e.instance.popper.style,r=i.top,a=i.left,s=i[o];i.top="",i.left="",i[o]="";var c=ft(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=r,i.left=a,i[o]=s,t.boundaries=c;var l=t.priority,d=e.offsets.popper,p={primary:function(e){var n=d[e];return d[e]<c[e]&&!t.escapeWithReference&&(n=Math.max(d[e],c[e])),at({},e,n)},secondary:function(e){var n="right"===e?"left":"top",o=d[n];return d[e]>c[e]&&!t.escapeWithReference&&(o=Math.min(d[n],c[e]-("right"===e?d.width:d.height))),at({},n,o)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";d=st({},d,p[t](e))})),e.offsets.popper=d,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,o=t.reference,i=e.placement.split("-")[0],r=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",c=a?"left":"top",l=a?"width":"height";return n[s]<r(o[c])&&(e.offsets.popper[c]=r(o[c])-n[l]),n[c]>r(o[s])&&(e.offsets.popper[c]=r(o[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Dt(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if("string"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],r=e.offsets,a=r.popper,s=r.reference,c=-1!==["left","right"].indexOf(i),l=c?"height":"width",d=c?"Top":"Left",p=d.toLowerCase(),u=c?"left":"top",h=c?"bottom":"right",f=bt(o)[l];s[h]-f<a[p]&&(e.offsets.popper[p]-=a[p]-(s[h]-f)),s[p]+f>a[h]&&(e.offsets.popper[p]+=s[p]+f-a[h]),e.offsets.popper=ct(e.offsets.popper);var m=s[p]+s[l]/2-f/2,v=Ue(e.instance.popper),g=parseFloat(v["margin"+d],10),b=parseFloat(v["border"+d+"Width"],10),y=m-e.offsets.popper[p]-g-b;return y=Math.max(Math.min(a[l]-f,y),0),e.arrowElement=o,e.offsets.arrow=(at(n={},p,Math.round(y)),at(n,u,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(kt(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=ft(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],i=yt(o),r=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Ft:a=[o,i];break;case Ht:a=jt(o);break;case zt:a=jt(o,!0);break;default:a=t.behavior}return a.forEach((function(s,c){if(o!==s||a.length===c+1)return e;o=e.placement.split("-")[0],i=yt(o);var l=e.offsets.popper,d=e.offsets.reference,p=Math.floor,u="left"===o&&p(l.right)>p(d.left)||"right"===o&&p(l.left)<p(d.right)||"top"===o&&p(l.bottom)>p(d.top)||"bottom"===o&&p(l.top)<p(d.bottom),h=p(l.left)<p(n.left),f=p(l.right)>p(n.right),m=p(l.top)<p(n.top),v=p(l.bottom)>p(n.bottom),g="left"===o&&h||"right"===o&&f||"top"===o&&m||"bottom"===o&&v,b=-1!==["top","bottom"].indexOf(o),y=!!t.flipVariations&&(b&&"start"===r&&h||b&&"end"===r&&f||!b&&"start"===r&&m||!b&&"end"===r&&v),x=!!t.flipVariationsByContent&&(b&&"start"===r&&f||b&&"end"===r&&h||!b&&"start"===r&&v||!b&&"end"===r&&m),w=y||x;(u||g||w)&&(e.flipped=!0,(u||g)&&(o=a[c+1]),w&&(r=function(e){return"end"===e?"start":"start"===e?"end":e}(r)),e.placement=o+(r?"-"+r:""),e.offsets.popper=st({},e.offsets.popper,xt(e.instance.popper,e.offsets.reference,e.placement)),e=_t(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=e.offsets,i=o.popper,r=o.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=r[n]-(s?i[a?"width":"height"]:0),e.placement=yt(t),e.offsets.popper=ct(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Dt(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=wt(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,o=t.y,i=e.offsets.popper,r=wt(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==r?r:t.gpuAcceleration,s=Qe(e.instance.popper),c=lt(s),l={position:i.position},d=function(e,t){var n=e.offsets,o=n.popper,i=n.reference,r=Math.round,a=Math.floor,s=function(e){return e},c=r(i.width),l=r(o.width),d=-1!==["left","right"].indexOf(e.placement),p=-1!==e.placement.indexOf("-"),u=t?d||p||c%2==l%2?r:a:s,h=t?r:s;return{left:u(c%2==1&&l%2==1&&!p&&t?o.left-1:o.left),top:h(o.top),bottom:h(o.bottom),right:u(o.right)}}(e,window.devicePixelRatio<2||!It),p="bottom"===n?"top":"bottom",u="right"===o?"left":"right",h=Ct("transform"),f=void 0,m=void 0;if(m="bottom"===p?"HTML"===s.nodeName?-s.clientHeight+d.bottom:-c.height+d.bottom:d.top,f="right"===u?"HTML"===s.nodeName?-s.clientWidth+d.right:-c.width+d.right:d.left,a&&h)l[h]="translate3d("+f+"px, "+m+"px, 0)",l[p]=0,l[u]=0,l.willChange="transform";else{var v="bottom"===p?-1:1,g="right"===u?-1:1;l[p]=m*v,l[u]=f*g,l.willChange=p+", "+u}var b={"x-placement":e.placement};return e.attributes=st({},b,e.attributes),e.styles=st({},l,e.styles),e.arrowStyles=st({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Nt(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&Nt(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,o,i){var r=gt(i,t,e,n.positionFixed),a=vt(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Nt(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},Vt=function(){function e(t,n){var o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};it(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=Re(this.update.bind(this)),this.options=st({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(st({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){o.options.modifiers[t]=st({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return st({name:e},o.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&Ve(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)})),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return rt(e,[{key:"update",value:function(){return Et.call(this)}},{key:"destroy",value:function(){return Tt.call(this)}},{key:"enableEventListeners",value:function(){return Lt.call(this)}},{key:"disableEventListeners",value:function(){return St.call(this)}}]),e}();Vt.Utils=("undefined"!=typeof window?window:global).PopperUtils,Vt.placements=Pt,Vt.Defaults=Rt;
33
+ var ze="undefined"!=typeof window&&"undefined"!=typeof document,Ze=["Edge","Trident","Firefox"],He=0,je=0;je<Ze.length;je+=1)if(ze&&navigator.userAgent.indexOf(Ze[je])>=0){He=1;break}var qe=ze&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),He))}};function Ve(e){return e&&"[object Function]"==={}.toString.call(e)}function Re(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Ue(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function We(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Re(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?e:We(Ue(e))}var Ye=ze&&!(!window.MSInputMethodContext||!document.documentMode),Xe=ze&&/MSIE 10/.test(navigator.userAgent);function Ke(e){return 11===e?Ye:10===e?Xe:Ye||Xe}function Je(e){if(!e)return document.documentElement;for(var t=Ke(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Re(n,"position")?Je(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Ge(e){return null!==e.parentNode?Ge(e.parentNode):e}function Qe(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,o=n?t:e,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var a,s,l=r.commonAncestorContainer;if(e!==l&&t!==l||i.contains(o))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&Je(a.firstElementChild)!==a?Je(l):l;var c=Ge(e);return c.host?Qe(c.host,t):Qe(e,Ge(t).host)}function $e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",i=e.nodeName;if("BODY"===i||"HTML"===i){var o=e.ownerDocument.documentElement,r=e.ownerDocument.scrollingElement||o;return r[n]}return e[n]}function et(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=$e(t,"top"),o=$e(t,"left"),r=n?-1:1;return e.top+=i*r,e.bottom+=i*r,e.left+=o*r,e.right+=o*r,e}function tt(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+i+"Width"],10)}function nt(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Ke(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function it(e){var t=e.body,n=e.documentElement,i=Ke(10)&&getComputedStyle(n);return{height:nt("Height",t,n,i),width:nt("Width",t,n,i)}}var ot=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},rt=function(){function e(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)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),at=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},st=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};function lt(e){return st({},e,{right:e.left+e.width,bottom:e.top+e.height})}function ct(e){var t={};try{if(Ke(10)){t=e.getBoundingClientRect();var n=$e(e,"top"),i=$e(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},r="HTML"===e.nodeName?it(e.ownerDocument):{},a=r.width||e.clientWidth||o.right-o.left,s=r.height||e.clientHeight||o.bottom-o.top,l=e.offsetWidth-a,c=e.offsetHeight-s;if(l||c){var d=Re(e);l-=tt(d,"x"),c-=tt(d,"y"),o.width-=l,o.height-=c}return lt(o)}function dt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Ke(10),o="HTML"===t.nodeName,r=ct(e),a=ct(t),s=We(e),l=Re(t),c=parseFloat(l.borderTopWidth,10),d=parseFloat(l.borderLeftWidth,10);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=lt({top:r.top-a.top-c,left:r.left-a.left-d,width:r.width,height:r.height});if(p.marginTop=0,p.marginLeft=0,!i&&o){var u=parseFloat(l.marginTop,10),h=parseFloat(l.marginLeft,10);p.top-=c-u,p.bottom-=c-u,p.left-=d-h,p.right-=d-h,p.marginTop=u,p.marginLeft=h}return(i&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(p=et(p,t)),p}function pt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,i=dt(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:$e(n),s=t?0:$e(n,"left"),l={top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:o,height:r};return lt(l)}function ut(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Re(e,"position"))return!0;var n=Ue(e);return!!n&&ut(n)}function ht(e){if(!e||!e.parentElement||Ke())return document.documentElement;for(var t=e.parentElement;t&&"none"===Re(t,"transform");)t=t.parentElement;return t||document.documentElement}function ft(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},a=o?ht(e):Qe(e,t);if("viewport"===i)r=pt(a,o);else{var s=void 0;"scrollParent"===i?"BODY"===(s=We(Ue(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===i?e.ownerDocument.documentElement:i;var l=dt(s,a,o);if("HTML"!==s.nodeName||ut(a))r=l;else{var c=it(e.ownerDocument),d=c.height,p=c.width;r.top+=l.top-l.marginTop,r.bottom=d+l.top,r.left+=l.left-l.marginLeft,r.right=p+l.left}}var u="number"==typeof(n=n||0);return r.left+=u?n:n.left||0,r.top+=u?n:n.top||0,r.right-=u?n:n.right||0,r.bottom-=u?n:n.bottom||0,r}function mt(e){return e.width*e.height}function vt(e,t,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=ft(n,i,r,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return st({key:e},s[e],{area:mt(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,i=e.height;return t>=n.clientWidth&&i>=n.clientHeight})),d=c.length>0?c[0].key:l[0].key,p=e.split("-")[1];return d+(p?"-"+p:"")}function gt(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=i?ht(t):Qe(t,n);return dt(n,o,i)}function yt(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function bt(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function xt(e,t,n){n=n.split("-")[0];var i=yt(e),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),a=r?"top":"left",s=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return o[a]=t[a]+t[l]/2-i[l]/2,o[s]=n===s?t[s]-i[c]:t[bt(s)],o}function wt(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Ct(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var i=wt(e,(function(e){return e[t]===n}));return e.indexOf(i)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&Ve(n)&&(t.offsets.popper=lt(t.offsets.popper),t.offsets.reference=lt(t.offsets.reference),t=n(t,e))})),t}function _t(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=gt(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=vt(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=xt(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Ct(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Et(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function kt(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var o=t[i],r=o?""+o+n:e;if(void 0!==document.body.style[r])return r}return null}function At(){return this.state.isDestroyed=!0,Et(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[kt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Lt(e){var t=e.ownerDocument;return t?t.defaultView:window}function Mt(e,t,n,i){n.updateBound=i,Lt(e).addEventListener("resize",n.updateBound,{passive:!0});var o=We(e);return function e(t,n,i,o){var r="BODY"===t.nodeName,a=r?t.ownerDocument.defaultView:t;a.addEventListener(n,i,{passive:!0}),r||e(We(a.parentNode),n,i,o),o.push(a)}(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function Tt(){this.state.eventsEnabled||(this.state=Mt(this.reference,this.options,this.state,this.scheduleUpdate))}function Ot(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,Lt(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function St(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Dt(e,t){Object.keys(t).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&St(t[n])&&(i="px"),e.style[n]=t[n]+i}))}var It=ze&&/Firefox/i.test(navigator.userAgent);function Nt(e,t,n){var i=wt(e,(function(e){return e.name===t})),o=!!i&&e.some((function(e){return e.name===n&&e.enabled&&e.order<i.order}));if(!o){var r="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return o}var Bt=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Pt=Bt.slice(3);function Ft(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Pt.indexOf(e),i=Pt.slice(n+1).concat(Pt.slice(0,n));return t?i.reverse():i}var zt="flip",Zt="clockwise",Ht="counterclockwise";function jt(e,t,n,i){var o=[0,0],r=-1!==["right","left"].indexOf(i),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(wt(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(c=c.map((function(e,i){var o=(1===i?!r:r)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,i){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],a=o[2];if(!r)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=i}return lt(s)[t]/100*r}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r}return r}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,i){St(n)&&(o[t]+=n*("-"===e[i-1]?-1:1))}))})),o}var qt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var o=e.offsets,r=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",d={start:at({},l,r[l]),end:at({},l,r[l]+r[c]-a[c])};e.offsets.popper=st({},a,d[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,i=e.placement,o=e.offsets,r=o.popper,a=o.reference,s=i.split("-")[0],l=void 0;return l=St(+n)?[+n,0]:jt(n,r,a,s),"left"===s?(r.top+=l[0],r.left-=l[1]):"right"===s?(r.top+=l[0],r.left+=l[1]):"top"===s?(r.left+=l[0],r.top-=l[1]):"bottom"===s&&(r.left+=l[0],r.top+=l[1]),e.popper=r,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Je(e.instance.popper);e.instance.reference===n&&(n=Je(n));var i=kt("transform"),o=e.instance.popper.style,r=o.top,a=o.left,s=o[i];o.top="",o.left="",o[i]="";var l=ft(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=r,o.left=a,o[i]=s,t.boundaries=l;var c=t.priority,d=e.offsets.popper,p={primary:function(e){var n=d[e];return d[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(d[e],l[e])),at({},e,n)},secondary:function(e){var n="right"===e?"left":"top",i=d[n];return d[e]>l[e]&&!t.escapeWithReference&&(i=Math.min(d[n],l[e]-("right"===e?d.width:d.height))),at({},n,i)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";d=st({},d,p[t](e))})),e.offsets.popper=d,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,o=e.placement.split("-")[0],r=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<r(i[l])&&(e.offsets.popper[l]=r(i[l])-n[c]),n[l]>r(i[s])&&(e.offsets.popper[l]=r(i[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Nt(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],r=e.offsets,a=r.popper,s=r.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",d=l?"Top":"Left",p=d.toLowerCase(),u=l?"left":"top",h=l?"bottom":"right",f=yt(i)[c];s[h]-f<a[p]&&(e.offsets.popper[p]-=a[p]-(s[h]-f)),s[p]+f>a[h]&&(e.offsets.popper[p]+=s[p]+f-a[h]),e.offsets.popper=lt(e.offsets.popper);var m=s[p]+s[c]/2-f/2,v=Re(e.instance.popper),g=parseFloat(v["margin"+d],10),y=parseFloat(v["border"+d+"Width"],10),b=m-e.offsets.popper[p]-g-y;return b=Math.max(Math.min(a[c]-f,b),0),e.arrowElement=i,e.offsets.arrow=(at(n={},p,Math.round(b)),at(n,u,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Et(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=ft(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],o=bt(i),r=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case zt:a=[i,o];break;case Zt:a=Ft(i);break;case Ht:a=Ft(i,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(i!==s||a.length===l+1)return e;i=e.placement.split("-")[0],o=bt(i);var c=e.offsets.popper,d=e.offsets.reference,p=Math.floor,u="left"===i&&p(c.right)>p(d.left)||"right"===i&&p(c.left)<p(d.right)||"top"===i&&p(c.bottom)>p(d.top)||"bottom"===i&&p(c.top)<p(d.bottom),h=p(c.left)<p(n.left),f=p(c.right)>p(n.right),m=p(c.top)<p(n.top),v=p(c.bottom)>p(n.bottom),g="left"===i&&h||"right"===i&&f||"top"===i&&m||"bottom"===i&&v,y=-1!==["top","bottom"].indexOf(i),b=!!t.flipVariations&&(y&&"start"===r&&h||y&&"end"===r&&f||!y&&"start"===r&&m||!y&&"end"===r&&v),x=!!t.flipVariationsByContent&&(y&&"start"===r&&f||y&&"end"===r&&h||!y&&"start"===r&&v||!y&&"end"===r&&m),w=b||x;(u||g||w)&&(e.flipped=!0,(u||g)&&(i=a[l+1]),w&&(r=function(e){return"end"===e?"start":"start"===e?"end":e}(r)),e.placement=i+(r?"-"+r:""),e.offsets.popper=st({},e.offsets.popper,xt(e.instance.popper,e.offsets.reference,e.placement)),e=Ct(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,o=i.popper,r=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=r[n]-(s?o[a?"width":"height"]:0),e.placement=bt(t),e.offsets.popper=lt(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Nt(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=wt(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,i=t.y,o=e.offsets.popper,r=wt(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==r?r:t.gpuAcceleration,s=Je(e.instance.popper),l=ct(s),c={position:o.position},d=function(e,t){var n=e.offsets,i=n.popper,o=n.reference,r=Math.round,a=Math.floor,s=function(e){return e},l=r(o.width),c=r(i.width),d=-1!==["left","right"].indexOf(e.placement),p=-1!==e.placement.indexOf("-"),u=t?d||p||l%2==c%2?r:a:s,h=t?r:s;return{left:u(l%2==1&&c%2==1&&!p&&t?i.left-1:i.left),top:h(i.top),bottom:h(i.bottom),right:u(i.right)}}(e,window.devicePixelRatio<2||!It),p="bottom"===n?"top":"bottom",u="right"===i?"left":"right",h=kt("transform"),f=void 0,m=void 0;if(m="bottom"===p?"HTML"===s.nodeName?-s.clientHeight+d.bottom:-l.height+d.bottom:d.top,f="right"===u?"HTML"===s.nodeName?-s.clientWidth+d.right:-l.width+d.right:d.left,a&&h)c[h]="translate3d("+f+"px, "+m+"px, 0)",c[p]=0,c[u]=0,c.willChange="transform";else{var v="bottom"===p?-1:1,g="right"===u?-1:1;c[p]=m*v,c[u]=f*g,c.willChange=p+", "+u}var y={"x-placement":e.placement};return e.attributes=st({},y,e.attributes),e.styles=st({},c,e.styles),e.arrowStyles=st({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Dt(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&Dt(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,i,o){var r=gt(o,t,e,n.positionFixed),a=vt(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Dt(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},Vt=function(){function e(t,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ot(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=qe(this.update.bind(this)),this.options=st({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(st({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){i.options.modifiers[t]=st({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return st({name:e},i.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&Ve(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)})),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return rt(e,[{key:"update",value:function(){return _t.call(this)}},{key:"destroy",value:function(){return At.call(this)}},{key:"enableEventListeners",value:function(){return Tt.call(this)}},{key:"disableEventListeners",value:function(){return Ot.call(this)}}]),e}();Vt.Utils=("undefined"!=typeof window?window:global).PopperUtils,Vt.placements=Bt,Vt.Defaults=qt;
34
34
  /**!
35
35
  * tippy.js v5.0.0-alpha.2
36
36
  * (c) 2017-2019 atomiks
37
37
  * MIT License
38
38
  */
39
- var Ut=1,Wt=[];function Yt(e,t){var n,o,i,r,a=we(e,t);if(!a.multiple&&e._tippy)return null;var s,c,l,d=!1,p=!1,u=!1,h=[],f=_e(P,a.interactiveDebounce),m=Ut++,v=Be(m,a),g=Oe(v),b=g.tooltip,y=g.content,x={currentPlacement:a.placement,isScheduledToShow:!1,isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},w={id:m,reference:e,popper:v,popperChildren:g,popperInstance:null,props:a,state:x,clearDelayTimeouts:function(){clearTimeout(o),clearTimeout(i),cancelAnimationFrame(r)},setProps:function(t){if(w.state.isDestroyed)return;I();var n=w.props,o=we(e,G({},w.props,t,{ignoreAttributes:!0}));o.ignoreAttributes=ue(t,"ignoreAttributes")?t.ignoreAttributes||!1:n.ignoreAttributes,w.props=o,N(),T(),f=_e(P,o.interactiveDebounce),je(v,n,o,w.state.isVisible),w.popperChildren=Oe(v),w.popperInstance&&(ie.some((function(e){return ue(t,e)&&t[e]!==n[e]}))?(w.popperInstance.destroy(),H(),w.state.isVisible&&w.popperInstance.enableEventListeners()):w.popperInstance.update())},setContent:function(e){w.setProps({content:e})},show:function(t,n){void 0===t&&(t=he(w.props.duration,0,oe.duration[1]));void 0===n&&(n=!0);var o=w.state.isVisible,i=w.state.isDestroyed,r=!w.state.isEnabled,a=ae.isTouch&&!w.props.touch;if(o||i||r||a)return;if(C().hasAttribute("disabled"))return;if(!1===w.props.onShow(w))return;O(),v.style.visibility="visible",w.state.isVisible=!0;var s=k();ye(n?s.concat(v):s,0),c=function(){w.state.isVisible&&(w.popperInstance.update(),w.props.onMount(w),w.state.isMounted=!0,y.style.transitionDelay=w.popperChildren.backdrop?Math.round(t/12)+"ms":"",w.props.sticky&&(ye([v],ee?0:w.props.updateDuration),function e(){w.popperInstance.scheduleUpdate(),w.state.isMounted?requestAnimationFrame(e):ye([v],0)}()),ye([v],w.props.updateDuration),ye(s,t),xe(s,"visible"),function(e,t){S(e,t)}(t,(function(){w.props.aria&&C().setAttribute("aria-"+w.props.aria,b.id),w.props.onShown(w),w.state.isShown=!0})))},function(){p=!1;var t=w.props.appendTo,n="parent"===t?e.parentNode:ve(t,[e]);n.contains(v)||n.appendChild(v);w.popperInstance?(ge(w.popperInstance.modifiers,w.props.flip),w.popperInstance.enableEventListeners(),w.popperInstance.scheduleUpdate()):(H(),w.popperInstance.enableEventListeners())}()},hide:function(e){void 0===e&&(e=he(w.props.duration,1,oe.duration[1]));var t=!w.state.isVisible&&!d,n=w.state.isDestroyed,o=!w.state.isEnabled&&!d;if(t||n||o)return;if(!1===w.props.onHide(w)&&!d)return;L(),v.style.visibility="hidden",w.state.isVisible=!1,w.state.isShown=!1;var i=k();ye(i,e),xe(i,"hidden"),function(e,t){S(e,(function(){!w.state.isVisible&&v.parentNode&&v.parentNode.contains(v)&&t()}))}(e,(function(){w.props.aria&&C().removeAttribute("aria-"+w.props.aria),w.popperInstance.disableEventListeners(),w.popperInstance.options.placement=s,v.parentNode.removeChild(v),w.props.onHidden(w),w.state.isMounted=!1}))},enable:function(){w.state.isEnabled=!0},disable:function(){w.state.isEnabled=!1},destroy:function(){if(w.state.isDestroyed)return;d=!0,w.hide(0),I(),delete e._tippy,w.popperInstance&&w.popperInstance.destroy();d=!1,w.state.isDestroyed=!0}};return e._tippy=w,v._tippy=w,N(),a.lazy||H(),a.showOnCreate&&q(),v.addEventListener("mouseenter",(function(){w.props.interactive&&w.state.isVisible&&"mouseenter"===n&&w.clearDelayTimeouts()})),v.addEventListener("mouseleave",(function(){w.props.interactive&&"mouseenter"===n&&document.addEventListener("mousemove",f)})),a.onCreate(w),w;function _(){var e=w.props.touch;return Array.isArray(e)?e:[e,0]}function E(){return"hold"===_()[0]}function k(){return[b,y,w.popperChildren.backdrop]}function C(){return w.props.triggerTarget||e}function T(){document.body.removeEventListener("mouseleave",R),document.removeEventListener("mousemove",f),Wt=Wt.filter((function(e){return e!==f}))}function A(e){if(!w.props.interactive||!v.contains(e.target)){if(C().contains(e.target)){if(ae.isTouch)return;if(w.state.isVisible&&Ce(w.props.trigger,"click"))return}!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),u=!0,setTimeout((function(){u=!1})),w.state.isMounted||L())}}function O(){document.addEventListener("mousedown",A,!0)}function L(){document.removeEventListener("mousedown",A,!0)}function S(e,t){function n(e){e.target===b&&(Ie(b,"remove",n),t())}if(0===e)return t();Ie(b,"remove",l),Ie(b,"add",n),l=n}function M(e,t,n){void 0===n&&(n=!1),C().addEventListener(e,t,n),h.push({eventType:e,handler:t,options:n})}function N(){E()&&(M("touchstart",D,re),M("touchend",B,re)),Ce(w.props.trigger,"click")||M("click",(function(){ae.isTouch||!0!==w.props.hideOnClick||w.hide()})),w.props.trigger.trim().split(" ").forEach((function(e){if("manual"!==e)switch(M(e,D),e){case"mouseenter":M("mouseleave",B);break;case"focus":M(ee?"focusout":"blur",j)}}))}function I(){h.forEach((function(e){var t=e.eventType,n=e.handler,o=e.options;C().removeEventListener(t,n,o)})),h=[]}function D(e){if(!u&&w.state.isEnabled&&!F(e))if(w.state.isVisible||(n=e.type,e instanceof MouseEvent&&Wt.forEach((function(t){return t(e)}))),"click"===e.type&&!1!==w.props.hideOnClick&&w.state.isVisible)R(e);else{var t=_(),i=t[0],r=t[1];ae.isTouch&&"hold"===i&&r?o=setTimeout((function(){q(e)}),r):q(e)}}function P(t){(function(e,t){for(;e;){if(t(e))return e;e=e.parentElement}return null})(t.target,(function(t){return t===e||t===v}))||function(e,t,n,o){if(!e)return!0;var i=n.clientX,r=n.clientY,a=o.interactiveBorder,s=o.distance,c=t.top-r>("top"===e?a+s:a),l=r-t.bottom>("bottom"===e?a+s:a),d=t.left-i>("left"===e?a+s:a),p=i-t.right>("right"===e?a+s:a);return c||l||d||p}(De(w.state.currentPlacement),v.getBoundingClientRect(),t,w.props)&&(T(),R(t))}function B(e){if(!F(e))return w.props.interactive?(document.body.addEventListener("mouseleave",R),document.addEventListener("mousemove",f),void Wt.push(f)):void R(e)}function j(e){e.target===C()&&(w.props.interactive&&e.relatedTarget&&v.contains(e.relatedTarget)||R(e))}function F(e){var t="ontouchstart"in window,n=Ce(e.type,"touch"),o=E();return t&&ae.isTouch&&o&&!n||ae.isTouch&&!o&&n}function H(){var t=w.props,n=t.popperOptions,o=t.placement,i=w.popperChildren.arrow,r=fe(n,"preventOverflow"),a=w.state.currentPlacement.split("-")[1];function c(e){w.state.currentPlacement=e.placement,w.props.flip&&!w.props.flipOnUpdate&&(e.flipped&&(w.popperInstance.options.placement=e.placement),ge(w.popperInstance.modifiers,!1)),b.setAttribute("data-placement",w.state.currentPlacement),!1!==e.attributes["x-out-of-boundaries"]?b.setAttribute("data-out-of-boundaries",""):b.removeAttribute("data-out-of-boundaries");var t=De(w.state.currentPlacement),n=b.style;n.top="0",n.left="0",n[Ce(["top","bottom"],De(w.state.currentPlacement))?"top":"left"]=(Ce(["bottom","right"],De(w.state.currentPlacement))?1:-1)*w.props.distance+"px";var o=r&&void 0!==r.padding?r.padding:5,i="number"==typeof o,a=G({top:i?o:o.top,bottom:i?o:o.bottom,left:i?o:o.left,right:i?o:o.right},!i&&o);a[t]=i?o+w.props.distance:(o[t]||0)+w.props.distance,w.popperInstance.modifiers.filter((function(e){return"preventOverflow"===e.name}))[0].padding=a}var l=G({eventsEnabled:!1,placement:s=w.props.followCursor&&a?o.replace(a,"start"===a?"end":"start"):o},n,{modifiers:G({},n?n.modifiers:{},{preventOverflow:G({boundariesElement:w.props.boundary,padding:5},r),arrow:G({element:i,enabled:!!i},fe(n,"arrow")),flip:G({enabled:w.props.flip,padding:w.props.distance+5,behavior:w.props.flipBehavior},fe(n,"flip")),offset:G({offset:w.props.offset},fe(n,"offset"))}),onCreate:function(e){c(e),Ee(n&&n.onCreate,l.onCreate,[e]),z()},onUpdate:function(e){c(e),Ee(n&&n.onUpdate,l.onUpdate,[e]),z()}});w.popperInstance=new Vt(e,v,l)}function z(){!p&&c&&(p=!0,function(e){e.offsetHeight}(v),c())}function q(e){if(w.clearDelayTimeouts(),w.state.isScheduledToShow=!0,w.popperInstance||H(),e&&w.props.onTrigger(w,e),w.props.wait)return w.props.wait(w,e);O();var t=he(w.props.delay,0,oe.delay);t?o=setTimeout((function(){w.show()}),t):w.show()}function R(e){if(w.clearDelayTimeouts(),w.props.onUntrigger(w,e),w.state.isVisible){w.state.isScheduledToShow=!1;var t=he(w.props.delay,1,oe.delay);t?i=setTimeout((function(){w.state.isVisible&&w.hide()}),t):r=requestAnimationFrame((function(){w.hide()}))}else L()}}function Xt(e,t){document.addEventListener("touchstart",ce,G({},re,{capture:!0})),window.addEventListener("blur",de);var n=G({},oe,t),o=function(e){if(me(e))return[e];if(e instanceof NodeList)return ke(e);if(Array.isArray(e))return e;try{return ke(document.querySelectorAll(e))}catch(e){return[]}}(e).reduce((function(e,t){var o=t&&Yt(t,n);return o&&e.push(o),e}),[]);return me(e)?o[0]:o}Xt.version="5.0.0-alpha.2",Xt.defaultProps=oe,Xt.currentInput=ae,Xt.setDefaultProps=function(e){Object.keys(e).forEach((function(t){oe[t]=e[t]}))},Xt.hideAll=function(e){var t=void 0===e?{}:e,n=t.exclude,o=t.duration;ke(document.querySelectorAll(".tippy-popper")).forEach((function(e){var t,i=e._tippy;if(i){var r=!1;n&&(r=(t=n)&&t._tippy&&!t.classList.contains("tippy-popper")?i.reference===n:e===n.popper),r||i.hide(o)}}))},J&&setTimeout((function(){ke(document.querySelectorAll("[data-tippy]")).forEach((function(e){var t=e.getAttribute("data-tippy");t&&Xt(e,{content:t})}))}))
39
+ var Rt=1,Ut=[];function Wt(e,t){var n,i,o,r,a=we(e,t);if(!a.multiple&&e._tippy)return null;var s,l,c,d=!1,p=!1,u=!1,h=[],f=Ce(B,a.interactiveDebounce),m=Rt++,v=Pe(m,a),g=Me(v),y=g.tooltip,b=g.content,x={currentPlacement:a.placement,isScheduledToShow:!1,isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},w={id:m,reference:e,popper:v,popperChildren:g,popperInstance:null,props:a,state:x,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(o),cancelAnimationFrame(r)},setProps:function(t){if(w.state.isDestroyed)return;I();var n=w.props,i=we(e,G({},w.props,t,{ignoreAttributes:!0}));i.ignoreAttributes=ue(t,"ignoreAttributes")?t.ignoreAttributes||!1:n.ignoreAttributes,w.props=i,D(),A(),f=Ce(B,i.interactiveDebounce),Fe(v,n,i,w.state.isVisible),w.popperChildren=Me(v),w.popperInstance&&(oe.some((function(e){return ue(t,e)&&t[e]!==n[e]}))?(w.popperInstance.destroy(),Z(),w.state.isVisible&&w.popperInstance.enableEventListeners()):w.popperInstance.update())},setContent:function(e){w.setProps({content:e})},show:function(t,n){void 0===t&&(t=he(w.props.duration,0,ie.duration[1]));void 0===n&&(n=!0);var i=w.state.isVisible,o=w.state.isDestroyed,r=!w.state.isEnabled,a=ae.isTouch&&!w.props.touch;if(i||o||r||a)return;if(k().hasAttribute("disabled"))return;if(!1===w.props.onShow(w))return;M(),v.style.visibility="visible",w.state.isVisible=!0;var s=E();be(n?s.concat(v):s,0),l=function(){w.state.isVisible&&(w.popperInstance.update(),w.props.onMount(w),w.state.isMounted=!0,b.style.transitionDelay=w.popperChildren.backdrop?Math.round(t/12)+"ms":"",w.props.sticky&&(be([v],ee?0:w.props.updateDuration),function e(){w.popperInstance.scheduleUpdate(),w.state.isMounted?requestAnimationFrame(e):be([v],0)}()),be([v],w.props.updateDuration),be(s,t),xe(s,"visible"),function(e,t){O(e,t)}(t,(function(){w.props.aria&&k().setAttribute("aria-"+w.props.aria,y.id),w.props.onShown(w),w.state.isShown=!0})))},function(){p=!1;var t=w.props.appendTo,n="parent"===t?e.parentNode:ve(t,[e]);n.contains(v)||n.appendChild(v);w.popperInstance?(ge(w.popperInstance.modifiers,w.props.flip),w.popperInstance.enableEventListeners(),w.popperInstance.scheduleUpdate()):(Z(),w.popperInstance.enableEventListeners())}()},hide:function(e){void 0===e&&(e=he(w.props.duration,1,ie.duration[1]));var t=!w.state.isVisible&&!d,n=w.state.isDestroyed,i=!w.state.isEnabled&&!d;if(t||n||i)return;if(!1===w.props.onHide(w)&&!d)return;T(),v.style.visibility="hidden",w.state.isVisible=!1,w.state.isShown=!1;var o=E();be(o,e),xe(o,"hidden"),function(e,t){O(e,(function(){!w.state.isVisible&&v.parentNode&&v.parentNode.contains(v)&&t()}))}(e,(function(){w.props.aria&&k().removeAttribute("aria-"+w.props.aria),w.popperInstance.disableEventListeners(),w.popperInstance.options.placement=s,v.parentNode.removeChild(v),w.props.onHidden(w),w.state.isMounted=!1}))},enable:function(){w.state.isEnabled=!0},disable:function(){w.state.isEnabled=!1},destroy:function(){if(w.state.isDestroyed)return;d=!0,w.hide(0),I(),delete e._tippy,w.popperInstance&&w.popperInstance.destroy();d=!1,w.state.isDestroyed=!0}};return e._tippy=w,v._tippy=w,D(),a.lazy||Z(),a.showOnCreate&&j(),v.addEventListener("mouseenter",(function(){w.props.interactive&&w.state.isVisible&&"mouseenter"===n&&w.clearDelayTimeouts()})),v.addEventListener("mouseleave",(function(){w.props.interactive&&"mouseenter"===n&&document.addEventListener("mousemove",f)})),a.onCreate(w),w;function C(){var e=w.props.touch;return Array.isArray(e)?e:[e,0]}function _(){return"hold"===C()[0]}function E(){return[y,b,w.popperChildren.backdrop]}function k(){return w.props.triggerTarget||e}function A(){document.body.removeEventListener("mouseleave",q),document.removeEventListener("mousemove",f),Ut=Ut.filter((function(e){return e!==f}))}function L(e){if(!w.props.interactive||!v.contains(e.target)){if(k().contains(e.target)){if(ae.isTouch)return;if(w.state.isVisible&&ke(w.props.trigger,"click"))return}!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),u=!0,setTimeout((function(){u=!1})),w.state.isMounted||T())}}function M(){document.addEventListener("mousedown",L,!0)}function T(){document.removeEventListener("mousedown",L,!0)}function O(e,t){function n(e){e.target===y&&(Ie(y,"remove",n),t())}if(0===e)return t();Ie(y,"remove",c),Ie(y,"add",n),c=n}function S(e,t,n){void 0===n&&(n=!1),k().addEventListener(e,t,n),h.push({eventType:e,handler:t,options:n})}function D(){_()&&(S("touchstart",N,re),S("touchend",P,re)),ke(w.props.trigger,"click")||S("click",(function(){ae.isTouch||!0!==w.props.hideOnClick||w.hide()})),w.props.trigger.trim().split(" ").forEach((function(e){if("manual"!==e)switch(S(e,N),e){case"mouseenter":S("mouseleave",P);break;case"focus":S(ee?"focusout":"blur",F)}}))}function I(){h.forEach((function(e){var t=e.eventType,n=e.handler,i=e.options;k().removeEventListener(t,n,i)})),h=[]}function N(e){if(!u&&w.state.isEnabled&&!z(e))if(w.state.isVisible||(n=e.type,e instanceof MouseEvent&&Ut.forEach((function(t){return t(e)}))),"click"===e.type&&!1!==w.props.hideOnClick&&w.state.isVisible)q(e);else{var t=C(),o=t[0],r=t[1];ae.isTouch&&"hold"===o&&r?i=setTimeout((function(){j(e)}),r):j(e)}}function B(t){(function(e,t){for(;e;){if(t(e))return e;e=e.parentElement}return null})(t.target,(function(t){return t===e||t===v}))||function(e,t,n,i){if(!e)return!0;var o=n.clientX,r=n.clientY,a=i.interactiveBorder,s=i.distance,l=t.top-r>("top"===e?a+s:a),c=r-t.bottom>("bottom"===e?a+s:a),d=t.left-o>("left"===e?a+s:a),p=o-t.right>("right"===e?a+s:a);return l||c||d||p}(Ne(w.state.currentPlacement),v.getBoundingClientRect(),t,w.props)&&(A(),q(t))}function P(e){if(!z(e))return w.props.interactive?(document.body.addEventListener("mouseleave",q),document.addEventListener("mousemove",f),void Ut.push(f)):void q(e)}function F(e){e.target===k()&&(w.props.interactive&&e.relatedTarget&&v.contains(e.relatedTarget)||q(e))}function z(e){var t="ontouchstart"in window,n=ke(e.type,"touch"),i=_();return t&&ae.isTouch&&i&&!n||ae.isTouch&&!i&&n}function Z(){var t=w.props,n=t.popperOptions,i=t.placement,o=w.popperChildren.arrow,r=fe(n,"preventOverflow"),a=w.state.currentPlacement.split("-")[1];function l(e){w.state.currentPlacement=e.placement,w.props.flip&&!w.props.flipOnUpdate&&(e.flipped&&(w.popperInstance.options.placement=e.placement),ge(w.popperInstance.modifiers,!1)),y.setAttribute("data-placement",w.state.currentPlacement),!1!==e.attributes["x-out-of-boundaries"]?y.setAttribute("data-out-of-boundaries",""):y.removeAttribute("data-out-of-boundaries");var t=Ne(w.state.currentPlacement),n=y.style;n.top="0",n.left="0",n[ke(["top","bottom"],Ne(w.state.currentPlacement))?"top":"left"]=(ke(["bottom","right"],Ne(w.state.currentPlacement))?1:-1)*w.props.distance+"px";var i=r&&void 0!==r.padding?r.padding:5,o="number"==typeof i,a=G({top:o?i:i.top,bottom:o?i:i.bottom,left:o?i:i.left,right:o?i:i.right},!o&&i);a[t]=o?i+w.props.distance:(i[t]||0)+w.props.distance,w.popperInstance.modifiers.filter((function(e){return"preventOverflow"===e.name}))[0].padding=a}var c=G({eventsEnabled:!1,placement:s=w.props.followCursor&&a?i.replace(a,"start"===a?"end":"start"):i},n,{modifiers:G({},n?n.modifiers:{},{preventOverflow:G({boundariesElement:w.props.boundary,padding:5},r),arrow:G({element:o,enabled:!!o},fe(n,"arrow")),flip:G({enabled:w.props.flip,padding:w.props.distance+5,behavior:w.props.flipBehavior},fe(n,"flip")),offset:G({offset:w.props.offset},fe(n,"offset"))}),onCreate:function(e){l(e),_e(n&&n.onCreate,c.onCreate,[e]),H()},onUpdate:function(e){l(e),_e(n&&n.onUpdate,c.onUpdate,[e]),H()}});w.popperInstance=new Vt(e,v,c)}function H(){!p&&l&&(p=!0,function(e){e.offsetHeight}(v),l())}function j(e){if(w.clearDelayTimeouts(),w.state.isScheduledToShow=!0,w.popperInstance||Z(),e&&w.props.onTrigger(w,e),w.props.wait)return w.props.wait(w,e);M();var t=he(w.props.delay,0,ie.delay);t?i=setTimeout((function(){w.show()}),t):w.show()}function q(e){if(w.clearDelayTimeouts(),w.props.onUntrigger(w,e),w.state.isVisible){w.state.isScheduledToShow=!1;var t=he(w.props.delay,1,ie.delay);t?o=setTimeout((function(){w.state.isVisible&&w.hide()}),t):r=requestAnimationFrame((function(){w.hide()}))}else T()}}function Yt(e,t){document.addEventListener("touchstart",le,G({},re,{capture:!0})),window.addEventListener("blur",de);var n=G({},ie,t),i=function(e){if(me(e))return[e];if(e instanceof NodeList)return Ee(e);if(Array.isArray(e))return e;try{return Ee(document.querySelectorAll(e))}catch(e){return[]}}(e).reduce((function(e,t){var i=t&&Wt(t,n);return i&&e.push(i),e}),[]);return me(e)?i[0]:i}Yt.version="5.0.0-alpha.2",Yt.defaultProps=ie,Yt.currentInput=ae,Yt.setDefaultProps=function(e){Object.keys(e).forEach((function(t){ie[t]=e[t]}))},Yt.hideAll=function(e){var t=void 0===e?{}:e,n=t.exclude,i=t.duration;Ee(document.querySelectorAll(".tippy-popper")).forEach((function(e){var t,o=e._tippy;if(o){var r=!1;n&&(r=(t=n)&&t._tippy&&!t.classList.contains("tippy-popper")?o.reference===n:e===n.popper),r||o.hide(i)}}))},Q&&setTimeout((function(){Ee(document.querySelectorAll("[data-tippy]")).forEach((function(e){var t=e.getAttribute("data-tippy");t&&Yt(e,{content:t})}))}))
40
40
  /**!
41
41
  * tippy.js v5.0.0-alpha.2
42
42
  * (c) 2017-2019 atomiks
43
43
  * MIT License
44
- */;!function(e){if(J){var t=document.createElement("style");t.textContent=e,t.setAttribute("data-tippy-stylesheet","");var n=document.head,o=n.querySelector("style,link");o?n.insertBefore(t,o):n.appendChild(t)}}(".tippy-tooltip[data-animation=fade][data-state=hidden]{opacity:0}.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}.tippy-popper{pointer-events:none;max-width:calc(100% - 8px);transition-timing-function:cubic-bezier(.165,.84,.44,1)}.tippy-tooltip{position:relative;color:#fff;border-radius:.25rem;font-size:.875rem;line-height:1.4;background-color:#333;overflow:hidden;transition-property:visibility,opacity,transform;outline:0}.tippy-tooltip[data-placement^=top] .tippy-arrow{border-width:8px 8px 0;border-top-color:#333;margin:0 3px;transform-origin:50% 0;bottom:-8px}.tippy-tooltip[data-placement^=bottom] .tippy-arrow{border-width:0 8px 8px;border-bottom-color:#333;margin:0 3px;transform-origin:50% 7px;top:-8px}.tippy-tooltip[data-placement^=left] .tippy-arrow{border-width:8px 0 8px 8px;border-left-color:#333;margin:3px 0;transform-origin:0 50%;right:-8px}.tippy-tooltip[data-placement^=right] .tippy-arrow{border-width:8px 8px 8px 0;border-right-color:#333;margin:3px 0;transform-origin:7px 50%;left:-8px}.tippy-tooltip[data-arrow]{overflow:visible}.tippy-tooltip[data-animatefill]{background-color:transparent!important}.tippy-tooltip[data-interactive]{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-tooltip[data-inertia][data-state=hidden]{transition-timing-function:ease}.tippy-arrow{border-color:transparent;border-style:solid;position:absolute}.tippy-arrow[data-state=hidden]{opacity:0}.tippy-content{padding:.3125rem .5625rem}");var Zt=nn("shepherd"),Kt=nn("shepherd-has-title"),Qt={computeStyle:{enabled:!0,fn:function(e){return e.styles=z({},e.styles,{left:"50%",top:"50%",transform:"translate(-50%, -50%)"}),e}},addShepherdClass:Zt},Gt={positionFixed:!0,modifiers:{addShepherdClass:Zt}};function Jt(e){var t=document.createElement("div");return t.innerHTML=e,t.children[0]}function $t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Array.isArray(e)?e.slice(t):[]}function en(){if(Q(Xt))throw new Error("Using the attachment feature of Shepherd requires the Tippy.js library");this.tooltip&&this.tooltip.destroy();var e=this.parseAttachTo();this.tooltip=on.call(this,e),this.target=e.element||document.body,this.el.classList.add("shepherd-element")}function tn(){var e=this.options.attachTo||{},t=z({},e);if(K(e.element)){try{t.element=document.querySelector(e.element)}catch(e){}t.element||console.error("The element for this Shepherd step was not found ".concat(e.element))}return t}function nn(e){return{enabled:!0,fn:function(t){return t.instance.popper.classList.add(e),t}}}function on(e){if(!e.element)return an.call(this);var t=rn.call(this,e);return Xt(e.element,t)}function rn(e){var t={content:this.el,flipOnUpdate:!0,placement:e.on||"right"};return z(t,this.options.tippyOptions),this.options.title&&z(Gt.modifiers,{addHasTitleClass:Kt}),this.options.tippyOptions&&this.options.tippyOptions.popperOptions&&z(Gt,this.options.tippyOptions.popperOptions),t.popperOptions=Gt,t}function an(){var e=function(e){for(var t=1;t<arguments.length;t++)if(t%2){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){H(e,t,n[t])}))}else Object.defineProperties(e,Object.getOwnPropertyDescriptors(arguments[t]));return e}({content:this.el,placement:"top"},this.options.tippyOptions);e.arrow=!1,e.popperOptions=e.popperOptions||{},this.options.title&&z(Gt.modifiers,{addHasTitleClass:Kt});var t=z({},Gt,e.popperOptions,{modifiers:z(Qt,e.popperOptions.modifiers)});return e.popperOptions=t,Xt(document.body,e)}var sn=function(){function e(){B(this,e)}return F(e,[{key:"on",value:function(e,t,n){var o=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];Q(this.bindings)&&(this.bindings={}),Q(this.bindings[e])&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:n,once:o})}},{key:"once",value:function(e,t,n){this.on(e,t,n,!0)}},{key:"off",value:function(e,t){var n=this;if(Q(this.bindings)||Q(this.bindings[e]))return!1;Q(t)?delete this.bindings[e]:this.bindings[e].forEach((function(o,i){o.handler===t&&n.bindings[e].splice(i,1)}))}},{key:"trigger",value:function(e){var t=this;if(!Q(this.bindings)&&this.bindings[e]){var n=$t(Array.prototype.slice.call(arguments));this.bindings[e].forEach((function(o,i){var r=o.ctx,a=o.handler,s=o.once,c=r||t;a.apply(c,n),s&&t.bindings[e].splice(i,1)}))}}}]),e}();function cn(e){var t=this;return function(n){if(t.isOpen()){var o=t.el&&n.target===t.el;(!Q(e)&&n.target.matches(e)||o)&&t.tour.next()}}}function ln(){var e=this.options.advanceOn||{},t=e.event,n=e.selector;if(!t)return console.error("advanceOn was defined, but no event name was passed.");var o,i=cn.call(this,n);try{o=document.querySelector(n)}catch(e){}if(!Q(n)&&!o)return console.error("No element was found for the selector supplied to advanceOn: ".concat(n));o?(o.addEventListener(t,i),this.on("destroy",(function(){return o.removeEventListener(t,i)}))):(document.body.addEventListener(t,i,!0),this.on("destroy",(function(){return document.body.removeEventListener(t,i,!0)})))}function dn(e,t){var n=this;e.events=e.events||{},Q(e.action)||(e.events.click=e.action),e.events&&Object.entries(e.events).forEach((function(e){var o=Y(e,2),i=o[0],r=o[1];if(K(r)){var a=r;r=function(){return n.tour.show(a)}}t.dataset.buttonEvent=!0,t.addEventListener(i,r),n.on("destroy",(function(){t.removeAttribute("data-button-event"),t.removeEventListener(i,r)}))}))}function pn(e){var t=this;e.addEventListener("click",(function(e){e.preventDefault(),t.cancel()}))}function un(e){var t=this;e.map((function(e){t[e]=t[e].bind(t)}))}Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var hn=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){e.exports={polyfill:function(){var e=window,t=document;if(!("scrollBehavior"in t.documentElement.style)||!0===e.__forceSmoothScrollPolyfill__){var n,o=e.HTMLElement||e.Element,i={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:o.prototype.scroll||c,scrollIntoView:o.prototype.scrollIntoView},a=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,s=(n=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?m.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):i.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!==r(arguments[0])?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?i.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!==r(arguments[0])?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):m.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},o.prototype.scroll=o.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var e=arguments[0].left,t=arguments[0].top;m.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!==r(arguments[0])?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},o.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},o.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var n=h(this),o=n.getBoundingClientRect(),r=this.getBoundingClientRect();n!==t.body?(m.call(this,n,n.scrollLeft+r.left-o.left,n.scrollTop+r.top-o.top),"fixed"!==e.getComputedStyle(n).position&&e.scrollBy({left:o.left,top:o.top,behavior:"smooth"})):e.scrollBy({left:r.left,top:r.top,behavior:"smooth"})}else i.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function c(e,t){this.scrollLeft=e,this.scrollTop=t}function l(e){if(null===e||"object"!==r(e)||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"===r(e)&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function d(e,t){return"Y"===t?e.clientHeight+s<e.scrollHeight:"X"===t?e.clientWidth+s<e.scrollWidth:void 0}function p(t,n){var o=e.getComputedStyle(t,null)["overflow"+n];return"auto"===o||"scroll"===o}function u(e){var t=d(e,"Y")&&p(e,"Y"),n=d(e,"X")&&p(e,"X");return t||n}function h(e){for(;e!==t.body&&!1===u(e);)e=e.parentNode||e.host;return e}function f(t){var n,o,i,r,s=(a()-t.startTime)/468;r=s=s>1?1:s,n=.5*(1-Math.cos(Math.PI*r)),o=t.startX+(t.x-t.startX)*n,i=t.startY+(t.y-t.startY)*n,t.method.call(t.scrollable,o,i),o===t.x&&i===t.y||e.requestAnimationFrame(f.bind(e,t))}function m(n,o,r){var s,l,d,p,u=a();n===t.body?(s=e,l=e.scrollX||e.pageXOffset,d=e.scrollY||e.pageYOffset,p=i.scroll):(s=n,l=n.scrollLeft,d=n.scrollTop,p=c),f({scrollable:s,method:p,startTime:u,startX:l,startY:d,x:o,y:r})}}}}));hn.polyfill;hn.polyfill();var fn,mn=(fn=0,function(){return++fn}),vn=function(e){function t(e,n){var o;return B(this,t),(o=W(this,R(t).call(this,e,n))).tour=e,un.call(U(o),["_show","cancel","complete","destroy","hide","isOpen","scrollTo","setupElements","show"]),o.setOptions(n),o.bindAdvance=ln.bind(U(o)),o.bindButtonEvents=dn.bind(U(o)),o.bindCancelLink=pn.bind(U(o)),o.setupTooltip=en.bind(U(o)),o.parseAttachTo=tn.bind(U(o)),W(o,U(o))}return q(t,e),F(t,[{key:"_addButtons",value:function(e){var t=this;if(Array.isArray(this.options.buttons)&&this.options.buttons.length){var n=document.createElement("footer");n.classList.add("shepherd-footer"),this.options.buttons.map((function(e){var o=Jt('<button class="shepherd-button '.concat(e.classes||"",'" tabindex="0">').concat(e.text,"</button>"));n.appendChild(o),t.bindButtonEvents(e,o)})),e.appendChild(n)}}},{key:"_addCancelLink",value:function(e,t){if(this.options.showCancelLink){var n=Jt('<a href class="shepherd-cancel-link"></a>');t.appendChild(n),e.classList.add("shepherd-has-cancel-link"),this.bindCancelLink(n)}}},{key:"_addContent",value:function(e,t){var n=Jt('<div class="shepherd-text"\n id="'.concat(t,'"\n ></div>')),o=this.options.text;Z(o)&&(o=o.call(this,n)),o instanceof HTMLElement?n.appendChild(o):(K(o)&&(o=[o]),o.map((function(e){n.innerHTML+="<p>".concat(e,"</p>")}))),e.appendChild(n)}},{key:"_addKeyDownHandler",value:function(e){var t=this,n=e.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),o=Y(n,1)[0],i=n[n.length-1];e.addEventListener("keydown",(function(e){switch(e.keyCode){case 9:if(1===n.length){e.preventDefault();break}e.shiftKey?document.activeElement===o&&(e.preventDefault(),i.focus()):document.activeElement===i&&(e.preventDefault(),o.focus());break;case 27:t.cancel();break;case 37:t.tour.back();break;case 39:t.tour.next()}}))}},{key:"_createTooltipContent",value:function(){var e=document.createElement("div"),t=this.options.classes||"",n="".concat(this.id,"-description"),o="".concat(this.id,"-label"),i=Jt('<div class="'.concat(t,'"\n data-shepherd-step-id="').concat(this.id,'"\n role="dialog"\n tabindex="0">')),r=document.createElement("header");if(this.options.title){var a=document.createElement("h3");a.classList.add("shepherd-title"),a.innerHTML="".concat(this.options.title),a.id=o,i.setAttribute("aria-labeledby",o),r.appendChild(a)}return e.classList.add("shepherd-content"),r.classList.add("shepherd-header"),i.appendChild(e),e.appendChild(r),Q(this.options.text)||(this._addContent(e,n),i.setAttribute("aria-describedby",n)),this._addButtons(e),this._addCancelLink(i,r),i}},{key:"getTour",value:function(){return this.tour}},{key:"cancel",value:function(){this.tour.cancel(),this.trigger("cancel")}},{key:"complete",value:function(){this.tour.complete(),this.trigger("complete")}},{key:"destroy",value:function(){try{this.tooltip&&(this.tooltip.destroy(),this.tooltip=null),X(this.el)&&this.el.parentNode&&(this.el.parentNode.removeChild(this.el),this.el=null),this.target&&this._updateStepTargetOnHide(),this.trigger("destroy")}catch(e){}}},{key:"hide",value:function(){this.tour.modal.hide(),this.trigger("before-hide"),document.body.removeAttribute("data-shepherd-step"),this.target&&this._updateStepTargetOnHide(),this.tooltip&&this.tooltip.hide(),this.trigger("hide")}},{key:"isOpen",value:function(){return Boolean(this.tooltip&&this.tooltip.state&&this.tooltip.state.isVisible)}},{key:"setupElements",value:function(){Q(this.el)||this.destroy(),this.el=this._createTooltipContent(),this._addKeyDownHandler(this.el),this.options.advanceOn&&this.bindAdvance(),this.setupTooltip()}},{key:"scrollTo",value:function(e){var t=this.parseAttachTo().element;Z(this.options.scrollToHandler)?this.options.scrollToHandler(t):X(t)&&t.scrollIntoView(e)}},{key:"setOptions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=t;var n=this.options.when;this.destroy(),this.id=this.options.id||"step-".concat(mn()),n&&Object.entries(n).forEach((function(t){var n=Y(t,2),o=n[0],i=n[1];e.on(o,i,e)}))}},{key:"show",value:function(){var e=this;if(Z(this.options.beforeShowPromise)){var t=this.options.beforeShowPromise();if(!Q(t))return t.then((function(){return e._show()}))}this._show()}},{key:"_show",value:function(){var e=this;this.tour.beforeShowStep(this),this.trigger("before-show"),this.el||this.setupElements(),this.target.classList.add("shepherd-enabled","shepherd-target"),document.body.setAttribute("data-shepherd-step",this.id),this.options.scrollTo&&setTimeout((function(){e.scrollTo(e.options.scrollTo)})),this.tooltip.show(),this.trigger("show"),this.el.focus()}},{key:"_updateStepTargetOnHide",value:function(){this.options.highlightClass&&this.target.classList.remove(this.options.highlightClass),this.target.classList.remove("shepherd-enabled","shepherd-target")}}]),t}(sn),gn="http://www.w3.org/2000/svg",bn="shepherdModalOverlayContainer",yn="shepherdModalMask",xn="shepherdModalMaskRect",wn="shepherdModalMaskOpening",_n="shepherd-modal-is-visible",En="shepherd-modal-target";function kn(){var e,t=((e=document.createElementNS(gn,"svg")).setAttributeNS(null,"id",bn),e),n=document.createElementNS(gn,"defs"),o=function(){var e=document.createElementNS(gn,"mask");return On(e,{height:"100%",id:yn,width:"100%",x:"0",y:"0"}),e}(),i=function(){var e=document.createElementNS(gn,"rect");return On(e,{fill:"#FFFFFF",height:"100%",id:xn,width:"100%",x:"0",y:"0"}),e}(),r=function(){var e=document.createElementNS(gn,"rect");return On(e,{fill:"#000000",id:wn}),e}(),a=function(){var e=document.createElementNS(gn,"rect");return On(e,{height:"100%",width:"100%",x:"0",y:"0"}),e.setAttribute("mask","url(#".concat(yn,")")),e}();return o.appendChild(i),o.appendChild(r),n.appendChild(o),t.appendChild(n),t.appendChild(a),t}function Cn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e.getBoundingClientRect&&t instanceof SVGElement){var o=e.getBoundingClientRect(),i=o.x,r=o.y,a=o.width,s=o.height,c=o.left,l=o.top;On(t,{x:(i||c)-n,y:(r||l)-n,width:a+2*n,height:s+2*n})}}function Tn(e){e.preventDefault()}function An(e){e.stopPropagation()}function On(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function Ln(e){var t=e.options.attachTo;if(!t)return null;var n=P(t);return"string"===n?function(e){var t=Y(e.split(" "),1)[0];return document.querySelector(t)}(t):"object"===n?function(e){var t=e.element;if(t instanceof HTMLElement)return t;if(t instanceof SVGElement)return t;try{return document.querySelector(t)}catch(e){}return null}(t):null}function Sn(){"function"==typeof this._onScreenChange&&(window.removeEventListener("resize",this._onScreenChange,!1),window.removeEventListener("scroll",this._onScreenChange,!0)),window.addEventListener("resize",this._onScreenChange,!1),window.addEventListener("scroll",this._onScreenChange,!0);var e=document.querySelector("#".concat(bn));window.addEventListener("touchmove",Tn,{passive:!1}),e&&e.addEventListener("touchmove",An,!1)}var Mn=function(){function e(t){return B(this,e),this.createModalOverlay(),this.options=t,this}return F(e,[{key:"cleanup",value:function(){try{var e=this._modalOverlayElem;e&&e instanceof SVGElement&&e.parentNode.removeChild(e),this._modalOverlayElem=null,document.body.classList.remove(_n)}catch(e){}}},{key:"createModalOverlay",value:function(){if(!this._modalOverlayElem){var e=document.getElementById("shepherdModalOverlayContainer");this._modalOverlayElem=e||kn(),this._modalOverlayOpening=this._modalOverlayElem.querySelector("#".concat(wn)),this.hide(),e||document.body.appendChild(this._modalOverlayElem)}}},{key:"hide",value:function(){document.body.classList.remove(_n),this._modalOverlayElem&&(this._modalOverlayElem.style.display="none")}},{key:"setupForStep",value:function(e){this.options.useModalOverlay?(this._styleForStep(e),this.show()):this.hide()}},{key:"show",value:function(){document.body.classList.add(_n),this._modalOverlayElem&&(this._modalOverlayElem.style.display="block")}},{key:"_styleForStep",value:function(e){var t,n,o,i,r,a=this._modalOverlayOpening,s=Ln(e),c=e.options.modalOverlayOpeningPadding;s?(Cn(s,a,c),this._onScreenChange=(n=Cn.bind(this,s,a,c),o=0,function(){var e=this,t=arguments,a=function(){r=null,i||n.apply(e,t)},s=i&&!r;clearTimeout(r),r=setTimeout(a,o),s&&n.apply(e,t)}),Sn.call(this)):(t=this._modalOverlayOpening)&&t instanceof SVGElement&&On(t,{height:"0",x:"0",y:"0",width:"0"})}}]),e}(),Nn=!1;if("undefined"!=typeof window){var In={get passive(){Nn=!0}};window.addEventListener("testPassive",null,In),window.removeEventListener("testPassive",null,In)}var Dn,Pn,Bn="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),jn=[],Fn=!1,Hn=-1,zn=function(e){return jn.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},qn=function(e){var t=e||window.event;return!!zn(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},Rn=function(e,t){if(Bn){if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(e&&!jn.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};jn=[].concat(p(jn),[n]),e.ontouchstart=function(e){1===e.targetTouches.length&&(Hn=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-Hn;!zn(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?qn(e):e.stopPropagation())}(t,e)},Fn||(document.addEventListener("touchmove",qn,Nn?{passive:!1}:void 0),Fn=!0)}}else{!function(e){setTimeout((function(){if(void 0===Pn){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(Pn=document.body.style.paddingRight,document.body.style.paddingRight="".concat(n,"px"))}void 0===Dn&&(Dn=document.body.style.overflow,document.body.style.overflow="hidden")}))}(t);var o={targetElement:e,options:t||{}};jn=[].concat(p(jn),[o])}},Vn=function(){Bn?(jn.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),Fn&&(document.removeEventListener("touchmove",qn,Nn?{passive:!1}:void 0),Fn=!1),jn=[],Hn=-1):(setTimeout((function(){void 0!==Pn&&(document.body.style.paddingRight=Pn,Pn=void 0),void 0!==Dn&&(document.body.style.overflow=Dn,Dn=void 0)})),jn=[])},Un={trigger:"manual",arrow:!0,animation:"fade",duration:420,flip:!0,animateFill:!1,interactive:!0,hideOnClick:"toggle",multiple:!0};function Wn(){"function"==typeof this._onScreenChange&&(window.removeEventListener("resize",this._onScreenChange,!1),window.removeEventListener("scroll",this._onScreenChange,!1),this._onScreenChange=null),window.removeEventListener("touchmove",Tn,{passive:!1})}var Yn,Xn=function(){var e=0;return function(){return++e}}(),Zn=new sn,Kn=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};B(this,t),e=W(this,R(t).call(this,n)),un.call(U(e),["back","cancel","complete","hide","next"]),e.options=n,e.steps=e.options.steps||[];var o=["active","cancel","complete","inactive","show","start"];return o.map((function(t){var n;n=t,e.on(n,(function(t){(t=t||{}).tour=U(e),Zn.trigger(n,t)}))})),e.modal=new Mn(n),e._setTooltipDefaults(),e._setTourID(),W(e,U(e))}return q(t,e),F(t,[{key:"addStep",value:function(e,t){var n,o;return Q(t)?o=e:(n=e,o=t),o instanceof vn?o.tour=this:o=this.setupStep(o,n),this.steps.push(o),o}},{key:"back",value:function(){var e=this.steps.indexOf(this.currentStep);this.show(e-1,!1)}},{key:"cancel",value:function(){if(this.options.confirmCancel){var e=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";window.confirm(e)&&this.done("cancel")}else this.done("cancel")}},{key:"complete",value:function(){this.done("complete")}},{key:"done",value:function(e){var t;Array.isArray(this.steps)&&this.steps.forEach((function(e){return e.destroy()})),Wn.call(this),(t=this.tourObject)&&t.steps.forEach((function(e){if(e.options&&!1===e.options.canClickTarget&&e.options.attachTo){var t=Ln(e);t instanceof HTMLElement&&(t.style.pointerEvents="auto")}})),this.trigger(e),Zn.activeTour=null,this._removeBodyAttrs(),this.trigger("inactive",{tour:this}),this.options.disableScroll&&Vn(),this.modal.cleanup()}},{key:"getById",value:function(e){return this.steps.find((function(t){return t.id===e}))}},{key:"getCurrentStep",value:function(){return this.currentStep}},{key:"hide",value:function(){var e=this.getCurrentStep();if(e)return e.hide()}},{key:"isActive",value:function(){return Zn.activeTour===this}},{key:"next",value:function(){var e=this.steps.indexOf(this.currentStep);e===this.steps.length-1?this.complete():this.show(e+1,!0)}},{key:"removeStep",value:function(e){var t=this,n=this.getCurrentStep();this.steps.some((function(n,o){if(n.id===e)return n.isOpen()&&n.hide(),n.destroy(),t.steps.splice(o,1),!0})),n&&n.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}},{key:"setupStep",value:function(e,t){return(K(t)||"number"==typeof t)&&(e.id=t.toString()),e=z({},this.options.defaultStepOptions,e),new vn(this,e)}},{key:"beforeShowStep",value:function(e){this.modal.setupForStep(e),this._styleTargetElementForStep(e)}},{key:"show",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=K(e)?this.getById(e):this.steps[e];if(n){this._updateStateBeforeShow();var o=Z(n.options.showOn)&&!n.options.showOn();o?this._skipStep(n,t):(this.trigger("show",{step:n,previous:this.currentStep}),this.currentStep=n,n.show())}}},{key:"start",value:function(){this.trigger("start"),this.options.disableScroll&&Rn(),this.currentStep=null,this._setupActiveTour(),this.next()}},{key:"_setupActiveTour",value:function(){this.modal.createModalOverlay(),this._addBodyAttrs(),this.trigger("active",{tour:this}),Zn.activeTour=this}},{key:"_styleTargetElementForStep",value:function(e){var t,n,o=Ln(e);o&&(t=o,(n=document.querySelector("".concat(En)))&&n.classList.remove(En),t.classList.add(En),e.options.highlightClass&&o.classList.add(e.options.highlightClass),!1===e.options.canClickTarget&&(o.style.pointerEvents="none"))}},{key:"_skipStep",value:function(e,t){var n=this.steps.indexOf(e),o=t?n+1:n-1;this.show(o,t)}},{key:"_setTooltipDefaults",value:function(){Xt.setDefaultProps(Un)}},{key:"_updateStateBeforeShow",value:function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}},{key:"_setTourID",value:function(){var e=this.options.tourName||"tour",t=Xn();this.id="".concat(e,"--").concat(t)}},{key:"_addBodyAttrs",value:function(){document.body.setAttribute("data-shepherd-active-tour",this.id),document.body.classList.add("shepherd-active")}},{key:"_removeBodyAttrs",value:function(){document.body.removeAttribute("data-shepherd-active-tour"),document.body.classList.remove("shepherd-active")}}]),t}(sn);z(Zn,{Tour:Kn,Step:vn,Evented:sn});var Qn=function(e){return 50===e?10:16},Gn=function(e,t){switch(e.toLowerCase()){case"top":return"translateY(".concat(Qn(t)-26,"px)");case"right":return"translateX(".concat(Qn(t),"px)");case"bottom":return"translateY(".concat(Qn(t),"px)");case"left":return"translateX(".concat(Qn(t)-26,"px)")}},Jn=function(e,t,n,o,i){var r=e.animation,a=void 0===r?{}:r,s=e.bg_color,c=void 0===s?"black":s,l=e.border,d=void 0===l?{}:l,p=e.buttons_config,u=void 0===p?[]:p,h=e.button_position,f=void 0===h?"right":h,m=e.corners,v=void 0===m?{}:m,g=e.shadow,b=void 0===g?"0 8px 16px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)":g,y=e.opacity,x=void 0===y?1:y,w=e.dismiss_outside_touch,_=void 0!==w&&w,E=e.dismiss_target_touch,k=void 0===E||E,C=e.position,A=void 0===C?"TOP":C,S=e.text_config,N=void 0===S?{}:S,I=e.title_config,D=void 0===I?{}:I,P=e.view_id,B=e.show_shadow,j=void 0!==B&&B,F=e.show_close_icon,H=void 0!==F&&F,z=e.dim_background_color,q=void 0===z?"#0a0a0a":z,R=e.dim_background_opacity,V=void 0===R?.5:R,U=e.layout_type,W=void 0===U?"default":U,Y=e.pb_color,X=void 0===Y?"orange":Y,Z=e.index,K=void 0===Z?0:Z,Q=e.total,G=void 0===Q?1:Q,J=t.configId,$=t.configName,ee=L(u,Yn,J,$),te=ee.buttons_array,ne=ee.buttons_css,oe={color:N.color,fontSize:N.size,fontFamily:N.font_family,fontStyle:N.style};if(N.margin_config&&Object.keys(N.margin_config).length>0){var ie=N.margin_config;oe.margin="".concat(ie.top,"px ").concat(ie.right,"px ").concat(ie.bottom,"px ").concat(ie.left,"px")}var re=N.style;"bold"===re&&(oe.fontWeight=re);var ae,se={color:D.color,fontSize:D.size,fontFamily:D.font_family,fontStyle:D.style};if(D.margin_config&&Object.keys(D.margin_config).length>0){var ce=D.margin_config;se.margin="".concat(ce.top,"px ").concat(ce.right,"px ").concat(ce.bottom,"px ").concat(ce.left,"px")}switch("bold"===(re=D.style)&&(oe.fontWeight=re),W){case"with_progress":ae='\n<div>\n <div style="height: 6px;background: '.concat(X,";width: ").concat((K+1)/G*100,"%;border-radius: ").concat(v.enabled?v.width:0,'px;"></div>\n <header class="shepherd-header" style="').concat(D?"padding: 10px 10px 0 10px":"",'">\n ').concat(D?'<h3 class="shepherd-title" id="apxor-step-'.concat(K,'-label" style="padding: 0 !important;padding-right: 0.7em;">').concat(D.text,"</h3>"):"",'\n </header>\n <p style="padding: 8px 10px">').concat(N.text,"</p>\n</div>\n "),ae=(new DOMParser).parseFromString(ae,"text/html").body.children[0];break;default:ae=[N&&N.text?N.text:"Tap here"]}var le={"border-radius":v.enabled?v.width:0,background:c,"border-color":d.color,"border-width":d.width},de=null;try{de=document.querySelector("#"+P)}catch(e){}if(!de)try{de=document.querySelector(P)}catch(e){}if(de||(de=T(P)),de){var pe=document.createElement("span");pe.setAttribute("id","apxor-style-"+J+"-step-"+K);var ue=document.createElement("style");ue.innerHTML='\n#shepherdModalOverlayContainer {\n -ms-filter: "progid:dximagetransform.microsoft.gradient.alpha(Opacity=50)";\n filter: alpha(opacity=50);height: 100vh;left: 0;opacity: '.concat(null!=V?V:.5,";position: fixed;\n top: 0;transition: all .3s ease-out;width: 100vw;z-index: 9997;fill: ").concat(null!=q?q:"transparent","\n}\n#shepherdModalOverlayContainer #shepherdModalMask, #shepherdModalOverlayContainer #shepherdModalMaskRect {\n height: 100vh;width: 100vw\n}\n.shepherd-modal.shepherd-enabled {\n position: relative;z-index: 9998\n}\n.shepherd-active.shepherd-modal-is-visible :not(.shepherd-target) {\n pointer-events: none\n}\n.shepherd-active.shepherd-modal-is-visible .shepherd-button, .shepherd-active.shepherd-modal-is-visible .shepherd-button *, .shepherd-active.shepherd-modal-is-visible .shepherd-cancel-link, .shepherd-active.shepherd-modal-is-visible .shepherd-cancel-link *, .shepherd-active.shepherd-modal-is-visible .shepherd-element, .shepherd-active.shepherd-modal-is-visible .shepherd-element *, .shepherd-active.shepherd-modal-is-visible .shepherd-target, .shepherd-active.shepherd-modal-is-visible .shepherd-target * {\n pointer-events: auto\n}\n.tippy-popper.shepherd {\n z-index: 999999\n}\n.tippy-popper.shepherd[x-placement^=top] {\n margin-top: 0px\n}\n.tippy-popper.shepherd[x-placement^=bottom] {\n margin-top: 8px\n}\n.tippy-popper.shepherd[x-placement^=left] {\n margin-right: 0px\n}\n.tippy-popper.shepherd[x-placement^=right] {\n margin-left: 0px\n}\n.tippy-popper.shepherd .tippy-tooltip .tippy-content {\n max-height: 100%;padding: 0;text-align: left;max-width: 400px;\n}\n.shepherd-element, .shepherd-element *, .shepherd-element:after, .shepherd-element :after, .shepherd-element:before, .shepherd-element :before {\n box-sizing: border-box\n}\n.shepherd-element {\n outline: none;\n}\n.shepherd-element .shepherd-content header {\n *zoom: 1;align-items: left;border-top-left-radius: 5px;border-top-right-radius: 5px;\n display: flex;justify-content: left;line-height: 2em;").concat(H?"padding: .75em;":"",'\n}\n.shepherd-element .shepherd-content header:after {\n clear: both;content: "";display: table\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link, .shepherd-element .shepherd-content header .shepherd-title {\n margin: 0;padding: 0;position: relative;vertical-align: middle\n}\n.shepherd-element .shepherd-content header .shepherd-title {\n color: ').concat(se.color,";display: flex;flex: 1 0 auto;\n font-size: ").concat(se.fontSize,"px;font-family: ").concat(se.fontFamily,";\n font-weight: ").concat("bold"!==se.fontStyle?"normal":se.fontStyle,";font-style: ").concat("italic"===se.fontStyle?"italic":"unset",";\n line-height: ").concat("default"===W?"26":"20",'px;letter-spacing:0.01em;padding: .7em;padding-bottom: 0px;max-width: 400px;\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link {\n color: hsla(0, 0%, 70.2%, .75);font-size: 2em;margin-left: auto;\n text-decoration: none;transition: color .5s ease\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link:before {\n mix-blend-mode: screen;content: "×"\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link:hover {\n mix-blend-mode: difference;\n}\n.shepherd-element .shepherd-content .shepherd-text {\n line-height: 1em;').concat("default"===W?"padding:14px;padding-top:4px":"","\n}\n.shepherd-element .shepherd-content .shepherd-text a,\n.shepherd-element .shepherd-content .shepherd-text a:active,\n.shepherd-element .shepherd-content .shepherd-text a:visited {\n border-bottom: 1px dotted rgba(0, 0, 0, .75);color: ").concat(oe.color,";\n opacity: 0.75;text-decoration: none\n}\n.shepherd-element .shepherd-content .shepherd-text a:active:hover, \n.shepherd-element .shepherd-content .shepherd-text a:hover,\n.shepherd-element .shepherd-content .shepherd-text a:visited:hover {\n border-bottom-style: solid\n}\n.shepherd-element .shepherd-content .shepherd-text p {\n margin-top: 0\n}\n.shepherd-element .shepherd-content .shepherd-text p:last-child {\n margin-bottom: 0\n}\n.shepherd-content > .shepherd-text p {\n font-size: ").concat(oe.fontSize,"px;font-family: ").concat(oe.fontFamily,"; \n font-weight: ").concat("bold"!==oe.fontStyle?"normal":oe.fontStyle,";\n font-style: ").concat("italic"===oe.fontStyle?"italic":"unset",";\n color: ").concat(oe.color,";line-height: ").concat("default"===W?"26":"20","px;letter-spacing:0.01em;\n}\n").concat(O(ne,f,".shepherd-element .shepherd-content "),"\n@-webkit-keyframes cycle {\n 0% { transform: ").concat(Gn(A,0),"; }\n 50% { transform: ").concat(Gn(A,50),"; }\n 100% { transform: ").concat(Gn(A,100),"; }\n}\n@keyframes cycle {\n 0% { transform: ").concat(Gn(A,0),"; }\n 50% { transform: ").concat(Gn(A,50),"; }\n 100% { transform: ").concat(Gn(A,100),"; }\n}\n.tippy-tooltip.apxor-").concat(J,"-step-").concat(K,"-theme {\n animation: ").concat(a.enabled?a.type+" 1000ms":"none",";\n animation-timing-function: ease-in-out;animation-iteration-count: infinite;\n box-shadow: ").concat(j?b:"none",";color: ").concat(oe.color,";\n opacity: ").concat(x,";border-radius: ").concat(le["border-radius"]+"px",";\n background-color: ").concat(le.background,";").concat(function(e){switch(e.toUpperCase()){case"TOP":return"top: -8px !important";case"LEFT":return"left: 0px !important";case"RIGHT":return"left: -0px !important";case"BOTTOM":return"top: 0px !important"}}(A),";\n}\n.apxor-").concat(J,"-step-").concat(K,"-theme .tippy-roundarrow {\n fill: ").concat(le.background,";\n}\n.tippy-tooltip[data-placement^='top'] .tippy-arrow {\n border-top-color: ").concat(le.background,";\n}\n.tippy-tooltip[data-placement^='bottom'] .tippy-arrow {\n border-bottom-color: ").concat(le.background,";\n}\n.tippy-tooltip[data-placement^='left'] .tippy-arrow {\n border-left-color: ").concat(le.background,";\n}\n.tippy-tooltip[data-placement^='right'] .tippy-arrow {\n border-right-color: ").concat(le.background,";\n}\n "),pe.appendChild(ue),de.parentNode.insertBefore(pe,de);var he=function(e){return function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;if(i)try{Yn.complete(),o&&e.logActionEvent("InlineTargetViewClicked",t,n)}catch(t){e.isShowingAction=!1,e.currentAction=null,console.error(t)}}(n,J,$,!0,k)},fe=function(){var e;try{var t;null===(t=Yn)||void 0===t||t.complete()}catch(e){console.error(e)}ve.disconnect(),ge.disconnect();try{var n,o=document.getElementById("apxor-style-"+J+"-step-"+K);null==o||null===(n=o.parentNode)||void 0===n||n.removeChild(o)}catch(e){}try{var r,a=document.getElementById("shepherdModalOverlayContainer");null==a||null===(r=a.parentNode)||void 0===r||r.removeChild(a)}catch(e){}i&&i(null===(e=Yn)||void 0===e?void 0:e._isCancelled),de.removeEventListener("click",he)},me=!1,ve=new MutationObserver((function(){if(!document.body.contains(de)){document.getElementById("shepherdModalOverlayContainer").remove();var e=document.getElementsByClassName("apxor-".concat(J,"-step-").concat(K,"-theme"));e.length>0&&e[0]&&e[0].parentNode&&e[0].parentNode.remove(),fe()}})),ge=new IntersectionObserver((function(){var e=M(de);if(!e&&me){document.getElementById("shepherdModalOverlayContainer").remove();var t=document.getElementsByClassName("apxor-".concat(J,"-step-").concat(K,"-theme"));t.length>0&&t[0]&&t[0].parentNode&&t[0].parentNode.remove(),fe()}e&&(me=!0)}));Yn.addStep("apxor-step-"+K,{title:"default"===W&&D&&D.text?D.text:null,text:ae,classes:"apxor-".concat(J,"-step-").concat(K,"-theme"),attachTo:{element:de,on:A.toLowerCase()},showCancelLink:H,buttons:te,tippyOptions:{allowHTML:!0,arrow:!0,flipOnUpdate:!0,interactive:!0,maxWidth:"100%",hideOnClick:_,theme:"apxor-".concat(J,"-step-").concat(K),onShow:function(){o&&o(),de.addEventListener("click",he),ve.observe(document.body,{childList:!0,subtree:!0}),ge.observe(de)},onHidden:fe}})}else console.warn("Element not found with id or path")},$n=function(e,t,n,o,i,r,a){var s,c,l=Array.isArray(t)&&t.length>0,d=e.delay,p=e.dim_background,u=e.view_id,h=e.find_interval,f=void 0===h?0:h,m=e.scrollToView,v=void 0!==m&&m;"Script"===(null===(s=e.title_config)||void 0===s?void 0:s.text)&&(e.title_config.isDynamicText?I(e.title_config):D(e.title_config)),"Script"===(null===(c=e.text_config)||void 0===c?void 0:c.text)&&(e.text_config.isDynamicText?I(e.text_config):D(e.text_config));var g=!1;v&&(g={behavior:"smooth",block:"center"}),Yn=new Zn.Tour({defaultStepOptions:{scrollTo:g},useModalOverlay:l||p});var b=function(){var e=document.getElementById(u);if(!e)try{e=document.querySelector(u)}catch(e){}return e||(e=T(u)),e},y=function(n){try{var s=n.getBoundingClientRect();if(0===s.width||0===s.height)return console.warn("Width and height are 0 for: ",u,". Can't show"),void(i.currentAction=null)}catch(e){return i.isShowingAction=!1,void(i.currentAction=null)}if(l?t.forEach((function(e,t){var n=e.ui;Jn(n,o,i,r,a)})):Jn(e,o,i,r,a),i.isShowingAction)window.ApxorLogger.error("An action already being shown");else try{Yn.start(),i.isShowingAction=!0}catch(e){i.isShowingAction=!1,i.currentAction=null,console.error(e)}};return setTimeout((function(){var e=b();e?y(e):(console.warn("Element with id:".concat(u," not found.")),f?(console.warn("Rechecking"),function(e){var t=new Date,n=setInterval((function(){var o=b();o?(clearInterval(n),y(o)):(new Date-t)/1e3>10&&(clearInterval(n),console.warn("Element with id:".concat(e," not found.")),i.currentAction=null)}),f)}(u)):i.currentAction=null)}),d),!0===n.auto_dismiss&&setTimeout((function(){try{Yn.complete()}catch(e){i.isShowingAction=!1,i.currentAction=null,console.error(e)}}),d+n.duration),Yn.complete};function eo(e){for(var t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=n.length,i=0;i<e;i++)t+=n.charAt(Math.floor(Math.random()*o));return t}var to=eo(10);function no(){return[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some((function(e){return navigator.userAgent.match(e)}))}function oo(e){var t=e.color,n=void 0===t?"#000":t,o=e.font_family,i=void 0===o?"cursive":o,r=e.margin_config,a=void 0===r?{}:r,s=e.size,c=void 0===s?14:s,l=e.style,d=void 0===l?"bold":l,p=e.text,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desc",h=document.createElement("span");h.setAttribute("id",to+"-"+u),h.className="apx-class-".concat(to,"-").concat(u);var f=document.createElement("style");return f.innerHTML="\n.apx-class-".concat(to,"-").concat(u," {\n z-index:99999;text-align:initial;color:").concat(n," !important;\n font-family:").concat(i," !important;font-size:").concat(c,"px !important;font-weight:").concat(d," !important;\n font-style:").concat("normal"===d||"italic"===d?d+" !important":"unset",";max-width:400px;\n}\n "),Object.keys(a).length>0&&(h.style.margin="".concat(a.top,"px ").concat(a.right,"px ").concat(a.bottom,"px ").concat(a.left,"px")),h.appendChild(f),h.innerHTML=h.innerHTML+p,h}function io(e,t,n,o,i,r){var a=Math.sqrt(Math.pow(e,2)+Math.pow(t,2)),s=a,c=n-(a-e)/2,l=o-(a-t)/2;"circle"!=i&&(a=e,s=t,c=n,l=o);var d=document.createElement("div");return d.setAttribute("id",to+"-ripple-div"),r&&(d.innerHTML=function(e,t,n){return"\n<style>\n.ripple-animator {\n position: relative;display: -webkit-box;display: flex;-webkit-box-orient: horizontal;\n -webkit-box-direction: normal;flex-direction: row;-webkit-box-pack: center;\n justify-content: center;-webkit-box-align: center;align-items: center;\n height: ".concat(n,"px !important;width: ").concat(t,"px !important;\n border-radius: ").concat("circle"===e?"100%":"0",";\n box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.25);\n}\n.ripple-animator span {\n position: relative;font-size: 72px;top: 5px;left: -5px;\n}\n.ripple-animator::before {\n opacity: 0;display: -webkit-box;display: flex;-webkit-box-orient: horizontal;\n -webkit-box-direction: normal;flex-direction: row;-webkit-box-pack: center;\n justify-content: center;-webkit-box-align: center;align-items: center;\n position: ").concat(no()?"unset":"absolute",";\n top: 0;left: 0;right: 0;bottom: 0;content: '';\n height: ").concat(no()?n-9:n,"px !important;width: ").concat(t,"px !important;\n border: 5px solid rgba(255, 255, 255, 0.7);border-radius: ").concat("circle"===e?"100%":"0",";\n -webkit-animation-name: ripple;animation-name: ripple;-webkit-animation-duration: 1.5s;\n animation-duration: 1.5s;-webkit-animation-delay: 0.3s;animation-delay: 0.3s;\n -webkit-animation-iteration-count: infinite;animation-iteration-count: infinite;\n -webkit-animation-timing-function: cubic-bezier(0.65, 0, 0.34, 1);\n animation-timing-function: cubic-bezier(0.65, 0, 0.34, 1);\n z-index: 99999;\n}\n@-webkit-keyframes ripple {\n from {opacity: 1;-webkit-transform: scale3d(1, 1, 1);transform: scale3d(1, 1, 1);}\n to {opacity: 0;-webkit-transform: scale3d(1.25, 1.25, 1);transform: scale3d(1.25, 1.25, 1);}\n}\n@keyframes ripple {\n from {opacity: 1;-webkit-transform: scale3d(1, 1, 1);transform: scale3d(1, 1, 1);}\n to {opacity: 0;-webkit-transform: scale3d(1.25, 1.25, 1);transform: scale3d(1.25, 1.25, 1);}\n}\n</style>")}(i,a,s)),d.style.position="absolute",d.style.width="".concat(a,"px"),d.style.height="".concat(s,"px"),d.style.left="".concat(c,"px"),d.style.top="".concat(l,"px"),d.classList.add("ripple-animator"),d.style.borderRadius="".concat("circle"===i?"50%":"0"),d.style.visibility="hidden",document.body.appendChild(d),d}function ro(e,t){return'\n <svg\n height="'.concat(document.scrollingElement.scrollHeight,'" \n width="').concat(document.scrollingElement.scrollWidth,'"\n class="apx-fade-in">\n <defs>\n <mask\n id="apx-mask"\n x="0"\n y="0"\n height="').concat(document.scrollingElement.scrollHeight,'" \n width="').concat(document.scrollingElement.scrollWidth,'">\n ').concat(e,"\n </mask>\n </defs>\n ").concat(t,"\n </svg>\n ")}function ao(e){var t=e.opacity,n=e.type,o=document.createElement("div");o.setAttribute("id",to+"-svg"),o.style.position="absolute",o.style.left=0,o.style.top=0,o.style.zIndex=99998,o.style.width="100%",o.style.height="99%";var i="";return i="circle"===n?function(e){var t=e.bg_color,n=e.opacity,o=e.innerRadius,i=e.innerCenterX,r=e.innerCenterY,a=e.outerRadius,s=e.outerCircleCenterX,c=e.outerCircleCenterY;return ro('\n <rect\n x="'.concat(s-a,'"\n y="').concat(c-a<0?0:c-a,'"\n height="').concat(2*a,'"\n width="').concat(2*a,'"\n fill="#fff" />\n <circle\n cx="').concat(i,'"\n cy="').concat(r,'"\n r="').concat(o,'" />\n '),'\n <circle\n cx="'.concat(s,'" \n cy="').concat(c,'" \n r="').concat(a,'" \n fill="').concat(t,'" \n fill-opacity="').concat(n,'"\n mask="url(').concat(location.href,'#apx-mask)" />\n '))}(e):function(e){var t=e.bg_color,n=e.opacity,o=e.targetElementLeft,i=e.targetElementTop,r=e.targetElementWidth,a=e.targetElementHeight;return ro('\n <rect\n x="0" y="0"\n height="'.concat(document.scrollingElement.scrollHeight,'" \n width="').concat(document.scrollingElement.scrollWidth,'" \n fill="#fff" />\n <rect\n x="').concat(o,'" \n y="').concat(i,'" \n width="').concat(r,'" \n height="').concat(a,'" />\n '),'\n <rect\n x="0" y="0"\n height="'.concat(document.scrollingElement.scrollHeight,'" \n width="').concat(document.scrollingElement.scrollWidth,'" \n mask="url(').concat(location.href,'#apx-mask)"\n fill="').concat(t,'" \n fill-opacity="').concat(n,'" />\n '))}(e),o.innerHTML="\n <style>\n @keyframes apx-anim {\n from {\n opacity: 0;\n }\n\n to {\n opacity: ".concat(t,";\n }\n }\n .apx-fade-in {\n animation: apx-anim 0.4s linear;\n }\n </style>\n ").concat(i),document.body.appendChild(o),o}function so(e,t,n,o,i){var r,a,s=e.bg_color,c=e.buttons_config,l=void 0===c?[]:c,d=e.button_position,p=e.coach_mark_details,u=p.has_ripple,h=void 0!==u&&u,f=p.type,m=void 0===f?"circle":f,v=e.delay,g=e.dismiss_outside_touch,b=void 0!==g&&g,y=e.opacity,x=void 0===y?.8:y,w=e.position,_=void 0===w?"TOP":w,E=e.text_config,k=e.title_config,A=void 0===k?null:k,S=e.view_id,N=e.scroll_to_view,P=void 0!==N&&N,B=t.configId,j=t.configName;"Script"===(null===(r=e.title_config)||void 0===r?void 0:r.text)&&(e.title_config.isDynamicText?I(e.title_config):D(e.title_config)),"Script"===(null===(a=e.text_config)||void 0===a?void 0:a.text)&&(e.text_config.isDynamicText?I(e.text_config):D(e.text_config));var F=document.getElementById(S);if(!F)try{F=document.querySelector(S)}catch(e){}if(F||(F=T(S)),F)if(to=eo(10),P||M(F)){var H=!1,z=new MutationObserver((function(){document.body.contains(F)||J()})),q=new IntersectionObserver((function(){var e=M(F);!e&&H&&J(),e&&(H=!0)})),R=function(e){var t=e.getBoundingClientRect(),n=t.left+window.scrollX,o=t.top+window.scrollY;return{left:n,top:o,right:t.right+window.scrollX,bottom:t.bottom+window.scrollY,x:C(t.x)?t.x+window.scrollX:n,y:C(t.y)?t.y+window.scrollY:o,width:t.width,height:t.height}}(F),V=R.left,U=void 0===V?0:V,W=R.top,Y=void 0===W?0:W,X=R.width,Z=void 0===X?0:X,K=R.height,Q=void 0===K?0:K,G=R.left<window.innerWidth/2;if(0!==Q&&0!==Z){var J=function(){z.disconnect(),q.disconnect(),ve.parentNode.removeChild(ve),$.parentNode.removeChild($),ie.parentNode.removeChild(ie),i&&i(),ge&&clearTimeout(ge)},$=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=null;if(!t&&e?s=oo(e):t&&e&&((s=document.createElement("div")).style.display="inline-flex",s.style.flexDirection="column",s.style.visibility="hidden",s.style.textAlign="center",s.style.lineHeight="26px",s.style.letterSpacing="0.01em",s.appendChild(oo(t)),s.appendChild(oo(e))),n&&n.length>0){var c=document.createElement("footer");c.className="shepherd-footer",c.style.zIndex=99999,c.style.margin="8px",c.style.padding="0";var l=function(){a&&a()},d=L(n,{next:l,complete:l,cancel:l},i,r),p=d.buttons_array,u=d.buttons_css,h=document.createElement("style");h.innerHTML=O(u,o),c.appendChild(h),p.forEach((function(e){var t=e.classes,n=e.text,o=e.action,i=document.createElement("button");i.className="shepherd-button "+t,i.innerText=n,i.onclick=function(){return o()},c.appendChild(i)}));var f=document.createElement("div");f.style.display="inline-flex",f.style.flexDirection="column",f.style.visibility="hidden",f.appendChild(s),f.appendChild(c),s=f}return s.style.position="absolute",document.body.appendChild(s),s}(E,A,l,d,B,j,J),ee=$.offsetWidth,te=$.offsetHeight,ne=0,oe=0;E&&E.margin_config&&(ne=Number(E.margin_config.left)||0,oe=Number(E.margin_config.right)||0);var ie=io(Z,Q,U,Y,m,h),re=U+Z/2,ae=Y+Q/2,se=Math.sqrt(Math.pow(Z,2)+Math.pow(Q,2))/2,ce=se+Math.max(ee,Z)/2+10,le=-1,de=-1,pe=-1,ue=-1,he=ae-se,fe=ae+se;switch(_){case"TOP":de=(pe=re-ee/2)<0?5:pe,le="circle"===m?ae-se-te-25:Y-te-25,ue=fe-Math.abs(fe-le)/2;break;case"BOTTOM":case"RIGHT":case"LEFT":de=(pe=re-ee/2)<0?5:pe,ue=he+((le="circle"===m?ae+se+25:Y+Q+25)+te-he)/2}if(-1!==de&&-1!==le&&-1!==ue){!G&&de+ee>window.innerWidth&&(de=window.innerWidth-ee-ne-oe-10),$.style.left="".concat(de,"px"),$.style.top="".concat(le,"px");var me=((pe=Math.min(U,de))+Math.max(U+Z,de+ee))/2;(me=Math.min(me,document.scrollingElement.scrollWidth))<0&&(me=0),(ue=Math.min(ue,document.scrollingElement.scrollHeight))<0&&(ue=0);var ve=ao({bg_color:s,opacity:x,innerRadius:se,innerCenterX:re,innerCenterY:ae,outerRadius:ce,outerCircleCenterX:me,outerCircleCenterY:ue,targetElementLeft:U,targetElementTop:Y,targetElementWidth:Z,targetElementHeight:Q,type:m});ve.style.visibility="hidden",ie.style.visibility="hidden",$.style.visibility="hidden";var ge=null,be=function(e){var t=!e,n=F.getBoundingClientRect();e&&e.clientX>=n.left&&e.clientX<=n.left+n.width&&e.clientY>=n.top&&e.clientY<=n.top+n.height&&(t=!0),(b||t)&&J()};return n&&!0===n.auto_dismiss&&(ge=setTimeout((function(){return be()}),v+n.duration)),ve.style.visibility="visible",ie.style.visibility="visible",$.style.visibility="visible",$.childElementCount>0&&($.children[0].style.visibility="visible"),b&&ve.addEventListener("click",be),ie.addEventListener("click",be),P&&("TOP"===_?window.scrollTo({top:ue-ce,behavior:"smooth"}):"BOTTOM"===_&&window.scrollTo({top:Math.min(document.scrollingElement.scrollHeight,ue+ce),behavior:"smooth"})),z.observe(document.body,{childList:!0,subtree:!0}),q.observe(F),o&&o(),be}console.warn("Failed to identify the right place for text")}else console.warn("Can't show on an invisible element: ",S)}else console.warn("Element ",S," not in viewport. Can't show");else console.warn("Element not found with id or path: ",S)}var co=function(e,t,n,o){var i=o.dim_background,r=o.dim_bg_color,a=o.dim_bg_opacity,s=o.position,c=document.createElement("div");c.setAttribute("id","apx-oly");var l=document.createElement("style"),d="center",p="center";switch(s){case"bottom-left":d="flex-start",p="flex-end";break;case"bottom-right":d="flex-end",p="flex-end";break;case"top-left":d="flex-start",p="flex-start";break;case"top-right":d="flex-end",p="flex-start"}var u="none";if(i){var h=function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,o){return t+t+n+n+o+o}));var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}(r);u="rgb(".concat(h.r,", ").concat(h.g,", ").concat(h.b,", ").concat(a,")")}l.innerHTML="\n#apx-oly {\n width:100%;height:100%;position:fixed;top:0;left:0;background-color:".concat(u,";\n display:flex;justify-content:").concat(d,";align-items:").concat(p,";border-radius:3px;z-index:99999999\n}\n#apx-oly > * {font-family: inherit;box-sizing:unset}\n.apx-dlg-c {\n width:").concat(e,"px;min-height:").concat(t,"%;background:white;z-index:99999999;opacity:0;position:relative;visibility:hidden;\n transition:all 500ms cubic-bezier(0, -0.37, 0, 2.06);top:-15px;border-radius:3px;margin:20px\n}\n.apx-dlg-c.open {opacity:1;visibility:visible;top:0}\n ").replaceAll("\n","").replace(/[\s]{2,999}/g,"");var f=document.createElement("div");return f.setAttribute("id","apx-dlg-c"),f.classList.add("apx-dlg-c"),c.appendChild(f),c.appendChild(l),c.on_dismiss=n,document.body.appendChild(c),c},lo=function(e){return"\n .apx-ta:focus {\n border: none;\n outline: none;\n }\n .apx-ta::placeholder {\n color: ".concat(e,";\n opacity: 0.5;\n }\n ")},po=function(e,t){var n=e.answerMode,o=e.choices,i=void 0===o?[]:o,r=e.text_answer,a=void 0===r?"":r,s=e.selected_rating,c=void 0===s?-1:s,l=!0;n===g||n===v?l=-1!==i.findIndex((function(e){return!0===e.is_selected})):n===y?l=a.length>0:n===b&&(l=c>0);l?(t.className="apx-ba",t.disabled=!1):(t.className="apx-bi",t.disabled=!0)},uo=function(e){var t=e.maximum_characters,n=e.background_color,o=e.placeholder,i=e.text_color,r=document.createElement("textarea");return r.style="padding-top:4px;padding-left:4px;font-zie:14px;width:98%;height:100px;margin-top:8px;border:none;resize:none;background:".concat(n,";color:").concat(i),r.className="apx-ta",r.setAttribute("placeholder",o),r.setAttribute("maxlength",t),r},ho=function(e,t,n){var o=t.question_text_color,i=t.question_background_color,r=t.option_bg_color_active,a=t.option_bg_color_inactive,s=t.option_text_color_active,c=t.option_text_color_inactive,l=t.option_bg_type,d=e.answerMode,p=e.choices,u=void 0===p?[]:p,h=e.rating,f=void 0===h?{rating_type:"classic",bg_color:"#D9DCDE",selected_bg_color:"#109B15"}:h,m=e.rating_scale,x=void 0===m?5:m,C=e.selected_rating,T=void 0===C?-1:C,A=e.text_answer,O=void 0===A?"":A,L=e.text_config?e.text_config:{maximum_characters:150,background_color:"#ccc",placeholder:"",text_color:"#000",placeholder_text_color:"#00000087"},S=!1,M=[];if(d===v||d===g){var N=uo(L);N.style.visibility="hidden";var I=function(e,t){e.style.color=t?s:c},D=function(e,t){var n=t?r:a;"filled"===l?e.style.background=n:"outline"===l&&(e.style.borderColor=n)};u.forEach((function(t,o){var i=document.createElement("label");i.className="apx-lc",i.innerText=t.value;var r=document.createElement("input");r.name=r.type=d===v?"radio":"checkbox",r.checked=t.is_selected;var a=document.createElement("span");a.className="apx-i",i.appendChild(r),i.appendChild(a),D(i,t.is_selected),I(i,t.is_selected),t.is_other&&(S=!0,N.addEventListener("input",(function(e){t.other_answer=e.target.value}))),t.is_selected&&t.is_other&&(N.style.visibility="visible",t.other_answer&&(N.value=t.other_answer)),d===g?r.onchange=function(o){var r=o.target.checked;t.is_selected=r,I(i,r),D(i,r),t.is_other&&(N.style.visibility=r?"visible":"hidden"),po(e,n)}:(r.setAttribute("apx-key","radio"),r.setAttribute("apx-ci",o+""),r.onchange=function(){document.querySelectorAll('input[apx-key="radio"]').forEach((function(e,n){var o=e.checked;u[n].is_selected=o,I(e.parentNode,o),D(e.parentNode,o),t.is_other&&(N.style.visibility=o?"visible":"hidden")})),po(e,n)}),M.push(i)})),S&&M.push(N)}else if(d===y&&null!==L){var P=L.example,B=L.example_text_color;if(""!==P&&""!==P.trim()){var j=document.createElement("span");j.innerHTML="Example: "+P,j.style.color=B,j.style.marginTop="12px",j.style.fontFamily="inherit",j.style.fontSize="15px",M.push(j)}var F=uo(L);F.addEventListener("input",(function(t){e.text_answer=t.target.value,t.target.value&&t.target.value.length>0&&(e.is_answered=!0),po(e,n)})),""!==O&&""!==O.trim()&&(F.innerText=O),M.push(F)}else if(d===b){var H=f.rating_type,z=f.bg_color,q=f.selected_bg_color,R=document.createElement("div");R.style="display:flex;flex-wrap:wrap;justify-content:space-evenly;gap:5px;padding-top:8px;padding-bottom:8px;overflow:hidden";var V="",U=[],W="",Y="cursor:pointer;font-size:30px;width:40px;height:40px;";if("classic"===H)U=5==x?_:w,V="opacity:1 !important;",W="".concat(Y,"padding-right:7px;padding-top:4px;padding-bottom:2px;border-radius:50%;background:transparent;opacity:0.5;filter:drop-shadow(0px 0.586957px 1.76087px rgba(0, 0, 0, 0.11))");else if("duplicate"===H)U=["&#128544;","&#128577;","&#128528;","&#128512;","&#129321;"],V="filter:grayscale(0%) !important",W="".concat(Y,"filter:grayscale(100%)");else if("star"===H){for(var X=0;X<x;X++)U.push("&#11088;");V="filter:grayscale(0%) !important",W="".concat(Y,"filter:grayscale(100%)")}else U=5==x?["1","2","3","4","5"]:["1","2","3","4","5","6","7","8","9","10"],V="background:".concat(q," !important;color:white !important;"),W="display:flex;justify-content:center;align-items:center;color:#646A6E;font-size:20px;width:40px;height:40px;background-color:".concat(z,";box-shadow:0px 0.54801px 1.64403px 0.54801px rgba(0, 0, 0, 0.11)"),R.style.marginTop="12px";var Z=document.createElement("style"),K="";(5==x?E:k).forEach((function(e,t){K+=".apx-rsel-".concat(t,"{\n background:").concat(e,"!important;\n color:white !important;\n }")})),Z.innerHTML=".apx-rsel{".concat(V,"}")+K+".apx-r{".concat(W,"}\n "),R.appendChild(Z);for(var Q=function(e){return"star"!==H?e+1===T:e+1<=T},G=[],J=0;J<x;J++){var $=document.createElement("div");$.innerHTML="".concat("num"===H?"":"&nbsp;").concat(U[J]),Q(J)&&$.classList.add("apx-rsel"),$.classList.add("apx-r"),G.push($)}G.forEach((function(t,o){t.addEventListener("click",(function(){if(e.selected_rating=o+1,"number"===H?t.classList.add("apx-rsel-".concat(o)):t.classList.add("apx-rsel"),e.is_answered=!0,po(e,n),"number"===H){for(var i=0;i<o;i++)G[i].classList.remove("apx-rsel-".concat(i));for(var r=o+1;r<x;r++)G[r].classList.remove("apx-rsel-".concat(r))}else if("star"===H){for(var a=0;a<o+1;a++)G[a].classList.add("apx-rsel");for(var s=o+1;s<x;s++)G[s].classList.remove("apx-rsel")}else{for(var c=0;c<o;c++)G[c].classList.remove("apx-rsel");for(var l=o+1;l<x;l++)G[l].classList.remove("apx-rsel")}})),R.appendChild(t)})),M.push(R)}var ee=document.createElement("div");ee.style.padding="14px",ee.style.display="flex",ee.style.flexDirection="column",ee.style.minHeight="340px";var te=document.createElement("style"),ne="";d===y?ne=lo(L.placeholder_text_color):d!==v&&d!==g||(ne=function(e,t,n,o,i,r){return"\n .apx-lc {\n display: block;\n position: relative;\n background: ".concat("outline"===r?"unset":"filled"===r?n:"unset",";\n border: ").concat("outline"===r?"1px solid "+n:"filled"===r?n:"unset",";\n padding: ").concat("none"!==r?"10px 10px 10px 35px":"0px 0px 0px 35px",";\n margin-bottom: 12px;\n font-family: inherit;\n top: 10px;\n cursor: pointer;\n font-size: 18px;\n color: ").concat(i,";\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n .apx-lc input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n width: 0;\n height: 0;\n }\n\n .apx-i {\n position: absolute;\n left: 6px;\n height: 14px;\n width: 14px;\n border: 1px solid ").concat(i,";\n background-color: white;\n border-radius: ").concat(e===v?"50%":0,";\n }\n\n .apx-lc:hover input ~ .apx-i {\n border: 1px solid ").concat(o,";\n }\n\n .apx-lc input:checked ~ .apx-i {\n background-color: ").concat(t,";\n border: 1px solid ").concat(o,';\n }\n\n .apx-i:after {\n content: "";\n position: absolute;\n display: none;\n }\n\n .apx-lc input:checked ~ .apx-i:after {\n display: block;\n }\n\n .apx-lc .apx-i:after {\n top: ').concat(e===v?2:1,"px;\n left: ").concat(e===v?2:4,"px;\n width: ").concat(e===v?10:4,"px;\n height: ").concat(e===v?10:8,"px;\n border-radius: ").concat(e===v?"50%":"0",";\n background: ").concat(e===v?o:"transparent",";\n border: ").concat(e===v?"none":"solid white",";\n border-width: ").concat(e===v?"unset":"0 3px 3px 0",";\n -webkit-transform: ").concat(e===v?"unset":"rotate(45deg)",";\n -ms-transform: ").concat(e===v?"unset":"rotate(45deg)",";\n transform: ").concat(e===v?"unset":"rotate(45deg)",";\n }\n ")}(d,r,a,s,c,l),S&&(ne+=lo(L.placeholder_text_color))),te.innerHTML=ne.replaceAll("\n","").replace(/[\s]{2,999}/g,""),ee.appendChild(te);var oe=document.createElement("span");return oe.innerText=e.title,oe.style="margin-bottom:12px;color:".concat(o,";background-color:").concat(i,";font-size:16px;font-weight:600"),ee.appendChild(oe),M.forEach((function(e){return ee.appendChild(e)})),ee},fo=function(e,t,n,o,i,r){var a=function(e,t,n,o){var i=e.cancel_button_color,r=e.previous_button_color,a=document.createElement("button"),s=document.createElement("button");a.disabled=0===t,a.setAttribute("type","button"),a.className="apx-b apx-pr",a.innerHTML="<style>.apx-pr::before{content:'\\2190';font-size:22px;color:".concat(r).concat(0===t?"54":"",";}.apx-pr{cursor:").concat(0===t?"no-drop":"pointer",";margin-top:-6px}</style>"),s.className="apx-b apx-cb",s.setAttribute("type","button"),s.innerHTML="<style>.apx-cb::before{content:'\\0000d7';font-size:26px;color:".concat(i,";}</style>");var c=document.createElement("div");c.style="display:flex;justify-content:space-between;align-items:center;padding:8px;padding-bottom:0";var l=document.createElement("span");return l.style="font-size:14px;color:#000;opacity:0.3;letter-spacing:0.005em;line-height:12px",l.innerText=o?"":"".concat(t+1,"/").concat(n),c.appendChild(a),c.appendChild(l),c.appendChild(s),{prevButton:a,closeButton:s,headerNode:c}}(e,o,i,r),s=a.headerNode,c=a.prevButton,l=a.closeButton,d=function(e,t,n,o,i){var r=e.skip_text_color,a=e.submit_text_color,s=e.submit_active_color,c=e.submit_inactive_color,l=n===o-1||i?null:document.createElement("button");l&&(l.innerText="Skip",l.className="apx-b",l.style="font-size:14px;font-weight:600;opacity:1;font-style:inherit;color:".concat(r,";background-color:transparent;margin:0px 12px"));var d=document.createElement("button");d.innerHTML="".concat(n===o-1?"Submit":"Next >","<style>.apx-ba{background-color:").concat(s,";cursor:pointer}.apx-bi{background-color:").concat(c,";cursor:no-drop}</style>"),d.style="border:none;border-radius:2px;color:".concat(a,";padding:8px 15px;font-family:inherit"),po(t,d);var p=document.createElement("div");return p.style="padding:14px;display:flex;justify-content:flex-end",l&&p.appendChild(l),p.appendChild(d),{footerNode:p,skipButton:l,submitButton:d}}(e,n,o,i,n.is_required),p=d.skipButton,u=d.submitButton,h=d.footerNode,f=ho(n,t,u),m=document.createElement("div");m.className="apx-sq";var v=document.createElement("style");return v.innerHTML=".apx-sq > * {font-family:inherit;}.apx-sq {height:100%;width:100%;display:flex;flex-direction:column}.apx-b{border:none;background:none;opacity:1;cursor:pointer;font-family:inherit}",m.appendChild(v),m.appendChild(s),m.appendChild(f),{questionRoot:m,footerNode:h,prevButton:c,closeButton:l,skipButton:p,submitButton:u}},mo=window.ApxorLogger,vo=c((function e(t){var n=this;a(this,e),l(this,"XVMk",(function(){n.is_selected=!1,n.other_answer=null}));var o=t.id,i=t.value,r=t.is_other,s=t.next_question_id;if(!o||!i)throw new Error("Invalid Choice");this.id=o,this.value=i,this.is_other=r,this.next_question_id=s,this.is_selected=!1,this.other_answer=null})),go=c((function e(t){var n=this;a(this,e),l(this,"XVMk",(function(){n.is_answered=!1,n.text_answer="",n.selected_rating=-1,n.choices.forEach((function(e){return e.XVMk()}))}));var o=t.id,i=t.answer_mode,r=t.title,s=t.is_required,c=t.submit_text,d=t.choices,u=void 0===d?[]:d,h=t.text_config,f=void 0===h?null:h,m=t.randomize_choices,x=void 0!==m&&m,w=t.response_cfg,_=void 0===w?{}:w;if(!o||!i)throw new Error("Invalid question");var E=-1;switch(i){case"single_choice":E=v;break;case"multi_choice":E=g;break;case"text":E=y;break;case"rating":E=b;break;default:E=-1}if(this.answerMode=E,this.id=o,this.is_required=s,this.submit_text=c,this.randomize_choices=x,this.response_cfg=_,this.text_config=f,this.title=r,this.is_answered=!1,this.selected_rating=-1,this.choices=[],this.answerMode===v||this.answerMode===g){for(var k,C=[],T=0;T<u.length;T++){var A=new vo(u[T]);A.is_other?C.push(A):this.choices.push(A)}x&&(this.choices=p(this.choices).map((function(e,t,n){var o=t+Math.floor(Math.random()*(n.length-t)),i=[n[t],n[o]];return n[o]=i[0],n[t]=i[1],n[t]}))),(k=this.choices).push.apply(k,C)}})),bo=c((function e(){var n=this;a(this,e),l(this,"initialize",(function(e,t,o){var i=o.delay,r=o.dialog_config,a=void 0===r?null:r,s=o.show_progress_bar,c=void 0===s||s,l=o.is_response_based_survey,d=void 0!==l&&l,p=o.questions,u=void 0===p?[]:p,h=o.show_success_message,f=void 0===h||h,m=o.auto_hide_message,v=void 0===m?2e3:m,g=o.success_message,b=void 0===g?"":g,y=o.question_text_color,x=void 0===y?"#002845":y,w=o.submit_active_color,_=void 0===w?"#017DFD":w,E=o.submit_inactive_color,k=void 0===E?"#017DFD65":E,C=o.option_bg_type,T=void 0===C?"filled":C,A=o.option_text_color_active,O=void 0===A?"#002845":A,L=o.option_text_color_inactive,S=void 0===L?"#002845":L,M=o.option_bg_color_active,N=void 0===M?"#FFF":M,I=o.option_bg_color_inactive,D=void 0===I?"#FFF":I,P=o.question_background_color,B=void 0===P?"#FFF":P,j=o.success_message_bg_color,F=void 0===j?"#109B15":j,H=o.success_message_icon_color,z=void 0===H?"#109B15":H,q=o.success_message_text_color,R=void 0===q?"#002845":q,V=o.skip_text_color,U=void 0===V?"#017DFD":V,W=o.cancel_button_color,Y=void 0===W?"#000":W,X=o.previous_button_color,Z=void 0===X?"#000":X,K=o.progress_bar_color,Q=void 0===K?"#017DFD":K,G=o.submit_text_color,J=void 0===G?"#FFF":G,$=o.width,ee=void 0===$?350:$,te=o.min_height,ne=void 0===te?40:te,oe=o.position,ie=void 0===oe?"center":oe,re=o.dim_background,ae=void 0===re||re,se=o.dim_bg_color,ce=void 0===se?"#313131":se,le=o.dim_bg_opacity,de=void 0===le?.54:le;n.configId=e,n.name=t,n.delay=i,n.is_response_based_survey=d,n.show_success_message=f,n.success_message=b,n.auto_hide_message=v,n.questions=[],n.displayedQuestionIndeces=[],n.answered_questions=[],n.width=ee,n.min_height=ne,n.layoutConfig={show_progress_bar:c,skip_text_color:U,cancel_button_color:Y,previous_button_color:Z,progress_bar_color:Q,submit_text_color:J,submit_active_color:_,submit_inactive_color:k,success_message_bg_color:F,success_message_icon_color:z,success_message_text_color:R,position:ie,dim_background:ae,dim_bg_color:ce,dim_bg_opacity:de},n.questionConfig={question_text_color:x,question_background_color:B,option_bg_color_active:N,option_bg_color_inactive:D,option_text_color_active:O,option_text_color_inactive:S,option_bg_type:T},a&&(n.dialog_config=a);for(var pe=0;pe<u.length;pe++)try{if("request_survey"===u[pe].answer_mode||"success_message"===u[pe].answer_mode)continue;n.questions.push(new go(u[pe])),n.answered_questions.push(-1)}catch(e){return mo.error("Failed to parse Q",pe,e),!1}return!(n.questions.length<1)||(n.isValid=!1,!1)})),l(this,"XtMo",(function(e,t){n.isValid&&setTimeout((function(){try{var o=window.ApxorRTM;if(null!==o.currentAction&&void 0!==o.currentAction)return void mo.error("An action is already being shown.");n.startTime=Date.now();var i=co(n.width,n.min_height,t,n.layoutConfig);if(n.bodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden",n.NMFb("apx_survey_launched"),n.dialog_config){var r=n.dialog_config,a=r.icon_name,s=void 0===a?"":a,c=r.icon_width,l=r.icon_height,d=i.children[0];i.style.visibility="hidden",d.style.visibility="hidden",setTimeout((function(){d.innerHTML=function(e){var t,n,o,i=e.icon_name,r=void 0===i?"":i,a=e.title,s=void 0===a?"Some dummy title":a,c=e.yes_text,l=void 0===c?"Yes":c,d=e.icon_width,p=void 0===d?180:d,u=e.icon_height,h=void 0===u?100:u,f=e.no_text,m=void 0===f?"No, thanks":f,v=e.dialog_background_color,g=void 0===v?"#FFF":v,b=e.title_color,y=void 0===b?"#3C3C3C":b,x=e.yes_button_bg_color,w=void 0===x?"#017DFD":x,_=(e.no_button_bg_color,e.yes_button_text_color),E=void 0===_?"#FFF":_,k=e.no_button_text_color,C=void 0===k?"#017DFD":k,T=(e.hide_close_button,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:12,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;return"line-height:20px;letter-spacing:0.005em;font-size:".concat(e,"px;font-weight:").concat(t,";")});return'\n <div style="display:flex;flex-direction:column;height:100%;width:100%;background-color:'.concat(g,';align-items:center;margin-top:20px;border-radius:3px">\n ').concat((t=r,n=p,o=h,t&&""!==t&&0!==n&&0!==o?'<img id="apx_icon" src="'.concat(t,'" style="width:').concat(n,"px;height:").concat(o,'px;">'):""),'<span style="').concat(T(16,600),"text-align:center;color:").concat(y,';margin:12px 0px;">').concat(s,'</span>\n <button id="').concat("apx-dy",'" style="').concat(T(14,500),"color:").concat(E,";background-color:").concat(w,';border-radius:2px;border:none;padding:8px 20px;margin-bottom:10px;cursor:pointer">').concat(l,'</button>\n <button id="').concat("apx-dn",'" style="').concat(T(14,500),"color:").concat(C,';background:none;border:none;cursor:pointer;margin-bottom:20px">').concat(m,"</button>\n </div>\n ")}(n.dialog_config),document.getElementById("apx-dy").onclick=function(){n.NMFb("apx_survey_dialog_yes_clicked"),d.style.minHeight=n.min_height+"%",n.MxCk(i,!0)},document.getElementById("apx-dn").onclick=function(){n.NMFb("apx_survey_dialog_no_clicked"),n.QmKV(i)};var e=function(){i.style.visibility="visible",d.style.visibility="visible",d.style.minHeight=""===s||0===c||0===l?"13%":"25%",d.classList.toggle("open"),n.NMFb("apx_survey_dialog_launched")};if(""!==s&&c>0&&l>0){var t=document.getElementById("apx_icon");t.onload=function(){e()},t.onerror=function(){n.NMFb("apx_survey_dialog_icon_failed"),n.QmKV(i)}}else e()}),100)}else n.MxCk(i);e&&e((function(){return n.QmKV(i)}))}catch(e){mo.error(e)}}),n.delay)})),l(this,"MxCk",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=n.layoutConfig,i=o.show_progress_bar,r=o.progress_bar_color,a=document.createElement("div");a.style="height:4px;overflow:hidden;position:relative;margin-bottom:10px;";var s=document.createElement("div");s.setAttribute("id","apx-pb"),s.style="border-radius:10px;top:0;left:0;width:100%;bottom:0;position:absolute;transition:transform 0.4s linear;transform-origin:left;background-color:".concat(r),a.appendChild(s),i||(a.style.visibility="hidden");var c=e.children[0];(t||c&&c.childElementCount>1)&&c.removeChild(c.children[c.childElementCount-1]),c.appendChild(a),n.WMdE(e,0),t||setTimeout((function(){e.children[0].classList.toggle("open")}),100)})),l(this,"kxle",(function(e){if(-1==e||!e)return-1;var t=n.questions.length;if(t>0)for(var o=0;o<t;o++)if(n.questions[o].id==e)return o;return-1})),l(this,"ZjOB",(function(e,t){var o=e.answerMode,i=e.choices,r=void 0===i?[]:i;switch(o){case b:var a=null==e?void 0:e.response_cfg[(null==e?void 0:e.selected_rating)||11];a?t=n.kxle(a):t+=1;break;case v:var s;if(r.forEach((function(e){e.is_selected&&(s=e)})),s){var c=s.next_question_id;t=n.kxle(c)}else t+=1;break;case g:case y:default:t+=1}return t})),l(this,"WMdE",(function(e,t){if(!(t>=n.questions.length)){var o=n.questions[t],i=fo(n.layoutConfig,n.questionConfig,o,t,n.questions.length,n.is_response_based_survey),r=i.prevButton,a=void 0===r?null:r,s=i.closeButton,c=void 0===s?null:s,l=i.submitButton,d=void 0===l?null:l,p=i.skipButton,u=void 0===p?null:p,h=i.questionRoot,f=i.footerNode,m=e.children[0];m&&m.childElementCount>2&&(m.removeChild(m.children[m.childElementCount-1]),m.removeChild(m.children[m.childElementCount-1])),document.getElementById("apx-pb").style.transform="translateX(".concat(-(100-100/n.questions.length*(t+1)),"%)"),m.appendChild(h),m.appendChild(f),a&&(a.onclick=function(){n.KVRU(t);var o=n.displayedQuestionIndeces.pop();void 0!==o&&n.WMdE(e,o)}),c&&c.addEventListener("click",(function(){n.NMFb("apx_survey_close_clicked",{where:"question "+(t+1)}),n.KVRU(t),n.wHLe(e,!1)})),d&&(d.onclick=function(){if(n.displayedQuestionIndeces.push(t),n.is_response_based_survey){n.KVRU(t);var i=n.ZjOB(o,t);i===n.questions.length||-1===i?n.wHLe(e,!0):n.WMdE(e,i)}else n.KVRU(t),t===n.questions.length-1?n.wHLe(e,!0):n.WMdE(e,t+1)}),u&&(u.onclick=function(){n.displayedQuestionIndeces.push(t),t+1>=n.questions.length||(n.NMFb("apx_survey_skip_clicked",{where:"question "+(t+1)}),n.KVRU(t),n.WMdE(e,t+1))})}})),l(this,"KVRU",(function(e){if(-1===n.answered_questions[e]){var t=n.LdjY(e);t.answers.length>0&&(n.NMFb("apx_survey_".concat(n.questions[e].title),{answers:t.answerTexts}),n.answered_questions[e]=1)}})),l(this,"NMFb",(function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.logEvent(e,i({survey_id:n.configId,name:n.name},o))})),l(this,"LdjY",(function(e){var t=n.questions[e];if(!t)return null;var o={answers:[],answerTexts:[],others:[],textBasedQuestionAnswers:[]},i=t.answerMode,r=t.choices,a=void 0===r?[]:r,s=t.selected_rating,c=void 0===s?-1:s,l=t.text_answer,d=void 0===l?"":l,p=t.is_answered,u=void 0!==p&&p,h=t.text_config,f=void 0===h?null:h;switch(i){case v:case g:a.forEach((function(e){e.is_selected&&(o.answers.push(e.id),o.answerTexts.push(e.value),e.is_other&&null!==e.other_answer&&""!==e.other_answer.trim()&&o.others.push({id:e.id,answer:e.other_answer}))}));break;case y:u&&""!==d&&""!==d.trim()&&null!==f&&(o.answers.push(f.id),o.answerTexts.push(d),o.textBasedQuestionAnswers.push({id:f.id,answer:d}));break;case b:-1!==c&&(o.answers.push(c),o.answerTexts.push(c))}return o})),l(this,"QmKV",(function(e){e.on_dismiss&&e.on_dismiss(),e.children[0].classList.toggle("open"),setTimeout((function(){e.parentNode.removeChild(e),document.body.style.overflow=n.bodyOverflow,n.bodyOverflow=""}),400)})),l(this,"XAbt",(function(e){var t=e.children[0];t.style.minHeight="unset",t&&t.childElementCount>2&&(t.removeChild(t.children[t.childElementCount-1]),t.removeChild(t.children[t.childElementCount-1]));var o=document.getElementById("apx-pb");o.parentNode.removeChild(o);var i,r,a,s,c,l,d=(i=n.success_message,r=n.layoutConfig,a=r.success_message_bg_color,s=r.success_message_icon_color,c=r.success_message_text_color,(l=document.createElement("div")).style="display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;height:100%;background: ".concat(a,"; min-height:480px"),l.innerHTML='\n <span style="font-size: 40px;border-radius: 50%;padding: 10px;padding-bottom: 2px;padding-top: 2px;color: white;background: '.concat(s,';">&#10003;</span>\n <span style="font-size: 17px;margin-top:15px;color:').concat(c,'">').concat(i,"</span>\n "),l);t.appendChild(d),setTimeout((function(){n.QmKV(e)}),n.auto_hide_message)})),l(this,"wHLe",(function(e,o){o&&n.show_success_message?n.XAbt(e):n.QmKV(e);var i={survey_id:n.configId,name:n.name,responses:[]};if(n.questions.forEach((function(e,t){var o=n.LdjY(t);if(o.answers.length>0){var r={question_id:e.id,answers:o.answers};o.others.length>0?r.others=o.others:o.textBasedQuestionAnswers.length>0&&(r.others=o.textBasedQuestionAnswers),i.responses.push(r)}})),i.responses.length>0){var r=Math.pow(10,3);i.time_taken=Math.round((Date.now()-n.startTime)/1e3*r)/r;var a=t.getController(),s=a.getFromStorage("_apx_cd",!0).session_info.launch_time;i.session_id=t.getSessionId(),i.is_completed=o,i.app_version=a.getFromStorage("apx_ver",!1),i.device_uuid=t.getClientId(),i.launch_time=s,i.user_attributes=a.getUserAttributes(),i.session_attributes=a.getSessionAttributes(),n.dzqY(i)}o&&n.NMFb("apx_survey_completed"),n.questions.forEach((function(e,t){e.XVMk(),n.answered_questions[t]=-1})),n.startTime=-1,n.bodyOverflow=""})),l(this,"dzqY",(function(e){var n=m.replace("<app_id>",t.getSiteId());fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})})),this.isValid=!0,this.dialog_config=null})),yo=c((function e(){a(this,e),l(this,"parse",(function(e,t,n){var o=new bo;return o.initialize(e,t,n)?o:null}))})),xo=function(){function e(t){var n=this;a(this,e),l(this,"xAqw",(function(){var e=document.getElementById("apxor-mpl-styles");e&&e.remove()})),l(this,"qQyX",(function(){return n.videoElement})),l(this,"hQCI",(function(){try{document.pictureInPictureElement?(document.exitPictureInPicture(),n.xAqw()):document.pictureInPictureEnabled&&n.videoElement.requestPictureInPicture()}catch(e){console.error("Failed to load PIP ".concat(e))}})),l(this,"PRZt",(function(){var e=n.videoConfig,t=e.pip_btn_color,o=void 0===t?"#ffffff":t,i=e.close_btn_color,r=void 0===i?"#ffffff":i,a=e.enable_PIP,s=document.createElement("span");if(s.innerHTML='\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill='.concat(r,' class="bi bi-x-circle" viewBox="0 0 16 16">\n <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>\n <path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/>\n </svg>'),s.classList.add("apxor-close-btn"),s.addEventListener("click",(function(e){try{n.miniPlayer.remove(),n.xAqw()}catch(e){console.log("Error \n ".concat(e," \n occured while closing the video"))}})),n.miniPlayer.appendChild(s),a){var c=document.createElement("span");c.innerHTML='\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill='.concat(o,' class="bi bi-pip" viewBox="0 0 16 16">\n <path d="M0 3.5A1.5 1.5 0 0 1 1.5 2h13A1.5 1.5 0 0 1 16 3.5v9a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 0 12.5v-9zM1.5 3a.5.5 0 0 0-.5.5v9a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-13z"/>\n <path d="M8 8.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-3z"/>\n </svg>'),c.classList.add("apxor-pip-btn"),c.addEventListener("click",(function(e){try{n.videoElement.disablePictureInPicture=!1,n.videoElement.requestPictureInPicture()}catch(e){console.log("Error \n ".concat(e," \n while starting the PIP"))}})),n.miniPlayer.appendChild(c)}})),l(this,"bjcj",(function(){var e=n.videoConfig.enable_pip_toggles;if(void 0===e||e){n.videoElement.addEventListener("leavepictureinpicture",(function(){n.videoElement.disablePictureInPicture=!0,n.miniPlayer.classList.remove("apxor-hide-elmt")}),!1);n.videoElement.addEventListener("enterpictureinpicture",(function(){n.miniPlayer.classList.add("apxor-hide-elmt")}),!1)}})),l(this,"qMft",(function(){n.miniPlayer.classList.add("apxor-hide-elmt")})),l(this,"ZANs",(function(){n.miniPlayer.classList.remove("apxor-hide-elmt")})),l(this,"VqMj",(function(){var e=n.videoConfig,t=e.buttons_config,o=e.uuid,i=void 0===o?"":o,r=e.name,a=void 0===r?"MiniPlayer":r,s=e.button_position,c=void 0===s?"center":s;if(t&&t.length>0){var l=document.createElement("div");l.setAttribute("id","apxor-cta-btn"),l.classList.add("apxor-video-cta"),l.classList.add("apxor-hide-elmt");var d=function(){try{n.miniPlayer.remove(),n.xAqw()}catch(e){console.log("Can't close the video player\n".concat(e))}},p=L(t,{next:d,complete:d,cancel:d},i,a),u=p.buttons_array,h=p.buttons_css,f=document.createElement("style");f.innerHTML=O(h,c),l.appendChild(f),u.forEach((function(e){var t=e.classes,n=e.text,o=e.action,i=document.createElement("button");i.className="shepherd-button "+t,i.innerText=n,i.onclick=function(){return o()},l.appendChild(i)})),n.miniPlayer.appendChild(l)}})),this.videoConfig=t,this.miniPlayer=null,this.videoElement=null}return c(e,[{key:"createPlayer",value:function(){this.miniPlayer=document.createElement("div"),this.miniPlayer.setAttribute("id","apxor-mini-player"),this._setMiniPlayerStyles(),this._setMiniPlayerPosition(),this._setPlayerContent(),this.bjcj(),this.PRZt(),this.VqMj(),this.qMft(),document.body.appendChild(this.miniPlayer)}},{key:"_setMiniPlayerStyles",value:function(){if(!document.getElementById("apxor-mpl-styles")){var e=this.videoConfig,t=e.width,n=void 0===t?420:t,o=e.height,i=void 0===o?420:o,r=document.createElement("style");r.setAttribute("id","apxor-mpl-styles"),r.innerHTML="\n div.apxor-mini-player--topLeft {\n position: fixed;\n top: 0;\n left: 0;\n max-width : ".concat(n,"px;\n max-height : ").concat(i,"px;\n background-color: #000000;\n }\n \n div.apxor-mini-player--topRight {\n position: fixed;\n top: 0;\n right: 0;\n max-width : ").concat(n,"px;\n max-height : ").concat(i,"px;\n background-color: #000000;\n }\n \n div.apxor-mini-player--bottomLeft {\n position: fixed;\n bottom: 0;\n left: 0;\n max-width : ").concat(n,"px;\n max-height : ").concat(i,"px;\n background-color: #000000;\n }\n \n div.apxor-mini-player--bottomRight {\n position: fixed;\n bottom: 0;\n right: 0;\n max-width : ").concat(n,"px;\n max-height : ").concat(i,'px;\n background-color: #000000;\n }\n\n .apxor-hide-elmt {\n display : none;\n }\n\n .apxor-pip-btn {\n position: absolute;\n top: 10px;\n left: 10px;\n width: 24px;\n height: 24px;\n opacity: 0.3;\n transition: opacity .3s ease;\n cursor: pointer;\n }\n video:hover~.apxor-pip-btn {\n opacity: 1;\n }\n \n .apxor-close-btn {\n position: absolute;\n top: 10px;\n right: 10px;\n width: 24px;\n height: 24px;\n opacity: 0.3;\n transition: opacity .3s ease;\n cursor: pointer;\n }\n video:hover~.apxor-close-btn {\n opacity: 1;\n }\n\n .apxor-video-cta {\n position: absolute;\n top: 50%;\n left: 50%;\n width: auto;\n height: auto;\n transition: opacity .3s ease;\n cursor: pointer;\n }\n \n .bi::before,\n [class^="bi-"]::before,\n [class*=" bi-"]::before {\n display: inline-block;\n font-style: normal;\n font-weight: normal !important;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n vertical-align: -.125em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n .bi-pip::before { \n content: "\f4ef"; \n }\n\n .bi-x-circle::before { \n content: "\f623"; \n }\n\n '),document.head.appendChild(r)}}},{key:"_setMiniPlayerPosition",value:function(){switch(this.videoConfig.videoPosition){case"top-left":this.miniPlayer.classList.add("apxor-mini-player--topLeft");break;case"top-right":this.miniPlayer.classList.add("apxor-mini-player--topRight");break;case"bottom-left":this.miniPlayer.classList.add("apxor-mini-player--bottomLeft");break;case"bottom-right":default:this.miniPlayer.classList.add("apxor-mini-player--bottomRight")}}},{key:"_setPlayerContent",value:function(){var e=this.videoConfig,t=e.v_url,n=e.v_format,o=void 0===n?"video/mp4":n,i=(e.auto_replay,e.mute_audio),r=void 0!==i&&i,a=(e.enable_PIP,e.width),s=void 0===a?420:a,c=e.height,l=void 0===c?420:c,d=e.video_mode;this.videoElement=document.createElement("video"),this.videoElement.width=s,this.videoElement.height=l,this.videoElement.controlsList="noplaybackrate nodownload","PIP"!=d&&(this.videoElement.autoplay=!0),this.videoElement.controls=!0,r&&(this.videoElement.muted=!0),this.videoElement.disablePictureInPicture=!0;var p=document.createElement("source");p.setAttribute("src",t),p.setAttribute("type",o),this.videoElement.appendChild(p),this.videoElement.addEventListener("ended",(function(e){var t=document.getElementById("apxor-cta-btn");t&&t.classList.remove("apxor-hide-elmt")})),this.videoElement.addEventListener("play",(function(e){var t=document.getElementById("apxor-cta-btn");t&&t.classList.add("apxor-hide-elmt")})),this.miniPlayer.appendChild(this.videoElement)}}]),e}(),wo=window.ApxorLogger;var _o=c((function e(){var n=this;a(this,e),l(this,"initialize",(function(e,t,o){var i=o.delay,r=o.layout_type,a=void 0===r?"":r,s=o.html_config.data,c=void 0===s?"":s,l=o.window_attributes,d=l.width,p=void 0===d?"auto":d,u=l.height,h=void 0===u?"auto":u,f=l.dimmed_background,m=void 0===f||f,v=l.dismiss_outside_touch,g=void 0!==v&&v;return n.configId=e,n.name=t,n.delay=i,n.width=p,n.height=h,n.layoutConfig={layout_type:a,dimmed_background:m,dismiss_outside_touch:g},n.htmlConfig={data:c},"videos"!==a&&""==n.htmlConfig.data?(n.isValid=!1,!1):(n.ui=o,!0)})),l(this,"XcKy",(function(){if(!n.isValid)return!1;setTimeout((function(){try{if(Ho.getInstance().updateCount(n.configId),"videos"===n.layoutConfig.layout_type)!function(e){if(!document.getElementById("apxor-mini-player")){var t=e.binding,n=e.activity,o=e.video_mode,i=!0;if(t&&""!=n&&window.location.pathname!==n&&(i=!1),i){var r=new xo(e);if(r.createPlayer(),"PIP"==o){var a=r.qQyX();a.onloadedmetadata=function(){a.requestPictureInPicture()}}else r.ZANs()}}}(n.ui);else{var e=function(e,t,n){var o=n.dimmed_background,i=document.createElement("div");i.setAttribute("id","apx-oly");var r=document.createElement("style");r.innerHTML="#apx-oly {\n width:auto;height:auto;position:fixed;top:0;right:0;bottom:0;left:0;\n display:flex;justify-content:center;align-items:center;border-radius:3px;z-index:99999999;background-color:".concat(o?"#31313185":"transparent",";\n\n }\n #apx-oly > * {font-family:inherit;box-sizing:unset}\n .apx-dlg-c {\n height:auto;width:auto;z-index:99999999;opacity:0;transition:all .5s cubic-bezier(.96,.23,.07,.8);position:fixed;visibility:hidden;\n border-radius:3px;overflow:hidden\n }\n .apx-dlg-c.open{opacity:1;visibility:visible;width:100%;height:100%;}\n ").replaceAll("\n","").replace(/[\s]{2,999}/g,"");var a=document.createElement("div");return a.setAttribute("id","apx-dlg-c"),a.classList.add("apx-dlg-c"),i.appendChild(a),i.appendChild(r),document.body.appendChild(i),i}(n.width,n.height,n.layoutConfig);n.layoutConfig.dismiss_outside_touch&&(document.getElementById("apx-oly").onclick=function(){n.diZf(e)}),setTimeout((function(){e.children[0].classList.toggle("open"),e.children[0].innerHTML=n.htmlConfig.data,n.Nehr("inapp_shown"),e.querySelectorAll("a").forEach((function(t){t.onclick=function(){return n.Ujrc(e,t)}}))}),100)}}catch(e){wo.error(e)}}),n.delay)})),l(this,"Ujrc",(function(e,o){var i=o.getAttribute("href");if(null!=i&&i.includes("apxor")){var r,a=i.replace(/^apxor:\/\/([^\?]*).*?$/,"$1");switch(a){case"cancel":n.Nehr("walk_through_cancelled");break;case"xclose":n.Nehr("InAppXIconClicked");break;case"close":r=i.replace(/(.*?)buttonName=([^\&]*).*?$/,"$2"),n.Nehr(x(""===r?"Button":r));break;case"dl_url":var s=i.replace(/(.*?)uri=([^\&]*).*?$/,"$2"),c=i.replace(/(.*?)external=([^\&]*).*?$/,"$2");r=i.replace(/(.*?)buttonName=([^\&]*).*?$/,"$2"),n.Nehr(x(""===r?"Button":r)),"true"==c?window.open(s,"_blank"):t.logClientEvent("REDIRECT",{url:s})}return n.diZf(e,a),!1}return!0})),l(this,"diZf",(function(e,t){"cancel"!==t&&n.Nehr("inapp_dismissed"),e.children[0].classList.toggle("open"),setTimeout((function(){e.parentNode.removeChild(e)}),300)})),l(this,"Nehr",(function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.logEvent(e,i({id:n.configId,message_name:n.name},o))})),this.isValid=!0})),Eo=c((function e(){a(this,e),l(this,"parse",(function(e,t,n){var o=new _o;return o.initialize(e,t,n)?o:null}))})),ko=function(e){if(e.target){var t=e.target.classList,n=t.contains("apx-highlight")||-1!==t.toString().indexOf("apx-");t&&!n&&(e.target.classList.add("apx-highlight"),e.target.oldOnClick=e.target.onclick,e.target.onclick=null)}},Co=function(e){e.target&&e.target.classList&&e.target.classList.contains("apx-highlight")&&(e.target.classList.remove("apx-highlight"),e.target.onclick=e.target.oldOnClick,e.target.oldOnClick=null)};var To="<b>View Selection Mode: ON",Ao="<b>View Selection Mode: OFF</b>",Oo="https://server.apxor.com/v1/sse/",Lo=Oo+"layout?appId=<aid>&deviceId=<uid>",So=Oo+"ui-config?appId=<aid>&deviceId=<uid>",Mo=Oo+"art-config?appId=<aid>&deviceId=<uid>",No="https://server.apxor.com/v4/frontendapi/web/test-devices",Io=No+"?appId=<aid>",Do=No+"/<uid>?appId=<aid>",Po=c((function e(){var n=this;a(this,e),l(this,"VPjh",null),l(this,"OdTU",null),l(this,"NaWS",null),l(this,"hZpB",null),l(this,"fNrc",""),l(this,"init",(function(e,o){var i=function(e){if(window.document)for(var t=e+"=",n=window.document.cookie.split(";"),o=0;o<n.length;o++){for(var i=n[o];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null}("_apx_ewc");if(i){var r=atob(i);try{var a=t.getController().getFromStorage(r,!0);if(!a)return;var s=a.app_id,c=a.expiry,l=a.volatile_id;if(n.fNrc=l,s===e&&Date.now()<=c){var d=document.createElement("span");if(d.style="z-index:99999999;visibility:hidden;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);padding:16px 24px;background:#252f37;border-radius:3px;opacity:0;font-size:24px;color:white;transition:all .3s ease-out",d.innerHTML=To,n.OdTU=d,document.body.appendChild(d),n.VPjh=document.createElement("style"),n.VPjh.innerHTML=".apx-highlight{height:auto;z-index:9999999999;outline: 2px solid red;cursor:default}",document.body.appendChild(n.VPjh),n.isSelectionMode=!1,n.testDeviceData=t.getController().getFromStorage("_apx_td",!0),n.testDeviceData){var p=n.testDeviceData,u=p.name,h=void 0===u?"":u,f=p.id,m=void 0===f?"":f;if(""!==h&&""!==m){n.qLZV("select","".concat(h," - ").concat(m),m);var v=new EventSource(So.replace("<aid>",e).replace("<uid>",m)),g=new EventSource(Mo.replace("<aid>",e).replace("<uid>",m));v.onmessage=g.onmessage=function(e){e&&e.data&&"{}"!==e.data&&n.KfYi(o,e.data)}}}n.xeDD(o)}}catch(e){}}})),l(this,"ioBr",(function(){n.OdTU.parentNode.removeChild(n.OdTU),n.VPjh.parentNode.removeChild(n.VPjh)})),l(this,"KfYi",(function(e,o){try{n.hZpB.dispatchEvent(new CustomEvent("preview"));var i=JSON.parse(o),r=i.cmd;if("prev"===(void 0===r?"prev":r))if(i.hasOwnProperty("ui")){var a=function e(t){return[Math.random,function(){return e.last?windowId.last+Math.random():Math.random()},Math.random,Date.now,Math.random].map((function(e){return e().toString(t||16+20*Math.random()).substr(-8)})).join("-")}(36),s={configs:[{_id:a,enabled:!0,terminate_info:{auto_dismiss:!1,duration:1e3},meta:{name:"P",type:i.type},ui:i.ui}]};e.AXYS("SURVEY"!==i.type?0:1,s),t.getController().dispatchEvent(i.type,{name:i.type,additional_info:{uuid:a,name:"P"}})}else if(i.hasOwnProperty("messages")){var c=[],l=[];i.messages.forEach((function(e){"SURVEY"!==e.meta.type?l.push(e):c.push(e)})),l.length>0&&e.handleResponse(0,{configs:l}),c.length>0&&e.handleResponse(1,{configs:c})}}catch(e){console.error(e)}})),l(this,"xeDD",(function(e){var o=null!==n.testDeviceData&&void 0!==n.testDeviceData&&n.testDeviceData.id&&n.testDeviceData.name,i='\n<style>\n.apx-cr{display:flex;justify-content:center;align-items:center;flex-direction:column;gap:10px}\n.apx-b{border:none;font-size:16px;font-family:inherit;padding:8px 14px;cursor:pointer}\n.apx-close:before{content:\'\\58\';font-size:9px;color:#969696;cursor:pointer;position:absolute;top:1px;right:3px}\n</style>\n<svg class="apx-" id="apx-wr-h" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" preserveAspectRatio="xMidYMid meet" viewBox="280.6027397260274 189.52023061718432 89.75342465753425 54.49346801295263" width="48" height="29.14" style="width:17px;position:absolute;top:7px;left:50%;transform:translate(-50%, -50%);cursor:move;"><defs><path d="M304.6 201.52C304.6 208.14 299.23 213.52 292.6 213.52C285.98 213.52 280.6 208.14 280.6 201.52C280.6 194.9 285.98 189.52 292.6 189.52C299.23 189.52 304.6 194.9 304.6 201.52Z" id="e2aMl5NH8S"/><path d="M324.9 189.54C331.52 189.16 337.2 194.21 337.58 200.82C337.97 207.43 332.91 213.12 326.3 213.5C319.69 213.89 314.01 208.83 313.62 202.22C313.24 195.61 318.29 189.93 324.9 189.54Z" id="e2L4sySuvL"/><path d="M304.6 232.01C304.6 225.39 299.23 220.01 292.6 220.01C285.98 220.01 280.6 225.39 280.6 232.01C280.6 238.64 285.98 244.01 292.6 244.01C299.23 244.01 304.6 238.64 304.6 232.01Z" id="a5AJxVSDw"/><path d="M337.6 232.01C337.6 225.39 332.23 220.01 325.6 220.01C318.98 220.01 313.6 225.39 313.6 232.01C313.6 238.64 318.98 244.01 325.6 244.01C332.23 244.01 337.6 238.64 337.6 232.01Z" id="bjnangUBy"/><path d="M370.36 232.01C370.36 225.39 364.98 220.01 358.36 220.01C351.73 220.01 346.36 225.39 346.36 232.01C346.36 238.64 351.73 244.01 358.36 244.01C364.98 244.01 370.36 238.64 370.36 232.01Z" id="a8aeEZTAL0"/><path d="M369.36 201.52C369.36 194.9 363.98 189.52 357.36 189.52C350.73 189.52 345.36 194.9 345.36 201.52C345.36 208.14 350.73 213.52 357.36 213.52C363.98 213.52 369.36 208.14 369.36 201.52Z" id="a4VJpGfPPp"/></defs><g><g><g><use xlink:href="#e2aMl5NH8S" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#e2L4sySuvL" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#a5AJxVSDw" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#bjnangUBy" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#a8aeEZTAL0" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#a4VJpGfPPp" opacity="1" fill="#000000" fill-opacity="1"/></g></g></g></svg>\n<div class="apx-cr" style="gap:0">\n <img class="apx-" width="54" height="54" src="https://f.hubspotusercontent10.net/hub/5329664/hubfs/Apxor%20X%20logo.png?width=108&height=108" />\n</div>\n<div id="apx-bh" class="apx-cr apx-bh" style="padding:8px 20px;">\n<button class="apx-b" id="apx-a" style="display:'.concat(o?"none":"block",'">Add as test device</button>\n<button class="apx-b" id="apx-r" style="display:').concat(o?"block":"none",'">Remove as test device</button>\n<button class="apx-b" id="apx-ev" style="display:').concat(o&&n.isSelectionMode?"none":o?"block":"none",'">Enable view selection</button>\n<button class="apx-b" id="apx-dv" style="display:').concat(o&&n.isSelectionMode?"block":"none",'">Disable view selection</button>\n</div>\n '),r=document.getElementById("apx-wr");r&&r.remove&&r.remove();var a=document.createElement("div");a.style="z-index:99999999;position:fixed;top:8px;right:8px;background:white;box-shadow:0px 0.54801px 1.64403px 0.54801px rgb(0 0 0 / 11%);border-radius:3px;padding:10px",a.setAttribute("id","apx-wr"),a.innerHTML=i,document.body.appendChild(a),n.hZpB=a;var s=document.getElementById("apx-bh"),c=function(){a.style.opacity=.5,s.style.display="none"},l=setTimeout(c,3e3);a.addEventListener("mouseover",(function(){a.style.opacity=1,clearTimeout(l),s.style.display="flex"})),a.addEventListener("mouseout",(function(){l=setTimeout(c,3e3)}));var d=document.getElementById("apx-a"),p=document.getElementById("apx-r"),u=document.getElementById("apx-ev"),h=document.getElementById("apx-dv");d.onclick=function(){return n.WIEV(e)},p.onclick=function(){fetch(Do.replace("<aid>",t.getSiteId()).replace("<uid>",n.testDeviceData.id),{method:"DELETE",headers:{apx_web_key:"WTCKFAIVAJKYJA3HCV80WIKZU98R9NJG"}}).then((function(e){return e.ok&&200===e.status?e.json():null})).then((function(e){e&&(t.getController().persistToStorage("_apx_td",{},!0),n.testDeviceData=null,d.style.display="block",p.style.display=u.style.display=h.style.display="none",n.isSelectionMode&&n.FUPT())})).catch((function(e){return console.error(e)}))},u.onclick=function(){n.isSelectionMode=!0,window.addEventListener("mouseover",ko,!0),window.addEventListener("mouseout",Co,!0),n.clickListener=function(e){return function(e,t){var n=e.target;n&&n.classList.contains("apx-highlight")&&(e.preventDefault(),e.stopPropagation(),n.classList.remove("apx-highlight"),n.onclick=n.oldOnClick,n.oldOnClick=null,t&&t(n))}(e,(function(e){var t=n.sVTc(e,!0),o=n.vkQZ(e,!0);n.qLZV("view",location.href,t+"___"+o)}))},window.addEventListener("click",n.clickListener,!0),n.uxng(!1),u.style.display="none",h.style.display="block"};var f=function(){n.FUPT(),h.style.display="none",u.style.display="block"};h.onclick=f,n.hZpB.addEventListener("preview",f),n.hZpB.addEventListener("added",(function(){d.style.display="none",p.style.display="block",s.style.display="flex",u.style.display="block"})),function(e){var t,n=window.innerHeight-8,o=8,i=window.innerWidth-8,r=8,a=0,s=0,c=0,l=0;function d(n){n.preventDefault(),n.stopPropagation(),n=n||window.event,c=n.clientX,l=n.clientY,t=e.getBoundingClientRect(),document.onmouseup=u,document.onmousemove=p}function p(d){d.preventDefault(),d.stopPropagation(),d=d||window.event,a=c-d.clientX,s=l-d.clientY,c=d.clientX,l=d.clientY;var p=e.offsetLeft-a,u=e.offsetTop-s;p<o||u<r||p+t.width>i||u+t.height>n||(e.style.top=e.offsetTop-s+"px",e.style.left=e.offsetLeft-a+"px",e.style.right="")}function u(){document.onmouseup=null,document.onmousemove=null}document.getElementById(e.id+"-h")?document.getElementById(e.id+"-h").onmousedown=d:e.onmousedown=d}(a)})),l(this,"FUPT",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ao;if(n.isSelectionMode){window.removeEventListener("mouseover",ko,!0),window.removeEventListener("mouseout",Co,!0),window.removeEventListener("click",n.clickListener,!0);for(var t=document.querySelectorAll(".apx-highlight"),o=0;o<t.length;o++){var i=t[o];i.classList.remove("apx-highlight")}n.uxng(!0,e),n.isSelectionMode=!1}})),l(this,"uxng",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ao;n.OdTU.style.visibility="visible",e?(n.OdTU.innerHTML=t,n.OdTU.style.opacity=1):(n.OdTU.innerHTML=To,n.OdTU.style.opacity=1),setTimeout((function(){n.OdTU.style.opacity=0,n.OdTU.style.visibility="hidden"}),1e3)})),l(this,"WIEV",(function(e){var o=S(500,20,{}),i=o.children[0];i.style.flex="0 1 auto",i.style.maxHeight="calc(100% - 96px)",i.style.display="flex",i.style.flexDirection="column";var r=t.getController().getDevInfo(),a=t.getController().getUserAttributes().apx_browser,s=r.hardware_model,c=r.os_version,l=r.id,d="\n".concat('<style>\n.apx-loading{\nbackground:#333 url(\'https://code.jquery.com/mobile/1.3.1/images/ajax-loader.gif\') no-repeat 50% 50%;\n-webkit-transition:background-color 0;transition:background-color 0;opacity: 1;\n-webkit-transition:opacity 1;transition:opacity 1\n}\n.apx-t{\nflex:0 0 auto;margin:0;padding:24px 24px 20px\n}\n.apx-tt{\ncolor:rgba(0,72,114,0.87);font-size:1.3125rem;font-weight:500;\nfont-family: \'Roboto\', \'Helvetica\', \'Arial\', sans-serif;line-height: 1.16667em;margin:0\n}\n.apx-c{\nflex:1 1 auto;padding:0 24px 24px;overflow-y: auto\n}\n.apx-de{\nline-height:1.5;color:rgba(0,72,114,0.54);font-size:1rem;font-weight:400;\nfont-family:"Roboto", "Helvetica", "Arial", sans-serif;margin:0;display:block\n}\n.apx-id{\nwidth:100%;margin-top:8px;margin-bottom:4px;margin:0;border:0;flex-direction:column;\ndisplay:inline-flex;padding:0;position:relative;min-width:0;vertical-align:top\n}\n.apx-il{\ntransition:color 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms,transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms;\ntransform:translate(0, 21px) scale(1);top:0;left:0;position:absolute;\ncolor:rgba(0,72,114, 0.54);padding: 0;font-size: 1rem;transform-origin:top left;\nfont-family: "Roboto", "Helvetica", "Arial", sans-serif;line-height: 1\n}\n.apx-il-f{\ntransform:translate(0, 1.5px) scale(0.75)\n}\nlabel + .apx-iid {\nmargin-top:16px;position:relative;width: 100%;color: rgba(0,72,114, 0.87);\ncursor: text;display: inline-flex;font-size: 1rem;\nfont-family:"Roboto", "Helvetica", "Arial", sans-serif;\nline-height: 1.1875em;align-items: center\n}\n.apx-iid.apx-iid-f:after{transform:scaleX(1)}\n.apx-iid:hover:before{border-bottom: 2px solid rgba(0,72,114, 0.87)}\n.apx-iid:before{\nleft: 0;right: 0;bottom: 0;content: \'\\00a0\';position: absolute;\ntransition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\nborder-bottom: 1px solid rgba(0, 0, 0, 0.42);pointer-events: none\n}\n.apx-iid:after{\nleft: 0;right: 0;bottom: 0;content: "";position: absolute;transform: scaleX(0);\ntransition: transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms;\nborder-bottom: 2px solid rgb(44, 56, 126);pointer-events: none\n}\n.apx-ii{\npadding-top:3px;font: inherit;color: currentColor;width: 100%;border: 0;margin: 0;\ndisplay: block;min-width: 0;box-sizing: content-box;background: none;padding: 6px 0 7px;outline:0\n}\n.apx-ul{\npadding-top:8px;padding-bottom:8px;margin:0;padding:0;position:relative;list-style:none\n}\n.apx-li{\npadding-left:16px;padding-right:16px;width:100%;display:flex;list-style:none;\nposition:relative;box-sizing:border-box;text-align:left;align-items:center;\npadding-top:11px;padding-bottom:11px;justify-content:flex-start;text-decoration:none\n}\n.apx-lid:first-child{padding-left:0}\n.apx-lid{flex:1 1 auto;padding:0 16px;min-width:0}\n.apx-lids{\ncolor:rgba(0,72,114, 0.87);font-weight:400;line-height:1.5em;\nfont-family:"Roboto", "Helvetica", "Arial", sans-seriffont-size:1rem\n}\n.apx-a{\nflex:0 0 auto;margin:8px 4px;display:flex;align-items:center;justify-content:flex-end\n}\n.apx-b{\nfont-size:0.875rem;min-width:64px;box-sizing:border-box;min-height:36px;border:0;\ntransition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\nline-height:1.3125;font-weight:500;font-family:"Roboto", "Helvetica", "Arial", sans-serif;\nborder-radius:4px;text-transform:uppercase;cursor:pointer;display:inline-flex;outline:none;\nposition:relative;align-items:center;user-select:none;vertical-align:middle;\njustify-content:center;text-decoration:none;background-color:transparent\n}\n.apx-bl{\nwidth: 100%;display:inherit;align-items:inherit;justify-content:inherit\n}\n.apx-btr{\ntop:0;left:0;width:100%;height:100%;display:block;z-index:0;position:absolute;\noverflow:hidden;border-radius:inherit;pointer-events:none\n}</style>\n ','\n<div>\n <div class="apx-t"><h2 class="apx-tt">Set device nick name</h2></div>\n <div class="apx-c">\n <p class="apx-de">Give this device a nick name for easy identification</p>\n <div class="apx-id">\n <label class="apx-il">Nick name</label>\n <div class="apx-iid">\n <input class="apx-ii" type="text" id="apx-ii" value="">\n </div>\n </div>\n <ul class="apx-ul">\n <li class="apx-li">\n <div class="apx-lid">\n <span class="apx-lids">\n <span>Model <strong style="float:right">').concat(s," - ").concat(c,'</strong></span>\n </span>\n </div>\n </li>\n <li class="apx-li">\n <div class="apx-lid">\n <span class="apx-lids">\n <span>Browser <strong style="float:right">').concat(a,'</strong></span>\n </span>\n </div>\n </li>\n <li class="apx-li">\n <div class="apx-lid">\n <span class="apx-lids">\n <span>Device ID <strong style="float:right">').concat(l,'</strong></span>\n </span>\n </div>\n </li>\n </ul>\n </div>\n <div class="apx-a">\n <button id="apx-bc" class="apx-b"><span class="apx-bl" style="color:#295e8c6b">Cancel</span><span class="apx-btr"/></button>\n <button id="apx-bd" class="apx-b"><span class="apx-bl" style="color:#295e8c">Done</span><span class="apx-btr"/></button>\n </div>\n</div>\n ');o.style.visibility="hidden",i.style.visibility="hidden",i.innerHTML=d;var p,u,h=document.getElementById("apx-ii");n.testDeviceData&&(h.value=null!==(p=null===(u=n.testDeviceData)||void 0===u?void 0:u.name)&&void 0!==p?p:"");h.onfocus=function(){h.parentNode.classList.add("apx-iid-f"),h.parentNode.parentNode.children[0].classList.add("apx-il-f")},h.onblur=function(){h.parentNode.classList.remove("apx-iid-f"),h.parentNode.parentNode.children[0].classList.remove("apx-il-f")},h.oninput=function(){""!==h.value.trim()?m.removeAttribute("disabled"):m.setAttribute("disabled","")},setTimeout((function(){o.style.visibility="visible",i.style.visibility="visible",i.classList.toggle("open"),h.parentNode.parentNode.children[0].classList.add("apx-il-f")}),100);var f=function(){i.classList.toggle("open"),setTimeout((function(){o.parentNode.removeChild(o)}),400)};document.getElementById("apx-bc").onclick=function(){f()};var m=document.getElementById("apx-bd");m.onclick=function(){i.children[1].classList.add("apx-loading"),t.getController().makePostRequest(Io.replace("<aid>",t.getSiteId()),{model:s,id:l,nick_name:h.value},{apx_web_key:"WTCKFAIVAJKYJA3HCV80WIKZU98R9NJG"},(function(){var o={id:l,name:h.value};t.getController().persistToStorage("_apx_td",o,!0),n.testDeviceData=o,n.qLZV("select","".concat(h.value," - ").concat(l),l,(function(){i.children[1].classList.remove("apx-loading"),n.hZpB.dispatchEvent(new CustomEvent("added"))}));var r=new EventSource(So.replace("<aid>",t.getSiteId()).replace("<uid>",l)),a=new EventSource(Mo.replace("<aid>",t.getSiteId()).replace("<uid>",l));r.onmessage=a.onmessage=function(t){t&&t.data&&"{}"!==t.data&&n.KfYi(e,t.data)},f()}),(function(){}))}})),l(this,"qLZV",(function(e,o,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},s=t.getController().getDevInfo(),c={device_info:{id:s.id,hardware_model:s.hardware_model,os_version:s.os_version,width:s.dimensions.width,height:s.dimensions.height},screen:{image:e,navigation:o,orientation:i},layout:[]};t.getController().makePostRequest(Lo.replace("<aid>",t.getSiteId()).replace("<uid>",n.fNrc),c,{},r,a)})),l(this,"sVTc",(function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)return"";for(var o=[],i=e;i;){var r=n.wQew(i,!!t,i===e);if(!r)break;if(o.push(r),r.optimized)break;i=i.parentNode}return o.reverse(),o.join(" > ")})),l(this,"wQew",(function(e,t,n){if(e.nodeType!==Node.ELEMENT_NODE)return null;var o=e.getAttribute("id");if(t){if(o)return new Bo(c(o),!0);var i=e.nodeName.toLowerCase();if("body"===i||"head"===i||"html"===i)return new Bo(e.nodeName.toLowerCase(),!0)}var r=e.nodeName.toLowerCase();if(o)return new Bo(r.toLowerCase()+c(o),!0);var a=e.parentNode;if(!a||a.nodeType===Node.DOCUMENT_NODE)return new Bo(r.toLowerCase(),!0);function s(e){var t=e.getAttribute("class");return t?t.split(/\s+/g).filter(Boolean).map((function(e){return"$"+e})):[]}function c(e){return"#"+l(e)}function l(e){if(/^-?[a-zA-Z_][a-zA-Z0-9_-]*$/.test(e))return e;var t=/^(?:[0-9]|-[0-9-]?)/.test(e),n=e.length-1;return e.replace(/./g,(function(e,o){return t&&0===o||!function(e){return!!/[a-zA-Z0-9_-]/.test(e)||e.charCodeAt(0)>=160}(e)?function(e,t){return"\\"+function(e){var t=e.charCodeAt(0).toString(16);1===t.length&&(t="0"+t);return t}(e)+(t?"":" ")}(e,o===n):e}))}for(var d=s(e),p=!1,u=!1,h=-1,f=-1,m=a.children,v=0;(-1===h||!u)&&v<m.length;++v){var g=m[v];if(g.nodeType===Node.ELEMENT_NODE)if(f+=1,g!==e){if(!u&&g.nodeName.toLowerCase()===r.toLowerCase()){p=!0;var b=new Set(d);if(b.size)for(var y=s(g),x=0;x<y.length;++x){var w=y[x];if(b.has(w)&&(b.delete(w),!b.size)){u=!0;break}}else u=!0}}else h=f}var _=r.toLowerCase();if(n&&"input"===r.toLowerCase()&&e.getAttribute("type")&&!e.getAttribute("id")&&!e.getAttribute("class")&&(_+='[type="'+e.getAttribute("type")+'"]'),u)_+=":nth-child("+(h+1)+")";else if(p)for(var E in d)_+="."+l(d[E].substr(1));return new Bo(_,!1)})),l(this,"vkQZ",(function(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";for(var o=[],i=e;i;){var r=n.WsZZ(i,t);if(!r)break;if(o.push(r),r.optimized)break;i=i.parentNode}return o.reverse(),(o.length&&o[0].optimized?"":"/")+o.join("/")})),l(this,"WsZZ",(function(e,t){var o,i=n.Rmem(e);if(-1===i)return null;switch(e.nodeType){case Node.ELEMENT_NODE:if(t&&e.getAttribute("id"))return new Bo('//*[@id="'+e.getAttribute("id")+'"]',!0);o=e.localName;break;case Node.ATTRIBUTE_NODE:o="@"+e.nodeName;break;case Node.TEXT_NODE:case Node.CDATA_SECTION_NODE:o="text()";break;case Node.PROCESSING_INSTRUCTION_NODE:o="processing-instruction()";break;case Node.COMMENT_NODE:o="comment()";break;case Node.DOCUMENT_NODE:default:o=""}return i>0&&(o+="["+i+"]"),new Bo(o,e.nodeType===Node.DOCUMENT_NODE)})),l(this,"Rmem",(function(e){function t(e,t){return e===t||(e.nodeType===Node.ELEMENT_NODE&&t.nodeType===Node.ELEMENT_NODE?e.localName===t.localName:e.nodeType===t.nodeType||(e.nodeType===Node.CDATA_SECTION_NODE?Node.TEXT_NODE:e.nodeType)===(t.nodeType===Node.CDATA_SECTION_NODE?Node.TEXT_NODE:t.nodeType))}var n,o=e.parentNode?e.parentNode.children:null;if(!o)return 0;for(var i=0;i<o.length;++i)if(t(e,o[i])&&o[i]!==e){n=!0;break}if(!n)return 0;var r=1;for(i=0;i<o.length;++i)if(t(e,o[i])){if(o[i]===e)return r;++r}return-1}))})),Bo=function(e,t){this.value=e,this.optimized=t||!1};Bo.prototype={toString:function(){return this.value}};var jo=window.ApxorLogger,Fo=new(c((function e(){var n=this;a(this,e),l(this,"version",128),l(this,"jkrb",{}),l(this,"isShowingAction",!1),l(this,"currentAction",null),l(this,"qkvM",new yo),l(this,"EAon",new Eo),l(this,"NpRb",new Po),l(this,"Unhj",null),l(this,"JJwF",{}),l(this,"init",(function(e){n.Unhj=e;var o=t.getController(),i=Ho.getInstance(),r=t.getSiteId(),a=function(e,t){var n=function(n){return n.replace("<app_id>",e).replace("<u_id>",t)};return{rtaValidateUrl:n("https://server.apxor.com/v2/sync/<app_id>/configs/validate?platform=web&userId=<u_id>&actionType=rta&version=139"),rtaSyncUrl:n("https://server.apxor.com/v2/sync/<app_id>/rta?platform=web&userId=<u_id>&version=139"),surveysValidateUrl:n("https://server.apxor.com/v2/sync/<app_id>/configs/validate?platform=web&userId=<u_id>&actionType=survey&version=139"),surveysSyncUrl:n("https://server.apxor.com/v2/sync/<app_id>/surveys?platform=web&userId=<u_id>&version=139")}}(r,t.getClientId()),s=a.rtaValidateUrl,c=a.rtaSyncUrl,l=a.surveysValidateUrl,d=a.surveysSyncUrl;i.initialize(),i.fetch(0,s,c,n.handleResponse),i.fetch(1,l,d,n.handleResponse),o.registerForEvent("IN_LINE",n.cPea),o.registerForEvent("IN_APP",n.RCKa),o.registerForEvent("SURVEY",n.PYiK),o.registerForEvent("ONBOARDING",n.tGEj),n.NpRb.init(r,n),jo.debug("Registered for events")})),l(this,"show",(function(e,t,o,i){try{if(null!==n.currentAction&&void 0!==n.currentAction)return void jo.error("An action already being shown");var r=JSON.parse(e),a={};a.auto_dismiss=t>0,a.duration=t;var s=function(){n.logActionEvent("inline_shown",o,i),n.updateCount(o),n.isShowingAction=!0},c=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];n.isShowingAction=!1,n.currentAction=null,e||n.logActionEvent("inline_dismissed",o,i)},l=r.display_type,d={configId:o,configName:i};"inline"===l?n.currentAction=$n(r,[],a,d,n,s,c):"coach_mark"===l?function(e,t,n,o,i,r){var a=window.ApxorRTM;if(null===a.currentAction||void 0===a.currentAction)if(e&&e.delay<=0){var s=so(e,t,n,o,i);r(s)}else setTimeout((function(){if(null===a.currentAction||void 0===a.currentAction){var s=so(e,t,n,o,i);r(s)}else window.ApxorLogger.error("An action is already being shown. Try after it gets dismissed")}),e.delay);else window.ApxorLogger.error("An action is already being shown. Try after it gets dismissed")}(r,d,a,s,c,(function(e){n.currentAction=e})):jo.error("Unknown type",l)}catch(e){n.currentAction=null,n.isShowingAction=!1,window.ApxorLogger.error(e)}})),l(this,"logActionEvent",(function(e,n,o){t.logEvent(e,{id:n,message_name:o})})),l(this,"logClientEvent",(function(e,n){t.logClientEvent(e,n)})),l(this,"updateCount",(function(e){Ho.getInstance().updateCount(e)})),l(this,"tUqv",(function(){if(null!==n.currentAction&&void 0!==n.currentAction){n.isShowingAction=!1;try{n.currentAction()}catch(e){}finally{n.currentAction=null}}})),l(this,"handleResponse",(function(e,t){""===e?(jo.debug("No configs available"),n.Unhj&&n.Unhj()):(jo.debug("Fetched config from server",e),n.AXYS(e,t),console.log("Configs in handle response",t),Ho.getInstance().parse(t),n.Unhj&&n.Unhj())})),l(this,"AXYS",(function(e,t){if(C(t)&&C(t.configs)){var o=t.configs;if(!Array.isArray(o))return;for(var i=0;i<o.length;i++){var r=o[i],a=r._id,s=r.meta.name,c=r.type,l=r.ui;1===e?l=n.qkvM.parse(a,s,l):"IN_APP"===c&&(l=n.EAon.parse(a,s,l)),null!==l?n.jkrb[a]={ui:l,uis:r.uis,terminationConfig:r.terminate_info,name:s}:console.warn("Failed to parse the config",a)}jo.debug("Configs: ",n.jkrb)}})),l(this,"cPea",(function(e){if(C(e.additional_info)){var t=e.additional_info.uuid;if(n.jkrb[t]){var o=n.jkrb[t],i=o.ui,r=o.terminationConfig,a=o.name;n.show(JSON.stringify(i),r.auto_dismiss?r.duration:-1,t,a)}}})),l(this,"RCKa",(function(e){if(C(e.additional_info)){var t=e.additional_info.uuid;if(n.jkrb[t])n.jkrb[t].ui.XcKy()}})),l(this,"PYiK",(function(e){if(C(e.additional_info)){var t=e.additional_info.uuid;if(n.jkrb[t]){n.jkrb[t].ui.XtMo((function(e){n.updateCount(t),n.isShowingAction=!0,n.currentAction=e}),(function(){n.isShowingAction=!1,n.currentAction=null}))}}})),l(this,"tGEj",(function(e){}))})));window.ApxorRTM=Fo;var Ho=new(function(){function e(){a(this,e)}return c(e,[{key:"getInstance",value:function(){return(n||window["apxor-qe"]).getInstance()}}]),e}());try{void 0===e&&null===e||(e.default=Fo,module.exports=e.default)}catch(e){}e.ceWrapper=Ho,e.default=Fo,Object.defineProperty(e,"__esModule",{value:!0})}));
44
+ */;!function(e){if(Q){var t=document.createElement("style");t.textContent=e,t.setAttribute("data-tippy-stylesheet","");var n=document.head,i=n.querySelector("style,link");i?n.insertBefore(t,i):n.appendChild(t)}}(".tippy-tooltip[data-animation=fade][data-state=hidden]{opacity:0}.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}.tippy-popper{pointer-events:none;max-width:calc(100% - 8px);transition-timing-function:cubic-bezier(.165,.84,.44,1)}.tippy-tooltip{position:relative;color:#fff;border-radius:.25rem;font-size:.875rem;line-height:1.4;background-color:#333;overflow:hidden;transition-property:visibility,opacity,transform;outline:0}.tippy-tooltip[data-placement^=top] .tippy-arrow{border-width:8px 8px 0;border-top-color:#333;margin:0 3px;transform-origin:50% 0;bottom:-8px}.tippy-tooltip[data-placement^=bottom] .tippy-arrow{border-width:0 8px 8px;border-bottom-color:#333;margin:0 3px;transform-origin:50% 7px;top:-8px}.tippy-tooltip[data-placement^=left] .tippy-arrow{border-width:8px 0 8px 8px;border-left-color:#333;margin:3px 0;transform-origin:0 50%;right:-8px}.tippy-tooltip[data-placement^=right] .tippy-arrow{border-width:8px 8px 8px 0;border-right-color:#333;margin:3px 0;transform-origin:7px 50%;left:-8px}.tippy-tooltip[data-arrow]{overflow:visible}.tippy-tooltip[data-animatefill]{background-color:transparent!important}.tippy-tooltip[data-interactive]{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-tooltip[data-inertia][data-state=hidden]{transition-timing-function:ease}.tippy-arrow{border-color:transparent;border-style:solid;position:absolute}.tippy-arrow[data-state=hidden]{opacity:0}.tippy-content{padding:.3125rem .5625rem}");var Xt=nn("shepherd"),Kt=nn("shepherd-has-title"),Jt={computeStyle:{enabled:!0,fn:function(e){return e.styles=H({},e.styles,{left:"50%",top:"50%",transform:"translate(-50%, -50%)"}),e}},addShepherdClass:Xt},Gt={positionFixed:!0,modifiers:{addShepherdClass:Xt}};function Qt(e){var t=document.createElement("div");return t.innerHTML=e,t.children[0]}function $t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Array.isArray(e)?e.slice(t):[]}function en(){if(J(Yt))throw new Error("Using the attachment feature of Shepherd requires the Tippy.js library");this.tooltip&&this.tooltip.destroy();var e=this.parseAttachTo();this.tooltip=on.call(this,e),this.target=e.element||document.body,this.el.classList.add("shepherd-element")}function tn(){var e=this.options.attachTo||{},t=H({},e);if(K(e.element)){try{t.element=document.querySelector(e.element)}catch(e){}t.element||console.error("The element for this Shepherd step was not found ".concat(e.element))}return t}function nn(e){return{enabled:!0,fn:function(t){return t.instance.popper.classList.add(e),t}}}function on(e){if(!e.element)return an.call(this);var t=rn.call(this,e);return Yt(e.element,t)}function rn(e){var t={content:this.el,flipOnUpdate:!0,placement:e.on||"right"};return H(t,this.options.tippyOptions),this.options.title&&H(Gt.modifiers,{addHasTitleClass:Kt}),this.options.tippyOptions&&this.options.tippyOptions.popperOptions&&H(Gt,this.options.tippyOptions.popperOptions),t.popperOptions=Gt,t}function an(){var e=function(e){for(var t=1;t<arguments.length;t++)if(t%2){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){Z(e,t,n[t])}))}else Object.defineProperties(e,Object.getOwnPropertyDescriptors(arguments[t]));return e}({content:this.el,placement:"top"},this.options.tippyOptions);e.arrow=!1,e.popperOptions=e.popperOptions||{},this.options.title&&H(Gt.modifiers,{addHasTitleClass:Kt});var t=H({},Gt,e.popperOptions,{modifiers:H(Jt,e.popperOptions.modifiers)});return e.popperOptions=t,Yt(document.body,e)}var sn=function(){function e(){P(this,e)}return z(e,[{key:"on",value:function(e,t,n){var i=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];J(this.bindings)&&(this.bindings={}),J(this.bindings[e])&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:n,once:i})}},{key:"once",value:function(e,t,n){this.on(e,t,n,!0)}},{key:"off",value:function(e,t){var n=this;if(J(this.bindings)||J(this.bindings[e]))return!1;J(t)?delete this.bindings[e]:this.bindings[e].forEach((function(i,o){i.handler===t&&n.bindings[e].splice(o,1)}))}},{key:"trigger",value:function(e){var t=this;if(!J(this.bindings)&&this.bindings[e]){var n=$t(Array.prototype.slice.call(arguments));this.bindings[e].forEach((function(i,o){var r=i.ctx,a=i.handler,s=i.once,l=r||t;a.apply(l,n),s&&t.bindings[e].splice(o,1)}))}}}]),e}();function ln(e){var t=this;return function(n){if(t.isOpen()){var i=t.el&&n.target===t.el;(!J(e)&&n.target.matches(e)||i)&&t.tour.next()}}}function cn(){var e=this.options.advanceOn||{},t=e.event,n=e.selector;if(!t)return console.error("advanceOn was defined, but no event name was passed.");var i,o=ln.call(this,n);try{i=document.querySelector(n)}catch(e){}if(!J(n)&&!i)return console.error("No element was found for the selector supplied to advanceOn: ".concat(n));i?(i.addEventListener(t,o),this.on("destroy",(function(){return i.removeEventListener(t,o)}))):(document.body.addEventListener(t,o,!0),this.on("destroy",(function(){return document.body.removeEventListener(t,o,!0)})))}function dn(e,t){var n=this;e.events=e.events||{},J(e.action)||(e.events.click=e.action),e.events&&Object.entries(e.events).forEach((function(e){var i=W(e,2),o=i[0],r=i[1];if(K(r)){var a=r;r=function(){return n.tour.show(a)}}t.dataset.buttonEvent=!0,t.addEventListener(o,r),n.on("destroy",(function(){t.removeAttribute("data-button-event"),t.removeEventListener(o,r)}))}))}function pn(e){var t=this;e.addEventListener("click",(function(e){e.preventDefault(),t.cancel()}))}function un(e){var t=this;e.map((function(e){t[e]=t[e].bind(t)}))}Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var hn=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){e.exports={polyfill:function(){var e=window,t=document;if(!("scrollBehavior"in t.documentElement.style)||!0===e.__forceSmoothScrollPolyfill__){var n,i=e.HTMLElement||e.Element,o={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:i.prototype.scroll||l,scrollIntoView:i.prototype.scrollIntoView},a=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,s=(n=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?m.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):o.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!==r(arguments[0])?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(c(arguments[0])?o.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!==r(arguments[0])?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):m.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},i.prototype.scroll=i.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==c(arguments[0])){var e=arguments[0].left,t=arguments[0].top;m.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!==r(arguments[0])?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},i.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},i.prototype.scrollIntoView=function(){if(!0!==c(arguments[0])){var n=h(this),i=n.getBoundingClientRect(),r=this.getBoundingClientRect();n!==t.body?(m.call(this,n,n.scrollLeft+r.left-i.left,n.scrollTop+r.top-i.top),"fixed"!==e.getComputedStyle(n).position&&e.scrollBy({left:i.left,top:i.top,behavior:"smooth"})):e.scrollBy({left:r.left,top:r.top,behavior:"smooth"})}else o.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function l(e,t){this.scrollLeft=e,this.scrollTop=t}function c(e){if(null===e||"object"!==r(e)||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"===r(e)&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function d(e,t){return"Y"===t?e.clientHeight+s<e.scrollHeight:"X"===t?e.clientWidth+s<e.scrollWidth:void 0}function p(t,n){var i=e.getComputedStyle(t,null)["overflow"+n];return"auto"===i||"scroll"===i}function u(e){var t=d(e,"Y")&&p(e,"Y"),n=d(e,"X")&&p(e,"X");return t||n}function h(e){for(;e!==t.body&&!1===u(e);)e=e.parentNode||e.host;return e}function f(t){var n,i,o,r,s=(a()-t.startTime)/468;r=s=s>1?1:s,n=.5*(1-Math.cos(Math.PI*r)),i=t.startX+(t.x-t.startX)*n,o=t.startY+(t.y-t.startY)*n,t.method.call(t.scrollable,i,o),i===t.x&&o===t.y||e.requestAnimationFrame(f.bind(e,t))}function m(n,i,r){var s,c,d,p,u=a();n===t.body?(s=e,c=e.scrollX||e.pageXOffset,d=e.scrollY||e.pageYOffset,p=o.scroll):(s=n,c=n.scrollLeft,d=n.scrollTop,p=l),f({scrollable:s,method:p,startTime:u,startX:c,startY:d,x:i,y:r})}}}}));hn.polyfill;hn.polyfill();var fn,mn=(fn=0,function(){return++fn}),vn=function(e){function t(e,n){var i;return P(this,t),(i=U(this,q(t).call(this,e,n))).tour=e,un.call(R(i),["_show","cancel","complete","destroy","hide","isOpen","scrollTo","setupElements","show"]),i.setOptions(n),i.bindAdvance=cn.bind(R(i)),i.bindButtonEvents=dn.bind(R(i)),i.bindCancelLink=pn.bind(R(i)),i.setupTooltip=en.bind(R(i)),i.parseAttachTo=tn.bind(R(i)),U(i,R(i))}return j(t,e),z(t,[{key:"_addButtons",value:function(e){var t=this;if(Array.isArray(this.options.buttons)&&this.options.buttons.length){var n=document.createElement("footer");n.classList.add("shepherd-footer"),this.options.buttons.map((function(e){var i=Qt('<button class="shepherd-button '.concat(e.classes||"",'" tabindex="0">').concat(e.text,"</button>"));n.appendChild(i),t.bindButtonEvents(e,i)})),e.appendChild(n)}}},{key:"_addCancelLink",value:function(e,t){if(this.options.showCancelLink){var n=Qt('<a href class="shepherd-cancel-link"></a>');t.appendChild(n),e.classList.add("shepherd-has-cancel-link"),this.bindCancelLink(n)}}},{key:"_addContent",value:function(e,t){var n=Qt('<div class="shepherd-text"\n id="'.concat(t,'"\n ></div>')),i=this.options.text;X(i)&&(i=i.call(this,n)),i instanceof HTMLElement?n.appendChild(i):(K(i)&&(i=[i]),i.map((function(e){n.innerHTML+="<p>".concat(e,"</p>")}))),e.appendChild(n)}},{key:"_addKeyDownHandler",value:function(e){var t=this,n=e.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),i=W(n,1)[0],o=n[n.length-1];e.addEventListener("keydown",(function(e){switch(e.keyCode){case 9:if(1===n.length){e.preventDefault();break}e.shiftKey?document.activeElement===i&&(e.preventDefault(),o.focus()):document.activeElement===o&&(e.preventDefault(),i.focus());break;case 27:t.cancel();break;case 37:t.tour.back();break;case 39:t.tour.next()}}))}},{key:"_createTooltipContent",value:function(){var e=document.createElement("div"),t=this.options.classes||"",n="".concat(this.id,"-description"),i="".concat(this.id,"-label"),o=Qt('<div class="'.concat(t,'"\n data-shepherd-step-id="').concat(this.id,'"\n role="dialog"\n tabindex="0">')),r=document.createElement("header");if(this.options.title){var a=document.createElement("h3");a.classList.add("shepherd-title"),a.innerHTML="".concat(this.options.title),a.id=i,o.setAttribute("aria-labeledby",i),r.appendChild(a)}return e.classList.add("shepherd-content"),r.classList.add("shepherd-header"),o.appendChild(e),e.appendChild(r),J(this.options.text)||(this._addContent(e,n),o.setAttribute("aria-describedby",n)),this._addButtons(e),this._addCancelLink(o,r),o}},{key:"getTour",value:function(){return this.tour}},{key:"cancel",value:function(){this.tour.cancel(),this.trigger("cancel")}},{key:"complete",value:function(){this.tour.complete(),this.trigger("complete")}},{key:"destroy",value:function(){try{this.tooltip&&(this.tooltip.destroy(),this.tooltip=null),Y(this.el)&&this.el.parentNode&&(this.el.parentNode.removeChild(this.el),this.el=null),this.target&&this._updateStepTargetOnHide(),this.trigger("destroy")}catch(e){}}},{key:"hide",value:function(){this.tour.modal.hide(),this.trigger("before-hide"),document.body.removeAttribute("data-shepherd-step"),this.target&&this._updateStepTargetOnHide(),this.tooltip&&this.tooltip.hide(),this.trigger("hide")}},{key:"isOpen",value:function(){return Boolean(this.tooltip&&this.tooltip.state&&this.tooltip.state.isVisible)}},{key:"setupElements",value:function(){J(this.el)||this.destroy(),this.el=this._createTooltipContent(),this._addKeyDownHandler(this.el),this.options.advanceOn&&this.bindAdvance(),this.setupTooltip()}},{key:"scrollTo",value:function(e){var t=this.parseAttachTo().element;X(this.options.scrollToHandler)?this.options.scrollToHandler(t):Y(t)&&t.scrollIntoView(e)}},{key:"setOptions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=t;var n=this.options.when;this.destroy(),this.id=this.options.id||"step-".concat(mn()),n&&Object.entries(n).forEach((function(t){var n=W(t,2),i=n[0],o=n[1];e.on(i,o,e)}))}},{key:"show",value:function(){var e=this;if(X(this.options.beforeShowPromise)){var t=this.options.beforeShowPromise();if(!J(t))return t.then((function(){return e._show()}))}this._show()}},{key:"_show",value:function(){var e=this;this.tour.beforeShowStep(this),this.trigger("before-show"),this.el||this.setupElements(),this.target.classList.add("shepherd-enabled","shepherd-target"),document.body.setAttribute("data-shepherd-step",this.id),this.options.scrollTo&&setTimeout((function(){e.scrollTo(e.options.scrollTo)})),this.tooltip.show(),this.trigger("show"),this.el.focus()}},{key:"_updateStepTargetOnHide",value:function(){this.options.highlightClass&&this.target.classList.remove(this.options.highlightClass),this.target.classList.remove("shepherd-enabled","shepherd-target")}}]),t}(sn),gn="http://www.w3.org/2000/svg",yn="shepherdModalOverlayContainer",bn="shepherdModalMask",xn="shepherdModalMaskRect",wn="shepherdModalMaskOpening",Cn="shepherd-modal-is-visible",_n="shepherd-modal-target";function En(){var e,t=((e=document.createElementNS(gn,"svg")).setAttributeNS(null,"id",yn),e),n=document.createElementNS(gn,"defs"),i=function(){var e=document.createElementNS(gn,"mask");return Mn(e,{height:"100%",id:bn,width:"100%",x:"0",y:"0"}),e}(),o=function(){var e=document.createElementNS(gn,"rect");return Mn(e,{fill:"#FFFFFF",height:"100%",id:xn,width:"100%",x:"0",y:"0"}),e}(),r=function(){var e=document.createElementNS(gn,"rect");return Mn(e,{fill:"#000000",id:wn}),e}(),a=function(){var e=document.createElementNS(gn,"rect");return Mn(e,{height:"100%",width:"100%",x:"0",y:"0"}),e.setAttribute("mask","url(#".concat(bn,")")),e}();return i.appendChild(o),i.appendChild(r),n.appendChild(i),t.appendChild(n),t.appendChild(a),t}function kn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e.getBoundingClientRect&&t instanceof SVGElement){var i=e.getBoundingClientRect(),o=i.x,r=i.y,a=i.width,s=i.height,l=i.left,c=i.top;Mn(t,{x:(o||l)-n,y:(r||c)-n,width:a+2*n,height:s+2*n})}}function An(e){e.preventDefault()}function Ln(e){e.stopPropagation()}function Mn(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function Tn(e){var t=e.options.attachTo;if(!t)return null;var n=B(t);return"string"===n?function(e){var t=W(e.split(" "),1)[0];return document.querySelector(t)}(t):"object"===n?function(e){var t=e.element;if(t instanceof HTMLElement)return t;if(t instanceof SVGElement)return t;try{return document.querySelector(t)}catch(e){}return null}(t):null}function On(){"function"==typeof this._onScreenChange&&(window.removeEventListener("resize",this._onScreenChange,!1),window.removeEventListener("scroll",this._onScreenChange,!0)),window.addEventListener("resize",this._onScreenChange,!1),window.addEventListener("scroll",this._onScreenChange,!0);var e=document.querySelector("#".concat(yn));window.addEventListener("touchmove",An,{passive:!1}),e&&e.addEventListener("touchmove",Ln,!1)}var Sn=function(){function e(t){return P(this,e),this.createModalOverlay(),this.options=t,this}return z(e,[{key:"cleanup",value:function(){try{var e=this._modalOverlayElem;e&&e instanceof SVGElement&&e.parentNode.removeChild(e),this._modalOverlayElem=null,document.body.classList.remove(Cn)}catch(e){}}},{key:"createModalOverlay",value:function(){if(!this._modalOverlayElem){var e=document.getElementById("shepherdModalOverlayContainer");this._modalOverlayElem=e||En(),this._modalOverlayOpening=this._modalOverlayElem.querySelector("#".concat(wn)),this.hide(),e||document.body.appendChild(this._modalOverlayElem)}}},{key:"hide",value:function(){document.body.classList.remove(Cn),this._modalOverlayElem&&(this._modalOverlayElem.style.display="none")}},{key:"setupForStep",value:function(e){this.options.useModalOverlay?(this._styleForStep(e),this.show()):this.hide()}},{key:"show",value:function(){document.body.classList.add(Cn),this._modalOverlayElem&&(this._modalOverlayElem.style.display="block")}},{key:"_styleForStep",value:function(e){var t,n,i,o,r,a=this._modalOverlayOpening,s=Tn(e),l=e.options.modalOverlayOpeningPadding;s?(kn(s,a,l),this._onScreenChange=(n=kn.bind(this,s,a,l),i=0,function(){var e=this,t=arguments,a=function(){r=null,o||n.apply(e,t)},s=o&&!r;clearTimeout(r),r=setTimeout(a,i),s&&n.apply(e,t)}),On.call(this)):(t=this._modalOverlayOpening)&&t instanceof SVGElement&&Mn(t,{height:"0",x:"0",y:"0",width:"0"})}}]),e}(),Dn=!1;if("undefined"!=typeof window){var In={get passive(){Dn=!0}};window.addEventListener("testPassive",null,In),window.removeEventListener("testPassive",null,In)}var Nn,Bn,Pn="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),Fn=[],zn=!1,Zn=-1,Hn=function(e){return Fn.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},jn=function(e){var t=e||window.event;return!!Hn(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},qn=function(e,t){if(Pn){if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(e&&!Fn.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};Fn=[].concat(p(Fn),[n]),e.ontouchstart=function(e){1===e.targetTouches.length&&(Zn=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-Zn;!Hn(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?jn(e):e.stopPropagation())}(t,e)},zn||(document.addEventListener("touchmove",jn,Dn?{passive:!1}:void 0),zn=!0)}}else{!function(e){setTimeout((function(){if(void 0===Bn){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(Bn=document.body.style.paddingRight,document.body.style.paddingRight="".concat(n,"px"))}void 0===Nn&&(Nn=document.body.style.overflow,document.body.style.overflow="hidden")}))}(t);var i={targetElement:e,options:t||{}};Fn=[].concat(p(Fn),[i])}},Vn=function(){Pn?(Fn.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),zn&&(document.removeEventListener("touchmove",jn,Dn?{passive:!1}:void 0),zn=!1),Fn=[],Zn=-1):(setTimeout((function(){void 0!==Bn&&(document.body.style.paddingRight=Bn,Bn=void 0),void 0!==Nn&&(document.body.style.overflow=Nn,Nn=void 0)})),Fn=[])},Rn={trigger:"manual",arrow:!0,animation:"fade",duration:420,flip:!0,animateFill:!1,interactive:!0,hideOnClick:"toggle",multiple:!0};function Un(){"function"==typeof this._onScreenChange&&(window.removeEventListener("resize",this._onScreenChange,!1),window.removeEventListener("scroll",this._onScreenChange,!1),this._onScreenChange=null),window.removeEventListener("touchmove",An,{passive:!1})}var Wn,Yn=function(){var e=0;return function(){return++e}}(),Xn=new sn,Kn=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};P(this,t),e=U(this,q(t).call(this,n)),un.call(R(e),["back","cancel","complete","hide","next"]),e.options=n,e.steps=e.options.steps||[];var i=["active","cancel","complete","inactive","show","start"];return i.map((function(t){var n;n=t,e.on(n,(function(t){(t=t||{}).tour=R(e),Xn.trigger(n,t)}))})),e.modal=new Sn(n),e._setTooltipDefaults(),e._setTourID(),U(e,R(e))}return j(t,e),z(t,[{key:"addStep",value:function(e,t){var n,i;return J(t)?i=e:(n=e,i=t),i instanceof vn?i.tour=this:i=this.setupStep(i,n),this.steps.push(i),i}},{key:"back",value:function(){var e=this.steps.indexOf(this.currentStep);this.show(e-1,!1)}},{key:"cancel",value:function(){if(this.options.confirmCancel){var e=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";window.confirm(e)&&this.done("cancel")}else this.done("cancel")}},{key:"complete",value:function(){this.done("complete")}},{key:"done",value:function(e){var t;Array.isArray(this.steps)&&this.steps.forEach((function(e){return e.destroy()})),Un.call(this),(t=this.tourObject)&&t.steps.forEach((function(e){if(e.options&&!1===e.options.canClickTarget&&e.options.attachTo){var t=Tn(e);t instanceof HTMLElement&&(t.style.pointerEvents="auto")}})),this.trigger(e),Xn.activeTour=null,this._removeBodyAttrs(),this.trigger("inactive",{tour:this}),this.options.disableScroll&&Vn(),this.modal.cleanup()}},{key:"getById",value:function(e){return this.steps.find((function(t){return t.id===e}))}},{key:"getCurrentStep",value:function(){return this.currentStep}},{key:"hide",value:function(){var e=this.getCurrentStep();if(e)return e.hide()}},{key:"isActive",value:function(){return Xn.activeTour===this}},{key:"next",value:function(){var e=this.steps.indexOf(this.currentStep);e===this.steps.length-1?this.complete():this.show(e+1,!0)}},{key:"removeStep",value:function(e){var t=this,n=this.getCurrentStep();this.steps.some((function(n,i){if(n.id===e)return n.isOpen()&&n.hide(),n.destroy(),t.steps.splice(i,1),!0})),n&&n.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}},{key:"setupStep",value:function(e,t){return(K(t)||"number"==typeof t)&&(e.id=t.toString()),e=H({},this.options.defaultStepOptions,e),new vn(this,e)}},{key:"beforeShowStep",value:function(e){this.modal.setupForStep(e),this._styleTargetElementForStep(e)}},{key:"show",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=K(e)?this.getById(e):this.steps[e];if(n){this._updateStateBeforeShow();var i=X(n.options.showOn)&&!n.options.showOn();i?this._skipStep(n,t):(this.trigger("show",{step:n,previous:this.currentStep}),this.currentStep=n,n.show())}}},{key:"start",value:function(){this.trigger("start"),this.options.disableScroll&&qn(),this.currentStep=null,this._setupActiveTour(),this.next()}},{key:"_setupActiveTour",value:function(){this.modal.createModalOverlay(),this._addBodyAttrs(),this.trigger("active",{tour:this}),Xn.activeTour=this}},{key:"_styleTargetElementForStep",value:function(e){var t,n,i=Tn(e);i&&(t=i,(n=document.querySelector("".concat(_n)))&&n.classList.remove(_n),t.classList.add(_n),e.options.highlightClass&&i.classList.add(e.options.highlightClass),!1===e.options.canClickTarget&&(i.style.pointerEvents="none"))}},{key:"_skipStep",value:function(e,t){var n=this.steps.indexOf(e),i=t?n+1:n-1;this.show(i,t)}},{key:"_setTooltipDefaults",value:function(){Yt.setDefaultProps(Rn)}},{key:"_updateStateBeforeShow",value:function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}},{key:"_setTourID",value:function(){var e=this.options.tourName||"tour",t=Yn();this.id="".concat(e,"--").concat(t)}},{key:"_addBodyAttrs",value:function(){document.body.setAttribute("data-shepherd-active-tour",this.id),document.body.classList.add("shepherd-active")}},{key:"_removeBodyAttrs",value:function(){document.body.removeAttribute("data-shepherd-active-tour"),document.body.classList.remove("shepherd-active")}}]),t}(sn);H(Xn,{Tour:Kn,Step:vn,Evented:sn});var Jn=function(e){return 50===e?10:16},Gn=function(e,t){switch(e.toLowerCase()){case"top":return"translateY(".concat(Jn(t)-26,"px)");case"right":return"translateX(".concat(Jn(t),"px)");case"bottom":return"translateY(".concat(Jn(t),"px)");case"left":return"translateX(".concat(Jn(t)-26,"px)")}},Qn=function(e,t,n,i,o){var r=e.animation,a=void 0===r?{}:r,s=e.bg_color,l=void 0===s?"black":s,c=e.border,d=void 0===c?{}:c,p=e.buttons_config,u=void 0===p?[]:p,h=e.button_position,f=void 0===h?"right":h,m=e.corners,v=void 0===m?{}:m,g=e.shadow,y=void 0===g?"0 8px 16px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)":g,b=e.opacity,x=void 0===b?1:b,w=e.dismiss_outside_touch,C=void 0!==w&&w,_=e.dismiss_target_touch,E=void 0===_||_,k=e.position,L=void 0===k?"TOP":k,O=e.text_config,D=void 0===O?{}:O,I=e.title_config,N=void 0===I?{}:I,B=e.view_id,P=e.show_shadow,F=void 0!==P&&P,z=e.show_close_icon,Z=void 0!==z&&z,H=e.dim_background_color,j=void 0===H?"#0a0a0a":H,q=e.dim_background_opacity,V=void 0===q?.5:q,R=e.layout_type,U=void 0===R?"default":R,W=e.pb_color,Y=void 0===W?"orange":W,X=e.index,K=void 0===X?0:X,J=e.total,G=void 0===J?1:J,Q=t.configId,$=t.configName,ee=T(u,Wn,Q,$),te=ee.buttons_array,ne=ee.buttons_css,ie={color:D.color,fontSize:D.size,fontFamily:D.font_family,fontStyle:D.style};if(D.margin_config&&Object.keys(D.margin_config).length>0){var oe=D.margin_config;ie.margin="".concat(oe.top,"px ").concat(oe.right,"px ").concat(oe.bottom,"px ").concat(oe.left,"px")}var re=D.style;"bold"===re&&(ie.fontWeight=re);var ae,se={color:N.color,fontSize:N.size,fontFamily:N.font_family,fontStyle:N.style};if(N.margin_config&&Object.keys(N.margin_config).length>0){var le=N.margin_config;se.margin="".concat(le.top,"px ").concat(le.right,"px ").concat(le.bottom,"px ").concat(le.left,"px")}switch("bold"===(re=N.style)&&(ie.fontWeight=re),U){case"with_progress":ae='\n<div>\n <div style="height: 6px;background: '.concat(Y,";width: ").concat((K+1)/G*100,"%;border-radius: ").concat(v.enabled?v.width:0,'px;"></div>\n <header class="shepherd-header" style="').concat(N?"padding: 10px 10px 0 10px":"",'">\n ').concat(N?'<h3 class="shepherd-title" id="apxor-step-'.concat(K,'-label" style="padding: 0 !important;padding-right: 0.7em;">').concat(N.text,"</h3>"):"",'\n </header>\n <p style="padding: 8px 10px">').concat(D.text,"</p>\n</div>\n "),ae=(new DOMParser).parseFromString(ae,"text/html").body.children[0];break;default:ae=[D&&D.text?D.text:"Tap here"]}var ce={"border-radius":v.enabled?v.width:0,background:l,"border-color":d.color,"border-width":d.width},de=null;try{de=document.querySelector("#"+B)}catch(e){}if(!de)try{de=document.querySelector(B)}catch(e){}if(de||(de=A(B)),de){var pe=document.createElement("span");pe.setAttribute("id","apxor-style-"+Q+"-step-"+K);var ue=document.createElement("style");ue.innerHTML='\n#shepherdModalOverlayContainer {\n -ms-filter: "progid:dximagetransform.microsoft.gradient.alpha(Opacity=50)";\n filter: alpha(opacity=50);height: 100vh;left: 0;opacity: '.concat(null!=V?V:.5,";position: fixed;\n top: 0;transition: all .3s ease-out;width: 100vw;z-index: 9997;fill: ").concat(null!=j?j:"transparent","\n}\n#shepherdModalOverlayContainer #shepherdModalMask, #shepherdModalOverlayContainer #shepherdModalMaskRect {\n height: 100vh;width: 100vw\n}\n.shepherd-modal.shepherd-enabled {\n position: relative;z-index: 9998\n}\n.shepherd-active.shepherd-modal-is-visible :not(.shepherd-target) {\n pointer-events: none\n}\n.shepherd-active.shepherd-modal-is-visible .shepherd-button, .shepherd-active.shepherd-modal-is-visible .shepherd-button *, .shepherd-active.shepherd-modal-is-visible .shepherd-cancel-link, .shepherd-active.shepherd-modal-is-visible .shepherd-cancel-link *, .shepherd-active.shepherd-modal-is-visible .shepherd-element, .shepherd-active.shepherd-modal-is-visible .shepherd-element *, .shepherd-active.shepherd-modal-is-visible .shepherd-target, .shepherd-active.shepherd-modal-is-visible .shepherd-target * {\n pointer-events: auto\n}\n.tippy-popper.shepherd {\n z-index: 999999\n}\n.tippy-popper.shepherd[x-placement^=top] {\n margin-top: 0px\n}\n.tippy-popper.shepherd[x-placement^=bottom] {\n margin-top: 8px\n}\n.tippy-popper.shepherd[x-placement^=left] {\n margin-right: 0px\n}\n.tippy-popper.shepherd[x-placement^=right] {\n margin-left: 0px\n}\n.tippy-popper.shepherd .tippy-tooltip .tippy-content {\n max-height: 100%;padding: 0;text-align: left;max-width: 400px;\n}\n.shepherd-element, .shepherd-element *, .shepherd-element:after, .shepherd-element :after, .shepherd-element:before, .shepherd-element :before {\n box-sizing: border-box\n}\n.shepherd-element {\n outline: none;\n}\n.shepherd-element .shepherd-content header {\n *zoom: 1;align-items: left;border-top-left-radius: 5px;border-top-right-radius: 5px;\n display: flex;justify-content: left;line-height: 2em;").concat(Z?"padding: .75em;":"",'\n}\n.shepherd-element .shepherd-content header:after {\n clear: both;content: "";display: table\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link, .shepherd-element .shepherd-content header .shepherd-title {\n margin: 0;padding: 0;position: relative;vertical-align: middle\n}\n.shepherd-element .shepherd-content header .shepherd-title {\n color: ').concat(se.color,";display: flex;flex: 1 0 auto;\n font-size: ").concat(se.fontSize,"px;font-family: ").concat(se.fontFamily,";\n font-weight: ").concat("bold"!==se.fontStyle?"normal":se.fontStyle,";font-style: ").concat("italic"===se.fontStyle?"italic":"unset",";\n line-height: ").concat("default"===U?"26":"20",'px;letter-spacing:0.01em;padding: .7em;padding-bottom: 0px;max-width: 400px;\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link {\n color: hsla(0, 0%, 70.2%, .75);font-size: 2em;margin-left: auto;\n text-decoration: none;transition: color .5s ease\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link:before {\n mix-blend-mode: screen;content: "×"\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link:hover {\n mix-blend-mode: difference;\n}\n.shepherd-element .shepherd-content .shepherd-text {\n line-height: 1em;').concat("default"===U?"padding:14px;padding-top:4px":"","\n}\n.shepherd-element .shepherd-content .shepherd-text a,\n.shepherd-element .shepherd-content .shepherd-text a:active,\n.shepherd-element .shepherd-content .shepherd-text a:visited {\n border-bottom: 1px dotted rgba(0, 0, 0, .75);color: ").concat(ie.color,";\n opacity: 0.75;text-decoration: none\n}\n.shepherd-element .shepherd-content .shepherd-text a:active:hover, \n.shepherd-element .shepherd-content .shepherd-text a:hover,\n.shepherd-element .shepherd-content .shepherd-text a:visited:hover {\n border-bottom-style: solid\n}\n.shepherd-element .shepherd-content .shepherd-text p {\n margin-top: 0\n}\n.shepherd-element .shepherd-content .shepherd-text p:last-child {\n margin-bottom: 0\n}\n.shepherd-content > .shepherd-text p {\n font-size: ").concat(ie.fontSize,"px;font-family: ").concat(ie.fontFamily,"; \n font-weight: ").concat("bold"!==ie.fontStyle?"normal":ie.fontStyle,";\n font-style: ").concat("italic"===ie.fontStyle?"italic":"unset",";\n color: ").concat(ie.color,";line-height: ").concat("default"===U?"26":"20","px;letter-spacing:0.01em;\n}\n").concat(M(ne,f,".shepherd-element .shepherd-content "),"\n@-webkit-keyframes cycle {\n 0% { transform: ").concat(Gn(L,0),"; }\n 50% { transform: ").concat(Gn(L,50),"; }\n 100% { transform: ").concat(Gn(L,100),"; }\n}\n@keyframes cycle {\n 0% { transform: ").concat(Gn(L,0),"; }\n 50% { transform: ").concat(Gn(L,50),"; }\n 100% { transform: ").concat(Gn(L,100),"; }\n}\n.tippy-tooltip.apxor-").concat(Q,"-step-").concat(K,"-theme {\n animation: ").concat(a.enabled?a.type+" 1000ms":"none",";\n animation-timing-function: ease-in-out;animation-iteration-count: infinite;\n box-shadow: ").concat(F?y:"none",";color: ").concat(ie.color,";\n opacity: ").concat(x,";border-radius: ").concat(ce["border-radius"]+"px",";\n background-color: ").concat(ce.background,";").concat(function(e){switch(e.toUpperCase()){case"TOP":return"top: -8px !important";case"LEFT":return"left: 0px !important";case"RIGHT":return"left: -0px !important";case"BOTTOM":return"top: 0px !important"}}(L),";\n}\n.apxor-").concat(Q,"-step-").concat(K,"-theme .tippy-roundarrow {\n fill: ").concat(ce.background,";\n}\n.tippy-tooltip[data-placement^='top'] .tippy-arrow {\n border-top-color: ").concat(ce.background,";\n}\n.tippy-tooltip[data-placement^='bottom'] .tippy-arrow {\n border-bottom-color: ").concat(ce.background,";\n}\n.tippy-tooltip[data-placement^='left'] .tippy-arrow {\n border-left-color: ").concat(ce.background,";\n}\n.tippy-tooltip[data-placement^='right'] .tippy-arrow {\n border-right-color: ").concat(ce.background,";\n}\n "),pe.appendChild(ue),de.parentNode.insertBefore(pe,de);var he=function(e){return function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(o)try{Wn.complete(),i&&e.logActionEvent("InlineTargetViewClicked",t,n)}catch(t){e.isShowingAction=!1,e.currentAction=null,console.error(t)}}(n,Q,$,!0,E)},fe=function(){var e;try{var t;null===(t=Wn)||void 0===t||t.complete()}catch(e){console.error(e)}ve.disconnect(),ge.disconnect();try{var n,i=document.getElementById("apxor-style-"+Q+"-step-"+K);null==i||null===(n=i.parentNode)||void 0===n||n.removeChild(i)}catch(e){}try{var r,a=document.getElementById("shepherdModalOverlayContainer");null==a||null===(r=a.parentNode)||void 0===r||r.removeChild(a)}catch(e){}o&&o(null===(e=Wn)||void 0===e?void 0:e._isCancelled),de.removeEventListener("click",he)},me=!1,ve=new MutationObserver((function(){if(!document.body.contains(de)){document.getElementById("shepherdModalOverlayContainer").remove();var e=document.getElementsByClassName("apxor-".concat(Q,"-step-").concat(K,"-theme"));e.length>0&&e[0]&&e[0].parentNode&&e[0].parentNode.remove(),fe()}})),ge=new IntersectionObserver((function(){var e=S(de);if(!e&&me){document.getElementById("shepherdModalOverlayContainer").remove();var t=document.getElementsByClassName("apxor-".concat(Q,"-step-").concat(K,"-theme"));t.length>0&&t[0]&&t[0].parentNode&&t[0].parentNode.remove(),fe()}e&&(me=!0)}));Wn.addStep("apxor-step-"+K,{title:"default"===U&&N&&N.text?N.text:null,text:ae,classes:"apxor-".concat(Q,"-step-").concat(K,"-theme"),attachTo:{element:de,on:L.toLowerCase()},showCancelLink:Z,buttons:te,tippyOptions:{allowHTML:!0,arrow:!0,flipOnUpdate:!0,interactive:!0,maxWidth:"100%",hideOnClick:C,theme:"apxor-".concat(Q,"-step-").concat(K),onShow:function(){i&&i(),de.addEventListener("click",he),ve.observe(document.body,{childList:!0,subtree:!0}),ge.observe(de)},onHidden:fe}})}else console.warn("Element not found with id or path")},$n=function(e,t,n,i,o,r,a){var s,l,c=Array.isArray(t)&&t.length>0,d=e.delay,p=e.dim_background,u=e.view_id,h=e.find_interval,f=void 0===h?0:h,m=e.scrollToView,v=void 0!==m&&m;"Script"===(null===(s=e.title_config)||void 0===s?void 0:s.text)&&(e.title_config.isDynamicText?I(e.title_config):N(e.title_config)),"Script"===(null===(l=e.text_config)||void 0===l?void 0:l.text)&&(e.text_config.isDynamicText?I(e.text_config):N(e.text_config));var g=!1;v&&(g={behavior:"smooth",block:"center"}),Wn=new Xn.Tour({defaultStepOptions:{scrollTo:g},useModalOverlay:c||p});var y=function(){var e=document.getElementById(u);if(!e)try{e=document.querySelector(u)}catch(e){}return e||(e=A(u)),e},b=function(n){try{var s=n.getBoundingClientRect();if(0===s.width||0===s.height)return console.warn("Width and height are 0 for: ",u,". Can't show"),void(o.currentAction=null)}catch(e){return o.isShowingAction=!1,void(o.currentAction=null)}if(c?t.forEach((function(e,t){var n=e.ui;Qn(n,i,o,r,a)})):Qn(e,i,o,r,a),o.isShowingAction)window.ApxorLogger.error("An action already being shown");else try{Wn.start(),o.isShowingAction=!0}catch(e){o.isShowingAction=!1,o.currentAction=null,console.error(e)}};return setTimeout((function(){var e=y();e?b(e):(console.warn("Element with id:".concat(u," not found.")),f?(console.warn("Rechecking"),function(e){var t=new Date,n=setInterval((function(){var i=y();i?(clearInterval(n),b(i)):(new Date-t)/1e3>10&&(clearInterval(n),console.warn("Element with id:".concat(e," not found.")),o.currentAction=null)}),f)}(u)):o.currentAction=null)}),d),!0===n.auto_dismiss&&setTimeout((function(){try{Wn.complete()}catch(e){o.isShowingAction=!1,o.currentAction=null,console.error(e)}}),d+n.duration),Wn.complete};function ei(e){for(var t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=n.length,o=0;o<e;o++)t+=n.charAt(Math.floor(Math.random()*i));return t}var ti=ei(10);function ni(){return[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some((function(e){return navigator.userAgent.match(e)}))}function ii(e){var t=e.color,n=void 0===t?"#000":t,i=e.font_family,o=void 0===i?"cursive":i,r=e.margin_config,a=void 0===r?{}:r,s=e.size,l=void 0===s?14:s,c=e.style,d=void 0===c?"bold":c,p=e.text,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desc",h=document.createElement("span");h.setAttribute("id",ti+"-"+u),h.className="apx-class-".concat(ti,"-").concat(u);var f=document.createElement("style");return f.innerHTML="\n.apx-class-".concat(ti,"-").concat(u," {\n z-index:99999;text-align:initial;color:").concat(n," !important;\n font-family:").concat(o," !important;font-size:").concat(l,"px !important;font-weight:").concat(d," !important;\n font-style:").concat("normal"===d||"italic"===d?d+" !important":"unset",";max-width:400px;\n}\n "),Object.keys(a).length>0&&(h.style.margin="".concat(a.top,"px ").concat(a.right,"px ").concat(a.bottom,"px ").concat(a.left,"px")),h.appendChild(f),h.innerHTML=h.innerHTML+p,h}function oi(e,t,n,i,o,r){var a=Math.sqrt(Math.pow(e,2)+Math.pow(t,2)),s=a,l=n-(a-e)/2,c=i-(a-t)/2;"circle"!=o&&(a=e,s=t,l=n,c=i);var d=document.createElement("div");return d.setAttribute("id",ti+"-ripple-div"),r&&(d.innerHTML=function(e,t,n){return"\n<style>\n.ripple-animator {\n position: relative;display: -webkit-box;display: flex;-webkit-box-orient: horizontal;\n -webkit-box-direction: normal;flex-direction: row;-webkit-box-pack: center;\n justify-content: center;-webkit-box-align: center;align-items: center;\n height: ".concat(n,"px !important;width: ").concat(t,"px !important;\n border-radius: ").concat("circle"===e?"100%":"0",";\n box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.25);\n}\n.ripple-animator span {\n position: relative;font-size: 72px;top: 5px;left: -5px;\n}\n.ripple-animator::before {\n opacity: 0;display: -webkit-box;display: flex;-webkit-box-orient: horizontal;\n -webkit-box-direction: normal;flex-direction: row;-webkit-box-pack: center;\n justify-content: center;-webkit-box-align: center;align-items: center;\n position: ").concat(ni()?"unset":"absolute",";\n top: 0;left: 0;right: 0;bottom: 0;content: '';\n height: ").concat(ni()?n-9:n,"px !important;width: ").concat(t,"px !important;\n border: 5px solid rgba(255, 255, 255, 0.7);border-radius: ").concat("circle"===e?"100%":"0",";\n -webkit-animation-name: ripple;animation-name: ripple;-webkit-animation-duration: 1.5s;\n animation-duration: 1.5s;-webkit-animation-delay: 0.3s;animation-delay: 0.3s;\n -webkit-animation-iteration-count: infinite;animation-iteration-count: infinite;\n -webkit-animation-timing-function: cubic-bezier(0.65, 0, 0.34, 1);\n animation-timing-function: cubic-bezier(0.65, 0, 0.34, 1);\n z-index: 99999;\n}\n@-webkit-keyframes ripple {\n from {opacity: 1;-webkit-transform: scale3d(1, 1, 1);transform: scale3d(1, 1, 1);}\n to {opacity: 0;-webkit-transform: scale3d(1.25, 1.25, 1);transform: scale3d(1.25, 1.25, 1);}\n}\n@keyframes ripple {\n from {opacity: 1;-webkit-transform: scale3d(1, 1, 1);transform: scale3d(1, 1, 1);}\n to {opacity: 0;-webkit-transform: scale3d(1.25, 1.25, 1);transform: scale3d(1.25, 1.25, 1);}\n}\n</style>")}(o,a,s)),d.style.position="absolute",d.style.width="".concat(a,"px"),d.style.height="".concat(s,"px"),d.style.left="".concat(l,"px"),d.style.top="".concat(c,"px"),d.classList.add("ripple-animator"),d.style.borderRadius="".concat("circle"===o?"50%":"0"),d.style.visibility="hidden",document.body.appendChild(d),d}function ri(e,t){return'\n <svg\n height="'.concat(document.scrollingElement.scrollHeight,'" \n width="').concat(document.scrollingElement.scrollWidth,'"\n class="apx-fade-in">\n <defs>\n <mask\n id="apx-mask"\n x="0"\n y="0"\n height="').concat(document.scrollingElement.scrollHeight,'" \n width="').concat(document.scrollingElement.scrollWidth,'">\n ').concat(e,"\n </mask>\n </defs>\n ").concat(t,"\n </svg>\n ")}function ai(e){var t=e.opacity,n=e.type,i=document.createElement("div");i.setAttribute("id",ti+"-svg"),i.style.position="absolute",i.style.left=0,i.style.top=0,i.style.zIndex=99998,i.style.width="100%",i.style.height="99%";var o="";return o="circle"===n?function(e){var t=e.bg_color,n=e.opacity,i=e.innerRadius,o=e.innerCenterX,r=e.innerCenterY,a=e.outerRadius,s=e.outerCircleCenterX,l=e.outerCircleCenterY;return ri('\n <rect\n x="'.concat(s-a,'"\n y="').concat(l-a<0?0:l-a,'"\n height="').concat(2*a,'"\n width="').concat(2*a,'"\n fill="#fff" />\n <circle\n cx="').concat(o,'"\n cy="').concat(r,'"\n r="').concat(i,'" />\n '),'\n <circle\n cx="'.concat(s,'" \n cy="').concat(l,'" \n r="').concat(a,'" \n fill="').concat(t,'" \n fill-opacity="').concat(n,'"\n mask="url(#apx-mask)" />\n '))}(e):function(e){var t=e.bg_color,n=e.opacity,i=e.targetElementLeft,o=e.targetElementTop,r=e.targetElementWidth,a=e.targetElementHeight;return ri('\n <rect\n x="0" y="0"\n height="'.concat(document.scrollingElement.scrollHeight,'" \n width="').concat(document.scrollingElement.scrollWidth,'" \n fill="#fff" />\n <rect\n x="').concat(i,'" \n y="').concat(o,'" \n width="').concat(r,'" \n height="').concat(a,'" />\n '),'\n <rect\n x="0" y="0"\n height="'.concat(document.scrollingElement.scrollHeight,'" \n width="').concat(document.scrollingElement.scrollWidth,'" \n mask="url(#apx-mask)"\n fill="').concat(t,'" \n fill-opacity="').concat(n,'" />\n '))}(e),i.innerHTML="\n <style>\n @keyframes apx-anim {\n from {\n opacity: 0;\n }\n\n to {\n opacity: ".concat(t,";\n }\n }\n .apx-fade-in {\n animation: apx-anim 0.4s linear;\n }\n </style>\n ").concat(o),document.body.appendChild(i),i}function si(e,t,n,i,o){var r,a,s=e.bg_color,l=e.buttons_config,c=void 0===l?[]:l,d=e.button_position,p=e.coach_mark_details,u=p.has_ripple,h=void 0!==u&&u,f=p.type,m=void 0===f?"circle":f,v=e.delay,g=e.dismiss_outside_touch,y=void 0!==g&&g,b=e.opacity,x=void 0===b?.8:b,w=e.position,C=void 0===w?"TOP":w,_=e.text_config,E=e.title_config,L=void 0===E?null:E,O=e.view_id,D=e.scroll_to_view,B=void 0!==D&&D,P=t.configId,F=t.configName;"Script"===(null===(r=e.title_config)||void 0===r?void 0:r.text)&&(e.title_config.isDynamicText?I(e.title_config):N(e.title_config)),"Script"===(null===(a=e.text_config)||void 0===a?void 0:a.text)&&(e.text_config.isDynamicText?I(e.text_config):N(e.text_config));var z=document.getElementById(O);if(!z)try{z=document.querySelector(O)}catch(e){}if(z||(z=A(O)),z)if(ti=ei(10),B||S(z)){var Z=!1,H=new MutationObserver((function(){document.body.contains(z)||Q()})),j=new IntersectionObserver((function(){var e=S(z);!e&&Z&&Q(),e&&(Z=!0)})),q=function(e){var t=e.getBoundingClientRect(),n=t.left+window.scrollX,i=t.top+window.scrollY;return{left:n,top:i,right:t.right+window.scrollX,bottom:t.bottom+window.scrollY,x:k(t.x)?t.x+window.scrollX:n,y:k(t.y)?t.y+window.scrollY:i,width:t.width,height:t.height}}(z),V=q.left,R=void 0===V?0:V,U=q.top,W=void 0===U?0:U,Y=q.width,X=void 0===Y?0:Y,K=q.height,J=void 0===K?0:K,G=q.left<window.innerWidth/2;if(0!==J&&0!==X){var Q=function(){H.disconnect(),j.disconnect(),ve.parentNode.removeChild(ve),$.parentNode.removeChild($),oe.parentNode.removeChild(oe),o&&o(),ge&&clearTimeout(ge)},$=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=null;if(!t&&e?s=ii(e):t&&e&&((s=document.createElement("div")).style.display="inline-flex",s.style.flexDirection="column",s.style.visibility="hidden",s.style.textAlign="center",s.style.lineHeight="26px",s.style.letterSpacing="0.01em",s.appendChild(ii(t)),s.appendChild(ii(e))),n&&n.length>0){var l=document.createElement("footer");l.className="shepherd-footer",l.style.zIndex=99999,l.style.margin="8px",l.style.padding="0";var c=function(){a&&a()},d=T(n,{next:c,complete:c,cancel:c},o,r),p=d.buttons_array,u=d.buttons_css,h=document.createElement("style");h.innerHTML=M(u,i),l.appendChild(h),p.forEach((function(e){var t=e.classes,n=e.text,i=e.action,o=document.createElement("button");o.className="shepherd-button "+t,o.innerText=n,o.onclick=function(){return i()},l.appendChild(o)}));var f=document.createElement("div");f.style.display="inline-flex",f.style.flexDirection="column",f.style.visibility="hidden",f.appendChild(s),f.appendChild(l),s=f}return s.style.position="absolute",document.body.appendChild(s),s}(_,L,c,d,P,F,Q),ee=$.offsetWidth,te=$.offsetHeight,ne=0,ie=0;_&&_.margin_config&&(ne=Number(_.margin_config.left)||0,ie=Number(_.margin_config.right)||0);var oe=oi(X,J,R,W,m,h),re=R+X/2,ae=W+J/2,se=Math.sqrt(Math.pow(X,2)+Math.pow(J,2))/2,le=se+Math.max(ee,X)/2+10,ce=-1,de=-1,pe=-1,ue=-1,he=ae-se,fe=ae+se;switch(C){case"TOP":de=(pe=re-ee/2)<0?5:pe,ce="circle"===m?ae-se-te-25:W-te-25,ue=fe-Math.abs(fe-ce)/2;break;case"BOTTOM":case"RIGHT":case"LEFT":de=(pe=re-ee/2)<0?5:pe,ue=he+((ce="circle"===m?ae+se+25:W+J+25)+te-he)/2}if(-1!==de&&-1!==ce&&-1!==ue){!G&&de+ee>window.innerWidth&&(de=window.innerWidth-ee-ne-ie-10),$.style.left="".concat(de,"px"),$.style.top="".concat(ce,"px");var me=((pe=Math.min(R,de))+Math.max(R+X,de+ee))/2;(me=Math.min(me,document.scrollingElement.scrollWidth))<0&&(me=0),(ue=Math.min(ue,document.scrollingElement.scrollHeight))<0&&(ue=0);var ve=ai({bg_color:s,opacity:x,innerRadius:se,innerCenterX:re,innerCenterY:ae,outerRadius:le,outerCircleCenterX:me,outerCircleCenterY:ue,targetElementLeft:R,targetElementTop:W,targetElementWidth:X,targetElementHeight:J,type:m});ve.style.visibility="hidden",oe.style.visibility="hidden",$.style.visibility="hidden";var ge=null,ye=function(e){var t=!e,n=z.getBoundingClientRect();e&&e.clientX>=n.left&&e.clientX<=n.left+n.width&&e.clientY>=n.top&&e.clientY<=n.top+n.height&&(t=!0),(y||t)&&Q()};return n&&!0===n.auto_dismiss&&(ge=setTimeout((function(){return ye()}),v+n.duration)),ve.style.visibility="visible",oe.style.visibility="visible",$.style.visibility="visible",$.childElementCount>0&&($.children[0].style.visibility="visible"),y&&ve.addEventListener("click",ye),oe.addEventListener("click",ye),B&&("TOP"===C?window.scrollTo({top:ue-le,behavior:"smooth"}):"BOTTOM"===C&&window.scrollTo({top:Math.min(document.scrollingElement.scrollHeight,ue+le),behavior:"smooth"})),H.observe(document.body,{childList:!0,subtree:!0}),j.observe(z),i&&i(),ye}console.warn("Failed to identify the right place for text")}else console.warn("Can't show on an invisible element: ",O)}else console.warn("Element ",O," not in viewport. Can't show");else console.warn("Element not found with id or path: ",O)}var li=['<svg width="40" height="40" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9046C0 4.88216 4.88188 3.24249e-05 10.9049 3.24249e-05C16.9267 3.24249e-05 21.8085 4.88216 21.8085 10.9046C21.8085 16.9269 16.9267 21.809 10.9049 21.809C4.88188 21.809 0 16.9269 0 10.9046Z" fill="#E5510A"/>\n <path d="M7.6916 8.87557C7.6916 9.62346 7.33083 10.2299 6.88691 10.2299C6.44426 10.2299 6.0835 9.62346 6.0835 8.87557C6.0835 8.12768 6.44426 7.52116 6.88691 7.52116C7.33083 7.52116 7.6916 8.12768 7.6916 8.87557Z" fill="black"/>\n <path d="M15.7255 8.87557C15.7255 9.62346 15.366 10.2299 14.9221 10.2299C14.4782 10.2299 14.1187 9.62346 14.1187 8.87557C14.1187 8.12768 14.4782 7.52116 14.9221 7.52116C15.366 7.52116 15.7255 8.12768 15.7255 8.87557Z" fill="black"/>\n <path d="M9.15239 6.99092L8.42062 7.72205L5.98096 5.28226L6.71273 4.55126L9.15239 6.99092Z" fill="black"/>\n <path d="M13.3882 7.72205L12.6577 6.99092L15.0974 4.55126L15.8279 5.28226L13.3882 7.72205Z" fill="black"/>\n <path d="M7 16.4995C8 12.4995 13 10.4995 15 16.4998" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.808594 10.9046C0.808594 4.88216 5.69048 3.24249e-05 11.7135 3.24249e-05C17.7353 3.24249e-05 22.6171 4.88216 22.6171 10.9046C22.6171 16.9269 17.7353 21.809 11.7135 21.809C5.69048 21.809 0.808594 16.9269 0.808594 10.9046Z" fill="#EA731D"/>\n <path d="M8.5002 8.87557C8.5002 9.62346 8.13942 10.2299 7.6955 10.2299C7.25286 10.2299 6.89209 9.62346 6.89209 8.87557C6.89209 8.12768 7.25286 7.52116 7.6955 7.52116C8.13942 7.52116 8.5002 8.12768 8.5002 8.87557Z" fill="black"/>\n <path d="M16.5341 8.87557C16.5341 9.62346 16.1746 10.2299 15.7307 10.2299C15.2867 10.2299 14.9272 9.62346 14.9272 8.87557C14.9272 8.12768 15.2867 7.52116 15.7307 7.52116C16.1746 7.52116 16.5341 8.12768 16.5341 8.87557Z" fill="black"/>\n <path d="M7.80859 16.4998C8.80859 12.4998 13.8086 10.4997 15.8086 16.5" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.617188 10.9046C0.617188 4.88216 5.49907 3.24249e-05 11.5221 3.24249e-05C17.5439 3.24249e-05 22.4257 4.88216 22.4257 10.9046C22.4257 16.9269 17.5439 21.809 11.5221 21.809C5.49907 21.809 0.617188 16.9269 0.617188 10.9046Z" fill="#EA8F4D"/>\n <path d="M8.30879 8.87557C8.30879 9.62346 7.94802 10.2299 7.50409 10.2299C7.06145 10.2299 6.70068 9.62346 6.70068 8.87557C6.70068 8.12768 7.06145 7.52116 7.50409 7.52116C7.94802 7.52116 8.30879 8.12768 8.30879 8.87557Z" fill="black"/>\n <path d="M16.3427 8.87557C16.3427 9.62346 15.9832 10.2299 15.5393 10.2299C15.0953 10.2299 14.7358 9.62346 14.7358 8.87557C14.7358 8.12768 15.0953 7.52116 15.5393 7.52116C15.9832 7.52116 16.3427 8.12768 16.3427 8.87557Z" fill="black"/>\n <path d="M7.61719 15.4999C8.95052 13.0405 13.1172 11.9999 15.6172 15.5" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.425781 10.9046C0.425781 4.88216 5.30767 3.24249e-05 11.3307 3.24249e-05C17.3524 3.24249e-05 22.2343 4.88216 22.2343 10.9046C22.2343 16.9269 17.3524 21.809 11.3307 21.809C5.30767 21.809 0.425781 16.9269 0.425781 10.9046Z" fill="#F1B052"/>\n <path d="M8.11738 8.87557C8.11738 9.62346 7.75661 10.2299 7.31269 10.2299C6.87004 10.2299 6.50928 9.62346 6.50928 8.87557C6.50928 8.12768 6.87004 7.52116 7.31269 7.52116C7.75661 7.52116 8.11738 8.12768 8.11738 8.87557Z" fill="black"/>\n <path d="M16.1513 8.87557C16.1513 9.62346 15.7918 10.2299 15.3479 10.2299C14.9039 10.2299 14.5444 9.62346 14.5444 8.87557C14.5444 8.12768 14.9039 7.52116 15.3479 7.52116C15.7918 7.52116 16.1513 8.12768 16.1513 8.87557Z" fill="black"/>\n <path d="M8.42578 15.5002C9.92578 14.0001 12.4258 14.0001 13.9258 15.5001" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.234375 10.9046C0.234375 4.88216 5.11626 3.24249e-05 11.1393 3.24249e-05C17.161 3.24249e-05 22.0429 4.88216 22.0429 10.9046C22.0429 16.9269 17.161 21.809 11.1393 21.809C5.11626 21.809 0.234375 16.9269 0.234375 10.9046Z" fill="#F8C94F"/>\n <path d="M7.92598 8.87557C7.92598 9.62346 7.5652 10.2299 7.12128 10.2299C6.67864 10.2299 6.31787 9.62346 6.31787 8.87557C6.31787 8.12768 6.67864 7.52116 7.12128 7.52116C7.5652 7.52116 7.92598 8.12768 7.92598 8.87557Z" fill="black"/>\n <path d="M15.9599 8.87557C15.9599 9.62346 15.6004 10.2299 15.1564 10.2299C14.7125 10.2299 14.353 9.62346 14.353 8.87557C14.353 8.12768 14.7125 7.52116 15.1564 7.52116C15.6004 7.52116 15.9599 8.12768 15.9599 8.87557Z" fill="black"/>\n <path d="M7.73438 15.5002C9.73438 15.4999 11.7344 15.4997 14.7344 15.5" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9046C0 4.88216 4.88188 3.20353e-05 10.9049 3.20353e-05C16.9267 3.20353e-05 21.8085 4.88216 21.8085 10.9046C21.8085 16.9269 16.9267 21.809 10.9049 21.809C4.88188 21.809 0 16.9269 0 10.9046Z" fill="#F8C94F"/>\n <path d="M7.6916 8.87557C7.6916 9.62346 7.33083 10.2299 6.88691 10.2299C6.44426 10.2299 6.0835 9.62346 6.0835 8.87557C6.0835 8.12768 6.44426 7.52116 6.88691 7.52116C7.33083 7.52116 7.6916 8.12768 7.6916 8.87557Z" fill="black"/>\n <path d="M15.7255 8.87557C15.7255 9.62346 15.366 10.2299 14.9221 10.2299C14.4782 10.2299 14.1187 9.62346 14.1187 8.87557C14.1187 8.12768 14.4782 7.52116 14.9221 7.52116C15.366 7.52116 15.7255 8.12768 15.7255 8.87557Z" fill="black"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.0429688 10.9046C0.0429688 4.88216 4.92485 3.24249e-05 10.9479 3.24249e-05C16.9696 3.24249e-05 21.8515 4.88216 21.8515 10.9046C21.8515 16.9269 16.9696 21.809 10.9479 21.809C4.92485 21.809 0.0429688 16.9269 0.0429688 10.9046Z" fill="#F6DE4F"/>\n <path d="M7.73457 8.87557C7.73457 9.62346 7.3738 10.2299 6.92987 10.2299C6.48723 10.2299 6.12646 9.62346 6.12646 8.87557C6.12646 8.12768 6.48723 7.52116 6.92987 7.52116C7.3738 7.52116 7.73457 8.12768 7.73457 8.87557Z" fill="black"/>\n <path d="M15.7685 8.87557C15.7685 9.62346 15.409 10.2299 14.965 10.2299C14.5211 10.2299 14.1616 9.62346 14.1616 8.87557C14.1616 8.12768 14.5211 7.52116 14.965 7.52116C15.409 7.52116 15.7685 8.12768 15.7685 8.87557Z" fill="black"/>\n <path d="M13.543 14.3751C12.043 15.8751 9.54297 15.8751 8.04297 14.3751" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.851562 10.9046C0.851562 4.88216 5.73345 3.24249e-05 11.7565 3.24249e-05C17.7782 3.24249e-05 22.6601 4.88216 22.6601 10.9046C22.6601 16.9269 17.7782 21.809 11.7565 21.809C5.73345 21.809 0.851562 16.9269 0.851562 10.9046Z" fill="#D7D55A"/>\n <path d="M8.54316 8.87557C8.54316 9.62346 8.18239 10.2299 7.73847 10.2299C7.29582 10.2299 6.93506 9.62346 6.93506 8.87557C6.93506 8.12768 7.29582 7.52116 7.73847 7.52116C8.18239 7.52116 8.54316 8.12768 8.54316 8.87557Z" fill="black"/>\n <path d="M16.577 8.87557C16.577 9.62346 16.2176 10.2299 15.7736 10.2299C15.3297 10.2299 14.9702 9.62346 14.9702 8.87557C14.9702 8.12768 15.3297 7.52116 15.7736 7.52116C16.2176 7.52116 16.577 8.12768 16.577 8.87557Z" fill="black"/>\n <path d="M15.3516 14.3749C13.8516 17.0001 9.85156 17.0002 7.85156 14.375" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.660156 10.9046C0.660156 4.88216 5.54204 3.24249e-05 11.5651 3.24249e-05C17.5868 3.24249e-05 22.4687 4.88216 22.4687 10.9046C22.4687 16.9269 17.5868 21.809 11.5651 21.809C5.54204 21.809 0.660156 16.9269 0.660156 10.9046Z" fill="#B7CF6A"/>\n <path d="M8.35176 8.87557C8.35176 9.62346 7.99099 10.2299 7.54706 10.2299C7.10442 10.2299 6.74365 9.62346 6.74365 8.87557C6.74365 8.12768 7.10442 7.52116 7.54706 7.52116C7.99099 7.52116 8.35176 8.12768 8.35176 8.87557Z" fill="black"/>\n <path d="M16.3856 8.87557C16.3856 9.62346 16.0262 10.2299 15.5822 10.2299C15.1383 10.2299 14.7788 9.62346 14.7788 8.87557C14.7788 8.12768 15.1383 7.52116 15.5822 7.52116C16.0262 7.52116 16.3856 8.12768 16.3856 8.87557Z" fill="black"/>\n <path d="M15.1602 13.375C14.6602 17.5002 8.16016 17.5003 7.66016 13.3751" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.46875 10.9046C0.46875 4.88216 5.35063 3.24249e-05 11.3737 3.24249e-05C17.3954 3.24249e-05 22.2773 4.88216 22.2773 10.9046C22.2773 16.9269 17.3954 21.809 11.3737 21.809C5.35063 21.809 0.46875 16.9269 0.46875 10.9046Z" fill="#A3CF6A"/>\n <path d="M8.16035 8.87557C8.16035 9.62346 7.79958 10.2299 7.35566 10.2299C6.91301 10.2299 6.55225 9.62346 6.55225 8.87557C6.55225 8.12768 6.91301 7.52116 7.35566 7.52116C7.79958 7.52116 8.16035 8.12768 8.16035 8.87557Z" fill="black"/>\n <path d="M16.1942 8.87557C16.1942 9.62346 15.8347 10.2299 15.3908 10.2299C14.9469 10.2299 14.5874 9.62346 14.5874 8.87557C14.5874 8.12768 14.9469 7.52116 15.3908 7.52116C15.8347 7.52116 16.1942 8.12768 16.1942 8.87557Z" fill="black"/>\n <path d="M14.9688 13.375C14.4688 17.5002 7.96875 17.5003 7.46875 13.3751L14.9688 13.375Z" fill="black" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 26 27" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g filter="url(#filter0_d_5652_8965)">\n <path d="M2.23438 12.9046C2.23438 6.88216 7.11626 2.00003 13.1393 2.00003C19.161 2.00003 24.0429 6.88216 24.0429 12.9046C24.0429 18.9269 19.161 23.809 13.1393 23.809C7.11626 23.809 2.23438 18.9269 2.23438 12.9046Z" fill="#7BB65C"/>\n </g>\n <path d="M16.7344 15.375C16.2344 19.5002 9.73438 19.5003 9.23438 15.3751L16.7344 15.375Z" fill="black" stroke="black" stroke-linecap="round"/>\n <path d="M11.636 10.1074L11.6368 10.0965C11.6368 9.41374 11.1424 8.78855 10.3998 8.78855C9.80994 8.78855 9.46817 9.21257 9.35106 9.60952C9.23482 9.21257 8.89217 8.78855 8.3023 8.78855C7.55975 8.78855 7.06616 9.41374 7.06616 10.0965V10.1074C7.06269 10.256 7.06616 11.7676 9.35019 12.9997V13L9.35106 12.9998V13L9.35193 12.9998V13V12.9997C11.6368 11.7676 11.6403 10.256 11.636 10.1074Z" fill="black"/>\n <path d="M19.3357 10.1074V10.0965C19.3357 9.41374 18.8421 8.78855 18.0995 8.78855C17.5097 8.78855 17.1679 9.21257 17.0508 9.60952C16.9345 9.21257 16.5919 8.78855 16.002 8.78855C15.2595 8.78855 14.7659 9.41374 14.7659 10.0965V10.1074C14.7624 10.256 14.7659 11.7676 17.0499 12.9997V13L17.0508 12.9998V13L17.0516 12.9998V13V12.9997C19.3365 11.7676 19.34 10.256 19.3357 10.1074Z" fill="black"/>\n <defs>\n <filter id="filter0_d_5652_8965" x="0.34469" y="0.582736" width="25.588" height="25.5883" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">\n <feFlood flood-opacity="0" result="BackgroundImageFix"/>\n <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>\n <feMorphology radius="0.472421" operator="dilate" in="SourceAlpha" result="effect1_dropShadow_5652_8965"/>\n <feOffset dy="0.472421"/>\n <feGaussianBlur stdDeviation="0.708632"/>\n <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.11 0"/>\n <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_5652_8965"/>\n <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_5652_8965" result="shape"/>\n </filter>\n </defs>\n </svg>'],ci=['<svg width="40" height="40" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9042C0 4.8818 4.88188 -0.000334176 10.9049 -0.000334176C16.9267 -0.000334176 21.8085 4.8818 21.8085 10.9042C21.8085 16.9266 16.9267 21.8086 10.9049 21.8086C4.88188 21.8086 0 16.9266 0 10.9042Z" fill="#D9DCDE"/>\n <path d="M7.69209 8.87521C7.69209 9.6231 7.33132 10.2295 6.88739 10.2295C6.44475 10.2295 6.08398 9.6231 6.08398 8.87521C6.08398 8.12732 6.44475 7.52079 6.88739 7.52079C7.33132 7.52079 7.69209 8.12732 7.69209 8.87521Z" fill="#646A6F"/>\n <path d="M15.726 8.87521C15.726 9.6231 15.3665 10.2295 14.9226 10.2295C14.4786 10.2295 14.1191 9.6231 14.1191 8.87521C14.1191 8.12732 14.4786 7.52079 14.9226 7.52079C15.3665 7.52079 15.726 8.12732 15.726 8.87521Z" fill="#646A6F"/>\n <path d="M9.1519 6.99055L8.42013 7.72168L5.98047 5.28189L6.71224 4.55089L9.1519 6.99055Z" fill="#646A6F"/>\n <path d="M13.3887 7.72168L12.6582 6.99055L15.0979 4.55089L15.8284 5.28189L13.3887 7.72168Z" fill="#646A6F"/>\n <path d="M7 16.4997C8 12.4996 13 10.4996 15 16.4999" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.808594 10.9042C0.808594 4.8818 5.69048 -0.000334176 11.7135 -0.000334176C17.7353 -0.000334176 22.6171 4.8818 22.6171 10.9042C22.6171 16.9266 17.7353 21.8086 11.7135 21.8086C5.69048 21.8086 0.808594 16.9266 0.808594 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.50068 8.87521C8.50068 9.6231 8.13991 10.2295 7.69599 10.2295C7.25334 10.2295 6.89258 9.6231 6.89258 8.87521C6.89258 8.12732 7.25334 7.52079 7.69599 7.52079C8.13991 7.52079 8.50068 8.12732 8.50068 8.87521Z" fill="#646A6F"/>\n <path d="M16.5346 8.87521C16.5346 9.6231 16.1751 10.2295 15.7312 10.2295C15.2872 10.2295 14.9277 9.6231 14.9277 8.87521C14.9277 8.12732 15.2872 7.52079 15.7312 7.52079C16.1751 7.52079 16.5346 8.12732 16.5346 8.87521Z" fill="#646A6F"/>\n <path d="M7.80859 16.4997C8.80859 12.4996 13.8086 10.4996 15.8086 16.4999" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.617188 10.9042C0.617188 4.8818 5.49907 -0.000334176 11.5221 -0.000334176C17.5439 -0.000334176 22.4257 4.8818 22.4257 10.9042C22.4257 16.9266 17.5439 21.8086 11.5221 21.8086C5.49907 21.8086 0.617188 16.9266 0.617188 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.30928 8.87521C8.30928 9.6231 7.9485 10.2295 7.50458 10.2295C7.06194 10.2295 6.70117 9.6231 6.70117 8.87521C6.70117 8.12732 7.06194 7.52079 7.50458 7.52079C7.9485 7.52079 8.30928 8.12732 8.30928 8.87521Z" fill="#646A6F"/>\n <path d="M16.3432 8.87521C16.3432 9.6231 15.9837 10.2295 15.5398 10.2295C15.0958 10.2295 14.7363 9.6231 14.7363 8.87521C14.7363 8.12732 15.0958 7.52079 15.5398 7.52079C15.9837 7.52079 16.3432 8.12732 16.3432 8.87521Z" fill="#646A6F"/>\n <path d="M7.61719 15.4995C8.95052 13.0401 13.1172 11.9996 15.6172 15.4996" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.425781 10.9042C0.425781 4.8818 5.30767 -0.000333786 11.3307 -0.000333786C17.3524 -0.000333786 22.2343 4.8818 22.2343 10.9042C22.2343 16.9266 17.3524 21.8086 11.3307 21.8086C5.30767 21.8086 0.425781 16.9266 0.425781 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.11787 8.87521C8.11787 9.6231 7.7571 10.2295 7.31318 10.2295C6.87053 10.2295 6.50977 9.6231 6.50977 8.87521C6.50977 8.12732 6.87053 7.52079 7.31318 7.52079C7.7571 7.52079 8.11787 8.12732 8.11787 8.87521Z" fill="#646A6F"/>\n <path d="M16.1518 8.87521C16.1518 9.6231 15.7923 10.2295 15.3483 10.2295C14.9044 10.2295 14.5449 9.6231 14.5449 8.87521C14.5449 8.12732 14.9044 7.52079 15.3483 7.52079C15.7923 7.52079 16.1518 8.12732 16.1518 8.87521Z" fill="#646A6F"/>\n <path d="M8.42578 15.5001C9.92578 14 12.4258 14 13.9258 15.5" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.234375 10.9042C0.234375 4.8818 5.11626 -0.000333786 11.1393 -0.000333786C17.161 -0.000333786 22.0429 4.8818 22.0429 10.9042C22.0429 16.9266 17.161 21.8086 11.1393 21.8086C5.11626 21.8086 0.234375 16.9266 0.234375 10.9042Z" fill="#D9DCDE"/>\n <path d="M7.92647 8.87521C7.92647 9.6231 7.56569 10.2295 7.12177 10.2295C6.67912 10.2295 6.31836 9.6231 6.31836 8.87521C6.31836 8.12732 6.67912 7.52079 7.12177 7.52079C7.56569 7.52079 7.92647 8.12732 7.92647 8.87521Z" fill="#646A6F"/>\n <path d="M15.9603 8.87521C15.9603 9.6231 15.6009 10.2295 15.1569 10.2295C14.713 10.2295 14.3535 9.6231 14.3535 8.87521C14.3535 8.12732 14.713 7.52079 15.1569 7.52079C15.6009 7.52079 15.9603 8.12732 15.9603 8.87521Z" fill="#646A6F"/>\n <path d="M7.73438 15.5003C9.73438 15.5 11.7344 15.4998 14.7344 15.5001" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.234375 10.9042C0.234375 4.8818 5.11626 -0.000333786 11.1393 -0.000333786C17.161 -0.000333786 22.0429 4.8818 22.0429 10.9042C22.0429 16.9266 17.161 21.8086 11.1393 21.8086C5.11626 21.8086 0.234375 16.9266 0.234375 10.9042Z" fill="#D9DCDE"/>\n <path d="M7.92647 8.87521C7.92647 9.6231 7.56569 10.2295 7.12177 10.2295C6.67912 10.2295 6.31836 9.6231 6.31836 8.87521C6.31836 8.12732 6.67912 7.52079 7.12177 7.52079C7.56569 7.52079 7.92647 8.12732 7.92647 8.87521Z" fill="#646A6F"/>\n <path d="M15.9603 8.87521C15.9603 9.6231 15.6009 10.2295 15.1569 10.2295C14.713 10.2295 14.3535 9.6231 14.3535 8.87521C14.3535 8.12732 14.713 7.52079 15.1569 7.52079C15.6009 7.52079 15.9603 8.12732 15.9603 8.87521Z" fill="#646A6F"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.0429688 10.9042C0.0429688 4.8818 4.92485 -0.000333786 10.9479 -0.000333786C16.9696 -0.000333786 21.8515 4.8818 21.8515 10.9042C21.8515 16.9266 16.9696 21.8086 10.9479 21.8086C4.92485 21.8086 0.0429688 16.9266 0.0429688 10.9042Z" fill="#D9DCDE"/>\n <path d="M7.73506 8.87521C7.73506 9.6231 7.37429 10.2295 6.93036 10.2295C6.48772 10.2295 6.12695 9.6231 6.12695 8.87521C6.12695 8.12732 6.48772 7.52079 6.93036 7.52079C7.37429 7.52079 7.73506 8.12732 7.73506 8.87521Z" fill="#646A6F"/>\n <path d="M15.7689 8.87521C15.7689 9.6231 15.4095 10.2295 14.9655 10.2295C14.5216 10.2295 14.1621 9.6231 14.1621 8.87521C14.1621 8.12732 14.5216 7.52079 14.9655 7.52079C15.4095 7.52079 15.7689 8.12732 15.7689 8.87521Z" fill="#646A6F"/>\n <path d="M13.543 14.3749C12.043 15.875 9.54297 15.875 8.04297 14.375" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.851562 10.9042C0.851562 4.8818 5.73345 -0.000333786 11.7565 -0.000333786C17.7782 -0.000333786 22.6601 4.8818 22.6601 10.9042C22.6601 16.9266 17.7782 21.8086 11.7565 21.8086C5.73345 21.8086 0.851562 16.9266 0.851562 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.54365 8.87521C8.54365 9.6231 8.18288 10.2295 7.73896 10.2295C7.29631 10.2295 6.93555 9.6231 6.93555 8.87521C6.93555 8.12732 7.29631 7.52079 7.73896 7.52079C8.18288 7.52079 8.54365 8.12732 8.54365 8.87521Z" fill="#646A6F"/>\n <path d="M16.5775 8.87521C16.5775 9.6231 16.218 10.2295 15.7741 10.2295C15.3302 10.2295 14.9707 9.6231 14.9707 8.87521C14.9707 8.12732 15.3302 7.52079 15.7741 7.52079C16.218 7.52079 16.5775 8.12732 16.5775 8.87521Z" fill="#646A6F"/>\n <path d="M15.3516 14.3748C13.8516 17 9.85156 17 7.85156 14.3749" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.660156 10.9042C0.660156 4.8818 5.54204 -0.000333786 11.5651 -0.000333786C17.5868 -0.000333786 22.4687 4.8818 22.4687 10.9042C22.4687 16.9266 17.5868 21.8086 11.5651 21.8086C5.54204 21.8086 0.660156 16.9266 0.660156 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.35225 8.87521C8.35225 9.6231 7.99147 10.2295 7.54755 10.2295C7.10491 10.2295 6.74414 9.6231 6.74414 8.87521C6.74414 8.12732 7.10491 7.52079 7.54755 7.52079C7.99147 7.52079 8.35225 8.12732 8.35225 8.87521Z" fill="#646A6F"/>\n <path d="M16.3861 8.87521C16.3861 9.6231 16.0266 10.2295 15.5827 10.2295C15.1388 10.2295 14.7793 9.6231 14.7793 8.87521C14.7793 8.12732 15.1388 7.52079 15.5827 7.52079C16.0266 7.52079 16.3861 8.12732 16.3861 8.87521Z" fill="#646A6F"/>\n <path d="M15.1602 13.3748C14.6602 17.5 8.16016 17.5 7.66016 13.3749" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.46875 10.9042C0.46875 4.8818 5.35063 -0.000333786 11.3737 -0.000333786C17.3954 -0.000333786 22.2773 4.8818 22.2773 10.9042C22.2773 16.9266 17.3954 21.8086 11.3737 21.8086C5.35063 21.8086 0.46875 16.9266 0.46875 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.16084 8.87521C8.16084 9.6231 7.80007 10.2295 7.35614 10.2295C6.9135 10.2295 6.55273 9.6231 6.55273 8.87521C6.55273 8.12732 6.9135 7.52079 7.35614 7.52079C7.80007 7.52079 8.16084 8.12732 8.16084 8.87521Z" fill="#646A6F"/>\n <path d="M16.1947 8.87521C16.1947 9.6231 15.8352 10.2295 15.3913 10.2295C14.9474 10.2295 14.5879 9.6231 14.5879 8.87521C14.5879 8.12732 14.9474 7.52079 15.3913 7.52079C15.8352 7.52079 16.1947 8.12732 16.1947 8.87521Z" fill="#646A6F"/>\n <path d="M14.9688 13.3748C14.4688 17.5 7.96875 17.5 7.46875 13.3749L14.9688 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9042C0 4.8818 4.88188 -0.000333786 10.9049 -0.000333786C16.9267 -0.000333786 21.8085 4.8818 21.8085 10.9042C21.8085 16.9266 16.9267 21.8086 10.9049 21.8086C4.88188 21.8086 0 16.9266 0 10.9042Z" fill="#D9DCDE"/>\n <path d="M14.5 13.3748C14 17.5 7.5 17.5 7 13.3749L14.5 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n <path d="M9.40207 8.10736L9.40294 8.09652C9.40294 7.41374 8.90848 6.78855 8.16593 6.78855C7.57606 6.78855 7.23428 7.21257 7.11718 7.60952C7.00094 7.21257 6.65828 6.78855 6.06841 6.78855C5.32586 6.78855 4.83227 7.41374 4.83227 8.09652V8.10736C4.8288 8.25596 4.83227 9.76759 7.1163 10.9997V11L7.11718 10.9998V11L7.11804 10.9998V11V10.9997C9.40294 9.76759 9.40641 8.25596 9.40207 8.10736Z" fill="#646A6E"/>\n <path d="M17.1013 8.10736V8.09652C17.1013 7.41374 16.6077 6.78855 15.8652 6.78855C15.2753 6.78855 14.9335 7.21257 14.8164 7.60952C14.7001 7.21257 14.3575 6.78855 13.7676 6.78855C13.0251 6.78855 12.5315 7.41374 12.5315 8.09652V8.10736C12.528 8.25596 12.5315 9.76759 14.8155 10.9997V11L14.8164 10.9998V11L14.8173 10.9998V11V10.9997C17.1022 9.76759 17.1056 8.25596 17.1013 8.10736Z" fill="#646A6E"/>\n </svg>'],di=['<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0 10.9042C0 4.8818 4.88188 -0.000334176 10.9049 -0.000334176C16.9267 -0.000334176 21.8085 4.8818 21.8085 10.9042C21.8085 16.9266 16.9267 21.8086 10.9049 21.8086C4.88188 21.8086 0 16.9266 0 10.9042Z" fill="#D9DCDE"/>\n<path d="M7.69209 8.87521C7.69209 9.6231 7.33132 10.2295 6.88739 10.2295C6.44475 10.2295 6.08398 9.6231 6.08398 8.87521C6.08398 8.12732 6.44475 7.52079 6.88739 7.52079C7.33132 7.52079 7.69209 8.12732 7.69209 8.87521Z" fill="#646A6F"/>\n<path d="M15.726 8.87521C15.726 9.6231 15.3665 10.2295 14.9226 10.2295C14.4786 10.2295 14.1191 9.6231 14.1191 8.87521C14.1191 8.12732 14.4786 7.52079 14.9226 7.52079C15.3665 7.52079 15.726 8.12732 15.726 8.87521Z" fill="#646A6F"/>\n<path d="M9.1519 6.99055L8.42013 7.72168L5.98047 5.28189L6.71224 4.55089L9.1519 6.99055" fill="#646A6F"/>\n<path d="M13.3887 7.72168L12.6582 6.99055L15.0979 4.55089L15.8284 5.28189L13.3887 7.72168" fill="#646A6F"/>\n<path d="M7 16.4997C8 12.4996 13 10.4996 15 16.4999" stroke="#646A6E" stroke-linecap="round"/>\n</svg>','<svg width="23" height="22" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.808594 10.9042C0.808594 4.8818 5.69048 -0.000333786 11.7135 -0.000333786C17.7353 -0.000333786 22.6171 4.8818 22.6171 10.9042C22.6171 16.9266 17.7353 21.8086 11.7135 21.8086C5.69048 21.8086 0.808594 16.9266 0.808594 10.9042Z" fill="#D9DCDE"/>\n<path d="M8.50068 8.87521C8.50068 9.6231 8.13991 10.2295 7.69599 10.2295C7.25334 10.2295 6.89258 9.6231 6.89258 8.87521C6.89258 8.12732 7.25334 7.52079 7.69599 7.52079C8.13991 7.52079 8.50068 8.12732 8.50068 8.87521Z" fill="#646A6F"/>\n<path d="M16.5346 8.87521C16.5346 9.6231 16.1751 10.2295 15.7312 10.2295C15.2872 10.2295 14.9277 9.6231 14.9277 8.87521C14.9277 8.12732 15.2872 7.52079 15.7312 7.52079C16.1751 7.52079 16.5346 8.12732 16.5346 8.87521Z" fill="#646A6F"/>\n<path d="M7.80859 15.4995C9.14193 13.0401 13.3086 11.9996 15.8086 15.4996" stroke="#646A6E" stroke-linecap="round"/>\n</svg>','<svg width="23" height="22" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.617188 10.9042C0.617188 4.8818 5.49907 -0.000333786 11.5221 -0.000333786C17.5439 -0.000333786 22.4257 4.8818 22.4257 10.9042C22.4257 16.9266 17.5439 21.8086 11.5221 21.8086C5.49907 21.8086 0.617188 16.9266 0.617188 10.9042Z" fill="#D9DCDE"/>\n<path d="M8.30928 8.87521C8.30928 9.6231 7.9485 10.2295 7.50458 10.2295C7.06194 10.2295 6.70117 9.6231 6.70117 8.87521C6.70117 8.12732 7.06194 7.52079 7.50458 7.52079C7.9485 7.52079 8.30928 8.12732 8.30928 8.87521Z" fill="#646A6F"/>\n<path d="M16.3432 8.87521C16.3432 9.6231 15.9837 10.2295 15.5398 10.2295C15.0958 10.2295 14.7363 9.6231 14.7363 8.87521C14.7363 8.12732 15.0958 7.52079 15.5398 7.52079C15.9837 7.52079 16.3432 8.12732 16.3432 8.87521Z" fill="#646A6F"/>\n<path d="M8.11719 15.5003C10.1172 15.5 12.1172 15.4998 15.1172 15.5001" stroke="#646A6E" stroke-linecap="round"/>\n</svg>','<svg width="23" height="22" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.425781 10.9042C0.425781 4.8818 5.30767 -0.000333786 11.3307 -0.000333786C17.3524 -0.000333786 22.2343 4.8818 22.2343 10.9042C22.2343 16.9266 17.3524 21.8086 11.3307 21.8086C5.30767 21.8086 0.425781 16.9266 0.425781 10.9042Z" fill="#D9DCDE"/>\n<path d="M8.11787 8.87521C8.11787 9.6231 7.7571 10.2295 7.31318 10.2295C6.87053 10.2295 6.50977 9.6231 6.50977 8.87521C6.50977 8.12732 6.87053 7.52079 7.31318 7.52079C7.7571 7.52079 8.11787 8.12732 8.11787 8.87521Z" fill="#646A6F"/>\n<path d="M16.1518 8.87521C16.1518 9.6231 15.7923 10.2295 15.3483 10.2295C14.9044 10.2295 14.5449 9.6231 14.5449 8.87521C14.5449 8.12732 14.9044 7.52079 15.3483 7.52079C15.7923 7.52079 16.1518 8.12732 16.1518 8.87521Z" fill="#646A6F"/>\n<path d="M14.9258 13.3748C14.4258 17.5 7.92578 17.5 7.42578 13.3749L14.9258 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n</svg>','<svg width="23" height="22" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.234375 10.9042C0.234375 4.8818 5.11626 -0.000333786 11.1393 -0.000333786C17.161 -0.000333786 22.0429 4.8818 22.0429 10.9042C22.0429 16.9266 17.161 21.8086 11.1393 21.8086C5.11626 21.8086 0.234375 16.9266 0.234375 10.9042Z" fill="#D9DCDE"/>\n<path d="M14.7344 13.3748C14.2344 17.5 7.73438 17.5 7.23438 13.3749L14.7344 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n<path d="M9.63644 8.10736L9.63732 8.09652C9.63732 7.41374 9.14286 6.78855 8.40031 6.78855C7.81043 6.78855 7.46866 7.21257 7.35155 7.60952C7.23531 7.21257 6.89266 6.78855 6.30278 6.78855C5.56023 6.78855 5.06665 7.41374 5.06665 8.09652V8.10736C5.06318 8.25596 5.06665 9.76759 7.35068 10.9997V11L7.35155 10.9998V11L7.35241 10.9998V11V10.9997C9.63731 9.76759 9.64078 8.25596 9.63644 8.10736Z" fill="#646A6E"/>\n<path d="M17.3357 8.10736V8.09652C17.3357 7.41374 16.8421 6.78855 16.0995 6.78855C15.5097 6.78855 15.1679 7.21257 15.0508 7.60952C14.9345 7.21257 14.5919 6.78855 14.002 6.78855C13.2595 6.78855 12.7659 7.41374 12.7659 8.09652V8.10736C12.7624 8.25596 12.7659 9.76759 15.0499 10.9997V11L15.0508 10.9998V11L15.0516 10.9998V11V10.9997C17.3365 9.76759 17.34 8.25596 17.3357 8.10736Z" fill="#646A6E"/>\n</svg>'];var pi=function(e,t,n,i){var o=i.dim_background,r=i.dim_bg_color,a=i.dim_bg_opacity,s=i.position,l=document.createElement("div");l.setAttribute("id","apx-oly");var c=document.createElement("style"),d="center",p="center";switch(s){case"bottom-left":d="flex-start",p="flex-end";break;case"bottom-right":d="flex-end",p="flex-end";break;case"top-left":d="flex-start",p="flex-start";break;case"top-right":d="flex-end",p="flex-start"}var u="none";if(o){var h=function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,i){return t+t+n+n+i+i}));var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}(r);u="rgb(".concat(h.r,", ").concat(h.g,", ").concat(h.b,", ").concat(a,")")}c.innerHTML="\n#apx-oly {\n width:100%;height:100%;position:fixed;top:0;left:0;background-color:".concat(u,";\n display:flex;justify-content:").concat(d,";align-items:").concat(p,";border-radius:3px;z-index:99999999\n}\n#apx-oly > * {font-family: inherit;box-sizing:unset}\n.apx-dlg-c {\n width:").concat(e,"px;min-height:").concat(t,"%;background:white;z-index:99999999;opacity:0;position:relative;visibility:hidden;\n transition:all 500ms cubic-bezier(0, -0.37, 0, 2.06);top:-15px;border-radius:3px;margin:20px\n}\n.apx-dlg-c.open {opacity:1;visibility:visible;top:0}\n ").replaceAll("\n","").replace(/[\s]{2,999}/g,"");var f=document.createElement("div");return f.setAttribute("id","apx-dlg-c"),f.classList.add("apx-dlg-c"),l.appendChild(f),l.appendChild(c),l.on_dismiss=n,document.body.appendChild(l),l},ui=function(e){return"\n .apx-ta:focus {\n border: none;\n outline: none;\n }\n .apx-ta::placeholder {\n color: ".concat(e,";\n opacity: 0.5;\n }\n ")},hi=function(e,t){var n=e.answerMode,i=e.choices,o=void 0===i?[]:i,r=e.text_answer,a=void 0===r?"":r,s=e.selected_rating,l=void 0===s?-1:s,c=!0;n===g||n===v?c=-1!==o.findIndex((function(e){return!0===e.is_selected})):n===b?c=a.length>0:n===y&&(c=l>0);c?(t.className="apx-ba",t.disabled=!1):(t.className="apx-bi",t.disabled=!0)},fi=function(e){var t=e.maximum_characters,n=e.background_color,i=e.placeholder,o=e.text_color,r=document.createElement("textarea");return r.style="padding-top:4px;padding-left:4px;font-zie:14px;width:98%;height:100px;margin-top:8px;border:none;resize:none;background:".concat(n,";color:").concat(o),r.className="apx-ta",r.setAttribute("placeholder",i),r.setAttribute("maxlength",t),r},mi=function(e,t,n){var i=t.question_text_color,o=t.question_background_color,r=t.option_bg_color_active,a=t.option_bg_color_inactive,s=t.option_text_color_active,l=t.option_text_color_inactive,c=t.option_bg_type,d=e.rating_style,p=e.answerMode,u=e.choices,h=void 0===u?[]:u,f=e.rating,m=void 0===f?{rating_style:d,bg_color:"#D9DCDE",selected_bg_color:"#109B15"}:f,x=e.rating_scale,k=void 0===x?5:x,A=e.selected_rating,L=void 0===A?-1:A,M=e.text_answer,T=void 0===M?"":M,O=e.text_config?e.text_config:{maximum_characters:150,background_color:"#ccc",placeholder:"",text_color:"#000",placeholder_text_color:"#00000087"},S=!1,D=[];if(p===v||p===g){var I=fi(O);I.style.visibility="hidden";var N=function(e,t){e.style.color=t?s:l},B=function(e,t){var n=t?r:a;"filled"===c?e.style.background=n:"outline"===c&&(e.style.borderColor=n)};h.forEach((function(t,i){var o=document.createElement("label");o.className="apx-lc",o.innerText=t.value;var r=document.createElement("input");r.name=r.type=p===v?"radio":"checkbox",r.checked=t.is_selected;var a=document.createElement("span");a.className="apx-i",o.appendChild(r),o.appendChild(a),B(o,t.is_selected),N(o,t.is_selected),t.is_other&&(S=!0,I.addEventListener("input",(function(e){t.other_answer=e.target.value}))),t.is_selected&&t.is_other&&(I.style.visibility="visible",t.other_answer&&(I.value=t.other_answer)),p===g?r.onchange=function(i){var r=i.target.checked;t.is_selected=r,N(o,r),B(o,r),t.is_other&&(I.style.visibility=r?"visible":"hidden"),hi(e,n)}:(r.setAttribute("apx-key","radio"),r.setAttribute("apx-ci",i+""),r.onchange=function(){document.querySelectorAll('input[apx-key="radio"]').forEach((function(e,n){var i=e.checked;h[n].is_selected=i,N(e.parentNode,i),B(e.parentNode,i),t.is_other&&(I.style.visibility=i?"visible":"hidden")})),hi(e,n)}),D.push(o)})),S&&D.push(I)}else if(p===b&&null!==O){var P=O.example,F=O.example_text_color;if(""!==P&&""!==P.trim()){var z=document.createElement("span");z.innerHTML="Example: "+P,z.style.color=F,z.style.marginTop="12px",z.style.fontFamily="inherit",z.style.fontSize="15px",D.push(z)}var Z=fi(O);Z.addEventListener("input",(function(t){e.text_answer=t.target.value,t.target.value&&t.target.value.length>0&&(e.is_answered=!0),hi(e,n)})),""!==T&&""!==T.trim()&&(Z.innerText=T),D.push(Z)}else if(p===y){var H=m.rating_style,j=m.bg_color,q=m.selected_bg_color,V=document.createElement("div");V.style="display:flex;flex-wrap:wrap;justify-content:space-evenly;gap:5px;padding-top:8px;padding-bottom:8px;overflow:hidden";var R="",U=[],W="",Y="cursor:pointer;font-size:30px;width:auto;height:auto;";if("stylized"===H)U=5==H?di:ci,R="opacity:1 !important;",W="".concat(Y,"padding-right:7px;padding-top:4px;padding-bottom:2px;border-radius:50%;background:transparent;opacity:0.5;filter:drop-shadow(0px 0.586957px 1.76087px rgba(0, 0, 0, 0.11));width:40px");else if("classic"===H)U=5===k?C:w,R="opacity:1 !important;border:1.06px solid #017DFD; background-color:rgba(1, 125, 253, 0.1);\n ",W="".concat(Y,"padding-right:7px;padding-top:4px;padding-bottom:2px;opacity:0.5;filter:drop-shadow(0px 0.586957px 1.76087px rgba(0, 0, 0, 0.11))");else if("star"===H){for(var X=0;X<k;X++)U.push("&#11088;");R="filter:grayscale(0%) !important",W="".concat(Y,"filter:grayscale(100%)")}else"numbers"===H&&(U=5==k?["1","2","3","4","5"]:["0","1","2","3","4","5","6","7","8","9","10"],R="background:".concat(q," !important;color:white !important;"),W="display:flex;justify-content:center;align-items:center;color:#646A6E;font-size:15px;width:40px;height:40px;background-color:".concat(j,";box-shadow:0px 0.54801px 1.64403px 0.54801px rgba(0, 0, 0, 0.11);border-radius:50%"),V.style.marginTop="12px",V.style="display:flex;align-text:center;flex-wrap:wrap;justify-content:space-evenly;gap:15px;padding-top:8px;padding-bottom:8px;overflow:hidden");var K=document.createElement("style"),J="";(5==k?_:E).forEach((function(e,t){J+=".apx-rsel-".concat(t,"{\n background:").concat(e,"!important;\n color:white !important;\n }")})),K.innerHTML=".apx-rsel{".concat(R,"}")+J+".apx-r{".concat(W,"}\n "),V.appendChild(K);for(var G=function(e){return"star"!==H?e+1===L:e+1<=L},Q=[],$=0;$<U.length;$++){var ee=document.createElement("div");ee.innerHTML="".concat("numbers"===H?"":"&nbsp;").concat(U[$]);var te=document.createElement("div");"classic"===H&&("".concat(te.innerHTML=$+1),te.style.fontSize="12.83px",te.style.marginLeft="8px",te.style.display="flex",te.style.fontWeight="500",te.style.justifyContent="center",te.style.alignItems="center",ee.appendChild(te),ee.style.display="flex",ee.style.justifyContent="center",ee.style.alignItems="center",ee.style.flexDirection="column",ee.style.width="46px",ee.style.height="70px"),G($)&&ee.classList.add("apx-rsel"),ee.classList.add("apx-r"),Q.push(ee)}Q.forEach((function(t,i){e.selected_rating=i+1,t.addEventListener("click",(function(){if("stylized"===H&&Q.forEach((function(e,t){e.innerHTML=t===i?"&nbsp;"+li[i]:"&nbsp;"+ci[t]})),"numbers"===H?t.classList.add("apx-rsel-".concat(i)):t.classList.add("apx-rsel"),e.is_answered=!0,hi(e,n),"numbers"===H){for(var o=0;o<i;o++)Q[o].classList.remove("apx-rsel-".concat(o));for(var r=i+1;r<U.length;r++)Q[r].classList.remove("apx-rsel-".concat(r))}else if("star"===H){for(var a=0;a<i+1;a++)Q[a].classList.add("apx-rsel");for(var s=i+1;s<U.length;s++)Q[s].classList.remove("apx-rsel")}else{for(var l=0;l<i;l++)Q[l].classList.remove("apx-rsel");for(var c=i+1;c<U.length;c++)Q[c].classList.remove("apx-rsel")}e.rulesArray.forEach((function(t){if(e.selected_rating>=t.min&&e.selected_rating<=t.max){var i,o=document.createElement("span");o.setAttribute("id","nps_advanced"),o.innerHTML=null===(i=t.question)||void 0===i?void 0:i.question;var r=fi(O);r.addEventListener("input",(function(t){e.text_answer=t.target.value,t.target.value&&t.target.value.length>0&&(e.is_answered=!0),hi(e,n)})),o.appendChild(r),V.appendChild(o);var a=document.getElementById("nps_advanced");a&&V.removeChild(a),o.appendChild(r),V.appendChild(o)}else{var s=document.getElementById("nps_advanced");s&&V.removeChild(s)}}))})),V.appendChild(t)})),D.push(V)}var ne=document.createElement("div");ne.style.padding="14px",ne.style.display="flex",ne.style.flexDirection="column",ne.style.minHeight="340px";var ie=document.createElement("style"),oe="";p===b?oe=ui(O.placeholder_text_color):p!==v&&p!==g||(oe=function(e,t,n,i,o,r){return"\n .apx-lc {\n display: block;\n position: relative;\n background: ".concat("outline"===r?"unset":"filled"===r?n:"unset",";\n border: ").concat("outline"===r?"1px solid "+n:"filled"===r?n:"unset",";\n padding: ").concat("none"!==r?"10px 10px 10px 35px":"0px 0px 0px 35px",";\n margin-bottom: 12px;\n font-family: inherit;\n top: 10px;\n cursor: pointer;\n font-size: 18px;\n color: ").concat(o,";\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n .apx-lc input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n width: 0;\n height: 0;\n }\n\n .apx-i {\n position: absolute;\n left: 6px;\n height: 14px;\n width: 14px;\n border: 1px solid ").concat(o,";\n background-color: white;\n border-radius: ").concat(e===v?"50%":0,";\n }\n\n .apx-lc:hover input ~ .apx-i {\n border: 1px solid ").concat(i,";\n }\n\n .apx-lc input:checked ~ .apx-i {\n background-color: ").concat(t,";\n border: 1px solid ").concat(i,';\n }\n\n .apx-i:after {\n content: "";\n position: absolute;\n display: none;\n }\n\n .apx-lc input:checked ~ .apx-i:after {\n display: block;\n }\n\n .apx-lc .apx-i:after {\n top: ').concat(e===v?2:1,"px;\n left: ").concat(e===v?2:4,"px;\n width: ").concat(e===v?10:4,"px;\n height: ").concat(e===v?10:8,"px;\n border-radius: ").concat(e===v?"50%":"0",";\n background: ").concat(e===v?i:"transparent",";\n border: ").concat(e===v?"none":"solid white",";\n border-width: ").concat(e===v?"unset":"0 3px 3px 0",";\n -webkit-transform: ").concat(e===v?"unset":"rotate(45deg)",";\n -ms-transform: ").concat(e===v?"unset":"rotate(45deg)",";\n transform: ").concat(e===v?"unset":"rotate(45deg)",";\n }\n ")}(p,r,a,s,l,c),S&&(oe+=ui(O.placeholder_text_color))),ie.innerHTML=oe.replaceAll("\n","").replace(/[\s]{2,999}/g,""),ne.appendChild(ie);var re=document.createElement("span");return re.innerText=e.title,re.style="margin-bottom:12px;color:".concat(i,";background-color:").concat(o,";font-size:16px;font-weight:600"),ne.appendChild(re),D.forEach((function(e){return ne.appendChild(e)})),ne},vi=function(e,t,n,i,o,r){var a=function(e,t,n,i){var o=e.cancel_button_color,r=e.previous_button_color,a=document.createElement("button"),s=document.createElement("button");a.disabled=0===t,a.setAttribute("type","button"),a.className="apx-b apx-pr",a.innerHTML="<style>.apx-pr::before{content:'\\2190';font-size:22px;color:".concat(r).concat(0===t?"54":"",";}.apx-pr{cursor:").concat(0===t?"no-drop":"pointer",";margin-top:-6px}</style>"),s.className="apx-b apx-cb",s.setAttribute("type","button"),s.innerHTML="<style>.apx-cb::before{content:'\\0000d7';font-size:26px;color:".concat(o,";}</style>");var l=document.createElement("div");l.style="display:flex;justify-content:space-between;align-items:center;padding:8px;padding-bottom:0";var c=document.createElement("span");return c.style="font-size:14px;color:#000;opacity:0.3;letter-spacing:0.005em;line-height:12px",c.innerText=i?"":"".concat(t+1,"/").concat(n),l.appendChild(a),l.appendChild(c),l.appendChild(s),{prevButton:a,closeButton:s,headerNode:l}}(e,i,o,r),s=a.headerNode,l=a.prevButton,c=a.closeButton,d=function(e,t,n,i,o){var r=e.skip_text_color,a=e.submit_text_color,s=e.submit_active_color,l=e.submit_inactive_color,c=n===i-1||o?null:document.createElement("button");c&&(c.innerText="Skip",c.className="apx-b",c.style="font-size:14px;font-weight:600;opacity:1;font-style:inherit;color:".concat(r,";background-color:transparent;margin:0px 12px"));var d=document.createElement("button");d.innerHTML="".concat(n===i-1?"Submit":"Next >","<style>.apx-ba{background-color:").concat(s,";cursor:pointer}.apx-bi{background-color:").concat(l,";cursor:no-drop}</style>"),d.style="border:none;border-radius:2px;color:".concat(a,";padding:8px 15px;font-family:inherit"),hi(t,d);var p=document.createElement("div");return p.style="padding:14px;display:flex;justify-content:flex-end",c&&p.appendChild(c),p.appendChild(d),{footerNode:p,skipButton:c,submitButton:d}}(e,n,i,o,n.is_required),p=d.skipButton,u=d.submitButton,h=d.footerNode,f=mi(n,t,u),m=document.createElement("div");m.className="apx-sq";var v=document.createElement("style");return v.innerHTML=".apx-sq > * {font-family:inherit;}.apx-sq {height:100%;width:100%;display:flex;flex-direction:column}.apx-b{border:none;background:none;opacity:1;cursor:pointer;font-family:inherit}",m.appendChild(v),m.appendChild(s),m.appendChild(f),{questionRoot:m,footerNode:h,prevButton:l,closeButton:c,skipButton:p,submitButton:u}},gi=window.ApxorLogger,yi=l((function e(t){var n=this;a(this,e),c(this,"yjmF",(function(){n.is_selected=!1,n.other_answer=null}));var i=t.id,o=t.value,r=t.is_other,s=t.next_question_id;if(!i||!o)throw new Error("Invalid Choice");this.id=i,this.value=o,this.is_other=r,this.next_question_id=s,this.is_selected=!1,this.other_answer=null})),bi=l((function e(t){var n=this;a(this,e),c(this,"yjmF",(function(){n.is_answered=!1,n.text_answer="",n.selected_rating=-1,n.choices.forEach((function(e){return e.yjmF()}))}));var i=t.id,o=t.answer_mode,r=t.title,s=t.is_required,l=t.submit_text,d=t.rating_style,u=t.rating_scale,h=t.choices,f=void 0===h?[]:h,m=t.text_config,x=void 0===m?null:m,w=t.randomize_choices,C=void 0!==w&&w,_=t.response_cfg,E=void 0===_?{}:_,k=t.advanced_options,A=t.rules,L=void 0===A?[]:A;if(!i||!o)throw new Error("Invalid question");var M=-1;switch(o){case"single_choice":M=v;break;case"multi_choice":M=g;break;case"text":M=b;break;case"rating":M=y;break;default:M=-1}if(this.answerMode=M,this.id=i,this.is_required=s,this.submit_text=l,this.randomize_choices=C,this.response_cfg=E,this.text_config=x,this.title=r,this.rating_style=d,this.rating_scale=u,this.is_answered=!1,this.selected_rating=-1,this.rules=L,this.rulesArray=[],k&&this.rules.forEach((function(e){if(t.hasOwnProperty(e.qid)){var i={max:e.max,min:e.min,question:t[e.qid]};n.rulesArray.push(i)}})),this.choices=[],this.answerMode===v||this.answerMode===g){for(var T,O=[],S=0;S<f.length;S++){var D=new yi(f[S]);D.is_other?O.push(D):this.choices.push(D)}C&&(this.choices=p(this.choices).map((function(e,t,n){var i=t+Math.floor(Math.random()*(n.length-t)),o=[n[t],n[i]];return n[i]=o[0],n[t]=o[1],n[t]}))),(T=this.choices).push.apply(T,O)}})),xi=l((function e(){var n=this;a(this,e),c(this,"initialize",(function(e,t,i){var o=i.delay,r=i.dialog_config,a=void 0===r?null:r,s=i.show_progress_bar,l=void 0===s||s,c=i.is_response_based_survey,d=void 0!==c&&c,p=i.questions,u=void 0===p?[]:p,h=i.show_success_message,f=void 0===h||h,m=i.auto_hide_message,v=void 0===m?2e3:m,g=i.success_message,y=void 0===g?"":g,b=i.question_text_color,x=void 0===b?"#002845":b,w=i.submit_active_color,C=void 0===w?"#017DFD":w,_=i.submit_inactive_color,E=void 0===_?"#017DFD65":_,k=i.option_bg_type,A=void 0===k?"filled":k,L=i.option_text_color_active,M=void 0===L?"#002845":L,T=i.option_text_color_inactive,O=void 0===T?"#002845":T,S=i.option_bg_color_active,D=void 0===S?"#FFF":S,I=i.option_bg_color_inactive,N=void 0===I?"#FFF":I,B=i.question_background_color,P=void 0===B?"#FFF":B,F=i.success_message_bg_color,z=void 0===F?"#109B15":F,Z=i.success_message_icon_color,H=void 0===Z?"#109B15":Z,j=i.success_message_text_color,q=void 0===j?"#002845":j,V=i.skip_text_color,R=void 0===V?"#017DFD":V,U=i.cancel_button_color,W=void 0===U?"#000":U,Y=i.previous_button_color,X=void 0===Y?"#000":Y,K=i.progress_bar_color,J=void 0===K?"#017DFD":K,G=i.submit_text_color,Q=void 0===G?"#FFF":G,$=i.width,ee=void 0===$?350:$,te=i.min_height,ne=void 0===te?40:te,ie=i.position,oe=void 0===ie?"center":ie,re=i.dim_background,ae=void 0===re||re,se=i.dim_bg_color,le=void 0===se?"#313131":se,ce=i.dim_bg_opacity,de=void 0===ce?.54:ce;n.configId=e,n.name=t,n.delay=o,n.is_response_based_survey=d,n.show_success_message=f,n.success_message=y,n.auto_hide_message=v,n.questions=[],n.displayedQuestionIndeces=[],n.answered_questions=[],n.width=ee,n.min_height=ne,n.layoutConfig={show_progress_bar:l,skip_text_color:R,cancel_button_color:W,previous_button_color:X,progress_bar_color:J,submit_text_color:Q,submit_active_color:C,submit_inactive_color:E,success_message_bg_color:z,success_message_icon_color:H,success_message_text_color:q,position:oe,dim_background:ae,dim_bg_color:le,dim_bg_opacity:de},n.questionConfig={question_text_color:x,question_background_color:P,option_bg_color_active:D,option_bg_color_inactive:N,option_text_color_active:M,option_text_color_inactive:O,option_bg_type:A},a&&(n.dialog_config=a);for(var pe=0;pe<u.length;pe++)try{if("request_survey"===u[pe].answer_mode||"success_message"===u[pe].answer_mode)continue;n.questions.push(new bi(u[pe])),n.answered_questions.push(-1)}catch(e){return gi.error("Failed to parse Q",pe,e),!1}return!(n.questions.length<1)||(n.isValid=!1,!1)})),c(this,"ILUV",(function(e,t){n.isValid&&setTimeout((function(){try{var i=window.ApxorRTM;if(null!==i.currentAction&&void 0!==i.currentAction)return void gi.error("An action is already being shown.");n.startTime=Date.now();var o=pi(n.width,n.min_height,t,n.layoutConfig);if(n.bodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden",n.UPZv("apx_survey_launched"),n.dialog_config){var r=n.dialog_config,a=r.icon_name,s=void 0===a?"":a,l=r.icon_width,c=r.icon_height,d=o.children[0];o.style.visibility="hidden",d.style.visibility="hidden",setTimeout((function(){d.innerHTML=function(e){var t,n,i,o=e.icon_name,r=void 0===o?"":o,a=e.title,s=void 0===a?"Some dummy title":a,l=e.yes_text,c=void 0===l?"Yes":l,d=e.icon_width,p=void 0===d?180:d,u=e.icon_height,h=void 0===u?100:u,f=e.no_text,m=void 0===f?"No, thanks":f,v=e.dialog_background_color,g=void 0===v?"#FFF":v,y=e.title_color,b=void 0===y?"#3C3C3C":y,x=e.yes_button_bg_color,w=void 0===x?"#017DFD":x,C=(e.no_button_bg_color,e.yes_button_text_color),_=void 0===C?"#FFF":C,E=e.no_button_text_color,k=void 0===E?"#017DFD":E,A=(e.hide_close_button,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:12,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;return"line-height:20px;letter-spacing:0.005em;font-size:".concat(e,"px;font-weight:").concat(t,";")});return'\n <div style="display:flex;flex-direction:column;height:100%;width:100%;background-color:'.concat(g,';align-items:center;margin-top:20px;border-radius:3px">\n ').concat((t=r,n=p,i=h,t&&""!==t&&0!==n&&0!==i?'<img id="apx_icon" src="'.concat(t,'" style="width:').concat(n,"px;height:").concat(i,'px;">'):""),'<span style="').concat(A(16,600),"text-align:center;color:").concat(b,';margin:12px 0px;">').concat(s,'</span>\n <button id="').concat("apx-dy",'" style="').concat(A(14,500),"color:").concat(_,";background-color:").concat(w,';border-radius:2px;border:none;padding:8px 20px;margin-bottom:10px;cursor:pointer">').concat(c,'</button>\n <button id="').concat("apx-dn",'" style="').concat(A(14,500),"color:").concat(k,';background:none;border:none;cursor:pointer;margin-bottom:20px">').concat(m,"</button>\n </div>\n ")}(n.dialog_config),document.getElementById("apx-dy").onclick=function(){n.UPZv("apx_survey_dialog_yes_clicked"),d.style.minHeight=n.min_height+"%",n.wCvP(o,!0)},document.getElementById("apx-dn").onclick=function(){n.UPZv("apx_survey_dialog_no_clicked"),n.RykJ(o)};var e=function(){o.style.visibility="visible",d.style.visibility="visible",d.style.minHeight=""===s||0===l||0===c?"13%":"25%",d.classList.toggle("open"),n.UPZv("apx_survey_dialog_launched")};if(""!==s&&l>0&&c>0){var t=document.getElementById("apx_icon");t.onload=function(){e()},t.onerror=function(){n.UPZv("apx_survey_dialog_icon_failed"),n.RykJ(o)}}else e()}),100)}else n.wCvP(o);e&&e((function(){return n.RykJ(o)}))}catch(e){gi.error(e)}}),n.delay)})),c(this,"wCvP",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=n.layoutConfig,o=i.show_progress_bar,r=i.progress_bar_color,a=document.createElement("div");a.style="height:4px;overflow:hidden;position:relative;margin-bottom:10px;";var s=document.createElement("div");s.setAttribute("id","apx-pb"),s.style="border-radius:10px;top:0;left:0;width:100%;bottom:0;position:absolute;transition:transform 0.4s linear;transform-origin:left;background-color:".concat(r),a.appendChild(s),o||(a.style.visibility="hidden");var l=e.children[0];(t||l&&l.childElementCount>1)&&l.removeChild(l.children[l.childElementCount-1]),l.appendChild(a),n.Xyor(e,0),t||setTimeout((function(){e.children[0].classList.toggle("open")}),100)})),c(this,"gnoh",(function(e){if(-1==e||!e)return-1;var t=n.questions.length;if(t>0)for(var i=0;i<t;i++)if(n.questions[i].id==e)return i;return-1})),c(this,"hCRH",(function(e,t){var i=e.answerMode,o=e.choices,r=void 0===o?[]:o;switch(i){case y:var a=null==e?void 0:e.response_cfg[(null==e?void 0:e.selected_rating)||11];a?t=n.gnoh(a):t+=1;break;case v:var s;if(r.forEach((function(e){e.is_selected&&(s=e)})),s){var l=s.next_question_id;t=n.gnoh(l)}else t+=1;break;case g:case b:default:t+=1}return t})),c(this,"Xyor",(function(e,t){if(!(t>=n.questions.length)){var i=n.questions[t],o=vi(n.layoutConfig,n.questionConfig,i,t,n.questions.length,n.is_response_based_survey),r=o.prevButton,a=void 0===r?null:r,s=o.closeButton,l=void 0===s?null:s,c=o.submitButton,d=void 0===c?null:c,p=o.skipButton,u=void 0===p?null:p,h=o.questionRoot,f=o.footerNode,m=e.children[0];m&&m.childElementCount>2&&(m.removeChild(m.children[m.childElementCount-1]),m.removeChild(m.children[m.childElementCount-1])),document.getElementById("apx-pb").style.transform="translateX(".concat(-(100-100/n.questions.length*(t+1)),"%)"),m.appendChild(h),m.appendChild(f),a&&(a.onclick=function(){n.eAyw(t);var i=n.displayedQuestionIndeces.pop();void 0!==i&&n.Xyor(e,i)}),l&&l.addEventListener("click",(function(){n.UPZv("apx_survey_close_clicked",{where:"question "+(t+1)}),n.eAyw(t),n.mKfB(e,!1)})),d&&(d.onclick=function(){if(n.displayedQuestionIndeces.push(t),n.is_response_based_survey){n.eAyw(t);var o=n.hCRH(i,t);o===n.questions.length||-1===o?n.mKfB(e,!0):n.Xyor(e,o)}else n.eAyw(t),t===n.questions.length-1?n.mKfB(e,!0):n.Xyor(e,t+1)}),u&&(u.onclick=function(){n.displayedQuestionIndeces.push(t),t+1>=n.questions.length||(n.UPZv("apx_survey_skip_clicked",{where:"question "+(t+1)}),n.eAyw(t),n.Xyor(e,t+1))})}})),c(this,"eAyw",(function(e){if(-1===n.answered_questions[e]){var t=n.questions[e],i=n.LJDM(e),o={question_id:t.id,answers:i.answers};t.rules.length>0&&t.rulesArray.forEach((function(e){if(t.selected_rating>=e.min&&t.selected_rating<=e.max){var n=t.text_answer;o.answers=[].concat(p(o.answers),[n])}})),i.answers.length>0&&(n.UPZv("apx_survey_".concat(n.questions[e].title),{data:o}),n.answered_questions[e]=1)}})),c(this,"UPZv",(function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.logEvent(e,o({survey_id:n.configId,name:n.name},i))})),c(this,"LJDM",(function(e){var t=n.questions[e];if(!t)return null;var i={answers:[],answerTexts:[],others:[],textBasedQuestionAnswers:[]},o=t.answerMode,r=t.choices,a=void 0===r?[]:r,s=t.selected_rating,l=void 0===s?-1:s,c=t.text_answer,d=void 0===c?"":c,p=t.is_answered,u=void 0!==p&&p,h=t.text_config,f=void 0===h?null:h;switch(o){case v:case g:a.forEach((function(e){e.is_selected&&(i.answers.push(e.id),i.answerTexts.push(e.value),e.is_other&&null!==e.other_answer&&""!==e.other_answer.trim()&&i.others.push({id:e.id,answer:e.other_answer}))}));break;case b:u&&""!==d&&""!==d.trim()&&null!==f&&(i.answers.push(f.id),i.answerTexts.push(d),i.textBasedQuestionAnswers.push({id:f.id,answer:d}));break;case y:-1!==l&&(i.answers.push(l),i.answerTexts.push(l))}return i})),c(this,"RykJ",(function(e){e.on_dismiss&&e.on_dismiss(),e.children[0].classList.toggle("open"),setTimeout((function(){e.parentNode.removeChild(e),document.body.style.overflow=n.bodyOverflow,n.bodyOverflow=""}),400)})),c(this,"zeGo",(function(e){var t=e.children[0];t.style.minHeight="unset",t&&t.childElementCount>2&&(t.removeChild(t.children[t.childElementCount-1]),t.removeChild(t.children[t.childElementCount-1]));var i=document.getElementById("apx-pb");i.parentNode.removeChild(i);var o,r,a,s,l,c,d=(o=n.success_message,r=n.layoutConfig,a=r.success_message_bg_color,s=r.success_message_icon_color,l=r.success_message_text_color,(c=document.createElement("div")).style="display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;height:100%;background: ".concat(a,"; min-height:480px"),c.innerHTML='\n <span style="font-size: 40px;border-radius: 50%;padding: 10px;padding-bottom: 2px;padding-top: 2px;color: white;background: '.concat(s,';">&#10003;</span>\n <span style="font-size: 17px;margin-top:15px;color:').concat(l,'">').concat(o,"</span>\n "),c);t.appendChild(d),setTimeout((function(){n.RykJ(e)}),n.auto_hide_message)})),c(this,"mKfB",(function(e,i){i&&n.show_success_message?n.zeGo(e):n.RykJ(e);var r={survey_id:n.configId,name:n.name,responses:[]};if(n.questions.forEach((function(e,t){var i=n.LJDM(t);if(i.answers.length>0){var a={question_id:e.id,answers:i.answers};e.rules.length>0&&e.rulesArray.forEach((function(t){if(e.selected_rating>=t.min&&e.selected_rating<=t.max){var n=t.question.text_config,i=e.text_answer;a.answers=[].concat(p(a.answers),[n.id]);var r={id:n.id,answer:i};(a=o(o({},a),{},{others:[]})).others=[].concat(p(a.others),[r])}})),i.others.length>0?a.others=i.others:i.textBasedQuestionAnswers.length>0&&(a.others=i.textBasedQuestionAnswers),r.responses.push(a)}})),r.responses.length>0){var a=Math.pow(10,3);r.time_taken=Math.round((Date.now()-n.startTime)/1e3*a)/a;var s=t.getController(),l=s.getFromStorage("_apx_cd",!0).session_info.launch_time;r.session_id=t.getSessionId(),r.is_completed=i,r.app_version=s.getFromStorage("apx_ver",!1),r.device_uuid=t.getClientId(),r.launch_time=l,r.user_attributes=s.getUserAttributes(),r.session_attributes=s.getSessionAttributes(),n.uwgp(r)}i&&n.UPZv("apx_survey_completed"),n.questions.forEach((function(e,t){e.yjmF(),n.answered_questions[t]=-1})),n.startTime=-1,n.bodyOverflow=""})),c(this,"uwgp",(function(e){var n=m.replace("<app_id>",t.getSiteId());fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})})),this.isValid=!0,this.dialog_config=null})),wi=l((function e(){a(this,e),c(this,"parse",(function(e,t,n){var i=new xi;return i.initialize(e,t,n)?i:null}))})),Ci=function(){function e(t){var n=this;a(this,e),c(this,"iPll",(function(){var e=document.getElementById("apxor-mpl-styles");e&&e.remove()})),c(this,"TWIR",(function(){return n.videoElement})),c(this,"YUob",(function(){try{document.pictureInPictureElement?(document.exitPictureInPicture(),n.iPll()):document.pictureInPictureEnabled&&n.videoElement.requestPictureInPicture()}catch(e){console.error("Failed to load PIP ".concat(e))}})),c(this,"KRZM",(function(){var e=n.videoConfig,t=e.pip_btn_color,i=void 0===t?"#ffffff":t,o=e.close_btn_color,r=void 0===o?"#ffffff":o,a=e.enable_PIP,s=document.createElement("span");if(s.innerHTML='\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill='.concat(r,' class="bi bi-x-circle" viewBox="0 0 16 16">\n <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>\n <path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/>\n </svg>'),s.classList.add("apxor-close-btn"),s.addEventListener("click",(function(e){try{n.miniPlayer.remove(),n.iPll()}catch(e){console.log("Error \n ".concat(e," \n occured while closing the video"))}})),n.miniPlayer.appendChild(s),a){var l=document.createElement("span");l.innerHTML='\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill='.concat(i,' class="bi bi-pip" viewBox="0 0 16 16">\n <path d="M0 3.5A1.5 1.5 0 0 1 1.5 2h13A1.5 1.5 0 0 1 16 3.5v9a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 0 12.5v-9zM1.5 3a.5.5 0 0 0-.5.5v9a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-13z"/>\n <path d="M8 8.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-3z"/>\n </svg>'),l.classList.add("apxor-pip-btn"),l.addEventListener("click",(function(e){try{n.videoElement.disablePictureInPicture=!1,n.videoElement.requestPictureInPicture()}catch(e){console.log("Error \n ".concat(e," \n while starting the PIP"))}})),n.miniPlayer.appendChild(l)}})),c(this,"AFkQ",(function(){var e=n.videoConfig.enable_pip_toggles;if(void 0===e||e){n.videoElement.addEventListener("leavepictureinpicture",(function(){n.videoElement.disablePictureInPicture=!0,n.miniPlayer.classList.remove("apxor-hide-elmt")}),!1);n.videoElement.addEventListener("enterpictureinpicture",(function(){n.miniPlayer.classList.add("apxor-hide-elmt")}),!1)}})),c(this,"NZjT",(function(){n.miniPlayer.classList.add("apxor-hide-elmt")})),c(this,"wkKu",(function(){n.miniPlayer.classList.remove("apxor-hide-elmt")})),c(this,"pgUW",(function(){var e=n.videoConfig,t=e.buttons_config,i=e.uuid,o=void 0===i?"":i,r=e.name,a=void 0===r?"MiniPlayer":r,s=e.button_position,l=void 0===s?"center":s;if(t&&t.length>0){var c=document.createElement("div");c.setAttribute("id","apxor-cta-btn"),c.classList.add("apxor-video-cta"),c.classList.add("apxor-hide-elmt");var d=function(){try{n.miniPlayer.remove(),n.iPll()}catch(e){console.log("Can't close the video player\n".concat(e))}},p=T(t,{next:d,complete:d,cancel:d},o,a),u=p.buttons_array,h=p.buttons_css,f=document.createElement("style");f.innerHTML=M(h,l),c.appendChild(f),u.forEach((function(e){var t=e.classes,n=e.text,i=e.action,o=document.createElement("button");o.className="shepherd-button "+t,o.innerText=n,o.onclick=function(){return i()},c.appendChild(o)})),n.miniPlayer.appendChild(c)}})),this.videoConfig=t,this.miniPlayer=null,this.videoElement=null}return l(e,[{key:"createPlayer",value:function(){this.miniPlayer=document.createElement("div"),this.miniPlayer.setAttribute("id","apxor-mini-player"),this._setMiniPlayerStyles(),this._setMiniPlayerPosition(),this._setPlayerContent(),this.AFkQ(),this.KRZM(),this.pgUW(),this.NZjT(),document.body.appendChild(this.miniPlayer)}},{key:"_setMiniPlayerStyles",value:function(){if(!document.getElementById("apxor-mpl-styles")){var e=this.videoConfig,t=e.width,n=void 0===t?420:t,i=e.height,o=void 0===i?420:i,r=document.createElement("style");r.setAttribute("id","apxor-mpl-styles"),r.innerHTML="\n div.apxor-mini-player--topLeft {\n position: fixed;\n top: 0;\n left: 0;\n max-width : ".concat(n,"px;\n max-height : ").concat(o,"px;\n background-color: #000000;\n }\n \n div.apxor-mini-player--topRight {\n position: fixed;\n top: 0;\n right: 0;\n max-width : ").concat(n,"px;\n max-height : ").concat(o,"px;\n background-color: #000000;\n }\n \n div.apxor-mini-player--bottomLeft {\n position: fixed;\n bottom: 0;\n left: 0;\n max-width : ").concat(n,"px;\n max-height : ").concat(o,"px;\n background-color: #000000;\n }\n \n div.apxor-mini-player--bottomRight {\n position: fixed;\n bottom: 0;\n right: 0;\n max-width : ").concat(n,"px;\n max-height : ").concat(o,'px;\n background-color: #000000;\n }\n\n .apxor-hide-elmt {\n display : none;\n }\n\n .apxor-pip-btn {\n position: absolute;\n top: 10px;\n left: 10px;\n width: 24px;\n height: 24px;\n opacity: 0.3;\n transition: opacity .3s ease;\n cursor: pointer;\n }\n video:hover~.apxor-pip-btn {\n opacity: 1;\n }\n \n .apxor-close-btn {\n position: absolute;\n top: 10px;\n right: 10px;\n width: 24px;\n height: 24px;\n opacity: 0.3;\n transition: opacity .3s ease;\n cursor: pointer;\n }\n video:hover~.apxor-close-btn {\n opacity: 1;\n }\n\n .apxor-video-cta {\n position: absolute;\n top: 50%;\n left: 50%;\n width: auto;\n height: auto;\n transition: opacity .3s ease;\n cursor: pointer;\n }\n \n .bi::before,\n [class^="bi-"]::before,\n [class*=" bi-"]::before {\n display: inline-block;\n font-style: normal;\n font-weight: normal !important;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n vertical-align: -.125em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n .bi-pip::before { \n content: "\f4ef"; \n }\n\n .bi-x-circle::before { \n content: "\f623"; \n }\n\n '),document.head.appendChild(r)}}},{key:"_setMiniPlayerPosition",value:function(){switch(this.videoConfig.videoPosition){case"top-left":this.miniPlayer.classList.add("apxor-mini-player--topLeft");break;case"top-right":this.miniPlayer.classList.add("apxor-mini-player--topRight");break;case"bottom-left":this.miniPlayer.classList.add("apxor-mini-player--bottomLeft");break;case"bottom-right":default:this.miniPlayer.classList.add("apxor-mini-player--bottomRight")}}},{key:"_setPlayerContent",value:function(){var e=this.videoConfig,t=e.v_url,n=e.v_format,i=void 0===n?"video/mp4":n,o=(e.auto_replay,e.mute_audio),r=void 0!==o&&o,a=(e.enable_PIP,e.width),s=void 0===a?420:a,l=e.height,c=void 0===l?420:l,d=e.video_mode;this.videoElement=document.createElement("video"),this.videoElement.width=s,this.videoElement.height=c,this.videoElement.controlsList="noplaybackrate nodownload","PIP"!=d&&(this.videoElement.autoplay=!0),this.videoElement.controls=!0,r&&(this.videoElement.muted=!0),this.videoElement.disablePictureInPicture=!0;var p=document.createElement("source");p.setAttribute("src",t),p.setAttribute("type",i),this.videoElement.appendChild(p),this.videoElement.addEventListener("ended",(function(e){var t=document.getElementById("apxor-cta-btn");t&&t.classList.remove("apxor-hide-elmt")})),this.videoElement.addEventListener("play",(function(e){var t=document.getElementById("apxor-cta-btn");t&&t.classList.add("apxor-hide-elmt")})),this.miniPlayer.appendChild(this.videoElement)}}]),e}(),_i=window.ApxorLogger;var Ei=l((function e(){var n=this;a(this,e),c(this,"initialize",(function(e,t,i){var o=i.delay,r=i.layout_type,a=void 0===r?"":r,s=i.html_config.data,l=void 0===s?"":s,c=i.window_attributes,d=c.width,p=void 0===d?"auto":d,u=c.height,h=void 0===u?"auto":u,f=c.dimmed_background,m=void 0===f||f,v=c.dismiss_outside_touch,g=void 0!==v&&v;return n.configId=e,n.name=t,n.delay=o,n.width=p,n.height=h,n.layoutConfig={layout_type:a,dimmed_background:m,dismiss_outside_touch:g},n.htmlConfig={data:l},"videos"!==a&&""==n.htmlConfig.data?(n.isValid=!1,!1):(n.ui=i,!0)})),c(this,"gvfm",(function(){if(!n.isValid)return!1;setTimeout((function(){try{if(ji.getInstance().updateCount(n.configId),"videos"===n.layoutConfig.layout_type)!function(e){if(!document.getElementById("apxor-mini-player")){var t=e.binding,n=e.activity,i=e.video_mode,o=!0;if(t&&""!=n&&window.location.pathname!==n&&(o=!1),o){var r=new Ci(e);if(r.createPlayer(),"PIP"==i){var a=r.TWIR();a.onloadedmetadata=function(){a.requestPictureInPicture()}}else r.wkKu()}}}(n.ui);else{var e=function(e,t,n){var i=n.dimmed_background,o=document.createElement("div");o.setAttribute("id","apx-oly");var r=document.createElement("style");r.innerHTML="#apx-oly {\n width:auto;height:auto;position:fixed;top:0;right:0;bottom:0;left:0;\n display:flex;justify-content:center;align-items:center;border-radius:3px;z-index:99999999;background-color:".concat(i?"#31313185":"transparent",";\n\n }\n #apx-oly > * {font-family:inherit;box-sizing:unset}\n .apx-dlg-c {\n height:auto;width:auto;z-index:99999999;opacity:0;transition:all .5s cubic-bezier(.96,.23,.07,.8);position:fixed;visibility:hidden;\n border-radius:3px;overflow:hidden\n }\n .apx-dlg-c.open{opacity:1;visibility:visible;width:100%;height:100%;}\n ").replaceAll("\n","").replace(/[\s]{2,999}/g,"");var a=document.createElement("div");return a.setAttribute("id","apx-dlg-c"),a.classList.add("apx-dlg-c"),o.appendChild(a),o.appendChild(r),document.body.appendChild(o),o}(n.width,n.height,n.layoutConfig);n.layoutConfig.dismiss_outside_touch&&(document.getElementById("apx-oly").onclick=function(){n.Vktg(e)}),setTimeout((function(){e.children[0].classList.toggle("open"),e.children[0].innerHTML=n.htmlConfig.data,n.DZqr("inapp_shown"),e.querySelectorAll("a").forEach((function(t){t.onclick=function(){return n.MWTp(e,t)}}))}),100)}}catch(e){_i.error(e)}}),n.delay)})),c(this,"MWTp",(function(e,i){var o=i.getAttribute("href");if(null!=o&&o.includes("apxor")){var r,a=o.replace(/^apxor:\/\/([^\?]*).*?$/,"$1");switch(a){case"cancel":n.DZqr("walk_through_cancelled");break;case"xclose":n.DZqr("InAppXIconClicked");break;case"close":r=o.replace(/(.*?)buttonName=([^\&]*).*?$/,"$2"),n.DZqr(x(""===r?"Button":r));break;case"dl_url":var s=o.replace(/(.*?)uri=([^\&]*).*?$/,"$2"),l=o.replace(/(.*?)external=([^\&]*).*?$/,"$2");r=o.replace(/(.*?)buttonName=([^\&]*).*?$/,"$2"),n.DZqr(x(""===r?"Button":r)),"true"==l?window.open(s,"_blank"):t.logClientEvent("REDIRECT",{url:s})}return n.Vktg(e,a),!1}return!0})),c(this,"Vktg",(function(e,t){"cancel"!==t&&n.DZqr("inapp_dismissed"),e.children[0].classList.toggle("open"),setTimeout((function(){e.parentNode.removeChild(e)}),300)})),c(this,"DZqr",(function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.logEvent(e,o({id:n.configId,message_name:n.name},i))})),this.isValid=!0})),ki=l((function e(){a(this,e),c(this,"parse",(function(e,t,n){var i=new Ei;return i.initialize(e,t,n)?i:null}))})),Ai=function(e){if(e.target){var t=e.target.classList,n=t.contains("apx-highlight")||-1!==t.toString().indexOf("apx-");t&&!n&&(e.target.classList.add("apx-highlight"),e.target.oldOnClick=e.target.onclick,e.target.onclick=null)}},Li=function(e){e.target&&e.target.classList&&e.target.classList.contains("apx-highlight")&&(e.target.classList.remove("apx-highlight"),e.target.onclick=e.target.oldOnClick,e.target.oldOnClick=null)};var Mi="<b>View Selection Mode: ON",Ti="<b>View Selection Mode: OFF</b>",Oi="https://server.apxor.com/v1/sse/",Si=Oi+"layout?appId=<aid>&deviceId=<uid>",Di=Oi+"ui-config?appId=<aid>&deviceId=<uid>",Ii=Oi+"art-config?appId=<aid>&deviceId=<uid>",Ni="https://server.apxor.com/v4/frontendapi/web/test-devices",Bi=Ni+"?appId=<aid>",Pi=Ni+"/<uid>?appId=<aid>",Fi=l((function e(){var n=this;a(this,e),c(this,"pafj",null),c(this,"Tamb",null),c(this,"HpOA",null),c(this,"KhqQ",null),c(this,"tUlg",""),c(this,"init",(function(e,i){var o=function(e){if(window.document)for(var t=e+"=",n=window.document.cookie.split(";"),i=0;i<n.length;i++){for(var o=n[i];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return decodeURIComponent(o.substring(t.length,o.length))}return null}("_apx_ewc");if(o){var r=atob(o);try{var a=t.getController().getFromStorage(r,!0);if(!a)return;var s=a.app_id,l=a.expiry,c=a.volatile_id;if(n.tUlg=c,s===e&&Date.now()<=l){var d=document.createElement("span");if(d.style="z-index:99999999;visibility:hidden;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);padding:16px 24px;background:#252f37;border-radius:3px;opacity:0;font-size:24px;color:white;transition:all .3s ease-out",d.innerHTML=Mi,n.Tamb=d,document.body.appendChild(d),n.pafj=document.createElement("style"),n.pafj.innerHTML=".apx-highlight{height:auto;z-index:9999999999;outline: 2px solid red;cursor:default}",document.body.appendChild(n.pafj),n.isSelectionMode=!1,n.testDeviceData=t.getController().getFromStorage("_apx_td",!0),n.testDeviceData){var p=n.testDeviceData,u=p.name,h=void 0===u?"":u,f=p.id,m=void 0===f?"":f;if(""!==h&&""!==m){n.xUQi("select","".concat(h," - ").concat(m),m);var v=new EventSource(Di.replace("<aid>",e).replace("<uid>",m)),g=new EventSource(Ii.replace("<aid>",e).replace("<uid>",m));v.onmessage=g.onmessage=function(e){e&&e.data&&"{}"!==e.data&&n.BJxK(i,e.data)}}}n.acmW(i)}}catch(e){}}})),c(this,"RLbq",(function(){n.Tamb.parentNode.removeChild(n.Tamb),n.pafj.parentNode.removeChild(n.pafj)})),c(this,"BJxK",(function(e,i){try{n.KhqQ.dispatchEvent(new CustomEvent("preview"));var o=JSON.parse(i),r=o.cmd;if("prev"===(void 0===r?"prev":r))if(o.hasOwnProperty("ui")){var a=function e(t){return[Math.random,function(){return e.last?windowId.last+Math.random():Math.random()},Math.random,Date.now,Math.random].map((function(e){return e().toString(t||16+20*Math.random()).substr(-8)})).join("-")}(36),s={configs:[{_id:a,enabled:!0,terminate_info:{auto_dismiss:!1,duration:1e3},meta:{name:"P",type:o.type},ui:o.ui}]};e.ZDxp("SURVEY"!==o.type?0:1,s),t.getController().dispatchEvent(o.type,{name:o.type,additional_info:{uuid:a,name:"P"}})}else if(o.hasOwnProperty("messages")){var l=[],c=[];o.messages.forEach((function(e){"SURVEY"!==e.meta.type?c.push(e):l.push(e)})),c.length>0&&e.handleResponse(0,{configs:c}),l.length>0&&e.handleResponse(1,{configs:l})}}catch(e){console.error(e)}})),c(this,"acmW",(function(e){var i=null!==n.testDeviceData&&void 0!==n.testDeviceData&&n.testDeviceData.id&&n.testDeviceData.name,o='\n<style>\n.apx-cr{display:flex;justify-content:center;align-items:center;flex-direction:column;gap:10px}\n.apx-b{border:none;font-size:16px;font-family:inherit;padding:8px 14px;cursor:pointer}\n.apx-close:before{content:\'\\58\';font-size:9px;color:#969696;cursor:pointer;position:absolute;top:1px;right:3px}\n</style>\n<svg class="apx-" id="apx-wr-h" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" preserveAspectRatio="xMidYMid meet" viewBox="280.6027397260274 189.52023061718432 89.75342465753425 54.49346801295263" width="48" height="29.14" style="width:17px;position:absolute;top:7px;left:50%;transform:translate(-50%, -50%);cursor:move;"><defs><path d="M304.6 201.52C304.6 208.14 299.23 213.52 292.6 213.52C285.98 213.52 280.6 208.14 280.6 201.52C280.6 194.9 285.98 189.52 292.6 189.52C299.23 189.52 304.6 194.9 304.6 201.52Z" id="e2aMl5NH8S"/><path d="M324.9 189.54C331.52 189.16 337.2 194.21 337.58 200.82C337.97 207.43 332.91 213.12 326.3 213.5C319.69 213.89 314.01 208.83 313.62 202.22C313.24 195.61 318.29 189.93 324.9 189.54Z" id="e2L4sySuvL"/><path d="M304.6 232.01C304.6 225.39 299.23 220.01 292.6 220.01C285.98 220.01 280.6 225.39 280.6 232.01C280.6 238.64 285.98 244.01 292.6 244.01C299.23 244.01 304.6 238.64 304.6 232.01Z" id="a5AJxVSDw"/><path d="M337.6 232.01C337.6 225.39 332.23 220.01 325.6 220.01C318.98 220.01 313.6 225.39 313.6 232.01C313.6 238.64 318.98 244.01 325.6 244.01C332.23 244.01 337.6 238.64 337.6 232.01Z" id="bjnangUBy"/><path d="M370.36 232.01C370.36 225.39 364.98 220.01 358.36 220.01C351.73 220.01 346.36 225.39 346.36 232.01C346.36 238.64 351.73 244.01 358.36 244.01C364.98 244.01 370.36 238.64 370.36 232.01Z" id="a8aeEZTAL0"/><path d="M369.36 201.52C369.36 194.9 363.98 189.52 357.36 189.52C350.73 189.52 345.36 194.9 345.36 201.52C345.36 208.14 350.73 213.52 357.36 213.52C363.98 213.52 369.36 208.14 369.36 201.52Z" id="a4VJpGfPPp"/></defs><g><g><g><use xlink:href="#e2aMl5NH8S" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#e2L4sySuvL" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#a5AJxVSDw" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#bjnangUBy" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#a8aeEZTAL0" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#a4VJpGfPPp" opacity="1" fill="#000000" fill-opacity="1"/></g></g></g></svg>\n<div class="apx-cr" style="gap:0">\n <img class="apx-" width="54" height="54" src="https://f.hubspotusercontent10.net/hub/5329664/hubfs/Apxor%20X%20logo.png?width=108&height=108" />\n</div>\n<div id="apx-bh" class="apx-cr apx-bh" style="padding:8px 20px;">\n<button class="apx-b" id="apx-a" style="display:'.concat(i?"none":"block",'">Add as test device</button>\n<button class="apx-b" id="apx-r" style="display:').concat(i?"block":"none",'">Remove as test device</button>\n<button class="apx-b" id="apx-ev" style="display:').concat(i&&n.isSelectionMode?"none":i?"block":"none",'">Enable view selection</button>\n<button class="apx-b" id="apx-dv" style="display:').concat(i&&n.isSelectionMode?"block":"none",'">Disable view selection</button>\n</div>\n '),r=document.getElementById("apx-wr");r&&r.remove&&r.remove();var a=document.createElement("div");a.style="z-index:99999999;position:fixed;top:8px;right:8px;background:white;box-shadow:0px 0.54801px 1.64403px 0.54801px rgb(0 0 0 / 11%);border-radius:3px;padding:10px",a.setAttribute("id","apx-wr"),a.innerHTML=o,document.body.appendChild(a),n.KhqQ=a;var s=document.getElementById("apx-bh"),l=function(){a.style.opacity=.5,s.style.display="none"},c=setTimeout(l,3e3);a.addEventListener("mouseover",(function(){a.style.opacity=1,clearTimeout(c),s.style.display="flex"})),a.addEventListener("mouseout",(function(){c=setTimeout(l,3e3)}));var d=document.getElementById("apx-a"),p=document.getElementById("apx-r"),u=document.getElementById("apx-ev"),h=document.getElementById("apx-dv");d.onclick=function(){return n.cDtN(e)},p.onclick=function(){fetch(Pi.replace("<aid>",t.getSiteId()).replace("<uid>",n.testDeviceData.id),{method:"DELETE",headers:{apx_web_key:"WTCKFAIVAJKYJA3HCV80WIKZU98R9NJG"}}).then((function(e){return e.ok&&200===e.status?e.json():null})).then((function(e){e&&(t.getController().persistToStorage("_apx_td",{},!0),n.testDeviceData=null,d.style.display="block",p.style.display=u.style.display=h.style.display="none",n.isSelectionMode&&n.Bjup())})).catch((function(e){return console.error(e)}))},u.onclick=function(){n.isSelectionMode=!0,window.addEventListener("mouseover",Ai,!0),window.addEventListener("mouseout",Li,!0),n.clickListener=function(e){return function(e,t){var n=e.target;n&&n.classList.contains("apx-highlight")&&(e.preventDefault(),e.stopPropagation(),n.classList.remove("apx-highlight"),n.onclick=n.oldOnClick,n.oldOnClick=null,t&&t(n))}(e,(function(e){var t=n.UQsJ(e,!0),i=n.asKj(e,!0);n.xUQi("view",location.href,t+"___"+i)}))},window.addEventListener("click",n.clickListener,!0),n.GZZx(!1),u.style.display="none",h.style.display="block"};var f=function(){n.Bjup(),h.style.display="none",u.style.display="block"};h.onclick=f,n.KhqQ.addEventListener("preview",f),n.KhqQ.addEventListener("added",(function(){d.style.display="none",p.style.display="block",s.style.display="flex",u.style.display="block"})),function(e){var t,n=window.innerHeight-8,i=8,o=window.innerWidth-8,r=8,a=0,s=0,l=0,c=0;function d(n){n.preventDefault(),n.stopPropagation(),n=n||window.event,l=n.clientX,c=n.clientY,t=e.getBoundingClientRect(),document.onmouseup=u,document.onmousemove=p}function p(d){d.preventDefault(),d.stopPropagation(),d=d||window.event,a=l-d.clientX,s=c-d.clientY,l=d.clientX,c=d.clientY;var p=e.offsetLeft-a,u=e.offsetTop-s;p<i||u<r||p+t.width>o||u+t.height>n||(e.style.top=e.offsetTop-s+"px",e.style.left=e.offsetLeft-a+"px",e.style.right="")}function u(){document.onmouseup=null,document.onmousemove=null}document.getElementById(e.id+"-h")?document.getElementById(e.id+"-h").onmousedown=d:e.onmousedown=d}(a)})),c(this,"Bjup",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ti;if(n.isSelectionMode){window.removeEventListener("mouseover",Ai,!0),window.removeEventListener("mouseout",Li,!0),window.removeEventListener("click",n.clickListener,!0);for(var t=document.querySelectorAll(".apx-highlight"),i=0;i<t.length;i++){var o=t[i];o.classList.remove("apx-highlight")}n.GZZx(!0,e),n.isSelectionMode=!1}})),c(this,"GZZx",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ti;n.Tamb.style.visibility="visible",e?(n.Tamb.innerHTML=t,n.Tamb.style.opacity=1):(n.Tamb.innerHTML=Mi,n.Tamb.style.opacity=1),setTimeout((function(){n.Tamb.style.opacity=0,n.Tamb.style.visibility="hidden"}),1e3)})),c(this,"cDtN",(function(e){var i=O(500,20,{}),o=i.children[0];o.style.flex="0 1 auto",o.style.maxHeight="calc(100% - 96px)",o.style.display="flex",o.style.flexDirection="column";var r=t.getController().getDevInfo(),a=t.getController().getUserAttributes().apx_browser,s=r.hardware_model,l=r.os_version,c=r.id,d="\n".concat('<style>\n.apx-loading{\nbackground:#333 url(\'https://code.jquery.com/mobile/1.3.1/images/ajax-loader.gif\') no-repeat 50% 50%;\n-webkit-transition:background-color 0;transition:background-color 0;opacity: 1;\n-webkit-transition:opacity 1;transition:opacity 1\n}\n.apx-t{\nflex:0 0 auto;margin:0;padding:24px 24px 20px\n}\n.apx-tt{\ncolor:rgba(0,72,114,0.87);font-size:1.3125rem;font-weight:500;\nfont-family: \'Roboto\', \'Helvetica\', \'Arial\', sans-serif;line-height: 1.16667em;margin:0\n}\n.apx-c{\nflex:1 1 auto;padding:0 24px 24px;overflow-y: auto\n}\n.apx-de{\nline-height:1.5;color:rgba(0,72,114,0.54);font-size:1rem;font-weight:400;\nfont-family:"Roboto", "Helvetica", "Arial", sans-serif;margin:0;display:block\n}\n.apx-id{\nwidth:100%;margin-top:8px;margin-bottom:4px;margin:0;border:0;flex-direction:column;\ndisplay:inline-flex;padding:0;position:relative;min-width:0;vertical-align:top\n}\n.apx-il{\ntransition:color 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms,transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms;\ntransform:translate(0, 21px) scale(1);top:0;left:0;position:absolute;\ncolor:rgba(0,72,114, 0.54);padding: 0;font-size: 1rem;transform-origin:top left;\nfont-family: "Roboto", "Helvetica", "Arial", sans-serif;line-height: 1\n}\n.apx-il-f{\ntransform:translate(0, 1.5px) scale(0.75)\n}\nlabel + .apx-iid {\nmargin-top:16px;position:relative;width: 100%;color: rgba(0,72,114, 0.87);\ncursor: text;display: inline-flex;font-size: 1rem;\nfont-family:"Roboto", "Helvetica", "Arial", sans-serif;\nline-height: 1.1875em;align-items: center\n}\n.apx-iid.apx-iid-f:after{transform:scaleX(1)}\n.apx-iid:hover:before{border-bottom: 2px solid rgba(0,72,114, 0.87)}\n.apx-iid:before{\nleft: 0;right: 0;bottom: 0;content: \'\\00a0\';position: absolute;\ntransition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\nborder-bottom: 1px solid rgba(0, 0, 0, 0.42);pointer-events: none\n}\n.apx-iid:after{\nleft: 0;right: 0;bottom: 0;content: "";position: absolute;transform: scaleX(0);\ntransition: transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms;\nborder-bottom: 2px solid rgb(44, 56, 126);pointer-events: none\n}\n.apx-ii{\npadding-top:3px;font: inherit;color: currentColor;width: 100%;border: 0;margin: 0;\ndisplay: block;min-width: 0;box-sizing: content-box;background: none;padding: 6px 0 7px;outline:0\n}\n.apx-ul{\npadding-top:8px;padding-bottom:8px;margin:0;padding:0;position:relative;list-style:none\n}\n.apx-li{\npadding-left:16px;padding-right:16px;width:100%;display:flex;list-style:none;\nposition:relative;box-sizing:border-box;text-align:left;align-items:center;\npadding-top:11px;padding-bottom:11px;justify-content:flex-start;text-decoration:none\n}\n.apx-lid:first-child{padding-left:0}\n.apx-lid{flex:1 1 auto;padding:0 16px;min-width:0}\n.apx-lids{\ncolor:rgba(0,72,114, 0.87);font-weight:400;line-height:1.5em;\nfont-family:"Roboto", "Helvetica", "Arial", sans-seriffont-size:1rem\n}\n.apx-a{\nflex:0 0 auto;margin:8px 4px;display:flex;align-items:center;justify-content:flex-end\n}\n.apx-b{\nfont-size:0.875rem;min-width:64px;box-sizing:border-box;min-height:36px;border:0;\ntransition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\nline-height:1.3125;font-weight:500;font-family:"Roboto", "Helvetica", "Arial", sans-serif;\nborder-radius:4px;text-transform:uppercase;cursor:pointer;display:inline-flex;outline:none;\nposition:relative;align-items:center;user-select:none;vertical-align:middle;\njustify-content:center;text-decoration:none;background-color:transparent\n}\n.apx-bl{\nwidth: 100%;display:inherit;align-items:inherit;justify-content:inherit\n}\n.apx-btr{\ntop:0;left:0;width:100%;height:100%;display:block;z-index:0;position:absolute;\noverflow:hidden;border-radius:inherit;pointer-events:none\n}</style>\n ','\n<div>\n <div class="apx-t"><h2 class="apx-tt">Set device nick name</h2></div>\n <div class="apx-c">\n <p class="apx-de">Give this device a nick name for easy identification</p>\n <div class="apx-id">\n <label class="apx-il">Nick name</label>\n <div class="apx-iid">\n <input class="apx-ii" type="text" id="apx-ii" value="">\n </div>\n </div>\n <ul class="apx-ul">\n <li class="apx-li">\n <div class="apx-lid">\n <span class="apx-lids">\n <span>Model <strong style="float:right">').concat(s," - ").concat(l,'</strong></span>\n </span>\n </div>\n </li>\n <li class="apx-li">\n <div class="apx-lid">\n <span class="apx-lids">\n <span>Browser <strong style="float:right">').concat(a,'</strong></span>\n </span>\n </div>\n </li>\n <li class="apx-li">\n <div class="apx-lid">\n <span class="apx-lids">\n <span>Device ID <strong style="float:right">').concat(c,'</strong></span>\n </span>\n </div>\n </li>\n </ul>\n </div>\n <div class="apx-a">\n <button id="apx-bc" class="apx-b"><span class="apx-bl" style="color:#295e8c6b">Cancel</span><span class="apx-btr"/></button>\n <button id="apx-bd" class="apx-b"><span class="apx-bl" style="color:#295e8c">Done</span><span class="apx-btr"/></button>\n </div>\n</div>\n ');i.style.visibility="hidden",o.style.visibility="hidden",o.innerHTML=d;var p,u,h=document.getElementById("apx-ii");n.testDeviceData&&(h.value=null!==(p=null===(u=n.testDeviceData)||void 0===u?void 0:u.name)&&void 0!==p?p:"");h.onfocus=function(){h.parentNode.classList.add("apx-iid-f"),h.parentNode.parentNode.children[0].classList.add("apx-il-f")},h.onblur=function(){h.parentNode.classList.remove("apx-iid-f"),h.parentNode.parentNode.children[0].classList.remove("apx-il-f")},h.oninput=function(){""!==h.value.trim()?m.removeAttribute("disabled"):m.setAttribute("disabled","")},setTimeout((function(){i.style.visibility="visible",o.style.visibility="visible",o.classList.toggle("open"),h.parentNode.parentNode.children[0].classList.add("apx-il-f")}),100);var f=function(){o.classList.toggle("open"),setTimeout((function(){i.parentNode.removeChild(i)}),400)};document.getElementById("apx-bc").onclick=function(){f()};var m=document.getElementById("apx-bd");m.onclick=function(){o.children[1].classList.add("apx-loading"),t.getController().makePostRequest(Bi.replace("<aid>",t.getSiteId()),{model:s,id:c,nick_name:h.value},{apx_web_key:"WTCKFAIVAJKYJA3HCV80WIKZU98R9NJG"},(function(){var i={id:c,name:h.value};t.getController().persistToStorage("_apx_td",i,!0),n.testDeviceData=i,n.xUQi("select","".concat(h.value," - ").concat(c),c,(function(){o.children[1].classList.remove("apx-loading"),n.KhqQ.dispatchEvent(new CustomEvent("added"))}));var r=new EventSource(Di.replace("<aid>",t.getSiteId()).replace("<uid>",c)),a=new EventSource(Ii.replace("<aid>",t.getSiteId()).replace("<uid>",c));r.onmessage=a.onmessage=function(t){t&&t.data&&"{}"!==t.data&&n.BJxK(e,t.data)},f()}),(function(){}))}})),c(this,"xUQi",(function(e,i,o){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},s=t.getController().getDevInfo(),l={device_info:{id:s.id,hardware_model:s.hardware_model,os_version:s.os_version,width:s.dimensions.width,height:s.dimensions.height},screen:{image:e,navigation:i,orientation:o},layout:[]};t.getController().makePostRequest(Si.replace("<aid>",t.getSiteId()).replace("<uid>",n.tUlg),l,{},r,a)})),c(this,"UQsJ",(function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)return"";for(var i=[],o=e;o;){var r=n.fPiC(o,!!t,o===e);if(!r)break;if(i.push(r),r.optimized)break;o=o.parentNode}return i.reverse(),i.join(" > ")})),c(this,"fPiC",(function(e,t,n){if(e.nodeType!==Node.ELEMENT_NODE)return null;var i=e.getAttribute("id");if(t){if(i)return new zi(l(i),!0);var o=e.nodeName.toLowerCase();if("body"===o||"head"===o||"html"===o)return new zi(e.nodeName.toLowerCase(),!0)}var r=e.nodeName.toLowerCase();if(i)return new zi(r.toLowerCase()+l(i),!0);var a=e.parentNode;if(!a||a.nodeType===Node.DOCUMENT_NODE)return new zi(r.toLowerCase(),!0);function s(e){var t=e.getAttribute("class");return t?t.split(/\s+/g).filter(Boolean).map((function(e){return"$"+e})):[]}function l(e){return"#"+c(e)}function c(e){if(/^-?[a-zA-Z_][a-zA-Z0-9_-]*$/.test(e))return e;var t=/^(?:[0-9]|-[0-9-]?)/.test(e),n=e.length-1;return e.replace(/./g,(function(e,i){return t&&0===i||!function(e){return!!/[a-zA-Z0-9_-]/.test(e)||e.charCodeAt(0)>=160}(e)?function(e,t){return"\\"+function(e){var t=e.charCodeAt(0).toString(16);1===t.length&&(t="0"+t);return t}(e)+(t?"":" ")}(e,i===n):e}))}for(var d=s(e),p=!1,u=!1,h=-1,f=-1,m=a.children,v=0;(-1===h||!u)&&v<m.length;++v){var g=m[v];if(g.nodeType===Node.ELEMENT_NODE)if(f+=1,g!==e){if(!u&&g.nodeName.toLowerCase()===r.toLowerCase()){p=!0;var y=new Set(d);if(y.size)for(var b=s(g),x=0;x<b.length;++x){var w=b[x];if(y.has(w)&&(y.delete(w),!y.size)){u=!0;break}}else u=!0}}else h=f}var C=r.toLowerCase();if(n&&"input"===r.toLowerCase()&&e.getAttribute("type")&&!e.getAttribute("id")&&!e.getAttribute("class")&&(C+='[type="'+e.getAttribute("type")+'"]'),u)C+=":nth-child("+(h+1)+")";else if(p)for(var _ in d)C+="."+c(d[_].substr(1));return new zi(C,!1)})),c(this,"asKj",(function(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";for(var i=[],o=e;o;){var r=n.COCe(o,t);if(!r)break;if(i.push(r),r.optimized)break;o=o.parentNode}return i.reverse(),(i.length&&i[0].optimized?"":"/")+i.join("/")})),c(this,"COCe",(function(e,t){var i,o=n.NSrl(e);if(-1===o)return null;switch(e.nodeType){case Node.ELEMENT_NODE:if(t&&e.getAttribute("id"))return new zi('//*[@id="'+e.getAttribute("id")+'"]',!0);i=e.localName;break;case Node.ATTRIBUTE_NODE:i="@"+e.nodeName;break;case Node.TEXT_NODE:case Node.CDATA_SECTION_NODE:i="text()";break;case Node.PROCESSING_INSTRUCTION_NODE:i="processing-instruction()";break;case Node.COMMENT_NODE:i="comment()";break;case Node.DOCUMENT_NODE:default:i=""}return o>0&&(i+="["+o+"]"),new zi(i,e.nodeType===Node.DOCUMENT_NODE)})),c(this,"NSrl",(function(e){function t(e,t){return e===t||(e.nodeType===Node.ELEMENT_NODE&&t.nodeType===Node.ELEMENT_NODE?e.localName===t.localName:e.nodeType===t.nodeType||(e.nodeType===Node.CDATA_SECTION_NODE?Node.TEXT_NODE:e.nodeType)===(t.nodeType===Node.CDATA_SECTION_NODE?Node.TEXT_NODE:t.nodeType))}var n,i=e.parentNode?e.parentNode.children:null;if(!i)return 0;for(var o=0;o<i.length;++o)if(t(e,i[o])&&i[o]!==e){n=!0;break}if(!n)return 0;var r=1;for(o=0;o<i.length;++o)if(t(e,i[o])){if(i[o]===e)return r;++r}return-1}))})),zi=function(e,t){this.value=e,this.optimized=t||!1};zi.prototype={toString:function(){return this.value}};var Zi=window.ApxorLogger,Hi=new(l((function e(){var n=this;a(this,e),c(this,"version",129),c(this,"MooL",{}),c(this,"isShowingAction",!1),c(this,"currentAction",null),c(this,"ffLC",new wi),c(this,"zhVR",new ki),c(this,"AmUY",new Fi),c(this,"mjDz",null),c(this,"kQeK",{}),c(this,"init",(function(e){n.mjDz=e;var i=t.getController(),o=ji.getInstance(),r=t.getSiteId(),a=function(e,t){var n=function(n){return n.replace("<app_id>",e).replace("<u_id>",t)};return{rtaValidateUrl:n("https://server.apxor.com/v2/sync/<app_id>/configs/validate?platform=web&userId=<u_id>&actionType=rta&version=139"),rtaSyncUrl:n("https://server.apxor.com/v2/sync/<app_id>/rta?platform=web&userId=<u_id>&version=139"),surveysValidateUrl:n("https://server.apxor.com/v2/sync/<app_id>/configs/validate?platform=web&userId=<u_id>&actionType=survey&version=139"),surveysSyncUrl:n("https://server.apxor.com/v2/sync/<app_id>/surveys?platform=web&userId=<u_id>&version=139")}}(r,t.getClientId()),s=a.rtaValidateUrl,l=a.rtaSyncUrl,c=a.surveysValidateUrl,d=a.surveysSyncUrl;o.initialize(),o.fetch(0,s,l,n.handleResponse),o.fetch(1,c,d,n.handleResponse),i.registerForEvent("IN_LINE",n.cILd),i.registerForEvent("IN_APP",n.mfmc),i.registerForEvent("SURVEY",n.OSFa),i.registerForEvent("ONBOARDING",n.zKwn),n.AmUY.init(r,n),Zi.debug("Registered for events")})),c(this,"show",(function(e,t,i,o){try{if(n.Mixm(i)<=0)return void Zi.error("Campaign limit reached");if(null!==n.currentAction&&void 0!==n.currentAction)return void Zi.error("An action already being shown");var r=JSON.parse(e),a={};a.auto_dismiss=t>0,a.duration=t;var s=function(){n.logActionEvent("inline_shown",i,o),n.updateCount(i),n.isShowingAction=!0},l=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];n.isShowingAction=!1,n.currentAction=null,e||n.logActionEvent("inline_dismissed",i,o)},c=r.display_type,d={configId:i,configName:o};"inline"===c?n.currentAction=$n(r,[],a,d,n,s,l):"coach_mark"===c?function(e,t,n,i,o,r){var a=window.ApxorRTM;if(null===a.currentAction||void 0===a.currentAction)if(e&&e.delay<=0){var s=si(e,t,n,i,o);r(s)}else setTimeout((function(){if(null===a.currentAction||void 0===a.currentAction){var s=si(e,t,n,i,o);r(s)}else window.ApxorLogger.error("An action is already being shown. Try after it gets dismissed")}),e.delay);else window.ApxorLogger.error("An action is already being shown. Try after it gets dismissed")}(r,d,a,s,l,(function(e){n.currentAction=e})):Zi.error("Unknown type",c)}catch(e){n.currentAction=null,n.isShowingAction=!1,window.ApxorLogger.error(e)}})),c(this,"logActionEvent",(function(e,n,i){t.logEvent(e,{id:n,message_name:i})})),c(this,"logClientEvent",(function(e,n){t.logClientEvent(e,n)})),c(this,"updateCount",(function(e){ji.getInstance().updateCount(e)})),c(this,"Mixm",(function(e){ji.getInstance().Mixm(e)})),c(this,"zePt",(function(){ji.getInstance().zePt()})),c(this,"TSgl",(function(){if(null!==n.currentAction&&void 0!==n.currentAction){n.isShowingAction=!1;try{n.currentAction()}catch(e){}finally{n.currentAction=null}}})),c(this,"handleResponse",(function(e,t){""===e?(Zi.debug("No configs available"),n.mjDz&&n.mjDz()):(Zi.debug("Fetched config from server",e),n.ZDxp(e,t),console.log("Configs in handle response",t),ji.getInstance().parse(t),n.mjDz&&n.mjDz())})),c(this,"ZDxp",(function(e,t){if(k(t)&&k(t.configs)){var i=t.configs;if(!Array.isArray(i))return;for(var o=0;o<i.length;o++){var r=i[o],a=r._id,s=r.meta.name,l=r.type,c=r.ui;1===e?c=n.ffLC.parse(a,s,c):"IN_APP"===l&&(c=n.zhVR.parse(a,s,c)),null!==c?n.MooL[a]={ui:c,uis:r.uis,terminationConfig:r.terminate_info,name:s}:console.warn("Failed to parse the config",a)}Zi.debug("Configs: ",n.MooL)}})),c(this,"cILd",(function(e){if(k(e.additional_info)){var t=e.additional_info.uuid;if(n.MooL[t]){var i=n.MooL[t],o=i.ui,r=i.terminationConfig,a=i.name;n.show(JSON.stringify(o),r.auto_dismiss?r.duration:-1,t,a)}}})),c(this,"mfmc",(function(e){if(k(e.additional_info)){var t=e.additional_info.uuid;if(n.MooL[t])n.MooL[t].ui.gvfm()}})),c(this,"OSFa",(function(e){if(k(e.additional_info)){var t=e.additional_info.uuid;if(n.MooL[t]){n.MooL[t].ui.ILUV((function(e){n.updateCount(t),n.isShowingAction=!0,n.currentAction=e}),(function(){n.isShowingAction=!1,n.currentAction=null}))}}})),c(this,"zKwn",(function(e){}))})));window.ApxorRTM=Hi;var ji=new(function(){function e(){a(this,e)}return l(e,[{key:"getInstance",value:function(){return(n||window["apxor-qe"]).getInstance()}}]),e}());try{void 0===e&&null===e||(e.default=Hi,module.exports=e.default)}catch(e){}e.ceWrapper=ji,e.default=Hi,Object.defineProperty(e,"__esModule",{value:!0})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apxor-rtm",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "author": "Uma Sankar Yedida <umasankar.yedida@apxor.com> (https://www.apxor.com)",
5
5
  "contributors": [
6
6
  {
@@ -76,4 +76,4 @@
76
76
  "dist"
77
77
  ],
78
78
  "unpkg": "dist/apxor.rtm.min.js"
79
- }
79
+ }