New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@thatsnu/browser-sdk

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thatsnu/browser-sdk - npm Package Compare versions

Comparing version

to
1.0.8

coverage/clover.xml

5

dist/app.d.ts

@@ -13,7 +13,8 @@ import { Cash } from 'cash-dom';

};
constructor(params: AppParams);
constructor(params?: AppParams);
private validate;
generate(): void;
private getOptionsFromConfig;
private getUserClickedItems;
private getOptionsFromParentElement;
private getOptionsFromParentAttributes;
private getIndicatorSettings;

@@ -20,0 +21,0 @@ private onElementClicked;

6

dist/consts.d.ts

@@ -1,2 +0,2 @@

export declare const USER_WATCHED_LEVELS_STORAGE_KEY = "usersWatches";
export declare const USER_CLICKED_ITEMS_STORAGE_KEY = "usersWatches";
export declare const ATTRIBUTE_PREFIX = "data-tnu";

@@ -29,2 +29,6 @@ export declare const INPUT_DOM_ATTRIBUTES: {

};
export declare const DEFAULT_INDICATOR_COLOR = "#462a68";
export declare const INDICATOR_ERRORS: {
ITEM_EXPIRED: number;
};
//# sourceMappingURL=consts.d.ts.map

@@ -1,2 +0,2 @@

