File manager - Edit - /home/monara/public_html/Hotel_Sapphire/wp-content/plugins/wp-whatsapp/assets/dist/js/app.js
Back
(()=>{var t={353:function(t){t.exports=function(){"use strict";var t=1e3,e=6e4,n=36e5,i="millisecond",o="second",r="minute",a="hour",s="day",c="week",u="month",l="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},v=function(t,e,n){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(n)+t},b={s:v,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),o=n%60;return(e<=0?"+":"-")+v(i,2,"0")+":"+v(o,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var i=12*(n.year()-e.year())+(n.month()-e.month()),o=e.clone().add(i,u),r=n-o<0,a=e.clone().add(i+(r?-1:1),u);return+(-(i+(n-o)/(r?o-a:a-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:u,y:d,w:c,d:s,D:f,h:a,m:r,s:o,ms:i,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",w={};w[y]=g;var _=function(t){return t instanceof A},T=function(t,e,n){var i;if(!t)return y;if("string"==typeof t)w[t]&&(i=t),e&&(w[t]=e,i=t);else{var o=t.name;w[o]=t,i=o}return!n&&i&&(y=i),i||!n&&y},x=function(t,e){if(_(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new A(n)},O=b;O.l=T,O.i=_,O.w=function(t,e){return x(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var A=function(){function g(t){this.$L=T(t.locale,null,!0),this.parse(t)}var v=g.prototype;return v.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(h);if(i){var o=i[2]-1||0,r=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],o,i[3]||1,i[4]||0,i[5]||0,i[6]||0,r)):new Date(i[1],o,i[3]||1,i[4]||0,i[5]||0,i[6]||0,r)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},v.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},v.$utils=function(){return O},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(t,e){var n=x(t);return this.startOf(e)<=n&&n<=this.endOf(e)},v.isAfter=function(t,e){return x(t)<this.startOf(e)},v.isBefore=function(t,e){return this.endOf(e)<x(t)},v.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(t,e){var n=this,i=!!O.u(e)||e,l=O.p(t),p=function(t,e){var o=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return i?o:o.endOf(s)},h=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},m=this.$W,g=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(l){case d:return i?p(1,0):p(31,11);case u:return i?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,w=(m<y?m+7:m)-y;return p(i?v-w:v+(6-w),g);case s:case f:return h(b+"Hours",0);case a:return h(b+"Minutes",1);case r:return h(b+"Seconds",2);case o:return h(b+"Milliseconds",3);default:return this.clone()}},v.endOf=function(t){return this.startOf(t,!1)},v.$set=function(t,e){var n,c=O.p(t),l="set"+(this.$u?"UTC":""),p=(n={},n[s]=l+"Date",n[f]=l+"Date",n[u]=l+"Month",n[d]=l+"FullYear",n[a]=l+"Hours",n[r]=l+"Minutes",n[o]=l+"Seconds",n[i]=l+"Milliseconds",n)[c],h=c===s?this.$D+(e-this.$W):e;if(c===u||c===d){var m=this.clone().set(f,1);m.$d[p](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},v.set=function(t,e){return this.clone().$set(t,e)},v.get=function(t){return this[O.p(t)]()},v.add=function(i,l){var f,p=this;i=Number(i);var h=O.p(l),m=function(t){var e=x(p);return O.w(e.date(e.date()+Math.round(t*i)),p)};if(h===u)return this.set(u,this.$M+i);if(h===d)return this.set(d,this.$y+i);if(h===s)return m(1);if(h===c)return m(7);var g=(f={},f[r]=e,f[a]=n,f[o]=t,f)[h]||1,v=this.$d.getTime()+i*g;return O.w(v,this)},v.subtract=function(t,e){return this.add(-1*t,e)},v.format=function(t){var e=this;if(!this.isValid())return p;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),o=this.$locale(),r=this.$H,a=this.$m,s=this.$M,c=o.weekdays,u=o.months,l=function(t,i,o,r){return t&&(t[i]||t(e,n))||o[i].substr(0,r)},d=function(t){return O.s(r%12||12,t,"0")},f=o.meridiem||function(t,e,n){var i=t<12?"AM":"PM";return n?i.toLowerCase():i},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:O.s(s+1,2,"0"),MMM:l(o.monthsShort,s,u,3),MMMM:l(u,s),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:l(o.weekdaysMin,this.$W,c,2),ddd:l(o.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(r),HH:O.s(r,2,"0"),h:d(1),hh:d(2),a:f(r,a,!0),A:f(r,a,!1),m:String(a),mm:O.s(a,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return n.replace(m,function(t,e){return e||h[t]||i.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(i,f,p){var h,m=O.p(f),g=x(i),v=(g.utcOffset()-this.utcOffset())*e,b=this-g,y=O.m(this,g);return y=(h={},h[d]=y/12,h[u]=y,h[l]=y/3,h[c]=(b-v)/6048e5,h[s]=(b-v)/864e5,h[a]=b/n,h[r]=b/e,h[o]=b/t,h)[m]||b,p?y:O.a(y)},v.daysInMonth=function(){return this.endOf(u).$D},v.$locale=function(){return w[this.$L]},v.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),i=T(t,e,!0);return i&&(n.$L=i),n},v.clone=function(){return O.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),S=A.prototype;return x.prototype=S,[["$ms",i],["$s",o],["$m",r],["$H",a],["$W",s],["$M",u],["$y",d],["$D",f]].forEach(function(t){S[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),x.extend=function(t,e){return t.$i||(t(e,A,x),t.$i=!0),x},x.locale=T,x.isDayjs=_,x.unix=function(t){return x(1e3*t)},x.en=w[y],x.Ls=w,x.p={},x}()},522:function(t){t.exports=function(){"use strict";var t,e,n=1e3,i=6e4,o=36e5,r=864e5,a=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,c=2592e6,u=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l={years:s,months:c,days:r,hours:o,minutes:i,seconds:n,milliseconds:1,weeks:6048e5},d=function(t){return t instanceof b},f=function(t,e,n){return new b(t,n,e.$l)},p=function(t){return e.p(t)+"s"},h=function(t){return t<0},m=function(t){return h(t)?Math.ceil(t):Math.floor(t)},g=function(t){return Math.abs(t)},v=function(t,e){return t?h(t)?{negative:!0,format:""+g(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},b=function(){function h(t,e,n){var i=this;if(this.$d={},this.$l=n,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),e)return f(t*l[p(e)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach(function(e){i.$d[p(e)]=t[e]}),this.calMilliseconds(),this;if("string"==typeof t){var o=t.match(u);if(o){var r=o.slice(2).map(function(t){return Number(t)});return this.$d.years=r[0],this.$d.months=r[1],this.$d.weeks=r[2],this.$d.days=r[3],this.$d.hours=r[4],this.$d.minutes=r[5],this.$d.seconds=r[6],this.calMilliseconds(),this}}return this}var g=h.prototype;return g.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce(function(e,n){return e+(t.$d[n]||0)*l[n]},0)},g.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=m(t/s),t%=s,this.$d.months=m(t/c),t%=c,this.$d.days=m(t/r),t%=r,this.$d.hours=m(t/o),t%=o,this.$d.minutes=m(t/i),t%=i,this.$d.seconds=m(t/n),t%=n,this.$d.milliseconds=t},g.toISOString=function(){var t=v(this.$d.years,"Y"),e=v(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var i=v(n,"D"),o=v(this.$d.hours,"H"),r=v(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3);var s=v(a,"S"),c=t.negative||e.negative||i.negative||o.negative||r.negative||s.negative,u=o.format||r.format||s.format?"T":"",l=(c?"-":"")+"P"+t.format+e.format+i.format+u+o.format+r.format+s.format;return"P"===l||"-P"===l?"P0D":l},g.toJSON=function(){return this.toISOString()},g.format=function(t){var n=t||"YYYY-MM-DDTHH:mm:ss",i={Y:this.$d.years,YY:e.s(this.$d.years,2,"0"),YYYY:e.s(this.$d.years,4,"0"),M:this.$d.months,MM:e.s(this.$d.months,2,"0"),D:this.$d.days,DD:e.s(this.$d.days,2,"0"),H:this.$d.hours,HH:e.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:e.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:e.s(this.$d.seconds,2,"0"),SSS:e.s(this.$d.milliseconds,3,"0")};return n.replace(a,function(t,e){return e||String(i[t])})},g.as=function(t){return this.$ms/l[p(t)]},g.get=function(t){var e=this.$ms,n=p(t);return"milliseconds"===n?e%=1e3:e="weeks"===n?m(e/l[n]):this.$d[n],0===e?0:e},g.add=function(t,e,n){var i;return i=e?t*l[p(e)]:d(t)?t.$ms:f(t,this).$ms,f(this.$ms+i*(n?-1:1),this)},g.subtract=function(t,e){return this.add(t,e,!0)},g.locale=function(t){var e=this.clone();return e.$l=t,e},g.clone=function(){return f(this.$ms,this)},g.humanize=function(e){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},g.milliseconds=function(){return this.get("milliseconds")},g.asMilliseconds=function(){return this.as("milliseconds")},g.seconds=function(){return this.get("seconds")},g.asSeconds=function(){return this.as("seconds")},g.minutes=function(){return this.get("minutes")},g.asMinutes=function(){return this.as("minutes")},g.hours=function(){return this.get("hours")},g.asHours=function(){return this.as("hours")},g.days=function(){return this.get("days")},g.asDays=function(){return this.as("days")},g.weeks=function(){return this.get("weeks")},g.asWeeks=function(){return this.as("weeks")},g.months=function(){return this.get("months")},g.asMonths=function(){return this.as("months")},g.years=function(){return this.get("years")},g.asYears=function(){return this.as("years")},h}();return function(n,i,o){t=o,e=o().$utils(),o.duration=function(t,e){var n=o.locale();return f(t,{$l:n},e)},o.isDuration=d;var r=i.prototype.add,a=i.prototype.subtract;i.prototype.add=function(t,e){return d(t)&&(t=t.asMilliseconds()),r.bind(this)(t,e)},i.prototype.subtract=function(t,e){return d(t)&&(t=t.asMilliseconds()),a.bind(this)(t,e)}}}()},569:function(t){t.exports=function(){"use strict";var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(n,i,o){var r,a=function(t,n,i){void 0===i&&(i={});var o=new Date(t);return function(t,n){void 0===n&&(n={});var i=n.timeZoneName||"short",o=t+"|"+i,r=e[o];return r||(r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:i}),e[o]=r),r}(n,i).formatToParts(o)},s=function(e,n){for(var i=a(e,n),r=[],s=0;s<i.length;s+=1){var c=i[s],u=c.type,l=c.value,d=t[u];d>=0&&(r[d]=parseInt(l,10))}var f=r[3],p=24===f?0:f,h=r[0]+"-"+r[1]+"-"+r[2]+" "+p+":"+r[4]+":"+r[5]+":000",m=+e;return(o.utc(h).valueOf()-(m-=m%1e3))/6e4},c=i.prototype;c.tz=function(t,e){void 0===t&&(t=r);var n=this.utcOffset(),i=this.toDate(),a=i.toLocaleString("en-US",{timeZone:t}),s=Math.round((i-new Date(a))/1e3/60),c=o(a).$set("millisecond",this.$ms).utcOffset(15*-Math.round(i.getTimezoneOffset()/15)-s,!0);if(e){var u=c.utcOffset();c=c.add(n-u,"minute")}return c.$x.$timezone=t,c},c.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),e,{timeZoneName:t}).find(function(t){return"timezonename"===t.type.toLowerCase()});return n&&n.value};var u=c.startOf;c.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return u.call(this,t,e);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return u.call(n,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,n){var i=n&&e,a=n||e||r,c=s(+o(),a);if("string"!=typeof t)return o(t).tz(a);var u=function(t,e,n){var i=t-60*e*1e3,o=s(i,n);if(e===o)return[i,e];var r=s(i-=60*(o-e)*1e3,n);return o===r?[i,o]:[t-60*Math.min(o,r)*1e3,Math.max(o,r)]}(o.utc(t,i).valueOf(),c,a),l=u[0],d=u[1],f=o(l).utcOffset(d);return f.$x.$timezone=a,f},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){r=t}}}()},826:function(t){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(i,o,r){var a=o.prototype;r.utc=function(t){return new o({date:t,utc:!0,args:arguments})},a.utc=function(e){var n=r(this.toDate(),{locale:this.$L,utc:!0});return e?n.add(this.utcOffset(),t):n},a.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),s.call(this,t)};var c=a.init;a.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else c.call(this)};var u=a.utcOffset;a.utcOffset=function(i,o){var r=this.$utils().u;if(r(i))return this.$u?0:r(this.$offset)?u.call(this):this.$offset;if("string"==typeof i&&null===(i=function(t){void 0===t&&(t="");var i=t.match(e);if(!i)return null;var o=(""+i[0]).match(n)||["-",0,0],r=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===r?a:-a}(i)))return this;var a=Math.abs(i)<=16?60*i:i,s=this;if(o)return s.$offset=a,s.$u=0===i,s;if(0!==i){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+c,t)).$offset=a,s.$x.$localOffset=c}else s=this.utc();return s};var l=a.format;a.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,e)},a.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||(new Date).getTimezoneOffset());return this.$d.valueOf()-6e4*t},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(t){return"s"===t&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=a.diff;a.diff=function(t,e,n){if(t&&this.$u===t.$u)return f.call(this,t,e,n);var i=this.local(),o=r(t).local();return f.call(i,o,e,n)}}}()}},e={};function n(i){var o=e[i];if(void 0!==o)return o.exports;var r=e[i]={exports:{}};return t[i].call(r.exports,r,r.exports,n),r.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t=n(353),e=n.n(t),i=n(826),o=n.n(i),r=n(522),a=n.n(r),s=n(569),c=n.n(s);e().extend(o()),e().extend(a()),e().extend(c());const u=window.jQuery,l={autocompleteLoading:function(t){!0!==t?u("#input-users").removeClass("ui-autocomplete-loading"):u("#input-users").addClass("ui-autocomplete-loading")},saveLoading:function(t){t?(u(".wa-save").addClass("disabled"),u(".wa-save span").addClass("dashicons dashicons-update wa-save-loading")):(u(".wa-save").removeClass("disabled"),u(".wa-save span").removeClass("dashicons dashicons-update wa-save-loading"))},parseUtcOffset:function(t){const e=t.split(":");let n,i;return 2===e.length?(n=parseInt(e[0]),i=parseInt(e[1])):(n=parseInt(e[0]),i=0),-1!==t.indexOf("-")?-(60*Math.abs(n)+i):60*n+i},parseTime:function(t){const e=(t||"").split(":");if(e.length>=2){return{hours:parseInt(e[0],10),minutes:parseInt(e[1],10)}}return null},compareTime:function(t,e){const n=this.parseTime(t),i=this.parseTime(e),o=n.minutes+60*n.hours,r=i.minutes+60*i.hours;return o===r?0:o>r?1:-1},hasNumber:function(t){return/\d/.test(t)},calcDiffDuration:function(t,e){return 1e3*(3600*(t.hour-e.hour)+60*(t.minute-e.minute))},getBackTime:function(t){return"online"}},d=l,{entries:f,setPrototypeOf:p,isFrozen:h,getPrototypeOf:m,getOwnPropertyDescriptor:g}=Object;let{freeze:v,seal:b,create:y}=Object,{apply:w,construct:T}="undefined"!=typeof Reflect&&Reflect;v||(v=function(t){return t}),b||(b=function(t){return t}),w||(w=function(t,e,n){return t.apply(e,n)}),T||(T=function(t,e){return new t(...e)});const x=P(Array.prototype.forEach),O=P(Array.prototype.lastIndexOf),A=P(Array.prototype.pop),S=P(Array.prototype.push),E=P(Array.prototype.splice),D=P(String.prototype.toLowerCase),C=P(String.prototype.toString),k=P(String.prototype.match),$=P(String.prototype.replace),M=P(String.prototype.indexOf),L=P(String.prototype.trim),N=P(Object.prototype.hasOwnProperty),I=P(RegExp.prototype.test),j=(R=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return T(R,e)});var R;function P(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return w(t,e,i)}}function H(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:D;p&&p(t,null);let i=e.length;for(;i--;){let o=e[i];if("string"==typeof o){const t=n(o);t!==o&&(h(e)||(e[i]=t),o=t)}t[o]=!0}return t}function z(t){for(let e=0;e<t.length;e++){N(t,e)||(t[e]=null)}return t}function B(t){const e=y(null);for(const[n,i]of f(t)){N(t,n)&&(Array.isArray(i)?e[n]=z(i):i&&"object"==typeof i&&i.constructor===Object?e[n]=B(i):e[n]=i)}return e}function U(t,e){for(;null!==t;){const n=g(t,e);if(n){if(n.get)return P(n.get);if("function"==typeof n.value)return P(n.value)}t=m(t)}return function(){return null}}const W=v(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),F=v(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Y=v(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),V=v(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),G=v(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),q=v(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Q=v(["#text"]),Z=v(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),X=v(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),J=v(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),K=v(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),tt=b(/\{\{[\w\W]*|[\w\W]*\}\}/gm),et=b(/<%[\w\W]*|[\w\W]*%>/gm),nt=b(/\$\{[\w\W]*/gm),it=b(/^data-[\-\w.\u00B7-\uFFFF]+$/),ot=b(/^aria-[\-\w]+$/),rt=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),at=b(/^(?:\w+script|data):/i),st=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ct=b(/^html$/i),ut=b(/^[a-z][.\w]*(-[.\w]+)+$/i);var lt=Object.freeze({__proto__:null,ARIA_ATTR:ot,ATTR_WHITESPACE:st,CUSTOM_ELEMENT:ut,DATA_ATTR:it,DOCTYPE_NAME:ct,ERB_EXPR:et,IS_ALLOWED_URI:rt,IS_SCRIPT_OR_DATA:at,MUSTACHE_EXPR:tt,TMPLIT_EXPR:nt});const dt=1,ft=3,pt=7,ht=8,mt=9,gt=function(){return"undefined"==typeof window?null:window};var vt=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gt();const n=e=>t(e);if(n.version="3.2.6",n.removed=[],!e||!e.document||e.document.nodeType!==mt||!e.Element)return n.isSupported=!1,n;let{document:i}=e;const o=i,r=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:c,Element:u,NodeFilter:l,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:p,DOMParser:h,trustedTypes:m}=e,g=u.prototype,b=U(g,"cloneNode"),w=U(g,"remove"),_=U(g,"nextSibling"),T=U(g,"childNodes"),R=U(g,"parentNode");if("function"==typeof s){const t=i.createElement("template");t.content&&t.content.ownerDocument&&(i=t.content.ownerDocument)}let P,z="";const{implementation:tt,createNodeIterator:et,createDocumentFragment:nt,getElementsByTagName:it}=i,{importNode:ot}=o;let at={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof f&&"function"==typeof R&&tt&&void 0!==tt.createHTMLDocument;const{MUSTACHE_EXPR:st,ERB_EXPR:ut,TMPLIT_EXPR:vt,DATA_ATTR:bt,ARIA_ATTR:yt,IS_SCRIPT_OR_DATA:wt,ATTR_WHITESPACE:_t,CUSTOM_ELEMENT:Tt}=lt;let{IS_ALLOWED_URI:xt}=lt,Ot=null;const At=H({},[...W,...F,...Y,...G,...Q]);let St=null;const Et=H({},[...Z,...X,...J,...K]);let Dt=Object.seal(y(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ct=null,kt=null,$t=!0,Mt=!0,Lt=!1,Nt=!0,It=!1,jt=!0,Rt=!1,Pt=!1,Ht=!1,zt=!1,Bt=!1,Ut=!1,Wt=!0,Ft=!1,Yt=!0,Vt=!1,Gt={},qt=null;const Qt=H({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Zt=null;const Xt=H({},["audio","video","img","source","image","track"]);let Jt=null;const Kt=H({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),te="http://www.w3.org/1998/Math/MathML",ee="http://www.w3.org/2000/svg",ne="http://www.w3.org/1999/xhtml";let ie=ne,oe=!1,re=null;const ae=H({},[te,ee,ne],C);let se=H({},["mi","mo","mn","ms","mtext"]),ce=H({},["annotation-xml"]);const ue=H({},["title","style","font","a","script"]);let le=null;const de=["application/xhtml+xml","text/html"];let fe=null,pe=null;const he=i.createElement("form"),me=function(t){return t instanceof RegExp||t instanceof Function},ge=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!pe||pe!==t){if(t&&"object"==typeof t||(t={}),t=B(t),le=-1===de.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,fe="application/xhtml+xml"===le?C:D,Ot=N(t,"ALLOWED_TAGS")?H({},t.ALLOWED_TAGS,fe):At,St=N(t,"ALLOWED_ATTR")?H({},t.ALLOWED_ATTR,fe):Et,re=N(t,"ALLOWED_NAMESPACES")?H({},t.ALLOWED_NAMESPACES,C):ae,Jt=N(t,"ADD_URI_SAFE_ATTR")?H(B(Kt),t.ADD_URI_SAFE_ATTR,fe):Kt,Zt=N(t,"ADD_DATA_URI_TAGS")?H(B(Xt),t.ADD_DATA_URI_TAGS,fe):Xt,qt=N(t,"FORBID_CONTENTS")?H({},t.FORBID_CONTENTS,fe):Qt,Ct=N(t,"FORBID_TAGS")?H({},t.FORBID_TAGS,fe):B({}),kt=N(t,"FORBID_ATTR")?H({},t.FORBID_ATTR,fe):B({}),Gt=!!N(t,"USE_PROFILES")&&t.USE_PROFILES,$t=!1!==t.ALLOW_ARIA_ATTR,Mt=!1!==t.ALLOW_DATA_ATTR,Lt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Nt=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,It=t.SAFE_FOR_TEMPLATES||!1,jt=!1!==t.SAFE_FOR_XML,Rt=t.WHOLE_DOCUMENT||!1,zt=t.RETURN_DOM||!1,Bt=t.RETURN_DOM_FRAGMENT||!1,Ut=t.RETURN_TRUSTED_TYPE||!1,Ht=t.FORCE_BODY||!1,Wt=!1!==t.SANITIZE_DOM,Ft=t.SANITIZE_NAMED_PROPS||!1,Yt=!1!==t.KEEP_CONTENT,Vt=t.IN_PLACE||!1,xt=t.ALLOWED_URI_REGEXP||rt,ie=t.NAMESPACE||ne,se=t.MATHML_TEXT_INTEGRATION_POINTS||se,ce=t.HTML_INTEGRATION_POINTS||ce,Dt=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&me(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Dt.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&me(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Dt.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Dt.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),It&&(Mt=!1),Bt&&(zt=!0),Gt&&(Ot=H({},Q),St=[],!0===Gt.html&&(H(Ot,W),H(St,Z)),!0===Gt.svg&&(H(Ot,F),H(St,X),H(St,K)),!0===Gt.svgFilters&&(H(Ot,Y),H(St,X),H(St,K)),!0===Gt.mathMl&&(H(Ot,G),H(St,J),H(St,K))),t.ADD_TAGS&&(Ot===At&&(Ot=B(Ot)),H(Ot,t.ADD_TAGS,fe)),t.ADD_ATTR&&(St===Et&&(St=B(St)),H(St,t.ADD_ATTR,fe)),t.ADD_URI_SAFE_ATTR&&H(Jt,t.ADD_URI_SAFE_ATTR,fe),t.FORBID_CONTENTS&&(qt===Qt&&(qt=B(qt)),H(qt,t.FORBID_CONTENTS,fe)),Yt&&(Ot["#text"]=!0),Rt&&H(Ot,["html","head","body"]),Ot.table&&(H(Ot,["tbody"]),delete Ct.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw j('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw j('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');P=t.TRUSTED_TYPES_POLICY,z=P.createHTML("")}else void 0===P&&(P=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(n=e.getAttribute(i));const o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(m,r)),null!==P&&"string"==typeof z&&(z=P.createHTML(""));v&&v(t),pe=t}},ve=H({},[...F,...Y,...V]),be=H({},[...G,...q]),ye=function(t){S(n.removed,{element:t});try{R(t).removeChild(t)}catch(e){w(t)}},we=function(t,e){try{S(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){S(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(zt||Bt)try{ye(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},_e=function(t){let e=null,n=null;if(Ht)t="<remove></remove>"+t;else{const e=k(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===le&&ie===ne&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=P?P.createHTML(t):t;if(ie===ne)try{e=(new h).parseFromString(o,le)}catch(t){}if(!e||!e.documentElement){e=tt.createDocument(ie,"template",null);try{e.documentElement.innerHTML=oe?z:o}catch(t){}}const r=e.body||e.documentElement;return t&&n&&r.insertBefore(i.createTextNode(n),r.childNodes[0]||null),ie===ne?it.call(e,Rt?"html":"body")[0]:Rt?e.documentElement:r},Te=function(t){return et.call(t.ownerDocument||t,t,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},xe=function(t){return t instanceof p&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof d)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Oe=function(t){return"function"==typeof c&&t instanceof c};function Ae(t,e,i){x(t,t=>{t.call(n,e,i,pe)})}const Se=function(t){let e=null;if(Ae(at.beforeSanitizeElements,t,null),xe(t))return ye(t),!0;const i=fe(t.nodeName);if(Ae(at.uponSanitizeElement,t,{tagName:i,allowedTags:Ot}),jt&&t.hasChildNodes()&&!Oe(t.firstElementChild)&&I(/<[/\w!]/g,t.innerHTML)&&I(/<[/\w!]/g,t.textContent))return ye(t),!0;if(t.nodeType===pt)return ye(t),!0;if(jt&&t.nodeType===ht&&I(/<[/\w]/g,t.data))return ye(t),!0;if(!Ot[i]||Ct[i]){if(!Ct[i]&&De(i)){if(Dt.tagNameCheck instanceof RegExp&&I(Dt.tagNameCheck,i))return!1;if(Dt.tagNameCheck instanceof Function&&Dt.tagNameCheck(i))return!1}if(Yt&&!qt[i]){const e=R(t)||t.parentNode,n=T(t)||t.childNodes;if(n&&e){for(let i=n.length-1;i>=0;--i){const o=b(n[i],!0);o.__removalCount=(t.__removalCount||0)+1,e.insertBefore(o,_(t))}}}return ye(t),!0}return t instanceof u&&!function(t){let e=R(t);e&&e.tagName||(e={namespaceURI:ie,tagName:"template"});const n=D(t.tagName),i=D(e.tagName);return!!re[t.namespaceURI]&&(t.namespaceURI===ee?e.namespaceURI===ne?"svg"===n:e.namespaceURI===te?"svg"===n&&("annotation-xml"===i||se[i]):Boolean(ve[n]):t.namespaceURI===te?e.namespaceURI===ne?"math"===n:e.namespaceURI===ee?"math"===n&&ce[i]:Boolean(be[n]):t.namespaceURI===ne?!(e.namespaceURI===ee&&!ce[i])&&!(e.namespaceURI===te&&!se[i])&&!be[n]&&(ue[n]||!ve[n]):!("application/xhtml+xml"!==le||!re[t.namespaceURI]))}(t)?(ye(t),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!I(/<\/no(script|embed|frames)/i,t.innerHTML)?(It&&t.nodeType===ft&&(e=t.textContent,x([st,ut,vt],t=>{e=$(e,t," ")}),t.textContent!==e&&(S(n.removed,{element:t.cloneNode()}),t.textContent=e)),Ae(at.afterSanitizeElements,t,null),!1):(ye(t),!0)},Ee=function(t,e,n){if(Wt&&("id"===e||"name"===e)&&(n in i||n in he))return!1;if(Mt&&!kt[e]&&I(bt,e));else if($t&&I(yt,e));else if(!St[e]||kt[e]){if(!(De(t)&&(Dt.tagNameCheck instanceof RegExp&&I(Dt.tagNameCheck,t)||Dt.tagNameCheck instanceof Function&&Dt.tagNameCheck(t))&&(Dt.attributeNameCheck instanceof RegExp&&I(Dt.attributeNameCheck,e)||Dt.attributeNameCheck instanceof Function&&Dt.attributeNameCheck(e))||"is"===e&&Dt.allowCustomizedBuiltInElements&&(Dt.tagNameCheck instanceof RegExp&&I(Dt.tagNameCheck,n)||Dt.tagNameCheck instanceof Function&&Dt.tagNameCheck(n))))return!1}else if(Jt[e]);else if(I(xt,$(n,_t,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==M(n,"data:")||!Zt[t]){if(Lt&&!I(wt,$(n,_t,"")));else if(n)return!1}else;return!0},De=function(t){return"annotation-xml"!==t&&k(t,Tt)},Ce=function(t){Ae(at.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e||xe(t))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:St,forceKeepAttr:void 0};let o=e.length;for(;o--;){const r=e[o],{name:a,namespaceURI:s,value:c}=r,u=fe(a),l=c;let d="value"===a?l:L(l);if(i.attrName=u,i.attrValue=d,i.keepAttr=!0,i.forceKeepAttr=void 0,Ae(at.uponSanitizeAttribute,t,i),d=i.attrValue,!Ft||"id"!==u&&"name"!==u||(we(a,t),d="user-content-"+d),jt&&I(/((--!?|])>)|<\/(style|title)/i,d)){we(a,t);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr){we(a,t);continue}if(!Nt&&I(/\/>/i,d)){we(a,t);continue}It&&x([st,ut,vt],t=>{d=$(d,t," ")});const f=fe(t.nodeName);if(Ee(f,u,d)){if(P&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(s);else switch(m.getAttributeType(f,u)){case"TrustedHTML":d=P.createHTML(d);break;case"TrustedScriptURL":d=P.createScriptURL(d)}if(d!==l)try{s?t.setAttributeNS(s,a,d):t.setAttribute(a,d),xe(t)?ye(t):A(n.removed)}catch(e){we(a,t)}}else we(a,t)}Ae(at.afterSanitizeAttributes,t,null)},ke=function t(e){let n=null;const i=Te(e);for(Ae(at.beforeSanitizeShadowDOM,e,null);n=i.nextNode();)Ae(at.uponSanitizeShadowNode,n,null),Se(n),Ce(n),n.content instanceof a&&t(n.content);Ae(at.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,r=null,s=null,u=null;if(oe=!t,oe&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Oe(t)){if("function"!=typeof t.toString)throw j("toString is not a function");if("string"!=typeof(t=t.toString()))throw j("dirty is not a string, aborting")}if(!n.isSupported)return t;if(Pt||ge(e),n.removed=[],"string"==typeof t&&(Vt=!1),Vt){if(t.nodeName){const e=fe(t.nodeName);if(!Ot[e]||Ct[e])throw j("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof c)i=_e("\x3c!----\x3e"),r=i.ownerDocument.importNode(t,!0),r.nodeType===dt&&"BODY"===r.nodeName||"HTML"===r.nodeName?i=r:i.appendChild(r);else{if(!zt&&!It&&!Rt&&-1===t.indexOf("<"))return P&&Ut?P.createHTML(t):t;if(i=_e(t),!i)return zt?null:Ut?z:""}i&&Ht&&ye(i.firstChild);const l=Te(Vt?t:i);for(;s=l.nextNode();)Se(s),Ce(s),s.content instanceof a&&ke(s.content);if(Vt)return t;if(zt){if(Bt)for(u=nt.call(i.ownerDocument);i.firstChild;)u.appendChild(i.firstChild);else u=i;return(St.shadowroot||St.shadowrootmode)&&(u=ot.call(o,u,!0)),u}let d=Rt?i.outerHTML:i.innerHTML;return Rt&&Ot["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&I(ct,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),It&&x([st,ut,vt],t=>{d=$(d,t," ")}),P&&Ut?P.createHTML(d):d},n.setConfig=function(){ge(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Pt=!0},n.clearConfig=function(){pe=null,Pt=!1},n.isValidAttribute=function(t,e,n){pe||ge({});const i=fe(t),o=fe(e);return Ee(i,o,n)},n.addHook=function(t,e){"function"==typeof e&&S(at[t],e)},n.removeHook=function(t,e){if(void 0!==e){const n=O(at[t],e);return-1===n?void 0:E(at[t],n,1)[0]}return A(at[t])},n.removeHooks=function(t){at[t]=[]},n.removeAllHooks=function(){at={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const bt=window.jQuery;var yt=[["sunday","Sun"],["monday","Mon"],["tuesday","Tue"],["wednesday","Wed"],["thursday","Thur"],["friday","Fri"],["saturday","Sat"]];const wt=function(t=null){if(null!==t)return Backbone.View.extend({el:t,template:_.template(bt("#selectedAccountTemplate").html()),events:{"click a.btn-remove-account":"setDeactive","click #input-users":"focusInputUser"},initialize:function(){const t=this;this.collection.fetch({reset:!0,data:{action:"njt_wa_load_accounts_ajax",nonce:njt_wa.nonce},type:"POST",beforeSend:function(){d.autocompleteLoading(!0)},success:function(){d.autocompleteLoading(!1),t.registerAutocomplete()},error:function(){console.log("error")}}),this.accountsListView=new(function(t=null){if(null!==t)return Backbone.View.extend({template:_.template(bt(t).html()),initialize:function(){this.render()},registerSortable(){void 0===bt("#sortable").sortable("instance")&&bt("#sortable").sortable({update:function(t,e){const n=bt("#sortable").sortable("toArray",{attribute:"data-index"});bt.ajax({url:njt_wa.url,type:"POST",data:{action:"njt_wa_set_account_position",type:njt_wa.selectedAccounts.attrPosition,positions:n,nonce:njt_wa.nonce},beforeSend:function(){d.autocompleteLoading(!0)}}).done(function(t){d.autocompleteLoading(!1),t.success})}})},render:function(){const t=_.sortBy(this.collection.active(),njt_wa.selectedAccounts.attrPosition);return this.$el.html(this.template({activeAccounts:t,daysOfWeek:yt})),this.registerSortable(),this}})}("#accountListTemplate"))({collection:this.collection}),this.listenTo(this.collection,"sync",this.renderAccountList),this.render()},registerAutocomplete:function(){const t=this;bt("#input-users").autocomplete({minLength:0,source:this.collection.deactive(),classes:{"ui-autocomplete":"nta-list-box-select"},select:function(e,n){return t.collection.get(n.item.accountId).setActive({onDone:function(){bt("#input-users").autocomplete("option","source",t.collection.deactive())}}),!1}}).autocomplete("instance")._renderItem=function(t,e){const n=new(function(t=null){if(null!==t)return Backbone.View.extend({template:_.template(bt(t).html()),initialize:function(){this.render()},render:function(){return this.$el.html(this.template({account:this.model,daysOfWeek:yt})),this}})}("#accountItemView"))({model:e});return bt("<li>").append(n.$el).appendTo(t)}},setDeactive(t){const e=bt(t.target).data("remove"),n=this.collection.get(e),i=this;n.setDeactive({onDone:function(){bt("#input-users").autocomplete("option","source",i.collection.deactive())}})},focusInputUser(){bt("#input-users").autocomplete("search","")},renderAccountList:function(){this.accountsListView.render()},render:function(){return this.$el.html(this.template()),this.$el.append(this.accountsListView.$el),this}})},_t=window.jQuery,{styles:Tt}=window.njt_wa.settings.widget,xt=window.buttonStyles,Ot=Backbone.Model.extend({defaults:{...Tt},isLaunch:!1}),At=Backbone.Model.extend({defaults:{...xt}}),St=Backbone.Model.extend({idAttribute:"accountId",url:njt_wa.url,defaults:{accountId:"",avatar:"",accountName:"",dayOffsText:"",daysOfWeekWorking:[],isAlwaysAvailable:"ON",number:"",predefinedText:"",title:"",wc_position:"",wc_show:"OFF",widget_position:"",widget_show:"OFF",willBeBackText:""},setActive:function(t){this.save(null,{type:"POST",contentType:"application/x-www-form-urlencoded",data:_t.param({action:"njt_wa_set_account_status",nonce:njt_wa.nonce,status:"ON",accountId:this.get("accountId"),type:njt_wa.selectedAccounts.attrActive}),beforeSend:function(){d.autocompleteLoading(!0)},success:function(e,n){d.autocompleteLoading(!1),n.success?(e.set(njt_wa.selectedAccounts.attrActive,"ON"),t.onDone()):console.log("Can't update active!")},error:function(t,e){d.autocompleteLoading(!1),console.log("Something went wrong!")}})},setDeactive:function(t){this.save(null,{type:"POST",contentType:"application/x-www-form-urlencoded",data:_t.param({action:"njt_wa_set_account_status",nonce:njt_wa.nonce,status:"OFF",accountId:this.get("accountId"),type:njt_wa.selectedAccounts.attrActive}),beforeSend:function(){d.autocompleteLoading(!0)},success:function(e,n){d.autocompleteLoading(!1),n.success?(e.set(njt_wa.selectedAccounts.attrActive,"OFF"),t.onDone()):console.log("Can't update active!")},error:function(t,e){d.autocompleteLoading(!1),console.log("Something went wrong!")}})}}),Et=Backbone.Collection.extend({url:njt_wa.url,parse:function(t){return t.data},deactive:function(){return this.where({[njt_wa.selectedAccounts.attrActive]:"OFF"}).map(function(t){return t.toJSON()})},active:function(){return this.where({[njt_wa.selectedAccounts.attrActive]:"ON"}).map(function(t){return t.attributes.status=d.getBackTime(t.attributes),t.toJSON()})},model:St});function Dt(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function Ct(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function kt(t){var e=Ct(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function $t(t){return t instanceof Ct(t).Element||t instanceof Element}function Mt(t){return t instanceof Ct(t).HTMLElement||t instanceof HTMLElement}function Lt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Ct(t).ShadowRoot||t instanceof ShadowRoot)}function Nt(t){return t?(t.nodeName||"").toLowerCase():null}function It(t){return(($t(t)?t.ownerDocument:t.document)||window.document).documentElement}function jt(t){return Dt(It(t)).left+kt(t).scrollLeft}function Rt(t){return Ct(t).getComputedStyle(t)}function Pt(t){var e=Rt(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function Ht(t,e,n){void 0===n&&(n=!1);var i,o,r=It(e),a=Dt(t),s=Mt(e),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(s||!s&&!n)&&(("body"!==Nt(e)||Pt(r))&&(c=(i=e)!==Ct(i)&&Mt(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:kt(i)),Mt(e)?((u=Dt(e)).x+=e.clientLeft,u.y+=e.clientTop):r&&(u.x=jt(r))),{x:a.left+c.scrollLeft-u.x,y:a.top+c.scrollTop-u.y,width:a.width,height:a.height}}function zt(t){var e=Dt(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function Bt(t){return"html"===Nt(t)?t:t.assignedSlot||t.parentNode||(Lt(t)?t.host:null)||It(t)}function Ut(t){return["html","body","#document"].indexOf(Nt(t))>=0?t.ownerDocument.body:Mt(t)&&Pt(t)?t:Ut(Bt(t))}function Wt(t,e){var n;void 0===e&&(e=[]);var i=Ut(t),o=i===(null==(n=t.ownerDocument)?void 0:n.body),r=Ct(i),a=o?[r].concat(r.visualViewport||[],Pt(i)?i:[]):i,s=e.concat(a);return o?s:s.concat(Wt(Bt(a)))}function Ft(t){return["table","td","th"].indexOf(Nt(t))>=0}function Yt(t){return Mt(t)&&"fixed"!==Rt(t).position?t.offsetParent:null}function Vt(t){for(var e=Ct(t),n=Yt(t);n&&Ft(n)&&"static"===Rt(n).position;)n=Yt(n);return n&&("html"===Nt(n)||"body"===Nt(n)&&"static"===Rt(n).position)?e:n||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Mt(t)&&"fixed"===Rt(t).position)return null;for(var n=Bt(t);Mt(n)&&["html","body"].indexOf(Nt(n))<0;){var i=Rt(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}var Gt="top",qt="bottom",Qt="right",Zt="left",Xt="auto",Jt=[Gt,qt,Qt,Zt],Kt="start",te="end",ee="viewport",ne="popper",ie=Jt.reduce(function(t,e){return t.concat([e+"-"+Kt,e+"-"+te])},[]),oe=[].concat(Jt,[Xt]).reduce(function(t,e){return t.concat([e,e+"-"+Kt,e+"-"+te])},[]),re=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ae(t){var e=new Map,n=new Set,i=[];function o(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!n.has(t)){var i=e.get(t);i&&o(i)}}),i.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){n.has(t.name)||o(t)}),i}var se={placement:"bottom",modifiers:[],strategy:"absolute"};function ce(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}function ue(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,o=e.defaultOptions,r=void 0===o?se:o;return function(t,e,n){void 0===n&&(n=r);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},se,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],u=!1,l={state:s,setOptions:function(n){d(),s.options=Object.assign({},r,s.options,n),s.scrollParents={reference:$t(t)?Wt(t):t.contextElement?Wt(t.contextElement):[],popper:Wt(e)};var o=function(t){var e=ae(t);return re.reduce(function(t,n){return t.concat(e.filter(function(t){return t.phase===n}))},[])}(function(t){var e=t.reduce(function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t},{});return Object.keys(e).map(function(t){return e[t]})}([].concat(i,s.options.modifiers)));return s.orderedModifiers=o.filter(function(t){return t.enabled}),s.orderedModifiers.forEach(function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,o=t.effect;if("function"==typeof o){var r=o({state:s,name:e,instance:l,options:i}),a=function(){};c.push(r||a)}}),l.update()},forceUpdate:function(){if(!u){var t=s.elements,e=t.reference,n=t.popper;if(ce(e,n)){s.rects={reference:Ht(e,Vt(n),"fixed"===s.options.strategy),popper:zt(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(t){return s.modifiersData[t.name]=Object.assign({},t.data)});for(var i=0;i<s.orderedModifiers.length;i++)if(!0!==s.reset){var o=s.orderedModifiers[i],r=o.fn,a=o.options,c=void 0===a?{}:a,d=o.name;"function"==typeof r&&(s=r({state:s,options:c,name:d,instance:l})||s)}else s.reset=!1,i=-1}}},update:(o=function(){return new Promise(function(t){l.forceUpdate(),t(s)})},function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(o())})})),a}),destroy:function(){d(),u=!0}};if(!ce(t,e))return l;function d(){c.forEach(function(t){return t()}),c=[]}return l.setOptions(n).then(function(t){!u&&n.onFirstUpdate&&n.onFirstUpdate(t)}),l}}var le={passive:!0};const de={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,o=i.scroll,r=void 0===o||o,a=i.resize,s=void 0===a||a,c=Ct(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&u.forEach(function(t){t.addEventListener("scroll",n.update,le)}),s&&c.addEventListener("resize",n.update,le),function(){r&&u.forEach(function(t){t.removeEventListener("scroll",n.update,le)}),s&&c.removeEventListener("resize",n.update,le)}},data:{}};function fe(t){return t.split("-")[0]}function pe(t){return t.split("-")[1]}function he(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function me(t){var e,n=t.reference,i=t.element,o=t.placement,r=o?fe(o):null,a=o?pe(o):null,s=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2;switch(r){case Gt:e={x:s,y:n.y-i.height};break;case qt:e={x:s,y:n.y+n.height};break;case Qt:e={x:n.x+n.width,y:c};break;case Zt:e={x:n.x-i.width,y:c};break;default:e={x:n.x,y:n.y}}var u=r?he(r):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case Kt:e[u]=e[u]-(n[l]/2-i[l]/2);break;case te:e[u]=e[u]+(n[l]/2-i[l]/2)}}return e}const ge={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=me({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};var ve=Math.max,be=Math.min,ye=Math.round,we={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _e(t){var e,n=t.popper,i=t.popperRect,o=t.placement,r=t.offsets,a=t.position,s=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,l=!0===u?function(t){var e=t.x,n=t.y,i=window.devicePixelRatio||1;return{x:ye(ye(e*i)/i)||0,y:ye(ye(n*i)/i)||0}}(r):"function"==typeof u?u(r):r,d=l.x,f=void 0===d?0:d,p=l.y,h=void 0===p?0:p,m=r.hasOwnProperty("x"),g=r.hasOwnProperty("y"),v=Zt,b=Gt,y=window;if(c){var w=Vt(n),_="clientHeight",T="clientWidth";w===Ct(n)&&"static"!==Rt(w=It(n)).position&&(_="scrollHeight",T="scrollWidth"),o===Gt&&(b=qt,h-=w[_]-i.height,h*=s?1:-1),o===Zt&&(v=Qt,f-=w[T]-i.width,f*=s?1:-1)}var x,O=Object.assign({position:a},c&&we);return s?Object.assign({},O,((x={})[b]=g?"0":"",x[v]=m?"0":"",x.transform=(y.devicePixelRatio||1)<2?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",x)):Object.assign({},O,((e={})[b]=g?h+"px":"",e[v]=m?f+"px":"",e.transform="",e))}const Te={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];Mt(o)&&Nt(o)&&(Object.assign(o.style,n),Object.keys(i).forEach(function(t){var e=i[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(t){var i=e.elements[t],o=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce(function(t,e){return t[e]="",t},{});Mt(i)&&Nt(i)&&(Object.assign(i.style,r),Object.keys(o).forEach(function(t){i.removeAttribute(t)}))})}},requires:["computeStyles"]};const xe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.offset,r=void 0===o?[0,0]:o,a=oe.reduce(function(t,n){return t[n]=function(t,e,n){var i=fe(t),o=[Zt,Gt].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},e,{placement:t})):n,a=r[0],s=r[1];return a=a||0,s=(s||0)*o,[Zt,Qt].indexOf(i)>=0?{x:s,y:a}:{x:a,y:s}}(n,e.rects,r),t},{}),s=a[e.placement],c=s.x,u=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=u),e.modifiersData[i]=a}};var Oe={left:"right",right:"left",bottom:"top",top:"bottom"};function Ae(t){return t.replace(/left|right|bottom|top/g,function(t){return Oe[t]})}var Se={start:"end",end:"start"};function Ee(t){return t.replace(/start|end/g,function(t){return Se[t]})}function De(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Lt(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ce(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ke(t,e){return e===ee?Ce(function(t){var e=Ct(t),n=It(t),i=e.visualViewport,o=n.clientWidth,r=n.clientHeight,a=0,s=0;return i&&(o=i.width,r=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=i.offsetLeft,s=i.offsetTop)),{width:o,height:r,x:a+jt(t),y:s}}(t)):Mt(e)?function(t){var e=Dt(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):Ce(function(t){var e,n=It(t),i=kt(t),o=null==(e=t.ownerDocument)?void 0:e.body,r=ve(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ve(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-i.scrollLeft+jt(t),c=-i.scrollTop;return"rtl"===Rt(o||n).direction&&(s+=ve(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:a,x:s,y:c}}(It(t)))}function $e(t,e,n){var i="clippingParents"===e?function(t){var e=Wt(Bt(t)),n=["absolute","fixed"].indexOf(Rt(t).position)>=0&&Mt(t)?Vt(t):t;return $t(n)?e.filter(function(t){return $t(t)&&De(t,n)&&"body"!==Nt(t)}):[]}(t):[].concat(e),o=[].concat(i,[n]),r=o[0],a=o.reduce(function(e,n){var i=ke(t,n);return e.top=ve(i.top,e.top),e.right=be(i.right,e.right),e.bottom=be(i.bottom,e.bottom),e.left=ve(i.left,e.left),e},ke(t,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Me(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Le(t,e){return e.reduce(function(e,n){return e[n]=t,e},{})}function Ne(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=void 0===i?t.placement:i,r=n.boundary,a=void 0===r?"clippingParents":r,s=n.rootBoundary,c=void 0===s?ee:s,u=n.elementContext,l=void 0===u?ne:u,d=n.altBoundary,f=void 0!==d&&d,p=n.padding,h=void 0===p?0:p,m=Me("number"!=typeof h?h:Le(h,Jt)),g=l===ne?"reference":ne,v=t.elements.reference,b=t.rects.popper,y=t.elements[f?g:l],w=$e($t(y)?y:y.contextElement||It(t.elements.popper),a,c),_=Dt(v),T=me({reference:_,element:b,strategy:"absolute",placement:o}),x=Ce(Object.assign({},b,T)),O=l===ne?x:_,A={top:w.top-O.top+m.top,bottom:O.bottom-w.bottom+m.bottom,left:w.left-O.left+m.left,right:O.right-w.right+m.right},S=t.modifiersData.offset;if(l===ne&&S){var E=S[o];Object.keys(A).forEach(function(t){var e=[Qt,qt].indexOf(t)>=0?1:-1,n=[Gt,qt].indexOf(t)>=0?"y":"x";A[t]+=E[n]*e})}return A}function Ie(t,e,n){return ve(t,be(e,n))}const je={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.mainAxis,r=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,g=Ne(e,{boundary:c,rootBoundary:u,padding:d,altBoundary:l}),v=fe(e.placement),b=pe(e.placement),y=!b,w=he(v),_="x"===w?"y":"x",T=e.modifiersData.popperOffsets,x=e.rects.reference,O=e.rects.popper,A="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,S={x:0,y:0};if(T){if(r||s){var E="y"===w?Gt:Zt,D="y"===w?qt:Qt,C="y"===w?"height":"width",k=T[w],$=T[w]+g[E],M=T[w]-g[D],L=p?-O[C]/2:0,N=b===Kt?x[C]:O[C],I=b===Kt?-O[C]:-x[C],j=e.elements.arrow,R=p&&j?zt(j):{width:0,height:0},P=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=P[E],z=P[D],B=Ie(0,x[C],R[C]),U=y?x[C]/2-L-B-H-A:N-B-H-A,W=y?-x[C]/2+L+B+z+A:I+B+z+A,F=e.elements.arrow&&Vt(e.elements.arrow),Y=F?"y"===w?F.clientTop||0:F.clientLeft||0:0,V=e.modifiersData.offset?e.modifiersData.offset[e.placement][w]:0,G=T[w]+U-V-Y,q=T[w]+W-V;if(r){var Q=Ie(p?be($,G):$,k,p?ve(M,q):M);T[w]=Q,S[w]=Q-k}if(s){var Z="x"===w?Gt:Zt,X="x"===w?qt:Qt,J=T[_],K=J+g[Z],tt=J-g[X],et=Ie(p?be(K,G):K,J,p?ve(tt,q):tt);T[_]=et,S[_]=et-J}}e.modifiersData[i]=S}},requiresIfExists:["offset"]};const Re={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,o=t.options,r=n.elements.arrow,a=n.modifiersData.popperOffsets,s=fe(n.placement),c=he(s),u=[Zt,Qt].indexOf(s)>=0?"height":"width";if(r&&a){var l=function(t,e){return Me("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Le(t,Jt))}(o.padding,n),d=zt(r),f="y"===c?Gt:Zt,p="y"===c?qt:Qt,h=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],m=a[c]-n.rects.reference[c],g=Vt(r),v=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,y=l[f],w=v-d[u]-l[p],_=v/2-d[u]/2+b,T=Ie(y,_,w),x=c;n.modifiersData[i]=((e={})[x]=T,e.centerOffset=T-_,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&De(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Pe(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function He(t){return[Gt,Qt,qt,Zt].some(function(e){return t[e]>=0})}var ze=ue({defaultModifiers:[de,ge,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,a=void 0===r||r,s=n.roundOffsets,c=void 0===s||s,u={placement:fe(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,_e(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,_e(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},Te,xe,{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var o=n.mainAxis,r=void 0===o||o,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,u=n.padding,l=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=e.options.placement,v=fe(g),b=c||(v===g||!h?[Ae(g)]:function(t){if(fe(t)===Xt)return[];var e=Ae(t);return[Ee(t),e,Ee(e)]}(g)),y=[g].concat(b).reduce(function(t,n){return t.concat(fe(n)===Xt?function(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=n.boundary,r=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?oe:c,l=pe(i),d=l?s?ie:ie.filter(function(t){return pe(t)===l}):Jt,f=d.filter(function(t){return u.indexOf(t)>=0});0===f.length&&(f=d);var p=f.reduce(function(e,n){return e[n]=Ne(t,{placement:n,boundary:o,rootBoundary:r,padding:a})[fe(n)],e},{});return Object.keys(p).sort(function(t,e){return p[t]-p[e]})}(e,{placement:n,boundary:l,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)},[]),w=e.rects.reference,_=e.rects.popper,T=new Map,x=!0,O=y[0],A=0;A<y.length;A++){var S=y[A],E=fe(S),D=pe(S)===Kt,C=[Gt,qt].indexOf(E)>=0,k=C?"width":"height",$=Ne(e,{placement:S,boundary:l,rootBoundary:d,altBoundary:f,padding:u}),M=C?D?Qt:Zt:D?qt:Gt;w[k]>_[k]&&(M=Ae(M));var L=Ae(M),N=[];if(r&&N.push($[E]<=0),s&&N.push($[M]<=0,$[L]<=0),N.every(function(t){return t})){O=S,x=!1;break}T.set(S,N)}if(x)for(var I=function(t){var e=y.find(function(e){var n=T.get(e);if(n)return n.slice(0,t).every(function(t){return t})});if(e)return O=e,"break"},j=h?3:1;j>0;j--){if("break"===I(j))break}e.placement!==O&&(e.modifiersData[i]._skip=!0,e.placement=O,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},je,Re,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,o=e.rects.popper,r=e.modifiersData.preventOverflow,a=Ne(e,{elementContext:"reference"}),s=Ne(e,{altBoundary:!0}),c=Pe(a,i),u=Pe(s,o,r),l=He(c),d=He(u);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}}]}),Be="njt-tippy-content",Ue="njt-tippy-backdrop",We="njt-tippy-arrow",Fe="njt-tippy-svg-arrow",Ye={passive:!0,capture:!0};function Ve(t,e,n){if(Array.isArray(t)){var i=t[e];return null==i?Array.isArray(n)?n[e]:n:i}return t}function Ge(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function qe(t,e){return"function"==typeof t?t.apply(void 0,e):t}function Qe(t,e){return 0===e?t:function(i){clearTimeout(n),n=setTimeout(function(){t(i)},e)};var n}function Ze(t){return[].concat(t)}function Xe(t,e){-1===t.indexOf(e)&&t.push(e)}function Je(t){return t.split("-")[0]}function Ke(t){return[].slice.call(t)}function tn(){return document.createElement("div")}function en(t){return["Element","Fragment"].some(function(e){return Ge(t,e)})}function nn(t){return Ge(t,"MouseEvent")}function on(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function rn(t){return en(t)?[t]:function(t){return Ge(t,"NodeList")}(t)?Ke(t):Array.isArray(t)?t:Ke(document.querySelectorAll(t))}function an(t,e){t.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function sn(t,e){t.forEach(function(t){t&&t.setAttribute("data-state",e)})}function cn(t){var e,n=Ze(t)[0];return(null==n||null==(e=n.ownerDocument)?void 0:e.body)?n.ownerDocument:document}function un(t,e,n){var i=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(e){t[i](e,n)})}var ln={isTouch:!1},dn=0;function fn(){ln.isTouch||(ln.isTouch=!0,window.performance&&document.addEventListener("mousemove",pn))}function pn(){var t=performance.now();t-dn<20&&(ln.isTouch=!1,document.removeEventListener("mousemove",pn)),dn=t}function hn(){var t=document.activeElement;if(on(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}var mn="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",gn=/MSIE |Trident\//.test(mn);var vn={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},bn=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},vn,{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),yn=Object.keys(bn);function wn(t){var e=(t.plugins||[]).reduce(function(e,n){var i=n.name,o=n.defaultValue;return i&&(e[i]=void 0!==t[i]?t[i]:o),e},{});return Object.assign({},t,{},e)}function _n(t,e){var n=Object.assign({},e,{content:qe(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(wn(Object.assign({},bn,{plugins:e}))):yn).reduce(function(e,n){var i=(t.getAttribute("data-tippy-"+n)||"").trim();if(!i)return e;if("content"===n)e[n]=i;else try{e[n]=JSON.parse(i)}catch(t){e[n]=i}return e},{})}(t,e.plugins));return n.aria=Object.assign({},bn.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}function Tn(t,e){t.innerHTML=e}function xn(t){var e=tn();return!0===t?e.className=We:(e.className=Fe,en(t)?e.appendChild(t):Tn(e,t)),e}function On(t,e){en(e.content)?(Tn(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?Tn(t,e.content):t.textContent=e.content)}function An(t){var e=t.firstElementChild,n=Ke(e.children);return{box:e,content:n.find(function(t){return t.classList.contains(Be)}),arrow:n.find(function(t){return t.classList.contains(We)||t.classList.contains(Fe)}),backdrop:n.find(function(t){return t.classList.contains(Ue)})}}function Sn(t){var e=tn(),n=tn();n.className="njt-tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=tn();function o(n,i){var o=An(e),r=o.box,a=o.content,s=o.arrow;i.theme?r.setAttribute("data-theme",i.theme):r.removeAttribute("data-theme"),"string"==typeof i.animation?r.setAttribute("data-animation",i.animation):r.removeAttribute("data-animation"),i.inertia?r.setAttribute("data-inertia",""):r.removeAttribute("data-inertia"),r.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?r.setAttribute("role",i.role):r.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||On(a,t.props),i.arrow?s?n.arrow!==i.arrow&&(r.removeChild(s),r.appendChild(xn(i.arrow))):r.appendChild(xn(i.arrow)):s&&r.removeChild(s)}return i.className=Be,i.setAttribute("data-state","hidden"),On(i,t.props),e.appendChild(n),n.appendChild(i),o(t.props,t.props),{popper:e,onUpdate:o}}Sn.$$tippy=!0;var En=1,Dn=[],Cn=[];function kn(t,e){var n,i,o,r,a,s,c,u,l,d=_n(t,Object.assign({},bn,{},wn((n=e,Object.keys(n).reduce(function(t,e){return void 0!==n[e]&&(t[e]=n[e]),t},{}))))),f=!1,p=!1,h=!1,m=!1,g=[],v=Qe(q,d.interactiveDebounce),b=En++,y=(l=d.plugins).filter(function(t,e){return l.indexOf(t)===e}),w={id:b,reference:t,popper:tn(),popperInstance:null,props:d,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(o),cancelAnimationFrame(r)},setProps:function(e){0;if(w.state.isDestroyed)return;N("onBeforeUpdate",[w,e]),V();var n=w.props,i=_n(t,Object.assign({},w.props,{},e,{ignoreAttributes:!0}));w.props=i,Y(),n.interactiveDebounce!==i.interactiveDebounce&&(R(),v=Qe(q,i.interactiveDebounce));n.triggerTarget&&!i.triggerTarget?Ze(n.triggerTarget).forEach(function(t){t.removeAttribute("aria-expanded")}):i.triggerTarget&&t.removeAttribute("aria-expanded");j(),L(),x&&x(n,i);w.popperInstance&&(J(),tt().forEach(function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)}));N("onAfterUpdate",[w,e])},setContent:function(t){w.setProps({content:t})},show:function(){0;var t=w.state.isVisible,e=w.state.isDestroyed,n=!w.state.isEnabled,i=ln.isTouch&&!w.props.touch,o=Ve(w.props.duration,0,bn.duration);if(t||e||n||i)return;if(C().hasAttribute("disabled"))return;if(N("onShow",[w],!1),!1===w.props.onShow(w))return;w.state.isVisible=!0,D()&&(T.style.visibility="visible");L(),B(),w.state.isMounted||(T.style.transition="none");if(D()){var r=$();an([r.box,r.content],0)}c=function(){var t;if(w.state.isVisible&&!m){if(m=!0,T.offsetHeight,T.style.transition=w.props.moveTransition,D()&&w.props.animation){var e=$(),n=e.box,i=e.content;an([n,i],o),sn([n,i],"visible")}I(),j(),Xe(Cn,w),null==(t=w.popperInstance)||t.forceUpdate(),w.state.isMounted=!0,N("onMount",[w]),w.props.animation&&D()&&function(t,e){W(t,e)}(o,function(){w.state.isShown=!0,N("onShown",[w])})}},function(){var t,e=w.props.appendTo,n=C();t=w.props.interactive&&e===bn.appendTo||"parent"===e?n.parentNode:qe(e,[n]);t.contains(T)||t.appendChild(T);J(),!1}()},hide:function(){0;var t=!w.state.isVisible,e=w.state.isDestroyed,n=!w.state.isEnabled,i=Ve(w.props.duration,1,bn.duration);if(t||e||n)return;if(N("onHide",[w],!1),!1===w.props.onHide(w))return;w.state.isVisible=!1,w.state.isShown=!1,m=!1,f=!1,D()&&(T.style.visibility="hidden");if(R(),U(),L(),D()){var o=$(),r=o.box,a=o.content;w.props.animation&&(an([r,a],i),sn([r,a],"hidden"))}I(),j(),w.props.animation?D()&&function(t,e){W(t,function(){!w.state.isVisible&&T.parentNode&&T.parentNode.contains(T)&&e()})}(i,w.unmount):w.unmount()},hideWithInteractivity:function(t){0;k().addEventListener("mousemove",v),Xe(Dn,v),v(t)},enable:function(){w.state.isEnabled=!0},disable:function(){w.hide(),w.state.isEnabled=!1},unmount:function(){0;w.state.isVisible&&w.hide();if(!w.state.isMounted)return;K(),tt().forEach(function(t){t._tippy.unmount()}),T.parentNode&&T.parentNode.removeChild(T);Cn=Cn.filter(function(t){return t!==w}),w.state.isMounted=!1,N("onHidden",[w])},destroy:function(){0;if(w.state.isDestroyed)return;w.clearDelayTimeouts(),w.unmount(),V(),delete t._tippy,w.state.isDestroyed=!0,N("onDestroy",[w])}};if(!d.render)return w;var _=d.render(w),T=_.popper,x=_.onUpdate;T.setAttribute("data-tippy-root",""),T.id="tippy-"+w.id,w.popper=T,t._tippy=w,T._tippy=w;var O=y.map(function(t){return t.fn(w)}),A=t.hasAttribute("aria-expanded");return Y(),j(),L(),N("onCreate",[w]),d.showOnCreate&&et(),T.addEventListener("mouseenter",function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()}),T.addEventListener("mouseleave",function(t){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&(k().addEventListener("mousemove",v),v(t))}),w;function S(){var t=w.props.touch;return Array.isArray(t)?t:[t,0]}function E(){return"hold"===S()[0]}function D(){var t;return!!(null==(t=w.props.render)?void 0:t.$$tippy)}function C(){return u||t}function k(){var t=C().parentNode;return t?cn(t):document}function $(){return An(T)}function M(t){return w.state.isMounted&&!w.state.isVisible||ln.isTouch||a&&"focus"===a.type?0:Ve(w.props.delay,t?0:1,bn.delay)}function L(){T.style.pointerEvents=w.props.interactive&&w.state.isVisible?"":"none",T.style.zIndex=""+w.props.zIndex}function N(t,e,n){var i;(void 0===n&&(n=!0),O.forEach(function(n){n[t]&&n[t].apply(void 0,e)}),n)&&(i=w.props)[t].apply(i,e)}function I(){var e=w.props.aria;if(e.content){var n="aria-"+e.content,i=T.id;Ze(w.props.triggerTarget||t).forEach(function(t){var e=t.getAttribute(n);if(w.state.isVisible)t.setAttribute(n,e?e+" "+i:i);else{var o=e&&e.replace(i,"").trim();o?t.setAttribute(n,o):t.removeAttribute(n)}})}}function j(){!A&&w.props.aria.expanded&&Ze(w.props.triggerTarget||t).forEach(function(t){w.props.interactive?t.setAttribute("aria-expanded",w.state.isVisible&&t===C()?"true":"false"):t.removeAttribute("aria-expanded")})}function R(){k().removeEventListener("mousemove",v),Dn=Dn.filter(function(t){return t!==v})}function P(t){if(!(ln.isTouch&&(h||"mousedown"===t.type)||w.props.interactive&&T.contains(t.target))){if(C().contains(t.target)){if(ln.isTouch)return;if(w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else N("onClickOutside",[w,t]);!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),p=!0,setTimeout(function(){p=!1}),w.state.isMounted||U())}}function H(){h=!0}function z(){h=!1}function B(){var t=k();t.addEventListener("mousedown",P,!0),t.addEventListener("touchend",P,Ye),t.addEventListener("touchstart",z,Ye),t.addEventListener("touchmove",H,Ye)}function U(){var t=k();t.removeEventListener("mousedown",P,!0),t.removeEventListener("touchend",P,Ye),t.removeEventListener("touchstart",z,Ye),t.removeEventListener("touchmove",H,Ye)}function W(t,e){var n=$().box;function i(t){t.target===n&&(un(n,"remove",i),e())}if(0===t)return e();un(n,"remove",s),un(n,"add",i),s=i}function F(e,n,i){void 0===i&&(i=!1),Ze(w.props.triggerTarget||t).forEach(function(t){t.addEventListener(e,n,i),g.push({node:t,eventType:e,handler:n,options:i})})}function Y(){var t;E()&&(F("touchstart",G,{passive:!0}),F("touchend",Q,{passive:!0})),(t=w.props.trigger,t.split(/\s+/).filter(Boolean)).forEach(function(t){if("manual"!==t)switch(F(t,G),t){case"mouseenter":F("mouseleave",Q);break;case"focus":F(gn?"focusout":"blur",Z);break;case"focusin":F("focusout",Z)}})}function V(){g.forEach(function(t){var e=t.node,n=t.eventType,i=t.handler,o=t.options;e.removeEventListener(n,i,o)}),g=[]}function G(t){var e,n=!1;if(w.state.isEnabled&&!X(t)&&!p){var i="focus"===(null==(e=a)?void 0:e.type);a=t,u=t.currentTarget,j(),!w.state.isVisible&&nn(t)&&Dn.forEach(function(e){return e(t)}),"click"===t.type&&(w.props.trigger.indexOf("mouseenter")<0||f)&&!1!==w.props.hideOnClick&&w.state.isVisible?n=!0:et(t),"click"===t.type&&(f=!n),n&&!i&&nt(t)}}function q(t){var e=t.target,n=C().contains(e)||T.contains(e);if("mousemove"!==t.type||!n){var i=tt().concat(T).map(function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:d}:null}).filter(Boolean);(function(t,e){var n=e.clientX,i=e.clientY;return t.every(function(t){var e=t.popperRect,o=t.popperState,r=t.props.interactiveBorder,a=Je(o.placement),s=o.modifiersData.offset;if(!s)return!0;var c="bottom"===a?s.top.y:0,u="top"===a?s.bottom.y:0,l="right"===a?s.left.x:0,d="left"===a?s.right.x:0,f=e.top-i+c>r,p=i-e.bottom-u>r,h=e.left-n+l>r,m=n-e.right-d>r;return f||p||h||m})})(i,t)&&(R(),nt(t))}}function Q(t){X(t)||w.props.trigger.indexOf("click")>=0&&f||(w.props.interactive?w.hideWithInteractivity(t):nt(t))}function Z(t){w.props.trigger.indexOf("focusin")<0&&t.target!==C()||w.props.interactive&&t.relatedTarget&&T.contains(t.relatedTarget)||nt(t)}function X(t){return!!ln.isTouch&&E()!==t.type.indexOf("touch")>=0}function J(){K();var e=w.props,n=e.popperOptions,i=e.placement,o=e.offset,r=e.getReferenceClientRect,a=e.moveTransition,s=D()?An(T).arrow:null,u=r?{getBoundingClientRect:r,contextElement:r.contextElement||C()}:t,l={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(D()){var n=$().box;["placement","reference-hidden","escaped"].forEach(function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)}),e.attributes.popper={}}}},d=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},l];D()&&s&&d.push({name:"arrow",options:{element:s,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),w.popperInstance=ze(u,T,Object.assign({},n,{placement:i,onFirstUpdate:c,modifiers:d}))}function K(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function tt(){return Ke(T.querySelectorAll("[data-tippy-root]"))}function et(t){w.clearDelayTimeouts(),t&&N("onTrigger",[w,t]),B();var e=M(!0),n=S(),o=n[0],r=n[1];ln.isTouch&&"hold"===o&&r&&(e=r),e?i=setTimeout(function(){w.show()},e):w.show()}function nt(t){if(w.clearDelayTimeouts(),N("onUntrigger",[w,t]),w.state.isVisible){if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&f)){var e=M(!1);e?o=setTimeout(function(){w.state.isVisible&&w.hide()},e):r=requestAnimationFrame(function(){w.hide()})}}else U()}}function $n(t,e){void 0===e&&(e={});var n=bn.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",fn,Ye),window.addEventListener("blur",hn);var i=Object.assign({},e,{plugins:n}),o=rn(t).reduce(function(t,e){var n=e&&kn(e,i);return n&&t.push(n),t},[]);return en(t)?o[0]:o}$n.defaultProps=bn,$n.setDefaultProps=function(t){Object.keys(t).forEach(function(e){bn[e]=t[e]})},$n.currentInput=ln;Object.assign({},Te,{effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow)}});$n.setDefaultProps({render:Sn});const Mn=$n,Ln=window.jQuery,Nn={reorder_attribute_for_custom_time:function(){["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(t=>{const e=jQuery(".working-"+t);for(let n=1;n<e.length;n++)Ln(".start-time",e[n]).attr("name",`daysOfWeekWorking[${t}][workHours][${n}][startTime]`),Ln(".end-time",e[n]).attr("name",`daysOfWeekWorking[${t}][workHours][${n}][endTime]`)})},add_custom_time:function(){Ln(".nta-btncustom-offline").on("click",".add-custom-time",function(){const t=Ln(this).closest("tr"),e=Ln("."+t.attr("class"));if(e.length>=3)return;const n=t.clone();Ln("#btn-apply-time",n).closest("td").remove(),Ln("td",n).first().empty(),Ln("td",n).last().remove(),n.append('<td><a style="color: #a00" href="javascript:;" class="remove-custom-time">Remove</a></td>'),Ln(n).insertAfter(e.last()),Nn.reorder_attribute_for_custom_time()})},remove_custom_time:function(){Ln(".nta-btncustom-offline").on("click",".remove-custom-time",function(){Ln(this).closest("tr").remove(),Nn.reorder_attribute_for_custom_time()})},copy_clipboard_shortcode:function(){Ln("#nta-button-shortcode-copy").click(function(){Ln(this).focus(),Ln(this).select(),document.execCommand("copy"),Ln(".nta-shortcode-copy-status").show()})},selectAll_table_input_shortcode:function(){Ln(".nta-shortcode-table").click(function(){Ln(this).focus(),Ln(this).select()})},btn_apply_time_all:function(){Ln("#btn-apply-time").on("click",function(){const t=["monday","tuesday","wednesday","thursday","friday","saturday"],e=Ln(".working-sunday");for(let n=0;n<e.length;n++){const i=Ln(".start-time",e[n]).val(),o=Ln(".end-time",e[n]).val();t.forEach(t=>{Ln(".working-"+t).slice(n+1).remove();const e=Ln(".working-"+t)[n];if(void 0===e){Ln(".add-custom-time",Ln(".working-"+t)[0]).trigger("click");const e=Ln(".working-"+t)[n];Ln(".start-time",e).val(i),Ln(".end-time",e).val(o)}else Ln(".start-time",e).val(i),Ln(".end-time",e).val(o)})}})},btn_always_available:function(){Ln("body.post-type-whatsapp-accounts input#nta-wa-switch").click(function(){Ln(this).prop("checked")?Ln(".nta-btncustom-offline").hide():Ln(".nta-btncustom-offline").show()})},select_display_pages_option:function(){Ln("#displayCondition").change(function(){var t=Ln(this).val();"includePages"==t?(Ln(".nta-wa-pages-content.include-pages").removeClass("hide-select"),Ln(".nta-wa-pages-content.exclude-pages").addClass("hide-select")):"excludePages"==t?(Ln(".nta-wa-pages-content.exclude-pages").removeClass("hide-select"),Ln(".nta-wa-pages-content.include-pages").addClass("hide-select")):(Ln(".nta-wa-pages-content.include-pages").addClass("hide-select"),Ln(".nta-wa-pages-content.exclude-pages").addClass("hide-select"))})},checkAll_SelectPages_List:function(){Ln("#exclude-pages-checkall").change(function(){Ln(".excludePages").prop("checked",Ln(this).prop("checked"))}),Ln("#include-pages-checkall").change(function(){Ln(".includePages").prop("checked",Ln(this).prop("checked"))})},registerTab:function(){Ln("#njt-tabs").tabs({active:0,create:function(t,e){const n=Ln("#njt-tabs").tabs("option","active");e.tab.children().addClass("nav-tab-active"),1!=n?Ln("#app-preview").hide():Ln("#app-preview").show()},activate:function(t,e){1!=Ln("#njt-tabs").tabs("option","active")?Ln("#app-preview").hide():Ln("#app-preview").show(),e.oldTab.children().removeClass("nav-tab-active"),e.newTab.children().addClass("nav-tab-active")}}),Ln("#tabs-setting").tabs({active:0})},changeUrlSetting:function(t){const e='div[data-setting="onDesktop"] button';Ln(e).click(function(t){Ln(e).removeClass("active"),Ln(t.target).addClass("active"),Ln("#urlOnDesktop").val(t.target.value)});const n='div[data-setting="onMobile"] button';Ln(n).click(function(t){Ln(n).removeClass("active"),Ln(t.target).addClass("active"),Ln("#urlOnMobile").val(t.target.value)})},changeAnalytics:function(){const t="#enabledGoogleGA4";Ln("#enabledGoogle").change(function(e){e.target.checked?Ln(t).closest("tr").show():Ln(t).closest("tr").hide()})},saveSetting:function(){Ln(".wa-save").click(function(t){t.preventDefault(),"undefined"!=typeof tinyMCE&&tinyMCE.triggerSave();const e=Ln(".nta-tab-wrapper .nav-tab-active").data("action");let n=Ln(".nta-tabs-content form").serializeArray();n.push({name:"action",value:e},{name:"nonce",value:njt_wa.nonce}),n=Ln.param(n),Ln.ajax({url:njt_wa.url,type:"POST",data:n,beforeSend:function(){d.saveLoading(!0)}}).done(function(t){const e=Ln("<p/>",{html:Ln("<strong/>",{html:"Settings saved."}).append(Ln("<button/>",{class:"notice-dismiss",html:Ln("<span/>",{class:"screen-reader-text",html:"Dismiss this notice."}),click:function(){Ln(".njt-wa-alert").hide("slow")}}))}),n=Ln("<div/>",{class:"notice notice-success settings-error is-dismissible njt-wa-alert",html:Ln("<div/>",{class:"wa__popup_notice"}).append(e)});Ln(".nta-tab-wrapper").before(n),setTimeout(()=>{n.first().hide("slow")},3e3),d.saveLoading(!1)})})},blockFeature:function(){jQuery("#set-post-thumbnail img").length||jQuery("#set-post-thumbnail").attr({id:"",href:"javascript:;"}).removeClass().addClass("njt-wa-pro-tooltip"),Ln("body").on("DOMSubtreeModified","#postimagediv",function(){jQuery("#set-post-thumbnail img").length||(jQuery("#set-post-thumbnail").attr({id:"",href:"javascript:;"}).removeClass().addClass("njt-wa-pro-tooltip-thumbnail"),Mn(".njt-wa-pro-tooltip-thumbnail",{content:"This feature is available in Pro version.",animation:"shift-away"}))}),jQuery(".njt-wa-pro-tooltip").each(function(t,e){if(jQuery(e).parent().hasClass("nta-wa-switch-control")){jQuery(e).prev().on("change",function(t){!1===t.target.checked&&(jQuery(t.target).click(function(t){t.preventDefault()}),Mn(e,{content:"This feature is available in Pro version.",animation:"shift-away"}))})}else Mn(e,{content:"This feature is available in Pro version.",animation:"shift-away"})}),jQuery(".njt-wa-pro-tooltip input, input.njt-wa-pro").click(function(t){t.preventDefault()}),jQuery("select.njt-wa-pro").on("mousedown",function(t){t.preventDefault()})},registerTooltip:function(){Mn(".njt-wa-tooltip",{content:"Add a scroll bar to your widget in case you have many agents",animation:"shift-away",maxWidth:250}),Mn('div[data-setting="onDesktop"] .btn-api',{content:"https://api.whatsapp.com/",animation:"shift-away"}),Mn('div[data-setting="onDesktop"] .btn-web',{content:"https://web.whatsapp.com/",animation:"shift-away"}),Mn('div[data-setting="onMobile"] .btn-api',{content:"https://api.whatsapp.com/",animation:"shift-away"}),Mn('div[data-setting="onMobile"] .btn-protocol',{content:"whatsapp://send?phone=",animation:"shift-away"})}},In=function(){Object.values(Nn).forEach(t=>t()),jQuery.validator.addMethod("domain",function(t,e){return this.optional(e)||/^https:\/\/chat.whatsapp.com/.test(t)||/^(\+)\d+$/.test(t)},"Please enter a valid phone number or group link"),jQuery.validator.setDefaults({errorClass:"wa-validate-error",success:"valid"}),Ln(".post-type-whatsapp-accounts #post").validate({rules:{number:{required:!0,domain:!0},title:{maxlength:60},predefinedText:{maxlength:200},post_title:{maxlength:60}}})};void 0===String.prototype.njtReplaceAll&&(String.prototype.njtReplaceAll=function(t,e){return this.replace(new RegExp(t,"g"),()=>e)}),function(t){t(document).ready(function(){const e=jQuery("#app, #app-woo"),n=e.attr("id"),i=new Et;if(In(),t.extend(njt_wa,{selectedAccounts:{renderId:"#"+n,attrActive:"app"===n?"widget_show":"wc_show",attrPosition:"app"===n?"widget_position":"wc_position",init(){new(wt(this.renderId))({collection:i})}}}),e.length&&njt_wa.selectedAccounts.init(),t("#app-design, #app-preview").length){const e=new Ot;t("#app-design").length&&new(function(t=null){if(null!==t)return Backbone.View.extend({el:t,events:{"keypress #title":"setAttributeByEvent","keyup #title":"setAttributeByEvent","keypress #btnLabel":"setAttributeByEvent","keyup #btnLabel":"setAttributeByEvent","change #nta-wa-switch-gdpr":"setGDPR","change #isShowBtnLabel":"setAttributeByCheck","input .range input":"setRangeSlider","click .btn-left:not(.disabled)":"changeWidgetPosition","click .btn-right:not(.disabled)":"changeWidgetPosition"},initialize:function(){var t=this,e="{ margin: 0 !important; font-size: 16px !important}";jQuery(document).on("tinymce-editor-init",function(n,i){i&&"description"==i.id&&(i.on("keypress keyup",function(){t.setAttributeByEditor("description")}),i.dom.addStyle(`p ${e}`)),i&&"gdprContent"==i.id&&(i.on("keypress keyup",function(){t.setAttributeByEditor("gdprContent")}),i.dom.addStyle(`p ${e}`)),i&&"responseText"==i.id&&(i.on("keypress keyup",function(){t.setAttributeByEditor("responseText")}),i.dom.addStyle(`p ${e}`))}),bt(".textColor").wpColorPicker({defaultColor:t.model.get("textColor"),change:function(e,n){t.setAttribute("textColor",n.color.toString())}}),bt(".backgroundColor").wpColorPicker({defaultColor:t.model.get("backgroundColor"),change:function(e,n){t.setAttribute("backgroundColor",n.color.toString())}}),bt("body").on("click",".wa__btn_popup",function(){t.changeWidgetLaunch()}),this.model.view=this},changeWidgetLaunch(){const t=this;var e,n;bt(".wa__popup_chat_box").hasClass("wa__active")?(bt(".wa__popup_chat_box").removeClass("wa__active"),bt(".wa__btn_popup").removeClass("wa__active"),clearTimeout(e),bt(".wa__popup_chat_box").hasClass("wa__lauch")&&new Promise((t,e)=>{n=setTimeout(function(){bt(".wa__popup_chat_box").removeClass("wa__pending"),bt(".wa__popup_chat_box").removeClass("wa__lauch"),t(n)},400)}).then(()=>{t.setAttribute("isLaunch",!1)})):(bt(".wa__popup_chat_box").addClass("wa__pending"),bt(".wa__popup_chat_box").addClass("wa__active"),bt(".wa__btn_popup").addClass("wa__active"),clearTimeout(n),bt(".wa__popup_chat_box").hasClass("wa__lauch")||(bt(".wa__popup_chat_box").addClass("wa__pending"),bt(".wa__popup_chat_box").addClass("wa__active"),bt(".wa__btn_popup").addClass("wa__active"),new Promise((t,n)=>{e=setTimeout(function(){bt(".wa__popup_chat_box").addClass("wa__lauch"),t(e)},300)}).then(()=>{t.setAttribute("isLaunch",!0)})))},changeWidgetPosition(t){const e=t.target.value;bt(".setting.align button").removeClass("active"),bt(t.target).addClass("active"),bt("#btnPosition").val(e),this.setAttribute("btnPosition",e),"left"==e&&(bt("#left-range-slider").show(),bt("#right-range-slider").hide()),"right"==e&&(bt("#left-range-slider").hide(),bt("#right-range-slider").show())},setAttribute(t,e){this.model.set({[t]:e})},setGDPR(t){const e=t.target.checked;e?bt("#nta-gdpr-editor").removeClass("hidden").show():bt("#nta-gdpr-editor").hide(),this.setAttribute("isShowGDPR",e?"ON":"OFF")},setAttributeByCheck:function(t){const e=jQuery(t.target).attr("id");let n=t.target.checked;"isShowBtnLabel"===e&&(n=n?"ON":"OFF","ON"==n?jQuery("#btnLabelWidth, #btnLabel").closest("tr").show():jQuery("#btnLabelWidth, #btnLabel").closest("tr").hide()),this.setAttribute(e,n)},setAttributeByEvent:function(t){const e=jQuery(t.target).attr("id"),n=jQuery(t.target).val();this.setAttribute(e,vt.sanitize(n))},setAttributeByEditor:function(t){const e=tinyMCE.get(t).getContent();this.setAttribute(t,e)},setRangeSlider:function(t){this.setAttribute(t.target.name,t.target.value)}})}("#app-design"))({model:e}),t("#app-preview").length&&new(function(t=null){if(null!==t)return Backbone.View.extend({el:t,template:_.template(bt("#widget-preview").html()),initialize:function(){this.listenTo(this.model,"change",this.render),this.listenTo(this.collection,"sync",this.render),this.render()},render:function(){const t=this.model.toJSON();return t.responseText=t.responseText.njtReplaceAll(/\r\n\r\n/gm,"<br/>"),t.gdprContent=t.gdprContent.njtReplaceAll(/\r\n\r\n/gm,"<br/>"),t.description=t.description.njtReplaceAll(/\r\n\r\n/gm,"<br/>"),this.$el.html(this.template({settings:t,accounts:this.collection.active()})),this.wgIcon=this.$el.find(".wa__btn_popup_icon"),this.wgBtnIcon=this.$el.find(".wa__btn_popup"),this.wgLabel=this.$el.find(".wa__btn_popup_txt"),this.wgPopup=this.$el.find(".wa__popup_chat_box"),this.wgPopupHeading=this.$el.find(".wa__popup_heading"),this.wgPopupContent=this.$el.find(".wa__popup_content_list"),this.wgPopupNotice=this.$el.find(".wa__popup_notice"),this.wgTitle=this.$el.find(".wa__popup_title"),this.wgAccountName=this.$el.find(".wa__member_name"),this.wgAccountDuty=this.$el.find(".wa__member_duty"),this.wgIntro=this.$el.find(".wa__popup_intro"),this.wgTitle.css({color:this.model.get("textColor"),fontSize:parseInt(this.model.get("titleSize"))}),this.wgIntro.css({color:"#fff"==this.model.get("textColor")||"#ffffff"==this.model.get("textColor")?"#D9EBC6":this.model.get("textColor"),opacity:"#fff"==this.model.get("textColor")||"#ffffff"==this.model.get("textColor")?1:.8,fontSize:parseInt(this.model.get("descriptionTextSize"))}),this.wgAccountName.css({fontSize:parseInt(this.model.get("accountNameSize"))}),this.wgAccountDuty.css({fontSize:parseInt(this.model.get("regularTextSize"))}),this.wgIcon.css({background:this.model.get("backgroundColor")}),this.wgBtnIcon.css({left:"left"===this.model.get("btnPosition")?parseInt(this.model.get("btnLeftDistance")):"unset",right:"right"===this.model.get("btnPosition")?parseInt(this.model.get("btnRightDistance")):"unset",bottom:parseInt(this.model.get("btnBottomDistance"))}),this.wgLabel.css({display:"ON"===this.model.get("isShowBtnLabel")?"block":"none",left:"left"===this.model.get("btnPosition")?"100%":"unset",right:"right"===this.model.get("btnPosition")?"100%":"unset",marginRight:"right"===this.model.get("btnPosition")?"7px":"0px",marginLeft:"left"===this.model.get("btnPosition")?"7px":"0px",width:this.model.get("btnLabelWidth")}),this.wgPopup.css({left:"left"===this.model.get("btnPosition")?parseInt(this.model.get("btnLeftDistance")):"unset",right:"right"===this.model.get("btnPosition")?parseInt(this.model.get("btnRightDistance")):"unset",bottom:parseInt(this.model.get("btnBottomDistance"))+72}),this.wgPopupHeading.css({background:this.model.get("backgroundColor")}),this.wgPopupNotice.css({fontSize:parseInt(this.model.get("regularTextSize"))}),"left"==this.model.get("btnPosition")?(bt("#left-range-slider").show(),bt("#right-range-slider").hide()):(bt("#left-range-slider").hide(),bt("#right-range-slider").show()),"OFF"==this.model.get("isShowGDPR")?bt(".nta-wa-gdpr").hide():bt(".nta-wa-gdpr").show(),this}})}("#app-preview"))({model:e,collection:i})}if(t("#wa-button, #button-design").length){const e=new At;t("#wa-button").length&&new(function(t=null){if(null!==t)return Backbone.View.extend({el:t,template:_.template(bt("#button-preview").html()),initialize:function(){this.render(),this.listenTo(this.model,"change",this.render)},render:function(){let t="";return t+="round"===this.model.get("type")?"wa__r_button ":"wa__sq_button ",t+=_.isEmpty(this.model.get("avatar"))?"wa__btn_w_icon ":"wa__btn_w_img ",t+=_.isEmpty(this.model.get("title"))?"wa__button_text_only":"",this.model.attributes.buttonClass=t,this.$el.html(this.template({buttonStyles:this.model.toJSON()})),this.btn=this.$el.find(".wa__button").css({background:this.model.get("backgroundColor")}),this.$el.find(".wa__btn_txt .wa__cs_name").css({color:"#fff"==this.model.get("textColor")||"#ffffff"==this.model.get("textColor")?"#d5f0d9":this.model.get("textColor"),opacity:"#fff"==this.model.get("textColor")||"#ffffff"==this.model.get("textColor")?1:"0.8"}),this.$el.find(".wa__btn_txt .wa__btn_title").css({color:this.model.get("textColor")}),this}})}("#wa-button"))({model:e}),t("#button-design").length&&new(function(t=null){if(null!==t)return Backbone.View.extend({el:t,events:{"change #textColor":"setAttributeByEvent","change #backgroundColor":"setAttributeByEvent","change #label":"setAttributeByEvent","click .btn-round":"changeButtonType","click .btn-square":"changeButtonType"},initialize:function(){const t=this;this.model.view=this,bt("#textColor").wpColorPicker({defaultColor:t.model.get("textColor"),change:function(e,n){t.setAttribute("textColor",n.color.toString())}}),bt("#backgroundColor").wpColorPicker({defaultColor:t.model.get("backgroundColor"),change:function(e,n){t.setAttribute("backgroundColor",n.color.toString())}})},setAttribute(t,e){this.model.set({[t]:e})},setAttributeByEvent:function(t){const e=jQuery(t.target).attr("id"),n=jQuery(t.target).val();this.setAttribute(e,n)},changeButtonType(t){const e=t.target.value;bt(".setting.align button").removeClass("active"),bt(t.target).addClass("active"),bt("#btnType").val(e);const n="round"==e?"wa__sq_button":"wa__r_button",i="round"==e?"wa__r_button":"wa__sq_button";bt("#njt-wabutton > a").removeClass(n).addClass(i),setTimeout(()=>{this.setAttribute("type",e)},300)},render:function(){let t="";return t+="round"===this.model.get("type")?"wa__r_button ":"wa__sq_button ",t+=_.isEmpty(this.model.get("avatar"))?"wa__btn_w_icon ":"wa__btn_w_img ",t+=_.isEmpty(this.model.get("title"))?"wa__button_text_only":"",this.model.attributes.buttonClass=t,this.$el.html(this.template({buttonStyles:this.model.toJSON()})),this}})}("#button-design"))({model:e})}})}(jQuery)})()})();
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.07 |
proxy
|
phpinfo
|
Settings