apxor-rtm 1.0.7 → 1.1.1

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.
@@ -2,6 +2,6 @@ declare namespace RTM {
2
2
  function initialize(): void;
3
3
  }
4
4
 
5
- export = RTM;
5
+ export default RTM;
6
6
 
7
7
  export as namespace RTM;
@@ -1,11 +1,11 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("apxor-qe"),require("apxor")):"function"==typeof define&&define.amd?define(["apxor-qe","apxor"],t):(e=e||self)["apxor-rtm"]=t(e.CE,e.Apxor)}(this,(function(e,t){"use strict";function n(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 o(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?n(Object(o),!0).forEach((function(t){a(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function i(e){return(i="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 r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(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 c(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}e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e,t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var l=1,d=2,p=3,u=4,h=function(e){return"InApp".concat(e,"Clicked")},f=function(e){return void 0!==e&&!function(e){return null===e}(e)},m=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},v=function(e){switch(e){case"center":return"center";case"left":return"flex-start";default:return"flex-end"}},g=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,g=u.font_family,y=u.borders,b=y.stroke_color,x=y.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(g,";\n font-weight: ").concat("bold"!==g?"normal":g,";\n font-style: ").concat("italic"===g?"italic":"unset",";\n border: 0px solid ").concat(b,";border-radius: ").concat(x,"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(v(t),";\n padding: 0 .8em .8em\n }\n ")},y=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",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,_=e.color,E=e.text_config,k=E.text,C=E.color,T=E.size,O=E.style,A=E.font_family;try{switch(g){case"done":case"dismiss":v=t.complete;break;case"next":v=t.next;break;case"redirect":v=function(){i.logActionEvent("Inline"+k+"Clicked",n,o),x||b?window.open(y,x?"_self":"_blank"):i.logClientEvent("REDIRECT",{url:y}),t.next()};break;default:v=t.cancel}}catch(e){}a.push({borders:w,bg_color:_,text_color:C,size:T,style:O,font_family:A}),r.push({classes:0===s?"button-o":"button-t",text:k,action:v})})),{buttons_array:r,buttons_css:a}};var b=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};
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){c(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 in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(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 d(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 p=1,u=2,h=3,f=4,m=function(e){return"InApp".concat(e,"Clicked")},v=function(e){return void 0!==e&&!function(e){return null===e}(e)},g=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},b=function(e){switch(e){case"center":return"center";case"left":return"flex-start";default:return"flex-end"}},y=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,y=g.stroke_color,x=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(y,";border-radius: ").concat(x,"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(b(t),";\n padding: 0 .8em .8em\n }\n ")},x=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,O=E.style,A=E.font_family;try{switch(g){case"done":case"dismiss":v=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;default:v=t.cancel}}catch(e){}a.push({borders:w,bg_color:_,text_color:C,size:T,style:O,font_family:A}),r.push({classes:0===s?"button-o":"button-t",text:k,action:v})})),{buttons_array:r,buttons_css:a}};var w=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};
2
2
  /*! shepherd.js 4.0.0-beta.1 */
3
- function x(e){return(x="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return i(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)})(e)}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(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 E(e,t,n){return t&&_(e.prototype,t),n&&_(e,n),e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(){return(C=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 T(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&&A(e,t)}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?S(e):t}function N(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 M(e){return e instanceof HTMLElement}function I(e){return"function"==typeof e}function D(e){return"string"==typeof e}function z(e){return void 0===e}
3
+ function _(e){return(_="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 E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(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&&k(e.prototype,t),n&&k(e,n),e}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(){return(O=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 A(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&&S(e,t)}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function N(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?N(e):t}function D(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 I(e){return e instanceof HTMLElement}function B(e){return"function"==typeof e}function z(e){return"string"==typeof e}function H(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 B(){return(B=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 F="undefined"!=typeof window&&"undefined"!=typeof document,H=F?navigator.userAgent:"",P=/MSIE |Trident\//.test(H),q=/UCBrowser\//.test(H),j=F&&/iPhone|iPad|iPod/.test(navigator.platform),R={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},U=["arrow","boundary","distance","flip","flipBehavior","flipOnUpdate","offset","placement","popperOptions"],V={passive:!0},W={isTouch:!1},X=0;function Y(){W.isTouch||(W.isTouch=!0,j&&document.body.classList.add("tippy-iOS"),window.performance&&document.addEventListener("mousemove",J))}function J(){var e=performance.now();e-X<20&&(W.isTouch=!1,document.removeEventListener("mousemove",J),j||document.body.classList.remove("tippy-iOS")),X=e}function K(){var e=document.activeElement,t=e._tippy;e&&e.blur&&t&&!t.state.isVisible&&e.blur()}var G=Object.keys(R);function Z(e,t){return{}.hasOwnProperty.call(e,t)}function $(e,t,n){if(Array.isArray(e)){var o=e[t];return null==o?n:o}return e}function Q(e,t){return e&&e.modifiers&&e.modifiers[t]}function ee(e){return e instanceof Element}function te(e,t){return"function"==typeof e?e.apply(null,t):e}function ne(e,t){e.filter((function(e){return"flip"===e.name}))[0].enabled=t}function oe(){return document.createElement("div")}function ie(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function re(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function ae(e,t){var n=B({},t,{content:te(t.content,[e])},t.ignoreAttributes?{}:function(e){return G.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||q)&&(n.animateFill=!1),n}function se(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout((function(){e(o)}),t)};var n}function ce(e,t,n){e&&e!==t&&e.apply(null,n)}function le(e){return[].slice.call(e)}function de(e,t){return e.indexOf(t)>-1}function pe(e,t){e.innerHTML=ee(t)?t.innerHTML:t}function ue(e,t){if(ee(t.content))pe(e,""),e.appendChild(t.content);else if("function"!=typeof t.content){e[t.allowHTML?"innerHTML":"textContent"]=t.content}}function he(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 fe(e){e.setAttribute("data-inertia","")}function me(e){var t=oe();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",ee(e)?t.appendChild(e):pe(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 ve(e){var t=oe();return t.className="tippy-backdrop",t.setAttribute("data-state",e?"visible":"hidden"),t}function ge(e){e.setAttribute("data-interactive","")}function ye(e,t,n){var o=q&&void 0!==document.body.style.webkitTransition?"webkitTransitionEnd":"transitionend";e[t+"EventListener"](o,n)}function be(e){return e.split("-")[0]}function xe(e,t,n){n.split(" ").forEach((function(n){n&&e.classList[t](n+"-theme")}))}function we(e,t){var n=oe();n.className="tippy-popper",n.style.position="absolute",n.style.top="0",n.style.left="0";var o=oe();o.className="tippy-tooltip",o.id="tippy-"+e,o.setAttribute("data-state","hidden"),o.setAttribute("tabindex","-1"),xe(o,"add",t.theme);var i=oe();return i.className="tippy-content",i.setAttribute("data-state","hidden"),t.interactive&&ge(o),t.arrow&&(o.setAttribute("data-arrow",""),o.appendChild(me(t.arrow))),t.animateFill&&(o.appendChild(ve(!1)),o.setAttribute("data-animatefill","")),t.inertia&&fe(o),ue(i,t),o.appendChild(i),n.appendChild(o),_e(n,t,t,!1),n}function _e(e,t,n,o){var i=he(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&&ue(a,n),!t.animateFill&&n.animateFill?(r.appendChild(ve(o)),r.setAttribute("data-animatefill","")):t.animateFill&&!n.animateFill&&(r.removeChild(s),r.removeAttribute("data-animatefill")),!t.arrow&&n.arrow?(r.appendChild(me(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(me(n.arrow))),!t.interactive&&n.interactive?ge(r):t.interactive&&!n.interactive&&function(e){e.removeAttribute("data-interactive")}(r),!t.inertia&&n.inertia?fe(r):t.inertia&&!n.inertia&&function(e){e.removeAttribute("data-inertia")}(r),t.theme!==n.theme&&(xe(r,"remove",t.theme),xe(r,"add",n.theme))}for(
8
+ */function j(){return(j=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 F="undefined"!=typeof window&&"undefined"!=typeof document,P=F?navigator.userAgent:"",q=/MSIE |Trident\//.test(P),R=/UCBrowser\//.test(P),V=F&&/iPhone|iPad|iPod/.test(navigator.platform),U={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},W=["arrow","boundary","distance","flip","flipBehavior","flipOnUpdate","offset","placement","popperOptions"],Y={passive:!0},X={isTouch:!1},G=0;function J(){X.isTouch||(X.isTouch=!0,V&&document.body.classList.add("tippy-iOS"),window.performance&&document.addEventListener("mousemove",Z))}function Z(){var e=performance.now();e-G<20&&(X.isTouch=!1,document.removeEventListener("mousemove",Z),V||document.body.classList.remove("tippy-iOS")),G=e}function K(){var e=document.activeElement,t=e._tippy;e&&e.blur&&t&&!t.state.isVisible&&e.blur()}var $=Object.keys(U);function Q(e,t){return{}.hasOwnProperty.call(e,t)}function ee(e,t,n){if(Array.isArray(e)){var o=e[t];return null==o?n:o}return e}function te(e,t){return e&&e.modifiers&&e.modifiers[t]}function ne(e){return e instanceof Element}function oe(e,t){return"function"==typeof e?e.apply(null,t):e}function ie(e,t){e.filter((function(e){return"flip"===e.name}))[0].enabled=t}function re(){return document.createElement("div")}function ae(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function se(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function ce(e,t){var n=j({},t,{content:oe(t.content,[e])},t.ignoreAttributes?{}:function(e){return $.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||R)&&(n.animateFill=!1),n}function le(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout((function(){e(o)}),t)};var n}function de(e,t,n){e&&e!==t&&e.apply(null,n)}function pe(e){return[].slice.call(e)}function ue(e,t){return e.indexOf(t)>-1}function he(e,t){e.innerHTML=ne(t)?t.innerHTML:t}function fe(e,t){if(ne(t.content))he(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 ve(e){e.setAttribute("data-inertia","")}function ge(e){var t=re();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",ne(e)?t.appendChild(e):he(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 be(e){var t=re();return t.className="tippy-backdrop",t.setAttribute("data-state",e?"visible":"hidden"),t}function ye(e){e.setAttribute("data-interactive","")}function xe(e,t,n){var o=R&&void 0!==document.body.style.webkitTransition?"webkitTransitionEnd":"transitionend";e[t+"EventListener"](o,n)}function we(e){return e.split("-")[0]}function _e(e,t,n){n.split(" ").forEach((function(n){n&&e.classList[t](n+"-theme")}))}function Ee(e,t){var n=re();n.className="tippy-popper",n.style.position="absolute",n.style.top="0",n.style.left="0";var o=re();o.className="tippy-tooltip",o.id="tippy-"+e,o.setAttribute("data-state","hidden"),o.setAttribute("tabindex","-1"),_e(o,"add",t.theme);var i=re();return i.className="tippy-content",i.setAttribute("data-state","hidden"),t.interactive&&ye(o),t.arrow&&(o.setAttribute("data-arrow",""),o.appendChild(ge(t.arrow))),t.animateFill&&(o.appendChild(be(!1)),o.setAttribute("data-animatefill","")),t.inertia&&ve(o),fe(i,t),o.appendChild(i),n.appendChild(o),ke(n,t,t,!1),n}function ke(e,t,n,o){var i=me(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&&fe(a,n),!t.animateFill&&n.animateFill?(r.appendChild(be(o)),r.setAttribute("data-animatefill","")):t.animateFill&&!n.animateFill&&(r.removeChild(s),r.removeAttribute("data-animatefill")),!t.arrow&&n.arrow?(r.appendChild(ge(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(ge(n.arrow))),!t.interactive&&n.interactive?ye(r):t.interactive&&!n.interactive&&function(e){e.removeAttribute("data-interactive")}(r),!t.inertia&&n.inertia?ve(r):t.inertia&&!n.inertia&&function(e){e.removeAttribute("data-inertia")}(r),t.theme!==n.theme&&(_e(r,"remove",t.theme),_e(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 x(e){return(x="function"==typeof Symbol&&"symbol"===i(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 Ee="undefined"!=typeof window&&"undefined"!=typeof document,ke=["Edge","Trident","Firefox"],Ce=0,Te=0;Te<ke.length;Te+=1)if(Ee&&navigator.userAgent.indexOf(ke[Te])>=0){Ce=1;break}var Oe=Ee&&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()}),Ce))}};function Ae(e){return e&&"[object Function]"==={}.toString.call(e)}function Se(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Le(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function Ne(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Se(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+o)?e:Ne(Le(e))}var Me=Ee&&!(!window.MSInputMethodContext||!document.documentMode),Ie=Ee&&/MSIE 10/.test(navigator.userAgent);function De(e){return 11===e?Me:10===e?Ie:Me||Ie}function ze(e){if(!e)return document.documentElement;for(var t=De(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"===Se(n,"position")?ze(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Be(e){return null!==e.parentNode?Be(e.parentNode):e}function Fe(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&&ze(a.firstElementChild)!==a?ze(c):c;var l=Be(e);return l.host?Fe(l.host,t):Fe(e,Be(t).host)}function He(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 Pe(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=He(t,"top"),i=He(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 qe(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 je(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],De(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function Re(e){var t=e.body,n=e.documentElement,o=De(10)&&getComputedStyle(n);return{height:je("Height",t,n,o),width:je("Width",t,n,o)}}var Ue=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Ve=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}}(),We=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Xe=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 Ye(e){return Xe({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Je(e){var t={};try{if(De(10)){t=e.getBoundingClientRect();var n=He(e,"top"),o=He(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?Re(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=Se(e);c-=qe(d,"x"),l-=qe(d,"y"),i.width-=c,i.height-=l}return Ye(i)}function Ke(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=De(10),i="HTML"===t.nodeName,r=Je(e),a=Je(t),s=Ne(e),c=Se(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=Ye({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=Pe(p,t)),p}function Ge(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,o=Ke(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:He(n),s=t?0:He(n,"left"),c={top:a-o.top+o.marginTop,left:s-o.left+o.marginLeft,width:i,height:r};return Ye(c)}function Ze(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Se(e,"position"))return!0;var n=Le(e);return!!n&&Ze(n)}function $e(e){if(!e||!e.parentElement||De())return document.documentElement;for(var t=e.parentElement;t&&"none"===Se(t,"transform");)t=t.parentElement;return t||document.documentElement}function Qe(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},a=i?$e(e):Fe(e,t);if("viewport"===o)r=Ge(a,i);else{var s=void 0;"scrollParent"===o?"BODY"===(s=Ne(Le(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===o?e.ownerDocument.documentElement:o;var c=Ke(s,a,i);if("HTML"!==s.nodeName||Ze(a))r=c;else{var l=Re(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 et(e){return e.width*e.height}function tt(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=Qe(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 Xe({key:e},s[e],{area:et(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 nt(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=o?$e(t):Fe(t,n);return Ke(n,i,o)}function ot(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 it(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 rt(e,t,n){n=n.split("-")[0];var o=ot(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[it(s)],i}function at(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function st(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=at(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&&Ae(n)&&(t.offsets.popper=Ye(t.offsets.popper),t.offsets.reference=Ye(t.offsets.reference),t=n(t,e))})),t}function ct(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=nt(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=tt(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=rt(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=st(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function lt(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function dt(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 pt(){return this.state.isDestroyed=!0,lt(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[dt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function ut(e){var t=e.ownerDocument;return t?t.defaultView:window}function ht(e,t,n,o){n.updateBound=o,ut(e).addEventListener("resize",n.updateBound,{passive:!0});var i=Ne(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(Ne(a.parentNode),n,o,i),i.push(a)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function ft(){this.state.eventsEnabled||(this.state=ht(this.reference,this.options,this.state,this.scheduleUpdate))}function mt(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,ut(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 vt(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function gt(e,t){Object.keys(t).forEach((function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&vt(t[n])&&(o="px"),e.style[n]=t[n]+o}))}var yt=Ee&&/Firefox/i.test(navigator.userAgent);function bt(e,t,n){var o=at(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 xt=["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"],wt=xt.slice(3);function _t(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=wt.indexOf(e),o=wt.slice(n+1).concat(wt.slice(0,n));return t?o.reverse():o}var Et="flip",kt="clockwise",Ct="counterclockwise";function Tt(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(at(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 Ye(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){vt(n)&&(i[t]+=n*("-"===e[o-1]?-1:1))}))})),i}var Ot={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:We({},c,r[c]),end:We({},c,r[c]+r[l]-a[l])};e.offsets.popper=Xe({},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=vt(+n)?[+n,0]:Tt(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||ze(e.instance.popper);e.instance.reference===n&&(n=ze(n));var o=dt("transform"),i=e.instance.popper.style,r=i.top,a=i.left,s=i[o];i.top="",i.left="",i[o]="";var c=Qe(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])),We({},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))),We({},n,o)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";d=Xe({},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(!bt(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=ot(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=Ye(e.offsets.popper);var m=s[p]+s[l]/2-f/2,v=Se(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[l]-f,b),0),e.arrowElement=o,e.offsets.arrow=(We(n={},p,Math.round(b)),We(n,u,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(lt(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Qe(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],i=it(o),r=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Et:a=[o,i];break;case kt:a=_t(o);break;case Ct:a=_t(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=it(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,y=-1!==["top","bottom"].indexOf(o),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)&&(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=Xe({},e.offsets.popper,rt(e.instance.popper,e.offsets.reference,e.placement)),e=st(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=it(t),e.offsets.popper=Ye(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!bt(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=at(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=at(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=ze(e.instance.popper),c=Je(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||!yt),p="bottom"===n?"top":"bottom",u="right"===o?"left":"right",h=dt("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 y={"x-placement":e.placement};return e.attributes=Xe({},y,e.attributes),e.styles=Xe({},l,e.styles),e.arrowStyles=Xe({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return gt(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&&gt(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,o,i){var r=nt(i,t,e,n.positionFixed),a=tt(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),gt(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},At=function(){function e(t,n){var o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ue(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=Oe(this.update.bind(this)),this.options=Xe({},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(Xe({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){o.options.modifiers[t]=Xe({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return Xe({name:e},o.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&Ae(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 Ve(e,[{key:"update",value:function(){return ct.call(this)}},{key:"destroy",value:function(){return pt.call(this)}},{key:"enableEventListeners",value:function(){return ft.call(this)}},{key:"disableEventListeners",value:function(){return mt.call(this)}}]),e}();At.Utils=("undefined"!=typeof window?window:global).PopperUtils,At.placements=xt,At.Defaults=Ot;
33
+ var Ce="undefined"!=typeof window&&"undefined"!=typeof document,Te=["Edge","Trident","Firefox"],Oe=0,Ae=0;Ae<Te.length;Ae+=1)if(Ce&&navigator.userAgent.indexOf(Te[Ae])>=0){Oe=1;break}var Le=Ce&&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()}),Oe))}};function Se(e){return e&&"[object Function]"==={}.toString.call(e)}function Ne(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Me(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function De(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Ne(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+o)?e:De(Me(e))}var Ie=Ce&&!(!window.MSInputMethodContext||!document.documentMode),Be=Ce&&/MSIE 10/.test(navigator.userAgent);function ze(e){return 11===e?Ie:10===e?Be:Ie||Be}function He(e){if(!e)return document.documentElement;for(var t=ze(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"===Ne(n,"position")?He(n):n:e?e.ownerDocument.documentElement:document.documentElement}function je(e){return null!==e.parentNode?je(e.parentNode):e}function Fe(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&&He(a.firstElementChild)!==a?He(c):c;var l=je(e);return l.host?Fe(l.host,t):Fe(e,je(t).host)}function Pe(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 qe(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=Pe(t,"top"),i=Pe(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 Re(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 Ve(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],ze(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function Ue(e){var t=e.body,n=e.documentElement,o=ze(10)&&getComputedStyle(n);return{height:Ve("Height",t,n,o),width:Ve("Width",t,n,o)}}var We=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Ye=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}}(),Xe=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Ge=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 Je(e){return Ge({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Ze(e){var t={};try{if(ze(10)){t=e.getBoundingClientRect();var n=Pe(e,"top"),o=Pe(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?Ue(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=Ne(e);c-=Re(d,"x"),l-=Re(d,"y"),i.width-=c,i.height-=l}return Je(i)}function Ke(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=ze(10),i="HTML"===t.nodeName,r=Ze(e),a=Ze(t),s=De(e),c=Ne(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=Je({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=qe(p,t)),p}function $e(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,o=Ke(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:Pe(n),s=t?0:Pe(n,"left"),c={top:a-o.top+o.marginTop,left:s-o.left+o.marginLeft,width:i,height:r};return Je(c)}function Qe(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Ne(e,"position"))return!0;var n=Me(e);return!!n&&Qe(n)}function et(e){if(!e||!e.parentElement||ze())return document.documentElement;for(var t=e.parentElement;t&&"none"===Ne(t,"transform");)t=t.parentElement;return t||document.documentElement}function tt(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},a=i?et(e):Fe(e,t);if("viewport"===o)r=$e(a,i);else{var s=void 0;"scrollParent"===o?"BODY"===(s=De(Me(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===o?e.ownerDocument.documentElement:o;var c=Ke(s,a,i);if("HTML"!==s.nodeName||Qe(a))r=c;else{var l=Ue(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 nt(e){return e.width*e.height}function ot(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=tt(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 Ge({key:e},s[e],{area:nt(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 it(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=o?et(t):Fe(t,n);return Ke(n,i,o)}function rt(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 at(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 st(e,t,n){n=n.split("-")[0];var o=rt(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[at(s)],i}function ct(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function lt(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=ct(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&&Se(n)&&(t.offsets.popper=Je(t.offsets.popper),t.offsets.reference=Je(t.offsets.reference),t=n(t,e))})),t}function dt(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=it(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=ot(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=st(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=lt(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function pt(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function ut(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 ht(){return this.state.isDestroyed=!0,pt(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[ut("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function ft(e){var t=e.ownerDocument;return t?t.defaultView:window}function mt(e,t,n,o){n.updateBound=o,ft(e).addEventListener("resize",n.updateBound,{passive:!0});var i=De(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(De(a.parentNode),n,o,i),i.push(a)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function vt(){this.state.eventsEnabled||(this.state=mt(this.reference,this.options,this.state,this.scheduleUpdate))}function gt(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,ft(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 bt(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function yt(e,t){Object.keys(t).forEach((function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&bt(t[n])&&(o="px"),e.style[n]=t[n]+o}))}var xt=Ce&&/Firefox/i.test(navigator.userAgent);function wt(e,t,n){var o=ct(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 _t=["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"],Et=_t.slice(3);function kt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Et.indexOf(e),o=Et.slice(n+1).concat(Et.slice(0,n));return t?o.reverse():o}var Ct="flip",Tt="clockwise",Ot="counterclockwise";function At(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(ct(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 Je(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){bt(n)&&(i[t]+=n*("-"===e[o-1]?-1:1))}))})),i}var Lt={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:Xe({},c,r[c]),end:Xe({},c,r[c]+r[l]-a[l])};e.offsets.popper=Ge({},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=bt(+n)?[+n,0]:At(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||He(e.instance.popper);e.instance.reference===n&&(n=He(n));var o=ut("transform"),i=e.instance.popper.style,r=i.top,a=i.left,s=i[o];i.top="",i.left="",i[o]="";var c=tt(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])),Xe({},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))),Xe({},n,o)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";d=Ge({},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(!wt(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=rt(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=Je(e.offsets.popper);var m=s[p]+s[l]/2-f/2,v=Ne(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=(Xe(n={},p,Math.round(y)),Xe(n,u,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(pt(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=tt(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],i=at(o),r=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Ct:a=[o,i];break;case Tt:a=kt(o);break;case Ot:a=kt(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=at(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=Ge({},e.offsets.popper,st(e.instance.popper,e.offsets.reference,e.placement)),e=lt(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=at(t),e.offsets.popper=Je(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!wt(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=ct(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=ct(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=He(e.instance.popper),c=Ze(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||!xt),p="bottom"===n?"top":"bottom",u="right"===o?"left":"right",h=ut("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=Ge({},b,e.attributes),e.styles=Ge({},l,e.styles),e.arrowStyles=Ge({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return yt(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&&yt(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,o,i){var r=it(i,t,e,n.positionFixed),a=ot(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),yt(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},St=function(){function e(t,n){var o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};We(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=Le(this.update.bind(this)),this.options=Ge({},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(Ge({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){o.options.modifiers[t]=Ge({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return Ge({name:e},o.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&Se(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 Ye(e,[{key:"update",value:function(){return dt.call(this)}},{key:"destroy",value:function(){return ht.call(this)}},{key:"enableEventListeners",value:function(){return vt.call(this)}},{key:"disableEventListeners",value:function(){return gt.call(this)}}]),e}();St.Utils=("undefined"!=typeof window?window:global).PopperUtils,St.placements=_t,St.Defaults=Lt;
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 St=1,Lt=[];function Nt(e,t){var n,o,i,r,a=ae(e,t);if(!a.multiple&&e._tippy)return null;var s,c,l,d=!1,p=!1,u=!1,h=[],f=se(z,a.interactiveDebounce),m=St++,v=we(m,a),g=he(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(o),clearTimeout(i),cancelAnimationFrame(r)},setProps:function(t){if(w.state.isDestroyed)return;I();var n=w.props,o=ae(e,B({},w.props,t,{ignoreAttributes:!0}));o.ignoreAttributes=Z(t,"ignoreAttributes")?t.ignoreAttributes||!1:n.ignoreAttributes,w.props=o,M(),T(),f=se(z,o.interactiveDebounce),_e(v,n,o,w.state.isVisible),w.popperChildren=he(v),w.popperInstance&&(U.some((function(e){return Z(t,e)&&t[e]!==n[e]}))?(w.popperInstance.destroy(),j(),w.state.isVisible&&w.popperInstance.enableEventListeners()):w.popperInstance.update())},setContent:function(e){w.setProps({content:e})},show:function(t,n){void 0===t&&(t=$(w.props.duration,0,R.duration[1]));void 0===n&&(n=!0);var o=w.state.isVisible,i=w.state.isDestroyed,r=!w.state.isEnabled,a=W.isTouch&&!w.props.touch;if(o||i||r||a)return;if(C().hasAttribute("disabled"))return;if(!1===w.props.onShow(w))return;A(),v.style.visibility="visible",w.state.isVisible=!0;var s=k();ie(n?s.concat(v):s,0),c=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&&(ie([v],P?0:w.props.updateDuration),function e(){w.popperInstance.scheduleUpdate(),w.state.isMounted?requestAnimationFrame(e):ie([v],0)}()),ie([v],w.props.updateDuration),ie(s,t),re(s,"visible"),function(e,t){L(e,t)}(t,(function(){w.props.aria&&C().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:te(t,[e]);n.contains(v)||n.appendChild(v);w.popperInstance?(ne(w.popperInstance.modifiers,w.props.flip),w.popperInstance.enableEventListeners(),w.popperInstance.scheduleUpdate()):(j(),w.popperInstance.enableEventListeners())}()},hide:function(e){void 0===e&&(e=$(w.props.duration,1,R.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;S(),v.style.visibility="hidden",w.state.isVisible=!1,w.state.isShown=!1;var i=k();ie(i,e),re(i,"hidden"),function(e,t){L(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,M(),a.lazy||j(),a.showOnCreate&&Y(),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[y,b,w.popperChildren.backdrop]}function C(){return w.props.triggerTarget||e}function T(){document.body.removeEventListener("mouseleave",J),document.removeEventListener("mousemove",f),Lt=Lt.filter((function(e){return e!==f}))}function O(e){if(!w.props.interactive||!v.contains(e.target)){if(C().contains(e.target)){if(W.isTouch)return;if(w.state.isVisible&&de(w.props.trigger,"click"))return}!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),u=!0,setTimeout((function(){u=!1})),w.state.isMounted||S())}}function A(){document.addEventListener("mousedown",O,!0)}function S(){document.removeEventListener("mousedown",O,!0)}function L(e,t){function n(e){e.target===y&&(ye(y,"remove",n),t())}if(0===e)return t();ye(y,"remove",l),ye(y,"add",n),l=n}function N(e,t,n){void 0===n&&(n=!1),C().addEventListener(e,t,n),h.push({eventType:e,handler:t,options:n})}function M(){E()&&(N("touchstart",D,V),N("touchend",F,V)),de(w.props.trigger,"click")||N("click",(function(){W.isTouch||!0!==w.props.hideOnClick||w.hide()})),w.props.trigger.trim().split(" ").forEach((function(e){if("manual"!==e)switch(N(e,D),e){case"mouseenter":N("mouseleave",F);break;case"focus":N(P?"focusout":"blur",H)}}))}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&&!q(e))if(w.state.isVisible||(n=e.type,e instanceof MouseEvent&&Lt.forEach((function(t){return t(e)}))),"click"===e.type&&!1!==w.props.hideOnClick&&w.state.isVisible)J(e);else{var t=_(),i=t[0],r=t[1];W.isTouch&&"hold"===i&&r?o=setTimeout((function(){Y(e)}),r):Y(e)}}function z(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}(be(w.state.currentPlacement),v.getBoundingClientRect(),t,w.props)&&(T(),J(t))}function F(e){if(!q(e))return w.props.interactive?(document.body.addEventListener("mouseleave",J),document.addEventListener("mousemove",f),void Lt.push(f)):void J(e)}function H(e){e.target===C()&&(w.props.interactive&&e.relatedTarget&&v.contains(e.relatedTarget)||J(e))}function q(e){var t="ontouchstart"in window,n=de(e.type,"touch"),o=E();return t&&W.isTouch&&o&&!n||W.isTouch&&!o&&n}function j(){var t=w.props,n=t.popperOptions,o=t.placement,i=w.popperChildren.arrow,r=Q(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),ne(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=be(w.state.currentPlacement),n=y.style;n.top="0",n.left="0",n[de(["top","bottom"],be(w.state.currentPlacement))?"top":"left"]=(de(["bottom","right"],be(w.state.currentPlacement))?1:-1)*w.props.distance+"px";var o=r&&void 0!==r.padding?r.padding:5,i="number"==typeof o,a=B({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=B({eventsEnabled:!1,placement:s=w.props.followCursor&&a?o.replace(a,"start"===a?"end":"start"):o},n,{modifiers:B({},n?n.modifiers:{},{preventOverflow:B({boundariesElement:w.props.boundary,padding:5},r),arrow:B({element:i,enabled:!!i},Q(n,"arrow")),flip:B({enabled:w.props.flip,padding:w.props.distance+5,behavior:w.props.flipBehavior},Q(n,"flip")),offset:B({offset:w.props.offset},Q(n,"offset"))}),onCreate:function(e){c(e),ce(n&&n.onCreate,l.onCreate,[e]),X()},onUpdate:function(e){c(e),ce(n&&n.onUpdate,l.onUpdate,[e]),X()}});w.popperInstance=new At(e,v,l)}function X(){!p&&c&&(p=!0,function(e){e.offsetHeight}(v),c())}function Y(e){if(w.clearDelayTimeouts(),w.state.isScheduledToShow=!0,w.popperInstance||j(),e&&w.props.onTrigger(w,e),w.props.wait)return w.props.wait(w,e);A();var t=$(w.props.delay,0,R.delay);t?o=setTimeout((function(){w.show()}),t):w.show()}function J(e){if(w.clearDelayTimeouts(),w.props.onUntrigger(w,e),w.state.isVisible){w.state.isScheduledToShow=!1;var t=$(w.props.delay,1,R.delay);t?i=setTimeout((function(){w.state.isVisible&&w.hide()}),t):r=requestAnimationFrame((function(){w.hide()}))}else S()}}function Mt(e,t){document.addEventListener("touchstart",Y,B({},V,{capture:!0})),window.addEventListener("blur",K);var n=B({},R,t),o=function(e){if(ee(e))return[e];if(e instanceof NodeList)return le(e);if(Array.isArray(e))return e;try{return le(document.querySelectorAll(e))}catch(e){return[]}}(e).reduce((function(e,t){var o=t&&Nt(t,n);return o&&e.push(o),e}),[]);return ee(e)?o[0]:o}Mt.version="5.0.0-alpha.2",Mt.defaultProps=R,Mt.currentInput=W,Mt.setDefaultProps=function(e){Object.keys(e).forEach((function(t){R[t]=e[t]}))},Mt.hideAll=function(e){var t=void 0===e?{}:e,n=t.exclude,o=t.duration;le(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)}}))},F&&setTimeout((function(){le(document.querySelectorAll("[data-tippy]")).forEach((function(e){var t=e.getAttribute("data-tippy");t&&Mt(e,{content:t})}))}))
39
+ var Nt=1,Mt=[];function Dt(e,t){var n,o,i,r,a=ce(e,t);if(!a.multiple&&e._tippy)return null;var s,c,l,d=!1,p=!1,u=!1,h=[],f=le(B,a.interactiveDebounce),m=Nt++,v=Ee(m,a),g=me(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;D();var n=w.props,o=ce(e,j({},w.props,t,{ignoreAttributes:!0}));o.ignoreAttributes=Q(t,"ignoreAttributes")?t.ignoreAttributes||!1:n.ignoreAttributes,w.props=o,M(),T(),f=le(B,o.interactiveDebounce),ke(v,n,o,w.state.isVisible),w.popperChildren=me(v),w.popperInstance&&(W.some((function(e){return Q(t,e)&&t[e]!==n[e]}))?(w.popperInstance.destroy(),P(),w.state.isVisible&&w.popperInstance.enableEventListeners()):w.popperInstance.update())},setContent:function(e){w.setProps({content:e})},show:function(t,n){void 0===t&&(t=ee(w.props.duration,0,U.duration[1]));void 0===n&&(n=!0);var o=w.state.isVisible,i=w.state.isDestroyed,r=!w.state.isEnabled,a=X.isTouch&&!w.props.touch;if(o||i||r||a)return;if(C().hasAttribute("disabled"))return;if(!1===w.props.onShow(w))return;A(),v.style.visibility="visible",w.state.isVisible=!0;var s=k();ae(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&&(ae([v],q?0:w.props.updateDuration),function e(){w.popperInstance.scheduleUpdate(),w.state.isMounted?requestAnimationFrame(e):ae([v],0)}()),ae([v],w.props.updateDuration),ae(s,t),se(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:oe(t,[e]);n.contains(v)||n.appendChild(v);w.popperInstance?(ie(w.popperInstance.modifiers,w.props.flip),w.popperInstance.enableEventListeners(),w.popperInstance.scheduleUpdate()):(P(),w.popperInstance.enableEventListeners())}()},hide:function(e){void 0===e&&(e=ee(w.props.duration,1,U.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();ae(i,e),se(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),D(),delete e._tippy,w.popperInstance&&w.popperInstance.destroy();d=!1,w.state.isDestroyed=!0}};return e._tippy=w,v._tippy=w,M(),a.lazy||P(),a.showOnCreate&&V(),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",G),document.removeEventListener("mousemove",f),Mt=Mt.filter((function(e){return e!==f}))}function O(e){if(!w.props.interactive||!v.contains(e.target)){if(C().contains(e.target)){if(X.isTouch)return;if(w.state.isVisible&&ue(w.props.trigger,"click"))return}!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),u=!0,setTimeout((function(){u=!1})),w.state.isMounted||L())}}function A(){document.addEventListener("mousedown",O,!0)}function L(){document.removeEventListener("mousedown",O,!0)}function S(e,t){function n(e){e.target===b&&(xe(b,"remove",n),t())}if(0===e)return t();xe(b,"remove",l),xe(b,"add",n),l=n}function N(e,t,n){void 0===n&&(n=!1),C().addEventListener(e,t,n),h.push({eventType:e,handler:t,options:n})}function M(){E()&&(N("touchstart",I,Y),N("touchend",z,Y)),ue(w.props.trigger,"click")||N("click",(function(){X.isTouch||!0!==w.props.hideOnClick||w.hide()})),w.props.trigger.trim().split(" ").forEach((function(e){if("manual"!==e)switch(N(e,I),e){case"mouseenter":N("mouseleave",z);break;case"focus":N(q?"focusout":"blur",H)}}))}function D(){h.forEach((function(e){var t=e.eventType,n=e.handler,o=e.options;C().removeEventListener(t,n,o)})),h=[]}function I(e){if(!u&&w.state.isEnabled&&!F(e))if(w.state.isVisible||(n=e.type,e instanceof MouseEvent&&Mt.forEach((function(t){return t(e)}))),"click"===e.type&&!1!==w.props.hideOnClick&&w.state.isVisible)G(e);else{var t=_(),i=t[0],r=t[1];X.isTouch&&"hold"===i&&r?o=setTimeout((function(){V(e)}),r):V(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,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}(we(w.state.currentPlacement),v.getBoundingClientRect(),t,w.props)&&(T(),G(t))}function z(e){if(!F(e))return w.props.interactive?(document.body.addEventListener("mouseleave",G),document.addEventListener("mousemove",f),void Mt.push(f)):void G(e)}function H(e){e.target===C()&&(w.props.interactive&&e.relatedTarget&&v.contains(e.relatedTarget)||G(e))}function F(e){var t="ontouchstart"in window,n=ue(e.type,"touch"),o=E();return t&&X.isTouch&&o&&!n||X.isTouch&&!o&&n}function P(){var t=w.props,n=t.popperOptions,o=t.placement,i=w.popperChildren.arrow,r=te(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),ie(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=we(w.state.currentPlacement),n=b.style;n.top="0",n.left="0",n[ue(["top","bottom"],we(w.state.currentPlacement))?"top":"left"]=(ue(["bottom","right"],we(w.state.currentPlacement))?1:-1)*w.props.distance+"px";var o=r&&void 0!==r.padding?r.padding:5,i="number"==typeof o,a=j({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=j({eventsEnabled:!1,placement:s=w.props.followCursor&&a?o.replace(a,"start"===a?"end":"start"):o},n,{modifiers:j({},n?n.modifiers:{},{preventOverflow:j({boundariesElement:w.props.boundary,padding:5},r),arrow:j({element:i,enabled:!!i},te(n,"arrow")),flip:j({enabled:w.props.flip,padding:w.props.distance+5,behavior:w.props.flipBehavior},te(n,"flip")),offset:j({offset:w.props.offset},te(n,"offset"))}),onCreate:function(e){c(e),de(n&&n.onCreate,l.onCreate,[e]),R()},onUpdate:function(e){c(e),de(n&&n.onUpdate,l.onUpdate,[e]),R()}});w.popperInstance=new St(e,v,l)}function R(){!p&&c&&(p=!0,function(e){e.offsetHeight}(v),c())}function V(e){if(w.clearDelayTimeouts(),w.state.isScheduledToShow=!0,w.popperInstance||P(),e&&w.props.onTrigger(w,e),w.props.wait)return w.props.wait(w,e);A();var t=ee(w.props.delay,0,U.delay);t?o=setTimeout((function(){w.show()}),t):w.show()}function G(e){if(w.clearDelayTimeouts(),w.props.onUntrigger(w,e),w.state.isVisible){w.state.isScheduledToShow=!1;var t=ee(w.props.delay,1,U.delay);t?i=setTimeout((function(){w.state.isVisible&&w.hide()}),t):r=requestAnimationFrame((function(){w.hide()}))}else L()}}function It(e,t){document.addEventListener("touchstart",J,j({},Y,{capture:!0})),window.addEventListener("blur",K);var n=j({},U,t),o=function(e){if(ne(e))return[e];if(e instanceof NodeList)return pe(e);if(Array.isArray(e))return e;try{return pe(document.querySelectorAll(e))}catch(e){return[]}}(e).reduce((function(e,t){var o=t&&Dt(t,n);return o&&e.push(o),e}),[]);return ne(e)?o[0]:o}It.version="5.0.0-alpha.2",It.defaultProps=U,It.currentInput=X,It.setDefaultProps=function(e){Object.keys(e).forEach((function(t){U[t]=e[t]}))},It.hideAll=function(e){var t=void 0===e?{}:e,n=t.exclude,o=t.duration;pe(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)}}))},F&&setTimeout((function(){pe(document.querySelectorAll("[data-tippy]")).forEach((function(e){var t=e.getAttribute("data-tippy");t&&It(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(F){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:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-arrow{border-width:0 8px 8px;border-bottom-color:#333;margin:0 3px;transform-origin:50% 7px;top:-7px}.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:-7px}.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:-7px}.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 It=jt("shepherd"),Dt=jt("shepherd-has-title"),zt={computeStyle:{enabled:!0,fn:function(e){return e.styles=C({},e.styles,{left:"50%",top:"50%",transform:"translate(-50%, -50%)"}),e}},addShepherdClass:It},Bt={positionFixed:!0,modifiers:{addShepherdClass:It}};function Ft(e){var t=document.createElement("div");return t.innerHTML=e,t.children[0]}function Ht(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Array.isArray(e)?e.slice(t):[]}function Pt(){if(z(Mt))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=Rt.call(this,e),this.target=e.element||document.body,this.el.classList.add("shepherd-element")}function qt(){var e=this.options.attachTo||{},t=C({},e);if(D(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 jt(e){return{enabled:!0,fn:function(t){return t.instance.popper.classList.add(e),t}}}function Rt(e){if(!e.element)return Vt.call(this);var t=Ut.call(this,e);return Mt(e.element,t)}function Ut(e){var t={content:this.el,flipOnUpdate:!0,placement:e.on||"right"};return C(t,this.options.tippyOptions),this.options.title&&C(Bt.modifiers,{addHasTitleClass:Dt}),this.options.tippyOptions&&this.options.tippyOptions.popperOptions&&C(Bt,this.options.tippyOptions.popperOptions),t.popperOptions=Bt,t}function Vt(){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){k(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&&C(Bt.modifiers,{addHasTitleClass:Dt});var t=C({},Bt,e.popperOptions,{modifiers:C(zt,e.popperOptions.modifiers)});return e.popperOptions=t,Mt(document.body,e)}var Wt=function(){function e(){w(this,e)}return E(e,[{key:"on",value:function(e,t,n){var o=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];z(this.bindings)&&(this.bindings={}),z(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(z(this.bindings)||z(this.bindings[e]))return!1;z(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(!z(this.bindings)&&this.bindings[e]){var n=Ht(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 Xt(e){var t=this;return function(n){if(t.isOpen()){var o=t.el&&n.target===t.el;(!z(e)&&n.target.matches(e)||o)&&t.tour.next()}}}function Yt(){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=Xt.call(this,n);try{o=document.querySelector(n)}catch(e){}if(!z(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 Jt(e,t){var n=this;e.events=e.events||{},z(e.action)||(e.events.click=e.action),e.events&&Object.entries(e.events).forEach((function(e){var o=N(e,2),i=o[0],r=o[1];if(D(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 Kt(e){var t=this;e.addEventListener("click",(function(e){e.preventDefault(),t.cancel()}))}function Gt(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 Zt=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,r={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):r.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!==i(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])?r.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!==i(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");r.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!==i(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}):r.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(),i=this.getBoundingClientRect();n!==t.body?(m.call(this,n,n.scrollLeft+i.left-o.left,n.scrollTop+i.top-o.top),"fixed"!==e.getComputedStyle(n).position&&e.scrollBy({left:o.left,top:o.top,behavior:"smooth"})):e.scrollBy({left:i.left,top:i.top,behavior:"smooth"})}else r.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"!==i(e)||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"===i(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,i){var s,l,d,p,u=a();n===t.body?(s=e,l=e.scrollX||e.pageXOffset,d=e.scrollY||e.pageYOffset,p=r.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:i})}}}}));Zt.polyfill;Zt.polyfill();var $t,Qt=($t=0,function(){return++$t}),en=function(e){function t(e,n){var o;return w(this,t),(o=L(this,O(t).call(this,e,n))).tour=e,Gt.call(S(o),["_show","cancel","complete","destroy","hide","isOpen","scrollTo","setupElements","show"]),o.setOptions(n),o.bindAdvance=Yt.bind(S(o)),o.bindButtonEvents=Jt.bind(S(o)),o.bindCancelLink=Kt.bind(S(o)),o.setupTooltip=Pt.bind(S(o)),o.parseAttachTo=qt.bind(S(o)),L(o,S(o))}return T(t,e),E(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=Ft('<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=Ft('<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=Ft('<div class="shepherd-text"\n id="'.concat(t,'"\n ></div>')),o=this.options.text;I(o)&&(o=o.call(this,n)),o instanceof HTMLElement?n.appendChild(o):(D(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=N(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=Ft('<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),z(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),M(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(){z(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;I(this.options.scrollToHandler)?this.options.scrollToHandler(t):M(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(Qt()),n&&Object.entries(n).forEach((function(t){var n=N(t,2),o=n[0],i=n[1];e.on(o,i,e)}))}},{key:"show",value:function(){var e=this;if(I(this.options.beforeShowPromise)){var t=this.options.beforeShowPromise();if(!z(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}(Wt),tn="http://www.w3.org/2000/svg",nn="shepherdModalOverlayContainer",on="shepherdModalMask",rn="shepherdModalMaskRect",an="shepherdModalMaskOpening",sn="shepherd-modal-is-visible",cn="shepherd-modal-target";function ln(){var e,t=((e=document.createElementNS(tn,"svg")).setAttributeNS(null,"id",nn),e),n=document.createElementNS(tn,"defs"),o=function(){var e=document.createElementNS(tn,"mask");return hn(e,{height:"100%",id:on,width:"100%",x:"0",y:"0"}),e}(),i=function(){var e=document.createElementNS(tn,"rect");return hn(e,{fill:"#FFFFFF",height:"100%",id:rn,width:"100%",x:"0",y:"0"}),e}(),r=function(){var e=document.createElementNS(tn,"rect");return hn(e,{fill:"#000000",id:an}),e}(),a=function(){var e=document.createElementNS(tn,"rect");return hn(e,{height:"100%",width:"100%",x:"0",y:"0"}),e.setAttribute("mask","url(#".concat(on,")")),e}();return o.appendChild(i),o.appendChild(r),n.appendChild(o),t.appendChild(n),t.appendChild(a),t}function dn(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;hn(t,{x:(i||c)-n,y:(r||l)-n,width:a+2*n,height:s+2*n})}}function pn(e){e.preventDefault()}function un(e){e.stopPropagation()}function hn(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function fn(e){var t=e.options.attachTo;if(!t)return null;var n=x(t);return"string"===n?function(e){var t=N(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 mn(){"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(nn));window.addEventListener("touchmove",pn,{passive:!1}),e&&e.addEventListener("touchmove",un,!1)}var vn=function(){function e(t){return w(this,e),this.createModalOverlay(),this.options=t,this}return E(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(sn)}catch(e){}}},{key:"createModalOverlay",value:function(){if(!this._modalOverlayElem){var e=document.getElementById("shepherdModalOverlayContainer");this._modalOverlayElem=e||ln(),this._modalOverlayOpening=this._modalOverlayElem.querySelector("#".concat(an)),this.hide(),e||document.body.appendChild(this._modalOverlayElem)}}},{key:"hide",value:function(){document.body.classList.remove(sn),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(sn),this._modalOverlayElem&&(this._modalOverlayElem.style.display="block")}},{key:"_styleForStep",value:function(e){var t,n,o,i,r,a=this._modalOverlayOpening,s=fn(e),c=e.options.modalOverlayOpeningPadding;s?(dn(s,a,c),this._onScreenChange=(n=dn.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)}),mn.call(this)):(t=this._modalOverlayOpening)&&t instanceof SVGElement&&hn(t,{height:"0",x:"0",y:"0",width:"0"})}}]),e}(),gn=!1;if("undefined"!=typeof window){var yn={get passive(){gn=!0}};window.addEventListener("testPassive",null,yn),window.removeEventListener("testPassive",null,yn)}var bn,xn,wn="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),_n=[],En=!1,kn=-1,Cn=function(e){return _n.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},Tn=function(e){var t=e||window.event;return!!Cn(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},On=function(e,t){if(wn){if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(e&&!_n.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};_n=[].concat(s(_n),[n]),e.ontouchstart=function(e){1===e.targetTouches.length&&(kn=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-kn;!Cn(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?Tn(e):e.stopPropagation())}(t,e)},En||(document.addEventListener("touchmove",Tn,gn?{passive:!1}:void 0),En=!0)}}else{!function(e){setTimeout((function(){if(void 0===xn){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(xn=document.body.style.paddingRight,document.body.style.paddingRight="".concat(n,"px"))}void 0===bn&&(bn=document.body.style.overflow,document.body.style.overflow="hidden")}))}(t);var o={targetElement:e,options:t||{}};_n=[].concat(s(_n),[o])}},An=function(){wn?(_n.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),En&&(document.removeEventListener("touchmove",Tn,gn?{passive:!1}:void 0),En=!1),_n=[],kn=-1):(setTimeout((function(){void 0!==xn&&(document.body.style.paddingRight=xn,xn=void 0),void 0!==bn&&(document.body.style.overflow=bn,bn=void 0)})),_n=[])},Sn={trigger:"manual",arrow:!0,animation:"fade",duration:420,flip:!0,animateFill:!1,interactive:!0,hideOnClick:"toggle",multiple:!0};function Ln(){"function"==typeof this._onScreenChange&&(window.removeEventListener("resize",this._onScreenChange,!1),window.removeEventListener("scroll",this._onScreenChange,!1),this._onScreenChange=null),window.removeEventListener("touchmove",pn,{passive:!1})}var Nn,Mn=function(){var e=0;return function(){return++e}}(),In=new Wt,Dn=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};w(this,t),e=L(this,O(t).call(this,n)),Gt.call(S(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=S(e),In.trigger(n,t)}))})),e.modal=new vn(n),e._setTooltipDefaults(),e._setTourID(),L(e,S(e))}return T(t,e),E(t,[{key:"addStep",value:function(e,t){var n,o;return z(t)?o=e:(n=e,o=t),o instanceof en?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()})),Ln.call(this),(t=this.tourObject)&&t.steps.forEach((function(e){if(e.options&&!1===e.options.canClickTarget&&e.options.attachTo){var t=fn(e);t instanceof HTMLElement&&(t.style.pointerEvents="auto")}})),this.trigger(e),In.activeTour=null,this._removeBodyAttrs(),this.trigger("inactive",{tour:this}),this.options.disableScroll&&An(),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 In.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(D(t)||"number"==typeof t)&&(e.id=t.toString()),e=C({},this.options.defaultStepOptions,e),new en(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=D(e)?this.getById(e):this.steps[e];if(n){this._updateStateBeforeShow();var o=I(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&&On(),this.currentStep=null,this._setupActiveTour(),this.next()}},{key:"_setupActiveTour",value:function(){this.modal.createModalOverlay(),this._addBodyAttrs(),this.trigger("active",{tour:this}),In.activeTour=this}},{key:"_styleTargetElementForStep",value:function(e){var t,n,o=fn(e);o&&(t=o,(n=document.querySelector("".concat(cn)))&&n.classList.remove(cn),t.classList.add(cn),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(){Mt.setDefaultProps(Sn)}},{key:"_updateStateBeforeShow",value:function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}},{key:"_setTourID",value:function(){var e=this.options.tourName||"tour",t=Mn();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}(Wt);C(In,{Tour:Dn,Step:en,Evented:Wt});var zn=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];try{o&&e.logActionEvent("InlineTargetViewClicked",t,n),Nn.complete()}catch(t){e.isShowingAction=!1,e.currentAction=null,console.error(t)}},Bn=function(e){return 50===e?10:16},Fn=function(e,t){switch(e.toLowerCase()){case"top":return"translateY(".concat(Bn(t)-26,"px)");case"right":return"translateX(".concat(Bn(t),"px)");case"bottom":return"translateY(".concat(Bn(t),"px)");case"left":return"translateX(".concat(Bn(t)-26,"px)")}},Hn=function(e){switch(e.toUpperCase()){case"TOP":return"top: 10px";case"LEFT":return"left: 10px";case"RIGHT":return"left: -10px";case"BOTTOM":return"top: -10px"}},Pn=function(e,t,n,o,i){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=e.animation,s=void 0===a?{}:a,c=e.bg_color,l=void 0===c?"black":c,d=e.border,p=void 0===d?{}:d,u=e.buttons_config,h=void 0===u?[]:u,f=e.button_position,v=void 0===f?"right":f,b=e.corners,x=void 0===b?{}:b,w=e.shadow,_=void 0===w?"0 8px 16px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)":w,E=e.opacity,k=void 0===E?1:E,C=e.dismiss_outside_touch,T=void 0!==C&&C,O=e.position,A=void 0===O?"TOP":O,S=e.text_config,L=void 0===S?{}:S,N=e.title_config,M=void 0===N?{}:N,I=e.view_id,D=e.show_shadow,z=void 0!==D&&D,B=e.show_close_icon,F=void 0!==B&&B,H=t.configId,P=t.configName,q=y(h,Nn,H,P),j=q.buttons_array,R=q.buttons_css,U={color:L.color,fontSize:L.size,fontFamily:L.font_family,fontStyle:L.style};if(L.margin_config&&Object.keys(L.margin_config).length>0){var V=L.margin_config;U.margin="".concat(V.top,"px ").concat(V.right,"px ").concat(V.bottom,"px ").concat(V.left,"px")}var W=L.style;"bold"===W&&(U.fontWeight=W);var X={color:M.color,fontSize:M.size,fontFamily:M.font_family,fontStyle:M.style};if(M.margin_config&&Object.keys(M.margin_config).length>0){var Y=M.margin_config;X.margin="".concat(Y.top,"px ").concat(Y.right,"px ").concat(Y.bottom,"px ").concat(Y.left,"px")}"bold"===(W=M.style)&&(U.fontWeight=W);var J={"border-radius":x.enabled?x.width:0,background:l,"border-color":p.color,"border-width":p.width},K=null;try{K=document.querySelector("#"+I)}catch(e){}if(!K)try{K=document.querySelector(I)}catch(e){}if(K||(K=m(I)),K){var G=document.createElement("span");G.setAttribute("id","apxor-style-"+H+"-step-"+r);var Z=document.createElement("style");Z.innerHTML='\n#shepherdModalOverlayContainer {\n -ms-filter: "progid:dximagetransform.microsoft.gradient.alpha(Opacity=50)";\n filter: alpha(opacity=50);height: 100vh;left: 0;opacity: .5;position: fixed;\n top: 0;transition: all .3s ease-out;width: 100vw;z-index: 9997\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: 16px\n}\n.tippy-popper.shepherd[x-placement^=bottom] {\n margin-top: -10px\n}\n.tippy-popper.shepherd[x-placement^=left] {\n margin-right: 16px\n}\n.tippy-popper.shepherd[x-placement^=right] {\n margin-left: 16px\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(F?"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(X.color,";display: flex;flex: 1 0 auto;\n font-size: ").concat(X.fontSize,"px;font-family: ").concat(X.fontFamily,";\n font-weight: ").concat("bold"!==X.fontStyle?"normal":X.fontStyle,";font-style: ").concat("italic"===X.fontStyle?"italic":"unset",';\n line-height: 26px;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;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(U.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(U.fontSize,"px;font-family: ").concat(U.fontFamily,"; \n font-weight: ").concat("bold"!==U.fontStyle?"normal":U.fontStyle,";\n font-style: ").concat("italic"===U.fontStyle?"italic":"unset",";\n color: ").concat(U.color,";line-height: 26px;letter-spacing:0.01em;\n}\n").concat(g(R,v,".shepherd-element .shepherd-content "),"\n@-webkit-keyframes cycle {\n 0% { transform: ").concat(Fn(A,0),"; }\n 50% { transform: ").concat(Fn(A,50),"; }\n 100% { transform: ").concat(Fn(A,100),"; }\n}\n@keyframes cycle {\n 0% { transform: ").concat(Fn(A,0),"; }\n 50% { transform: ").concat(Fn(A,50),"; }\n 100% { transform: ").concat(Fn(A,100),"; }\n}\n.tippy-tooltip.apxor-").concat(H,"-step-").concat(r,"-theme {\n animation: ").concat(s.enabled?s.type+" 1000ms":"none",";\n animation-timing-function: ease-in-out;animation-iteration-count: infinite;\n box-shadow: ").concat(z?_:"none",";color: ").concat(U.color,";\n opacity: ").concat(k,";border-radius: ").concat(J["border-radius"]+"px",";\n background-color: ").concat(J.background,";").concat(Hn(A),";\n}\n.apxor-").concat(H,"-step-").concat(r,"-theme .tippy-roundarrow {\n fill: ").concat(J.background,";\n}\n.tippy-tooltip[data-placement^='top'] .tippy-arrow {\n border-top-color: ").concat(J.background,";\n}\n.tippy-tooltip[data-placement^='bottom'] .tippy-arrow {\n border-bottom-color: ").concat(J.background,";\n}\n.tippy-tooltip[data-placement^='left'] .tippy-arrow {\n border-left-color: ").concat(J.background,";\n}\n.tippy-tooltip[data-placement^='right'] .tippy-arrow {\n border-right-color: ").concat(J.background,";\n}\n "),G.appendChild(Z),K.parentNode.insertBefore(G,K);var $=function(e){return zn(n,H,P,!0)};Nn.addStep("apxor-step-"+r,{title:M&&M.text?M.text:null,text:[L&&L.text?L.text:"Tap here"],classes:"apxor-".concat(H,"-step-").concat(r,"-theme"),attachTo:{element:K,on:A.toLowerCase()},showCancelLink:F,buttons:j,tippyOptions:{allowHTML:!0,arrow:!0,flipOnUpdate:!0,interactive:!0,maxWidth:"100%",hideOnClick:T,theme:"apxor-".concat(H,"-step-").concat(r),onShow:function(){o&&o(),K.addEventListener("click",$)},onHidden:function(){try{var e=document.getElementById("apxor-style-"+H+"-step-"+r);e.parentNode.removeChild(e)}catch(e){}try{var t=document.getElementById("shepherdModalOverlayContainer");t.parentNode.removeChild(t)}catch(e){}i&&i(),K.removeEventListener("click",$)}}})}else console.warn("Element not found with id or path")};function qn(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 jn=qn(10);function Rn(){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 Un(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",jn+"-"+u),h.className="apx-class-".concat(jn,"-").concat(u);var f=document.createElement("style");return f.innerHTML="\n.apx-class-".concat(jn,"-").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 Vn(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",jn+"-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 20px 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(Rn()?"unset":"absolute",";\n top: 0;left: 0;right: 0;bottom: 0;content: '';\n height: ").concat(Rn()?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 Wn(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 Xn(e){var t=e.opacity,n=e.type,o=document.createElement("div");o.setAttribute("id",jn+"-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 Wn('\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 Wn('\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 Yn(e,t,n,o,i){var r=e.bg_color,a=e.buttons_config,s=void 0===a?[]:a,c=e.button_position,l=e.coach_mark_details,d=l.has_ripple,p=void 0!==d&&d,u=l.type,h=void 0===u?"circle":u,f=e.delay,v=e.dismiss_outside_touch,b=void 0!==v&&v,x=e.opacity,w=void 0===x?.8:x,_=e.position,E=void 0===_?"TOP":_,k=e.text_config,C=e.title_config,T=void 0===C?null:C,O=e.view_id,A=e.scroll_to_view,S=void 0!==A&&A,L=t.configId,N=t.configName,M=document.getElementById(O);if(!M)try{M=document.querySelector(O)}catch(e){}if(M||(M=m(O)),M){jn=qn(10);var I=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:isDefined(t.x)?t.x+window.scrollX:n,y:isDefined(t.y)?t.y+window.scrollY:o,width:t.width,height:t.height}}(M),D=I.left,z=void 0===D?0:D,B=I.top,F=void 0===B?0:B,H=I.width,P=void 0===H?0:H,q=I.height,j=void 0===q?0:q;if(I.top>=window.innerHeight)console.warn("Element ",O," not in viewport. Can't show");else{var R=I.left<window.innerWidth/2;if(0!==j&&0!==P){var U=function(){se.parentNode.removeChild(se),V.parentNode.removeChild(V),K.parentNode.removeChild(K),i&&i(),ce&&clearTimeout(ce)},V=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=Un(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(Un(t)),s.appendChild(Un(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=y(n,{next:l,complete:l,cancel:l},i,r),p=d.buttons_array,u=d.buttons_css,h=document.createElement("style");h.innerHTML=g(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}(k,T,s,c,L,N,U),W=V.offsetWidth,X=V.offsetHeight,Y=0,J=0;k&&k.margin_config&&(Y=Number(k.margin_config.left)||0,J=Number(k.margin_config.right)||0);var K=Vn(P,j,z,F,h,p),G=z+P/2,Z=F+j/2,$=Math.sqrt(Math.pow(P,2)+Math.pow(j,2))/2,Q=$+Math.max(W,P)/2+10,ee=-1,te=-1,ne=-1,oe=-1,ie=Z-$,re=Z+$;switch(E){case"TOP":te=(ne=G-W/2)<0?5:ne,ee="circle"===h?Z-$-X-25:F-X-25,oe=re-Math.abs(re-ee)/2;break;case"BOTTOM":case"RIGHT":case"LEFT":te=(ne=G-W/2)<0?5:ne,oe=ie+((ee="circle"===h?Z+$+25:F+j+25)+X-ie)/2}if(-1!==te&&-1!==ee&&-1!==oe){!R&&te+W>window.innerWidth&&(te=window.innerWidth-W-Y-J-10),V.style.left="".concat(te,"px"),V.style.top="".concat(ee,"px");var ae=((ne=Math.min(z,te))+Math.max(z+P,te+W))/2;(ae=Math.min(ae,document.scrollingElement.scrollWidth))<0&&(ae=0),(oe=Math.min(oe,document.scrollingElement.scrollHeight))<0&&(oe=0);var se=Xn({bg_color:r,opacity:w,innerRadius:$,innerCenterX:G,innerCenterY:Z,outerRadius:Q,outerCircleCenterX:ae,outerCircleCenterY:oe,targetElementLeft:z,targetElementTop:F,targetElementWidth:P,targetElementHeight:j,type:h});se.style.visibility="hidden",K.style.visibility="hidden",V.style.visibility="hidden";var ce=null,le=function(e){var t=!e,n=M.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)&&U()};return n&&!0===n.auto_dismiss&&(ce=setTimeout((function(){return le()}),f+n.duration)),se.style.visibility="visible",K.style.visibility="visible",V.style.visibility="visible",V.childElementCount>0&&(V.children[0].style.visibility="visible"),b&&se.addEventListener("click",le),K.addEventListener("click",le),S&&("TOP"===E?window.scrollTo({top:oe-Q,behavior:"smooth"}):"BOTTOM"===E&&window.scrollTo({top:Math.min(document.scrollingElement.scrollHeight,oe+Q),behavior:"smooth"})),o&&o(),le}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 not found with id or path: ",O)}var Jn=function(e,t,n){var o=n.dim_background,i=n.dim_bg_color,r=n.dim_bg_opacity,a=n.position,s=document.createElement("div");s.setAttribute("id","apx-oly");var c=document.createElement("style"),l="center",d="center";switch(a){case"bottom-left":l="flex-start",d="flex-end";break;case"bottom-right":l="flex-end",d="flex-end";break;case"top-left":l="flex-start",d="flex-start";break;case"top-right":l="flex-end",d="flex-start"}var p="none";if(o){var u=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}(i);p="rgb(".concat(u.r,", ").concat(u.g,", ").concat(u.b,", ").concat(r,")")}c.innerHTML="\n#apx-oly {\n width:100%;height:100%;position:fixed;top:0;left:0;background-color:".concat(p,";\n display:flex;justify-content:").concat(l,";align-items:").concat(d,";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 h=document.createElement("div");return h.setAttribute("id","apx-dlg-c"),h.classList.add("apx-dlg-c"),s.appendChild(h),s.appendChild(c),document.body.appendChild(s),s},Kn=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 ")},Gn=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,h=!0;n===d||n===l?h=-1!==i.findIndex((function(e){return!0===e.is_selected})):n===u?h=a.length>0:n===p&&(h=c>0);h?(t.className="apx-ba",t.disabled=!1):(t.className="apx-bi",t.disabled=!0)},Zn=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},$n=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,h=t.option_bg_type,f=e.answerMode,m=e.choices,v=void 0===m?[]:m,g=e.rating,y=void 0===g?{rating_type:"classic",bg_color:"#D9DCDE",selected_bg_color:"#109B15"}:g,b=e.selected_rating,x=void 0===b?-1:b,w=e.text_answer,_=void 0===w?"":w,E=e.text_config?e.text_config:{maximum_characters:150,background_color:"#ccc",placeholder:"",text_color:"#000",placeholder_text_color:"#00000087"},k=!1,C=[];if(f===l||f===d){var T=Zn(E);T.style.visibility="hidden";var O=function(e,t){e.style.color=t?s:c},A=function(e,t){var n=t?r:a;"filled"===h?e.style.background=n:"outline"===h&&(e.style.borderColor=n)};v.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=f===l?"radio":"checkbox",r.checked=t.is_selected;var a=document.createElement("span");a.className="apx-i",i.appendChild(r),i.appendChild(a),A(i,t.is_selected),O(i,t.is_selected),t.is_other&&(k=!0,T.addEventListener("input",(function(e){t.other_answer=e.target.value}))),t.is_selected&&t.is_other&&(T.style.visibility="visible",t.other_answer&&(T.value=t.other_answer)),f===d?r.onchange=function(o){var r=o.target.checked;t.is_selected=r,O(i,r),A(i,r),t.is_other&&(T.style.visibility=r?"visible":"hidden"),Gn(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;v[n].is_selected=o,O(e.parentNode,o),A(e.parentNode,o),t.is_other&&(T.style.visibility=o?"visible":"hidden")})),Gn(e,n)}),C.push(i)})),k&&C.push(T)}else if(f===u&&null!==E){var S=E.example,L=E.example_text_color;if(""!==S&&""!==S.trim()){var N=document.createElement("span");N.innerHTML="Example: "+S,N.style.color=L,N.style.marginTop="12px",N.style.fontFamily="inherit",N.style.fontSize="15px",C.push(N)}var M=Zn(E);M.addEventListener("input",(function(t){e.text_answer=t.target.value,t.target.value&&t.target.value.length>0&&(e.is_answered=!0),Gn(e,n)})),""!==_&&""!==_.trim()&&(M.innerText=_),C.push(M)}else if(f===p){var I=y.rating_type,D=y.bg_color,z=y.selected_bg_color,B=document.createElement("div");B.style="display:flex;justify-content:space-between;gap:5px;padding-top:8px;padding-bottom:8px;overflow:hidden";var F="",H=[],P="",q="cursor:pointer;font-size:30px;width:40px;height:40px;";if("classic"===I)H=["&#128534;","&#128533;","&#128566;","&#128516;","&#128525;"],F="opacity:1 !important;",P="".concat(q,"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"===I)H=["&#128544;","&#128577;","&#128528;","&#128512;","&#129321;"],F="filter:grayscale(0%) !important",P="".concat(q,"filter:grayscale(100%)");else if("star"===I){for(var j=0;j<5;j++)H.push("&#11088;");F="filter:grayscale(0%) !important",P="".concat(q,"filter:grayscale(100%)")}else H=["1","2","3","4","5"],F="background:".concat(z," !important;color:white !important;"),P="display:flex;justify-content:center;align-items:center;color:#646A6E;font-size:20px;width:40px;height:40px;background-color:".concat(D,";box-shadow:0px 0.54801px 1.64403px 0.54801px rgba(0, 0, 0, 0.11)"),B.style.marginTop="12px";B.innerHTML="<style>.apx-rsel{".concat(F,"}.apx-r{").concat(P,"}</style>");for(var R=function(e){return"star"!==I?e+1===x:e+1<=x},U=[],V=0;V<5;V++){var W=document.createElement("div");W.innerHTML="".concat("num"===I?"":"&nbsp;").concat(H[V]),R(V)&&W.classList.add("apx-rsel"),W.classList.add("apx-r"),U.push(W)}U.forEach((function(t,o){t.addEventListener("click",(function(){if(t.classList.add("apx-rsel"),e.selected_rating=o+1,e.is_answered=!0,Gn(e,n),"star"!==I){for(var i=0;i<o;i++)U[i].classList.remove("apx-rsel");for(var r=o+1;r<5;r++)U[r].classList.remove("apx-rsel")}else{for(var a=0;a<o+1;a++)U[a].classList.add("apx-rsel");for(var s=o+1;s<5;s++)U[s].classList.remove("apx-rsel")}})),B.appendChild(t)})),C.push(B)}var X=document.createElement("div");X.style.padding="14px",X.style.display="flex",X.style.flexDirection="column",X.style.minHeight="340px";var Y=document.createElement("style"),J="";f===u?J=Kn(E.placeholder_text_color):f!==l&&f!==d||(J=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: 16px;\n width: 16px;\n border: 1px solid ").concat(i,";\n background-color: white;\n border-radius: ").concat(e===l?"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===l?3:1,"px;\n left: ").concat(e===l?3:4,"px;\n width: ").concat(e===l?10:4,"px;\n height: ").concat(e===l?10:8,"px;\n border-radius: ").concat(e===l?"50%":"0",";\n background: ").concat(e===l?o:"transparent",";\n border: ").concat(e===l?"none":"solid white",";\n border-width: ").concat(e===l?"unset":"0 3px 3px 0",";\n -webkit-transform: ").concat(e===l?"unset":"rotate(45deg)",";\n -ms-transform: ").concat(e===l?"unset":"rotate(45deg)",";\n transform: ").concat(e===l?"unset":"rotate(45deg)",";\n }\n ")}(f,r,a,s,c,h),k&&(J+=Kn(E.placeholder_text_color))),Y.innerHTML=J.replaceAll("\n","").replace(/[\s]{2,999}/g,""),X.appendChild(Y);var K=document.createElement("span");return K.innerText=e.title,K.style="margin-bottom:12px;color:".concat(o,";background-color:").concat(i,";font-size:16px;font-weight:600"),X.appendChild(K),C.forEach((function(e){return X.appendChild(e)})),X},Qn=function(e,t,n,o,i){var r=function(e,t,n){var o=e.cancel_button_color,i=e.previous_button_color,r=document.createElement("button"),a=document.createElement("button");r.disabled=0===t,r.setAttribute("type","button"),r.className="apx-b apx-pr",r.innerHTML="<style>.apx-pr::before{content:'\\2190';font-size:22px;color:".concat(i).concat(0===t?"54":"",";}.apx-pr{cursor:").concat(0===t?"no-drop":"pointer",";margin-top:-6px}</style>"),a.className="apx-b apx-cb",a.setAttribute("type","button"),a.innerHTML="<style>.apx-cb::before{content:'\\0000d7';font-size:26px;color:".concat(o,";}</style>");var s=document.createElement("div");s.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="".concat(t+1,"/").concat(n),s.appendChild(r),s.appendChild(c),s.appendChild(a),{prevButton:r,closeButton:a,headerNode:s}}(e,o,i),a=r.headerNode,s=r.prevButton,c=r.closeButton,l=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"),Gn(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),d=l.skipButton,p=l.submitButton,u=l.footerNode,h=$n(n,t,p),f=document.createElement("div");f.className="apx-sq";var m=document.createElement("style");return m.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}",f.appendChild(m),f.appendChild(a),f.appendChild(h),{questionRoot:f,footerNode:u,prevButton:s,closeButton:c,skipButton:d,submitButton:p}},eo=window.ApxorLogger,to=function e(t){var n=this;r(this,e),a(this,"iGjY",(function(){n.is_selected=!1,n.other_answer=null}));var o=t.id,i=t.value,s=t.is_other,c=t.next_question_id;if(!o||!i)throw new Error("Invalid Choice");this.id=o,this.value=i,this.is_other=s,this.next_question_id=c,this.is_selected=!1,this.other_answer=null},no=function e(t){var n=this;r(this,e),a(this,"iGjY",(function(){n.is_answered=!1,n.text_answer="",n.selected_rating=-1,n.choices.forEach((function(e){return e.iGjY()}))}));var o=t.id,i=t.answer_mode,c=t.title,h=t.is_required,f=t.submit_text,m=t.choices,v=void 0===m?[]:m,g=t.text_config,y=void 0===g?null:g,b=t.randomize_choices,x=void 0!==b&&b,w=t.response_cfg,_=void 0===w?{}:w;if(!o||!i||!c)throw new Error("Invalid question");var E=-1;switch(i){case"single_choice":E=l;break;case"multi_choice":E=d;break;case"text":E=u;break;case"rating":E=p;break;default:E=-1}if(this.answerMode=E,this.id=o,this.is_required=h,this.submit_text=f,this.randomize_choices=x,this.response_cfg=_,this.text_config=y,this.title=c,this.is_answered=!1,this.selected_rating=-1,this.choices=[],this.answerMode===l||this.answerMode===d){for(var k,C=[],T=0;T<v.length;T++){var O=new to(v[T]);O.is_other?C.push(O):this.choices.push(O)}x&&(this.choices=s(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)}},oo=function n(){var i=this;r(this,n),a(this,"initialize",(function(e,t,n){var o=n.delay,r=n.dialog_config,a=void 0===r?null:r,s=n.show_progress_bar,c=void 0===s||s,l=n.is_response_based_survey,d=void 0!==l&&l,p=n.questions,u=void 0===p?[]:p,h=n.show_success_message,f=void 0===h||h,m=n.auto_hide_message,v=void 0===m?2e3:m,g=n.success_message,y=void 0===g?"":g,b=n.question_text_color,x=void 0===b?"#002845":b,w=n.submit_active_color,_=void 0===w?"#017DFD":w,E=n.submit_inactive_color,k=void 0===E?"#017DFD65":E,C=n.option_bg_type,T=void 0===C?"filled":C,O=n.option_text_color_active,A=void 0===O?"#002845":O,S=n.option_text_color_inactive,L=void 0===S?"#002845":S,N=n.option_bg_color_active,M=void 0===N?"#FFF":N,I=n.option_bg_color_inactive,D=void 0===I?"#FFF":I,z=n.question_background_color,B=void 0===z?"#FFF":z,F=n.success_message_bg_color,H=void 0===F?"#109B15":F,P=n.success_message_text_color,q=void 0===P?"#002845":P,j=n.skip_text_color,R=void 0===j?"#017DFD":j,U=n.cancel_button_color,V=void 0===U?"#000":U,W=n.previous_button_color,X=void 0===W?"#000":W,Y=n.progress_bar_color,J=void 0===Y?"#017DFD":Y,K=n.submit_text_color,G=void 0===K?"#FFF":K,Z=n.width,$=void 0===Z?350:Z,Q=n.min_height,ee=void 0===Q?40:Q,te=n.position,ne=void 0===te?"center":te,oe=n.dim_background,ie=void 0===oe||oe,re=n.dim_bg_color,ae=void 0===re?"#313131":re,se=n.dim_bg_opacity,ce=void 0===se?.54:se;i.configId=e,i.name=t,i.delay=o,i.is_response_based_survey=d,i.show_success_message=f,i.success_message=y,i.auto_hide_message=v,i.questions=[],i.answered_questions=[],i.width=$,i.min_height=ee,i.layoutConfig={show_progress_bar:c,skip_text_color:R,cancel_button_color:V,previous_button_color:X,progress_bar_color:J,submit_text_color:G,submit_active_color:_,submit_inactive_color:k,success_message_bg_color:H,success_message_text_color:q,position:ne,dim_background:ie,dim_bg_color:ae,dim_bg_opacity:ce},i.questionConfig={question_text_color:x,question_background_color:B,option_bg_color_active:M,option_bg_color_inactive:D,option_text_color_active:A,option_text_color_inactive:L,option_bg_type:T},a&&(i.dialog_config=a);for(var le=0;le<u.length;le++)try{i.questions.push(new no(u[le])),i.answered_questions.push(-1)}catch(e){return eo.error("Failed to parse Q",le,e),!1}return!(i.questions.length<1)||(i.isValid=!1,!1)})),a(this,"xFcw",(function(){if(!i.isValid)return!1;setTimeout((function(){try{e.getInstance().updateCount(i.configId),i.startTime=Date.now();var t=Jn(i.width,i.min_height,i.layoutConfig);if(i.bodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden",i.PKFA("apx_survey_launched"),i.dialog_config){var n=i.dialog_config,o=n.icon_name,r=void 0===o?"":o,a=n.icon_width,s=n.icon_height,c=t.children[0];t.style.visibility="hidden",c.style.visibility="hidden",setTimeout((function(){c.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,y=e.title_color,b=void 0===y?"#3C3C3C":y,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:11px;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(b,';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 ")}(i.dialog_config),document.getElementById("apx-dy").onclick=function(){i.PKFA("apx_survey_dialog_yes_clicked"),c.style.minHeight=i.min_height+"%",i.iSOP(t,!0)},document.getElementById("apx-dn").onclick=function(){i.PKFA("apx_survey_dialog_no_clicked"),i.hAvq(t)};var e=function(){t.style.visibility="visible",c.style.visibility="visible",c.style.minHeight=""===r||0===a||0===s?"13%":"25%",c.classList.toggle("open"),i.PKFA("apx_survey_dialog_launched")};if(""!==r&&a>0&&s>0){var n=document.getElementById("apx_icon");n.onload=function(){e()},n.onerror=function(){i.PKFA("apx_survey_dialog_icon_failed"),i.hAvq(t)}}else e()}),100)}else i.iSOP(t)}catch(e){eo.error(e)}}),i.delay)})),a(this,"iSOP",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=i.layoutConfig,o=n.show_progress_bar,r=n.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 c=e.children[0];(t||c&&c.childElementCount>1)&&c.removeChild(c.children[c.childElementCount-1]),c.appendChild(a),i.vLyj(e,0),t||setTimeout((function(){e.children[0].classList.toggle("open")}),100)})),a(this,"vLyj",(function(e,t){if(!(t>=i.questions.length)){var n=i.questions[t],o=Qn(i.layoutConfig,i.questionConfig,n,t,i.questions.length),r=o.prevButton,a=void 0===r?null:r,s=o.closeButton,c=void 0===s?null:s,l=o.submitButton,d=void 0===l?null:l,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/i.questions.length*(t+1)),"%)"),m.appendChild(h),m.appendChild(f),a&&(a.onclick=function(){t-1<0||(i.eani(t),i.vLyj(e,t-1))}),c&&c.addEventListener("click",(function(){i.PKFA("apx_survey_close_clicked",{where:"question "+(t+1)}),i.eani(t),i.rSxq(e,!1)})),d&&(d.onclick=function(){i.is_response_based_survey||(t===i.questions.length-1?i.rSxq(e,!0):(i.eani(t),i.vLyj(e,t+1)))}),u&&(u.onclick=function(){t+1>=i.questions.length||(i.PKFA("apx_survey_skip_clicked",{where:"question "+(t+1)}),i.eani(t),i.vLyj(e,t+1))})}})),a(this,"eani",(function(e){if(-1===i.answered_questions[e]){var t=i.nFLI(e);t.answers.length>0&&(i.PKFA("apx_survey_".concat(i.questions[e].title),{answers:t.answerTexts}),i.answered_questions[e]=1)}})),a(this,"PKFA",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.logEvent(e,o({survey_id:i.configId,name:i.name},n))})),a(this,"nFLI",(function(e){var t=i.questions[e];if(!t)return null;var n={answers:[],answerTexts:[],others:[],textBasedQuestionAnswers:[]},o=t.answerMode,r=t.choices,a=void 0===r?[]:r,s=t.selected_rating,c=void 0===s?-1:s,h=t.text_answer,f=void 0===h?"":h,m=t.is_answered,v=void 0!==m&&m,g=t.text_config,y=void 0===g?null:g;switch(o){case l:case d:a.forEach((function(e){e.is_selected&&(n.answers.push(e.id),n.answerTexts.push(e.value),e.is_other&&null!==e.other_answer&&""!==e.other_answer.trim()&&n.others.push({id:e.id,answer:e.other_answer}))}));break;case u:v&&""!==f&&""!==f.trim()&&null!==y&&(n.answers.push(y.id),n.answerTexts.push(f),n.textBasedQuestionAnswers.push({id:y.id,answer:f}));break;case p:-1!==c&&(n.answers.push(c),n.answerTexts.push(c))}return n})),a(this,"hAvq",(function(e){e.children[0].classList.toggle("open"),setTimeout((function(){e.parentNode.removeChild(e),document.body.style.overflow=i.bodyOverflow,i.bodyOverflow=""}),400)})),a(this,"VEQL",(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 n=document.getElementById("apx-pb");n.parentNode.removeChild(n);var o,r,a,s,c,l=(o=i.success_message,r=i.layoutConfig,a=r.success_message_bg_color,s=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:white;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(a,';">&#10003;</span>\n <span style="font-size: 17px;margin-top:15px;color:').concat(s,'">').concat(o,"</span>\n "),c);t.appendChild(l),setTimeout((function(){i.hAvq(e)}),i.auto_hide_message)})),a(this,"rSxq",(function(e,n){n?i.show_success_message&&i.VEQL(e):i.hAvq(e);var o={survey_id:i.configId,name:i.name,responses:[]};if(i.questions.forEach((function(e,t){var n=i.nFLI(t);if(n.answers.length>0){var r={question_id:e.id,answers:n.answers};n.others.length>0?r.others=n.others:n.textBasedQuestionAnswers.length>0&&(r.others=n.textBasedQuestionAnswers),o.responses.push(r)}})),o.responses.length>0){var r=Math.pow(10,3);o.time_taken=Math.round((Date.now()-i.startTime)/1e3*r)/r;var a=t.getController();o.session_id=t.getSessionId(),o.is_completed=n,o.app_version=a.getFromStorage("apx_ver",!1),o.device_uuid=t.getClientId(),o.launch_time=-1,o.user_attributes=a.getUserAttributes(),o.session_attributes=a.getSessionAttributes(),i.iHFG(o)}n&&i.PKFA("apx_survey_completed"),i.questions.forEach((function(e,t){e.iGjY(),i.answered_questions[t]=-1})),i.startTime=-1,i.bodyOverflow=""})),a(this,"iHFG",(function(e){fetch("https://server.apxor.com/v2/api/survey-response?appId=<app-id>",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})})),this.isValid=!0,this.dialog_config=null},io=function e(){r(this,e),a(this,"parse",(function(e,t,n){var o=new oo;return o.initialize(e,t,n)?o:null}))},ro=window.ApxorLogger;var ao=function n(){var i=this;r(this,n),a(this,"initialize",(function(e,t,n){var o=n.delay,r=n.layout_type,a=void 0===r?"":r,s=n.html_config.data,c=void 0===s?"":s,l=n.window_attributes,d=l.width,p=void 0===d?50:d,u=l.height,h=void 0===u?60:u,f=l.dimmed_background,m=void 0===f||f,v=l.dismiss_outside_touch,g=void 0!==v&&v;return i.configId=e,i.name=t,i.delay=o,i.width=p,i.height=h,i.layoutConfig={layout_type:a,dimmed_background:m,dismiss_outside_touch:g},i.htmlConfig={data:c},""!=i.htmlConfig.data||(i.isValid=!1,!1)})),a(this,"pcCz",(function(){if(!i.isValid)return!1;setTimeout((function(){try{e.getInstance().updateCount(i.configId);var t=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:100%;height:100%;position:fixed;top:0;left:0;background-color:".concat(o?"#31313185":"transparent",";\n display:flex;justify-content:center;align-items:center;border-radius:3px;z-index:99999999\n }\n #apx-oly > * {font-family:inherit;box-sizing:unset}\n .apx-dlg-c {\n width:").concat(e,"%;height:").concat(t,"%;background:white;z-index:99999999;opacity:0;transition:all .5s cubic-bezier(.96,.23,.07,.8);position:relative;visibility:hidden;\n top:-15px;border-radius:3px;margin:20px;overflow:hidden\n }\n .apx-dlg-c.open{opacity:1;visibility:visible;top:0}\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}(i.width,i.height,i.layoutConfig);i.layoutConfig.dismiss_outside_touch&&(document.getElementById("apx-oly").onclick=function(){i.yJWw(t)}),setTimeout((function(){t.children[0].classList.toggle("open"),t.children[0].innerHTML=i.htmlConfig.data,i.EEUq("inapp_shown"),t.querySelectorAll("a").forEach((function(e){e.onclick=function(){return i.lHdY(t,e)}}))}),100)}catch(e){ro.error(e)}}),i.delay)})),a(this,"lHdY",(function(e,n){var o=n.getAttribute("href");if(null!=o&&o.includes("apxor")){var r,a=o.replace(/^apxor:\/\/([^\?]*).*?$/,"$1");switch(a){case"cancel":i.EEUq("walk_through_cancelled");break;case"xclose":i.EEUq("InAppXIconClicked");break;case"close":r=o.replace(/(.*?)buttonName=([^\&]*).*?$/,"$2"),i.EEUq(h(""===r?"Button":r));break;case"dl_url":var s=o.replace(/(.*?)uri=([^\&]*).*?$/,"$2"),c=o.replace(/(.*?)external=([^\&]*).*?$/,"$2");r=o.replace(/(.*?)buttonName=([^\&]*).*?$/,"$2"),i.EEUq(h(""===r?"Button":r)),"true"==c?window.open(s,"_blank"):t.logClientEvent("REDIRECT",{url:s})}return i.yJWw(e,a),!1}return!0})),a(this,"yJWw",(function(e,t){"cancel"!==t&&i.EEUq("inapp_dismissed"),e.children[0].classList.toggle("open"),setTimeout((function(){e.parentNode.removeChild(e)}),300)})),a(this,"EEUq",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.logEvent(e,o({id:i.configId,message_name:i.name},n))})),this.isValid=!0},so=function e(){r(this,e),a(this,"parse",(function(e,t,n){var o=new ao;return o.initialize(e,t,n)?o:null}))},co=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)}},lo=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 po="<b>View Selection Mode: ON",uo="<b>View Selection Mode: OFF</b>",ho="https://sse.apxor.com/v1/api/",fo=ho+"layout?appId=<aid>",mo=ho+"sse-ui-config?appId=<aid>",vo=ho+"art-config?appId=<aid>&deviceId=<uid>",go="https://server.apxor.com/v4/frontendapi/web/test-devices",yo=go+"?appId=<aid>",bo=go+"/<uid>?appId=<aid>",xo=function e(){var n=this;r(this,e),a(this,"OIic",null),a(this,"zmJX",null),a(this,"paBr",null),a(this,"wZWy",null),a(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;if(s===e&&Date.now()<=c){var l=document.createElement("span");if(l.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",l.innerHTML=po,n.zmJX=l,document.body.appendChild(l),n.OIic=document.createElement("style"),n.OIic.innerHTML=".apx-highlight{height:auto;z-index:9999999999;outline: 2px solid red;cursor:default}",document.body.appendChild(n.OIic),n.isSelectionMode=!1,n.testDeviceData=t.getController().getFromStorage("_apx_td",!0),n.testDeviceData){var d=n.testDeviceData,p=d.name,u=void 0===p?"":p,h=d.id,f=void 0===h?"":h;if(""!==u&&""!==f){n.XOfo("select","".concat(u," - ").concat(f),f);var m=new EventSource(mo.replace("<aid>",e)),v=new EventSource(vo.replace("<aid>",e).replace("<uid>",f));m.onmessage=v.onmessage=function(e){e&&e.data&&"{}"!==e.data&&n.TUSr(o,e.data)}}}n.tQZX()}}catch(e){}}})),a(this,"Qqyf",(function(){n.zmJX.parentNode.removeChild(n.zmJX),n.OIic.parentNode.removeChild(n.OIic)})),a(this,"TUSr",(function(e,o){try{n.wZWy.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.pkcO("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)}})),a(this,"tQZX",(function(){var e=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(e?"none":"block",'">Add as test device</button>\n<button class="apx-b" id="apx-r" style="display:').concat(e?"block":"none",'">Remove as test device</button>\n<button class="apx-b" id="apx-ev" style="display:').concat(e&&n.isSelectionMode?"none":e?"block":"none",'">Enable view selection</button>\n<button class="apx-b" id="apx-dv" style="display:').concat(e&&n.isSelectionMode?"block":"none",'">Disable view selection</button>\n</div>\n '),i=document.createElement("div");i.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",i.setAttribute("id","apx-wr"),i.innerHTML=o,document.body.appendChild(i),n.wZWy=i;var r=document.getElementById("apx-bh"),a=function(){i.style.opacity=.5,r.style.display="none"},s=setTimeout(a,3e3);i.addEventListener("mouseover",(function(){i.style.opacity=1,clearTimeout(s),r.style.display="flex"})),i.addEventListener("mouseout",(function(){s=setTimeout(a,3e3)}));var c=document.getElementById("apx-a"),l=document.getElementById("apx-r"),d=document.getElementById("apx-ev"),p=document.getElementById("apx-dv");c.onclick=function(){return n.BRVw()},l.onclick=function(){fetch(bo.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,c.style.display="block",l.style.display=d.style.display=p.style.display="none",n.isSelectionMode&&n.CqCf())})).catch((function(e){return console.error(e)}))},d.onclick=function(){n.isSelectionMode=!0,window.addEventListener("mouseover",co,!0),window.addEventListener("mouseout",lo,!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.qudI(e,!0),o=n.AuKl(e,!0);n.XOfo("view",location.href,t+"___"+o)}))},window.addEventListener("click",n.clickListener,!0),n.wLIb(!1),d.style.display="none",p.style.display="block"};var u=function(){n.CqCf(),p.style.display="none",d.style.display="block"};p.onclick=u,n.wZWy.addEventListener("preview",u),n.wZWy.addEventListener("added",(function(){c.style.display="none",l.style.display="block",r.style.display="flex",d.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}(i)})),a(this,"CqCf",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:uo;if(n.isSelectionMode){window.removeEventListener("mouseover",co,!0),window.removeEventListener("mouseout",lo,!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.wLIb(!0,e),n.isSelectionMode=!1}})),a(this,"wLIb",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:uo;n.zmJX.style.visibility="visible",e?(n.zmJX.innerHTML=t,n.zmJX.style.opacity=1):(n.zmJX.innerHTML=po,n.zmJX.style.opacity=1),setTimeout((function(){n.zmJX.style.opacity=0,n.zmJX.style.visibility="hidden"}),1e3)})),a(this,"BRVw",(function(){var e=b(500,20,{}),o=e.children[0];o.style.flex="0 1 auto",o.style.maxHeight="calc(100% - 96px)",o.style.display="flex",o.style.flexDirection="column";var i=t.getController().getDevInfo(),r=t.getController().getUserAttributes().apx_browser,a=i.hardware_model,s=i.os_version,c=i.id,l="\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(a," - ").concat(s,'</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(r,'</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 ');e.style.visibility="hidden",o.style.visibility="hidden",o.innerHTML=l;var d,p,u=document.getElementById("apx-ii");n.testDeviceData&&(u.value=null!==(d=null===(p=n.testDeviceData)||void 0===p?void 0:p.name)&&void 0!==d?d:"");u.onfocus=function(){u.parentNode.classList.add("apx-iid-f"),u.parentNode.parentNode.children[0].classList.add("apx-il-f")},u.onblur=function(){u.parentNode.classList.remove("apx-iid-f"),u.parentNode.parentNode.children[0].classList.remove("apx-il-f")},u.oninput=function(){""!==u.value.trim()?f.removeAttribute("disabled"):f.setAttribute("disabled","")},setTimeout((function(){e.style.visibility="visible",o.style.visibility="visible",o.classList.toggle("open"),u.parentNode.parentNode.children[0].classList.add("apx-il-f")}),100);var h=function(){o.classList.toggle("open"),setTimeout((function(){e.parentNode.removeChild(e)}),400)};document.getElementById("apx-bc").onclick=function(){h()};var f=document.getElementById("apx-bd");f.onclick=function(){o.children[1].classList.add("apx-loading"),t.getController().makePostRequest(yo.replace("<aid>",t.getSiteId()),{model:a,id:c,nick_name:u.value},{apx_web_key:"WTCKFAIVAJKYJA3HCV80WIKZU98R9NJG"},(function(){var e={id:c,name:u.value};t.getController().persistToStorage("_apx_td",e,!0),n.testDeviceData=e,n.XOfo("select","".concat(u.value," - ").concat(c),c,(function(){o.children[1].classList.remove("apx-loading"),n.wZWy.dispatchEvent(new CustomEvent("added"))})),h()}),(function(){}))}})),a(this,"XOfo",(function(e,n,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},a=t.getController().getDevInfo(),s={device_info:{id:a.id,hardware_model:a.hardware_model,os_version:a.os_version,width:a.dimensions.width,height:a.dimensions.height},screen:{image:e,navigation:n,orientation:o},layout:[]};t.getController().makePostRequest(fo.replace("<aid>",t.getSiteId()),s,{},i,r)})),a(this,"qudI",(function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)return"";for(var o=[],i=e;i;){var r=n.PxFL(i,!!t,i===e);if(!r)break;if(o.push(r),r.optimized)break;i=i.parentNode}return o.reverse(),o.join(" > ")})),a(this,"PxFL",(function(e,t,n){if(e.nodeType!==Node.ELEMENT_NODE)return null;var o=e.getAttribute("id");if(t){if(o)return new wo(c(o),!0);var i=e.nodeName.toLowerCase();if("body"===i||"head"===i||"html"===i)return new wo(e.nodeName.toLowerCase(),!0)}var r=e.nodeName.toLowerCase();if(o)return new wo(r.toLowerCase()+c(o),!0);var a=e.parentNode;if(!a||a.nodeType===Node.DOCUMENT_NODE)return new wo(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 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 _=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 wo(_,!1)})),a(this,"AuKl",(function(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";for(var o=[],i=e;i;){var r=n.ueeS(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("/")})),a(this,"ueeS",(function(e,t){var o,i=n.SqKS(e);if(-1===i)return null;switch(e.nodeType){case Node.ELEMENT_NODE:if(t&&e.getAttribute("id"))return new wo('//*[@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 wo(o,e.nodeType===Node.DOCUMENT_NODE)})),a(this,"SqKS",(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}))},wo=function(e,t){this.value=e,this.optimized=t||!1};wo.prototype={toString:function(){return this.value}};var _o=window.ApxorLogger,Eo=new function n(){var o=this;r(this,n),a(this,"version",107),a(this,"IUpT",{}),a(this,"isShowingAction",!1),a(this,"currentAction",null),a(this,"xJpJ",new io),a(this,"iLYQ",new so),a(this,"NpPc",new xo),a(this,"init",(function(){var n=t.getController(),i=e.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,o.handleResponse),i.fetch(1,l,d,o.handleResponse),n.registerForEvent("IN_LINE",o.nNzZ),n.registerForEvent("IN_APP",o.kXOw),n.registerForEvent("SURVEY",o.DTsU),n.registerForEvent("ONBOARDING",o.Lqnz),o.NpPc.init(r,o),_o.debug("Registered for events")})),a(this,"show",(function(e,t,n,i){try{if(null!==o.currentAction&&void 0!==o.currentAction)return void _o.error("An action already being shown");var r=JSON.parse(e),a={};a.auto_dismiss=t>0,a.duration=t;var s=function(){o.logActionEvent("inline_shown",n,i),o.updateCount(n),o.isShowingAction=!0},c=function(){o.isShowingAction=!1,o.currentAction=null,o.logActionEvent("inline_dismissed",n,i)},l=r.display_type,d={configId:n,configName:i};"inline"===l?o.currentAction=function(e,t,n,o,i,r,a){var s=Array.isArray(t)&&t.length>0,c=e.delay,l=e.dimmed_background,d=e.view_id;return Nn=new In.Tour({defaultStepOptions:{},useModalOverlay:s||l}),setTimeout((function(){var n=document.getElementById(d);if(!n)try{n=document.querySelector(d)}catch(e){}if(n||(n=m(d)),!n)return console.warn("Element not found with id: ",d),void(i.currentAction=null);try{var c=n.getBoundingClientRect();if(0===c.width||0===c.height)return console.warn("Width and height are 0 for: ",d,". Can't show"),void(i.currentAction=null);if(c.top>=window.innerHeight)return console.warn("Element ",d," not in viewport. Can't show"),void(i.currentAction=null)}catch(e){return i.isShowingAction=!1,void(i.currentAction=null)}if(s?t.forEach((function(e,t){var n=e.ui;Pn(n,o,i,r,a,t)})):Pn(e,o,i,r,a),i.isShowingAction)window.ApxorLogger.error("An action already being shown");else try{Nn.start(),i.isShowingAction=!0}catch(e){i.isShowingAction=!1,i.currentAction=null,console.error(e)}}),c),!0===n.auto_dismiss&&setTimeout((function(){try{Nn.complete()}catch(e){i.isShowingAction=!1,i.currentAction=null,console.error(e)}}),c+n.duration),Nn.complete}(r,[],a,d,o,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=Yn(e,t,n,o,i);r(s)}else setTimeout((function(){if(null===a.currentAction||void 0===a.currentAction){var s=Yn(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){o.currentAction=e})):_o.error("Unknown type",l)}catch(e){o.currentAction=null,o.isShowingAction=!1,window.ApxorLogger.error(e)}})),a(this,"logActionEvent",(function(e,n,o){t.logEvent(e,{id:n,message_name:o})})),a(this,"logClientEvent",(function(e,n){t.logClientEvent(e,n)})),a(this,"updateCount",(function(t){e.getInstance().updateCount(t)})),a(this,"SKgb",(function(){if(null!==o.currentAction&&void 0!==o.currentAction){o.isShowingAction=!1;try{o.currentAction()}catch(e){}finally{o.currentAction=null}}})),a(this,"handleResponse",(function(t,n){_o.debug("Fetched config from server",t),o.pkcO(t,n),e.getInstance().parse(n)})),a(this,"pkcO",(function(e,t){if(f(t)&&f(t.configs)){var n=t.configs;if(!Array.isArray(n))return;for(var i=0;i<n.length;i++){var r=n[i],a=r._id,s=r.meta.name,c=r.type,l=r.ui;1===e?l=o.xJpJ.parse(a,s,l):"IN_APP"===c&&(l=o.iLYQ.parse(a,s,l)),null!==l?o.IUpT[a]={ui:l,uis:r.uis,terminationConfig:r.terminate_info,name:s}:console.warn("Failed to parse the config",a)}_o.debug("Configs: ",o.IUpT)}})),a(this,"nNzZ",(function(e){if(f(e.additional_info)){var t=e.additional_info.uuid;if(o.IUpT[t]){var n=o.IUpT[t],i=n.ui,r=n.terminationConfig,a=n.name;o.show(JSON.stringify(i),r.auto_dismiss?r.duration:-1,t,a)}}})),a(this,"kXOw",(function(e){if(f(e.additional_info)){var t=e.additional_info.uuid;if(o.IUpT[t])o.IUpT[t].ui.pcCz()}})),a(this,"DTsU",(function(e){if(f(e.additional_info)){var t=e.additional_info.uuid;if(o.IUpT[t])o.IUpT[t].ui.xFcw()}})),a(this,"Lqnz",(function(e){}))};window.ApxorRTM=Eo;try{void 0===exports&&null===exports||(exports.default=Eo,module.exports=exports.default)}catch(e){}return Eo}));
44
+ */;!function(e){if(F){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:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-arrow{border-width:0 8px 8px;border-bottom-color:#333;margin:0 3px;transform-origin:50% 7px;top:-7px}.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:-7px}.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:-7px}.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 Bt=Vt("shepherd"),zt=Vt("shepherd-has-title"),Ht={computeStyle:{enabled:!0,fn:function(e){return e.styles=O({},e.styles,{left:"50%",top:"50%",transform:"translate(-50%, -50%)"}),e}},addShepherdClass:Bt},jt={positionFixed:!0,modifiers:{addShepherdClass:Bt}};function Ft(e){var t=document.createElement("div");return t.innerHTML=e,t.children[0]}function Pt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Array.isArray(e)?e.slice(t):[]}function qt(){if(H(It))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=Ut.call(this,e),this.target=e.element||document.body,this.el.classList.add("shepherd-element")}function Rt(){var e=this.options.attachTo||{},t=O({},e);if(z(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 Vt(e){return{enabled:!0,fn:function(t){return t.instance.popper.classList.add(e),t}}}function Ut(e){if(!e.element)return Yt.call(this);var t=Wt.call(this,e);return It(e.element,t)}function Wt(e){var t={content:this.el,flipOnUpdate:!0,placement:e.on||"right"};return O(t,this.options.tippyOptions),this.options.title&&O(jt.modifiers,{addHasTitleClass:zt}),this.options.tippyOptions&&this.options.tippyOptions.popperOptions&&O(jt,this.options.tippyOptions.popperOptions),t.popperOptions=jt,t}function Yt(){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){T(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&&O(jt.modifiers,{addHasTitleClass:zt});var t=O({},jt,e.popperOptions,{modifiers:O(Ht,e.popperOptions.modifiers)});return e.popperOptions=t,It(document.body,e)}var Xt=function(){function e(){E(this,e)}return C(e,[{key:"on",value:function(e,t,n){var o=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];H(this.bindings)&&(this.bindings={}),H(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(H(this.bindings)||H(this.bindings[e]))return!1;H(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(!H(this.bindings)&&this.bindings[e]){var n=Pt(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 Gt(e){var t=this;return function(n){if(t.isOpen()){var o=t.el&&n.target===t.el;(!H(e)&&n.target.matches(e)||o)&&t.tour.next()}}}function Jt(){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=Gt.call(this,n);try{o=document.querySelector(n)}catch(e){}if(!H(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 Zt(e,t){var n=this;e.events=e.events||{},H(e.action)||(e.events.click=e.action),e.events&&Object.entries(e.events).forEach((function(e){var o=D(e,2),i=o[0],r=o[1];if(z(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 Kt(e){var t=this;e.addEventListener("click",(function(e){e.preventDefault(),t.cancel()}))}function $t(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 Qt=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})}}}}));Qt.polyfill;Qt.polyfill();var en,tn=(en=0,function(){return++en}),nn=function(e){function t(e,n){var o;return E(this,t),(o=M(this,L(t).call(this,e,n))).tour=e,$t.call(N(o),["_show","cancel","complete","destroy","hide","isOpen","scrollTo","setupElements","show"]),o.setOptions(n),o.bindAdvance=Jt.bind(N(o)),o.bindButtonEvents=Zt.bind(N(o)),o.bindCancelLink=Kt.bind(N(o)),o.setupTooltip=qt.bind(N(o)),o.parseAttachTo=Rt.bind(N(o)),M(o,N(o))}return A(t,e),C(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=Ft('<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=Ft('<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=Ft('<div class="shepherd-text"\n id="'.concat(t,'"\n ></div>')),o=this.options.text;B(o)&&(o=o.call(this,n)),o instanceof HTMLElement?n.appendChild(o):(z(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=D(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=Ft('<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),H(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),I(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(){H(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;B(this.options.scrollToHandler)?this.options.scrollToHandler(t):I(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(tn()),n&&Object.entries(n).forEach((function(t){var n=D(t,2),o=n[0],i=n[1];e.on(o,i,e)}))}},{key:"show",value:function(){var e=this;if(B(this.options.beforeShowPromise)){var t=this.options.beforeShowPromise();if(!H(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}(Xt),on="http://www.w3.org/2000/svg",rn="shepherdModalOverlayContainer",an="shepherdModalMask",sn="shepherdModalMaskRect",cn="shepherdModalMaskOpening",ln="shepherd-modal-is-visible",dn="shepherd-modal-target";function pn(){var e,t=((e=document.createElementNS(on,"svg")).setAttributeNS(null,"id",rn),e),n=document.createElementNS(on,"defs"),o=function(){var e=document.createElementNS(on,"mask");return mn(e,{height:"100%",id:an,width:"100%",x:"0",y:"0"}),e}(),i=function(){var e=document.createElementNS(on,"rect");return mn(e,{fill:"#FFFFFF",height:"100%",id:sn,width:"100%",x:"0",y:"0"}),e}(),r=function(){var e=document.createElementNS(on,"rect");return mn(e,{fill:"#000000",id:cn}),e}(),a=function(){var e=document.createElementNS(on,"rect");return mn(e,{height:"100%",width:"100%",x:"0",y:"0"}),e.setAttribute("mask","url(#".concat(an,")")),e}();return o.appendChild(i),o.appendChild(r),n.appendChild(o),t.appendChild(n),t.appendChild(a),t}function un(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;mn(t,{x:(i||c)-n,y:(r||l)-n,width:a+2*n,height:s+2*n})}}function hn(e){e.preventDefault()}function fn(e){e.stopPropagation()}function mn(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function vn(e){var t=e.options.attachTo;if(!t)return null;var n=_(t);return"string"===n?function(e){var t=D(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 gn(){"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(rn));window.addEventListener("touchmove",hn,{passive:!1}),e&&e.addEventListener("touchmove",fn,!1)}var bn=function(){function e(t){return E(this,e),this.createModalOverlay(),this.options=t,this}return C(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(ln)}catch(e){}}},{key:"createModalOverlay",value:function(){if(!this._modalOverlayElem){var e=document.getElementById("shepherdModalOverlayContainer");this._modalOverlayElem=e||pn(),this._modalOverlayOpening=this._modalOverlayElem.querySelector("#".concat(cn)),this.hide(),e||document.body.appendChild(this._modalOverlayElem)}}},{key:"hide",value:function(){document.body.classList.remove(ln),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(ln),this._modalOverlayElem&&(this._modalOverlayElem.style.display="block")}},{key:"_styleForStep",value:function(e){var t,n,o,i,r,a=this._modalOverlayOpening,s=vn(e),c=e.options.modalOverlayOpeningPadding;s?(un(s,a,c),this._onScreenChange=(n=un.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)}),gn.call(this)):(t=this._modalOverlayOpening)&&t instanceof SVGElement&&mn(t,{height:"0",x:"0",y:"0",width:"0"})}}]),e}(),yn=!1;if("undefined"!=typeof window){var xn={get passive(){yn=!0}};window.addEventListener("testPassive",null,xn),window.removeEventListener("testPassive",null,xn)}var wn,_n,En="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),kn=[],Cn=!1,Tn=-1,On=function(e){return kn.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},An=function(e){var t=e||window.event;return!!On(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},Ln=function(e,t){if(En){if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(e&&!kn.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};kn=[].concat(l(kn),[n]),e.ontouchstart=function(e){1===e.targetTouches.length&&(Tn=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-Tn;!On(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?An(e):e.stopPropagation())}(t,e)},Cn||(document.addEventListener("touchmove",An,yn?{passive:!1}:void 0),Cn=!0)}}else{!function(e){setTimeout((function(){if(void 0===_n){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(_n=document.body.style.paddingRight,document.body.style.paddingRight="".concat(n,"px"))}void 0===wn&&(wn=document.body.style.overflow,document.body.style.overflow="hidden")}))}(t);var o={targetElement:e,options:t||{}};kn=[].concat(l(kn),[o])}},Sn=function(){En?(kn.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),Cn&&(document.removeEventListener("touchmove",An,yn?{passive:!1}:void 0),Cn=!1),kn=[],Tn=-1):(setTimeout((function(){void 0!==_n&&(document.body.style.paddingRight=_n,_n=void 0),void 0!==wn&&(document.body.style.overflow=wn,wn=void 0)})),kn=[])},Nn={trigger:"manual",arrow:!0,animation:"fade",duration:420,flip:!0,animateFill:!1,interactive:!0,hideOnClick:"toggle",multiple:!0};function Mn(){"function"==typeof this._onScreenChange&&(window.removeEventListener("resize",this._onScreenChange,!1),window.removeEventListener("scroll",this._onScreenChange,!1),this._onScreenChange=null),window.removeEventListener("touchmove",hn,{passive:!1})}var Dn,In=function(){var e=0;return function(){return++e}}(),Bn=new Xt,zn=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};E(this,t),e=M(this,L(t).call(this,n)),$t.call(N(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=N(e),Bn.trigger(n,t)}))})),e.modal=new bn(n),e._setTooltipDefaults(),e._setTourID(),M(e,N(e))}return A(t,e),C(t,[{key:"addStep",value:function(e,t){var n,o;return H(t)?o=e:(n=e,o=t),o instanceof nn?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()})),Mn.call(this),(t=this.tourObject)&&t.steps.forEach((function(e){if(e.options&&!1===e.options.canClickTarget&&e.options.attachTo){var t=vn(e);t instanceof HTMLElement&&(t.style.pointerEvents="auto")}})),this.trigger(e),Bn.activeTour=null,this._removeBodyAttrs(),this.trigger("inactive",{tour:this}),this.options.disableScroll&&Sn(),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 Bn.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(z(t)||"number"==typeof t)&&(e.id=t.toString()),e=O({},this.options.defaultStepOptions,e),new nn(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=z(e)?this.getById(e):this.steps[e];if(n){this._updateStateBeforeShow();var o=B(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&&Ln(),this.currentStep=null,this._setupActiveTour(),this.next()}},{key:"_setupActiveTour",value:function(){this.modal.createModalOverlay(),this._addBodyAttrs(),this.trigger("active",{tour:this}),Bn.activeTour=this}},{key:"_styleTargetElementForStep",value:function(e){var t,n,o=vn(e);o&&(t=o,(n=document.querySelector("".concat(dn)))&&n.classList.remove(dn),t.classList.add(dn),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(){It.setDefaultProps(Nn)}},{key:"_updateStateBeforeShow",value:function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}},{key:"_setTourID",value:function(){var e=this.options.tourName||"tour",t=In();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}(Xt);O(Bn,{Tour:zn,Step:nn,Evented:Xt});var Hn=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];try{o&&e.logActionEvent("InlineTargetViewClicked",t,n),Dn.complete()}catch(t){e.isShowingAction=!1,e.currentAction=null,console.error(t)}},jn=function(e){return 50===e?10:16},Fn=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)")}},Pn=function(e){switch(e.toUpperCase()){case"TOP":return"top: 10px";case"LEFT":return"left: 10px";case"RIGHT":return"left: -10px";case"BOTTOM":return"top: -10px"}},qn=function(e,t,n,o,i){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=e.animation,s=void 0===a?{}:a,c=e.bg_color,l=void 0===c?"black":c,d=e.border,p=void 0===d?{}:d,u=e.buttons_config,h=void 0===u?[]:u,f=e.button_position,m=void 0===f?"right":f,v=e.corners,b=void 0===v?{}:v,w=e.shadow,_=void 0===w?"0 8px 16px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)":w,E=e.opacity,k=void 0===E?1:E,C=e.dismiss_outside_touch,T=void 0!==C&&C,O=e.position,A=void 0===O?"TOP":O,L=e.text_config,S=void 0===L?{}:L,N=e.title_config,M=void 0===N?{}:N,D=e.view_id,I=e.show_shadow,B=void 0!==I&&I,z=e.show_close_icon,H=void 0!==z&&z,j=t.configId,F=t.configName,P=x(h,Dn,j,F),q=P.buttons_array,R=P.buttons_css,V={color:S.color,fontSize:S.size,fontFamily:S.font_family,fontStyle:S.style};if(S.margin_config&&Object.keys(S.margin_config).length>0){var U=S.margin_config;V.margin="".concat(U.top,"px ").concat(U.right,"px ").concat(U.bottom,"px ").concat(U.left,"px")}var W=S.style;"bold"===W&&(V.fontWeight=W);var Y={color:M.color,fontSize:M.size,fontFamily:M.font_family,fontStyle:M.style};if(M.margin_config&&Object.keys(M.margin_config).length>0){var X=M.margin_config;Y.margin="".concat(X.top,"px ").concat(X.right,"px ").concat(X.bottom,"px ").concat(X.left,"px")}"bold"===(W=M.style)&&(V.fontWeight=W);var G={"border-radius":b.enabled?b.width:0,background:l,"border-color":p.color,"border-width":p.width},J=null;try{J=document.querySelector("#"+D)}catch(e){}if(!J)try{J=document.querySelector(D)}catch(e){}if(J||(J=g(D)),J){var Z=document.createElement("span");Z.setAttribute("id","apxor-style-"+j+"-step-"+r);var K=document.createElement("style");K.innerHTML='\n#shepherdModalOverlayContainer {\n -ms-filter: "progid:dximagetransform.microsoft.gradient.alpha(Opacity=50)";\n filter: alpha(opacity=50);height: 100vh;left: 0;opacity: .5;position: fixed;\n top: 0;transition: all .3s ease-out;width: 100vw;z-index: 9997\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: 16px\n}\n.tippy-popper.shepherd[x-placement^=bottom] {\n margin-top: -10px\n}\n.tippy-popper.shepherd[x-placement^=left] {\n margin-right: 16px\n}\n.tippy-popper.shepherd[x-placement^=right] {\n margin-left: 16px\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(Y.color,";display: flex;flex: 1 0 auto;\n font-size: ").concat(Y.fontSize,"px;font-family: ").concat(Y.fontFamily,";\n font-weight: ").concat("bold"!==Y.fontStyle?"normal":Y.fontStyle,";font-style: ").concat("italic"===Y.fontStyle?"italic":"unset",';\n line-height: 26px;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;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(V.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(V.fontSize,"px;font-family: ").concat(V.fontFamily,"; \n font-weight: ").concat("bold"!==V.fontStyle?"normal":V.fontStyle,";\n font-style: ").concat("italic"===V.fontStyle?"italic":"unset",";\n color: ").concat(V.color,";line-height: 26px;letter-spacing:0.01em;\n}\n").concat(y(R,m,".shepherd-element .shepherd-content "),"\n@-webkit-keyframes cycle {\n 0% { transform: ").concat(Fn(A,0),"; }\n 50% { transform: ").concat(Fn(A,50),"; }\n 100% { transform: ").concat(Fn(A,100),"; }\n}\n@keyframes cycle {\n 0% { transform: ").concat(Fn(A,0),"; }\n 50% { transform: ").concat(Fn(A,50),"; }\n 100% { transform: ").concat(Fn(A,100),"; }\n}\n.tippy-tooltip.apxor-").concat(j,"-step-").concat(r,"-theme {\n animation: ").concat(s.enabled?s.type+" 1000ms":"none",";\n animation-timing-function: ease-in-out;animation-iteration-count: infinite;\n box-shadow: ").concat(B?_:"none",";color: ").concat(V.color,";\n opacity: ").concat(k,";border-radius: ").concat(G["border-radius"]+"px",";\n background-color: ").concat(G.background,";").concat(Pn(A),";\n}\n.apxor-").concat(j,"-step-").concat(r,"-theme .tippy-roundarrow {\n fill: ").concat(G.background,";\n}\n.tippy-tooltip[data-placement^='top'] .tippy-arrow {\n border-top-color: ").concat(G.background,";\n}\n.tippy-tooltip[data-placement^='bottom'] .tippy-arrow {\n border-bottom-color: ").concat(G.background,";\n}\n.tippy-tooltip[data-placement^='left'] .tippy-arrow {\n border-left-color: ").concat(G.background,";\n}\n.tippy-tooltip[data-placement^='right'] .tippy-arrow {\n border-right-color: ").concat(G.background,";\n}\n "),Z.appendChild(K),J.parentNode.insertBefore(Z,J);var $=function(e){return Hn(n,j,F,!0)};Dn.addStep("apxor-step-"+r,{title:M&&M.text?M.text:null,text:[S&&S.text?S.text:"Tap here"],classes:"apxor-".concat(j,"-step-").concat(r,"-theme"),attachTo:{element:J,on:A.toLowerCase()},showCancelLink:H,buttons:q,tippyOptions:{allowHTML:!0,arrow:!0,flipOnUpdate:!0,interactive:!0,maxWidth:"100%",hideOnClick:T,theme:"apxor-".concat(j,"-step-").concat(r),onShow:function(){o&&o(),J.addEventListener("click",$)},onHidden:function(){try{var e=document.getElementById("apxor-style-"+j+"-step-"+r);e.parentNode.removeChild(e)}catch(e){}try{var t=document.getElementById("shepherdModalOverlayContainer");t.parentNode.removeChild(t)}catch(e){}i&&i(),J.removeEventListener("click",$)}}})}else console.warn("Element not found with id or path")};function Rn(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 Vn=Rn(10);function Un(){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 Wn(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",Vn+"-"+u),h.className="apx-class-".concat(Vn,"-").concat(u);var f=document.createElement("style");return f.innerHTML="\n.apx-class-".concat(Vn,"-").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 Yn(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",Vn+"-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 20px 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(Un()?"unset":"absolute",";\n top: 0;left: 0;right: 0;bottom: 0;content: '';\n height: ").concat(Un()?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 Xn(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 Gn(e){var t=e.opacity,n=e.type,o=document.createElement("div");o.setAttribute("id",Vn+"-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 Xn('\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 Xn('\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 Jn(e,t,n,o,i){var r=e.bg_color,a=e.buttons_config,s=void 0===a?[]:a,c=e.button_position,l=e.coach_mark_details,d=l.has_ripple,p=void 0!==d&&d,u=l.type,h=void 0===u?"circle":u,f=e.delay,m=e.dismiss_outside_touch,b=void 0!==m&&m,w=e.opacity,_=void 0===w?.8:w,E=e.position,k=void 0===E?"TOP":E,C=e.text_config,T=e.title_config,O=void 0===T?null:T,A=e.view_id,L=e.scroll_to_view,S=void 0!==L&&L,N=t.configId,M=t.configName,D=document.getElementById(A);if(!D)try{D=document.querySelector(A)}catch(e){}if(D||(D=g(A)),D){Vn=Rn(10);var I=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:v(t.x)?t.x+window.scrollX:n,y:v(t.y)?t.y+window.scrollY:o,width:t.width,height:t.height}}(D),B=I.left,z=void 0===B?0:B,H=I.top,j=void 0===H?0:H,F=I.width,P=void 0===F?0:F,q=I.height,R=void 0===q?0:q;if(I.top>=window.innerHeight)console.warn("Element ",A," not in viewport. Can't show");else{var V=I.left<window.innerWidth/2;if(0!==R&&0!==P){var U=function(){ce.parentNode.removeChild(ce),W.parentNode.removeChild(W),Z.parentNode.removeChild(Z),i&&i(),le&&clearTimeout(le)},W=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=Wn(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(Wn(t)),s.appendChild(Wn(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=x(n,{next:l,complete:l,cancel:l},i,r),p=d.buttons_array,u=d.buttons_css,h=document.createElement("style");h.innerHTML=y(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}(C,O,s,c,N,M,U),Y=W.offsetWidth,X=W.offsetHeight,G=0,J=0;C&&C.margin_config&&(G=Number(C.margin_config.left)||0,J=Number(C.margin_config.right)||0);var Z=Yn(P,R,z,j,h,p),K=z+P/2,$=j+R/2,Q=Math.sqrt(Math.pow(P,2)+Math.pow(R,2))/2,ee=Q+Math.max(Y,P)/2+10,te=-1,ne=-1,oe=-1,ie=-1,re=$-Q,ae=$+Q;switch(k){case"TOP":ne=(oe=K-Y/2)<0?5:oe,te="circle"===h?$-Q-X-25:j-X-25,ie=ae-Math.abs(ae-te)/2;break;case"BOTTOM":case"RIGHT":case"LEFT":ne=(oe=K-Y/2)<0?5:oe,ie=re+((te="circle"===h?$+Q+25:j+R+25)+X-re)/2}if(-1!==ne&&-1!==te&&-1!==ie){!V&&ne+Y>window.innerWidth&&(ne=window.innerWidth-Y-G-J-10),W.style.left="".concat(ne,"px"),W.style.top="".concat(te,"px");var se=((oe=Math.min(z,ne))+Math.max(z+P,ne+Y))/2;(se=Math.min(se,document.scrollingElement.scrollWidth))<0&&(se=0),(ie=Math.min(ie,document.scrollingElement.scrollHeight))<0&&(ie=0);var ce=Gn({bg_color:r,opacity:_,innerRadius:Q,innerCenterX:K,innerCenterY:$,outerRadius:ee,outerCircleCenterX:se,outerCircleCenterY:ie,targetElementLeft:z,targetElementTop:j,targetElementWidth:P,targetElementHeight:R,type:h});ce.style.visibility="hidden",Z.style.visibility="hidden",W.style.visibility="hidden";var le=null,de=function(e){var t=!e,n=D.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)&&U()};return n&&!0===n.auto_dismiss&&(le=setTimeout((function(){return de()}),f+n.duration)),ce.style.visibility="visible",Z.style.visibility="visible",W.style.visibility="visible",W.childElementCount>0&&(W.children[0].style.visibility="visible"),b&&ce.addEventListener("click",de),Z.addEventListener("click",de),S&&("TOP"===k?window.scrollTo({top:ie-ee,behavior:"smooth"}):"BOTTOM"===k&&window.scrollTo({top:Math.min(document.scrollingElement.scrollHeight,ie+ee),behavior:"smooth"})),o&&o(),de}console.warn("Failed to identify the right place for text")}else console.warn("Can't show on an invisible element: ",A)}}else console.warn("Element not found with id or path: ",A)}var Zn=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},Kn=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 ")},$n=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===u||n===p?l=-1!==i.findIndex((function(e){return!0===e.is_selected})):n===f?l=a.length>0:n===h&&(l=c>0);l?(t.className="apx-ba",t.disabled=!1):(t.className="apx-bi",t.disabled=!0)},Qn=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},eo=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,m=e.choices,v=void 0===m?[]:m,g=e.rating,b=void 0===g?{rating_type:"classic",bg_color:"#D9DCDE",selected_bg_color:"#109B15"}:g,y=e.selected_rating,x=void 0===y?-1:y,w=e.text_answer,_=void 0===w?"":w,E=e.text_config?e.text_config:{maximum_characters:150,background_color:"#ccc",placeholder:"",text_color:"#000",placeholder_text_color:"#00000087"},k=!1,C=[];if(d===p||d===u){var T=Qn(E);T.style.visibility="hidden";var O=function(e,t){e.style.color=t?s:c},A=function(e,t){var n=t?r:a;"filled"===l?e.style.background=n:"outline"===l&&(e.style.borderColor=n)};v.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===p?"radio":"checkbox",r.checked=t.is_selected;var a=document.createElement("span");a.className="apx-i",i.appendChild(r),i.appendChild(a),A(i,t.is_selected),O(i,t.is_selected),t.is_other&&(k=!0,T.addEventListener("input",(function(e){t.other_answer=e.target.value}))),t.is_selected&&t.is_other&&(T.style.visibility="visible",t.other_answer&&(T.value=t.other_answer)),d===u?r.onchange=function(o){var r=o.target.checked;t.is_selected=r,O(i,r),A(i,r),t.is_other&&(T.style.visibility=r?"visible":"hidden"),$n(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;v[n].is_selected=o,O(e.parentNode,o),A(e.parentNode,o),t.is_other&&(T.style.visibility=o?"visible":"hidden")})),$n(e,n)}),C.push(i)})),k&&C.push(T)}else if(d===f&&null!==E){var L=E.example,S=E.example_text_color;if(""!==L&&""!==L.trim()){var N=document.createElement("span");N.innerHTML="Example: "+L,N.style.color=S,N.style.marginTop="12px",N.style.fontFamily="inherit",N.style.fontSize="15px",C.push(N)}var M=Qn(E);M.addEventListener("input",(function(t){e.text_answer=t.target.value,t.target.value&&t.target.value.length>0&&(e.is_answered=!0),$n(e,n)})),""!==_&&""!==_.trim()&&(M.innerText=_),C.push(M)}else if(d===h){var D=b.rating_type,I=b.bg_color,B=b.selected_bg_color,z=document.createElement("div");z.style="display:flex;justify-content:space-between;gap:5px;padding-top:8px;padding-bottom:8px;overflow:hidden";var H="",j=[],F="",P="cursor:pointer;font-size:30px;width:40px;height:40px;";if("classic"===D)j=["&#128534;","&#128533;","&#128566;","&#128516;","&#128525;"],H="opacity:1 !important;",F="".concat(P,"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"===D)j=["&#128544;","&#128577;","&#128528;","&#128512;","&#129321;"],H="filter:grayscale(0%) !important",F="".concat(P,"filter:grayscale(100%)");else if("star"===D){for(var q=0;q<5;q++)j.push("&#11088;");H="filter:grayscale(0%) !important",F="".concat(P,"filter:grayscale(100%)")}else j=["1","2","3","4","5"],H="background:".concat(B," !important;color:white !important;"),F="display:flex;justify-content:center;align-items:center;color:#646A6E;font-size:20px;width:40px;height:40px;background-color:".concat(I,";box-shadow:0px 0.54801px 1.64403px 0.54801px rgba(0, 0, 0, 0.11)"),z.style.marginTop="12px";z.innerHTML="<style>.apx-rsel{".concat(H,"}.apx-r{").concat(F,"}</style>");for(var R=function(e){return"star"!==D?e+1===x:e+1<=x},V=[],U=0;U<5;U++){var W=document.createElement("div");W.innerHTML="".concat("num"===D?"":"&nbsp;").concat(j[U]),R(U)&&W.classList.add("apx-rsel"),W.classList.add("apx-r"),V.push(W)}V.forEach((function(t,o){t.addEventListener("click",(function(){if(t.classList.add("apx-rsel"),e.selected_rating=o+1,e.is_answered=!0,$n(e,n),"star"!==D){for(var i=0;i<o;i++)V[i].classList.remove("apx-rsel");for(var r=o+1;r<5;r++)V[r].classList.remove("apx-rsel")}else{for(var a=0;a<o+1;a++)V[a].classList.add("apx-rsel");for(var s=o+1;s<5;s++)V[s].classList.remove("apx-rsel")}})),z.appendChild(t)})),C.push(z)}var Y=document.createElement("div");Y.style.padding="14px",Y.style.display="flex",Y.style.flexDirection="column",Y.style.minHeight="340px";var X=document.createElement("style"),G="";d===f?G=Kn(E.placeholder_text_color):d!==p&&d!==u||(G=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: 16px;\n width: 16px;\n border: 1px solid ").concat(i,";\n background-color: white;\n border-radius: ").concat(e===p?"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===p?3:1,"px;\n left: ").concat(e===p?3:4,"px;\n width: ").concat(e===p?10:4,"px;\n height: ").concat(e===p?10:8,"px;\n border-radius: ").concat(e===p?"50%":"0",";\n background: ").concat(e===p?o:"transparent",";\n border: ").concat(e===p?"none":"solid white",";\n border-width: ").concat(e===p?"unset":"0 3px 3px 0",";\n -webkit-transform: ").concat(e===p?"unset":"rotate(45deg)",";\n -ms-transform: ").concat(e===p?"unset":"rotate(45deg)",";\n transform: ").concat(e===p?"unset":"rotate(45deg)",";\n }\n ")}(d,r,a,s,c,l),k&&(G+=Kn(E.placeholder_text_color))),X.innerHTML=G.replaceAll("\n","").replace(/[\s]{2,999}/g,""),Y.appendChild(X);var J=document.createElement("span");return J.innerText=e.title,J.style="margin-bottom:12px;color:".concat(o,";background-color:").concat(i,";font-size:16px;font-weight:600"),Y.appendChild(J),C.forEach((function(e){return Y.appendChild(e)})),Y},to=function(e,t,n,o,i){var r=function(e,t,n){var o=e.cancel_button_color,i=e.previous_button_color,r=document.createElement("button"),a=document.createElement("button");r.disabled=0===t,r.setAttribute("type","button"),r.className="apx-b apx-pr",r.innerHTML="<style>.apx-pr::before{content:'\\2190';font-size:22px;color:".concat(i).concat(0===t?"54":"",";}.apx-pr{cursor:").concat(0===t?"no-drop":"pointer",";margin-top:-6px}</style>"),a.className="apx-b apx-cb",a.setAttribute("type","button"),a.innerHTML="<style>.apx-cb::before{content:'\\0000d7';font-size:26px;color:".concat(o,";}</style>");var s=document.createElement("div");s.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="".concat(t+1,"/").concat(n),s.appendChild(r),s.appendChild(c),s.appendChild(a),{prevButton:r,closeButton:a,headerNode:s}}(e,o,i),a=r.headerNode,s=r.prevButton,c=r.closeButton,l=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"),$n(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),d=l.skipButton,p=l.submitButton,u=l.footerNode,h=eo(n,t,p),f=document.createElement("div");f.className="apx-sq";var m=document.createElement("style");return m.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}",f.appendChild(m),f.appendChild(a),f.appendChild(h),{questionRoot:f,footerNode:u,prevButton:s,closeButton:c,skipButton:d,submitButton:p}},no=window.ApxorLogger,oo=function e(t){var n=this;a(this,e),c(this,"AzHn",(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},io=function e(t){var n=this;a(this,e),c(this,"AzHn",(function(){n.is_answered=!1,n.text_answer="",n.selected_rating=-1,n.choices.forEach((function(e){return e.AzHn()}))}));var o=t.id,i=t.answer_mode,r=t.title,s=t.is_required,d=t.submit_text,m=t.choices,v=void 0===m?[]:m,g=t.text_config,b=void 0===g?null:g,y=t.randomize_choices,x=void 0!==y&&y,w=t.response_cfg,_=void 0===w?{}:w;if(!o||!i||!r)throw new Error("Invalid question");var E=-1;switch(i){case"single_choice":E=p;break;case"multi_choice":E=u;break;case"text":E=f;break;case"rating":E=h;break;default:E=-1}if(this.answerMode=E,this.id=o,this.is_required=s,this.submit_text=d,this.randomize_choices=x,this.response_cfg=_,this.text_config=b,this.title=r,this.is_answered=!1,this.selected_rating=-1,this.choices=[],this.answerMode===p||this.answerMode===u){for(var k,C=[],T=0;T<v.length;T++){var O=new oo(v[T]);O.is_other?C.push(O):this.choices.push(O)}x&&(this.choices=l(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)}},ro=function e(){var n=this;a(this,e),c(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,O=o.option_text_color_active,A=void 0===O?"#002845":O,L=o.option_text_color_inactive,S=void 0===L?"#002845":L,N=o.option_bg_color_active,M=void 0===N?"#FFF":N,D=o.option_bg_color_inactive,I=void 0===D?"#FFF":D,B=o.question_background_color,z=void 0===B?"#FFF":B,H=o.success_message_bg_color,j=void 0===H?"#109B15":H,F=o.success_message_text_color,P=void 0===F?"#002845":F,q=o.skip_text_color,R=void 0===q?"#017DFD":q,V=o.cancel_button_color,U=void 0===V?"#000":V,W=o.previous_button_color,Y=void 0===W?"#000":W,X=o.progress_bar_color,G=void 0===X?"#017DFD":X,J=o.submit_text_color,Z=void 0===J?"#FFF":J,K=o.width,$=void 0===K?350:K,Q=o.min_height,ee=void 0===Q?40:Q,te=o.position,ne=void 0===te?"center":te,oe=o.dim_background,ie=void 0===oe||oe,re=o.dim_bg_color,ae=void 0===re?"#313131":re,se=o.dim_bg_opacity,ce=void 0===se?.54:se;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.answered_questions=[],n.width=$,n.min_height=ee,n.layoutConfig={show_progress_bar:c,skip_text_color:R,cancel_button_color:U,previous_button_color:Y,progress_bar_color:G,submit_text_color:Z,submit_active_color:_,submit_inactive_color:k,success_message_bg_color:j,success_message_text_color:P,position:ne,dim_background:ie,dim_bg_color:ae,dim_bg_opacity:ce},n.questionConfig={question_text_color:x,question_background_color:z,option_bg_color_active:M,option_bg_color_inactive:I,option_text_color_active:A,option_text_color_inactive:S,option_bg_type:T},a&&(n.dialog_config=a);for(var le=0;le<u.length;le++)try{n.questions.push(new io(u[le])),n.answered_questions.push(-1)}catch(e){return no.error("Failed to parse Q",le,e),!1}return!(n.questions.length<1)||(n.isValid=!1,!1)})),c(this,"eiUc",(function(e,t){n.isValid&&setTimeout((function(){try{var o=window.ApxorRTM;if(null!==o.currentAction&&void 0!==o.currentAction)return void no.error("An action is already being shown.");n.startTime=Date.now();var i=Zn(n.width,n.min_height,t,n.layoutConfig);if(n.bodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden",n.lLZJ("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:11px;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.lLZJ("apx_survey_dialog_yes_clicked"),d.style.minHeight=n.min_height+"%",n.AeEK(i,!0)},document.getElementById("apx-dn").onclick=function(){n.lLZJ("apx_survey_dialog_no_clicked"),n.olrj(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.lLZJ("apx_survey_dialog_launched")};if(""!==s&&c>0&&l>0){var t=document.getElementById("apx_icon");t.onload=function(){e()},t.onerror=function(){n.lLZJ("apx_survey_dialog_icon_failed"),n.olrj(i)}}else e()}),100)}else n.AeEK(i);e&&e((function(){return n.olrj(i)}))}catch(e){no.error(e)}}),n.delay)})),c(this,"AeEK",(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.ipJT(e,0),t||setTimeout((function(){e.children[0].classList.toggle("open")}),100)})),c(this,"ipJT",(function(e,t){if(!(t>=n.questions.length)){var o=n.questions[t],i=to(n.layoutConfig,n.questionConfig,o,t,n.questions.length),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(){t-1<0||(n.gMIr(t),n.ipJT(e,t-1))}),c&&c.addEventListener("click",(function(){n.lLZJ("apx_survey_close_clicked",{where:"question "+(t+1)}),n.gMIr(t),n.TqYW(e,!1)})),d&&(d.onclick=function(){n.is_response_based_survey||(t===n.questions.length-1?n.TqYW(e,!0):(n.gMIr(t),n.ipJT(e,t+1)))}),u&&(u.onclick=function(){t+1>=n.questions.length||(n.lLZJ("apx_survey_skip_clicked",{where:"question "+(t+1)}),n.gMIr(t),n.ipJT(e,t+1))})}})),c(this,"gMIr",(function(e){if(-1===n.answered_questions[e]){var t=n.sFMB(e);t.answers.length>0&&(n.lLZJ("apx_survey_".concat(n.questions[e].title),{answers:t.answerTexts}),n.answered_questions[e]=1)}})),c(this,"lLZJ",(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))})),c(this,"sFMB",(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,m=t.is_answered,v=void 0!==m&&m,g=t.text_config,b=void 0===g?null:g;switch(i){case p:case u: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 f:v&&""!==d&&""!==d.trim()&&null!==b&&(o.answers.push(b.id),o.answerTexts.push(d),o.textBasedQuestionAnswers.push({id:b.id,answer:d}));break;case h:-1!==c&&(o.answers.push(c),o.answerTexts.push(c))}return o})),c(this,"olrj",(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,"oeuu",(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=(i=n.success_message,r=n.layoutConfig,a=r.success_message_bg_color,s=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:white;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(a,';">&#10003;</span>\n <span style="font-size: 17px;margin-top:15px;color:').concat(s,'">').concat(i,"</span>\n "),c);t.appendChild(l),setTimeout((function(){n.olrj(e)}),n.auto_hide_message)})),c(this,"TqYW",(function(e,o){o?n.show_success_message&&n.oeuu(e):n.olrj(e);var i={survey_id:n.configId,name:n.name,responses:[]};if(n.questions.forEach((function(e,t){var o=n.sFMB(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();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=-1,i.user_attributes=a.getUserAttributes(),i.session_attributes=a.getSessionAttributes(),n.hMrb(i)}o&&n.lLZJ("apx_survey_completed"),n.questions.forEach((function(e,t){e.AzHn(),n.answered_questions[t]=-1})),n.startTime=-1,n.bodyOverflow=""})),c(this,"hMrb",(function(e){fetch("https://server.apxor.com/v2/api/survey-response?appId=<app-id>",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})})),this.isValid=!0,this.dialog_config=null},ao=function e(){a(this,e),c(this,"parse",(function(e,t,n){var o=new ro;return o.initialize(e,t,n)?o:null}))},so=window.ApxorLogger;var co=function e(){var n=this;a(this,e),c(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?50:d,u=l.height,h=void 0===u?60: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},""!=n.htmlConfig.data||(n.isValid=!1,!1)})),c(this,"qVzk",(function(){if(!n.isValid)return!1;setTimeout((function(){try{To.getInstance().updateCount(n.configId);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:100%;height:100%;position:fixed;top:0;left:0;background-color:".concat(o?"#31313185":"transparent",";\n display:flex;justify-content:center;align-items:center;border-radius:3px;z-index:99999999\n }\n #apx-oly > * {font-family:inherit;box-sizing:unset}\n .apx-dlg-c {\n width:").concat(e,"%;height:").concat(t,"%;background:white;z-index:99999999;opacity:0;transition:all .5s cubic-bezier(.96,.23,.07,.8);position:relative;visibility:hidden;\n top:-15px;border-radius:3px;margin:20px;overflow:hidden\n }\n .apx-dlg-c.open{opacity:1;visibility:visible;top:0}\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.uMkv(e)}),setTimeout((function(){e.children[0].classList.toggle("open"),e.children[0].innerHTML=n.htmlConfig.data,n.uGnf("inapp_shown"),e.querySelectorAll("a").forEach((function(t){t.onclick=function(){return n.pMfI(e,t)}}))}),100)}catch(e){so.error(e)}}),n.delay)})),c(this,"pMfI",(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.uGnf("walk_through_cancelled");break;case"xclose":n.uGnf("InAppXIconClicked");break;case"close":r=i.replace(/(.*?)buttonName=([^\&]*).*?$/,"$2"),n.uGnf(m(""===r?"Button":r));break;case"dl_url":var s=i.replace(/(.*?)uri=([^\&]*).*?$/,"$2"),c=i.replace(/(.*?)external=([^\&]*).*?$/,"$2");r=i.replace(/(.*?)buttonName=([^\&]*).*?$/,"$2"),n.uGnf(m(""===r?"Button":r)),"true"==c?window.open(s,"_blank"):t.logClientEvent("REDIRECT",{url:s})}return n.uMkv(e,a),!1}return!0})),c(this,"uMkv",(function(e,t){"cancel"!==t&&n.uGnf("inapp_dismissed"),e.children[0].classList.toggle("open"),setTimeout((function(){e.parentNode.removeChild(e)}),300)})),c(this,"uGnf",(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},lo=function e(){a(this,e),c(this,"parse",(function(e,t,n){var o=new co;return o.initialize(e,t,n)?o:null}))},po=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)}},uo=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 ho="<b>View Selection Mode: ON",fo="<b>View Selection Mode: OFF</b>",mo="https://sse.apxor.com/v1/api/",vo=mo+"layout?appId=<aid>",go=mo+"sse-ui-config?appId=<aid>",bo=mo+"art-config?appId=<aid>&deviceId=<uid>",yo="https://server.apxor.com/v4/frontendapi/web/test-devices",xo=yo+"?appId=<aid>",wo=yo+"/<uid>?appId=<aid>",_o=function e(){var n=this;a(this,e),c(this,"sgRI",null),c(this,"mGOk",null),c(this,"Fgtg",null),c(this,"XDla",null),c(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;if(s===e&&Date.now()<=c){var l=document.createElement("span");if(l.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",l.innerHTML=ho,n.mGOk=l,document.body.appendChild(l),n.sgRI=document.createElement("style"),n.sgRI.innerHTML=".apx-highlight{height:auto;z-index:9999999999;outline: 2px solid red;cursor:default}",document.body.appendChild(n.sgRI),n.isSelectionMode=!1,n.testDeviceData=t.getController().getFromStorage("_apx_td",!0),n.testDeviceData){var d=n.testDeviceData,p=d.name,u=void 0===p?"":p,h=d.id,f=void 0===h?"":h;if(""!==u&&""!==f){n.NaGK("select","".concat(u," - ").concat(f),f);var m=new EventSource(go.replace("<aid>",e)),v=new EventSource(bo.replace("<aid>",e).replace("<uid>",f));m.onmessage=v.onmessage=function(e){e&&e.data&&"{}"!==e.data&&n.GeNP(o,e.data)}}}n.rWFp()}}catch(e){}}})),c(this,"vxfy",(function(){n.mGOk.parentNode.removeChild(n.mGOk),n.sgRI.parentNode.removeChild(n.sgRI)})),c(this,"GeNP",(function(e,o){try{n.XDla.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.BNar("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)}})),c(this,"rWFp",(function(){var e=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(e?"none":"block",'">Add as test device</button>\n<button class="apx-b" id="apx-r" style="display:').concat(e?"block":"none",'">Remove as test device</button>\n<button class="apx-b" id="apx-ev" style="display:').concat(e&&n.isSelectionMode?"none":e?"block":"none",'">Enable view selection</button>\n<button class="apx-b" id="apx-dv" style="display:').concat(e&&n.isSelectionMode?"block":"none",'">Disable view selection</button>\n</div>\n '),i=document.createElement("div");i.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",i.setAttribute("id","apx-wr"),i.innerHTML=o,document.body.appendChild(i),n.XDla=i;var r=document.getElementById("apx-bh"),a=function(){i.style.opacity=.5,r.style.display="none"},s=setTimeout(a,3e3);i.addEventListener("mouseover",(function(){i.style.opacity=1,clearTimeout(s),r.style.display="flex"})),i.addEventListener("mouseout",(function(){s=setTimeout(a,3e3)}));var c=document.getElementById("apx-a"),l=document.getElementById("apx-r"),d=document.getElementById("apx-ev"),p=document.getElementById("apx-dv");c.onclick=function(){return n.QADo()},l.onclick=function(){fetch(wo.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,c.style.display="block",l.style.display=d.style.display=p.style.display="none",n.isSelectionMode&&n.zclU())})).catch((function(e){return console.error(e)}))},d.onclick=function(){n.isSelectionMode=!0,window.addEventListener("mouseover",po,!0),window.addEventListener("mouseout",uo,!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.jsHj(e,!0),o=n.ckyv(e,!0);n.NaGK("view",location.href,t+"___"+o)}))},window.addEventListener("click",n.clickListener,!0),n.aajt(!1),d.style.display="none",p.style.display="block"};var u=function(){n.zclU(),p.style.display="none",d.style.display="block"};p.onclick=u,n.XDla.addEventListener("preview",u),n.XDla.addEventListener("added",(function(){c.style.display="none",l.style.display="block",r.style.display="flex",d.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}(i)})),c(this,"zclU",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fo;if(n.isSelectionMode){window.removeEventListener("mouseover",po,!0),window.removeEventListener("mouseout",uo,!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.aajt(!0,e),n.isSelectionMode=!1}})),c(this,"aajt",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fo;n.mGOk.style.visibility="visible",e?(n.mGOk.innerHTML=t,n.mGOk.style.opacity=1):(n.mGOk.innerHTML=ho,n.mGOk.style.opacity=1),setTimeout((function(){n.mGOk.style.opacity=0,n.mGOk.style.visibility="hidden"}),1e3)})),c(this,"QADo",(function(){var e=w(500,20,{}),o=e.children[0];o.style.flex="0 1 auto",o.style.maxHeight="calc(100% - 96px)",o.style.display="flex",o.style.flexDirection="column";var i=t.getController().getDevInfo(),r=t.getController().getUserAttributes().apx_browser,a=i.hardware_model,s=i.os_version,c=i.id,l="\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(a," - ").concat(s,'</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(r,'</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 ');e.style.visibility="hidden",o.style.visibility="hidden",o.innerHTML=l;var d,p,u=document.getElementById("apx-ii");n.testDeviceData&&(u.value=null!==(d=null===(p=n.testDeviceData)||void 0===p?void 0:p.name)&&void 0!==d?d:"");u.onfocus=function(){u.parentNode.classList.add("apx-iid-f"),u.parentNode.parentNode.children[0].classList.add("apx-il-f")},u.onblur=function(){u.parentNode.classList.remove("apx-iid-f"),u.parentNode.parentNode.children[0].classList.remove("apx-il-f")},u.oninput=function(){""!==u.value.trim()?f.removeAttribute("disabled"):f.setAttribute("disabled","")},setTimeout((function(){e.style.visibility="visible",o.style.visibility="visible",o.classList.toggle("open"),u.parentNode.parentNode.children[0].classList.add("apx-il-f")}),100);var h=function(){o.classList.toggle("open"),setTimeout((function(){e.parentNode.removeChild(e)}),400)};document.getElementById("apx-bc").onclick=function(){h()};var f=document.getElementById("apx-bd");f.onclick=function(){o.children[1].classList.add("apx-loading"),t.getController().makePostRequest(xo.replace("<aid>",t.getSiteId()),{model:a,id:c,nick_name:u.value},{apx_web_key:"WTCKFAIVAJKYJA3HCV80WIKZU98R9NJG"},(function(){var e={id:c,name:u.value};t.getController().persistToStorage("_apx_td",e,!0),n.testDeviceData=e,n.NaGK("select","".concat(u.value," - ").concat(c),c,(function(){o.children[1].classList.remove("apx-loading"),n.XDla.dispatchEvent(new CustomEvent("added"))})),h()}),(function(){}))}})),c(this,"NaGK",(function(e,n,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},a=t.getController().getDevInfo(),s={device_info:{id:a.id,hardware_model:a.hardware_model,os_version:a.os_version,width:a.dimensions.width,height:a.dimensions.height},screen:{image:e,navigation:n,orientation:o},layout:[]};t.getController().makePostRequest(vo.replace("<aid>",t.getSiteId()),s,{},i,r)})),c(this,"jsHj",(function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)return"";for(var o=[],i=e;i;){var r=n.NJsw(i,!!t,i===e);if(!r)break;if(o.push(r),r.optimized)break;i=i.parentNode}return o.reverse(),o.join(" > ")})),c(this,"NJsw",(function(e,t,n){if(e.nodeType!==Node.ELEMENT_NODE)return null;var o=e.getAttribute("id");if(t){if(o)return new Eo(c(o),!0);var i=e.nodeName.toLowerCase();if("body"===i||"head"===i||"html"===i)return new Eo(e.nodeName.toLowerCase(),!0)}var r=e.nodeName.toLowerCase();if(o)return new Eo(r.toLowerCase()+c(o),!0);var a=e.parentNode;if(!a||a.nodeType===Node.DOCUMENT_NODE)return new Eo(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 Eo(_,!1)})),c(this,"ckyv",(function(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";for(var o=[],i=e;i;){var r=n.dbLR(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("/")})),c(this,"dbLR",(function(e,t){var o,i=n.NRQV(e);if(-1===i)return null;switch(e.nodeType){case Node.ELEMENT_NODE:if(t&&e.getAttribute("id"))return new Eo('//*[@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 Eo(o,e.nodeType===Node.DOCUMENT_NODE)})),c(this,"NRQV",(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}))},Eo=function(e,t){this.value=e,this.optimized=t||!1};Eo.prototype={toString:function(){return this.value}};var ko=window.ApxorLogger,Co=new function e(){var n=this;a(this,e),c(this,"version",111),c(this,"jImw",{}),c(this,"isShowingAction",!1),c(this,"currentAction",null),c(this,"DPFa",new ao),c(this,"PcjJ",new lo),c(this,"gLgE",new _o),c(this,"init",(function(){var e=t.getController(),o=To.getInstance(),i=t.getSiteId(),r=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")}}(i,t.getClientId()),a=r.rtaValidateUrl,s=r.rtaSyncUrl,c=r.surveysValidateUrl,l=r.surveysSyncUrl;o.initialize(),o.fetch(0,a,s,n.handleResponse),o.fetch(1,c,l,n.handleResponse),e.registerForEvent("IN_LINE",n.IApo),e.registerForEvent("IN_APP",n.Gfnr),e.registerForEvent("SURVEY",n.woUW),e.registerForEvent("ONBOARDING",n.NUag),n.gLgE.init(i,n),ko.debug("Registered for events")})),c(this,"show",(function(e,t,o,i){try{if(null!==n.currentAction&&void 0!==n.currentAction)return void ko.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(){n.isShowingAction=!1,n.currentAction=null,n.logActionEvent("inline_dismissed",o,i)},l=r.display_type,d={configId:o,configName:i};"inline"===l?n.currentAction=function(e,t,n,o,i,r,a){var s=Array.isArray(t)&&t.length>0,c=e.delay,l=e.dimmed_background,d=e.view_id;return Dn=new Bn.Tour({defaultStepOptions:{},useModalOverlay:s||l}),setTimeout((function(){var n=document.getElementById(d);if(!n)try{n=document.querySelector(d)}catch(e){}if(n||(n=g(d)),!n)return console.warn("Element not found with id: ",d),void(i.currentAction=null);try{var c=n.getBoundingClientRect();if(0===c.width||0===c.height)return console.warn("Width and height are 0 for: ",d,". Can't show"),void(i.currentAction=null);if(c.top>=window.innerHeight)return console.warn("Element ",d," not in viewport. Can't show"),void(i.currentAction=null)}catch(e){return i.isShowingAction=!1,void(i.currentAction=null)}if(s?t.forEach((function(e,t){var n=e.ui;qn(n,o,i,r,a,t)})):qn(e,o,i,r,a),i.isShowingAction)window.ApxorLogger.error("An action already being shown");else try{Dn.start(),i.isShowingAction=!0}catch(e){i.isShowingAction=!1,i.currentAction=null,console.error(e)}}),c),!0===n.auto_dismiss&&setTimeout((function(){try{Dn.complete()}catch(e){i.isShowingAction=!1,i.currentAction=null,console.error(e)}}),c+n.duration),Dn.complete}(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=Jn(e,t,n,o,i);r(s)}else setTimeout((function(){if(null===a.currentAction||void 0===a.currentAction){var s=Jn(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})):ko.error("Unknown type",l)}catch(e){n.currentAction=null,n.isShowingAction=!1,window.ApxorLogger.error(e)}})),c(this,"logActionEvent",(function(e,n,o){t.logEvent(e,{id:n,message_name:o})})),c(this,"logClientEvent",(function(e,n){t.logClientEvent(e,n)})),c(this,"updateCount",(function(e){To.getInstance().updateCount(e)})),c(this,"MXCg",(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){ko.debug("Fetched config from server",e),n.BNar(e,t),To.getInstance().parse(t)})),c(this,"BNar",(function(e,t){if(v(t)&&v(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.DPFa.parse(a,s,l):"IN_APP"===c&&(l=n.PcjJ.parse(a,s,l)),null!==l?n.jImw[a]={ui:l,uis:r.uis,terminationConfig:r.terminate_info,name:s}:console.warn("Failed to parse the config",a)}ko.debug("Configs: ",n.jImw)}})),c(this,"IApo",(function(e){if(v(e.additional_info)){var t=e.additional_info.uuid;if(n.jImw[t]){var o=n.jImw[t],i=o.ui,r=o.terminationConfig,a=o.name;n.show(JSON.stringify(i),r.auto_dismiss?r.duration:-1,t,a)}}})),c(this,"Gfnr",(function(e){if(v(e.additional_info)){var t=e.additional_info.uuid;if(n.jImw[t])n.jImw[t].ui.qVzk()}})),c(this,"woUW",(function(e){if(v(e.additional_info)){var t=e.additional_info.uuid;if(n.jImw[t]){n.jImw[t].ui.eiUc((function(e){n.updateCount(t),n.isShowingAction=!0,n.currentAction=e}),(function(){n.isShowingAction=!1,n.currentAction=null}))}}})),c(this,"NUag",(function(e){}))};window.ApxorRTM=Co;var To=new(function(){function e(){a(this,e)}var t,o,i;return t=e,(o=[{key:"getInstance",value:function(){return(n||window["apxor-qe"]).getInstance()}}])&&s(t.prototype,o),i&&s(t,i),e}());try{void 0===e&&null===e||(e.default=Co,module.exports=e.default)}catch(e){}e.ceWrapper=To,e.default=Co,Object.defineProperty(e,"__esModule",{value:!0})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apxor-rtm",
3
- "version": "1.0.7",
3
+ "version": "1.1.1",
4
4
  "author": "Uma Sankar Yedida <umasankar.yedida@apxor.com> (https://www.apxor.com)",
5
5
  "contributors": [
6
6
  {