!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(this,(()=>(()=>{var t={216:t=>{!function(){"use strict";var e={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",maxlength:"maxLength",tabindex:"tabIndex",colspan:"colSpan",rowspan:"rowSpan",usemap:"useMap"};function n(t,e){try{return t(e)}catch(t){return e}}var r=document,i=window,o=r.documentElement,s=r.createElement.bind(r),a=s("div"),u=s("table"),c=s("tbody"),l=s("tr"),f=Array.isArray,d=Array.prototype,p=d.concat,h=d.filter,v=d.indexOf,g=d.map,m=d.push,A=d.slice,E=d.some,T=d.splice,y=/^#(?:[\w-]|\\.|[^\x00-\xa0])*$/,_=/^\.(?:[\w-]|\\.|[^\x00-\xa0])*$/,b=/<.+>/,S=/^\w+$/;function I(t,e){var n,r=!!(n=e)&&11===n.nodeType;return t&&(r||D(e)||U(e))?!r&&_.test(t)?e.getElementsByClassName(t.slice(1)):!r&&S.test(t)?e.getElementsByTagName(t):e.querySelectorAll(t):[]}var C=function(){function t(t,e){if(t){if(R(t))return t;var n=t;if(B(t)){var o=(R(e)?e[0]:e)||r;if(!(n=y.test(t)&&"getElementById"in o?o.getElementById(t.slice(1)):b.test(t)?Lt(t):I(t,o)))return}else if(j(t))return this.ready(t);(n.nodeType||n===i)&&(n=[n]),this.length=n.length;for(var s=0,a=this.length;s<a;s++)this[s]=n[s]}}return t.prototype.init=function(e,n){return new t(e,n)},t}(),x=C.prototype,O=x.init;O.fn=O.prototype=x,x.length=0,x.splice=T,"function"==typeof Symbol&&(x[Symbol.iterator]=d[Symbol.iterator]),x.map=function(t){return O(p.apply([],g.call(this,(function(e,n){return t.call(e,n,e)}))))},x.slice=function(t,e){return O(A.call(this,t,e))};var N=/-([a-z])/g;function L(t){return t.replace(N,(function(t,e){return e.toUpperCase()}))}function w(t,e){var n=t&&(t.matches||t.webkitMatchesSelector||t.msMatchesSelector);return!!n&&!!e&&n.call(t,e)}function R(t){return t instanceof C}function M(t){return!!t&&t===t.window}function D(t){return!!t&&9===t.nodeType}function U(t){return!!t&&1===t.nodeType}function P(t){return"boolean"==typeof t}function j(t){return"function"==typeof t}function B(t){return"string"==typeof t}function k(t){return void 0===t}function F(t){return null===t}function $(t){return!isNaN(parseFloat(t))&&isFinite(t)}function W(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function Y(t,e,n){if(n){for(var r=t.length;r--;)if(!1===e.call(t[r],r,t[r]))return t}else if(W(t))for(var i=Object.keys(t),o=(r=0,i.length);r<o;r++){var s=i[r];if(!1===e.call(t[s],s,t[s]))return t}else for(r=0,o=t.length;r<o;r++)if(!1===e.call(t[r],r,t[r]))return t;return t}function H(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=!!P(t[0])&&t.shift(),r=t.shift(),i=t.length;if(!r)return{};if(!i)return H(n,O,r);for(var o=0;o<i;o++){var s=t[o];for(var a in s)n&&(f(s[a])||W(s[a]))?(r[a]&&r[a].constructor===s[a].constructor||(r[a]=new s[a].constructor),H(n,r[a],s[a])):r[a]=s[a]}return r}function z(t){return B(t)?function(e,n){return w(n,t)}:j(t)?t:R(t)?function(e,n){return t.is(n)}:t?function(e,n){return n===t}:function(){return!1}}function V(t,e){return e?t.filter(e):t}O.guid=1,O.isWindow=M,O.isFunction=j,O.isArray=f,O.isNumeric=$,O.isPlainObject=W,x.get=function(t){return k(t)?A.call(this):this[(t=Number(t))<0?t+this.length:t]},x.eq=function(t){return O(this.get(t))},x.first=function(){return this.eq(0)},x.last=function(){return this.eq(-1)},O.each=Y,x.each=function(t){return Y(this,t)},x.prop=function(t,n){if(t){if(B(t))return t=e[t]||t,arguments.length<2?this[0]&&this[0][t]:this.each((function(e,r){r[t]=n}));for(var r in t)this.prop(r,t[r]);return this}},x.removeProp=function(t){return this.each((function(n,r){delete r[e[t]||t]}))},O.extend=H,x.extend=function(t){return H(x,t)},x.filter=function(t){var e=z(t);return O(h.call(this,(function(t,n){return e.call(t,n,t)})))};var J=/\S+/g;function X(t){return B(t)&&t.match(J)||[]}function G(t,e,n,r){for(var i=[],o=j(e),s=r&&z(r),a=0,u=t.length;a<u;a++)if(o){var c=e(t[a]);c.length&&m.apply(i,c)}else for(var l=t[a][e];!(null==l||r&&s(-1,l));)i.push(l),l=n?l[e]:null;return i}function K(t){return t.length>1?h.call(t,(function(t,e,n){return v.call(n,t)===e})):t}function q(t,e,n){if(U(t)){var r=i.getComputedStyle(t,null);return n?r.getPropertyValue(e)||void 0:r[e]||t.style[e]}}function Z(t,e){return parseInt(q(t,e),10)||0}x.hasClass=function(t){return!!t&&E.call(this,(function(e){return U(e)&&e.classList.contains(t)}))},x.removeAttr=function(t){var e=X(t);return this.each((function(t,n){U(n)&&Y(e,(function(t,e){n.removeAttribute(e)}))}))},x.attr=function(t,e){if(t){if(B(t)){if(arguments.length<2){if(!this[0]||!U(this[0]))return;var n=this[0].getAttribute(t);return F(n)?void 0:n}return k(e)?this:F(e)?this.removeAttr(t):this.each((function(n,r){U(r)&&r.setAttribute(t,e)}))}for(var r in t)this.attr(r,t[r]);return this}},x.toggleClass=function(t,e){var n=X(t),r=!k(e);return this.each((function(t,i){U(i)&&Y(n,(function(t,n){r?e?i.classList.add(n):i.classList.remove(n):i.classList.toggle(n)}))}))},x.addClass=function(t){return this.toggleClass(t,!0)},x.removeClass=function(t){return arguments.length?this.toggleClass(t,!1):this.attr("class","")},O.unique=K,x.add=function(t,e){return O(K(this.get().concat(O(t,e).get())))};var Q=/^--/;function tt(t){return Q.test(t)}var et={},nt=a.style,rt=["webkit","moz","ms"];function it(t,e){if(void 0===e&&(e=tt(t)),e)return t;if(!et[t]){var n=L(t),r=""+n[0].toUpperCase()+n.slice(1);Y((n+" "+rt.join(r+" ")+r).split(" "),(function(e,n){if(n in nt)return et[t]=n,!1}))}return et[t]}var ot={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};function st(t,e,n){return void 0===n&&(n=tt(t)),n||ot[t]||!$(e)?e:e+"px"}x.css=function(t,e){if(B(t)){var n=tt(t);return t=it(t,n),arguments.length<2?this[0]&&q(this[0],t,n):t?(e=st(t,e,n),this.each((function(r,i){U(i)&&(n?i.style.setProperty(t,e):i.style[t]=e)}))):this}for(var r in t)this.css(r,t[r]);return this};var at=/^\s+|\s+$/;function ut(t,e){var r=t.dataset[e]||t.dataset[L(e)];return at.test(r)?r:n(JSON.parse,r)}function ct(t,e,r){r=n(JSON.stringify,r),t.dataset[L(e)]=r}function lt(t,e){var n=t.documentElement;return Math.max(t.body["scroll"+e],n["scroll"+e],t.body["offset"+e],n["offset"+e],n["client"+e])}function ft(t,e){return Z(t,"border"+(e?"Left":"Top")+"Width")+Z(t,"padding"+(e?"Left":"Top"))+Z(t,"padding"+(e?"Right":"Bottom"))+Z(t,"border"+(e?"Right":"Bottom")+"Width")}x.data=function(t,e){if(!t){if(!this[0])return;var n={};for(var r in this[0].dataset)n[r]=ut(this[0],r);return n}if(B(t))return arguments.length<2?this[0]&&ut(this[0],t):k(e)?this:this.each((function(n,r){ct(r,t,e)}));for(var r in t)this.data(r,t[r]);return this},Y([!0,!1],(function(t,e){Y(["Width","Height"],(function(t,n){x[(e?"outer":"inner")+n]=function(r){if(this[0])return M(this[0])?e?this[0]["inner"+n]:this[0].document.documentElement["client"+n]:D(this[0])?lt(this[0],n):this[0][(e?"offset":"client")+n]+(r&&e?Z(this[0],"margin"+(t?"Top":"Left"))+Z(this[0],"margin"+(t?"Bottom":"Right")):0)}}))})),Y(["Width","Height"],(function(t,e){var n=e.toLowerCase();x[n]=function(r){if(!this[0])return k(r)?void 0:this;if(!arguments.length)return M(this[0])?this[0].document.documentElement["client"+e]:D(this[0])?lt(this[0],e):this[0].getBoundingClientRect()[n]-ft(this[0],!t);var i=parseInt(r,10);return this.each((function(e,r){if(U(r)){var o=q(r,"boxSizing");r.style[n]=st(n,i+("border-box"===o?ft(r,!t):0))}}))}}));var dt={};function pt(t){return"none"===q(t,"display")}function ht(t,e){return!e||!E.call(e,(function(e){return t.indexOf(e)<0}))}x.toggle=function(t){return this.each((function(e,n){U(n)&&((k(t)?pt(n):t)?(n.style.display=n.___cd||"",pt(n)&&(n.style.display=function(t){if(dt[t])return dt[t];var e=s(t);r.body.insertBefore(e,null);var n=q(e,"display");return r.body.removeChild(e),dt[t]="none"!==n?n:"block"}(n.tagName))):(n.___cd=q(n,"display"),n.style.display="none"))}))},x.hide=function(){return this.toggle(!1)},x.show=function(){return this.toggle(!0)};var vt={focus:"focusin",blur:"focusout"},gt={mouseenter:"mouseover",mouseleave:"mouseout"},mt=/^(mouse|pointer|contextmenu|drag|drop|click|dblclick)/i;function At(t){return gt[t]||vt[t]||t}function Et(t){return t.___ce=t.___ce||{}}function Tt(t){var e=t.split(".");return[e[0],e.slice(1).sort()]}function yt(t,e,n,r,i){var o=Et(t);if(e)o[e]&&(o[e]=o[e].filter((function(o){var s=o[0],a=o[1],u=o[2];if(i&&u.guid!==i.guid||!ht(s,n)||r&&r!==a)return!0;t.removeEventListener(e,u)})));else for(e in o)yt(t,e,n,r,i)}function _t(t){return t.multiple&&t.options?G(h.call(t.options,(function(t){return t.selected&&!t.disabled&&!t.parentNode.disabled})),"value"):t.value||""}x.off=function(t,e,n){var r=this;if(k(t))this.each((function(t,e){(U(e)||D(e)||M(e))&&yt(e)}));else if(B(t))j(e)&&(n=e,e=""),Y(X(t),(function(t,i){var o=Tt(i),s=o[0],a=o[1],u=At(s);r.each((function(t,r){(U(r)||D(r)||M(r))&&yt(r,u,a,e,n)}))}));else for(var i in t)this.off(i,t[i]);return this},x.on=function(t,e,n,r,i){var o=this;if(!B(t)){for(var s in t)this.on(s,e,n,t[s],i);return this}return B(e)||(k(e)||F(e)?e="":k(n)?(n=e,e=""):(r=n,n=e,e="")),j(r)||(r=n,n=void 0),r?(Y(X(t),(function(t,s){var a=Tt(s),u=a[0],c=a[1],l=At(u),f=u in gt,d=u in vt;l&&o.each((function(t,o){if(U(o)||D(o)||M(o)){var s=function t(s){if(s.target["___i"+s.type])return s.stopImmediatePropagation();if((!s.namespace||ht(c,s.namespace.split(".")))&&(e||!(d&&(s.target!==o||s.___ot===l)||f&&s.relatedTarget&&o.contains(s.relatedTarget)))){var a=o;if(e){for(var u=s.target;!w(u,e);){if(u===o)return;if(!(u=u.parentNode))return}a=u}Object.defineProperty(s,"currentTarget",{configurable:!0,get:function(){return a}}),Object.defineProperty(s,"delegateTarget",{configurable:!0,get:function(){return o}}),Object.defineProperty(s,"data",{configurable:!0,get:function(){return n}});var p=r.call(a,s,s.___td);i&&yt(o,l,c,e,t),!1===p&&(s.preventDefault(),s.stopPropagation())}};s.guid=r.guid=r.guid||O.guid++,function(t,e,n,r,i){var o=Et(t);o[e]=o[e]||[],o[e].push([n,r,i]),t.addEventListener(e,i)}(o,l,c,e,s)}}))})),this):this},x.one=function(t,e,n,r){return this.on(t,e,n,r,!0)},x.ready=function(t){var e=function(){return setTimeout(t,0,O)};return"loading"!==r.readyState?e():r.addEventListener("DOMContentLoaded",e),this},x.trigger=function(t,e){if(B(t)){var n=Tt(t),i=n[0],o=n[1],s=At(i);if(!s)return this;var a=mt.test(s)?"MouseEvents":"HTMLEvents";(t=r.createEvent(a)).initEvent(s,!0,!0),t.namespace=o.join("."),t.___ot=i}t.___td=e;var u=t.___ot in vt;return this.each((function(e,n){u&&j(n[t.___ot])&&(n["___i"+t.type]=!0,n[t.___ot](),n["___i"+t.type]=!1),n.dispatchEvent(t)}))};var bt=/%20/g,St=/\r?\n/g,It=/file|reset|submit|button|image/i,Ct=/radio|checkbox/i;x.serialize=function(){var t="";return this.each((function(e,n){Y(n.elements||[n],(function(e,n){if(!(n.disabled||!n.name||"FIELDSET"===n.tagName||It.test(n.type)||Ct.test(n.type)&&!n.checked)){var r=_t(n);k(r)||Y(f(r)?r:[r],(function(e,r){t+=function(t,e){return"&"+encodeURIComponent(t)+"="+encodeURIComponent(e.replace(St,"\r\n")).replace(bt,"+")}(n.name,r)}))}}))})),t.slice(1)},x.val=function(t){return arguments.length?this.each((function(e,n){var r=n.multiple&&n.options;if(r||Ct.test(n.type)){var i=f(t)?g.call(t,String):F(t)?[]:[String(t)];r?Y(n.options,(function(t,e){e.selected=i.indexOf(e.value)>=0}),!0):n.checked=i.indexOf(n.value)>=0}else n.value=k(t)||F(t)?"":t})):this[0]&&_t(this[0])},x.clone=function(){return this.map((function(t,e){return e.cloneNode(!0)}))},x.detach=function(t){return V(this,t).each((function(t,e){e.parentNode&&e.parentNode.removeChild(e)})),this};var xt=/^\s*<(\w+)[^>]*>/,Ot=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,Nt={"*":a,tr:c,td:l,th:l,thead:u,tbody:u,tfoot:u};function Lt(t){if(!B(t))return[];if(Ot.test(t))return[s(RegExp.$1)];var e=xt.test(t)&&RegExp.$1,n=Nt[e]||Nt["*"];return n.innerHTML=t,O(n.childNodes).detach().get()}O.parseHTML=Lt,x.empty=function(){return this.each((function(t,e){for(;e.firstChild;)e.removeChild(e.firstChild)}))},x.html=function(t){return arguments.length?k(t)?this:this.each((function(e,n){U(n)&&(n.innerHTML=t)})):this[0]&&this[0].innerHTML},x.remove=function(t){return V(this,t).detach().off(),this},x.text=function(t){return k(t)?this[0]?this[0].textContent:"":this.each((function(e,n){U(n)&&(n.textContent=t)}))},x.unwrap=function(){return this.parent().each((function(t,e){if("BODY"!==e.tagName){var n=O(e);n.replaceWith(n.children())}})),this},x.offset=function(){var t=this[0];if(t){var e=t.getBoundingClientRect();return{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}}},x.offsetParent=function(){return this.map((function(t,e){for(var n=e.offsetParent;n&&"static"===q(n,"position");)n=n.offsetParent;return n||o}))},x.position=function(){var t=this[0];if(t){var e="fixed"===q(t,"position"),n=e?t.getBoundingClientRect():this.offset();if(!e){for(var r=t.ownerDocument,i=t.offsetParent||r.documentElement;(i===r.body||i===r.documentElement)&&"static"===q(i,"position");)i=i.parentNode;if(i!==t&&U(i)){var o=O(i).offset();n.top-=o.top+Z(i,"borderTopWidth"),n.left-=o.left+Z(i,"borderLeftWidth")}}return{top:n.top-Z(t,"marginTop"),left:n.left-Z(t,"marginLeft")}}},x.children=function(t){return V(O(K(G(this,(function(t){return t.children})))),t)},x.contents=function(){return O(K(G(this,(function(t){return"IFRAME"===t.tagName?[t.contentDocument]:"TEMPLATE"===t.tagName?t.content.childNodes:t.childNodes}))))},x.find=function(t){return O(K(G(this,(function(e){return I(t,e)}))))};var wt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Rt=/^$|^module$|\/(java|ecma)script/i,Mt=["type","src","nonce","noModule"];function Dt(t,e,n,r,i,a,u,c){return Y(t,(function(t,a){Y(O(a),(function(t,a){Y(O(e),(function(e,u){var c=n?u:a,l=n?t:e;!function(t,e,n,r,i){r?t.insertBefore(e,n?t.firstChild:null):"HTML"===t.nodeName?t.parentNode.replaceChild(e,t):t.parentNode.insertBefore(e,n?t:t.nextSibling),i&&function(t,e){var n=O(t);n.filter("script").add(n.find("script")).each((function(t,n){if(Rt.test(n.type)&&o.contains(n)){var r=s("script");r.text=n.textContent.replace(wt,""),Y(Mt,(function(t,e){n[e]&&(r[e]=n[e])})),e.head.insertBefore(r,null),e.head.removeChild(r)}}))}(e,t.ownerDocument)}(n?a:u,l?c.cloneNode(!0):c,r,i,!l)}),c)}),u)}),a),e}x.after=function(){return Dt(arguments,this,!1,!1,!1,!0,!0)},x.append=function(){return Dt(arguments,this,!1,!1,!0)},x.appendTo=function(t){return Dt(arguments,this,!0,!1,!0)},x.before=function(){return Dt(arguments,this,!1,!0)},x.insertAfter=function(t){return Dt(arguments,this,!0,!1,!1,!1,!1,!0)},x.insertBefore=function(t){return Dt(arguments,this,!0,!0)},x.prepend=function(){return Dt(arguments,this,!1,!0,!0,!0,!0)},x.prependTo=function(t){return Dt(arguments,this,!0,!0,!0,!1,!1,!0)},x.replaceWith=function(t){return this.before(t).remove()},x.replaceAll=function(t){return O(t).replaceWith(this),this},x.wrapAll=function(t){for(var e=O(t),n=e[0];n.children.length;)n=n.firstElementChild;return this.first().before(e),this.appendTo(n)},x.wrap=function(t){return this.each((function(e,n){var r=O(t)[0];O(n).wrapAll(e?r.cloneNode(!0):r)}))},x.wrapInner=function(t){return this.each((function(e,n){var r=O(n),i=r.contents();i.length?i.wrapAll(t):r.append(t)}))},x.has=function(t){var e=B(t)?function(e,n){return I(t,n).length}:function(e,n){return n.contains(t)};return this.filter(e)},x.is=function(t){var e=z(t);return E.call(this,(function(t,n){return e.call(t,n,t)}))},x.next=function(t,e,n){return V(O(K(G(this,"nextElementSibling",e,n))),t)},x.nextAll=function(t){return this.next(t,!0)},x.nextUntil=function(t,e){return this.next(e,!0,t)},x.not=function(t){var e=z(t);return this.filter((function(n,r){return(!B(t)||U(r))&&!e.call(r,n,r)}))},x.parent=function(t){return V(O(K(G(this,"parentNode"))),t)},x.index=function(t){var e=t?O(t)[0]:this[0],n=t?this:O(e).parent().children();return v.call(n,e)},x.closest=function(t){var e=this.filter(t);if(e.length)return e;var n=this.parent();return n.length?n.closest(t):e},x.parents=function(t,e){return V(O(K(G(this,"parentElement",!0,e))),t)},x.parentsUntil=function(t,e){return this.parents(e,t)},x.prev=function(t,e,n){return V(O(K(G(this,"previousElementSibling",e,n))),t)},x.prevAll=function(t){return this.prev(t,!0)},x.prevUntil=function(t,e){return this.prev(e,!0,t)},x.siblings=function(t){return V(O(K(G(this,(function(t){return O(t).parent().children().not(t)})))),t)},t.exports=O}()},529:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(559),i=n.n(r),o=n(476),s=n.n(o)()(i());s.push([t.id,".tnu-parent {\n position: relative;\n display: block;\n}\n.tnu-indicator {\n cursor: pointer;\n margin-left: 5px;\n display: inline-block;\n}\n.tnu-indicator-dot {\n width: 10px;\n height: 10px;\n border-radius: 30px;\n margin-top: 5px;\n}\n.tnu-indicator-text {\n width: 30px;\n height: 14px;\n line-height: 14px;\n max-width: 45px;\n padding: 2px;\n border-radius: 21px;\n font-size: 9px;\n color: white;\n font-weight: bold;\n text-align: center;\n}\n.tnu-tooltip {\n position: absolute;\n z-index: 2;\n max-width: 100px;\n background-color: #beccd6;\n border: 1px solid #1E5076;\n border-radius: 10px 10px 10px 0;\n padding: 5px;\n font-size: 12px;\n font-weight: bold;\n}\n","",{version:3,sources:["webpack://./styles/app.less"],names:[],mappings:"AAEE;EACE,kBAAA;EACA,cAAA;AADJ;AAIE;EACE,eAAA;EACA,gBAAA;EACA,qBAAA;AAFJ;AAII;EACE,WAAA;EACA,YAAA;EACA,mBAAA;EACA,eAAA;AAFN;AAKI;EACE,WAAA;EACA,YAAA;EACA,iBAAA;EACA,eAAA;EACA,YAAA;EACA,mBAAA;EACA,cAAA;EACA,YAAA;EACA,iBAAA;EACA,kBAAA;AAHN;AAOE;EACE,kBAAA;EACA,UAAA;EACA,gBAAA;EACA,yBAAA;EACA,yBAAA;EACA,+BAAA;EACA,YAAA;EACA,eAAA;EACA,iBAAA;AALJ",sourcesContent:[".tnu {\n\n &-parent {\n position: relative;\n display: block;\n }\n\n &-indicator {\n cursor: pointer;\n margin-left: 5px;\n display: inline-block;\n\n &-dot {\n width: 10px;\n height: 10px;\n border-radius: 30px;\n margin-top: 5px;\n }\n\n &-text {\n width: 30px;\n height: 14px;\n line-height: 14px;\n max-width: 45px;\n padding: 2px;\n border-radius: 21px;\n font-size: 9px;\n color: white;\n font-weight: bold;\n text-align: center;\n }\n }\n\n &-tooltip {\n position: absolute;\n z-index: 2;\n max-width: 100px;\n background-color: #beccd6;\n border: 1px solid #1E5076;\n border-radius: 10px 10px 10px 0;\n padding: 5px;\n font-size: 12px;\n font-weight: bold;\n }\n}"],sourceRoot:""}]);const a=s},476:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,o){"string"==typeof t&&(t=[[null,t,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var u=this[a][0];null!=u&&(s[u]=!0)}for(var c=0;c<t.length;c++){var l=[].concat(t[c]);r&&s[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},559:t=>{"use strict";t.exports=function(t){var e=t[1],n=t[3];if(!n)return e;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),o="/*# ".concat(i," */"),s=n.sources.map((function(t){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}));return[e].concat(s).concat([o]).join("\n")}return[e].join("\n")}},564:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var r=n(892),i=n.n(r),o=n(760),s=n.n(o),a=n(311),u=n.n(a),c=n(192),l=n.n(c),f=n(60),d=n.n(f),p=n(865),h=n.n(p),v=n(529),g={};g.styleTagTransform=h(),g.setAttributes=l(),g.insert=u().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=d(),i()(v.Z,g);const m=v.Z&&v.Z.locals?v.Z.locals:void 0},892:t=>{"use strict";var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var o={},s=[],a=0;a<t.length;a++){var u=t[a],c=r.base?u[0]+r.base:u[0],l=o[c]||0,f="".concat(c," ").concat(l);o[c]=l+1;var d=n(f),p={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,r);r.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}s.push(f)}return s}function i(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,i){var o=r(t=t||[],i=i||{});return function(t){t=t||[];for(var s=0;s<o.length;s++){var a=n(o[s]);e[a].references--}for(var u=r(t,i),c=0;c<o.length;c++){var l=n(o[c]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}o=u}}},311:t=>{"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},60:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},192:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},760:t=>{"use strict";t.exports=function(t){var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},865:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},174:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=r(n(216));n(564);const o=r(n(460)),s=n(88),a=n(708),u=r(n(655)),c=r(n(806)),l=r(n(827));e.default=class{constructor(t){this.clickedItems={},this.elements={},this.colors={},this.params=t,this.clickedItems=this.getUserClickedItems()}generate(){(0,i.default)(`[${s.INPUT_DOM_ATTRIBUTES.INDICATOR_ID}]`).each(((t,e)=>{const n=(0,i.default)(e),r=this.getOptionsFromParentElement(n);if(!r.id)return void l.default.log("Missing identifier for element");const o=this.getOptionsFromConfig(r.id),{indicator:a,tooltip:f}=this.getIndicatorSettings(Object.assign(Object.assign({},o),r)),d=a.id,{expiration:p}=a,h=u.default.getGroupFromId(d),{clickedItems:v}=this;if(null==v?void 0:v[d])return;if(p&&p.getTime()<(new Date).getTime())return this.cleanElement(n),void n.attr(s.OUTPUT_DOM_ATTRIBUTES.ERROR,"item expired");let g;if(this.elements[d]){if(g=this.elements[d],n.find(`.${s.ELEMENT_CLASSES.INDICATOR}`).length)return}else{this.colors[h]||(this.colors[h]=a.color||this.params.defaultColor||"#462a68");const t=this.colors[h];g=c.default.getIndicator(Object.assign(Object.assign({},a),{styles:Object.assign({"background-color":`${t}`},a.styles)})),g.on(s.ELEMENT_EVENTS.CLICK,(()=>{this.onElementClicked(g,n)})),g.on(s.ELEMENT_EVENTS.MOUSE_OVER,(()=>{this.showTooltip(g,f)})),g.on(s.ELEMENT_EVENTS.MOUSE_OUT,(()=>{this.params.debugTooltip||this.hideTooltips()}))}n.append(g),this.elements[d]=g}))}getOptionsFromConfig(t){return this.params.indicators.find((e=>e.id.includes("*")?u.default.isMatchWildcard(e.id,t):t===e.id))}getUserClickedItems(){var t,e;const n={};if(null===(t=this.params)||void 0===t?void 0:t.initialState)for(const t of null===(e=this.params)||void 0===e?void 0:e.initialState)n[t]=!0;const r=o.default.getItem(s.USER_WATCHED_LEVELS_STORAGE_KEY);return Object.assign(Object.assign({},r),n)}getOptionsFromParentElement(t){const e=Object.keys(a.IndicatorOptionsList),n={};for(const r of t[0].attributes)if(r.name.startsWith(s.ATTRIBUTE_PREFIX)){const t=u.default.toCamelCase(r.name.substring(s.ATTRIBUTE_PREFIX.length+1));e.includes(t)?n[t]=r.value:l.default.log(`Invalid Thatsnu attribute: ${r.name}`)}return n}getIndicatorSettings(t){let{expiration:e}=t;"string"==typeof e&&(e=new Date(e),e instanceof Date&&!isNaN(e.getTime())||(e=void 0));const n=t=>"string"==typeof t?c.default.getStylesFromString(t):t,{className:r}=t,{tooltipClassName:i}=t;return{indicator:{id:t.id,text:t.text,styles:n(t.styles),color:t.color,classNames:r?[r]:void 0,expiration:e},tooltip:{text:t.tooltipText||"New!",styles:n(t.tooltipStyles),classNames:i?[i]:void 0}}}onElementClicked(t,e){const n=e.attr(s.INPUT_DOM_ATTRIBUTES.INDICATOR_ID),r=u.default.getGroupFromId(n),{onClick:a}=this.params;if(this.clickedItems[n]=!0,this.clickedItems[r]=!0,!(a instanceof Function)||a(n)){if(o.default.setItem(s.USER_WATCHED_LEVELS_STORAGE_KEY,this.clickedItems),n){e.removeAttr(s.INPUT_DOM_ATTRIBUTES.INDICATOR_ID),t.remove();const n=(0,i.default)(`[${s.INPUT_DOM_ATTRIBUTES.INDICATOR_ID}="${r}"`);this.cleanElement(n)}this.hideTooltips()}}cleanElement(t){for(const e of Object.values(s.INPUT_DOM_ATTRIBUTES))t.removeAttr(e);for(const e of Object.values(s.ELEMENT_CLASSES))t.removeClass(e);t.find(`.${s.ELEMENT_CLASSES.INDICATOR}`).remove()}showTooltip(t,e){this.hideTooltips();const n=c.default.getTooltip(e);(0,i.default)("body").append(n);const r=t.offset();n.css({top:r.top-n.height()-14,left:r.left+t.width()+9})}hideTooltips(){(0,i.default)(`.${s.ELEMENT_CLASSES.TOOLTIP}`).remove()}getState(){return Object.keys(this.clickedItems)}resetState(){o.default.removeItem(s.USER_WATCHED_LEVELS_STORAGE_KEY),this.clickedItems={}}dispose(){this.hideTooltips();const t=(0,i.default)(`[${s.INPUT_DOM_ATTRIBUTES.INDICATOR_ID}]`);for(const e of Object.values(s.INPUT_DOM_ATTRIBUTES))t.removeAttr(e).find(`.${s.ELEMENT_CLASSES.INDICATOR}`).remove();for(const t of Object.values(this.elements))for(const e of Object.values(s.ELEMENT_EVENTS))t.off(e);for(const t of Object.values(s.OUTPUT_DOM_ATTRIBUTES))(0,i.default)(`[${t}]`).removeAttr(t);this.resetState()}}},88:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ELEMENT_EVENTS=e.ELEMENT_CLASSES=e.OUTPUT_DOM_ATTRIBUTES=e.INPUT_DOM_ATTRIBUTES=e.ATTRIBUTE_PREFIX=e.USER_WATCHED_LEVELS_STORAGE_KEY=void 0,e.USER_WATCHED_LEVELS_STORAGE_KEY="usersWatches",e.ATTRIBUTE_PREFIX="data-tnu",e.INPUT_DOM_ATTRIBUTES={PARENT_STYLES:"data-tnu-parent-styles",PARENT_CLASS_NAME:"data-tnu-parent-class-name",INDICATOR_ID:"data-tnu-id",INDICATOR_TEXT:"data-tnu-text",INDICATOR_STYLES:"data-tnu-styles",INDICATOR_CLASS_NAME:"data-tnu-class-name",INDICATOR_EXPIRATION:"data-tnu-expiration",TOOLTIP_TEXT:"data-tnu-tooltip-text",TOOLTIP_STYLES:"data-tnu-tooltip-styles",TOOLTIP_CLASS_NAME:"data-tnu-tooltip-class-name"},e.OUTPUT_DOM_ATTRIBUTES={ERROR:"data-tnu-error"},e.ELEMENT_CLASSES={INDICATOR:"tnu-indicator",INDICATOR_DOT_STYLE:"tnu-indicator-dot",INDICATOR_TEXT_STYLE:"tnu-indicator-text",TOOLTIP:"tnu-tooltip"},e.ELEMENT_EVENTS={CLICK:"click",MOUSE_OVER:"mouseover",MOUSE_OUT:"mouseout"}},303:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=r(n(174)),o=r(n(509));let s;const a={async init(t){window.thasnuInitialized||(window.thasnuInitialized=!0,s=new i.default(t),o.default.observe((()=>{s.generate()})))},getState:()=>s.getState(),resetState(){s.resetState()},dispose(){s.dispose(),o.default.dispose(),s=null,delete window.thasnuInitialized}};"function"==typeof(null===window||void 0===window?void 0:window.onThatsnuLoaded)&&(null===window||void 0===window||window.onThatsnuLoaded(a)),e.default=a},708:(t,e)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.IndicatorOptionsList=void 0,(n=e.IndicatorOptionsList||(e.IndicatorOptionsList={})).id="id",n.text="text",n.className="className",n.styles="styles",n.color="color",n.expiration="expiration",n.tooltipText="tooltipText",n.tooltipClassName="tooltipClassName",n.tooltipStyles="tooltipStyles"},806:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=r(n(216)),o=n(88),s=({type:t,text:e,styles:n,classNames:r})=>{const o=(0,i.default)(`<${t}>`);return(null==r?void 0:r.length)&&a.addClassesToElement(o,r),n&&o.css(n),e&&o.text(e),o},a={getIndicator(t){const{text:e,styles:n,classNames:r}=t;let i=[o.ELEMENT_CLASSES.INDICATOR];return(null==r?void 0:r.length)&&(i=i.concat(r)),e?i.push(o.ELEMENT_CLASSES.INDICATOR_TEXT_STYLE):i.push(o.ELEMENT_CLASSES.INDICATOR_DOT_STYLE),s({text:e,type:"span",styles:n,classNames:i})},getTooltip(t){(0,i.default)("<div>").addClass(o.ELEMENT_CLASSES.TOOLTIP);const{text:e,styles:n,classNames:r}=t;let a=[o.ELEMENT_CLASSES.TOOLTIP];return(null==r?void 0:r.length)&&(a=a.concat(r)),s({type:"div",text:e,styles:n,classNames:a})},getStylesFromString(t){try{return JSON.parse(t)}catch(t){}},addClassesToElement(t,e){for(const n of e)n&&t.addClass(n)}};e.default=a},509:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(88);let i;e.default=new class{observe(t){i=new MutationObserver((()=>{t()})),i.observe(document.body,{attributes:!0,childList:!0,subtree:!0,attributeFilter:[r.INPUT_DOM_ATTRIBUTES.INDICATOR_ID]}),t()}dispose(){i&&i.disconnect()}}},655:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=r(n(489));e.default={getGroupFromId(t){const e=null==t?void 0:t.split(".");if(!(null==e?void 0:e[0]))throw new Error("Invalid level");return e[0]},toCamelCase:t=>null==t?void 0:t.replace(/(-.)/g,(t=>t[1].toUpperCase())),isMatchWildcard:(t,e)=>(0,i.default)(t)(e)}},827:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=console},460:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={getItem:t=>JSON.parse(localStorage.getItem(t)),setItem:(t,e)=>localStorage.setItem(t,JSON.stringify(e)),removeItem:t=>localStorage.removeItem(t)}},489:t=>{"use strict";function e(t){return"-"===t||"^"===t||"$"===t||"+"===t||"."===t||"("===t||")"===t||"|"===t||"["===t||"]"===t||"{"===t||"}"===t||"*"===t||"?"===t||"\\"===t?"\\"+t:t}function n(t,r){if(void 0===r&&(r=!0),Array.isArray(t))return"(?:"+t.map((function(t){return"^"+n(t,r)+"$"})).join("|")+")";var i="",o="",s=".";!0===r?(i="/",o="[/\\\\]",s="[^/\\\\]"):r&&(o=function(t){for(var n="",r=0;r<t.length;r++)n+=e(t[r]);return n}(i=r),s=o.length>1?"((?!"+(o="(?:"+o+")")+").)":"[^"+o+"]");for(var a=r?o+"+?":"",u=r?o+"*?":"",c=r?t.split(i):[t],l="",f=0;f<c.length;f++){var d=c[f],p=c[f+1],h="";if(d||!(f>0))if(r&&(h=f===c.length-1?u:"**"!==p?a:""),r&&"**"===d)h&&(l+=0===f?"":h,l+="(?:"+s+"*?"+h+")*?");else{for(var v=0;v<d.length;v++){var g=d[v];"\\"===g?v<d.length-1&&(l+=e(d[v+1]),v++):l+="?"===g?s:"*"===g?s+"*?":e(g)}l+=h}}return l}function r(t,e){if("string"!=typeof e)throw new TypeError("Sample must be a string, but "+typeof e+" given");return t.test(e)}t.exports=function(t,e){if("string"!=typeof t&&!Array.isArray(t))throw new TypeError("The first argument must be a single pattern string or an array of patterns, but "+typeof t+" given");if("string"!=typeof e&&"boolean"!=typeof e||(e={separator:e}),2===arguments.length&&void 0!==e&&("object"!=typeof e||null===e||Array.isArray(e)))throw new TypeError("The second argument must be an options object or a string/boolean separator, but "+typeof e+" given");if("\\"===(e=e||{}).separator)throw new Error("\\ is not a valid separator because it is used for escaping. Try setting the separator to `true` instead");var i=n(t,e.separator),o=new RegExp("^"+i+"$",e.flags),s=r.bind(null,o);return s.options=e,s.pattern=t,s.regexp=o,s}}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={id:r,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}return n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nc=void 0,n(303)})()));
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(this,(()=>(()=>{var t={216:t=>{!function(){"use strict";var e={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",maxlength:"maxLength",tabindex:"tabIndex",colspan:"colSpan",rowspan:"rowSpan",usemap:"useMap"};function n(t,e){try{return t(e)}catch(t){return e}}var r=document,i=window,o=r.documentElement,s=r.createElement.bind(r),a=s("div"),u=s("table"),c=s("tbody"),l=s("tr"),f=Array.isArray,d=Array.prototype,p=d.concat,h=d.filter,v=d.indexOf,m=d.map,A=d.push,g=d.slice,E=d.some,T=d.splice,_=/^#(?:[\w-]|\\.|[^\x00-\xa0])*$/,y=/^\.(?:[\w-]|\\.|[^\x00-\xa0])*$/,I=/<.+>/,b=/^\w+$/;function O(t,e){var n,r=!!(n=e)&&11===n.nodeType;return t&&(r||D(e)||U(e))?!r&&y.test(t)?e.getElementsByClassName(t.slice(1)):!r&&b.test(t)?e.getElementsByTagName(t):e.querySelectorAll(t):[]}var S=function(){function t(t,e){if(t){if(R(t))return t;var n=t;if(B(t)){var o=(R(e)?e[0]:e)||r;if(!(n=_.test(t)&&"getElementById"in o?o.getElementById(t.slice(1)):I.test(t)?wt(t):O(t,o)))return}else if(j(t))return this.ready(t);(n.nodeType||n===i)&&(n=[n]),this.length=n.length;for(var s=0,a=this.length;s<a;s++)this[s]=n[s]}}return t.prototype.init=function(e,n){return new t(e,n)},t}(),C=S.prototype,x=C.init;x.fn=x.prototype=C,C.length=0,C.splice=T,"function"==typeof Symbol&&(C[Symbol.iterator]=d[Symbol.iterator]),C.map=function(t){return x(p.apply([],m.call(this,(function(e,n){return t.call(e,n,e)}))))},C.slice=function(t,e){return x(g.call(this,t,e))};var N=/-([a-z])/g;function w(t){return t.replace(N,(function(t,e){return e.toUpperCase()}))}function L(t,e){var n=t&&(t.matches||t.webkitMatchesSelector||t.msMatchesSelector);return!!n&&!!e&&n.call(t,e)}function R(t){return t instanceof S}function M(t){return!!t&&t===t.window}function D(t){return!!t&&9===t.nodeType}function U(t){return!!t&&1===t.nodeType}function P(t){return"boolean"==typeof t}function j(t){return"function"==typeof t}function B(t){return"string"==typeof t}function k(t){return void 0===t}function $(t){return null===t}function F(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Y(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function W(t,e,n){if(n){for(var r=t.length;r--;)if(!1===e.call(t[r],r,t[r]))return t}else if(Y(t))for(var i=Object.keys(t),o=(r=0,i.length);r<o;r++){var s=i[r];if(!1===e.call(t[s],s,t[s]))return t}else for(r=0,o=t.length;r<o;r++)if(!1===e.call(t[r],r,t[r]))return t;return t}function z(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=!!P(t[0])&&t.shift(),r=t.shift(),i=t.length;if(!r)return{};if(!i)return z(n,x,r);for(var o=0;o<i;o++){var s=t[o];for(var a in s)n&&(f(s[a])||Y(s[a]))?(r[a]&&r[a].constructor===s[a].constructor||(r[a]=new s[a].constructor),z(n,r[a],s[a])):r[a]=s[a]}return r}function K(t){return B(t)?function(e,n){return L(n,t)}:j(t)?t:R(t)?function(e,n){return t.is(n)}:t?function(e,n){return n===t}:function(){return!1}}function H(t,e){return e?t.filter(e):t}x.guid=1,x.isWindow=M,x.isFunction=j,x.isArray=f,x.isNumeric=F,x.isPlainObject=Y,C.get=function(t){return k(t)?g.call(this):this[(t=Number(t))<0?t+this.length:t]},C.eq=function(t){return x(this.get(t))},C.first=function(){return this.eq(0)},C.last=function(){return this.eq(-1)},x.each=W,C.each=function(t){return W(this,t)},C.prop=function(t,n){if(t){if(B(t))return t=e[t]||t,arguments.length<2?this[0]&&this[0][t]:this.each((function(e,r){r[t]=n}));for(var r in t)this.prop(r,t[r]);return this}},C.removeProp=function(t){return this.each((function(n,r){delete r[e[t]||t]}))},x.extend=z,C.extend=function(t){return z(C,t)},C.filter=function(t){var e=K(t);return x(h.call(this,(function(t,n){return e.call(t,n,t)})))};var X=/\S+/g;function G(t){return B(t)&&t.match(X)||[]}function J(t,e,n,r){for(var i=[],o=j(e),s=r&&K(r),a=0,u=t.length;a<u;a++)if(o){var c=e(t[a]);c.length&&A.apply(i,c)}else for(var l=t[a][e];!(null==l||r&&s(-1,l));)i.push(l),l=n?l[e]:null;return i}function V(t){return t.length>1?h.call(t,(function(t,e,n){return v.call(n,t)===e})):t}function q(t,e,n){if(U(t)){var r=i.getComputedStyle(t,null);return n?r.getPropertyValue(e)||void 0:r[e]||t.style[e]}}function Z(t,e){return parseInt(q(t,e),10)||0}C.hasClass=function(t){return!!t&&E.call(this,(function(e){return U(e)&&e.classList.contains(t)}))},C.removeAttr=function(t){var e=G(t);return this.each((function(t,n){U(n)&&W(e,(function(t,e){n.removeAttribute(e)}))}))},C.attr=function(t,e){if(t){if(B(t)){if(arguments.length<2){if(!this[0]||!U(this[0]))return;var n=this[0].getAttribute(t);return $(n)?void 0:n}return k(e)?this:$(e)?this.removeAttr(t):this.each((function(n,r){U(r)&&r.setAttribute(t,e)}))}for(var r in t)this.attr(r,t[r]);return this}},C.toggleClass=function(t,e){var n=G(t),r=!k(e);return this.each((function(t,i){U(i)&&W(n,(function(t,n){r?e?i.classList.add(n):i.classList.remove(n):i.classList.toggle(n)}))}))},C.addClass=function(t){return this.toggleClass(t,!0)},C.removeClass=function(t){return arguments.length?this.toggleClass(t,!1):this.attr("class","")},x.unique=V,C.add=function(t,e){return x(V(this.get().concat(x(t,e).get())))};var Q=/^--/;function tt(t){return Q.test(t)}var et={},nt=a.style,rt=["webkit","moz","ms"];function it(t,e){if(void 0===e&&(e=tt(t)),e)return t;if(!et[t]){var n=w(t),r=""+n[0].toUpperCase()+n.slice(1);W((n+" "+rt.join(r+" ")+r).split(" "),(function(e,n){if(n in nt)return et[t]=n,!1}))}return et[t]}var ot={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};function st(t,e,n){return void 0===n&&(n=tt(t)),n||ot[t]||!F(e)?e:e+"px"}C.css=function(t,e){if(B(t)){var n=tt(t);return t=it(t,n),arguments.length<2?this[0]&&q(this[0],t,n):t?(e=st(t,e,n),this.each((function(r,i){U(i)&&(n?i.style.setProperty(t,e):i.style[t]=e)}))):this}for(var r in t)this.css(r,t[r]);return this};var at=/^\s+|\s+$/;function ut(t,e){var r=t.dataset[e]||t.dataset[w(e)];return at.test(r)?r:n(JSON.parse,r)}function ct(t,e,r){r=n(JSON.stringify,r),t.dataset[w(e)]=r}function lt(t,e){var n=t.documentElement;return Math.max(t.body["scroll"+e],n["scroll"+e],t.body["offset"+e],n["offset"+e],n["client"+e])}function ft(t,e){return Z(t,"border"+(e?"Left":"Top")+"Width")+Z(t,"padding"+(e?"Left":"Top"))+Z(t,"padding"+(e?"Right":"Bottom"))+Z(t,"border"+(e?"Right":"Bottom")+"Width")}C.data=function(t,e){if(!t){if(!this[0])return;var n={};for(var r in this[0].dataset)n[r]=ut(this[0],r);return n}if(B(t))return arguments.length<2?this[0]&&ut(this[0],t):k(e)?this:this.each((function(n,r){ct(r,t,e)}));for(var r in t)this.data(r,t[r]);return this},W([!0,!1],(function(t,e){W(["Width","Height"],(function(t,n){C[(e?"outer":"inner")+n]=function(r){if(this[0])return M(this[0])?e?this[0]["inner"+n]:this[0].document.documentElement["client"+n]:D(this[0])?lt(this[0],n):this[0][(e?"offset":"client")+n]+(r&&e?Z(this[0],"margin"+(t?"Top":"Left"))+Z(this[0],"margin"+(t?"Bottom":"Right")):0)}}))})),W(["Width","Height"],(function(t,e){var n=e.toLowerCase();C[n]=function(r){if(!this[0])return k(r)?void 0:this;if(!arguments.length)return M(this[0])?this[0].document.documentElement["client"+e]:D(this[0])?lt(this[0],e):this[0].getBoundingClientRect()[n]-ft(this[0],!t);var i=parseInt(r,10);return this.each((function(e,r){if(U(r)){var o=q(r,"boxSizing");r.style[n]=st(n,i+("border-box"===o?ft(r,!t):0))}}))}}));var dt={};function pt(t){return"none"===q(t,"display")}function ht(t,e){return!e||!E.call(e,(function(e){return t.indexOf(e)<0}))}C.toggle=function(t){return this.each((function(e,n){U(n)&&((k(t)?pt(n):t)?(n.style.display=n.___cd||"",pt(n)&&(n.style.display=function(t){if(dt[t])return dt[t];var e=s(t);r.body.insertBefore(e,null);var n=q(e,"display");return r.body.removeChild(e),dt[t]="none"!==n?n:"block"}(n.tagName))):(n.___cd=q(n,"display"),n.style.display="none"))}))},C.hide=function(){return this.toggle(!1)},C.show=function(){return this.toggle(!0)};var vt={focus:"focusin",blur:"focusout"},mt={mouseenter:"mouseover",mouseleave:"mouseout"},At=/^(mouse|pointer|contextmenu|drag|drop|click|dblclick)/i;function gt(t){return mt[t]||vt[t]||t}function Et(t){return t.___ce=t.___ce||{}}function Tt(t){var e=t.split(".");return[e[0],e.slice(1).sort()]}function _t(t,e,n,r,i){var o=Et(t);if(e)o[e]&&(o[e]=o[e].filter((function(o){var s=o[0],a=o[1],u=o[2];if(i&&u.guid!==i.guid||!ht(s,n)||r&&r!==a)return!0;t.removeEventListener(e,u)})));else for(e in o)_t(t,e,n,r,i)}function yt(t){return t.multiple&&t.options?J(h.call(t.options,(function(t){return t.selected&&!t.disabled&&!t.parentNode.disabled})),"value"):t.value||""}C.off=function(t,e,n){var r=this;if(k(t))this.each((function(t,e){(U(e)||D(e)||M(e))&&_t(e)}));else if(B(t))j(e)&&(n=e,e=""),W(G(t),(function(t,i){var o=Tt(i),s=o[0],a=o[1],u=gt(s);r.each((function(t,r){(U(r)||D(r)||M(r))&&_t(r,u,a,e,n)}))}));else for(var i in t)this.off(i,t[i]);return this},C.on=function(t,e,n,r,i){var o=this;if(!B(t)){for(var s in t)this.on(s,e,n,t[s],i);return this}return B(e)||(k(e)||$(e)?e="":k(n)?(n=e,e=""):(r=n,n=e,e="")),j(r)||(r=n,n=void 0),r?(W(G(t),(function(t,s){var a=Tt(s),u=a[0],c=a[1],l=gt(u),f=u in mt,d=u in vt;l&&o.each((function(t,o){if(U(o)||D(o)||M(o)){var s=function t(s){if(s.target["___i"+s.type])return s.stopImmediatePropagation();if((!s.namespace||ht(c,s.namespace.split(".")))&&(e||!(d&&(s.target!==o||s.___ot===l)||f&&s.relatedTarget&&o.contains(s.relatedTarget)))){var a=o;if(e){for(var u=s.target;!L(u,e);){if(u===o)return;if(!(u=u.parentNode))return}a=u}Object.defineProperty(s,"currentTarget",{configurable:!0,get:function(){return a}}),Object.defineProperty(s,"delegateTarget",{configurable:!0,get:function(){return o}}),Object.defineProperty(s,"data",{configurable:!0,get:function(){return n}});var p=r.call(a,s,s.___td);i&&_t(o,l,c,e,t),!1===p&&(s.preventDefault(),s.stopPropagation())}};s.guid=r.guid=r.guid||x.guid++,function(t,e,n,r,i){var o=Et(t);o[e]=o[e]||[],o[e].push([n,r,i]),t.addEventListener(e,i)}(o,l,c,e,s)}}))})),this):this},C.one=function(t,e,n,r){return this.on(t,e,n,r,!0)},C.ready=function(t){var e=function(){return setTimeout(t,0,x)};return"loading"!==r.readyState?e():r.addEventListener("DOMContentLoaded",e),this},C.trigger=function(t,e){if(B(t)){var n=Tt(t),i=n[0],o=n[1],s=gt(i);if(!s)return this;var a=At.test(s)?"MouseEvents":"HTMLEvents";(t=r.createEvent(a)).initEvent(s,!0,!0),t.namespace=o.join("."),t.___ot=i}t.___td=e;var u=t.___ot in vt;return this.each((function(e,n){u&&j(n[t.___ot])&&(n["___i"+t.type]=!0,n[t.___ot](),n["___i"+t.type]=!1),n.dispatchEvent(t)}))};var It=/%20/g,bt=/\r?\n/g,Ot=/file|reset|submit|button|image/i,St=/radio|checkbox/i;C.serialize=function(){var t="";return this.each((function(e,n){W(n.elements||[n],(function(e,n){if(!(n.disabled||!n.name||"FIELDSET"===n.tagName||Ot.test(n.type)||St.test(n.type)&&!n.checked)){var r=yt(n);k(r)||W(f(r)?r:[r],(function(e,r){t+=function(t,e){return"&"+encodeURIComponent(t)+"="+encodeURIComponent(e.replace(bt,"\r\n")).replace(It,"+")}(n.name,r)}))}}))})),t.slice(1)},C.val=function(t){return arguments.length?this.each((function(e,n){var r=n.multiple&&n.options;if(r||St.test(n.type)){var i=f(t)?m.call(t,String):$(t)?[]:[String(t)];r?W(n.options,(function(t,e){e.selected=i.indexOf(e.value)>=0}),!0):n.checked=i.indexOf(n.value)>=0}else n.value=k(t)||$(t)?"":t})):this[0]&&yt(this[0])},C.clone=function(){return this.map((function(t,e){return e.cloneNode(!0)}))},C.detach=function(t){return H(this,t).each((function(t,e){e.parentNode&&e.parentNode.removeChild(e)})),this};var Ct=/^\s*<(\w+)[^>]*>/,xt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,Nt={"*":a,tr:c,td:l,th:l,thead:u,tbody:u,tfoot:u};function wt(t){if(!B(t))return[];if(xt.test(t))return[s(RegExp.$1)];var e=Ct.test(t)&&RegExp.$1,n=Nt[e]||Nt["*"];return n.innerHTML=t,x(n.childNodes).detach().get()}x.parseHTML=wt,C.empty=function(){return this.each((function(t,e){for(;e.firstChild;)e.removeChild(e.firstChild)}))},C.html=function(t){return arguments.length?k(t)?this:this.each((function(e,n){U(n)&&(n.innerHTML=t)})):this[0]&&this[0].innerHTML},C.remove=function(t){return H(this,t).detach().off(),this},C.text=function(t){return k(t)?this[0]?this[0].textContent:"":this.each((function(e,n){U(n)&&(n.textContent=t)}))},C.unwrap=function(){return this.parent().each((function(t,e){if("BODY"!==e.tagName){var n=x(e);n.replaceWith(n.children())}})),this},C.offset=function(){var t=this[0];if(t){var e=t.getBoundingClientRect();return{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}}},C.offsetParent=function(){return this.map((function(t,e){for(var n=e.offsetParent;n&&"static"===q(n,"position");)n=n.offsetParent;return n||o}))},C.position=function(){var t=this[0];if(t){var e="fixed"===q(t,"position"),n=e?t.getBoundingClientRect():this.offset();if(!e){for(var r=t.ownerDocument,i=t.offsetParent||r.documentElement;(i===r.body||i===r.documentElement)&&"static"===q(i,"position");)i=i.parentNode;if(i!==t&&U(i)){var o=x(i).offset();n.top-=o.top+Z(i,"borderTopWidth"),n.left-=o.left+Z(i,"borderLeftWidth")}}return{top:n.top-Z(t,"marginTop"),left:n.left-Z(t,"marginLeft")}}},C.children=function(t){return H(x(V(J(this,(function(t){return t.children})))),t)},C.contents=function(){return x(V(J(this,(function(t){return"IFRAME"===t.tagName?[t.contentDocument]:"TEMPLATE"===t.tagName?t.content.childNodes:t.childNodes}))))},C.find=function(t){return x(V(J(this,(function(e){return O(t,e)}))))};var Lt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Rt=/^$|^module$|\/(java|ecma)script/i,Mt=["type","src","nonce","noModule"];function Dt(t,e,n,r,i,a,u,c){return W(t,(function(t,a){W(x(a),(function(t,a){W(x(e),(function(e,u){var c=n?u:a,l=n?t:e;!function(t,e,n,r,i){r?t.insertBefore(e,n?t.firstChild:null):"HTML"===t.nodeName?t.parentNode.replaceChild(e,t):t.parentNode.insertBefore(e,n?t:t.nextSibling),i&&function(t,e){var n=x(t);n.filter("script").add(n.find("script")).each((function(t,n){if(Rt.test(n.type)&&o.contains(n)){var r=s("script");r.text=n.textContent.replace(Lt,""),W(Mt,(function(t,e){n[e]&&(r[e]=n[e])})),e.head.insertBefore(r,null),e.head.removeChild(r)}}))}(e,t.ownerDocument)}(n?a:u,l?c.cloneNode(!0):c,r,i,!l)}),c)}),u)}),a),e}C.after=function(){return Dt(arguments,this,!1,!1,!1,!0,!0)},C.append=function(){return Dt(arguments,this,!1,!1,!0)},C.appendTo=function(t){return Dt(arguments,this,!0,!1,!0)},C.before=function(){return Dt(arguments,this,!1,!0)},C.insertAfter=function(t){return Dt(arguments,this,!0,!1,!1,!1,!1,!0)},C.insertBefore=function(t){return Dt(arguments,this,!0,!0)},C.prepend=function(){return Dt(arguments,this,!1,!0,!0,!0,!0)},C.prependTo=function(t){return Dt(arguments,this,!0,!0,!0,!1,!1,!0)},C.replaceWith=function(t){return this.before(t).remove()},C.replaceAll=function(t){return x(t).replaceWith(this),this},C.wrapAll=function(t){for(var e=x(t),n=e[0];n.children.length;)n=n.firstElementChild;return this.first().before(e),this.appendTo(n)},C.wrap=function(t){return this.each((function(e,n){var r=x(t)[0];x(n).wrapAll(e?r.cloneNode(!0):r)}))},C.wrapInner=function(t){return this.each((function(e,n){var r=x(n),i=r.contents();i.length?i.wrapAll(t):r.append(t)}))},C.has=function(t){var e=B(t)?function(e,n){return O(t,n).length}:function(e,n){return n.contains(t)};return this.filter(e)},C.is=function(t){var e=K(t);return E.call(this,(function(t,n){return e.call(t,n,t)}))},C.next=function(t,e,n){return H(x(V(J(this,"nextElementSibling",e,n))),t)},C.nextAll=function(t){return this.next(t,!0)},C.nextUntil=function(t,e){return this.next(e,!0,t)},C.not=function(t){var e=K(t);return this.filter((function(n,r){return(!B(t)||U(r))&&!e.call(r,n,r)}))},C.parent=function(t){return H(x(V(J(this,"parentNode"))),t)},C.index=function(t){var e=t?x(t)[0]:this[0],n=t?this:x(e).parent().children();return v.call(n,e)},C.closest=function(t){var e=this.filter(t);if(e.length)return e;var n=this.parent();return n.length?n.closest(t):e},C.parents=function(t,e){return H(x(V(J(this,"parentElement",!0,e))),t)},C.parentsUntil=function(t,e){return this.parents(e,t)},C.prev=function(t,e,n){return H(x(V(J(this,"previousElementSibling",e,n))),t)},C.prevAll=function(t){return this.prev(t,!0)},C.prevUntil=function(t,e){return this.prev(e,!0,t)},C.siblings=function(t){return H(x(V(J(this,(function(t){return x(t).parent().children().not(t)})))),t)},t.exports=x}()},529:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(559),i=n.n(r),o=n(476),s=n.n(o)()(i());s.push([t.id,".tnu-parent {\n position: relative;\n display: block;\n}\n.tnu-indicator {\n cursor: pointer;\n margin-left: 5px;\n display: inline-block;\n}\n.tnu-indicator-dot {\n width: 10px;\n height: 10px;\n border-radius: 30px;\n margin-top: 5px;\n}\n.tnu-indicator-text {\n width: 30px;\n height: 14px;\n line-height: 14px;\n max-width: 45px;\n padding: 2px;\n border-radius: 21px;\n font-size: 9px;\n color: white;\n font-weight: bold;\n text-align: center;\n}\n.tnu-tooltip {\n position: absolute;\n z-index: 2;\n max-width: 100px;\n background-color: #beccd6;\n border: 1px solid #1E5076;\n border-radius: 10px 10px 10px 0;\n padding: 5px;\n font-size: 12px;\n font-weight: bold;\n}\n","",{version:3,sources:["webpack://./styles/app.less"],names:[],mappings:"AAEE;EACE,kBAAA;EACA,cAAA;AADJ;AAIE;EACE,eAAA;EACA,gBAAA;EACA,qBAAA;AAFJ;AAII;EACE,WAAA;EACA,YAAA;EACA,mBAAA;EACA,eAAA;AAFN;AAKI;EACE,WAAA;EACA,YAAA;EACA,iBAAA;EACA,eAAA;EACA,YAAA;EACA,mBAAA;EACA,cAAA;EACA,YAAA;EACA,iBAAA;EACA,kBAAA;AAHN;AAOE;EACE,kBAAA;EACA,UAAA;EACA,gBAAA;EACA,yBAAA;EACA,yBAAA;EACA,+BAAA;EACA,YAAA;EACA,eAAA;EACA,iBAAA;AALJ",sourcesContent:[".tnu {\n\n &-parent {\n position: relative;\n display: block;\n }\n\n &-indicator {\n cursor: pointer;\n margin-left: 5px;\n display: inline-block;\n\n &-dot {\n width: 10px;\n height: 10px;\n border-radius: 30px;\n margin-top: 5px;\n }\n\n &-text {\n width: 30px;\n height: 14px;\n line-height: 14px;\n max-width: 45px;\n padding: 2px;\n border-radius: 21px;\n font-size: 9px;\n color: white;\n font-weight: bold;\n text-align: center;\n }\n }\n\n &-tooltip {\n position: absolute;\n z-index: 2;\n max-width: 100px;\n background-color: #beccd6;\n border: 1px solid #1E5076;\n border-radius: 10px 10px 10px 0;\n padding: 5px;\n font-size: 12px;\n font-weight: bold;\n }\n}"],sourceRoot:""}]);const a=s},476:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,o){"string"==typeof t&&(t=[[null,t,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var u=this[a][0];null!=u&&(s[u]=!0)}for(var c=0;c<t.length;c++){var l=[].concat(t[c]);r&&s[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},559:t=>{"use strict";t.exports=function(t){var e=t[1],n=t[3];if(!n)return e;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),o="/*# ".concat(i," */"),s=n.sources.map((function(t){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}));return[e].concat(s).concat([o]).join("\n")}return[e].join("\n")}},564:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>A});var r=n(892),i=n.n(r),o=n(760),s=n.n(o),a=n(311),u=n.n(a),c=n(192),l=n.n(c),f=n(60),d=n.n(f),p=n(865),h=n.n(p),v=n(529),m={};m.styleTagTransform=h(),m.setAttributes=l(),m.insert=u().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=d(),i()(v.Z,m);const A=v.Z&&v.Z.locals?v.Z.locals:void 0},892:t=>{"use strict";var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var o={},s=[],a=0;a<t.length;a++){var u=t[a],c=r.base?u[0]+r.base:u[0],l=o[c]||0,f="".concat(c," ").concat(l);o[c]=l+1;var d=n(f),p={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,r);r.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}s.push(f)}return s}function i(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,i){var o=r(t=t||[],i=i||{});return function(t){t=t||[];for(var s=0;s<o.length;s++){var a=n(o[s]);e[a].references--}for(var u=r(t,i),c=0;c<o.length;c++){var l=n(o[c]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}o=u}}},311:t=>{"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},60:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},192:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},760:t=>{"use strict";t.exports=function(t){var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},865:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},174:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=r(n(216));n(564);const o=r(n(460)),s=n(88),a=n(708),u=r(n(655)),c=r(n(806)),l=r(n(827)),f=r(n(627));e.default=class{constructor(t){this.clickedItems={},this.elements={},this.colors={},this.params=t,this.clickedItems=this.getUserClickedItems(),this.validate()}validate(){var t,e;if(null===(e=null===(t=this.params)||void 0===t?void 0:t.indicators)||void 0===e?void 0:e.length)for(let t of this.params.indicators)f.default.validate(t)}generate(){(0,i.default)(`[${s.INPUT_DOM_ATTRIBUTES.INDICATOR_ID}]`).each(((t,e)=>{var n;const r=(0,i.default)(e),o=this.getOptionsFromParentAttributes(r),a=this.getOptionsFromConfig(o.id),l=Object.assign(Object.assign({},a),o);f.default.validate(l);const{indicator:d,tooltip:p}=this.getIndicatorSettings(l),h=d.id,{expiration:v}=d,m=u.default.getGroupFromId(h),{clickedItems:A}=this;if(null==A?void 0:A[h])return;if(v&&v.getTime()<(new Date).getTime())return void r.attr(s.OUTPUT_DOM_ATTRIBUTES.ERROR,`${s.INDICATOR_ERRORS.ITEM_EXPIRED}`);let g;if(this.elements[h]){if(g=this.elements[h],r.find(`.${s.ELEMENT_CLASSES.INDICATOR}`).length)return}else{this.colors[m]||(this.colors[m]=d.color||(null===(n=this.params)||void 0===n?void 0:n.defaultColor)||s.DEFAULT_INDICATOR_COLOR);const t=this.colors[m];g=c.default.getIndicator(Object.assign(Object.assign({},d),{styles:Object.assign({"background-color":`${t}`},d.styles)})),g.on(s.ELEMENT_EVENTS.CLICK,(()=>{this.onElementClicked(g,r)})),g.on(s.ELEMENT_EVENTS.MOUSE_OVER,(()=>{this.showTooltip(g,p)})),g.on(s.ELEMENT_EVENTS.MOUSE_OUT,(()=>{this.params.debugTooltip||this.hideTooltips()}))}r.append(g),this.elements[h]=g}))}getOptionsFromConfig(t){var e,n;return null===(n=null===(e=this.params)||void 0===e?void 0:e.indicators)||void 0===n?void 0:n.find((e=>e.id.includes("*")?u.default.isMatchWildcard(e.id,t):t===e.id))}getUserClickedItems(){var t,e;const n={};if(null===(t=this.params)||void 0===t?void 0:t.initialState)for(const t of null===(e=this.params)||void 0===e?void 0:e.initialState)n[t]=!0;const r=o.default.getItem(s.USER_CLICKED_ITEMS_STORAGE_KEY),i=Object.assign(Object.assign({},r),n);return o.default.setItem(s.USER_CLICKED_ITEMS_STORAGE_KEY,i),i}getOptionsFromParentAttributes(t){const e=Object.keys(a.IndicatorOptionsList),n={};for(const r of t[0].attributes)if(r.name.startsWith(s.ATTRIBUTE_PREFIX)){const t=u.default.toCamelCase(r.name.substring(s.ATTRIBUTE_PREFIX.length+1));e.includes(t)?n[t]=f.default.normalizeAttribute(t,r.value):l.default.log(`Invalid Thatsnu attribute: ${r.name}`)}return n}getIndicatorSettings(t){const{className:e}=t,{tooltipClassName:n}=t;return{indicator:{id:t.id,text:t.text,styles:t.styles,color:t.color,classNames:e?[e]:void 0,expiration:t.expiration},tooltip:{text:t.tooltipText||"New!",styles:t.tooltipStyles,classNames:n?[n]:void 0}}}onElementClicked(t,e){const n=e.attr(s.INPUT_DOM_ATTRIBUTES.INDICATOR_ID),r=u.default.getGroupFromId(n),{onClick:a}=this.params||{};if(this.clickedItems[n]=!0,this.clickedItems[r]=!0,"function"!=typeof a||a(n)){if(o.default.setItem(s.USER_CLICKED_ITEMS_STORAGE_KEY,this.clickedItems),n){e.removeAttr(s.INPUT_DOM_ATTRIBUTES.INDICATOR_ID),t.remove();const n=(0,i.default)(`[${s.INPUT_DOM_ATTRIBUTES.INDICATOR_ID}="${r}"`);this.cleanElement(n)}this.hideTooltips()}}cleanElement(t){for(const e of Object.values(s.INPUT_DOM_ATTRIBUTES))t.removeAttr(e);for(const e of Object.values(s.ELEMENT_CLASSES))t.removeClass(e);t.find(`.${s.ELEMENT_CLASSES.INDICATOR}`).remove()}showTooltip(t,e){this.hideTooltips();const n=c.default.getTooltip(e);(0,i.default)("body").append(n);const r=t.offset();n.css({top:r.top-n.height()-14,left:r.left+t.width()+9})}hideTooltips(){(0,i.default)(`.${s.ELEMENT_CLASSES.TOOLTIP}`).remove()}getState(){return Object.keys(this.clickedItems)}resetState(){o.default.removeItem(s.USER_CLICKED_ITEMS_STORAGE_KEY),this.clickedItems={}}dispose(){this.hideTooltips();const t=(0,i.default)(`[${s.INPUT_DOM_ATTRIBUTES.INDICATOR_ID}]`);for(const e of Object.values(s.INPUT_DOM_ATTRIBUTES))t.removeAttr(e).find(`.${s.ELEMENT_CLASSES.INDICATOR}`).remove();for(const t of Object.values(this.elements))for(const e of Object.values(s.ELEMENT_EVENTS))t.off(e);for(const t of Object.values(s.OUTPUT_DOM_ATTRIBUTES))(0,i.default)(`[${t}]`).removeAttr(t);this.resetState()}}},88:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.INDICATOR_ERRORS=e.DEFAULT_INDICATOR_COLOR=e.ELEMENT_EVENTS=e.ELEMENT_CLASSES=e.OUTPUT_DOM_ATTRIBUTES=e.INPUT_DOM_ATTRIBUTES=e.ATTRIBUTE_PREFIX=e.USER_CLICKED_ITEMS_STORAGE_KEY=void 0,e.USER_CLICKED_ITEMS_STORAGE_KEY="usersWatches",e.ATTRIBUTE_PREFIX="data-tnu",e.INPUT_DOM_ATTRIBUTES={PARENT_STYLES:"data-tnu-parent-styles",PARENT_CLASS_NAME:"data-tnu-parent-class-name",INDICATOR_ID:"data-tnu-id",INDICATOR_TEXT:"data-tnu-text",INDICATOR_STYLES:"data-tnu-styles",INDICATOR_CLASS_NAME:"data-tnu-class-name",INDICATOR_EXPIRATION:"data-tnu-expiration",TOOLTIP_TEXT:"data-tnu-tooltip-text",TOOLTIP_STYLES:"data-tnu-tooltip-styles",TOOLTIP_CLASS_NAME:"data-tnu-tooltip-class-name"},e.OUTPUT_DOM_ATTRIBUTES={ERROR:"data-tnu-error"},e.ELEMENT_CLASSES={INDICATOR:"tnu-indicator",INDICATOR_DOT_STYLE:"tnu-indicator-dot",INDICATOR_TEXT_STYLE:"tnu-indicator-text",TOOLTIP:"tnu-tooltip"},e.ELEMENT_EVENTS={CLICK:"click",MOUSE_OVER:"mouseover",MOUSE_OUT:"mouseout"},e.DEFAULT_INDICATOR_COLOR="#462a68",e.INDICATOR_ERRORS={ITEM_EXPIRED:1}},303:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=r(n(174)),o=r(n(509));let s;const a={async init(t){window.thasnuInitialized||(window.thasnuInitialized=!0,s=new i.default(t),o.default.observe((()=>{s.generate()})))},getState:()=>s.getState(),resetState(){s.resetState()},dispose(){null==s||s.dispose(),o.default.dispose(),s=null,delete window.thasnuInitialized}};"function"==typeof(null===window||void 0===window?void 0:window.onThatsnuLoaded)&&(null===window||void 0===window||window.onThatsnuLoaded(a)),e.default=a},708:(t,e)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.IndicatorOptionsList=void 0,(n=e.IndicatorOptionsList||(e.IndicatorOptionsList={})).id="id",n.text="text",n.className="className",n.styles="styles",n.color="color",n.expiration="expiration",n.tooltipText="tooltipText",n.tooltipClassName="tooltipClassName",n.tooltipStyles="tooltipStyles"},806:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=r(n(216)),o=n(88),s=({type:t,text:e,styles:n,classNames:r})=>{const o=(0,i.default)(`<${t}>`);return(null==r?void 0:r.length)&&a.addClassesToElement(o,r),n&&o.css(n),e&&o.text(e),o},a={getIndicator(t){const{text:e,styles:n,classNames:r}=t;let i=[o.ELEMENT_CLASSES.INDICATOR];return(null==r?void 0:r.length)&&(i=i.concat(r)),e?i.push(o.ELEMENT_CLASSES.INDICATOR_TEXT_STYLE):i.push(o.ELEMENT_CLASSES.INDICATOR_DOT_STYLE),s({text:e,type:"span",styles:n,classNames:i})},getTooltip(t){(0,i.default)("<div>").addClass(o.ELEMENT_CLASSES.TOOLTIP);const{text:e,styles:n,classNames:r}=t;let a=[o.ELEMENT_CLASSES.TOOLTIP];return(null==r?void 0:r.length)&&(a=a.concat(r)),s({type:"div",text:e,styles:n,classNames:a})},getStylesFromString(t){try{return JSON.parse(t)}catch(t){}},addClassesToElement(t,e){for(const n of e)n&&t.addClass(n)}};e.default=a},509:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(88);let i;e.default=new class{observe(t){i=new MutationObserver((()=>{t()})),i.observe(document.body,{attributes:!0,childList:!0,subtree:!0,attributeFilter:[r.INPUT_DOM_ATTRIBUTES.INDICATOR_ID]}),t()}dispose(){i&&i.disconnect()}}},655:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=r(n(489));e.default={getGroupFromId(t){const e=null==t?void 0:t.split(".");if(!(null==e?void 0:e[0]))throw new Error("Invalid level");return e[0]},toCamelCase:t=>null==t?void 0:t.replace(/(-.)/g,(t=>t[1].toUpperCase())),isMatchWildcard:(t,e)=>(0,i.default)(t)(e)}},827:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=console},627:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=n(708),o=r(n(806)),s=(t,e)=>{try{switch(t){case i.IndicatorOptionsList.id:if(!e)throw new Error("ID must be provided");break;case i.IndicatorOptionsList.expiration:if(e&&(!(e instanceof Date)||isNaN(e.getTime())))throw new Error("Expiration must be a valid date");break;case i.IndicatorOptionsList.className:case i.IndicatorOptionsList.tooltipClassName:if(e&&("string"!=typeof e||/\s/.test(e)))throw new Error("className must be a string and without spaces");break;case i.IndicatorOptionsList.styles:case i.IndicatorOptionsList.tooltipStyles:if(e&&"object"!=typeof e)throw new Error("styles must be an object with valid CSS rules")}return!0}catch(e){throw new Error(`Invalid option '${t}' | ${e.message}`)}};e.default={normalizeAttribute(t,e){switch(t){case i.IndicatorOptionsList.expiration:if("string"==typeof e){const t=new Date(e);if(!(t instanceof Date)||isNaN(t.getTime()))throw new Error("Invalid expiration date");return t}break;case i.IndicatorOptionsList.styles:case i.IndicatorOptionsList.tooltipStyles:if("string"==typeof e)return o.default.getStylesFromString(e)}return e},validate(t){const e=Object.keys(t),n=Object.keys(i.IndicatorOptionsList);for(const r of e){if(!n.includes(r))throw new Error(`Invalid indicator option: ${r}`);s(r,t[r])}}}},460:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={getItem:t=>JSON.parse(localStorage.getItem(t)),setItem:(t,e)=>localStorage.setItem(t,JSON.stringify(e)),removeItem:t=>localStorage.removeItem(t)}},489:t=>{"use strict";function e(t){return"-"===t||"^"===t||"$"===t||"+"===t||"."===t||"("===t||")"===t||"|"===t||"["===t||"]"===t||"{"===t||"}"===t||"*"===t||"?"===t||"\\"===t?"\\"+t:t}function n(t,r){if(void 0===r&&(r=!0),Array.isArray(t))return"(?:"+t.map((function(t){return"^"+n(t,r)+"$"})).join("|")+")";var i="",o="",s=".";!0===r?(i="/",o="[/\\\\]",s="[^/\\\\]"):r&&(o=function(t){for(var n="",r=0;r<t.length;r++)n+=e(t[r]);return n}(i=r),s=o.length>1?"((?!"+(o="(?:"+o+")")+").)":"[^"+o+"]");for(var a=r?o+"+?":"",u=r?o+"*?":"",c=r?t.split(i):[t],l="",f=0;f<c.length;f++){var d=c[f],p=c[f+1],h="";if(d||!(f>0))if(r&&(h=f===c.length-1?u:"**"!==p?a:""),r&&"**"===d)h&&(l+=0===f?"":h,l+="(?:"+s+"*?"+h+")*?");else{for(var v=0;v<d.length;v++){var m=d[v];"\\"===m?v<d.length-1&&(l+=e(d[v+1]),v++):l+="?"===m?s:"*"===m?s+"*?":e(m)}l+=h}}return l}function r(t,e){if("string"!=typeof e)throw new TypeError("Sample must be a string, but "+typeof e+" given");return t.test(e)}t.exports=function(t,e){if("string"!=typeof t&&!Array.isArray(t))throw new TypeError("The first argument must be a single pattern string or an array of patterns, but "+typeof t+" given");if("string"!=typeof e&&"boolean"!=typeof e||(e={separator:e}),2===arguments.length&&void 0!==e&&("object"!=typeof e||null===e||Array.isArray(e)))throw new TypeError("The second argument must be an options object or a string/boolean separator, but "+typeof e+" given");if("\\"===(e=e||{}).separator)throw new Error("\\ is not a valid separator because it is used for escaping. Try setting the separator to `true` instead");var i=n(t,e.separator),o=new RegExp("^"+i+"$",e.flags),s=r.bind(null,o);return s.options=e,s.pattern=t,s.regexp=o,s}}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={id:r,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}return n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nc=void 0,n(303)})()));
//# sourceMappingURL=index.js.map

@@ -13,3 +13,18 @@ declare type onUserClickedFunction = (id: string) => boolean;

}
export declare type IndicatorOptions = Partial<Record<IndicatorOptionsList, any>>;
export declare type IndicatorOptions = {
id?: string;
text?: string;
className?: string;
styles?: ElementStyles;
color?: string;
expiration?: Date;
tooltipText?: string;
tooltipClassName?: string;
tooltipStyles?: ElementStyles;
};
export declare type IndicatorAttributes = Omit<IndicatorOptions, 'styles' | 'expiration' | 'tooltipStyles'> & {
styles?: string;
expiration?: string;
tooltipStyles?: string;
};
export declare type AppParams = {

@@ -36,3 +51,3 @@ initialState?: Array<string>;

export declare type ElementStyles = {
[key: string]: string;
[key: string]: string | number;
};

@@ -39,0 +54,0 @@ export declare type IndicatorElementSettings = {

{
"name": "@thatsnu/browser-sdk",
"version": "1.0.7",
"version": "1.0.8",
"description": "Thatsnu.com browser SDK",

@@ -47,2 +47,3 @@ "keywords": [

"less-loader": "^11.0.0",
"moment": "^2.29.4",
"style-loader": "^3.3.1",

@@ -49,0 +50,0 @@ "ts-jest": "^29.0.1",

@@ -118,2 +118,5 @@ <div style="text-align: center">

If an HTML attribute will be provided in addition, it has more power than the object property, and it'll override it.
<br><br>
The `id` property can be also a wildcard (e.g. `feature.*`) to let you configure multiple and/or dynamic
Indicators in one object.
</td>

@@ -120,0 +123,0 @@ <td>&nbsp</td>

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet