/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={},r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s})
;var manga_args={"paged":1,"orderby":"meta_value_num","template":"archive","sidebar":"full","post_type":"wp-manga","post_status":"publish","meta_key":"_latest_update","order":"DESC","meta_query":{"relation":"AND","0":[]},"error":"","m":"","p":0,"post_parent":"","subpost":"","subpost_id":"","attachment":"","attachment_id":0,"name":"","pagename":"","page_id":0,"second":"","minute":"","hour":"","day":0,"monthnum":0,"year":0,"w":0,"category_name":"","tag":"","cat":"","tag_id":"","author":"","author_name":"","feed":"","tb":"","meta_value":"","preview":"","s":"","sentence":"","title":"","fields":"","menu_order":"","embed":"","category__in":[],"category__not_in":[],"category__and":[],"post__in":[],"post__not_in":[],"post_name__in":[],"tag__in":[],"tag__not_in":[],"tag__and":[],"tag_slug__in":[],"tag_slug__and":[],"post_parent__in":[],"post_parent__not_in":[],"author__in":[],"author__not_in":[],"search_columns":[],"ignore_sticky_posts":!1,"suppress_filters":!1,"cache_results":!0,"update_post_term_cache":!0,"update_menu_item_cache":!1,"lazy_load_term_meta":!0,"update_post_meta_cache":!0,"posts_per_page":12,"nopaging":!1,"comments_per_page":"50","no_found_rows":!1}
;document.addEventListener('DOMContentLoaded',function(){var navElement=document.getElementById('nav');if(navElement){navElement.innerHTML=navElement.innerHTML.replace(/\|/g,'<span class="loginpress-seprator">|</span>')}
if(document.querySelector('.footer-cont').innerHTML==''){document.querySelector('.footer-wrapper').style.display="none"}})
;var gRecaptchas=document.getElementsByClassName('g-recaptcha');for(let i=0;i<gRecaptchas.length;i++){gRecaptchas[i].setAttribute('data-callback','wpMangaSubmitSwitch');gRecaptchas[i].setAttribute('data-expired-callback','wpMangaSubmitSwitch');gRecaptchas[i].setAttribute('data-error','wpMangaSubmitSwitch')}
;(()=>{"use strict";var e={607:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(889),o=n.n(s),r=n(786),i=n.n(r)()(o());i.push([e.id,"#wgWidgetScreen{height:100%}.wg-wrapper[data-v-1715325d]{font-family:var(--027a15d2);height:100%}",""]);const c=i},236:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(889),o=n.n(s),r=n(786),i=n.n(r)()(o());i.push([e.id,".wg-loader-p[data-v-3a168de6]{background:var(--ac1a6266);border-bottom:1px solid var(--d5b65788)}",""]);const c=i},437:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(889),o=n.n(s),r=n(786),i=n.n(r)()(o());i.push([e.id,"#wgWidgetScreen .wg-widget-container[data-v-71ede5d7]{padding:8px;display:flex;flex-direction:column}#wgWidgetScreen .wg-widget-container .wgwidget-game__info[data-v-71ede5d7]{display:flex;flex-direction:row}",""]);const c=i},21:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(889),o=n.n(s),r=n(786),i=n.n(r)()(o());i.push([e.id,"#wgWidgetScreen .wg-widget-command[data-v-d0329ce8]{display:flex;justify-content:center;flex-direction:column;align-items:center;margin:auto}#wgWidgetScreen .wg-widget-command__icon[data-v-d0329ce8]{width:60px;height:60px}#wgWidgetScreen .wg-widget-command__name[data-v-d0329ce8]{margin-top:4px;color:var(--48c6238d);font-size:var(--6a023ba8);font-weight:var(--59dd104d);line-height:16px}",""]);const c=i},465:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(889),o=n.n(s),r=n(786),i=n.n(r)()(o());i.push([e.id,"#wgWidgetScreen .wg-widget-placeholder[data-v-ab37b148]{display:flex;flex-direction:row;align-items:center;border-radius:2px;padding:4px 8px;background-color:var(--7125f0f9);font-size:var(--f53d7b10);font-weight:var(--2f75ccf9);color:var(--6ae5934f);margin:8px 0}#wgWidgetScreen .wg-widget-placeholder__icon[data-v-ab37b148]{margin-right:4px}",""]);const c=i},783:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(889),o=n.n(s),r=n(786),i=n.n(r)()(o());i.push([e.id,"#wgWidgetScreen .wg-widget-score[data-v-1780b0c2]{margin:0 16px;display:flex;justify-content:center;align-items:center;flex-direction:column}#wgWidgetScreen .wg-widget-score .wg-score[data-v-1780b0c2]{color:var(--462d4044);font-size:var(--7361240c);font-weight:var(--6643421c)}#wgWidgetScreen .wg-widget-score .wg-score .wg-green[data-v-1780b0c2]{color:var(--cb42d28a)}#wgWidgetScreen .wg-widget-score .wg-score .wg-up-score[data-v-1780b0c2]{color:var(--323e0e49)}#wgWidgetScreen .wg-widget-score .wg-score .wg-down-score[data-v-1780b0c2]{color:var(--7f31873a)}#wgWidgetScreen .wg-widget-score .wg-score .wg-score__divider[data-v-1780b0c2]{margin:0 8px}#wgWidgetScreen .wg-widget-score .wg-status[data-v-1780b0c2]{background:var(--98b34ad4);color:var(--7f31873a);padding:0 8px;border-radius:8px;width:fit-content;margin:auto;font-size:var(--108e9c55);font-weight:var(--09f3aebc)}#wgWidgetScreen .wg-widget-score .wg-live[data-v-1780b0c2]{color:var(--323e0e49)}#wgWidgetScreen .wg-widget-score .wg-pen-score[data-v-1780b0c2]{color:var(--e3d9fbdc);font-size:var(--108e9c55);font-weight:var(--09f3aebc)}",""]);const c=i},449:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(889),o=n.n(s),r=n(786),i=n.n(r)()(o());i.push([e.id,"#wgWidgetScreen .wg-widget-title[data-v-559a7950]{color:var(--66e33070);font-size:var(--5b7fdb8b);font-weight:var(--1d2a5646)}",""]);const c=i},786:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",s=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),s&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),s&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,s,o,r){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(s)for(var c=0;c<this.length;c++){var a=this[c][0];null!=a&&(i[a]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);s&&i[u[0]]||(void 0!==r&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},889:e=>{e.exports=function(e){return e[1]}},374:(e,t)=>{t.A=(e,t)=>{const n=e.__vccOpts||e;for(const[e,s]of t)n[e]=s;return n}},72:e=>{var t=[];function n(e){for(var n=-1,s=0;s<t.length;s++)if(t[s].identifier===e){n=s;break}return n}function s(e,s){for(var r={},i=[],c=0;c<e.length;c++){var a=e[c],l=s.base?a[0]+s.base:a[0],u=r[l]||0,d="".concat(l," ").concat(u);r[l]=u+1;var h=n(d),p={css:a[1],media:a[2],sourceMap:a[3],supports:a[4],layer:a[5]};if(-1!==h)t[h].references++,t[h].updater(p);else{var f=o(p,s);s.byIndex=c,t.splice(c,0,{identifier:d,updater:f,references:1})}i.push(d)}return i}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var r=s(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<r.length;i++){var c=n(r[i]);t[c].references--}for(var a=s(e,o),l=0;l<r.length;l++){var u=n(r[l]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}r=a}}},659:e=>{var t={};e.exports=function(e,n){var s=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var s="";n.supports&&(s+="@supports (".concat(n.supports,") {")),n.media&&(s+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(s+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),s+=n.css,o&&(s+="}"),n.media&&(s+="}"),n.supports&&(s+="}");var r=n.sourceMap;r&&"undefined"!=typeof btoa&&(s+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(s,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function n(s){var o=t[s];if(void 0!==o)return o.exports;var r=t[s]={id:s,exports:{}};return e[s](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var s={};n.r(s),n.d(s,{colors:()=>u,fonts:()=>l,state:()=>d});const o="football",r="sport:"+o,i={en:["Finished","Half time","Postponed","Cancelled","Results only","Live","Finished (OT)","Finished (P)","Awarded","Extra HT","Penalties","Pause","Break time","Q1","Q2","Q3","Q4","OT"],fr:["Finis","Mi-temps","Reporté","Annulé","Résultats uniquement","En ligne","Terminé (Prol.)","Terminé (P)","Récompensé","HT supplémentaire","Pénalités","Pause","Temps de pause","Q1","Q2","Q3","Q4","Prol."],pt:["Completado","Meia hora","Adiado","Cancelado","Apenas resultados","Ao vivo","Finalizado (TE)","Finalizado (P)","Atribuído","Intervalo extra","Penalidades","Pausa","Tempo de intervalo","Q1","Q2","Q3","Q4","TE"],de:["Beendet","Halbzeit","Verschoben","Annulliert","Nur Ergebnisse","Live","Beendet (Verl.)","Beendet (P)","Ausgezeichnet","Zusätzliche HT","Strafstöße","Pause","Pausezeit","Q1","Q2","Q3","Q4","Verl."],id:["Selesai","Setengah waktu","Ditunda","Dibatalkan","Hanya hasil","Langsung","Selesai (WT)","Selesai (P)","Diberikan","HT tambahan","Penalti","Berhenti sebentar","Waktu istirahat","Q1","Q2","Q3","Q4","WT"],it:["Finito","Metà tempo","posticipato","Annullato","Solo risultati","Dal vivo","Finito (Suppl.)","Finito (P)","Premiato","HT extra","Rigori","Pausa","Tempo di pausa","Q1","Q2","Q3","Q4","Suppl."],ko:["완성 된","하프 타임","연기","취소 된","결과만","생중계","종료 (연장)","종료 (P)","수상","추가 HT","페널티","중지","휴식 시간","Q1","Q2","Q3","Q4","연장"],pl:["Zakończone","Połowa czasu","Odłożony","Odwołany","Tylko wyniki","Na żywo","Zakończony (Dogr.)","Zakończony (P)","Wyróżniony","Dodatkowa HT","Karne","Przerwa","Czas przerwy","Q1","Q2","Q3","Q4","Dogr."],ru:["Завершен","Половина времени","Перенесен","Отменен","Только результаты","В прямом эфире","Завершен (ОТ)","Завершен (П)","Награжден","Дополнительный перерыв","Пенальти","Пауза","Перерыв","Q1","Q2","Q3","Q4","ОТ"],es:["Completado","Medio tiempo","Aplazado","Cancelado","Solo resultados","En vivo","Terminado (Prorr.)","Terminado (P)","Concedido","Descanso extra","Penaltis","Pausa","Tiempo de descanso","Q1","Q2","Q3","Q4","Prorr."],th:["ที่เสร็จเรียบร้อย","ครึ่งแรก","เลื่อนออกไป","ยกเลิก","เฉพาะผลลัพธ์","ถ่ายทอดสด","สิ้นสุด (ต่อเวลา)","สิ้นสุด (P)","ได้รับรางวัล","พักเพิ่มเติม HT","จุดโทษ","หยุด","เวลาพัก","Q1","Q2","Q3","Q4","ต่อเวลา"],tr:["Bitmiş","Yarıya","Ertelenen","İptal edildi","Sadece sonuçlar","Canlı","Bitmiş (Uz.)","Bitmiş (P)","Layık görülmek","Ekstra HT","Penaltılar","Duraklat","Mola zamanı","Q1","Q2","Q3","Q4","Uz."],uk:["Завершено","Половина часу","Перенесений","Скасований","Тільки результати","Наживо","Закінчено (ДЧ)","Закінчено (П)","Нагороджений","Додатковиа перерва","Пенальті","Пауза","Перерва","Q1","Q2","Q3","Q4","ДЧ"],vi:["Hoàn thành","Nửa thời gian","Hoãn lại","Đã hủy","Chỉ kết quả","Trực tiếp","Hoàn thành (PG)","Hoàn thành (P)","Trao giải thưởng","Nghỉ giữa hiệp phụ","Phạt đền","Tạm ngừng","Thời gian nghỉ","Q1","Q2","Q3","Q4","PG"],nl:["Afgelopen","Rust","Uitgesteld","Geannuleerd","Alleen resultaten","Live","Afgerond (Verl.)","Afgerond (P)","Toegekend","Extra HT","Strafschoppen","Pauze","Pauzetijd","Q1","Q2","Q3","Q4","Verl."],ro:["Terminat","Jumătate de timp","Amânat","Anulat","Doar rezultate","Live","Finalizat (Prel.)","Finalizat (P)","Acordat","HT suplimentar","Penalități","Pauză","Timp de pauză","Q1","Q2","Q3","Q4","Prel."],ka:["დასრულდა","Ნახევარი დრო","გადაიდო","გაუქმებულია","მხოლოდ შედეგები","პირდაპირი","დასრულდა (დრო გაგრძ.)","დასრულდა (P)","Დაჯილდოებული","დამატებითი HT","პენალტები","პაუზა","შესვენების დრო","Q1","Q2","Q3","Q4","დრო გაგრძ."],hy:["Ավարտվեց","Կես ժամ","Հետաձգվել է","Չեղյալ է հայտարարվել","Միայն արդյունքները","Ուղիղ","Ավարտված է (Հավ. ժամ.)","Ավարտված է (P)","Պարգևատրվել է","Ավելին HT","Պենալտիներ","Դադար","Դադարի ժամանակ","Q1","Q2","Q3","Q4","Հավ. ժամ."],az:["Başa çatdı","Yarım vaxt","Təxirə salındı","Lağv edildi","Yalnız nəticələr","Canlı","Bitdi (Uzatma)","Bitdi (P)","Mükafatlandırıldı","Əlavə HT","Penalti","Fasilə","Fasilə vaxtı","Q1","Q2","Q3","Q4","Uzatma"],el:["Ολοκληρώθηκε","Ημίχρονο","Αναβλήθηκε","Ακυρώθηκε","Μόνο αποτελέσματα","Ζωντανά","Ολοκληρώθηκε (Παρ.)","Ολοκληρώθηκε (P)","Βραβευμένο","Επιπλέον HT","Πέναλτι","Παύση","Διάλειμμα","Q1","Q2","Q3","Q4","Παρ."],uz:["Bajarildi","Yarim vaqt","Kechiktirildi","Bekor qilindi","Faqat natijalar","Jonli","Tugadi (Uzv.)","Tugadi (P)","Mukofotlangan","Qo'shimcha HT","Penalti tiplari","Pauza","Tanaffus vaqti","Q1","Q2","Q3","Q4","Uzv."]},c={en:"Information will be available later",fr:"Les informations seront disponibles ultérieurement",pt:"As informações estarão disponíveis posteriormente",de:"Informationen werden zu einem späteren Zeitpunkt verfügbar sein",id:"Informasi akan tersedia kemudian",it:"Le informazioni saranno disponibili in seguito",ko:"정보는 추후 제공될 예정입니다.",pl:"Informacje będą dostępne później",ru:"Информация будет доступна позже",es:"La información estará disponible más adelante",th:"ข้อมูลจะพร้อมใช้งานในภายหลัง",tr:"Bilgi daha sonra sunulacaktır",uk:"Інформація буде доступна пізніше",vi:"Thông tin sẽ có sẵn sau",nl:"Informatie is later beschikbaar",ro:"Informațiile vor fi disponibile ulterior",ka:"ინფორმაცია მოგვიანებით იქნება ხელმისაწვდომი",hy:"Տեղեկատվությունը հասանելի կլինի ավելի ուշ",az:"Məlumat daha sonra mövcud olacaq",el:"Οι πληροφορίες θα είναι διαθέσιμες αργότερα",uz:"Ma'lumot keyinchalik beriladi"},a={en:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],de:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],pt:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],id:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],it:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],ko:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],pl:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],ru:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],es:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],th:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],tr:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],uk:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],vi:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],nl:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],ro:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],ka:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],hy:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],az:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],el:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],uz:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"]},l={main_font:"Roboto",regular:"400",medium500:"500",bold:"600",bold700:"700",small:"10px",medium:"12px",large:"14px",large32:"32px"},u={primary_black:"#212B36",primary_grey:"#8595A5",white_secondary:"#F9FAFB",secondary_grey:"#6A7B8B",green:"#1B883F",red:"#D70C17",lightGray:"#30365B",midnight:"#111936"},d={on:!0,off:!1};function h(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}Object.freeze(l),Object.freeze(u),Object.freeze(d);const p={},f=[],_=()=>{},m=()=>!1,g=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),b=e=>e.startsWith("onUpdate:"),v=Object.assign,w=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},y=Object.prototype.hasOwnProperty,S=(e,t)=>y.call(e,t),T=Array.isArray,x=e=>"[object Map]"===R(e),C=e=>"[object Set]"===R(e),k=e=>"function"==typeof e,E=e=>"string"==typeof e,P=e=>"symbol"==typeof e,A=e=>null!==e&&"object"==typeof e,L=e=>(A(e)||k(e))&&k(e.then)&&k(e.catch),O=Object.prototype.toString,R=e=>O.call(e),j=e=>R(e).slice(8,-1),I=e=>"[object Object]"===R(e),z=e=>E(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,M=h(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),F=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},D=/-(\w)/g,U=F((e=>e.replace(D,((e,t)=>t?t.toUpperCase():"")))),Q=/\B([A-Z])/g,N=F((e=>e.replace(Q,"-$1").toLowerCase())),$=F((e=>e.charAt(0).toUpperCase()+e.slice(1))),B=F((e=>e?`on${$(e)}`:"")),W=(e,t)=>!Object.is(e,t),V=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},H=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},q=e=>{const t=parseFloat(e);return isNaN(t)?e:t},J=e=>{const t=E(e)?Number(e):NaN;return isNaN(t)?e:t};let G;const K=()=>G||(G="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});function Z(e){if(T(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=E(s)?te(s):Z(s);if(o)for(const e in o)t[e]=o[e]}return t}if(E(e)||A(e))return e}const Y=/;(?![^(]*\))/g,X=/:([^]+)/,ee=/\/\*[^]*?\*\//g;function te(e){const t={};return e.replace(ee,"").split(Y).forEach((e=>{if(e){const n=e.split(X);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function ne(e){let t="";if(E(e))t=e;else if(T(e))for(let n=0;n<e.length;n++){const s=ne(e[n]);s&&(t+=s+" ")}else if(A(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const se=h("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function oe(e){return!!e||""===e}const re=e=>!(!e||!0!==e.__v_isRef),ie=e=>E(e)?e:null==e?"":T(e)||A(e)&&(e.toString===O||!k(e.toString))?re(e)?ie(e.value):JSON.stringify(e,ce,2):String(e),ce=(e,t)=>re(t)?ce(e,t.value):x(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],s)=>(e[ae(t,s)+" =>"]=n,e)),{})}:C(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>ae(e)))}:P(t)?ae(t):!A(t)||T(t)||I(t)?t:String(t),ae=(e,t="")=>{var n;return P(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let le,ue;class de{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=le,!e&&le&&(this.index=(le.scopes||(le.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=le;try{return le=this,e()}finally{le=t}}}on(){le=this}off(){le=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}class he{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,function(e,t=le){t&&t.active&&t.effects.push(e)}(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,we();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(pe(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),ye()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=ge,t=ue;try{return ge=!0,ue=this,this._runnings++,fe(this),this.fn()}finally{_e(this),this._runnings--,ue=t,ge=e}}stop(){this.active&&(fe(this),_e(this),this.onStop&&this.onStop(),this.active=!1)}}function pe(e){return e.value}function fe(e){e._trackId++,e._depsLength=0}function _e(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)me(e.deps[t],e);e.deps.length=e._depsLength}}function me(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}let ge=!0,be=0;const ve=[];function we(){ve.push(ge),ge=!1}function ye(){const e=ve.pop();ge=void 0===e||e}function Se(){be++}function Te(){for(be--;!be&&Ce.length;)Ce.shift()()}function xe(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&me(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Ce=[];function ke(e,t,n){Se();for(const n of e.keys()){let s;n._dirtyLevel<t&&(null!=s?s:s=e.get(n)===n._trackId)&&(n._shouldSchedule||(n._shouldSchedule=0===n._dirtyLevel),n._dirtyLevel=t),n._shouldSchedule&&(null!=s?s:s=e.get(n)===n._trackId)&&(n.trigger(),n._runnings&&!n.allowRecurse||2===n._dirtyLevel||(n._shouldSchedule=!1,n.scheduler&&Ce.push(n.scheduler)))}Te()}const Ee=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Pe=new WeakMap,Ae=Symbol(""),Le=Symbol("");function Oe(e,t,n){if(ge&&ue){let t=Pe.get(e);t||Pe.set(e,t=new Map);let s=t.get(n);s||t.set(n,s=Ee((()=>t.delete(n)))),xe(ue,s)}}function Re(e,t,n,s,o,r){const i=Pe.get(e);if(!i)return;let c=[];if("clear"===t)c=[...i.values()];else if("length"===n&&T(e)){const e=Number(s);i.forEach(((t,n)=>{("length"===n||!P(n)&&n>=e)&&c.push(t)}))}else switch(void 0!==n&&c.push(i.get(n)),t){case"add":T(e)?z(n)&&c.push(i.get("length")):(c.push(i.get(Ae)),x(e)&&c.push(i.get(Le)));break;case"delete":T(e)||(c.push(i.get(Ae)),x(e)&&c.push(i.get(Le)));break;case"set":x(e)&&c.push(i.get(Ae))}Se();for(const e of c)e&&ke(e,4);Te()}const je=h("__proto__,__v_isRef,__isVue"),Ie=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(P)),ze=Me();function Me(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=St(this);for(let e=0,t=this.length;e<t;e++)Oe(n,0,e+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(St)):s}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){we(),Se();const n=St(this)[t].apply(this,e);return Te(),ye(),n}})),e}function Fe(e){P(e)||(e=String(e));const t=St(this);return Oe(t,0,e),t.hasOwnProperty(e)}class De{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,o=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return o;if("__v_raw"===t)return n===(s?o?ft:pt:o?ht:dt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const r=T(e);if(!s){if(r&&S(ze,t))return Reflect.get(ze,t,n);if("hasOwnProperty"===t)return Fe}const i=Reflect.get(e,t,n);return(P(t)?Ie.has(t):je(t))?i:(s||Oe(e,0,t),o?i:Pt(i)?r&&z(t)?i:i.value:A(i)?s?mt(i):_t(i):i)}}class Ue extends De{constructor(e=!1){super(!1,e)}set(e,t,n,s){let o=e[t];if(!this._isShallow){const t=vt(o);if(wt(n)||vt(n)||(o=St(o),n=St(n)),!T(e)&&Pt(o)&&!Pt(n))return!t&&(o.value=n,!0)}const r=T(e)&&z(t)?Number(t)<e.length:S(e,t),i=Reflect.set(e,t,n,s);return e===St(s)&&(r?W(n,o)&&Re(e,"set",t,n):Re(e,"add",t,n)),i}deleteProperty(e,t){const n=S(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&Re(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return P(t)&&Ie.has(t)||Oe(e,0,t),n}ownKeys(e){return Oe(e,0,T(e)?"length":Ae),Reflect.ownKeys(e)}}class Qe extends De{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Ne=new Ue,$e=new Qe,Be=new Ue(!0),We=e=>e,Ve=e=>Reflect.getPrototypeOf(e);function He(e,t,n=!1,s=!1){const o=St(e=e.__v_raw),r=St(t);n||(W(t,r)&&Oe(o,0,t),Oe(o,0,r));const{has:i}=Ve(o),c=s?We:n?xt:Tt;return i.call(o,t)?c(e.get(t)):i.call(o,r)?c(e.get(r)):void(e!==o&&e.get(t))}function qe(e,t=!1){const n=this.__v_raw,s=St(n),o=St(e);return t||(W(e,o)&&Oe(s,0,e),Oe(s,0,o)),e===o?n.has(e):n.has(e)||n.has(o)}function Je(e,t=!1){return e=e.__v_raw,!t&&Oe(St(e),0,Ae),Reflect.get(e,"size",e)}function Ge(e,t=!1){t||wt(e)||vt(e)||(e=St(e));const n=St(this);return Ve(n).has.call(n,e)||(n.add(e),Re(n,"add",e,e)),this}function Ke(e,t,n=!1){n||wt(t)||vt(t)||(t=St(t));const s=St(this),{has:o,get:r}=Ve(s);let i=o.call(s,e);i||(e=St(e),i=o.call(s,e));const c=r.call(s,e);return s.set(e,t),i?W(t,c)&&Re(s,"set",e,t):Re(s,"add",e,t),this}function Ze(e){const t=St(this),{has:n,get:s}=Ve(t);let o=n.call(t,e);o||(e=St(e),o=n.call(t,e)),s&&s.call(t,e);const r=t.delete(e);return o&&Re(t,"delete",e,void 0),r}function Ye(){const e=St(this),t=0!==e.size,n=e.clear();return t&&Re(e,"clear",void 0,void 0),n}function Xe(e,t){return function(n,s){const o=this,r=o.__v_raw,i=St(r),c=t?We:e?xt:Tt;return!e&&Oe(i,0,Ae),r.forEach(((e,t)=>n.call(s,c(e),c(t),o)))}}function et(e,t,n){return function(...s){const o=this.__v_raw,r=St(o),i=x(r),c="entries"===e||e===Symbol.iterator&&i,a="keys"===e&&i,l=o[e](...s),u=n?We:t?xt:Tt;return!t&&Oe(r,0,a?Le:Ae),{next(){const{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:c?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function tt(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function nt(){const e={get(e){return He(this,e)},get size(){return Je(this)},has:qe,add:Ge,set:Ke,delete:Ze,clear:Ye,forEach:Xe(!1,!1)},t={get(e){return He(this,e,!1,!0)},get size(){return Je(this)},has:qe,add(e){return Ge.call(this,e,!0)},set(e,t){return Ke.call(this,e,t,!0)},delete:Ze,clear:Ye,forEach:Xe(!1,!0)},n={get(e){return He(this,e,!0)},get size(){return Je(this,!0)},has(e){return qe.call(this,e,!0)},add:tt("add"),set:tt("set"),delete:tt("delete"),clear:tt("clear"),forEach:Xe(!0,!1)},s={get(e){return He(this,e,!0,!0)},get size(){return Je(this,!0)},has(e){return qe.call(this,e,!0)},add:tt("add"),set:tt("set"),delete:tt("delete"),clear:tt("clear"),forEach:Xe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=et(o,!1,!1),n[o]=et(o,!0,!1),t[o]=et(o,!1,!0),s[o]=et(o,!0,!0)})),[e,n,t,s]}const[st,ot,rt,it]=nt();function ct(e,t){const n=t?e?it:rt:e?ot:st;return(t,s,o)=>"__v_isReactive"===s?!e:"__v_isReadonly"===s?e:"__v_raw"===s?t:Reflect.get(S(n,s)&&s in t?n:t,s,o)}const at={get:ct(!1,!1)},lt={get:ct(!1,!0)},ut={get:ct(!0,!1)},dt=new WeakMap,ht=new WeakMap,pt=new WeakMap,ft=new WeakMap;function _t(e){return vt(e)?e:gt(e,!1,Ne,at,dt)}function mt(e){return gt(e,!0,$e,ut,pt)}function gt(e,t,n,s,o){if(!A(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const r=o.get(e);if(r)return r;const i=(c=e).__v_skip||!Object.isExtensible(c)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(j(c));var c;if(0===i)return e;const a=new Proxy(e,2===i?s:n);return o.set(e,a),a}function bt(e){return vt(e)?bt(e.__v_raw):!(!e||!e.__v_isReactive)}function vt(e){return!(!e||!e.__v_isReadonly)}function wt(e){return!(!e||!e.__v_isShallow)}function yt(e){return!!e&&!!e.__v_raw}function St(e){const t=e&&e.__v_raw;return t?St(t):e}const Tt=e=>A(e)?_t(e):e,xt=e=>A(e)?mt(e):e;class Ct{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new he((()=>e(this._value)),(()=>Et(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=St(this);return e._cacheable&&!e.effect.dirty||!W(e._value,e._value=e.effect.run())||Et(e,4),kt(e),e.effect._dirtyLevel>=2&&Et(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function kt(e){var t;ge&&ue&&(e=St(e),xe(ue,null!=(t=e.dep)?t:e.dep=Ee((()=>e.dep=void 0),e instanceof Ct?e:void 0)))}function Et(e,t=4,n,s){const o=(e=St(e)).dep;o&&ke(o,t)}function Pt(e){return!(!e||!0!==e.__v_isRef)}function At(e){return n=!1,Pt(t=e)?t:new Lt(t,n);var t,n}class Lt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:St(e),this._value=t?e:Tt(e)}get value(){return kt(this),this._value}set value(e){const t=this.__v_isShallow||wt(e)||vt(e);e=t?e:St(e),W(e,this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=t?e:Tt(e),Et(this,4))}}function Ot(e){return Pt(e)?e.value:e}const Rt={get:(e,t,n)=>Ot(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return Pt(o)&&!Pt(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function jt(e){return bt(e)?e:new Proxy(e,Rt)}class It{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=Pe.get(e);return n&&n.get(t)}(St(this._object),this._key)}}class zt{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Mt(e,t,n){return Pt(e)?e:k(e)?new zt(e):A(e)&&arguments.length>1?function(e,t,n){const s=e[t];return Pt(s)?s:new It(e,t,n)}(e,t,n):At(e)}const Ft="plan",Dt="live",Ut="results_only",Qt="cancelled",Nt="postponed",$t="finished",Bt="finished_overtime",Wt="finished_penalty",Vt="finished_technical_defeat",Ht="halftime",qt="pause",Jt="1st_quarter",Gt="2nd_quarter",Kt="3rd_quarter",Zt="4th_quarter",Yt="overtime",Xt="break_time",en="extra_time_halftime",tn="penalties",nn=[Dt,Ut,Ht,qt,Jt,Gt,Kt,Zt,Yt,Xt,en,tn],sn=[Dt,Ht,qt,Jt,Gt,Kt,Zt,Yt,Xt,en,tn],on=[Ft,Dt,Qt,Nt,$t,Bt,Wt,Vt,Ut,Ht,qt,Jt,Gt,Kt,Zt,Xt,Yt,en,tn];function rn(e,t){const n=e=>e&&"object"==typeof e,s=JSON.parse(JSON.stringify(e));return Object.keys(e).forEach((e=>{const o=s[e],r=t[e];n(o)&&n(r)?s[e]=rn(o,r):s[e]=r??s[e]})),s}const cn=e=>e<10?"0"+e:e,an=e=>cn(e.getHours())+":"+cn(e.getMinutes()),ln=_t({matches:{},loading:At(!0)}),un=async()=>{const e=["live","today","tomorrow"];let t=null;for(let n in e)if(hn.initData={period:e[n]},t=await hn.socketEmit(hn.rpcSport,hn.initData),t&&t.length)break;(e=>{if(!e)return void console.log("Data is empty...");console.log("data received. period:"+hn.initData.period);const t=(e=>{hn.debug&&console.log("data:",e);const t={};return e.forEach((e=>{const n=new Date(1e3*e.date),s=on.includes(e.stage)?e.stage:console.log("unknown stages for item:",e)??e.stage,o={...rn({slug:"?",matchTime:null,home:{img:null,abbr:null,name:"?",periods:null,score:null},away:{img:null,abbr:null,name:"?",periods:null,score:null}},e),league:rn({slug:"?",name:"?",country:"?",img:null},e.league),date:(r=n,cn(r.getDate())+"/"+cn(r.getMonth()+1)+"/"+cn(r.getFullYear())),time:an(n),stage:s,live:nn.includes(s),details:{loading:!1,show:!1,events:{body:{}}}};var r;o.home.abbr=o.home.abbr||o.home.name.substr(0,3).toUpperCase(),o.away.abbr=o.away.abbr||o.away.name.substr(0,3).toUpperCase(),t[o.slug]=o})),t})(e);ln.matches=t,ln.loading=At(!1)})(t)};let dn=null;const hn={debug:!1,mainId:"wgWidgetScreen",matchSlug:null,socket:null,sub:null,sport:null,rpcSport:null,rpcSportDetail:null,initData:null,lang:"en",empty:"",widgetMes:[],style:s,resetAutoUpdate:()=>{dn&&clearTimeout(dn),dn=setTimeout((()=>{console.log("auto update match by timeout"),un()}),6e5)},getFullMatch:()=>un(),async socketEmit(...e){let t=3,n=null;const s=async()=>{try{n=await this.socket.rpc(e[0],{lang:this.lang,...e[1]})}catch(e){console.log(e),t&&(t--,await s())}};return await s(),n?.data??[]}};function pn(e,t,n,s){try{return s?e(...s):e()}catch(e){_n(e,t,n)}}function fn(e,t,n,s){if(k(e)){const o=pn(e,t,n,s);return o&&L(o)&&o.catch((e=>{_n(e,t,n)})),o}if(T(e)){const o=[];for(let r=0;r<e.length;r++)o.push(fn(e[r],t,n,s));return o}}function _n(e,t,n,s=!0){if(t&&t.vnode,t){let s=t.parent;const o=t.proxy,r=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const t=s.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,r))return;s=s.parent}const i=t.appContext.config.errorHandler;if(i)return we(),pn(i,null,10,[e,o,r]),void ye()}!function(e){console.error(e)}(e)}let mn=!1,gn=!1;const bn=[];let vn=0;const wn=[];let yn=null,Sn=0;const Tn=Promise.resolve();let xn=null;function Cn(e){const t=xn||Tn;return e?t.then(this?e.bind(this):e):t}function kn(e){bn.length&&bn.includes(e,mn&&e.allowRecurse?vn+1:vn)||(null==e.id?bn.push(e):bn.splice(function(e){let t=vn+1,n=bn.length;for(;t<n;){const s=t+n>>>1,o=bn[s],r=Ln(o);r<e||r===e&&o.pre?t=s+1:n=s}return t}(e.id),0,e),En())}function En(){mn||gn||(gn=!0,xn=Tn.then(Rn))}function Pn(e,t,n=(mn?vn+1:0)){for(;n<bn.length;n++){const t=bn[n];if(t&&t.pre){if(e&&t.id!==e.uid)continue;bn.splice(n,1),n--,t()}}}function An(e){if(wn.length){const e=[...new Set(wn)].sort(((e,t)=>Ln(e)-Ln(t)));if(wn.length=0,yn)return void yn.push(...e);for(yn=e,Sn=0;Sn<yn.length;Sn++){const e=yn[Sn];!1!==e.active&&e()}yn=null,Sn=0}}const Ln=e=>null==e.id?1/0:e.id,On=(e,t)=>{const n=Ln(e)-Ln(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Rn(e){gn=!1,mn=!0,bn.sort(On);try{for(vn=0;vn<bn.length;vn++){const e=bn[vn];e&&!1!==e.active&&pn(e,e.i,e.i?15:14)}}finally{vn=0,bn.length=0,An(),mn=!1,xn=null,(bn.length||wn.length)&&Rn(e)}}let jn=null,In=null;function zn(e){const t=jn;return jn=e,In=e&&e.type.__scopeId||null,t}function Mn(e){In=e}function Fn(){In=null}function Dn(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const c=o[i];r&&(c.oldValue=r[i].value);let a=c.dir[s];a&&(we(),fn(a,n,8,[e.el,c,e,t]),ye())}}const Un=Symbol("_leaveCb"),Qn=Symbol("_enterCb");const Nn=[Function,Array],$n={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Nn,onEnter:Nn,onAfterEnter:Nn,onEnterCancelled:Nn,onBeforeLeave:Nn,onLeave:Nn,onAfterLeave:Nn,onLeaveCancelled:Nn,onBeforeAppear:Nn,onAppear:Nn,onAfterAppear:Nn,onAppearCancelled:Nn},Bn=e=>{const t=e.subTree;return t.component?Bn(t.component):t},Wn={name:"BaseTransition",props:$n,setup(e,{slots:t}){const n=or(),s=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return cs((()=>{e.isMounted=!0})),us((()=>{e.isUnmounting=!0})),e}();return()=>{const o=t.default&&Zn(t.default(),!0);if(!o||!o.length)return;let r=o[0];if(o.length>1){let e=!1;for(const t of o)if(t.type!==Ro){r=t,e=!0;break}}const i=St(e),{mode:c}=i;if(s.isLeaving)return Jn(r);const a=Gn(r);if(!a)return Jn(r);let l=qn(a,i,s,n,(e=>l=e));Kn(a,l);const u=n.subTree,d=u&&Gn(u);if(d&&d.type!==Ro&&!Bo(a,d)&&Bn(n).type!==Ro){const e=qn(d,i,s,n);if(Kn(d,e),"out-in"===c&&a.type!==Ro)return s.isLeaving=!0,e.afterLeave=()=>{s.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},Jn(r);"in-out"===c&&a.type!==Ro&&(e.delayLeave=(e,t,n)=>{Hn(s,d)[String(d.key)]=d,e[Un]=()=>{t(),e[Un]=void 0,delete l.delayedLeave},l.delayedLeave=n})}return r}}},Vn=Wn;function Hn(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function qn(e,t,n,s,o){const{appear:r,mode:i,persisted:c=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:h,onLeave:p,onAfterLeave:f,onLeaveCancelled:_,onBeforeAppear:m,onAppear:g,onAfterAppear:b,onAppearCancelled:v}=t,w=String(e.key),y=Hn(n,e),S=(e,t)=>{e&&fn(e,s,9,t)},x=(e,t)=>{const n=t[1];S(e,t),T(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},C={mode:i,persisted:c,beforeEnter(t){let s=a;if(!n.isMounted){if(!r)return;s=m||a}t[Un]&&t[Un](!0);const o=y[w];o&&Bo(e,o)&&o.el[Un]&&o.el[Un](),S(s,[t])},enter(e){let t=l,s=u,o=d;if(!n.isMounted){if(!r)return;t=g||l,s=b||u,o=v||d}let i=!1;const c=e[Qn]=t=>{i||(i=!0,S(t?o:s,[e]),C.delayedLeave&&C.delayedLeave(),e[Qn]=void 0)};t?x(t,[e,c]):c()},leave(t,s){const o=String(e.key);if(t[Qn]&&t[Qn](!0),n.isUnmounting)return s();S(h,[t]);let r=!1;const i=t[Un]=n=>{r||(r=!0,s(),S(n?_:f,[t]),t[Un]=void 0,y[o]===e&&delete y[o])};y[o]=e,p?x(p,[t,i]):i()},clone(e){const r=qn(e,t,n,s,o);return o&&o(r),r}};return C}function Jn(e){if(Xn(e))return(e=Jo(e)).children=null,e}function Gn(e){if(!Xn(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&k(n.default))return n.default()}}function Kn(e,t){6&e.shapeFlag&&e.component?Kn(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Zn(e,t=!1,n){let s=[],o=0;for(let r=0;r<e.length;r++){let i=e[r];const c=null==n?i.key:String(n)+String(null!=i.key?i.key:r);i.type===Lo?(128&i.patchFlag&&o++,s=s.concat(Zn(i.children,t,c))):(t||i.type!==Ro)&&s.push(null!=c?Jo(i,{key:c}):i)}if(o>1)for(let e=0;e<s.length;e++)s[e].patchFlag=-2;return s}const Yn=e=>!!e.type.__asyncLoader,Xn=e=>e.type.__isKeepAlive;function es(e,t){ns(e,"a",t)}function ts(e,t){ns(e,"da",t)}function ns(e,t,n=sr){const s=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(os(t,s,n),n){let e=n.parent;for(;e&&e.parent;)Xn(e.parent.vnode)&&ss(s,t,n,e),e=e.parent}}function ss(e,t,n,s){const o=os(t,e,s,!0);ds((()=>{w(s[t],o)}),n)}function os(e,t,n=sr,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{we();const o=cr(n),r=fn(t,n,e,s);return o(),ye(),r});return s?o.unshift(r):o.push(r),r}}RegExp,RegExp;const rs=e=>(t,n=sr)=>{hr&&"sp"!==e||os(e,((...e)=>t(...e)),n)},is=rs("bm"),cs=rs("m"),as=rs("bu"),ls=rs("u"),us=rs("bum"),ds=rs("um"),hs=rs("sp"),ps=rs("rtg"),fs=rs("rtc");function _s(e,t=sr){os("ec",e,t)}const ms=Symbol.for("v-ndc");function gs(e,t,n,s){let o;const r=n&&n[s];if(T(e)||E(e)){o=new Array(e.length);for(let n=0,s=e.length;n<s;n++)o[n]=t(e[n],n,void 0,r&&r[n])}else if("number"==typeof e){o=new Array(e);for(let n=0;n<e;n++)o[n]=t(n+1,n,void 0,r&&r[n])}else if(A(e))if(e[Symbol.iterator])o=Array.from(e,((e,n)=>t(e,n,void 0,r&&r[n])));else{const n=Object.keys(e);o=new Array(n.length);for(let s=0,i=n.length;s<i;s++){const i=n[s];o[s]=t(e[i],i,s,r&&r[s])}}else o=[];return n&&(n[s]=o),o}const bs=e=>e?lr(e)?mr(e):bs(e.parent):null,vs=v(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>bs(e.parent),$root:e=>bs(e.root),$emit:e=>e.emit,$options:e=>ks(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,kn(e.update)}),$nextTick:e=>e.n||(e.n=Cn.bind(e.proxy)),$watch:e=>vo.bind(e)}),ws=(e,t)=>e!==p&&!e.__isScriptSetup&&S(e,t),ys={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:c,appContext:a}=e;let l;if("$"!==t[0]){const c=i[t];if(void 0!==c)switch(c){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(ws(s,t))return i[t]=1,s[t];if(o!==p&&S(o,t))return i[t]=2,o[t];if((l=e.propsOptions[0])&&S(l,t))return i[t]=3,r[t];if(n!==p&&S(n,t))return i[t]=4,n[t];Ts&&(i[t]=0)}}const u=vs[t];let d,h;return u?("$attrs"===t&&Oe(e.attrs,0,""),u(e)):(d=c.__cssModules)&&(d=d[t])?d:n!==p&&S(n,t)?(i[t]=4,n[t]):(h=a.config.globalProperties,S(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return ws(o,t)?(o[t]=n,!0):s!==p&&S(s,t)?(s[t]=n,!0):!(S(e.props,t)||"$"===t[0]&&t.slice(1)in e||(r[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:r}},i){let c;return!!n[i]||e!==p&&S(e,i)||ws(t,i)||(c=r[0])&&S(c,i)||S(s,i)||S(vs,i)||S(o.config.globalProperties,i)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:S(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ss(e){return T(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let Ts=!0;function xs(e,t,n){fn(T(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Cs(e,t,n,s){const o=s.includes(".")?wo(n,s):()=>n[s];if(E(e)){const n=t[e];k(n)&&go(o,n)}else if(k(e))go(o,e.bind(n));else if(A(e))if(T(e))e.forEach((e=>Cs(e,t,n,s)));else{const s=k(e.handler)?e.handler.bind(n):t[e.handler];k(s)&&go(o,s,e)}}function ks(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,c=r.get(t);let a;return c?a=c:o.length||n||s?(a={},o.length&&o.forEach((e=>Es(a,e,i,!0))),Es(a,t,i)):a=t,A(t)&&r.set(t,a),a}function Es(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&Es(e,r,n,!0),o&&o.forEach((t=>Es(e,t,n,!0)));for(const o in t)if(s&&"expose"===o);else{const s=Ps[o]||n&&n[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const Ps={data:As,props:js,emits:js,methods:Rs,computed:Rs,beforeCreate:Os,created:Os,beforeMount:Os,mounted:Os,beforeUpdate:Os,updated:Os,beforeDestroy:Os,beforeUnmount:Os,destroyed:Os,unmounted:Os,activated:Os,deactivated:Os,errorCaptured:Os,serverPrefetch:Os,components:Rs,directives:Rs,watch:function(e,t){if(!e)return t;if(!t)return e;const n=v(Object.create(null),e);for(const s in t)n[s]=Os(e[s],t[s]);return n},provide:As,inject:function(e,t){return Rs(Ls(e),Ls(t))}};function As(e,t){return t?e?function(){return v(k(e)?e.call(this,this):e,k(t)?t.call(this,this):t)}:t:e}function Ls(e){if(T(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Os(e,t){return e?[...new Set([].concat(e,t))]:t}function Rs(e,t){return e?v(Object.create(null),e,t):t}function js(e,t){return e?T(e)&&T(t)?[...new Set([...e,...t])]:v(Object.create(null),Ss(e),Ss(null!=t?t:{})):t}function Is(){return{app:null,config:{isNativeTag:m,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let zs=0;function Ms(e,t){return function(n,s=null){k(n)||(n=v({},n)),null==s||A(s)||(s=null);const o=Is(),r=new WeakSet;let i=!1;const c=o.app={_uid:zs++,_component:n,_props:s,_container:null,_context:o,_instance:null,version:br,get config(){return o.config},set config(e){},use:(e,...t)=>(r.has(e)||(e&&k(e.install)?(r.add(e),e.install(c,...t)):k(e)&&(r.add(e),e(c,...t))),c),mixin:e=>(o.mixins.includes(e)||o.mixins.push(e),c),component:(e,t)=>t?(o.components[e]=t,c):o.components[e],directive:(e,t)=>t?(o.directives[e]=t,c):o.directives[e],mount(r,a,l){if(!i){const u=qo(n,s);return u.appContext=o,!0===l?l="svg":!1===l&&(l=void 0),a&&t?t(u,r):e(u,r,l),i=!0,c._container=r,r.__vue_app__=c,mr(u.component)}},unmount(){i&&(e(null,c._container),delete c._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,c),runWithContext(e){const t=Fs;Fs=c;try{return e()}finally{Fs=t}}};return c}}let Fs=null;function Ds(e,t,n=!1){const s=sr||jn;if(s||Fs){const o=s?null==s.parent?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:Fs._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&k(t)?t.call(s&&s.proxy):t}}const Us={},Qs=()=>Object.create(Us),Ns=e=>Object.getPrototypeOf(e)===Us;function $s(e,t,n,s){const[o,r]=e.propsOptions;let i,c=!1;if(t)for(let a in t){if(M(a))continue;const l=t[a];let u;o&&S(o,u=U(a))?r&&r.includes(u)?(i||(i={}))[u]=l:n[u]=l:Co(e.emitsOptions,a)||a in s&&l===s[a]||(s[a]=l,c=!0)}if(r){const t=St(n),s=i||p;for(let i=0;i<r.length;i++){const c=r[i];n[c]=Bs(o,t,c,s[c],e,!S(s,c))}}return c}function Bs(e,t,n,s,o,r){const i=e[n];if(null!=i){const e=S(i,"default");if(e&&void 0===s){const e=i.default;if(i.type!==Function&&!i.skipFactory&&k(e)){const{propsDefaults:r}=o;if(n in r)s=r[n];else{const i=cr(o);s=r[n]=e.call(null,t),i()}}else s=e}i[0]&&(r&&!e?s=!1:!i[1]||""!==s&&s!==N(n)||(s=!0))}return s}const Ws=new WeakMap;function Vs(e,t,n=!1){const s=n?Ws:t.propsCache,o=s.get(e);if(o)return o;const r=e.props,i={},c=[];let a=!1;if(!k(e)){const s=e=>{a=!0;const[n,s]=Vs(e,t,!0);v(i,n),s&&c.push(...s)};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}if(!r&&!a)return A(e)&&s.set(e,f),f;if(T(r))for(let e=0;e<r.length;e++){const t=U(r[e]);Hs(t)&&(i[t]=p)}else if(r)for(const e in r){const t=U(e);if(Hs(t)){const n=r[e],s=i[t]=T(n)||k(n)?{type:n}:v({},n);if(s){const e=Gs(Boolean,s.type),n=Gs(String,s.type);s[0]=e>-1,s[1]=n<0||e<n,(e>-1||S(s,"default"))&&c.push(t)}}}const l=[i,c];return A(e)&&s.set(e,l),l}function Hs(e){return"$"!==e[0]&&!M(e)}function qs(e){return null===e?"null":"function"==typeof e?e.name||"":"object"==typeof e&&e.constructor&&e.constructor.name||""}function Js(e,t){return qs(e)===qs(t)}function Gs(e,t){return T(t)?t.findIndex((t=>Js(t,e))):k(t)&&Js(t,e)?0:-1}const Ks=e=>"_"===e[0]||"$stable"===e,Zs=e=>T(e)?e.map(Zo):[Zo(e)],Ys=(e,t,n)=>{if(t._n)return t;const s=function(e,t=jn){if(!t)return e;if(e._n)return e;const n=(...s)=>{n._d&&Do(-1);const o=zn(t);let r;try{r=e(...s)}finally{zn(o),n._d&&Do(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}(((...e)=>Zs(t(...e))),n);return s._c=!1,s},Xs=(e,t,n)=>{const s=e._ctx;for(const n in e){if(Ks(n))continue;const o=e[n];if(k(o))t[n]=Ys(0,o,s);else if(null!=o){const e=Zs(o);t[n]=()=>e}}},eo=(e,t)=>{const n=Zs(t);e.slots.default=()=>n},to=(e,t,n)=>{for(const s in t)(n||"_"!==s)&&(e[s]=t[s])},no=(e,t,n)=>{const s=e.slots=Qs();if(32&e.vnode.shapeFlag){const e=t._;e?(to(s,t,n),n&&H(s,"_",e,!0)):Xs(t,s)}else t&&eo(e,t)},so=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=p;if(32&s.shapeFlag){const e=t._;e?n&&1===e?r=!1:to(o,t,n):(r=!t.$stable,Xs(t,o)),i=t}else t&&(eo(e,t),i={default:1});if(r)for(const e in o)Ks(e)||null!=i[e]||delete o[e]};function oo(e,t,n,s,o=!1){if(T(e))return void e.forEach(((e,r)=>oo(e,t&&(T(t)?t[r]:t),n,s,o)));if(Yn(s)&&!o)return;const r=4&s.shapeFlag?mr(s.component):s.el,i=o?null:r,{i:c,r:a}=e,l=t&&t.r,u=c.refs===p?c.refs={}:c.refs,d=c.setupState;if(null!=l&&l!==a&&(E(l)?(u[l]=null,S(d,l)&&(d[l]=null)):Pt(l)&&(l.value=null)),k(a))pn(a,c,12,[i,u]);else{const t=E(a),s=Pt(a);if(t||s){const c=()=>{if(e.f){const n=t?S(d,a)?d[a]:u[a]:a.value;o?T(n)&&w(n,r):T(n)?n.includes(r)||n.push(r):t?(u[a]=[r],S(d,a)&&(d[a]=u[a])):(a.value=[r],e.k&&(u[e.k]=a.value))}else t?(u[a]=i,S(d,a)&&(d[a]=i)):s&&(a.value=i,e.k&&(u[e.k]=i))};i?(c.id=-1,io(c,n)):c()}}}const ro=Symbol("_vte"),io=function(e,t){t&&t.pendingBranch?T(e)?t.effects.push(...e):t.effects.push(e):(n=e,T(n)?wn.push(...n):yn&&yn.includes(n,n.allowRecurse?Sn+1:Sn)||wn.push(n),En());var n};function co(e,t){K().__VUE__=!0;const{insert:n,remove:s,patchProp:o,createElement:r,createText:i,createComment:c,setText:a,setElementText:l,parentNode:u,nextSibling:d,setScopeId:h=_,insertStaticContent:m}=e,g=(e,t,n,s=null,o=null,r=null,i=void 0,c=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!Bo(e,t)&&(s=G(e),B(e,o,r,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:l,ref:u,shapeFlag:d}=t;switch(l){case Oo:b(e,t,n,s);break;case Ro:v(e,t,n,s);break;case jo:null==e&&w(t,n,s,i);break;case Lo:A(e,t,n,s,o,r,i,c,a);break;default:1&d?y(e,t,n,s,o,r,i,c,a):6&d?O(e,t,n,s,o,r,i,c,a):(64&d||128&d)&&l.process(e,t,n,s,o,r,i,c,a,X)}null!=u&&o&&oo(u,e&&e.ref,r,t||e,!t)},b=(e,t,s,o)=>{if(null==e)n(t.el=i(t.children),s,o);else{const n=t.el=e.el;t.children!==e.children&&a(n,t.children)}},v=(e,t,s,o)=>{null==e?n(t.el=c(t.children||""),s,o):t.el=e.el},w=(e,t,n,s)=>{[e.el,e.anchor]=m(e.children,t,n,s,e.el,e.anchor)},y=(e,t,n,s,o,r,i,c,a)=>{"svg"===t.type?i="svg":"math"===t.type&&(i="mathml"),null==e?T(t,n,s,o,r,i,c,a):k(e,t,o,r,i,c,a)},T=(e,t,s,i,c,a,u,d)=>{let h,p;const{props:f,shapeFlag:_,transition:m,dirs:g}=e;if(h=e.el=r(e.type,a,f&&f.is,f),8&_?l(h,e.children):16&_&&C(e.children,h,null,i,c,ao(e,a),u,d),g&&Dn(e,null,i,"created"),x(h,e,e.scopeId,u,i),f){for(const e in f)"value"===e||M(e)||o(h,e,null,f[e],a,i);"value"in f&&o(h,"value",null,f.value,a),(p=f.onVnodeBeforeMount)&&er(p,i,e)}g&&Dn(e,null,i,"beforeMount");const b=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(c,m);b&&m.beforeEnter(h),n(h,t,s),((p=f&&f.onVnodeMounted)||b||g)&&io((()=>{p&&er(p,i,e),b&&m.enter(h),g&&Dn(e,null,i,"mounted")}),c)},x=(e,t,n,s,o)=>{if(n&&h(e,n),s)for(let t=0;t<s.length;t++)h(e,s[t]);if(o&&t===o.subTree){const t=o.vnode;x(e,t,t.scopeId,t.slotScopeIds,o.parent)}},C=(e,t,n,s,o,r,i,c,a=0)=>{for(let l=a;l<e.length;l++){const a=e[l]=c?Yo(e[l]):Zo(e[l]);g(null,a,t,n,s,o,r,i,c)}},k=(e,t,n,s,r,i,c)=>{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:h}=t;u|=16&e.patchFlag;const f=e.props||p,_=t.props||p;let m;if(n&&lo(n,!1),(m=_.onVnodeBeforeUpdate)&&er(m,n,t,e),h&&Dn(t,e,n,"beforeUpdate"),n&&lo(n,!0),(f.innerHTML&&null==_.innerHTML||f.textContent&&null==_.textContent)&&l(a,""),d?E(e.dynamicChildren,d,a,n,s,ao(t,r),i):c||F(e,t,a,null,n,s,ao(t,r),i,!1),u>0){if(16&u)P(a,f,_,n,r);else if(2&u&&f.class!==_.class&&o(a,"class",null,_.class,r),4&u&&o(a,"style",f.style,_.style,r),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const s=e[t],i=f[s],c=_[s];c===i&&"value"!==s||o(a,s,i,c,r,n)}}1&u&&e.children!==t.children&&l(a,t.children)}else c||null!=d||P(a,f,_,n,r);((m=_.onVnodeUpdated)||h)&&io((()=>{m&&er(m,n,t,e),h&&Dn(t,e,n,"updated")}),s)},E=(e,t,n,s,o,r,i)=>{for(let c=0;c<t.length;c++){const a=e[c],l=t[c],d=a.el&&(a.type===Lo||!Bo(a,l)||70&a.shapeFlag)?u(a.el):n;g(a,l,d,null,s,o,r,i,!0)}},P=(e,t,n,s,r)=>{if(t!==n){if(t!==p)for(const i in t)M(i)||i in n||o(e,i,t[i],null,r,s);for(const i in n){if(M(i))continue;const c=n[i],a=t[i];c!==a&&"value"!==i&&o(e,i,a,c,r,s)}"value"in n&&o(e,"value",t.value,n.value,r)}},A=(e,t,s,o,r,c,a,l,u)=>{const d=t.el=e?e.el:i(""),h=t.anchor=e?e.anchor:i("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:_}=t;_&&(l=l?l.concat(_):_),null==e?(n(d,s,o),n(h,s,o),C(t.children||[],s,h,r,c,a,l,u)):p>0&&64&p&&f&&e.dynamicChildren?(E(e.dynamicChildren,f,s,r,c,a,l),(null!=t.key||r&&t===r.subTree)&&uo(e,t,!0)):F(e,t,s,h,r,c,a,l,u)},O=(e,t,n,s,o,r,i,c,a)=>{t.slotScopeIds=c,null==e?512&t.shapeFlag?o.ctx.activate(t,n,s,i,a):R(t,n,s,o,r,i,a):j(e,t,a)},R=(e,t,n,s,o,r,i)=>{const c=e.component=function(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||tr,r={uid:nr++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new de(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Vs(s,o),emitsOptions:xo(s,o),emit:null,emitted:null,propsDefaults:p,inheritAttrs:s.inheritAttrs,ctx:p,data:p,props:p,attrs:p,slots:p,refs:p,setupState:p,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=To.bind(null,r),e.ce&&e.ce(r),r}(e,s,o);if(Xn(e)&&(c.ctx.renderer=X),function(e,t=!1,n=!1){t&&ir(t);const{props:s,children:o}=e.vnode,r=lr(e);(function(e,t,n,s=!1){const o={},r=Qs();e.propsDefaults=Object.create(null),$s(e,t,o,r);for(const t in e.propsOptions[0])t in o||(o[t]=void 0);n?e.props=s?o:gt(o,!1,Be,lt,ht):e.type.props?e.props=o:e.props=r,e.attrs=r})(e,s,r,t),no(e,o,n);const i=r?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ys);const{setup:s}=n;if(s){const n=e.setupContext=s.length>1?function(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,_r),slots:e.slots,emit:e.emit,expose:t}}(e):null,o=cr(e);we();const r=pn(s,e,0,[e.props,n]);if(ye(),o(),L(r)){if(r.then(ar,ar),t)return r.then((n=>{pr(e,n,t)})).catch((t=>{_n(t,e,0)}));e.asyncDep=r}else pr(e,r,t)}else fr(e,t)}(e,t):void 0;t&&ir(!1)}(c,!1,i),c.asyncDep){if(o&&o.registerDep(c,I,i),!e.el){const e=c.subTree=qo(Ro);v(null,e,t,n)}}else I(c,e,t,n,o,r,i)},j=(e,t,n)=>{const s=t.component=e.component;if(function(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:c,patchFlag:a}=t,l=r.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!o&&!c||c&&c.$stable)||s!==i&&(s?!i||Ao(s,i,l):!!i);if(1024&a)return!0;if(16&a)return s?Ao(s,i,l):!!i;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(i[n]!==s[n]&&!Co(l,n))return!0}}return!1}(e,t,n)){if(s.asyncDep&&!s.asyncResolved)return void z(s,t,n);s.next=t,function(e){const t=bn.indexOf(e);t>vn&&bn.splice(t,1)}(s.update),s.effect.dirty=!0,s.update()}else t.el=e.el,s.vnode=t},I=(e,t,n,s,o,r,i)=>{const c=()=>{if(e.isMounted){let{next:t,bu:n,u:s,parent:a,vnode:l}=e;{const n=ho(e);if(n)return t&&(t.el=l.el,z(e,t,i)),void n.asyncDep.then((()=>{e.isUnmounted||c()}))}let d,h=t;lo(e,!1),t?(t.el=l.el,z(e,t,i)):t=l,n&&V(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&er(d,a,t,l),lo(e,!0);const p=ko(e),f=e.subTree;e.subTree=p,g(f,p,u(f.el),G(f),e,o,r),t.el=p.el,null===h&&function({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s!==e)break;(e=t.vnode).el=n,t=t.parent}}(e,p.el),s&&io(s,o),(d=t.props&&t.props.onVnodeUpdated)&&io((()=>er(d,a,t,l)),o)}else{let i;const{el:c,props:a}=t,{bm:l,m:u,parent:d}=e,h=Yn(t);if(lo(e,!1),l&&V(l),!h&&(i=a&&a.onVnodeBeforeMount)&&er(i,d,t),lo(e,!0),c&&te){const n=()=>{e.subTree=ko(e),te(c,e.subTree,e,o,null)};h?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=ko(e);g(null,i,n,s,e,o,r),t.el=i.el}if(u&&io(u,o),!h&&(i=a&&a.onVnodeMounted)){const e=t;io((()=>er(i,d,e)),o)}(256&t.shapeFlag||d&&Yn(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&io(e.a,o),e.isMounted=!0,t=n=s=null}},a=e.effect=new he(c,_,(()=>kn(l)),e.scope),l=e.update=()=>{a.dirty&&a.run()};l.i=e,l.id=e.uid,lo(e,!0),l()},z=(e,t,n)=>{t.component=e;const s=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,c=St(o),[a]=e.propsOptions;let l=!1;if(!(s||i>0)||16&i){let s;$s(e,t,o,r)&&(l=!0);for(const r in c)t&&(S(t,r)||(s=N(r))!==r&&S(t,s))||(a?!n||void 0===n[r]&&void 0===n[s]||(o[r]=Bs(a,c,r,void 0,e,!0)):delete o[r]);if(r!==c)for(const e in r)t&&S(t,e)||(delete r[e],l=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let s=0;s<n.length;s++){let i=n[s];if(Co(e.emitsOptions,i))continue;const u=t[i];if(a)if(S(r,i))u!==r[i]&&(r[i]=u,l=!0);else{const t=U(i);o[t]=Bs(a,c,t,u,e,!1)}else u!==r[i]&&(r[i]=u,l=!0)}}l&&Re(e.attrs,"set","")}(e,t.props,s,n),so(e,t.children,n),we(),Pn(e),ye()},F=(e,t,n,s,o,r,i,c,a=!1)=>{const u=e&&e.children,d=e?e.shapeFlag:0,h=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void Q(u,h,n,s,o,r,i,c,a);if(256&p)return void D(u,h,n,s,o,r,i,c,a)}8&f?(16&d&&J(u,o,r),h!==u&&l(n,h)):16&d?16&f?Q(u,h,n,s,o,r,i,c,a):J(u,o,r,!0):(8&d&&l(n,""),16&f&&C(h,n,s,o,r,i,c,a))},D=(e,t,n,s,o,r,i,c,a)=>{t=t||f;const l=(e=e||f).length,u=t.length,d=Math.min(l,u);let h;for(h=0;h<d;h++){const s=t[h]=a?Yo(t[h]):Zo(t[h]);g(e[h],s,n,null,o,r,i,c,a)}l>u?J(e,o,r,!0,!1,d):C(t,n,s,o,r,i,c,a,d)},Q=(e,t,n,s,o,r,i,c,a)=>{let l=0;const u=t.length;let d=e.length-1,h=u-1;for(;l<=d&&l<=h;){const s=e[l],u=t[l]=a?Yo(t[l]):Zo(t[l]);if(!Bo(s,u))break;g(s,u,n,null,o,r,i,c,a),l++}for(;l<=d&&l<=h;){const s=e[d],l=t[h]=a?Yo(t[h]):Zo(t[h]);if(!Bo(s,l))break;g(s,l,n,null,o,r,i,c,a),d--,h--}if(l>d){if(l<=h){const e=h+1,d=e<u?t[e].el:s;for(;l<=h;)g(null,t[l]=a?Yo(t[l]):Zo(t[l]),n,d,o,r,i,c,a),l++}}else if(l>h)for(;l<=d;)B(e[l],o,r,!0),l++;else{const p=l,_=l,m=new Map;for(l=_;l<=h;l++){const e=t[l]=a?Yo(t[l]):Zo(t[l]);null!=e.key&&m.set(e.key,l)}let b,v=0;const w=h-_+1;let y=!1,S=0;const T=new Array(w);for(l=0;l<w;l++)T[l]=0;for(l=p;l<=d;l++){const s=e[l];if(v>=w){B(s,o,r,!0);continue}let u;if(null!=s.key)u=m.get(s.key);else for(b=_;b<=h;b++)if(0===T[b-_]&&Bo(s,t[b])){u=b;break}void 0===u?B(s,o,r,!0):(T[u-_]=l+1,u>=S?S=u:y=!0,g(s,t[u],n,null,o,r,i,c,a),v++)}const x=y?function(e){const t=e.slice(),n=[0];let s,o,r,i,c;const a=e.length;for(s=0;s<a;s++){const a=e[s];if(0!==a){if(o=n[n.length-1],e[o]<a){t[s]=o,n.push(s);continue}for(r=0,i=n.length-1;r<i;)c=r+i>>1,e[n[c]]<a?r=c+1:i=c;a<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-->0;)n[r]=i,i=t[i];return n}(T):f;for(b=x.length-1,l=w-1;l>=0;l--){const e=_+l,d=t[e],h=e+1<u?t[e+1].el:s;0===T[l]?g(null,d,n,h,o,r,i,c,a):y&&(b<0||l!==x[b]?$(d,n,h,2):b--)}}},$=(e,t,s,o,r=null)=>{const{el:i,type:c,transition:a,children:l,shapeFlag:u}=e;if(6&u)$(e.component.subTree,t,s,o);else if(128&u)e.suspense.move(t,s,o);else if(64&u)c.move(e,t,s,X);else if(c!==Lo)if(c!==jo)if(2!==o&&1&u&&a)if(0===o)a.beforeEnter(i),n(i,t,s),io((()=>a.enter(i)),r);else{const{leave:e,delayLeave:o,afterLeave:r}=a,c=()=>n(i,t,s),l=()=>{e(i,(()=>{c(),r&&r()}))};o?o(i,c,l):l()}else n(i,t,s);else(({el:e,anchor:t},s,o)=>{let r;for(;e&&e!==t;)r=d(e),n(e,s,o),e=r;n(t,s,o)})(e,t,s);else{n(i,t,s);for(let e=0;e<l.length;e++)$(l[e],t,s,o);n(e.anchor,t,s)}},B=(e,t,n,s=!1,o=!1)=>{const{type:r,props:i,ref:c,children:a,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:h,cacheIndex:p}=e;if(-2===d&&(o=!1),null!=c&&oo(c,null,n,e,!0),null!=p&&(t.renderCache[p]=void 0),256&u)return void t.ctx.deactivate(e);const f=1&u&&h,_=!Yn(e);let m;if(_&&(m=i&&i.onVnodeBeforeUnmount)&&er(m,t,e),6&u)q(e.component,n,s);else{if(128&u)return void e.suspense.unmount(n,s);f&&Dn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,X,s):l&&!l.hasOnce&&(r!==Lo||d>0&&64&d)?J(l,t,n,!1,!0):(r===Lo&&384&d||!o&&16&u)&&J(a,t,n),s&&W(e)}(_&&(m=i&&i.onVnodeUnmounted)||f)&&io((()=>{m&&er(m,t,e),f&&Dn(e,null,t,"unmounted")}),n)},W=e=>{const{type:t,el:n,anchor:o,transition:r}=e;if(t===Lo)return void H(n,o);if(t===jo)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=d(e),s(e),e=n;s(t)})(e);const i=()=>{s(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:s}=r,o=()=>t(n,i);s?s(e.el,i,o):o()}else i()},H=(e,t)=>{let n;for(;e!==t;)n=d(e),s(e),e=n;s(t)},q=(e,t,n)=>{const{bum:s,scope:o,update:r,subTree:i,um:c,m:a,a:l}=e;po(a),po(l),s&&V(s),o.stop(),r&&(r.active=!1,B(i,e,t,n)),c&&io(c,t),io((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},J=(e,t,n,s=!1,o=!1,r=0)=>{for(let i=r;i<e.length;i++)B(e[i],t,n,s,o)},G=e=>{if(6&e.shapeFlag)return G(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=d(e.anchor||e.el),n=t&&t[ro];return n?d(n):t};let Z=!1;const Y=(e,t,n)=>{null==e?t._vnode&&B(t._vnode,null,null,!0):g(t._vnode||null,e,t,null,null,null,n),Z||(Z=!0,Pn(),An(),Z=!1),t._vnode=e},X={p:g,um:B,m:$,r:W,mt:R,mc:C,pc:F,pbc:E,n:G,o:e};let ee,te;return t&&([ee,te]=t(X)),{render:Y,hydrate:ee,createApp:Ms(Y,ee)}}function ao({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function lo({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function uo(e,t,n=!1){const s=e.children,o=t.children;if(T(s)&&T(o))for(let e=0;e<s.length;e++){const t=s[e];let r=o[e];1&r.shapeFlag&&!r.dynamicChildren&&((r.patchFlag<=0||32===r.patchFlag)&&(r=o[e]=Yo(o[e]),r.el=t.el),n||-2===r.patchFlag||uo(t,r)),r.type===Oo&&(r.el=t.el)}}function ho(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ho(t)}function po(e){if(e)for(let t=0;t<e.length;t++)e[t].active=!1}const fo=Symbol.for("v-scx"),_o=()=>Ds(fo),mo={};function go(e,t,n){return bo(e,t,n)}function bo(e,t,{immediate:n,deep:s,flush:o,once:r,onTrack:i,onTrigger:c}=p){if(t&&r){const e=t;t=(...t)=>{e(...t),C()}}const a=sr,l=e=>!0===s?e:yo(e,!1===s?1:void 0);let u,d,h=!1,f=!1;if(Pt(e)?(u=()=>e.value,h=wt(e)):bt(e)?(u=()=>l(e),h=!0):T(e)?(f=!0,h=e.some((e=>bt(e)||wt(e))),u=()=>e.map((e=>Pt(e)?e.value:bt(e)?l(e):k(e)?pn(e,a,2):void 0))):u=k(e)?t?()=>pn(e,a,2):()=>(d&&d(),fn(e,a,3,[g])):_,t&&s){const e=u;u=()=>yo(e())}let m,g=e=>{d=S.onStop=()=>{pn(e,a,4),d=S.onStop=void 0}};if(hr){if(g=_,t?n&&fn(t,a,3,[u(),f?[]:void 0,g]):u(),"sync"!==o)return _;{const e=_o();m=e.__watcherHandles||(e.__watcherHandles=[])}}let b=f?new Array(e.length).fill(mo):mo;const v=()=>{if(S.active&&S.dirty)if(t){const e=S.run();(s||h||(f?e.some(((e,t)=>W(e,b[t]))):W(e,b)))&&(d&&d(),fn(t,a,3,[e,b===mo?void 0:f&&b[0]===mo?[]:b,g]),b=e)}else S.run()};let y;v.allowRecurse=!!t,"sync"===o?y=v:"post"===o?y=()=>io(v,a&&a.suspense):(v.pre=!0,a&&(v.id=a.uid),y=()=>kn(v));const S=new he(u,_,y),x=le,C=()=>{S.stop(),x&&w(x.effects,S)};return t?n?v():b=S.run():"post"===o?io(S.run.bind(S),a&&a.suspense):S.run(),m&&m.push(C),C}function vo(e,t,n){const s=this.proxy,o=E(e)?e.includes(".")?wo(s,e):()=>s[e]:e.bind(s,s);let r;k(t)?r=t:(r=t.handler,n=t);const i=cr(this),c=bo(o,r.bind(s),n);return i(),c}function wo(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function yo(e,t=1/0,n){if(t<=0||!A(e)||e.__v_skip)return e;if((n=n||new Set).has(e))return e;if(n.add(e),t--,Pt(e))yo(e.value,t,n);else if(T(e))for(let s=0;s<e.length;s++)yo(e[s],t,n);else if(C(e)||x(e))e.forEach((e=>{yo(e,t,n)}));else if(I(e)){for(const s in e)yo(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&yo(e[s],t,n)}return e}const So=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${U(t)}Modifiers`]||e[`${N(t)}Modifiers`];function To(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||p;let o=n;const r=t.startsWith("update:"),i=r&&So(s,t.slice(7));let c;i&&(i.trim&&(o=n.map((e=>E(e)?e.trim():e))),i.number&&(o=n.map(q)));let a=s[c=B(t)]||s[c=B(U(t))];!a&&r&&(a=s[c=B(N(t))]),a&&fn(a,e,6,o);const l=s[c+"Once"];if(l){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,fn(l,e,6,o)}}function xo(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(void 0!==o)return o;const r=e.emits;let i={},c=!1;if(!k(e)){const s=e=>{const n=xo(e,t,!0);n&&(c=!0,v(i,n))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return r||c?(T(r)?r.forEach((e=>i[e]=null)):v(i,r),A(e)&&s.set(e,i),i):(A(e)&&s.set(e,null),null)}function Co(e,t){return!(!e||!g(t))&&(t=t.slice(2).replace(/Once$/,""),S(e,t[0].toLowerCase()+t.slice(1))||S(e,N(t))||S(e,t))}function ko(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[r],slots:i,attrs:c,emit:a,render:l,renderCache:u,props:d,data:h,setupState:p,ctx:f,inheritAttrs:_}=e,m=zn(e);let g,v;try{if(4&n.shapeFlag){const e=o||s,t=e;g=Zo(l.call(t,e,u,d,p,h,f)),v=c}else{const e=t;g=Zo(e.length>1?e(d,{attrs:c,slots:i,emit:a}):e(d,null)),v=t.props?c:Eo(c)}}catch(t){Io.length=0,_n(t,e,1),g=qo(Ro)}let w=g;if(v&&!1!==_){const e=Object.keys(v),{shapeFlag:t}=w;e.length&&7&t&&(r&&e.some(b)&&(v=Po(v,r)),w=Jo(w,v,!1,!0))}return n.dirs&&(w=Jo(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),g=w,zn(m),g}const Eo=e=>{let t;for(const n in e)("class"===n||"style"===n||g(n))&&((t||(t={}))[n]=e[n]);return t},Po=(e,t)=>{const n={};for(const s in e)b(s)&&s.slice(9)in t||(n[s]=e[s]);return n};function Ao(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const r=s[o];if(t[r]!==e[r]&&!Co(n,r))return!0}return!1}const Lo=Symbol.for("v-fgt"),Oo=Symbol.for("v-txt"),Ro=Symbol.for("v-cmt"),jo=Symbol.for("v-stc"),Io=[];let zo=null;function Mo(e=!1){Io.push(zo=e?null:[])}let Fo=1;function Do(e){Fo+=e,e<0&&zo&&(zo.hasOnce=!0)}function Uo(e){return e.dynamicChildren=Fo>0?zo||f:null,Io.pop(),zo=Io[Io.length-1]||null,Fo>0&&zo&&zo.push(e),e}function Qo(e,t,n,s,o,r){return Uo(Ho(e,t,n,s,o,r,!0))}function No(e,t,n,s,o){return Uo(qo(e,t,n,s,o,!0))}function $o(e){return!!e&&!0===e.__v_isVNode}function Bo(e,t){return e.type===t.type&&e.key===t.key}const Wo=({key:e})=>null!=e?e:null,Vo=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?E(e)||Pt(e)||k(e)?{i:jn,r:e,k:t,f:!!n}:e:null);function Ho(e,t=null,n=null,s=0,o=null,r=(e===Lo?0:1),i=!1,c=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wo(t),ref:t&&Vo(t),scopeId:In,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:jn};return c?(Xo(a,n),128&r&&e.normalize(a)):n&&(a.shapeFlag|=E(n)?8:16),Fo>0&&!i&&zo&&(a.patchFlag>0||6&r)&&32!==a.patchFlag&&zo.push(a),a}const qo=function(e,t=null,n=null,s=0,o=null,r=!1){if(e&&e!==ms||(e=Ro),$o(e)){const s=Jo(e,t,!0);return n&&Xo(s,n),Fo>0&&!r&&zo&&(6&s.shapeFlag?zo[zo.indexOf(e)]=s:zo.push(s)),s.patchFlag=-2,s}if(i=e,k(i)&&"__vccOpts"in i&&(e=e.__vccOpts),t){t=function(e){return e?yt(e)||Ns(e)?v({},e):e:null}(t);let{class:e,style:n}=t;e&&!E(e)&&(t.class=ne(e)),A(n)&&(yt(n)&&!T(n)&&(n=v({},n)),t.style=Z(n))}var i;return Ho(e,t,n,s,o,E(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:A(e)?4:k(e)?2:0,r,!0)};function Jo(e,t,n=!1,s=!1){const{props:o,ref:r,patchFlag:i,children:c,transition:a}=e,l=t?function(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const e in s)if("class"===e)t.class!==s.class&&(t.class=ne([t.class,s.class]));else if("style"===e)t.style=Z([t.style,s.style]);else if(g(e)){const n=t[e],o=s[e];!o||n===o||T(n)&&n.includes(o)||(t[e]=n?[].concat(n,o):o)}else""!==e&&(t[e]=s[e])}return t}(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Wo(l),ref:t&&t.ref?n&&r?T(r)?r.concat(Vo(t)):[r,Vo(t)]:Vo(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Lo?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Jo(e.ssContent),ssFallback:e.ssFallback&&Jo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&Kn(u,a.clone(u)),u}function Go(e=" ",t=0){return qo(Oo,null,e,t)}function Ko(e="",t=!1){return t?(Mo(),No(Ro,null,e)):qo(Ro,null,e)}function Zo(e){return null==e||"boolean"==typeof e?qo(Ro):T(e)?qo(Lo,null,e.slice()):"object"==typeof e?Yo(e):qo(Oo,null,String(e))}function Yo(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Jo(e)}function Xo(e,t){let n=0;const{shapeFlag:s}=e;if(null==t)t=null;else if(T(t))n=16;else if("object"==typeof t){if(65&s){const n=t.default;return void(n&&(n._c&&(n._d=!1),Xo(e,n()),n._c&&(n._d=!0)))}{n=32;const s=t._;s||Ns(t)?3===s&&jn&&(1===jn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=jn}}else k(t)?(t={default:t,_ctx:jn},n=32):(t=String(t),64&s?(n=16,t=[Go(t)]):n=8);e.children=t,e.shapeFlag|=n}function er(e,t,n,s=null){fn(e,t,7,[n,s])}const tr=Is();let nr=0;let sr=null;const or=()=>sr||jn;let rr,ir;{const e=K(),t=(t,n)=>{let s;return(s=e[t])||(s=e[t]=[]),s.push(n),e=>{s.length>1?s.forEach((t=>t(e))):s[0](e)}};rr=t("__VUE_INSTANCE_SETTERS__",(e=>sr=e)),ir=t("__VUE_SSR_SETTERS__",(e=>hr=e))}const cr=e=>{const t=sr;return rr(e),e.scope.on(),()=>{e.scope.off(),rr(t)}},ar=()=>{sr&&sr.scope.off(),rr(null)};function lr(e){return 4&e.vnode.shapeFlag}let ur,dr,hr=!1;function pr(e,t,n){k(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:A(t)&&(e.setupState=jt(t)),fr(e,n)}function fr(e,t,n){const s=e.type;if(!e.render){if(!t&&ur&&!s.render){const t=s.template||ks(e).template;if(t){const{isCustomElement:n,compilerOptions:o}=e.appContext.config,{delimiters:r,compilerOptions:i}=s,c=v(v({isCustomElement:n,delimiters:r},o),i);s.render=ur(t,c)}}e.render=s.render||_,dr&&dr(e)}{const t=cr(e);we();try{!function(e){const t=ks(e),n=e.proxy,s=e.ctx;Ts=!1,t.beforeCreate&&xs(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:c,provide:a,inject:l,created:u,beforeMount:d,mounted:h,beforeUpdate:p,updated:f,activated:m,deactivated:g,beforeDestroy:b,beforeUnmount:v,destroyed:w,unmounted:y,render:S,renderTracked:x,renderTriggered:C,errorCaptured:E,serverPrefetch:P,expose:L,inheritAttrs:O,components:R,directives:j,filters:I}=t;if(l&&function(e,t){T(e)&&(e=Ls(e));for(const n in e){const s=e[n];let o;o=A(s)?"default"in s?Ds(s.from||n,s.default,!0):Ds(s.from||n):Ds(s),Pt(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:e=>o.value=e}):t[n]=o}}(l,s),i)for(const e in i){const t=i[e];k(t)&&(s[e]=t.bind(n))}if(o){const t=o.call(n,n);A(t)&&(e.data=_t(t))}if(Ts=!0,r)for(const e in r){const t=r[e],o=k(t)?t.bind(n,n):k(t.get)?t.get.bind(n,n):_,i=!k(t)&&k(t.set)?t.set.bind(n):_,c=gr({get:o,set:i});Object.defineProperty(s,e,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e})}if(c)for(const e in c)Cs(c[e],s,n,e);if(a){const e=k(a)?a.call(n):a;Reflect.ownKeys(e).forEach((t=>{!function(e,t){if(sr){let n=sr.provides;const s=sr.parent&&sr.parent.provides;s===n&&(n=sr.provides=Object.create(s)),n[e]=t}}(t,e[t])}))}function z(e,t){T(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(u&&xs(u,e,"c"),z(is,d),z(cs,h),z(as,p),z(ls,f),z(es,m),z(ts,g),z(_s,E),z(fs,x),z(ps,C),z(us,v),z(ds,y),z(hs,P),T(L))if(L.length){const t=e.exposed||(e.exposed={});L.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});S&&e.render===_&&(e.render=S),null!=O&&(e.inheritAttrs=O),R&&(e.components=R),j&&(e.directives=j)}(e)}finally{ye(),t()}}}const _r={get:(e,t)=>(Oe(e,0,""),e[t])};function mr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(jt((t=e.exposed,Object.isExtensible(t)&&H(t,"__v_skip",!0),t)),{get:(t,n)=>n in t?t[n]:n in vs?vs[n](e):void 0,has:(e,t)=>t in e||t in vs})):e.proxy;var t}const gr=(e,t)=>function(e,t,n=!1){let s,o;const r=k(e);return r?(s=e,o=_):(s=e.get,o=e.set),new Ct(s,o,r||!o,n)}(e,0,hr),br="3.4.33",vr="undefined"!=typeof document?document:null,wr=vr&&vr.createElement("template"),yr={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o="svg"===t?vr.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?vr.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?vr.createElement(e,{is:n}):vr.createElement(e);return"select"===e&&s&&null!=s.multiple&&o.setAttribute("multiple",s.multiple),o},createText:e=>vr.createTextNode(e),createComment:e=>vr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>vr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,r){const i=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==r&&(o=o.nextSibling););else{wr.innerHTML="svg"===s?`<svg>${e}</svg>`:"mathml"===s?`<math>${e}</math>`:e;const o=wr.content;if("svg"===s||"mathml"===s){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Sr="transition",Tr="animation",xr=Symbol("_vtc"),Cr=(e,{slots:t})=>function(e,t,n){const s=arguments.length;return 2===s?A(t)&&!T(t)?$o(t)?qo(e,null,[t]):qo(e,t):qo(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):3===s&&$o(n)&&(n=[n]),qo(e,t,n))}(Vn,function(e){const t={};for(const n in e)n in kr||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:s,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:a=r,appearActiveClass:l=i,appearToClass:u=c,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,f=function(e){if(null==e)return null;if(A(e))return[Ar(e.enter),Ar(e.leave)];{const t=Ar(e);return[t,t]}}(o),_=f&&f[0],m=f&&f[1],{onBeforeEnter:g,onEnter:b,onEnterCancelled:w,onLeave:y,onLeaveCancelled:S,onBeforeAppear:T=g,onAppear:x=b,onAppearCancelled:C=w}=t,k=(e,t,n)=>{Or(e,t?u:c),Or(e,t?l:i),n&&n()},E=(e,t)=>{e._isLeaving=!1,Or(e,d),Or(e,p),Or(e,h),t&&t()},P=e=>(t,n)=>{const o=e?x:b,i=()=>k(t,e,n);Er(o,[t,i]),Rr((()=>{Or(t,e?a:r),Lr(t,e?u:c),Pr(o)||Ir(t,s,_,i)}))};return v(t,{onBeforeEnter(e){Er(g,[e]),Lr(e,r),Lr(e,i)},onBeforeAppear(e){Er(T,[e]),Lr(e,a),Lr(e,l)},onEnter:P(!1),onAppear:P(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>E(e,t);Lr(e,d),Lr(e,h),document.body.offsetHeight,Rr((()=>{e._isLeaving&&(Or(e,d),Lr(e,p),Pr(y)||Ir(e,s,m,n))})),Er(y,[e,n])},onEnterCancelled(e){k(e,!1),Er(w,[e])},onAppearCancelled(e){k(e,!0),Er(C,[e])},onLeaveCancelled(e){E(e),Er(S,[e])}})}(e),t);Cr.displayName="Transition";const kr={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Er=(Cr.props=v({},$n,kr),(e,t=[])=>{T(e)?e.forEach((e=>e(...t))):e&&e(...t)}),Pr=e=>!!e&&(T(e)?e.some((e=>e.length>1)):e.length>1);function Ar(e){return J(e)}function Lr(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[xr]||(e[xr]=new Set)).add(t)}function Or(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[xr];n&&(n.delete(t),n.size||(e[xr]=void 0))}function Rr(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let jr=0;function Ir(e,t,n,s){const o=e._endId=++jr,r=()=>{o===e._endId&&s()};if(n)return setTimeout(r,n);const{type:i,timeout:c,propCount:a}=function(e,t){const n=window.getComputedStyle(e),s=e=>(n[e]||"").split(", "),o=s(`${Sr}Delay`),r=s(`${Sr}Duration`),i=zr(o,r),c=s(`${Tr}Delay`),a=s(`${Tr}Duration`),l=zr(c,a);let u=null,d=0,h=0;return t===Sr?i>0&&(u=Sr,d=i,h=r.length):t===Tr?l>0&&(u=Tr,d=l,h=a.length):(d=Math.max(i,l),u=d>0?i>l?Sr:Tr:null,h=u?u===Sr?r.length:a.length:0),{type:u,timeout:d,propCount:h,hasTransform:u===Sr&&/\b(transform|all)(,|$)/.test(s(`${Sr}Property`).toString())}}(e,t);if(!i)return s();const l=i+"end";let u=0;const d=()=>{e.removeEventListener(l,h),r()},h=t=>{t.target===e&&++u>=a&&d()};setTimeout((()=>{u<a&&d()}),c+1),e.addEventListener(l,h)}function zr(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>Mr(t)+Mr(e[n]))))}function Mr(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}const Fr=Symbol("_vod"),Dr=Symbol("_vsh"),Ur=Symbol("");function Qr(e){const t=or();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>$r(e,n)))},s=()=>{const s=e(t.proxy);Nr(t.subTree,s),n(s)};cs((()=>{bo(s,null,{flush:"post"});const e=new MutationObserver(s);e.observe(t.subTree.el.parentNode,{childList:!0}),ds((()=>e.disconnect()))}))}function Nr(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Nr(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)$r(e.el,t);else if(e.type===Lo)e.children.forEach((e=>Nr(e,t)));else if(e.type===jo){let{el:n,anchor:s}=e;for(;n&&($r(n,t),n!==s);)n=n.nextSibling}}function $r(e,t){if(1===e.nodeType){const n=e.style;let s="";for(const e in t)n.setProperty(`--${e}`,t[e]),s+=`--${e}: ${t[e]};`;n[Ur]=s}}const Br=/(^|;)\s*display\s*:/,Wr=/\s*!important$/;function Vr(e,t,n){if(T(n))n.forEach((n=>Vr(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=function(e,t){const n=qr[t];if(n)return n;let s=U(t);if("filter"!==s&&s in e)return qr[t]=s;s=$(s);for(let n=0;n<Hr.length;n++){const o=Hr[n]+s;if(o in e)return qr[t]=o}return t}(e,t);Wr.test(n)?e.setProperty(N(s),n.replace(Wr,""),"important"):e[s]=n}}const Hr=["Webkit","Moz","ms"],qr={},Jr="http://www.w3.org/1999/xlink";function Gr(e,t,n,s,o,r=se(t)){s&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(Jr,t.slice(6,t.length)):e.setAttributeNS(Jr,t,n):null==n||r&&!oe(n)?e.removeAttribute(t):e.setAttribute(t,r?"":P(n)?String(n):n)}const Kr=Symbol("_vei");const Zr=/(?:Once|Passive|Capture)$/;let Yr=0;const Xr=Promise.resolve(),ei=()=>Yr||(Xr.then((()=>Yr=0)),Yr=Date.now()),ti=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;"undefined"!=typeof HTMLElement&&HTMLElement,Symbol("_moveCb"),Symbol("_enterCb"),Symbol("_assign");const ni=v({patchProp:(e,t,n,s,o,r)=>{const i="svg"===o;"class"===t?function(e,t,n){const s=e[xr];s&&(t=(t?[t,...s]:[...s]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,s,i):"style"===t?function(e,t,n){const s=e.style,o=E(n);let r=!1;if(n&&!o){if(t)if(E(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Vr(s,t,"")}else for(const e in t)null==n[e]&&Vr(s,e,"");for(const e in n)"display"===e&&(r=!0),Vr(s,e,n[e])}else if(o){if(t!==n){const e=s[Ur];e&&(n+=";"+e),s.cssText=n,r=Br.test(n)}}else t&&e.removeAttribute("style");Fr in e&&(e[Fr]=r?s.display:"",e[Dr]&&(s.display="none"))}(e,n,s):g(t)?b(t)||function(e,t,n,s,o=null){const r=e[Kr]||(e[Kr]={}),i=r[t];if(s&&i)i.value=s;else{const[n,c]=function(e){let t;if(Zr.test(e)){let n;for(t={};n=e.match(Zr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):N(e.slice(2)),t]}(t);if(s){const i=r[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();fn(function(e,t){if(T(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=ei(),n}(s,o);!function(e,t,n,s){e.addEventListener(t,n,s)}(e,n,i,c)}else i&&(function(e,t,n,s){e.removeEventListener(t,n,s)}(e,n,i,c),r[t]=void 0)}}(e,t,0,s,r):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,s){if(s)return"innerHTML"===t||"textContent"===t||!!(t in e&&ti(t)&&k(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!ti(t)||!E(n))&&t in e}(e,t,s,i))?(function(e,t,n){if("innerHTML"===t||"textContent"===t){if(null==n)return;return void(e[t]=n)}const s=e.tagName;if("value"===t&&"PROGRESS"!==s&&!s.includes("-")){const o="OPTION"===s?e.getAttribute("value")||"":e.value,r=null==n?"":String(n);return o===r&&"_value"in e||(e.value=r),null==n&&e.removeAttribute(t),void(e._value=n)}let o=!1;if(""===n||null==n){const s=typeof e[t];"boolean"===s?n=oe(n):null==n&&"string"===s?(n="",o=!0):"number"===s&&(n=0,o=!0)}try{e[t]=n}catch(e){}o&&e.removeAttribute(t)}(e,t,s),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Gr(e,t,s,i,0,"value"!==t)):("true-value"===t?e._trueValue=s:"false-value"===t&&(e._falseValue=s),Gr(e,t,s,i))}},yr);let si;const oi=(e=>(Mn("data-v-3a168de6"),e=e(),Fn(),e))((()=>Ho("div",{class:"wg-loader"},null,-1))),ri={__name:"Loader",setup:e=>(Qr((e=>({ac1a6266:Ot(hn).style.colors.midnight,d5b65788:Ot(hn).style.colors.lightGray}))),(e,t)=>t[0]||(Do(-1),(t[0]=Ho("div",{class:"wg-loader-p"},[oi])).cacheIndex=0,Do(1),t[0]))};var ii=n(72),ci=n.n(ii),ai=n(825),li=n.n(ai),ui=n(659),di=n.n(ui),hi=n(56),pi=n.n(hi),fi=n(540),_i=n.n(fi),mi=n(113),gi=n.n(mi),bi=n(236),vi={};vi.styleTagTransform=gi(),vi.setAttributes=pi(),vi.insert=di().bind(null,"head"),vi.domAPI=li(),vi.insertStyleElement=_i(),ci()(bi.A,vi),bi.A&&bi.A.locals&&bi.A.locals;var wi=n(374);const yi=(0,wi.A)(ri,[["__scopeId","data-v-3a168de6"]]),Si={class:"wg-widget-title"},Ti={__name:"TitleInfo",props:{match:{type:Object,required:!0}},setup:e=>(Qr((e=>({"66e33070":Ot(hn).style.colors.primary_black,"5b7fdb8b":Ot(hn).style.fonts.medium,"1d2a5646":Ot(hn).style.fonts.regular}))),(t,n)=>(Mo(),Qo(Lo,null,[Ko(" prettier-ignore "),Ho("div",Si,[Ho("span",null,ie(`${e.match?.date} ${e.match?.time}`),1),Go(" | "),Ho("span",null,ie(e.match?.league?.country),1),Go(" | "),Ho("span",null,ie(e.match?.league?.name),1)])],2112)))};var xi=n(449),Ci={};Ci.styleTagTransform=gi(),Ci.setAttributes=pi(),Ci.insert=di().bind(null,"head"),Ci.domAPI=li(),Ci.insertStyleElement=_i(),ci()(xi.A,Ci),xi.A&&xi.A.locals&&xi.A.locals;const ki=(0,wi.A)(Ti,[["__scopeId","data-v-559a7950"]]),Ei={class:"wg-widget-command"},Pi=["src","alt"],Ai={class:"wg-widget-command__name"},Li={__name:"Command",props:{img:{type:String,required:!0},name:{type:String,required:!0}},setup:e=>(Qr((e=>({"48c6238d":Ot(hn).style.colors.primary_black,"6a023ba8":Ot(hn).style.fonts.medium,"59dd104d":Ot(hn).style.fonts.medium500}))),(t,n)=>(Mo(),Qo("div",Ei,[e.img?(Mo(),Qo("img",{key:0,src:e.img,alt:e.name,class:"wg-widget-command__icon",width:"20",height:"20"},null,8,Pi)):Ko("v-if",!0),Ho("div",Ai,ie(e.name),1)])))};var Oi=n(21),Ri={};Ri.styleTagTransform=gi(),Ri.setAttributes=pi(),Ri.insert=di().bind(null,"head"),Ri.domAPI=li(),Ri.insertStyleElement=_i(),ci()(Oi.A,Ri),Oi.A&&Oi.A.locals&&Oi.A.locals;const ji=(0,wi.A)(Li,[["__scopeId","data-v-d0329ce8"]]);function Ii(e,t,n){const s=hn.debug;let o=-1;return go(e,((r,i)=>{const c=r-i;var a;t.value=0===(a=c)?"":0<a?"up":"down",s&&console.log(n,"src:",e.value,"n:",r,"o:",i,"n - o:",r-i,"way",t.value),clearTimeout(o),o=setTimeout((()=>{t.value=""}),0<c?45e3:8e3)}))}function zi(e,t,n){const s=hn.debug;return go(e,((o,r)=>{t.value=0<o,s&&console.log(n,"src:",e.value,"n:",o,"o:",r,"way",t.value)}))}Object.freeze({main_font:"Roboto",regular:"400",bold:"600",small:"10px",medium:"12px",large:"14px"}),Object.freeze({white:"#FFFFFF",iron:"#D5D7E4",lightGray:"#30365B",blackPearl:"#020223",cultured:"#D9E8FF",blueZodiac:"#22294B",lava:"#E84848",blue:"#257CFF",midnight:"#111936",cloudyBlue:"#BCBFD6"}),Object.freeze({on:!0,off:!1}),window.main_font,window.main_bg_color,window.main_color,window.main_size,window.main_weight,window.mtr_bg_color,window.mtr_bg_color_category_logo,window.mtr_category_name_color,window.mtr_category_name_size,window.mtr_category_name_weight,window.mtr_tournament_name_color,window.mtr_tournament_name_size,window.mtr_tournament_name_weight,window.mtr_date_color,window.mtr_date_size,window.mtr_date_weight,window.mtr_dividers_color,window.msdr_bg_color,window.msdr_font_color,window.msdr_font_weight,window.msdr_font_size,window.msd_dividers_color,window.mmr_bg_color,window.mmr_dividers_color,window.mmr_team_name_color,window.mmr_team_name_size,window.mmr_team_name_weight,window.mmr_status_finished_color,window.mmr_status_finished_weight,window.mmr_status_finished_size,window.mmr_status_live_color,window.mmr_status_live_weight,window.mmr_status_live_size,window.mmr_time_color,window.mmr_time_size,window.mmr_time_weight,window.mmr_score_win_team_color,window.mmr_score_win_team_size,window.mmr_score_win_team_weight,window.mmr_score_team_color,window.mmr_score_team_size,window.mmr_score_team_weight,window.mmr_details_activation,window.mmr_details_bg_color,window.mmr_details_button_bg_color,window.mmr_details_button_size,window.mmr_details_button_weight,window.mmr_score_team_color_basket,window.md_bg_color,window.md_dividers_color,window.md_commands_info_bg_color,window.md_commands_info_color,window.md_commands_info_divider_color,window.md_commands_info_size,window.md_commands_info_weight,window.md_1st_player_name_color,window.md_1st_player_name_size,window.md_1st_player_name_weight,window.md_2nd_player_name_color,window.md_2nd_player_name_size,window.md_2nd_player_name_weight,window.md_sec_time_color,window.md_sec_time_size,window.md_sec_time_weight,window.md_score_color,window.md_score_size,window.md_score_weight,window.md_time_goals_color,window.md_time_goals_size,window.md_time_goals_weight,window.md_time_other_color,window.md_time_other_size,window.md_time_other_weight,window.md_period_name_bg_color,window.md_period_divider_color,window.md_period_name_color,window.md_period_name_size,window.md_period_name_weight,window.md_placeholder_bg_color,window.md_placeholder_font_color,window.md_placeholder_font_size,window.md_placeholder_font_weight,window.md_placeholder_divider_color,window.md_points_color,window.md_points_size,window.md_points_weight,window.md_loader_bg_color,window.md_loader_dividers_color,window.str_bg_color,window.str_bg_color_category_logo,window.str_category_name_color,window.str_category_name_weight,window.str_category_name_size,window.str_divider_color,window.sn_bg_color,window.sn_btn_bg_color,window.sn_btn_active_color,window.sn_btn_color,window.sn_divider_color,window.sn_font_size,window.sn_font_weight,window.str_tournament_name_color,window.str_tournament_name_size,window.str_tournament_name_weight,window.str_season_color,window.str_season_size,window.str_season_weight,window.sb_bg_color,window.sb_team_row_dividers_color,window.sb_standing_name_color,window.sb_standing_name_size,window.sb_standing_name_weight,window.sb_header_bg_color,window.sb_header_divider_color,window.sb_columns_and_numbering_color,window.sb_columns_and_numbering_size,window.sb_columns_and_numbering_weight,window.sb_team_name_color,window.sb_team_name_size,window.sb_team_name_weight,window.sb_standing_value_color,window.sb_standing_value_size,window.sb_standing_value_weight,window.sb_standing_legend_color,window.sb_standing_legend_size,window.sb_standing_legend_weight,window.sb_standing_legend_bg_color,window.sb_standing_legend_divider_color;const Mi="-",Fi=i[hn.lang],Di=(e,t=!0)=>{let n=e??-1;return n<0?Fi[5]:(t&&90<n&&("string"==typeof e&&-1===e.search("\\+")||"string"!=typeof e)&&(n="90+"),`${n}'`)},Ui=i[hn.lang];const Qi={class:"wg-widget-score"},Ni={class:"wg-score"},$i={key:0,class:"wg-score__divider"},Bi={__name:"Score",props:{match:{type:Object,required:!0},teams:{type:Array,required:!0}},setup(e){Qr((e=>({"462d4044":Ot(hn).style.colors.primary_grey,"7361240c":Ot(hn).style.fonts.large32,"6643421c":Ot(hn).style.fonts.bold700,cb42d28a:Ot(hn).style.colors.green,"323e0e49":Ot(hn).style.colors.red,"7f31873a":Ot(hn).style.colors.primary_black,"98b34ad4":Ot(hn).style.colors.white_secondary,"108e9c55":Ot(hn).style.fonts.medium,"09f3aebc":Ot(hn).style.fonts.regular,e3d9fbdc:Ot(hn).style.colors.secondary_grey})));const t=e,n=gr((()=>function(e){const t=()=>Ft===e.stage,n=()=>e.home.score-e.away.score,s={home:{val:gr((()=>t()?Mi:e.home.score??Mi)),win:At(0<n()),way:At("")},away:{val:gr((()=>t()?Mi:e.away.score??Mi)),win:At(0<-1*n()),way:At("")}};return Ii(Mt(e.home,"score"),s.home.way,`REACTIVE updated home score (${e.time}, ${e.slug})`),Ii(Mt(e.away,"score"),s.away.way,`REACTIVE updated away score (${e.time}, ${e.slug})`),zi(n,s.home.win,`REACTIVE updated home win (${e.time}, ${e.slug})`),zi((()=>-1*n()),s.away.win,`REACTIVE updated away win (${e.time}, ${e.slug})`),s}(t.match))),s=gr((()=>function(e){const t=hn.debug,n=gr((()=>{const t=(n=e.stage,{[Ft]:"",[Dt]:Di,[Jt]:Di,[Gt]:Di,[Ht]:Ui[1],[qt]:Ui[11],[Xt]:Ui[12],[en]:Ui[9],[tn]:Ui[10],[Ut]:Ui[4],[$t]:Ui[0],[Bt]:Ui[6],[Wt]:Ui[7],[Vt]:Ui[8],[Qt]:Ui[3],[Nt]:Ui[2]}[n]??"?");var n;return"function"==typeof t?t(e.matchTime):t}));return t&&go(n,(()=>{console.log(`REACTIVE updated status (${e.time}, ${e.slug})`,n.value,e.live)})),n}(t.match))),o=gr((()=>t.match?.live));return(t,r)=>(Mo(),Qo("div",Qi,[Ho("div",Ni,[(Mo(!0),Qo(Lo,null,gs(e.teams,((e,t)=>(Mo(),Qo(Lo,{key:e},[Ho("span",{class:ne(["wg-score__count",{[`wg-${n.value[e].way.value}-score`]:n.value[e].way.value,"wg-green":n.value[e].win.value}])},ie(n.value[e].val.value),3),t?Ko("v-if",!0):(Mo(),Qo("span",$i,":"))],64)))),128))]),Ko(" prettier-ignore "),Ho("div",{class:ne(["wg-status",{"wg-live":o.value}])},[Ko(" remove live class to see other styles like for finished condition "),Go(" "+ie(s.value),1)],2)]))}};var Wi=n(783),Vi={};Vi.styleTagTransform=gi(),Vi.setAttributes=pi(),Vi.insert=di().bind(null,"head"),Vi.domAPI=li(),Vi.insertStyleElement=_i(),ci()(Wi.A,Vi),Wi.A&&Wi.A.locals&&Wi.A.locals;const Hi=(0,wi.A)(Bi,[["__scopeId","data-v-1780b0c2"]]),qi={class:"wg-widget-placeholder"},Ji=(e=>(Mn("data-v-ab37b148"),e=e(),Fn(),e))((()=>Ho("img",{class:"wg-widget-placeholder__icon",src:"https://widgetlogic.org/v2/img/placeholder-blue.svg",alt:"wg-placeholder-icon"},null,-1))),Gi={__name:"Placeholder",props:{match:{type:[Object,null],required:!0}},setup(e){Qr((e=>({"7125f0f9":Ot(hn).style.colors.white_secondary,f53d7b10:Ot(hn).style.fonts.medium,"2f75ccf9":Ot(hn).style.fonts.regular,"6ae5934f":Ot(hn).style.colors.secondary_grey})));const t=e,n=gr((()=>t.match?hn.widgetMes[1]+` ${t.match?.date} ${t.match?.time} ${t.match?.home?.name} - ${t.match?.away?.name}.`:hn.widgetMes[0]));return(e,t)=>(Mo(),Qo("div",qi,[Ji,Ho("span",null,ie(n.value),1)]))}};var Ki=n(465),Zi={};Zi.styleTagTransform=gi(),Zi.setAttributes=pi(),Zi.insert=di().bind(null,"head"),Zi.domAPI=li(),Zi.insertStyleElement=_i(),ci()(Ki.A,Zi),Ki.A&&Ki.A.locals&&Ki.A.locals;const Yi=(0,wi.A)(Gi,[["__scopeId","data-v-ab37b148"]]),Xi={class:"wg-widget-container"},ec={class:"wgwidget-game__info"},tc=Object.assign({inheritAttrs:!1},{__name:"Widget",props:{match:{type:[Object,null],required:!0}},setup(e){const t=e,n=gr((()=>t.match?.live)),s=gr((()=>!t.match)),o=["home","away"];return(t,r)=>(Mo(),Qo("div",Xi,[n.value?Ko("v-if",!0):(Mo(),No(Yi,{key:0,match:e.match},null,8,["match"])),s.value?Ko("v-if",!0):(Mo(),Qo(Lo,{key:1},[qo(ki,{match:e.match},null,8,["match"]),Ho("div",ec,[(Mo(),Qo(Lo,null,gs(o,((t,n)=>(Mo(),Qo(Lo,{key:t},[qo(ji,{img:e.match[t].img,name:e.match[t].name},null,8,["img","name"]),n?Ko("v-if",!0):(Mo(),No(Hi,{key:0,teams:o,match:e.match},null,8,["match"]))],64)))),64))])],64))]))}});var nc=n(437),sc={};sc.styleTagTransform=gi(),sc.setAttributes=pi(),sc.insert=di().bind(null,"head"),sc.domAPI=li(),sc.insertStyleElement=_i(),ci()(nc.A,sc),nc.A&&nc.A.locals&&nc.A.locals;const oc=(0,wi.A)(tc,[["__scopeId","data-v-71ede5d7"]]),rc={class:"wg-wrapper"},ic={key:0,style:{font:"normal 11px sans-serif"}},cc={key:1},ac={__name:"App",setup(e){Qr((e=>({"027a15d2":Ot(hn).style.fonts.main_font})));const t=hn.debug,{empty:n}=hn,s=gr((()=>!Object.values(ln.matches).length)),o=gr((()=>{const e=(e=>{const n=[...sn],s=[...n,Ut,Ft];let o=null,r=null;const i=localStorage,c=!!i,a=c?i.getItem("matchSlug"):null,l=t=>{for(let n in e)if(t.includes(ln.matches[n].stage))return e[n];return null};if(t&&console.log("selectedMatch",a),a)if(o=e[a],o&&s.includes(o.stage)){if(o&&!n.includes(o.stage)&&(r=l(n),r&&i.removeItem("matchSlug")),!r)return t&&console.log("stored match",o),o}else o&&!s.includes(o.stage)&&un(),i.removeItem("matchSlug");return r||(r=l(n)),o=r||l(s),o&&c&&i.setItem("matchSlug",o.slug),t&&console.log("match",o),o})(ln.matches);return hn.matchSlug=e?e.slug:null,hn.resetAutoUpdate(),e}));return(e,t)=>(Mo(),Qo("div",rc,[Ot(ln).loading?(Mo(),Qo("div",ic,[qo(yi)])):(Mo(),Qo("div",cc,[s.value?(Mo(),Qo(Lo,{key:0},[Go(ie(Ot(n)),1)],64)):(Mo(),No(oc,{key:1,match:o.value},null,8,["match"]))]))]))}};var lc=n(607),uc={};uc.styleTagTransform=gi(),uc.setAttributes=pi(),uc.insert=di().bind(null,"head"),uc.domAPI=li(),uc.insertStyleElement=_i(),ci()(lc.A,uc),lc.A&&lc.A.locals&&lc.A.locals;const dc=(0,wi.A)(ac,[["__scopeId","data-v-1715325d"]]),hc=e=>{console.log("start mounting...");const t=document.createElement("div");t.id=hn.mainId,e.after(t),e.remove(),((...e)=>{const t=(si||(si=function(e){return co(e)}(ni))).createApp(...e),{mount:n}=t;return t.mount=e=>{const s=function(e){return E(e)?document.querySelector(e):e}(e);if(!s)return;const o=t._component;k(o)||o.render||o.template||(o.template=s.innerHTML),s.innerHTML="";const r=n(s,!1,function(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),r},t})(dc).mount(`#${hn.mainId}`),hn.debug=!1};function pc(e,t,n,s){return new(n||(n=Promise))((function(o,r){function i(e){try{a(s.next(e))}catch(e){r(e)}}function c(e){try{a(s.throw(e))}catch(e){r(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}a((s=s.apply(e,t||[])).next())}))}function fc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}"function"==typeof SuppressedError&&SuppressedError;var _c,mc={exports:{}},gc="object"==typeof Reflect?Reflect:null,bc=gc&&"function"==typeof gc.apply?gc.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};_c=gc&&"function"==typeof gc.ownKeys?gc.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var vc=Number.isNaN||function(e){return e!=e};function wc(){wc.init.call(this)}mc.exports=wc,mc.exports.once=function(e,t){return new Promise((function(n,s){function o(n){e.removeListener(t,r),s(n)}function r(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}Lc(e,t,r,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&Lc(e,"error",t,{once:!0})}(e,o)}))},wc.EventEmitter=wc,wc.prototype._events=void 0,wc.prototype._eventsCount=0,wc.prototype._maxListeners=void 0;var yc=10;function Sc(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function Tc(e){return void 0===e._maxListeners?wc.defaultMaxListeners:e._maxListeners}function xc(e,t,n,s){var o,r,i,c;if(Sc(n),void 0===(r=e._events)?(r=e._events=Object.create(null),e._eventsCount=0):(void 0!==r.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),r=e._events),i=r[t]),void 0===i)i=r[t]=n,++e._eventsCount;else if("function"==typeof i?i=r[t]=s?[n,i]:[i,n]:s?i.unshift(n):i.push(n),(o=Tc(e))>0&&i.length>o&&!i.warned){i.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=i.length,c=a,console&&console.warn&&console.warn(c)}return e}function Cc(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function kc(e,t,n){var s={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=Cc.bind(s);return o.listener=n,s.wrapFn=o,o}function Ec(e,t,n){var s=e._events;if(void 0===s)return[];var o=s[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):Ac(o,o.length)}function Pc(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function Ac(e,t){for(var n=new Array(t),s=0;s<t;++s)n[s]=e[s];return n}function Lc(e,t,n,s){if("function"==typeof e.on)s.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(r){s.once&&e.removeEventListener(t,o),n(r)}))}}Object.defineProperty(wc,"defaultMaxListeners",{enumerable:!0,get:function(){return yc},set:function(e){if("number"!=typeof e||e<0||vc(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");yc=e}}),wc.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},wc.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||vc(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},wc.prototype.getMaxListeners=function(){return Tc(this)},wc.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var s="error"===e,o=this._events;if(void 0!==o)s=s&&void 0===o.error;else if(!s)return!1;if(s){var r;if(t.length>0&&(r=t[0]),r instanceof Error)throw r;var i=new Error("Unhandled error."+(r?" ("+r.message+")":""));throw i.context=r,i}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)bc(c,this,t);else{var a=c.length,l=Ac(c,a);for(n=0;n<a;++n)bc(l[n],this,t)}return!0},wc.prototype.addListener=function(e,t){return xc(this,e,t,!1)},wc.prototype.on=wc.prototype.addListener,wc.prototype.prependListener=function(e,t){return xc(this,e,t,!0)},wc.prototype.once=function(e,t){return Sc(t),this.on(e,kc(this,e,t)),this},wc.prototype.prependOnceListener=function(e,t){return Sc(t),this.prependListener(e,kc(this,e,t)),this},wc.prototype.removeListener=function(e,t){var n,s,o,r,i;if(Sc(t),void 0===(s=this._events))return this;if(void 0===(n=s[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete s[e],s.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,r=n.length-1;r>=0;r--)if(n[r]===t||n[r].listener===t){i=n[r].listener,o=r;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(s[e]=n[0]),void 0!==s.removeListener&&this.emit("removeListener",e,i||t)}return this},wc.prototype.off=wc.prototype.removeListener,wc.prototype.removeAllListeners=function(e){var t,n,s;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,r=Object.keys(n);for(s=0;s<r.length;++s)"removeListener"!==(o=r[s])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(s=t.length-1;s>=0;s--)this.removeListener(e,t[s]);return this},wc.prototype.listeners=function(e){return Ec(this,e,!0)},wc.prototype.rawListeners=function(e){return Ec(this,e,!1)},wc.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):Pc.call(e,t)},wc.prototype.listenerCount=Pc,wc.prototype.eventNames=function(){return this._eventsCount>0?_c(this._events):[]};var Oc,Rc,jc,Ic,zc,Mc,Fc,Dc=fc(mc.exports);function Uc(e){return null!=e&&"function"==typeof e}function Qc(e,t,n){e>31&&(e=31);const s=function(e,t){return Math.floor(Math.random()*(t-0+1)+0)}(0,Math.min(n,t*Math.pow(2,e)));return Math.min(n,t+s)}function Nc(e){return Math.min(1e3*e,2147483647)}!function(e){e[e.timeout=1]="timeout",e[e.transportClosed=2]="transportClosed",e[e.clientDisconnected=3]="clientDisconnected",e[e.clientClosed=4]="clientClosed",e[e.clientConnectToken=5]="clientConnectToken",e[e.clientRefreshToken=6]="clientRefreshToken",e[e.subscriptionUnsubscribed=7]="subscriptionUnsubscribed",e[e.subscriptionSubscribeToken=8]="subscriptionSubscribeToken",e[e.subscriptionRefreshToken=9]="subscriptionRefreshToken",e[e.transportWriteError=10]="transportWriteError",e[e.connectionClosed=11]="connectionClosed",e[e.badConfiguration=12]="badConfiguration"}(Oc||(Oc={})),function(e){e[e.connectCalled=0]="connectCalled",e[e.transportClosed=1]="transportClosed",e[e.noPing=2]="noPing",e[e.subscribeTimeout=3]="subscribeTimeout",e[e.unsubscribeError=4]="unsubscribeError"}(Rc||(Rc={})),function(e){e[e.disconnectCalled=0]="disconnectCalled",e[e.unauthorized=1]="unauthorized",e[e.badProtocol=2]="badProtocol",e[e.messageSizeLimit=3]="messageSizeLimit"}(jc||(jc={})),function(e){e[e.subscribeCalled=0]="subscribeCalled",e[e.transportClosed=1]="transportClosed"}(Ic||(Ic={})),function(e){e[e.unsubscribeCalled=0]="unsubscribeCalled",e[e.unauthorized=1]="unauthorized",e[e.clientClosed=2]="clientClosed"}(zc||(zc={})),function(e){e.Disconnected="disconnected",e.Connecting="connecting",e.Connected="connected"}(Mc||(Mc={})),function(e){e.Unsubscribed="unsubscribed",e.Subscribing="subscribing",e.Subscribed="subscribed"}(Fc||(Fc={}));class $c extends Dc{constructor(e,t,n){super(),this._resubscribeTimeout=null,this._refreshTimeout=null,this.channel=t,this.state=Fc.Unsubscribed,this._centrifuge=e,this._token="",this._getToken=null,this._data=null,this._getData=null,this._recover=!1,this._offset=null,this._epoch=null,this._recoverable=!1,this._positioned=!1,this._joinLeave=!1,this._minResubscribeDelay=500,this._maxResubscribeDelay=2e4,this._resubscribeTimeout=null,this._resubscribeAttempts=0,this._promises={},this._promiseId=0,this._inflight=!1,this._refreshTimeout=null,this._delta="",this._delta_negotiated=!1,this._prevValue=null,this._unsubPromise=Promise.resolve(),this._setOptions(n),this._centrifuge._debugEnabled?(this.on("state",(e=>{this._centrifuge._debug("subscription state",t,e.oldState,"->",e.newState)})),this.on("error",(e=>{this._centrifuge._debug("subscription error",t,e)}))):this.on("error",(function(){Function.prototype()}))}ready(e){return this.state===Fc.Unsubscribed?Promise.reject({code:Oc.subscriptionUnsubscribed,message:this.state}):this.state===Fc.Subscribed?Promise.resolve():new Promise(((t,n)=>{const s={resolve:t,reject:n};e&&(s.timeout=setTimeout((function(){n({code:Oc.timeout,message:"timeout"})}),e)),this._promises[this._nextPromiseId()]=s}))}subscribe(){this._isSubscribed()||(this._resubscribeAttempts=0,this._setSubscribing(Ic.subscribeCalled,"subscribe called"))}unsubscribe(){this._unsubPromise=this._setUnsubscribed(zc.unsubscribeCalled,"unsubscribe called",!0)}publish(e){const t=this;return this._methodCall().then((function(){return t._centrifuge.publish(t.channel,e)}))}presence(){const e=this;return this._methodCall().then((function(){return e._centrifuge.presence(e.channel)}))}presenceStats(){const e=this;return this._methodCall().then((function(){return e._centrifuge.presenceStats(e.channel)}))}history(e){const t=this;return this._methodCall().then((function(){return t._centrifuge.history(t.channel,e)}))}_methodCall(){return this._isSubscribed()?Promise.resolve():this._isUnsubscribed()?Promise.reject({code:Oc.subscriptionUnsubscribed,message:this.state}):new Promise(((e,t)=>{const n=setTimeout((function(){t({code:Oc.timeout,message:"timeout"})}),this._centrifuge._config.timeout);this._promises[this._nextPromiseId()]={timeout:n,resolve:e,reject:t}}))}_nextPromiseId(){return++this._promiseId}_needRecover(){return!0===this._recover}_isUnsubscribed(){return this.state===Fc.Unsubscribed}_isSubscribing(){return this.state===Fc.Subscribing}_isSubscribed(){return this.state===Fc.Subscribed}_setState(e){if(this.state!==e){const t=this.state;return this.state=e,this.emit("state",{newState:e,oldState:t,channel:this.channel}),!0}return!1}_usesToken(){return""!==this._token||null!==this._getToken}_clearSubscribingState(){this._resubscribeAttempts=0,this._clearResubscribeTimeout()}_clearSubscribedState(){this._clearRefreshTimeout()}_setSubscribed(e){if(!this._isSubscribing())return;this._clearSubscribingState(),e.recoverable&&(this._recover=!0,this._offset=e.offset||0,this._epoch=e.epoch||""),e.delta?this._delta_negotiated=!0:this._delta_negotiated=!1,this._setState(Fc.Subscribed);const t=this._centrifuge._getSubscribeContext(this.channel,e);this.emit("subscribed",t),this._resolvePromises();const n=e.publications;if(n&&n.length>0)for(const e in n)n.hasOwnProperty(e)&&this._handlePublication(n[e]);!0===e.expires&&(this._refreshTimeout=setTimeout((()=>this._refresh()),Nc(e.ttl)))}_setSubscribing(e,t){return pc(this,void 0,void 0,(function*(){this._isSubscribing()||(this._isSubscribed()&&this._clearSubscribedState(),this._setState(Fc.Subscribing)&&this.emit("subscribing",{channel:this.channel,code:e,reason:t}),this._centrifuge._transport&&this._centrifuge._transport.emulation()&&(yield this._unsubPromise),this._isSubscribing()&&this._subscribe())}))}_subscribe(){if(this._centrifuge._debug("subscribing on",this.channel),!this._centrifuge._transportIsOpen)return this._centrifuge._debug("delay subscribe on",this.channel,"till connected"),null;const e=this,t={channel:e.channel};return!this._usesToken()||this._token?e._getData?(e._getData(t).then((function(t){e._isSubscribing()&&(e._data=t,e._sendSubscribe(e._token))})),null):e._sendSubscribe(e._token):(this._getSubscriptionToken().then((function(n){e._isSubscribing()&&(n?(e._token=n,e._getData?e._getData(t).then((function(t){e._isSubscribing()&&(e._data=t,e._sendSubscribe(n))})):e._sendSubscribe(n)):e._failUnauthorized())})).catch((function(t){e._isSubscribing()&&(t instanceof ea?e._failUnauthorized():(e.emit("error",{type:"subscribeToken",channel:e.channel,error:{code:Oc.subscriptionSubscribeToken,message:void 0!==t?t.toString():""}}),e._scheduleResubscribe()))})),null)}_sendSubscribe(e){if(!this._centrifuge._transportIsOpen)return null;const t={channel:this.channel};if(e&&(t.token=e),this._data&&(t.data=this._data),this._positioned&&(t.positioned=!0),this._recoverable&&(t.recoverable=!0),this._joinLeave&&(t.join_leave=!0),this._needRecover()){t.recover=!0;const e=this._getOffset();e&&(t.offset=e);const n=this._getEpoch();n&&(t.epoch=n)}this._delta&&(t.delta=this._delta);const n={subscribe:t};return this._inflight=!0,this._centrifuge._call(n).then((e=>{this._inflight=!1;const t=e.reply.subscribe;this._handleSubscribeResponse(t),e.next&&e.next()}),(e=>{this._inflight=!1,this._handleSubscribeError(e.error),e.next&&e.next()})),n}_handleSubscribeError(e){this._isSubscribing()&&(e.code!==Oc.timeout?this._subscribeError(e):this._centrifuge._disconnect(Rc.subscribeTimeout,"subscribe timeout",!0))}_handleSubscribeResponse(e){this._isSubscribing()&&this._setSubscribed(e)}_setUnsubscribed(e,t,n){if(this._isUnsubscribed())return Promise.resolve();let s=Promise.resolve();return this._isSubscribed()?(n&&(s=this._centrifuge._unsubscribe(this)),this._clearSubscribedState()):this._isSubscribing()&&(this._inflight&&n&&(s=this._centrifuge._unsubscribe(this)),this._clearSubscribingState()),this._setState(Fc.Unsubscribed)&&this.emit("unsubscribed",{channel:this.channel,code:e,reason:t}),this._rejectPromises({code:Oc.subscriptionUnsubscribed,message:this.state}),s}_handlePublication(e){if(this._delta&&this._delta_negotiated){const{newData:t,newPrevValue:n}=this._centrifuge._codec.applyDeltaIfNeeded(e,this._prevValue);e.data=t,this._prevValue=n}const t=this._centrifuge._getPublicationContext(this.channel,e);this.emit("publication",t),e.offset&&(this._offset=e.offset)}_handleJoin(e){const t=this._centrifuge._getJoinLeaveContext(e.info);this.emit("join",{channel:this.channel,info:t})}_handleLeave(e){const t=this._centrifuge._getJoinLeaveContext(e.info);this.emit("leave",{channel:this.channel,info:t})}_resolvePromises(){for(const e in this._promises)this._promises.hasOwnProperty(e)&&(this._promises[e].timeout&&clearTimeout(this._promises[e].timeout),this._promises[e].resolve(),delete this._promises[e])}_rejectPromises(e){for(const t in this._promises)this._promises.hasOwnProperty(t)&&(this._promises[t].timeout&&clearTimeout(this._promises[t].timeout),this._promises[t].reject(e),delete this._promises[t])}_scheduleResubscribe(){const e=this,t=this._getResubscribeDelay();this._resubscribeTimeout=setTimeout((function(){e._isSubscribing()&&e._subscribe()}),t)}_subscribeError(e){if(this._isSubscribing())if(e.code<100||109===e.code||!0===e.temporary){109===e.code&&(this._token="");const t={channel:this.channel,type:"subscribe",error:e};this._centrifuge.state===Mc.Connected&&this.emit("error",t),this._scheduleResubscribe()}else this._setUnsubscribed(e.code,e.message,!1)}_getResubscribeDelay(){const e=Qc(this._resubscribeAttempts,this._minResubscribeDelay,this._maxResubscribeDelay);return this._resubscribeAttempts++,e}_setOptions(e){if(e&&(e.since&&(this._offset=e.since.offset,this._epoch=e.since.epoch,this._recover=!0),e.data&&(this._data=e.data),e.getData&&(this._getData=e.getData),void 0!==e.minResubscribeDelay&&(this._minResubscribeDelay=e.minResubscribeDelay),void 0!==e.maxResubscribeDelay&&(this._maxResubscribeDelay=e.maxResubscribeDelay),e.token&&(this._token=e.token),e.getToken&&(this._getToken=e.getToken),!0===e.positioned&&(this._positioned=!0),!0===e.recoverable&&(this._recoverable=!0),!0===e.joinLeave&&(this._joinLeave=!0),e.delta)){if("fossil"!==e.delta)throw new Error("unsupported delta format");this._delta=e.delta}}_getOffset(){const e=this._offset;return null!==e?e:0}_getEpoch(){const e=this._epoch;return null!==e?e:""}_clearRefreshTimeout(){null!==this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearResubscribeTimeout(){null!==this._resubscribeTimeout&&(clearTimeout(this._resubscribeTimeout),this._resubscribeTimeout=null)}_getSubscriptionToken(){this._centrifuge._debug("get subscription token for channel",this.channel);const e={channel:this.channel},t=this._getToken;if(null===t)throw this.emit("error",{type:"configuration",channel:this.channel,error:{code:Oc.badConfiguration,message:"provide a function to get channel subscription token"}}),new ea("");return t(e)}_refresh(){this._clearRefreshTimeout();const e=this;this._getSubscriptionToken().then((function(t){if(!e._isSubscribed())return;if(!t)return void e._failUnauthorized();e._token=t;const n={sub_refresh:{channel:e.channel,token:t}};e._centrifuge._call(n).then((t=>{const n=t.reply.sub_refresh;e._refreshResponse(n),t.next&&t.next()}),(t=>{e._refreshError(t.error),t.next&&t.next()}))})).catch((function(t){t instanceof ea?e._failUnauthorized():(e.emit("error",{type:"refreshToken",channel:e.channel,error:{code:Oc.subscriptionRefreshToken,message:void 0!==t?t.toString():""}}),e._refreshTimeout=setTimeout((()=>e._refresh()),e._getRefreshRetryDelay()))}))}_refreshResponse(e){this._isSubscribed()&&(this._centrifuge._debug("subscription token refreshed, channel",this.channel),this._clearRefreshTimeout(),!0===e.expires&&(this._refreshTimeout=setTimeout((()=>this._refresh()),Nc(e.ttl))))}_refreshError(e){this._isSubscribed()&&(e.code<100||!0===e.temporary?(this.emit("error",{type:"refresh",channel:this.channel,error:e}),this._refreshTimeout=setTimeout((()=>this._refresh()),this._getRefreshRetryDelay())):this._setUnsubscribed(e.code,e.message,!0))}_getRefreshRetryDelay(){return Qc(0,1e4,2e4)}_failUnauthorized(){this._setUnsubscribed(zc.unauthorized,"unauthorized",!0)}}class Bc{constructor(e,t){this.endpoint=e,this.options=t,this._transport=null}name(){return"sockjs"}subName(){return"sockjs-"+this._transport.transport}emulation(){return!1}supported(){return null!==this.options.sockjs}initialize(e,t){this._transport=new this.options.sockjs(this.endpoint,null,this.options.sockjsOptions),this._transport.onopen=()=>{t.onOpen()},this._transport.onerror=e=>{t.onError(e)},this._transport.onclose=e=>{t.onClose(e)},this._transport.onmessage=e=>{t.onMessage(e.data)}}close(){this._transport.close()}send(e){this._transport.send(e)}}class Wc{constructor(e,t){this.endpoint=e,this.options=t,this._transport=null}name(){return"websocket"}subName(){return"websocket"}emulation(){return!1}supported(){return void 0!==this.options.websocket&&null!==this.options.websocket}initialize(e,t){let n="";"protobuf"===e&&(n="centrifuge-protobuf"),this._transport=""!==n?new this.options.websocket(this.endpoint,n):new this.options.websocket(this.endpoint),"protobuf"===e&&(this._transport.binaryType="arraybuffer"),this._transport.onopen=()=>{t.onOpen()},this._transport.onerror=e=>{t.onError(e)},this._transport.onclose=e=>{t.onClose(e)},this._transport.onmessage=e=>{t.onMessage(e.data)}}close(){this._transport.close()}send(e){this._transport.send(e)}}class Vc{constructor(e,t){this.endpoint=e,this.options=t,this._abortController=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"http_stream"}subName(){return"http_stream"}emulation(){return!0}_handleErrors(e){if(!e.ok)throw new Error(e.status);return e}_fetchEventTarget(e,t,n){const s=new EventTarget;return(0,e.options.fetch)(t,n).then(e._handleErrors).then((t=>{s.dispatchEvent(new Event("open"));let n="",o=0,r=new Uint8Array;const i=t.body.getReader();return new e.options.readableStream({start:t=>function c(){return i.read().then((({done:i,value:a})=>{if(i)return s.dispatchEvent(new Event("close")),void t.close();try{if("json"===e._protocol)for(n+=e._utf8decoder.decode(a);o<n.length;)if("\n"===n[o]){const e=n.substring(0,o);s.dispatchEvent(new MessageEvent("message",{data:e})),n=n.substring(o+1),o=0}else++o;else{const t=new Uint8Array(r.length+a.length);for(t.set(r),t.set(a,r.length),r=t;;){const t=e.options.decoder.decodeReply(r);if(!t.ok)break;{const e=r.slice(0,t.pos);s.dispatchEvent(new MessageEvent("message",{data:e})),r=r.slice(t.pos)}}}}catch(e){return s.dispatchEvent(new Event("error",{detail:e})),s.dispatchEvent(new Event("close")),void t.close()}c()})).catch((function(e){s.dispatchEvent(new Event("error",{detail:e})),s.dispatchEvent(new Event("close")),t.close()}))}()})})).catch((e=>{s.dispatchEvent(new Event("error",{detail:e})),s.dispatchEvent(new Event("close"))})),s}supported(){return null!==this.options.fetch&&null!==this.options.readableStream&&"undefined"!=typeof TextDecoder&&"undefined"!=typeof AbortController&&"undefined"!=typeof EventTarget&&"undefined"!=typeof Event&&"undefined"!=typeof MessageEvent&&"undefined"!=typeof Error}initialize(e,t,n){let s,o;this._protocol=e,this._abortController=new AbortController,"json"===e?(s={Accept:"application/json","Content-Type":"application/json"},o=n):(s={Accept:"application/octet-stream","Content-Type":"application/octet-stream"},o=n);const r={method:"POST",headers:s,body:o,mode:"cors",credentials:"same-origin",cache:"no-cache",signal:this._abortController.signal},i=this._fetchEventTarget(this,this.endpoint,r);i.addEventListener("open",(()=>{t.onOpen()})),i.addEventListener("error",(e=>{this._abortController.abort(),t.onError(e)})),i.addEventListener("close",(()=>{this._abortController.abort(),t.onClose({code:4,reason:"connection closed"})})),i.addEventListener("message",(e=>{t.onMessage(e.data)}))}close(){this._abortController.abort()}send(e,t,n){let s,o;const r={session:t,node:n,data:e};"json"===this._protocol?(s={"Content-Type":"application/json"},o=JSON.stringify(r)):(s={"Content-Type":"application/octet-stream"},o=this.options.encoder.encodeEmulationRequest(r));const i={method:"POST",headers:s,body:o,mode:"cors",credentials:"same-origin",cache:"no-cache"};(0,this.options.fetch)(this.options.emulationEndpoint,i)}}class Hc{constructor(e,t){this.endpoint=e,this.options=t,this._protocol="json",this._transport=null,this._onClose=null}name(){return"sse"}subName(){return"sse"}emulation(){return!0}supported(){return null!==this.options.eventsource&&null!==this.options.fetch}initialize(e,t,n){let s;s=globalThis&&globalThis.document&&globalThis.document.baseURI?new URL(this.endpoint,globalThis.document.baseURI):new URL(this.endpoint),s.searchParams.append("cf_connect",n);const o=new this.options.eventsource(s.toString(),{});this._transport=o,o.onopen=function(){t.onOpen()},o.onerror=function(e){o.close(),t.onError(e),t.onClose({code:4,reason:"connection closed"})},o.onmessage=function(e){t.onMessage(e.data)},this._onClose=function(){t.onClose({code:4,reason:"connection closed"})}}close(){this._transport.close(),null!==this._onClose&&this._onClose()}send(e,t,n){const s={session:t,node:n,data:e},o={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s),mode:"cors",credentials:"same-origin",cache:"no-cache"};(0,this.options.fetch)(this.options.emulationEndpoint,o)}}class qc{constructor(e,t){this.endpoint=e,this.options=t,this._transport=null,this._stream=null,this._writer=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"webtransport"}subName(){return"webtransport"}emulation(){return!1}supported(){return void 0!==this.options.webtransport&&null!==this.options.webtransport}initialize(e,t){return pc(this,void 0,void 0,(function*(){let n;n=globalThis&&globalThis.document&&globalThis.document.baseURI?new URL(this.endpoint,globalThis.document.baseURI):new URL(this.endpoint),"protobuf"===e&&n.searchParams.append("cf_protocol","protobuf"),this._protocol=e;const s=new EventTarget;this._transport=new this.options.webtransport(n.toString()),this._transport.closed.then((()=>{t.onClose({code:4,reason:"connection closed"})})).catch((()=>{t.onClose({code:4,reason:"connection closed"})}));try{yield this._transport.ready}catch(e){return void this.close()}let o;try{o=yield this._transport.createBidirectionalStream()}catch(e){return void this.close()}this._stream=o,this._writer=this._stream.writable.getWriter(),s.addEventListener("close",(()=>{t.onClose({code:4,reason:"connection closed"})})),s.addEventListener("message",(e=>{t.onMessage(e.data)})),this._startReading(s),t.onOpen()}))}_startReading(e){return pc(this,void 0,void 0,(function*(){const t=this._stream.readable.getReader();let n="",s=0,o=new Uint8Array;try{for(;;){const{done:r,value:i}=yield t.read();if(i.length>0)if("json"===this._protocol)for(n+=this._utf8decoder.decode(i);s<n.length;)if("\n"===n[s]){const t=n.substring(0,s);e.dispatchEvent(new MessageEvent("message",{data:t})),n=n.substring(s+1),s=0}else++s;else{const t=new Uint8Array(o.length+i.length);for(t.set(o),t.set(i,o.length),o=t;;){const t=this.options.decoder.decodeReply(o);if(!t.ok)break;{const n=o.slice(0,t.pos);e.dispatchEvent(new MessageEvent("message",{data:n})),o=o.slice(t.pos)}}}if(r)break}}catch(t){e.dispatchEvent(new Event("close"))}}))}close(){return pc(this,void 0,void 0,(function*(){try{this._writer&&(yield this._writer.close()),this._transport.close()}catch(e){}}))}send(e){return pc(this,void 0,void 0,(function*(){let t;t="json"===this._protocol?(new TextEncoder).encode(e+"\n"):e;try{yield this._writer.write(t)}catch(e){this.close()}}))}}const Jc=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,36,-1,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,-1,-1,-1,63,-1];class Gc{constructor(e){this.a=e,this.pos=0}haveBytes(){return this.pos<this.a.length}getByte(){const e=this.a[this.pos];if(this.pos++,this.pos>this.a.length)throw new RangeError("out of bounds");return e}getChar(){return String.fromCharCode(this.getByte())}getInt(){let e,t=0;for(;this.haveBytes()&&(e=Jc[127&this.getByte()])>=0;)t=(t<<6)+e;return this.pos--,t>>>0}}class Kc{constructor(){this.a=[]}toByteArray(e){return Array.isArray(e)?this.a:new Uint8Array(this.a)}putArray(e,t,n){for(let s=t;s<n;s++)this.a.push(e[s])}}function Zc(e){let t=0,n=0,s=0,o=0,r=0,i=e.length;for(;i>=16;)t=t+e[r+0]|0,n=n+e[r+1]|0,s=s+e[r+2]|0,o=o+e[r+3]|0,t=t+e[r+4]|0,n=n+e[r+5]|0,s=s+e[r+6]|0,o=o+e[r+7]|0,t=t+e[r+8]|0,n=n+e[r+9]|0,s=s+e[r+10]|0,o=o+e[r+11]|0,t=t+e[r+12]|0,n=n+e[r+13]|0,s=s+e[r+14]|0,o=o+e[r+15]|0,r+=16,i-=16;for(;i>=4;)t=t+e[r+0]|0,n=n+e[r+1]|0,s=s+e[r+2]|0,o=o+e[r+3]|0,r+=4,i-=4;switch(o=((o+(s<<8)|0)+(n<<16)|0)+(t<<24)|0,i){case 3:o=o+(e[r+2]<<8)|0;case 2:o=o+(e[r+1]<<16)|0;case 1:o=o+(e[r+0]<<24)|0}return o>>>0}class Yc{name(){return"json"}encodeCommands(e){return e.map((e=>JSON.stringify(e))).join("\n")}decodeReplies(e){return e.trim().split("\n").map((e=>JSON.parse(e)))}applyDeltaIfNeeded(e,t){let n,s;if(e.delta){const o=function(e,t){let n=0;const s=new Gc(t),o=e.length,r=t.length,i=s.getInt();if("\n"!==s.getChar())throw new Error("size integer not terminated by '\\n'");const c=new Kc;for(;s.haveBytes();){const t=s.getInt();let a;switch(s.getChar()){case"@":if(a=s.getInt(),s.haveBytes()&&","!==s.getChar())throw new Error("copy command not terminated by ','");if(n+=t,n>i)throw new Error("copy exceeds output file size");if(a+t>o)throw new Error("copy extends past end of input");c.putArray(e,a,a+t);break;case":":if(n+=t,n>i)throw new Error("insert command gives an output larger than predicted");if(t>r)throw new Error("insert count exceeds size of delta");c.putArray(s.a,s.pos,s.pos+t),s.pos+=t;break;case";":{const s=c.toByteArray(e);if(t!==Zc(s))throw new Error("bad checksum");if(n!==i)throw new Error("generated size does not match predicted size");return s}default:throw new Error("unknown delta operator")}}throw new Error("unterminated delta")}(t,(new TextEncoder).encode(e.data));n=JSON.parse((new TextDecoder).decode(o)),s=o}else n=JSON.parse(e.data),s=(new TextEncoder).encode(e.data);return{newData:n,newPrevValue:s}}}const Xc={token:"",getToken:null,data:null,getData:null,debug:!1,name:"js",version:"",fetch:null,readableStream:null,websocket:null,eventsource:null,sockjs:null,sockjsOptions:{},emulationEndpoint:"/emulation",minReconnectDelay:500,maxReconnectDelay:2e4,timeout:5e3,maxServerPingDelay:1e4,networkEventTarget:null};class ea extends Error{constructor(e){super(e),this.name=this.constructor.name}}class ta extends Dc{constructor(e,t){super(),this._reconnectTimeout=null,this._refreshTimeout=null,this._serverPingTimeout=null,this.state=Mc.Disconnected,this._transportIsOpen=!1,this._endpoint=e,this._emulation=!1,this._transports=[],this._currentTransportIndex=0,this._triedAllTransports=!1,this._transportWasOpen=!1,this._transport=null,this._transportId=0,this._deviceWentOffline=!1,this._transportClosed=!0,this._codec=new Yc,this._reconnecting=!1,this._reconnectTimeout=null,this._reconnectAttempts=0,this._client=null,this._session="",this._node="",this._subs={},this._serverSubs={},this._commandId=0,this._commands=[],this._batching=!1,this._refreshRequired=!1,this._refreshTimeout=null,this._callbacks={},this._token="",this._data=null,this._dispatchPromise=Promise.resolve(),this._serverPing=0,this._serverPingTimeout=null,this._sendPong=!1,this._promises={},this._promiseId=0,this._debugEnabled=!1,this._networkEventsSet=!1,this._config=Object.assign(Object.assign({},Xc),t),this._configure(),this._debugEnabled?(this.on("state",(e=>{this._debug("client state",e.oldState,"->",e.newState)})),this.on("error",(e=>{this._debug("client error",e)}))):this.on("error",(function(){Function.prototype()}))}newSubscription(e,t){if(null!==this.getSubscription(e))throw new Error("Subscription to the channel "+e+" already exists");const n=new $c(this,e,t);return this._subs[e]=n,n}getSubscription(e){return this._getSub(e)}removeSubscription(e){e&&(e.state!==Fc.Unsubscribed&&e.unsubscribe(),this._removeSubscription(e))}subscriptions(){return this._subs}ready(e){return this.state===Mc.Disconnected?Promise.reject({code:Oc.clientDisconnected,message:"client disconnected"}):this.state===Mc.Connected?Promise.resolve():new Promise(((t,n)=>{const s={resolve:t,reject:n};e&&(s.timeout=setTimeout((function(){n({code:Oc.timeout,message:"timeout"})}),e)),this._promises[this._nextPromiseId()]=s}))}connect(){this._isConnected()?this._debug("connect called when already connected"):this._isConnecting()?this._debug("connect called when already connecting"):(this._debug("connect called"),this._reconnectAttempts=0,this._startConnecting())}disconnect(){this._disconnect(jc.disconnectCalled,"disconnect called",!1)}setToken(e){this._token=e}send(e){const t={send:{data:e}},n=this;return this._methodCall().then((function(){return n._transportSendCommands([t])?Promise.resolve():Promise.reject(n._createErrorObject(Oc.transportWriteError,"transport write error"))}))}rpc(e,t){const n={rpc:{method:e,data:t}},s=this;return this._methodCall().then((function(){return s._callPromise(n,(function(e){return{data:e.rpc.data}}))}))}publish(e,t){const n={publish:{channel:e,data:t}},s=this;return this._methodCall().then((function(){return s._callPromise(n,(function(){return{}}))}))}history(e,t){const n={history:this._getHistoryRequest(e,t)},s=this;return this._methodCall().then((function(){return s._callPromise(n,(function(t){const n=t.history,o=[];if(n.publications)for(let t=0;t<n.publications.length;t++)o.push(s._getPublicationContext(e,n.publications[t]));return{publications:o,epoch:n.epoch||"",offset:n.offset||0}}))}))}presence(e){const t={presence:{channel:e}},n=this;return this._methodCall().then((function(){return n._callPromise(t,(function(e){const t=e.presence.presence;for(const e in t)if(t.hasOwnProperty(e)){const n=t[e].conn_info,s=t[e].chan_info;n&&(t[e].connInfo=n),s&&(t[e].chanInfo=s)}return{clients:t}}))}))}presenceStats(e){const t={presence_stats:{channel:e}},n=this;return this._methodCall().then((function(){return n._callPromise(t,(function(e){const t=e.presence_stats;return{numUsers:t.num_users,numClients:t.num_clients}}))}))}startBatching(){this._batching=!0}stopBatching(){const e=this;Promise.resolve().then((function(){Promise.resolve().then((function(){e._batching=!1,e._flush()}))}))}_debug(...e){this._debugEnabled&&function(e,t){if(globalThis.console){const e=globalThis.console.debug;Uc(e)&&e.apply(globalThis.console,t)}}(0,e)}_formatOverride(){}_configure(){if(!("Promise"in globalThis))throw new Error("Promise polyfill required");if(!this._endpoint)throw new Error("endpoint configuration required");if(null!==this._config.token&&(this._token=this._config.token),null!==this._config.data&&(this._data=this._config.data),this._codec=new Yc,this._formatOverride(),(!0===this._config.debug||"undefined"!=typeof localStorage&&localStorage.getItem("centrifuge.debug"))&&(this._debugEnabled=!0),this._debug("config",this._config),"string"==typeof this._endpoint);else{if(!("object"==typeof this._endpoint&&this._endpoint instanceof Array))throw new Error("unsupported url configuration type: only string or array of objects are supported");this._transports=this._endpoint,this._emulation=!0;for(const e in this._transports)if(this._transports.hasOwnProperty(e)){const t=this._transports[e];if(!t.endpoint||!t.transport)throw new Error("malformed transport configuration");const n=t.transport;if(["websocket","http_stream","sse","sockjs","webtransport"].indexOf(n)<0)throw new Error("unsupported transport name: "+n)}}}_setState(e){if(this.state!==e){this._reconnecting=!1;const t=this.state;return this.state=e,this.emit("state",{newState:e,oldState:t}),!0}return!1}_isDisconnected(){return this.state===Mc.Disconnected}_isConnecting(){return this.state===Mc.Connecting}_isConnected(){return this.state===Mc.Connected}_nextCommandId(){return++this._commandId}_setNetworkEvents(){if(this._networkEventsSet)return;let e=null;null!==this._config.networkEventTarget?e=this._config.networkEventTarget:void 0!==globalThis.addEventListener&&(e=globalThis),e&&(e.addEventListener("offline",(()=>{this._debug("offline event triggered"),this.state!==Mc.Connected&&this.state!==Mc.Connecting||(this._disconnect(Rc.transportClosed,"transport closed",!0),this._deviceWentOffline=!0)})),e.addEventListener("online",(()=>{this._debug("online event triggered"),this.state===Mc.Connecting&&(this._deviceWentOffline&&!this._transportClosed&&(this._deviceWentOffline=!1,this._transportClosed=!0),this._clearReconnectTimeout(),this._startReconnecting())})),this._networkEventsSet=!0)}_getReconnectDelay(){const e=Qc(this._reconnectAttempts,this._config.minReconnectDelay,this._config.maxReconnectDelay);return this._reconnectAttempts+=1,e}_clearOutgoingRequests(){for(const e in this._callbacks)if(this._callbacks.hasOwnProperty(e)){const t=this._callbacks[e];clearTimeout(t.timeout);const n=t.errback;if(!n)continue;n({error:this._createErrorObject(Oc.connectionClosed,"connection closed")})}this._callbacks={}}_clearConnectedState(){this._client=null,this._clearServerPingTimeout(),this._clearRefreshTimeout();for(const e in this._subs){if(!this._subs.hasOwnProperty(e))continue;const t=this._subs[e];t.state===Fc.Subscribed&&t._setSubscribing(Ic.transportClosed,"transport closed")}for(const e in this._serverSubs)this._serverSubs.hasOwnProperty(e)&&this.emit("subscribing",{channel:e})}_handleWriteError(e){for(const t of e){const e=t.id;if(!(e in this._callbacks))continue;const n=this._callbacks[e];clearTimeout(this._callbacks[e].timeout),delete this._callbacks[e],(0,n.errback)({error:this._createErrorObject(Oc.transportWriteError,"transport write error")})}}_transportSendCommands(e){if(!e.length)return!0;if(!this._transport)return!1;try{this._transport.send(this._codec.encodeCommands(e),this._session,this._node)}catch(t){return this._debug("error writing commands",t),this._handleWriteError(e),!1}return!0}_initializeTransport(){let e;null!==this._config.websocket?e=this._config.websocket:"function"!=typeof globalThis.WebSocket&&"object"!=typeof globalThis.WebSocket||(e=globalThis.WebSocket);let t=null;null!==this._config.sockjs?t=this._config.sockjs:void 0!==globalThis.SockJS&&(t=globalThis.SockJS);let n=null;null!==this._config.eventsource?n=this._config.eventsource:void 0!==globalThis.EventSource&&(n=globalThis.EventSource);let s=null;null!==this._config.fetch?s=this._config.fetch:void 0!==globalThis.fetch&&(s=globalThis.fetch);let o=null;if(null!==this._config.readableStream?o=this._config.readableStream:void 0!==globalThis.ReadableStream&&(o=globalThis.ReadableStream),this._emulation){this._currentTransportIndex>=this._transports.length&&(this._triedAllTransports=!0,this._currentTransportIndex=0);let r=0;for(;;){if(r>=this._transports.length)throw new Error("no supported transport found");const i=this._transports[this._currentTransportIndex],c=i.transport,a=i.endpoint;if("websocket"===c){if(this._debug("trying websocket transport"),this._transport=new Wc(a,{websocket:e}),!this._transport.supported()){this._debug("websocket transport not available"),this._currentTransportIndex++,r++;continue}}else if("webtransport"===c){if(this._debug("trying webtransport transport"),this._transport=new qc(a,{webtransport:globalThis.WebTransport,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("webtransport transport not available"),this._currentTransportIndex++,r++;continue}}else if("http_stream"===c){if(this._debug("trying http_stream transport"),this._transport=new Vc(a,{fetch:s,readableStream:o,emulationEndpoint:this._config.emulationEndpoint,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("http_stream transport not available"),this._currentTransportIndex++,r++;continue}}else if("sse"===c){if(this._debug("trying sse transport"),this._transport=new Hc(a,{eventsource:n,fetch:s,emulationEndpoint:this._config.emulationEndpoint}),!this._transport.supported()){this._debug("sse transport not available"),this._currentTransportIndex++,r++;continue}}else{if("sockjs"!==c)throw new Error("unknown transport "+c);if(this._debug("trying sockjs"),this._transport=new Bc(a,{sockjs:t,sockjsOptions:this._config.sockjsOptions}),!this._transport.supported()){this._debug("sockjs transport not available"),this._currentTransportIndex++,r++;continue}}break}}else{if(0===this._endpoint.lastIndexOf("http",0))throw new Error("Provide explicit transport endpoints configuration in case of using HTTP (i.e. using array of TransportEndpoint instead of a single string), or use ws(s):// scheme in an endpoint if you aimed using WebSocket transport");if(this._debug("client will use websocket"),this._transport=new Wc(this._endpoint,{websocket:e}),!this._transport.supported())throw new Error("WebSocket not available")}const r=this,i=this._transport,c=this._nextTransportId();r._debug("id of transport",c);let a=!1;const l=[];if(this._transport.emulation()){const e=r._sendConnect(!0);l.push(e)}this._setNetworkEvents();const u=this._codec.encodeCommands(l);let d;this._transportClosed=!1,d=setTimeout((function(){i.close()}),this._config.timeout),this._transport.initialize(this._codec.name(),{onOpen:function(){if(d&&(clearTimeout(d),d=null),r._transportId!=c)return r._debug("open callback from non-actual transport"),void i.close();a=!0,r._debug(i.subName(),"transport open"),i.emulation()||(r._transportIsOpen=!0,r._transportWasOpen=!0,r.startBatching(),r._sendConnect(!1),r._sendSubscribeCommands(),r.stopBatching(),r.emit("__centrifuge_debug:connect_frame_sent",{}))},onError:function(e){r._transportId==c?r._debug("transport level error",e):r._debug("error callback from non-actual transport")},onClose:function(e){if(d&&(clearTimeout(d),d=null),r._transportId!=c)return void r._debug("close callback from non-actual transport");r._debug(i.subName(),"transport closed"),r._transportClosed=!0,r._transportIsOpen=!1;let t="connection closed",n=!0,s=0;if(e&&"code"in e&&e.code&&(s=e.code),e&&e.reason)try{const s=JSON.parse(e.reason);t=s.reason,n=s.reconnect}catch(o){t=e.reason,(s>=3500&&s<4e3||s>=4500&&s<5e3)&&(n=!1)}s<3e3?(1009===s?(s=jc.messageSizeLimit,t="message size limit exceeded",n=!1):(s=Rc.transportClosed,t="transport closed"),r._emulation&&!r._transportWasOpen&&(r._currentTransportIndex++,r._currentTransportIndex>=r._transports.length&&(r._triedAllTransports=!0,r._currentTransportIndex=0))):r._transportWasOpen=!0,r._isConnecting()&&!a&&r.emit("error",{type:"transport",error:{code:Oc.transportClosed,message:"transport closed"},transport:i.name()}),r._reconnecting=!1,r._disconnect(s,t,n)},onMessage:function(e){r._dataReceived(e)}},u),r.emit("__centrifuge_debug:transport_initialized",{})}_sendConnect(e){const t=this._constructConnectCommand(),n=this;return this._call(t,e).then((e=>{const t=e.reply.connect;n._connectResponse(t),e.next&&e.next()}),(e=>{n._connectError(e.error),e.next&&e.next()})),t}_startReconnecting(){if(this._debug("start reconnecting"),!this._isConnecting())return void this._debug("stop reconnecting: client not in connecting state");if(this._reconnecting)return void this._debug("reconnect already in progress, return from reconnect routine");if(!1===this._transportClosed)return void this._debug("waiting for transport close");this._reconnecting=!0;const e=this,t=""===this._token;this._refreshRequired||t&&null!==this._config.getToken?this._getToken().then((function(t){e._isConnecting()&&(null!=t&&null!=t?(e._token=t,e._debug("connection token refreshed"),e._config.getData?e._config.getData().then((function(t){e._isConnecting()&&(e._data=t,e._initializeTransport())})):e._initializeTransport()):e._failUnauthorized())})).catch((function(t){if(!e._isConnecting())return;if(t instanceof ea)return void e._failUnauthorized();e.emit("error",{type:"connectToken",error:{code:Oc.clientConnectToken,message:void 0!==t?t.toString():""}});const n=e._getReconnectDelay();e._debug("error on connection token refresh, reconnect after "+n+" milliseconds",t),e._reconnecting=!1,e._reconnectTimeout=setTimeout((()=>{e._startReconnecting()}),n)})):this._config.getData?this._config.getData().then((function(t){e._isConnecting()&&(e._data=t,e._initializeTransport())})):this._initializeTransport()}_connectError(e){this.state===Mc.Connecting&&(109===e.code&&(this._refreshRequired=!0),e.code<100||!0===e.temporary||109===e.code?(this.emit("error",{type:"connect",error:e}),this._debug("closing transport due to connect error"),this._disconnect(e.code,e.message,!0)):this._disconnect(e.code,e.message,!1))}_scheduleReconnect(){if(!this._isConnecting())return;let e=!1;!this._emulation||this._transportWasOpen||this._triedAllTransports||(e=!0);let t=this._getReconnectDelay();e&&(t=0),this._debug("reconnect after "+t+" milliseconds"),this._clearReconnectTimeout(),this._reconnectTimeout=setTimeout((()=>{this._startReconnecting()}),t)}_constructConnectCommand(){const e={};this._token&&(e.token=this._token),this._data&&(e.data=this._data),this._config.name&&(e.name=this._config.name),this._config.version&&(e.version=this._config.version);const t={};let n=!1;for(const e in this._serverSubs)if(this._serverSubs.hasOwnProperty(e)&&this._serverSubs[e].recoverable){n=!0;const s={recover:!0};this._serverSubs[e].offset&&(s.offset=this._serverSubs[e].offset),this._serverSubs[e].epoch&&(s.epoch=this._serverSubs[e].epoch),t[e]=s}return n&&(e.subs=t),{connect:e}}_getHistoryRequest(e,t){const n={channel:e};return void 0!==t&&(t.since&&(n.since={offset:t.since.offset},t.since.epoch&&(n.since.epoch=t.since.epoch)),void 0!==t.limit&&(n.limit=t.limit),!0===t.reverse&&(n.reverse=!0)),n}_methodCall(){return this._isConnected()?Promise.resolve():new Promise(((e,t)=>{const n=setTimeout((function(){t({code:Oc.timeout,message:"timeout"})}),this._config.timeout);this._promises[this._nextPromiseId()]={timeout:n,resolve:e,reject:t}}))}_callPromise(e,t){return new Promise(((n,s)=>{this._call(e,!1).then((e=>{n(t(e.reply)),e.next&&e.next()}),(e=>{s(e.error),e.next&&e.next()}))}))}_dataReceived(e){this._serverPing>0&&this._waitServerPing();const t=this._codec.decodeReplies(e);this._dispatchPromise=this._dispatchPromise.then((()=>{let e;this._dispatchPromise=new Promise((t=>{e=t})),this._dispatchSynchronized(t,e)}))}_dispatchSynchronized(e,t){let n=Promise.resolve();for(const t in e)e.hasOwnProperty(t)&&(n=n.then((()=>this._dispatchReply(e[t]))));n=n.then((()=>{t()}))}_dispatchReply(e){let t;const n=new Promise((e=>{t=e}));if(null==e)return this._debug("dispatch: got undefined or null reply"),t(),n;const s=e.id;return s&&s>0?this._handleReply(e,t):e.push?this._handlePush(e.push,t):this._handleServerPing(t),n}_call(e,t){return new Promise(((n,s)=>{e.id=this._nextCommandId(),this._registerCall(e.id,n,s),t||this._addCommand(e)}))}_startConnecting(){this._debug("start connecting"),this._setState(Mc.Connecting)&&this.emit("connecting",{code:Rc.connectCalled,reason:"connect called"}),this._client=null,this._startReconnecting()}_disconnect(e,t,n){if(this._isDisconnected())return;this._transportIsOpen=!1;const s=this.state;this._reconnecting=!1;const o={code:e,reason:t};let r=!1;if(n?r=this._setState(Mc.Connecting):(r=this._setState(Mc.Disconnected),this._rejectPromises({code:Oc.clientDisconnected,message:"disconnected"})),this._clearOutgoingRequests(),s===Mc.Connecting&&this._clearReconnectTimeout(),s===Mc.Connected&&this._clearConnectedState(),r&&(this._isConnecting()?this.emit("connecting",o):this.emit("disconnected",o)),this._transport){this._debug("closing existing transport");const e=this._transport;this._transport=null,e.close(),this._transportClosed=!0,this._nextTransportId()}else this._debug("no transport to close");this._scheduleReconnect()}_failUnauthorized(){this._disconnect(jc.unauthorized,"unauthorized",!1)}_getToken(){if(this._debug("get connection token"),!this._config.getToken)throw this.emit("error",{type:"configuration",error:{code:Oc.badConfiguration,message:"token expired but no getToken function set in the configuration"}}),new ea("");return this._config.getToken({})}_refresh(){const e=this._client,t=this;this._getToken().then((function(n){if(e!==t._client)return;if(!n)return void t._failUnauthorized();if(t._token=n,t._debug("connection token refreshed"),!t._isConnected())return;const s={refresh:{token:t._token}};t._call(s,!1).then((e=>{const n=e.reply.refresh;t._refreshResponse(n),e.next&&e.next()}),(e=>{t._refreshError(e.error),e.next&&e.next()}))})).catch((function(e){t._isConnected()&&(e instanceof ea?t._failUnauthorized():(t.emit("error",{type:"refreshToken",error:{code:Oc.clientRefreshToken,message:void 0!==e?e.toString():""}}),t._refreshTimeout=setTimeout((()=>t._refresh()),t._getRefreshRetryDelay())))}))}_refreshError(e){e.code<100||!0===e.temporary?(this.emit("error",{type:"refresh",error:e}),this._refreshTimeout=setTimeout((()=>this._refresh()),this._getRefreshRetryDelay())):this._disconnect(e.code,e.message,!1)}_getRefreshRetryDelay(){return Qc(0,5e3,1e4)}_refreshResponse(e){this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),e.expires&&(this._client=e.client,this._refreshTimeout=setTimeout((()=>this._refresh()),Nc(e.ttl)))}_removeSubscription(e){null!==e&&delete this._subs[e.channel]}_unsubscribe(e){if(!this._transportIsOpen)return Promise.resolve();const t={unsubscribe:{channel:e.channel}},n=this;return new Promise(((e,s)=>{this._call(t,!1).then((t=>{e(),t.next&&t.next()}),(t=>{e(),t.next&&t.next(),n._disconnect(Rc.unsubscribeError,"unsubscribe error",!0)}))}))}_getSub(e){return this._subs[e]||null}_isServerSub(e){return void 0!==this._serverSubs[e]}_sendSubscribeCommands(){const e=[];for(const t in this._subs){if(!this._subs.hasOwnProperty(t))continue;const n=this._subs[t];if(!0!==n._inflight&&n.state===Fc.Subscribing){const t=n._subscribe();t&&e.push(t)}}return e}_connectResponse(e){if(this._transportIsOpen=!0,this._transportWasOpen=!0,this._reconnectAttempts=0,this._refreshRequired=!1,this._isConnected())return;this._client=e.client,this._setState(Mc.Connected),this._refreshTimeout&&clearTimeout(this._refreshTimeout),e.expires&&(this._refreshTimeout=setTimeout((()=>this._refresh()),Nc(e.ttl))),this._session=e.session,this._node=e.node,this.startBatching(),this._sendSubscribeCommands(),this.stopBatching();const t={client:e.client,transport:this._transport.subName()};e.data&&(t.data=e.data),this.emit("connected",t),this._resolvePromises(),this._processServerSubs(e.subs||{}),e.ping&&e.ping>0?(this._serverPing=1e3*e.ping,this._sendPong=!0===e.pong,this._waitServerPing()):this._serverPing=0}_processServerSubs(e){for(const t in e){if(!e.hasOwnProperty(t))continue;const n=e[t];this._serverSubs[t]={offset:n.offset,epoch:n.epoch,recoverable:n.recoverable||!1};const s=this._getSubscribeContext(t,n);this.emit("subscribed",s)}for(const t in e){if(!e.hasOwnProperty(t))continue;const n=e[t];if(n.recovered){const e=n.publications;if(e&&e.length>0)for(const n in e)e.hasOwnProperty(n)&&this._handlePublication(t,e[n])}}for(const t in this._serverSubs)this._serverSubs.hasOwnProperty(t)&&(e[t]||(this.emit("unsubscribed",{channel:t}),delete this._serverSubs[t]))}_clearRefreshTimeout(){null!==this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearReconnectTimeout(){null!==this._reconnectTimeout&&(clearTimeout(this._reconnectTimeout),this._reconnectTimeout=null)}_clearServerPingTimeout(){null!==this._serverPingTimeout&&(clearTimeout(this._serverPingTimeout),this._serverPingTimeout=null)}_waitServerPing(){0!==this._config.maxServerPingDelay&&this._isConnected()&&(this._clearServerPingTimeout(),this._serverPingTimeout=setTimeout((()=>{this._isConnected()&&this._disconnect(Rc.noPing,"no ping",!0)}),this._serverPing+this._config.maxServerPingDelay))}_getSubscribeContext(e,t){const n={channel:e,positioned:!1,recoverable:!1,wasRecovering:!1,recovered:!1};t.recovered&&(n.recovered=!0),t.positioned&&(n.positioned=!0),t.recoverable&&(n.recoverable=!0),t.was_recovering&&(n.wasRecovering=!0);let s="";"epoch"in t&&(s=t.epoch);let o=0;return"offset"in t&&(o=t.offset),(n.positioned||n.recoverable)&&(n.streamPosition={offset:o,epoch:s}),t.data&&(n.data=t.data),n}_handleReply(e,t){const n=e.id;if(!(n in this._callbacks))return void t();const s=this._callbacks[n];if(clearTimeout(this._callbacks[n].timeout),delete this._callbacks[n],"error"in(o=e)&&null!==o.error){const n=s.errback;if(!n)return void t();n({error:e.error,next:t})}else{const n=s.callback;if(!n)return;n({reply:e,next:t})}var o}_handleJoin(e,t){const n=this._getSub(e);if(n)n._handleJoin(t);else if(this._isServerSub(e)){const n={channel:e,info:this._getJoinLeaveContext(t.info)};this.emit("join",n)}}_handleLeave(e,t){const n=this._getSub(e);if(n)n._handleLeave(t);else if(this._isServerSub(e)){const n={channel:e,info:this._getJoinLeaveContext(t.info)};this.emit("leave",n)}}_handleUnsubscribe(e,t){const n=this._getSub(e);n?t.code<2500?n._setUnsubscribed(t.code,t.reason,!1):n._setSubscribing(t.code,t.reason):this._isServerSub(e)&&(delete this._serverSubs[e],this.emit("unsubscribed",{channel:e}))}_handleSubscribe(e,t){this._serverSubs[e]={offset:t.offset,epoch:t.epoch,recoverable:t.recoverable||!1},this.emit("subscribed",this._getSubscribeContext(e,t))}_handleDisconnect(e){const t=e.code;let n=!0;(t>=3500&&t<4e3||t>=4500&&t<5e3)&&(n=!1),this._disconnect(t,e.reason,n)}_getPublicationContext(e,t){const n={channel:e,data:t.data};return t.offset&&(n.offset=t.offset),t.info&&(n.info=this._getJoinLeaveContext(t.info)),t.tags&&(n.tags=t.tags),n}_getJoinLeaveContext(e){const t={client:e.client,user:e.user};return e.conn_info&&(t.connInfo=e.conn_info),e.chan_info&&(t.chanInfo=e.chan_info),t}_handlePublication(e,t){const n=this._getSub(e);if(n)n._handlePublication(t);else if(this._isServerSub(e)){const n=this._getPublicationContext(e,t);this.emit("publication",n),void 0!==t.offset&&(this._serverSubs[e].offset=t.offset)}}_handleMessage(e){this.emit("message",{data:e.data})}_handleServerPing(e){if(this._sendPong){const e={};this._transportSendCommands([e])}e()}_handlePush(e,t){const n=e.channel;e.pub?this._handlePublication(n,e.pub):e.message?this._handleMessage(e.message):e.join?this._handleJoin(n,e.join):e.leave?this._handleLeave(n,e.leave):e.unsubscribe?this._handleUnsubscribe(n,e.unsubscribe):e.subscribe?this._handleSubscribe(n,e.subscribe):e.disconnect&&this._handleDisconnect(e.disconnect),t()}_flush(){const e=this._commands.slice(0);this._commands=[],this._transportSendCommands(e)}_createErrorObject(e,t,n){const s={code:e,message:t};return n&&(s.temporary=!0),s}_registerCall(e,t,n){this._callbacks[e]={callback:t,errback:n,timeout:null},this._callbacks[e].timeout=setTimeout((()=>{delete this._callbacks[e],Uc(n)&&n({error:this._createErrorObject(Oc.timeout,"timeout")})}),this._config.timeout)}_addCommand(e){this._batching?this._commands.push(e):this._transportSendCommands([e])}_nextPromiseId(){return++this._promiseId}_nextTransportId(){return++this._transportId}_resolvePromises(){for(const e in this._promises)this._promises.hasOwnProperty(e)&&(this._promises[e].timeout&&clearTimeout(this._promises[e].timeout),this._promises[e].resolve(),delete this._promises[e])}_rejectPromises(e){for(const t in this._promises)this._promises.hasOwnProperty(t)&&(this._promises[t].timeout&&clearTimeout(this._promises[t].timeout),this._promises[t].reject(e),delete this._promises[t])}}ta.SubscriptionState=Fc,ta.State=Mc,ta.UnauthorizedError=ea;const na=e=>{"complete"===document.readyState?e():window.addEventListener("load",e)};na((()=>{let e=document.querySelector('div[data-place="widget-live-match"]');e?.getAttribute("data-place")&&(()=>{let e=document.querySelector('div[data-place="widget-live-match"]');hn.lang="en";const t=e.dataset?.lang??null;t&&(hn.lang=["nl","ro","ka","hy","az","el","pl","uz"].includes(t)?t:hn.lang),hn.sport=o,hn.rpcSport=r,hn.rpcSportDetail=hn.rpcSport+"Detail",hn.empty=c[hn.lang],hn.widgetMes=a[hn.lang],hc(e),(async()=>{console.log("connecting..."),hn.socket=new ta("wss://widgetlogic.org/ws",{timeout:6e4}),hn.sub=hn.socket.newSubscription(hn.rpcSport),hn.debug&&(hn.sub.on("subscribing",(function(e){hn.debug&&console.log(`subscribing: ${e.code}, ${e.reason}`)})).on("subscribed",(function(e){hn.debug&&console.log("subscribed",e)})).on("unsubscribed",(function(e){hn.debug&&console.log(`unsubscribed: ${e.code}, ${e.reason}`)})),hn.socket.on("connecting",(function(e){hn.debug&&console.log(`connecting: ${e.code}, ${e.reason}`)})).on("connected",(function(e){hn.debug&&console.log(`connected over ${e.transport}`)})).on("disconnected",(function(e){hn.debug&&console.log(`disconnected: ${e.code}, ${e.reason}`)})).on("publish",(function(e){hn.debug&&console.log(e)}))),hn.sub.on("publication",(function(e){hn.debug&&console.log("Update",e.data),(e=>{if(!e)return void console.log("Update is empty...");const{slug:t,matchTime:n=null,home:s={score:null,periods:null},away:o={score:null,periods:null}}=e,r=ln.matches[t];if(t===hn.matchSlug&&(hn.resetAutoUpdate(),console.log("Selected Match updated",e)),sn.includes(ln.matches[hn.matchSlug]?.stage)||!n&&!sn.includes(e?.stage)||(console.log("Update match full match",e),hn.getFullMatch()),!r)return void console.log("Match is absent",e);const i=e.stage?on.includes(e.stage)?e.stage:console.log("unknown stages for update data:",e)??e.stage:null,c=(e,t)=>{const n="object"==typeof e.periods?e.periods:{};return Object.assign(e,{...t.periods?{periods:Object.assign(n,t.periods)}:{},score:t.score})};Object.assign(ln.matches[t],{...i?{stage:i,live:nn.includes(i)}:{},...n?{matchTime:n}:{},...s.score?{home:c(ln.matches[t].home,s)}:{},...o.score?{away:c(ln.matches[t].away,o)}:{}})})(e.data)})),hn.sub.subscribe(),hn.socket.connect(),await un()})()})()})),na((()=>{window.widgetLogic="present"}))})()
;(function($){"use strict";$(window).on('load resize',function(){var viewportWidth=window.outerWidth;var siteHeader=$('.site-header');var isMobile=siteHeader.hasClass('mobile');if(viewportWidth<1008){if(!isMobile){siteHeader.addClass('mobile');$('body').addClass('mobile')}}else{if(isMobile){siteHeader.removeClass('mobile');$('body').removeClass('mobile')}}})})(jQuery)
;/*!
  * Bootstrap v4.6.0 (https://getbootstrap.com/)
  * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
  */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap={},t.jQuery,t.Popper)}(this,(function(t,e,n){"use strict";function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var o=i(e),a=i(n);function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function u(t){var e=this,n=!1;return o.default(this).one(d.TRANSITION_END,(function(){n=!0})),setTimeout((function(){n||d.triggerTransitionEnd(e)}),t),this}var d={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=o.default(t).css("transition-duration"),n=o.default(t).css("transition-delay"),i=parseFloat(e),a=parseFloat(n);return i||a?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){o.default(t).trigger("transitionend")},supportsTransitionEnd:function(){return Boolean("transitionend")},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],a=e[i],s=a&&d.isElement(a)?"element":null===(l=a)||"undefined"==typeof l?""+l:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(s))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+o+'".')}var l},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?d.findShadowRoot(t.parentNode):null},jQueryDetection:function(){if("undefined"==typeof o.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=o.default.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};d.jQueryDetection(),o.default.fn.emulateTransitionEnd=u,o.default.event.special[d.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(t){if(o.default(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var f="alert",c=o.default.fn[f],h=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){o.default.removeData(this._element,"bs.alert"),this._element=null},e._getRootElement=function(t){var e=d.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=o.default(t).closest(".alert")[0]),n},e._triggerCloseEvent=function(t){var e=o.default.Event("close.bs.alert");return o.default(t).trigger(e),e},e._removeElement=function(t){var e=this;if(o.default(t).removeClass("show"),o.default(t).hasClass("fade")){var n=d.getTransitionDurationFromElement(t);o.default(t).one(d.TRANSITION_END,(function(n){return e._destroyElement(t,n)})).emulateTransitionEnd(n)}else this._destroyElement(t)},e._destroyElement=function(t){o.default(t).detach().trigger("closed.bs.alert").remove()},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data("bs.alert");i||(i=new t(this),n.data("bs.alert",i)),"close"===e&&i[e](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},l(t,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),t}();o.default(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',h._handleDismiss(new h)),o.default.fn[f]=h._jQueryInterface,o.default.fn[f].Constructor=h,o.default.fn[f].noConflict=function(){return o.default.fn[f]=c,h._jQueryInterface};var g=o.default.fn.button,m=function(){function t(t){this._element=t,this.shouldAvoidTriggerChange=!1}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=o.default(this._element).closest('[data-toggle="buttons"]')[0];if(n){var i=this._element.querySelector('input:not([type="hidden"])');if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains("active"))t=!1;else{var a=n.querySelector(".active");a&&o.default(a).removeClass("active")}t&&("checkbox"!==i.type&&"radio"!==i.type||(i.checked=!this._element.classList.contains("active")),this.shouldAvoidTriggerChange||o.default(i).trigger("change")),i.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains("active")),t&&o.default(this._element).toggleClass("active"))},e.dispose=function(){o.default.removeData(this._element,"bs.button"),this._element=null},t._jQueryInterface=function(e,n){return this.each((function(){var i=o.default(this),a=i.data("bs.button");a||(a=new t(this),i.data("bs.button",a)),a.shouldAvoidTriggerChange=n,"toggle"===e&&a[e]()}))},l(t,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),t}();o.default(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var e=t.target,n=e;if(o.default(e).hasClass("btn")||(e=o.default(e).closest(".btn")[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{var i=e.querySelector('input:not([type="hidden"])');if(i&&(i.hasAttribute("disabled")||i.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==n.tagName&&"LABEL"===e.tagName||m._jQueryInterface.call(o.default(e),"toggle","INPUT"===n.tagName)}})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){var e=o.default(t.target).closest(".btn")[0];o.default(e).toggleClass("focus",/^focus(in)?$/.test(t.type))})),o.default(window).on("load.bs.button.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),e=0,n=t.length;e<n;e++){var i=t[e],o=i.querySelector('input:not([type="hidden"])');o.checked||o.hasAttribute("checked")?i.classList.add("active"):i.classList.remove("active")}for(var a=0,s=(t=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;a<s;a++){var l=t[a];"true"===l.getAttribute("aria-pressed")?l.classList.add("active"):l.classList.remove("active")}})),o.default.fn.button=m._jQueryInterface,o.default.fn.button.Constructor=m,o.default.fn.button.noConflict=function(){return o.default.fn.button=g,m._jQueryInterface};var p="carousel",_=".bs.carousel",v=o.default.fn[p],b={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},y={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},E={TOUCH:"touch",PEN:"pen"},w=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide("next")},e.nextWhenVisible=function(){var t=o.default(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide("prev")},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(d.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(t){var e=this;this._activeElement=this._element.querySelector(".active.carousel-item");var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)o.default(this._element).one("slid.bs.carousel",(function(){return e.to(t)}));else{if(n===t)return this.pause(),void this.cycle();var i=t>n?"next":"prev";this._slide(i,this._items[t])}},e.dispose=function(){o.default(this._element).off(_),o.default.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(t){return t=r({},b,t),d.typeCheckConfig(p,t,y),t},e._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&o.default(this._element).on("keydown.bs.carousel",(function(e){return t._keydown(e)})),"hover"===this._config.pause&&o.default(this._element).on("mouseenter.bs.carousel",(function(e){return t.pause(e)})).on("mouseleave.bs.carousel",(function(e){return t.cycle(e)})),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var e=function(e){t._pointerEvent&&E[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},n=function(e){t._pointerEvent&&E[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),500+t._config.interval))};o.default(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",(function(t){return t.preventDefault()})),this._pointerEvent?(o.default(this._element).on("pointerdown.bs.carousel",(function(t){return e(t)})),o.default(this._element).on("pointerup.bs.carousel",(function(t){return n(t)})),this._element.classList.add("pointer-event")):(o.default(this._element).on("touchstart.bs.carousel",(function(t){return e(t)})),o.default(this._element).on("touchmove.bs.carousel",(function(e){return function(e){e.originalEvent.touches&&e.originalEvent.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.originalEvent.touches[0].clientX-t.touchStartX}(e)})),o.default(this._element).on("touchend.bs.carousel",(function(t){return n(t)})))}},e._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},e._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)},e._getItemByDirection=function(t,e){var n="next"===t,i="prev"===t,o=this._getItemIndex(e),a=this._items.length-1;if((i&&0===o||n&&o===a)&&!this._config.wrap)return e;var s=(o+("prev"===t?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},e._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(".active.carousel-item")),a=o.default.Event("slide.bs.carousel",{relatedTarget:t,direction:e,from:i,to:n});return o.default(this._element).trigger(a),a},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));o.default(e).removeClass("active");var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&o.default(n).addClass("active")}},e._updateInterval=function(){var t=this._activeElement||this._element.querySelector(".active.carousel-item");if(t){var e=parseInt(t.getAttribute("data-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}},e._slide=function(t,e){var n,i,a,s=this,l=this._element.querySelector(".active.carousel-item"),r=this._getItemIndex(l),u=e||l&&this._getItemByDirection(t,l),f=this._getItemIndex(u),c=Boolean(this._interval);if("next"===t?(n="carousel-item-left",i="carousel-item-next",a="left"):(n="carousel-item-right",i="carousel-item-prev",a="right"),u&&o.default(u).hasClass("active"))this._isSliding=!1;else if(!this._triggerSlideEvent(u,a).isDefaultPrevented()&&l&&u){this._isSliding=!0,c&&this.pause(),this._setActiveIndicatorElement(u),this._activeElement=u;var h=o.default.Event("slid.bs.carousel",{relatedTarget:u,direction:a,from:r,to:f});if(o.default(this._element).hasClass("slide")){o.default(u).addClass(i),d.reflow(u),o.default(l).addClass(n),o.default(u).addClass(n);var g=d.getTransitionDurationFromElement(l);o.default(l).one(d.TRANSITION_END,(function(){o.default(u).removeClass(n+" "+i).addClass("active"),o.default(l).removeClass("active "+i+" "+n),s._isSliding=!1,setTimeout((function(){return o.default(s._element).trigger(h)}),0)})).emulateTransitionEnd(g)}else o.default(l).removeClass("active"),o.default(u).addClass("active"),this._isSliding=!1,o.default(this._element).trigger(h);c&&this.cycle()}},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this).data("bs.carousel"),i=r({},b,o.default(this).data());"object"==typeof e&&(i=r({},i,e));var a="string"==typeof e?e:i.slide;if(n||(n=new t(this,i),o.default(this).data("bs.carousel",n)),"number"==typeof e)n.to(e);else if("string"==typeof a){if("undefined"==typeof n[a])throw new TypeError('No method named "'+a+'"');n[a]()}else i.interval&&i.ride&&(n.pause(),n.cycle())}))},t._dataApiClickHandler=function(e){var n=d.getSelectorFromElement(this);if(n){var i=o.default(n)[0];if(i&&o.default(i).hasClass("carousel")){var a=r({},o.default(i).data(),o.default(this).data()),s=this.getAttribute("data-slide-to");s&&(a.interval=!1),t._jQueryInterface.call(o.default(i),a),s&&o.default(i).data("bs.carousel").to(s),e.preventDefault()}}},l(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return b}}]),t}();o.default(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",w._dataApiClickHandler),o.default(window).on("load.bs.carousel.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),e=0,n=t.length;e<n;e++){var i=o.default(t[e]);w._jQueryInterface.call(i,i.data())}})),o.default.fn[p]=w._jQueryInterface,o.default.fn[p].Constructor=w,o.default.fn[p].noConflict=function(){return o.default.fn[p]=v,w._jQueryInterface};var T="collapse",C=o.default.fn[T],S={toggle:!0,parent:""},N={toggle:"boolean",parent:"(string|element)"},D=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll('[data-toggle="collapse"]')),i=0,o=n.length;i<o;i++){var a=n[i],s=d.getSelectorFromElement(a),l=[].slice.call(document.querySelectorAll(s)).filter((function(e){return e===t}));null!==s&&l.length>0&&(this._selector=s,this._triggerArray.push(a))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=t.prototype;return e.toggle=function(){o.default(this._element).hasClass("show")?this.hide():this.show()},e.show=function(){var e,n,i=this;if(!this._isTransitioning&&!o.default(this._element).hasClass("show")&&(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(t){return"string"==typeof i._config.parent?t.getAttribute("data-parent")===i._config.parent:t.classList.contains("collapse")}))).length&&(e=null),!(e&&(n=o.default(e).not(this._selector).data("bs.collapse"))&&n._isTransitioning))){var a=o.default.Event("show.bs.collapse");if(o.default(this._element).trigger(a),!a.isDefaultPrevented()){e&&(t._jQueryInterface.call(o.default(e).not(this._selector),"hide"),n||o.default(e).data("bs.collapse",null));var s=this._getDimension();o.default(this._element).removeClass("collapse").addClass("collapsing"),this._element.style[s]=0,this._triggerArray.length&&o.default(this._triggerArray).removeClass("collapsed").attr("aria-expanded",!0),this.setTransitioning(!0);var l="scroll"+(s[0].toUpperCase()+s.slice(1)),r=d.getTransitionDurationFromElement(this._element);o.default(this._element).one(d.TRANSITION_END,(function(){o.default(i._element).removeClass("collapsing").addClass("collapse show"),i._element.style[s]="",i.setTransitioning(!1),o.default(i._element).trigger("shown.bs.collapse")})).emulateTransitionEnd(r),this._element.style[s]=this._element[l]+"px"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&o.default(this._element).hasClass("show")){var e=o.default.Event("hide.bs.collapse");if(o.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",d.reflow(this._element),o.default(this._element).addClass("collapsing").removeClass("collapse show");var i=this._triggerArray.length;if(i>0)for(var a=0;a<i;a++){var s=this._triggerArray[a],l=d.getSelectorFromElement(s);if(null!==l)o.default([].slice.call(document.querySelectorAll(l))).hasClass("show")||o.default(s).addClass("collapsed").attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[n]="";var r=d.getTransitionDurationFromElement(this._element);o.default(this._element).one(d.TRANSITION_END,(function(){t.setTransitioning(!1),o.default(t._element).removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")})).emulateTransitionEnd(r)}}},e.setTransitioning=function(t){this._isTransitioning=t},e.dispose=function(){o.default.removeData(this._element,"bs.collapse"),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(t){return(t=r({},S,t)).toggle=Boolean(t.toggle),d.typeCheckConfig(T,t,N),t},e._getDimension=function(){return o.default(this._element).hasClass("width")?"width":"height"},e._getParent=function(){var e,n=this;d.isElement(this._config.parent)?(e=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',a=[].slice.call(e.querySelectorAll(i));return o.default(a).each((function(e,i){n._addAriaAndCollapsedClass(t._getTargetFromElement(i),[i])})),e},e._addAriaAndCollapsedClass=function(t,e){var n=o.default(t).hasClass("show");e.length&&o.default(e).toggleClass("collapsed",!n).attr("aria-expanded",n)},t._getTargetFromElement=function(t){var e=d.getSelectorFromElement(t);return e?document.querySelector(e):null},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data("bs.collapse"),a=r({},S,n.data(),"object"==typeof e&&e?e:{});if(!i&&a.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(a.toggle=!1),i||(i=new t(this,a),n.data("bs.collapse",i)),"string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},l(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return S}}]),t}();o.default(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=o.default(this),n=d.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(n));o.default(i).each((function(){var t=o.default(this),n=t.data("bs.collapse")?"toggle":e.data();D._jQueryInterface.call(t,n)}))})),o.default.fn[T]=D._jQueryInterface,o.default.fn[T].Constructor=D,o.default.fn[T].noConflict=function(){return o.default.fn[T]=C,D._jQueryInterface};var k="dropdown",A=o.default.fn[k],I=new RegExp("38|40|27"),j={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},O={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},x=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=t.prototype;return e.toggle=function(){if(!this._element.disabled&&!o.default(this._element).hasClass("disabled")){var e=o.default(this._menu).hasClass("show");t._clearMenus(),e||this.show(!0)}},e.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||o.default(this._element).hasClass("disabled")||o.default(this._menu).hasClass("show"))){var n={relatedTarget:this._element},i=o.default.Event("show.bs.dropdown",n),s=t._getParentFromElement(this._element);if(o.default(s).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar&&e){if("undefined"==typeof a.default)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var l=this._element;"parent"===this._config.reference?l=s:d.isElement(this._config.reference)&&(l=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(l=this._config.reference[0])),"scrollParent"!==this._config.boundary&&o.default(s).addClass("position-static"),this._popper=new a.default(l,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===o.default(s).closest(".navbar-nav").length&&o.default(document.body).children().on("mouseover",null,o.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),o.default(this._menu).toggleClass("show"),o.default(s).toggleClass("show").trigger(o.default.Event("shown.bs.dropdown",n))}}},e.hide=function(){if(!this._element.disabled&&!o.default(this._element).hasClass("disabled")&&o.default(this._menu).hasClass("show")){var e={relatedTarget:this._element},n=o.default.Event("hide.bs.dropdown",e),i=t._getParentFromElement(this._element);o.default(i).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),o.default(this._menu).toggleClass("show"),o.default(i).toggleClass("show").trigger(o.default.Event("hidden.bs.dropdown",e)))}},e.dispose=function(){o.default.removeData(this._element,"bs.dropdown"),o.default(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;o.default(this._element).on("click.bs.dropdown",(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}))},e._getConfig=function(t){return t=r({},this.constructor.Default,o.default(this._element).data(),t),d.typeCheckConfig(k,t,this.constructor.DefaultType),t},e._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(".dropdown-menu"))}return this._menu},e._getPlacement=function(){var t=o.default(this._element.parentNode),e="bottom-start";return t.hasClass("dropup")?e=o.default(this._menu).hasClass("dropdown-menu-right")?"top-end":"top-start":t.hasClass("dropright")?e="right-start":t.hasClass("dropleft")?e="left-start":o.default(this._menu).hasClass("dropdown-menu-right")&&(e="bottom-end"),e},e._detectNavbar=function(){return o.default(this._element).closest(".navbar").length>0},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=r({},e.offsets,t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),r({},t,this._config.popperConfig)},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this).data("bs.dropdown");if(n||(n=new t(this,"object"==typeof e?e:null),o.default(this).data("bs.dropdown",n)),"string"==typeof e){if("undefined"==typeof n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},t._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var n=[].slice.call(document.querySelectorAll('[data-toggle="dropdown"]')),i=0,a=n.length;i<a;i++){var s=t._getParentFromElement(n[i]),l=o.default(n[i]).data("bs.dropdown"),r={relatedTarget:n[i]};if(e&&"click"===e.type&&(r.clickEvent=e),l){var u=l._menu;if(o.default(s).hasClass("show")&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&o.default.contains(s,e.target))){var d=o.default.Event("hide.bs.dropdown",r);o.default(s).trigger(d),d.isDefaultPrevented()||("ontouchstart"in document.documentElement&&o.default(document.body).children().off("mouseover",null,o.default.noop),n[i].setAttribute("aria-expanded","false"),l._popper&&l._popper.destroy(),o.default(u).removeClass("show"),o.default(s).removeClass("show").trigger(o.default.Event("hidden.bs.dropdown",r)))}}}},t._getParentFromElement=function(t){var e,n=d.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},t._dataApiKeydownHandler=function(e){if(!(/input|textarea/i.test(e.target.tagName)?32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||o.default(e.target).closest(".dropdown-menu").length):!I.test(e.which))&&!this.disabled&&!o.default(this).hasClass("disabled")){var n=t._getParentFromElement(this),i=o.default(n).hasClass("show");if(i||27!==e.which){if(e.preventDefault(),e.stopPropagation(),!i||27===e.which||32===e.which)return 27===e.which&&o.default(n.querySelector('[data-toggle="dropdown"]')).trigger("focus"),void o.default(this).trigger("click");var a=[].slice.call(n.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter((function(t){return o.default(t).is(":visible")}));if(0!==a.length){var s=a.indexOf(e.target);38===e.which&&s>0&&s--,40===e.which&&s<a.length-1&&s++,s<0&&(s=0),a[s].focus()}}}},l(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return j}},{key:"DefaultType",get:function(){return O}}]),t}();o.default(document).on("keydown.bs.dropdown.data-api",'[data-toggle="dropdown"]',x._dataApiKeydownHandler).on("keydown.bs.dropdown.data-api",".dropdown-menu",x._dataApiKeydownHandler).on("click.bs.dropdown.data-api keyup.bs.dropdown.data-api",x._clearMenus).on("click.bs.dropdown.data-api",'[data-toggle="dropdown"]',(function(t){t.preventDefault(),t.stopPropagation(),x._jQueryInterface.call(o.default(this),"toggle")})).on("click.bs.dropdown.data-api",".dropdown form",(function(t){t.stopPropagation()})),o.default.fn[k]=x._jQueryInterface,o.default.fn[k].Constructor=x,o.default.fn[k].noConflict=function(){return o.default.fn[k]=A,x._jQueryInterface};var P=o.default.fn.modal,R={backdrop:!0,keyboard:!0,focus:!0,show:!0},L={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},q=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=t.prototype;return e.toggle=function(t){return this._isShown?this.hide():this.show(t)},e.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){o.default(this._element).hasClass("fade")&&(this._isTransitioning=!0);var n=o.default.Event("show.bs.modal",{relatedTarget:t});o.default(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),o.default(this._element).on("click.dismiss.bs.modal",'[data-dismiss="modal"]',(function(t){return e.hide(t)})),o.default(this._dialog).on("mousedown.dismiss.bs.modal",(function(){o.default(e._element).one("mouseup.dismiss.bs.modal",(function(t){o.default(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return e._showElement(t)})))}},e.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=o.default.Event("hide.bs.modal");if(o.default(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=o.default(this._element).hasClass("fade");if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),o.default(document).off("focusin.bs.modal"),o.default(this._element).removeClass("show"),o.default(this._element).off("click.dismiss.bs.modal"),o.default(this._dialog).off("mousedown.dismiss.bs.modal"),i){var a=d.getTransitionDurationFromElement(this._element);o.default(this._element).one(d.TRANSITION_END,(function(t){return e._hideModal(t)})).emulateTransitionEnd(a)}else this._hideModal()}}},e.dispose=function(){[window,this._element,this._dialog].forEach((function(t){return o.default(t).off(".bs.modal")})),o.default(document).off("focusin.bs.modal"),o.default.removeData(this._element,"bs.modal"),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(t){return t=r({},R,t),d.typeCheckConfig("modal",t,L),t},e._triggerBackdropTransition=function(){var t=this,e=o.default.Event("hidePrevented.bs.modal");if(o.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._element.scrollHeight>document.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add("modal-static");var i=d.getTransitionDurationFromElement(this._dialog);o.default(this._element).off(d.TRANSITION_END),o.default(this._element).one(d.TRANSITION_END,(function(){t._element.classList.remove("modal-static"),n||o.default(t._element).one(d.TRANSITION_END,(function(){t._element.style.overflowY=""})).emulateTransitionEnd(t._element,i)})).emulateTransitionEnd(i),this._element.focus()}},e._showElement=function(t){var e=this,n=o.default(this._element).hasClass("fade"),i=this._dialog?this._dialog.querySelector(".modal-body"):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),o.default(this._dialog).hasClass("modal-dialog-scrollable")&&i?i.scrollTop=0:this._element.scrollTop=0,n&&d.reflow(this._element),o.default(this._element).addClass("show"),this._config.focus&&this._enforceFocus();var a=o.default.Event("shown.bs.modal",{relatedTarget:t}),s=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,o.default(e._element).trigger(a)};if(n){var l=d.getTransitionDurationFromElement(this._dialog);o.default(this._dialog).one(d.TRANSITION_END,s).emulateTransitionEnd(l)}else s()},e._enforceFocus=function(){var t=this;o.default(document).off("focusin.bs.modal").on("focusin.bs.modal",(function(e){document!==e.target&&t._element!==e.target&&0===o.default(t._element).has(e.target).length&&t._element.focus()}))},e._setEscapeEvent=function(){var t=this;this._isShown?o.default(this._element).on("keydown.dismiss.bs.modal",(function(e){t._config.keyboard&&27===e.which?(e.preventDefault(),t.hide()):t._config.keyboard||27!==e.which||t._triggerBackdropTransition()})):this._isShown||o.default(this._element).off("keydown.dismiss.bs.modal")},e._setResizeEvent=function(){var t=this;this._isShown?o.default(window).on("resize.bs.modal",(function(e){return t.handleUpdate(e)})):o.default(window).off("resize.bs.modal")},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){o.default(document.body).removeClass("modal-open"),t._resetAdjustments(),t._resetScrollbar(),o.default(t._element).trigger("hidden.bs.modal")}))},e._removeBackdrop=function(){this._backdrop&&(o.default(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,n=o.default(this._element).hasClass("fade")?"fade":"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",n&&this._backdrop.classList.add(n),o.default(this._backdrop).appendTo(document.body),o.default(this._element).on("click.dismiss.bs.modal",(function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._triggerBackdropTransition():e.hide())})),n&&d.reflow(this._backdrop),o.default(this._backdrop).addClass("show"),!t)return;if(!n)return void t();var i=d.getTransitionDurationFromElement(this._backdrop);o.default(this._backdrop).one(d.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){o.default(this._backdrop).removeClass("show");var a=function(){e._removeBackdrop(),t&&t()};if(o.default(this._element).hasClass("fade")){var s=d.getTransitionDurationFromElement(this._backdrop);o.default(this._backdrop).one(d.TRANSITION_END,a).emulateTransitionEnd(s)}else a()}else t&&t()},e._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")),n=[].slice.call(document.querySelectorAll(".sticky-top"));o.default(e).each((function(e,n){var i=n.style.paddingRight,a=o.default(n).css("padding-right");o.default(n).data("padding-right",i).css("padding-right",parseFloat(a)+t._scrollbarWidth+"px")})),o.default(n).each((function(e,n){var i=n.style.marginRight,a=o.default(n).css("margin-right");o.default(n).data("margin-right",i).css("margin-right",parseFloat(a)-t._scrollbarWidth+"px")}));var i=document.body.style.paddingRight,a=o.default(document.body).css("padding-right");o.default(document.body).data("padding-right",i).css("padding-right",parseFloat(a)+this._scrollbarWidth+"px")}o.default(document.body).addClass("modal-open")},e._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top"));o.default(t).each((function(t,e){var n=o.default(e).data("padding-right");o.default(e).removeData("padding-right"),e.style.paddingRight=n||""}));var e=[].slice.call(document.querySelectorAll(".sticky-top"));o.default(e).each((function(t,e){var n=o.default(e).data("margin-right");"undefined"!=typeof n&&o.default(e).css("margin-right",n).removeData("margin-right")}));var n=o.default(document.body).data("padding-right");o.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},e._getScrollbarWidth=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},t._jQueryInterface=function(e,n){return this.each((function(){var i=o.default(this).data("bs.modal"),a=r({},R,o.default(this).data(),"object"==typeof e&&e?e:{});if(i||(i=new t(this,a),o.default(this).data("bs.modal",i)),"string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e](n)}else a.show&&i.show(n)}))},l(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return R}}]),t}();o.default(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(t){var e,n=this,i=d.getSelectorFromElement(this);i&&(e=document.querySelector(i));var a=o.default(e).data("bs.modal")?"toggle":r({},o.default(e).data(),o.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var s=o.default(e).one("show.bs.modal",(function(t){t.isDefaultPrevented()||s.one("hidden.bs.modal",(function(){o.default(n).is(":visible")&&n.focus()}))}));q._jQueryInterface.call(o.default(e),a,this)})),o.default.fn.modal=q._jQueryInterface,o.default.fn.modal.Constructor=q,o.default.fn.modal.noConflict=function(){return o.default.fn.modal=P,q._jQueryInterface};var F=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Q={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},B=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,H=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function U(t,e,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);for(var i=(new window.DOMParser).parseFromString(t,"text/html"),o=Object.keys(e),a=[].slice.call(i.body.querySelectorAll("*")),s=function(t,n){var i=a[t],s=i.nodeName.toLowerCase();if(-1===o.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";var l=[].slice.call(i.attributes),r=[].concat(e["*"]||[],e[s]||[]);l.forEach((function(t){(function(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===F.indexOf(n)||Boolean(t.nodeValue.match(B)||t.nodeValue.match(H));for(var i=e.filter((function(t){return t instanceof RegExp})),o=0,a=i.length;o<a;o++)if(n.match(i[o]))return!0;return!1})(t,r)||i.removeAttribute(t.nodeName)}))},l=0,r=a.length;l<r;l++)s(l);return i.body.innerHTML}var M="tooltip",W=o.default.fn[M],V=new RegExp("(^|\\s)bs-tooltip\\S+","g"),z=["sanitize","whiteList","sanitizeFn"],K={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},X={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Y={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:Q,popperConfig:null},$={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},J=function(){function t(t,e){if("undefined"==typeof a.default)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=o.default(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),o.default(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(o.default(this.getTipElement()).hasClass("show"))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),o.default.removeData(this.element,this.constructor.DATA_KEY),o.default(this.element).off(this.constructor.EVENT_KEY),o.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&o.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===o.default(this.element).css("display"))throw new Error("Please use show on visible elements");var e=o.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){o.default(this.element).trigger(e);var n=d.findShadowRoot(this.element),i=o.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!i)return;var s=this.getTipElement(),l=d.getUID(this.constructor.NAME);s.setAttribute("id",l),this.element.setAttribute("aria-describedby",l),this.setContent(),this.config.animation&&o.default(s).addClass("fade");var r="function"==typeof this.config.placement?this.config.placement.call(this,s,this.element):this.config.placement,u=this._getAttachment(r);this.addAttachmentClass(u);var f=this._getContainer();o.default(s).data(this.constructor.DATA_KEY,this),o.default.contains(this.element.ownerDocument.documentElement,this.tip)||o.default(s).appendTo(f),o.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new a.default(this.element,s,this._getPopperConfig(u)),o.default(s).addClass("show"),o.default(s).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&o.default(document.body).children().on("mouseover",null,o.default.noop);var c=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,o.default(t.element).trigger(t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)};if(o.default(this.tip).hasClass("fade")){var h=d.getTransitionDurationFromElement(this.tip);o.default(this.tip).one(d.TRANSITION_END,c).emulateTransitionEnd(h)}else c()}},e.hide=function(t){var e=this,n=this.getTipElement(),i=o.default.Event(this.constructor.Event.HIDE),a=function(){"show"!==e._hoverState&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),o.default(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(o.default(this.element).trigger(i),!i.isDefaultPrevented()){if(o.default(n).removeClass("show"),"ontouchstart"in document.documentElement&&o.default(document.body).children().off("mouseover",null,o.default.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,o.default(this.tip).hasClass("fade")){var s=d.getTransitionDurationFromElement(n);o.default(n).one(d.TRANSITION_END,a).emulateTransitionEnd(s)}else a();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){o.default(this.getTipElement()).addClass("bs-tooltip-"+t)},e.getTipElement=function(){return this.tip=this.tip||o.default(this.config.template)[0],this.tip},e.setContent=function(){var t=this.getTipElement();this.setElementContent(o.default(t.querySelectorAll(".tooltip-inner")),this.getTitle()),o.default(t).removeClass("fade show")},e.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=U(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?o.default(e).parent().is(t)||t.empty().append(e):t.text(o.default(e).text())},e.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},e._getPopperConfig=function(t){var e=this;return r({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=r({},e.offsets,t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:d.isElement(this.config.container)?o.default(this.config.container):o.default(document).find(this.config.container)},e._getAttachment=function(t){return X[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)o.default(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if("manual"!==e){var n="hover"===e?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,i="hover"===e?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;o.default(t.element).on(n,t.config.selector,(function(e){return t._enter(e)})).on(i,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},o.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=r({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||o.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),o.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?"focus":"hover"]=!0),o.default(e.getTipElement()).hasClass("show")||"show"===e._hoverState?e._hoverState="show":(clearTimeout(e._timeout),e._hoverState="show",e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){"show"===e._hoverState&&e.show()}),e.config.delay.show):e.show())},e._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||o.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),o.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?"focus":"hover"]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){"out"===e._hoverState&&e.hide()}),e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){var e=o.default(this.element).data();return Object.keys(e).forEach((function(t){-1!==z.indexOf(t)&&delete e[t]})),"number"==typeof(t=r({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),d.typeCheckConfig(M,t,this.constructor.DefaultType),t.sanitize&&(t.template=U(t.template,t.whiteList,t.sanitizeFn)),t},e._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},e._cleanTipClass=function(){var t=o.default(this.getTipElement()),e=t.attr("class").match(V);null!==e&&e.length&&t.removeClass(e.join(""))},e._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(o.default(t).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data("bs.tooltip"),a="object"==typeof e&&e;if((i||!/dispose|hide/.test(e))&&(i||(i=new t(this,a),n.data("bs.tooltip",i)),"string"==typeof e)){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},l(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return Y}},{key:"NAME",get:function(){return M}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return $}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return K}}]),t}();o.default.fn[M]=J._jQueryInterface,o.default.fn[M].Constructor=J,o.default.fn[M].noConflict=function(){return o.default.fn[M]=W,J._jQueryInterface};var G="popover",Z=o.default.fn[G],tt=new RegExp("(^|\\s)bs-popover\\S+","g"),et=r({},J.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),nt=r({},J.DefaultType,{content:"(string|element|function)"}),it={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},ot=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=i.prototype;return a.isWithContent=function(){return this.getTitle()||this._getContent()},a.addAttachmentClass=function(t){o.default(this.getTipElement()).addClass("bs-popover-"+t)},a.getTipElement=function(){return this.tip=this.tip||o.default(this.config.template)[0],this.tip},a.setContent=function(){var t=o.default(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("fade show")},a._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},a._cleanTipClass=function(){var t=o.default(this.getTipElement()),e=t.attr("class").match(tt);null!==e&&e.length>0&&t.removeClass(e.join(""))},i._jQueryInterface=function(t){return this.each((function(){var e=o.default(this).data("bs.popover"),n="object"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new i(this,n),o.default(this).data("bs.popover",e)),"string"==typeof t)){if("undefined"==typeof e[t])throw new TypeError('No method named "'+t+'"');e[t]()}}))},l(i,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return et}},{key:"NAME",get:function(){return G}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return it}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return nt}}]),i}(J);o.default.fn[G]=ot._jQueryInterface,o.default.fn[G].Constructor=ot,o.default.fn[G].noConflict=function(){return o.default.fn[G]=Z,ot._jQueryInterface};var at="scrollspy",st=o.default.fn[at],lt={offset:10,method:"auto",target:""},rt={offset:"number",method:"string",target:"(string|element)"},ut=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" .nav-link,"+this._config.target+" .list-group-item,"+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,o.default(this._scrollElement).on("scroll.bs.scrollspy",(function(t){return n._process(t)})),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":"position",n="auto"===this._config.method?e:this._config.method,i="position"===n?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var e,a=d.getSelectorFromElement(t);if(a&&(e=document.querySelector(a)),e){var s=e.getBoundingClientRect();if(s.width||s.height)return[o.default(e)[n]().top+i,a]}return null})).filter((function(t){return t})).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},e.dispose=function(){o.default.removeData(this._element,"bs.scrollspy"),o.default(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if("string"!=typeof(t=r({},lt,"object"==typeof t&&t?t:{})).target&&d.isElement(t.target)){var e=o.default(t.target).attr("id");e||(e=d.getUID(at),o.default(t.target).attr("id",e)),t.target="#"+e}return d.typeCheckConfig(at,t,rt),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&("undefined"==typeof this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map((function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'})),n=o.default([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass("dropdown-item")?(n.closest(".dropdown").find(".dropdown-toggle").addClass("active"),n.addClass("active")):(n.addClass("active"),n.parents(".nav, .list-group").prev(".nav-link, .list-group-item").addClass("active"),n.parents(".nav, .list-group").prev(".nav-item").children(".nav-link").addClass("active")),o.default(this._scrollElement).trigger("activate.bs.scrollspy",{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(t){return t.classList.contains("active")})).forEach((function(t){return t.classList.remove("active")}))},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this).data("bs.scrollspy");if(n||(n=new t(this,"object"==typeof e&&e),o.default(this).data("bs.scrollspy",n)),"string"==typeof e){if("undefined"==typeof n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},l(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return lt}}]),t}();o.default(window).on("load.bs.scrollspy.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),e=t.length;e--;){var n=o.default(t[e]);ut._jQueryInterface.call(n,n.data())}})),o.default.fn[at]=ut._jQueryInterface,o.default.fn[at].Constructor=ut,o.default.fn[at].noConflict=function(){return o.default.fn[at]=st,ut._jQueryInterface};var dt=o.default.fn.tab,ft=function(){function t(t){this._element=t}var e=t.prototype;return e.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&o.default(this._element).hasClass("active")||o.default(this._element).hasClass("disabled"))){var e,n,i=o.default(this._element).closest(".nav, .list-group")[0],a=d.getSelectorFromElement(this._element);if(i){var s="UL"===i.nodeName||"OL"===i.nodeName?"> li > .active":".active";n=(n=o.default.makeArray(o.default(i).find(s)))[n.length-1]}var l=o.default.Event("hide.bs.tab",{relatedTarget:this._element}),r=o.default.Event("show.bs.tab",{relatedTarget:n});if(n&&o.default(n).trigger(l),o.default(this._element).trigger(r),!r.isDefaultPrevented()&&!l.isDefaultPrevented()){a&&(e=document.querySelector(a)),this._activate(this._element,i);var u=function(){var e=o.default.Event("hidden.bs.tab",{relatedTarget:t._element}),i=o.default.Event("shown.bs.tab",{relatedTarget:n});o.default(n).trigger(e),o.default(t._element).trigger(i)};e?this._activate(e,e.parentNode,u):u()}}},e.dispose=function(){o.default.removeData(this._element,"bs.tab"),this._element=null},e._activate=function(t,e,n){var i=this,a=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?o.default(e).children(".active"):o.default(e).find("> li > .active"))[0],s=n&&a&&o.default(a).hasClass("fade"),l=function(){return i._transitionComplete(t,a,n)};if(a&&s){var r=d.getTransitionDurationFromElement(a);o.default(a).removeClass("show").one(d.TRANSITION_END,l).emulateTransitionEnd(r)}else l()},e._transitionComplete=function(t,e,n){if(e){o.default(e).removeClass("active");var i=o.default(e.parentNode).find("> .dropdown-menu .active")[0];i&&o.default(i).removeClass("active"),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(o.default(t).addClass("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),d.reflow(t),t.classList.contains("fade")&&t.classList.add("show"),t.parentNode&&o.default(t.parentNode).hasClass("dropdown-menu")){var a=o.default(t).closest(".dropdown")[0];if(a){var s=[].slice.call(a.querySelectorAll(".dropdown-toggle"));o.default(s).addClass("active")}t.setAttribute("aria-expanded",!0)}n&&n()},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data("bs.tab");if(i||(i=new t(this),n.data("bs.tab",i)),"string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},l(t,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),t}();o.default(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(t){t.preventDefault(),ft._jQueryInterface.call(o.default(this),"show")})),o.default.fn.tab=ft._jQueryInterface,o.default.fn.tab.Constructor=ft,o.default.fn.tab.noConflict=function(){return o.default.fn.tab=dt,ft._jQueryInterface};var ct=o.default.fn.toast,ht={animation:"boolean",autohide:"boolean",delay:"number"},gt={animation:!0,autohide:!0,delay:500},mt=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var e=t.prototype;return e.show=function(){var t=this,e=o.default.Event("show.bs.toast");if(o.default(this._element).trigger(e),!e.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var n=function(){t._element.classList.remove("showing"),t._element.classList.add("show"),o.default(t._element).trigger("shown.bs.toast"),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove("hide"),d.reflow(this._element),this._element.classList.add("showing"),this._config.animation){var i=d.getTransitionDurationFromElement(this._element);o.default(this._element).one(d.TRANSITION_END,n).emulateTransitionEnd(i)}else n()}},e.hide=function(){if(this._element.classList.contains("show")){var t=o.default.Event("hide.bs.toast");o.default(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},e.dispose=function(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),o.default(this._element).off("click.dismiss.bs.toast"),o.default.removeData(this._element,"bs.toast"),this._element=null,this._config=null},e._getConfig=function(t){return t=r({},gt,o.default(this._element).data(),"object"==typeof t&&t?t:{}),d.typeCheckConfig("toast",t,this.constructor.DefaultType),t},e._setListeners=function(){var t=this;o.default(this._element).on("click.dismiss.bs.toast",'[data-dismiss="toast"]',(function(){return t.hide()}))},e._close=function(){var t=this,e=function(){t._element.classList.add("hide"),o.default(t._element).trigger("hidden.bs.toast")};if(this._element.classList.remove("show"),this._config.animation){var n=d.getTransitionDurationFromElement(this._element);o.default(this._element).one(d.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},e._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data("bs.toast");if(i||(i=new t(this,"object"==typeof e&&e),n.data("bs.toast",i)),"string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e](this)}}))},l(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"DefaultType",get:function(){return ht}},{key:"Default",get:function(){return gt}}]),t}();o.default.fn.toast=mt._jQueryInterface,o.default.fn.toast.Constructor=mt,o.default.fn.toast.noConflict=function(){return o.default.fn.toast=ct,mt._jQueryInterface},t.Alert=h,t.Button=m,t.Carousel=w,t.Collapse=D,t.Dropdown=x,t.Modal=q,t.Popover=ot,t.Scrollspy=ut,t.Tab=ft,t.Toast=mt,t.Tooltip=J,t.Util=d,Object.defineProperty(t,"__esModule",{value:!0})}))
;!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Shuffle=e()}(this,(function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function i(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}function n(t){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function r(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,s=n(t);if(e){var r=n(this).constructor;i=Reflect.construct(s,arguments,r)}else i=s.apply(this,arguments);return o(this,i)}}function l(){}l.prototype={on:function(t,e,i){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:i}),this},once:function(t,e,i){var n=this;function s(){n.off(t,s),e.apply(i,arguments)}return s._=e,this.on(t,s,i)},emit:function(t){for(var e=[].slice.call(arguments,1),i=((this.e||(this.e={}))[t]||[]).slice(),n=0,s=i.length;n<s;n++)i[n].fn.apply(i[n].ctx,e);return this},off:function(t,e){var i=this.e||(this.e={}),n=i[t],s=[];if(n&&e)for(var o=0,r=n.length;o<r;o++)n[o].fn!==e&&n[o].fn._!==e&&s.push(n[o]);return s.length?i[t]=s:delete i[t],this}};var a=l,u=l;a.TinyEmitter=u;var h="undefined"!=typeof Element?Element.prototype:{},f=h.matches||h.matchesSelector||h.webkitMatchesSelector||h.mozMatchesSelector||h.msMatchesSelector||h.oMatchesSelector,c=function(t,e){if(!t||1!==t.nodeType)return!1;if(f)return f.call(t,e);for(var i=t.parentNode.querySelectorAll(e),n=0;n<i.length;n++)if(i[n]==t)return!0;return!1};var d=function(t,e){var i,n,s,o,r=0;return function(){i=this,n=arguments;var t=new Date-r;return o||(t>=e?l():o=setTimeout(l,e-t)),s};function l(){o=0,r=+new Date,s=t.apply(i,n),i=null,n=null}};function p(){}function m(t){return parseFloat(t)||0}var v=function(){function e(i,n){t(this,e),this.x=m(i),this.y=m(n)}return i(e,null,[{key:"equals",value:function(t,e){return t.x===e.x&&t.y===e.y}}]),e}(),y=function(){function e(i,n,s,o,r){t(this,e),this.id=r,this.left=i,this.top=n,this.width=s,this.height=o}return i(e,null,[{key:"intersects",value:function(t,e){return t.left<e.left+e.width&&e.left<t.left+t.width&&t.top<e.top+e.height&&e.top<t.top+t.height}}]),e}(),g={BASE:"shuffle",SHUFFLE_ITEM:"shuffle-item",VISIBLE:"shuffle-item--visible",HIDDEN:"shuffle-item--hidden"},_=0,E=function(){function e(i,n){t(this,e),_+=1,this.id=_,this.element=i,this.isRTL=n,this.isVisible=!0,this.isHidden=!1}return i(e,[{key:"show",value:function(){this.isVisible=!0,this.element.classList.remove(g.HIDDEN),this.element.classList.add(g.VISIBLE),this.element.removeAttribute("aria-hidden")}},{key:"hide",value:function(){this.isVisible=!1,this.element.classList.remove(g.VISIBLE),this.element.classList.add(g.HIDDEN),this.element.setAttribute("aria-hidden",!0)}},{key:"init",value:function(){this.addClasses([g.SHUFFLE_ITEM,g.VISIBLE]),this.applyCss(e.Css.INITIAL),this.applyCss(this.isRTL?e.Css.DIRECTION.rtl:e.Css.DIRECTION.ltr),this.scale=e.Scale.VISIBLE,this.point=new v}},{key:"addClasses",value:function(t){var e=this;t.forEach((function(t){e.element.classList.add(t)}))}},{key:"removeClasses",value:function(t){var e=this;t.forEach((function(t){e.element.classList.remove(t)}))}},{key:"applyCss",value:function(t){var e=this;Object.keys(t).forEach((function(i){e.element.style[i]=t[i]}))}},{key:"dispose",value:function(){this.removeClasses([g.HIDDEN,g.VISIBLE,g.SHUFFLE_ITEM]),this.element.removeAttribute("style"),this.element=null}}]),e}();E.Css={INITIAL:{position:"absolute",top:0,visibility:"visible",willChange:"transform"},DIRECTION:{ltr:{left:0},rtl:{right:0}},VISIBLE:{before:{opacity:1,visibility:"visible"},after:{transitionDelay:""}},HIDDEN:{before:{opacity:0},after:{visibility:"hidden",transitionDelay:""}}},E.Scale={VISIBLE:1,HIDDEN:.001};var I=null,b=function(){if(null!==I)return I;var t=document.body||document.documentElement,e=document.createElement("div");return e.style.cssText="width:10px;padding:2px;box-sizing:border-box;",t.appendChild(e),I="10px"===window.getComputedStyle(e,null).width,t.removeChild(e),I};function T(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.getComputedStyle(t,null),n=m(i[e]);return b()||"width"!==e?b()||"height"!==e||(n+=m(i.paddingTop)+m(i.paddingBottom)+m(i.borderTopWidth)+m(i.borderBottomWidth)):n+=m(i.paddingLeft)+m(i.paddingRight)+m(i.borderLeftWidth)+m(i.borderRightWidth),n}var S={reverse:!1,by:null,compare:null,randomize:!1,key:"element"};function k(t,e){var i=Object.assign({},S,e),n=Array.from(t),s=!1;return t.length?i.randomize?function(t){for(var e=t.length;e;){e-=1;var i=Math.floor(Math.random()*(e+1)),n=t[i];t[i]=t[e],t[e]=n}return t}(t):("function"==typeof i.by?t.sort((function(t,e){if(s)return 0;var n=i.by(t[i.key]),o=i.by(e[i.key]);return void 0===n&&void 0===o?(s=!0,0):n<o||"sortFirst"===n||"sortLast"===o?-1:n>o||"sortLast"===n||"sortFirst"===o?1:0})):"function"==typeof i.compare&&t.sort(i.compare),s?n:(i.reverse&&t.reverse(),t)):[]}var C={},L="transitionend",w=0;function D(t){return!!C[t]&&(C[t].element.removeEventListener(L,C[t].listener),C[t]=null,!0)}function z(t,e){var i=L+(w+=1),n=function(t){t.currentTarget===t.target&&(D(i),e(t))};return t.addEventListener(L,n),C[i]={element:t,listener:n},i}function M(t){return Math.max.apply(Math,t)}function A(t,e,i,n){var s=t/e;return Math.abs(Math.round(s)-s)<n&&(s=Math.round(s)),Math.min(Math.ceil(s),i)}function F(t,e,i){if(1===e)return t;for(var n=[],s=0;s<=i-e;s++)n.push(M(t.slice(s,s+e)));return n}function x(t,e){for(var i,n=(i=t,Math.min.apply(Math,i)),s=0,o=t.length;s<o;s++)if(t[s]>=n-e&&t[s]<=n+e)return s;return 0}function O(t,e){var i={};t.forEach((function(t){i[t.top]?i[t.top].push(t):i[t.top]=[t]}));var n=[],s=[],o=[];return Object.keys(i).forEach((function(t){var r=i[t];s.push(r);var l,a=r[r.length-1],u=a.left+a.width,h=Math.round((e-u)/2),f=r,c=!1;if(h>0){var d=[];(c=r.every((function(t){var e=new y(t.left+h,t.top,t.width,t.height,t.id),i=!n.some((function(t){return y.intersects(e,t)}));return d.push(e),i})))&&(f=d)}if(!c&&r.some((function(t){return n.some((function(e){var i=y.intersects(t,e);return i&&(l=e),i}))}))){var p=o.findIndex((function(t){return t.includes(l)}));o.splice(p,1,s[p])}n=n.concat(f),o.push(f)})),[].concat.apply([],o).sort((function(t,e){return t.id-e.id})).map((function(t){return new v(t.left,t.top)}))}function R(t){return Array.from(new Set(t))}var N=0,B=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(o,e);var n=r(o);function o(e){var i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t(this,o),(i=n.call(this)).options=Object.assign({},o.options,s),i.options.delimeter&&(i.options.delimiter=i.options.delimeter),i.lastSort={},i.group=o.ALL_ITEMS,i.lastFilter=o.ALL_ITEMS,i.isEnabled=!0,i.isDestroyed=!1,i.isInitialized=!1,i._transitions=[],i.isTransitioning=!1,i._queue=[];var r=i._getElementOption(e);if(!r)throw new TypeError("Shuffle needs to be initialized with an element.");return i.element=r,i.id="shuffle_"+N,N+=1,i._init(),i.isInitialized=!0,i}return i(o,[{key:"_init",value:function(){if(this.items=this._getItems(),this.options.sizer=this._getElementOption(this.options.sizer),this.element.classList.add(o.Classes.BASE),this._initItems(this.items),this._onResize=this._getResizeFunction(),window.addEventListener("resize",this._onResize),"complete"!==document.readyState){var t=this.layout.bind(this);window.addEventListener("load",(function e(){window.removeEventListener("load",e),t()}))}var e=window.getComputedStyle(this.element,null),i=o.getSize(this.element).width;this._validateStyles(e),this._setColumns(i),this.filter(this.options.group,this.options.initialSort),this.element.offsetWidth,this.setItemTransitions(this.items),this.element.style.transition="height ".concat(this.options.speed,"ms ").concat(this.options.easing)}},{key:"_getResizeFunction",value:function(){var t=this._handleResize.bind(this);return this.options.throttle?this.options.throttle(t,this.options.throttleTime):t}},{key:"_getElementOption",value:function(t){return"string"==typeof t?this.element.querySelector(t):t&&t.nodeType&&1===t.nodeType?t:t&&t.jquery?t[0]:null}},{key:"_validateStyles",value:function(t){"static"===t.position&&(this.element.style.position="relative"),"hidden"!==t.overflow&&(this.element.style.overflow="hidden")}},{key:"_filter",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lastFilter,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.items,i=this._getFilteredSets(t,e);return this._toggleFilterClasses(i),this.lastFilter=t,"string"==typeof t&&(this.group=t),i}},{key:"_getFilteredSets",value:function(t,e){var i=this,n=[],s=[];return t===o.ALL_ITEMS?n=e:e.forEach((function(e){i._doesPassFilter(t,e.element)?n.push(e):s.push(e)})),{visible:n,hidden:s}}},{key:"_doesPassFilter",value:function(t,e){if("function"==typeof t)return t.call(e,e,this);var i=e.getAttribute("data-"+o.FILTER_ATTRIBUTE_KEY),n=this.options.delimiter?i.split(this.options.delimiter):JSON.parse(i);function s(t){return n.includes(t)}return Array.isArray(t)?this.options.filterMode===o.FilterMode.ANY?t.some(s):t.every(s):n.includes(t)}},{key:"_toggleFilterClasses",value:function(t){var e=t.visible,i=t.hidden;e.forEach((function(t){t.show()})),i.forEach((function(t){t.hide()}))}},{key:"_initItems",value:function(t){t.forEach((function(t){t.init()}))}},{key:"_disposeItems",value:function(t){t.forEach((function(t){t.dispose()}))}},{key:"_updateItemCount",value:function(){this.visibleItems=this._getFilteredItems().length}},{key:"setItemTransitions",value:function(t){var e=this.options,i=e.speed,n=e.easing,s=this.options.useTransforms?["transform"]:["top","left"],o=Object.keys(E.Css.HIDDEN.before).map((function(t){return t.replace(/([A-Z])/g,(function(t,e){return"-".concat(e.toLowerCase())}))})),r=s.concat(o).join();t.forEach((function(t){t.element.style.transitionDuration=i+"ms",t.element.style.transitionTimingFunction=n,t.element.style.transitionProperty=r}))}},{key:"_getItems",value:function(){var t=this;return Array.from(this.element.children).filter((function(e){return c(e,t.options.itemSelector)})).map((function(e){return new E(e,t.options.isRTL)}))}},{key:"_mergeNewItems",value:function(t){var e=Array.from(this.element.children);return k(this.items.concat(t),{by:function(t){return e.indexOf(t)}})}},{key:"_getFilteredItems",value:function(){return this.items.filter((function(t){return t.isVisible}))}},{key:"_getConcealedItems",value:function(){return this.items.filter((function(t){return!t.isVisible}))}},{key:"_getColumnSize",value:function(t,e){var i;return 0===(i="function"==typeof this.options.columnWidth?this.options.columnWidth(t):this.options.sizer?o.getSize(this.options.sizer).width:this.options.columnWidth?this.options.columnWidth:this.items.length>0?o.getSize(this.items[0].element,!0).width:t)&&(i=t),i+e}},{key:"_getGutterSize",value:function(t){return"function"==typeof this.options.gutterWidth?this.options.gutterWidth(t):this.options.sizer?T(this.options.sizer,"marginLeft"):this.options.gutterWidth}},{key:"_setColumns",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.getSize(this.element).width,e=this._getGutterSize(t),i=this._getColumnSize(t,e),n=(t+e)/i;Math.abs(Math.round(n)-n)<this.options.columnThreshold&&(n=Math.round(n)),this.cols=Math.max(Math.floor(n||0),1),this.containerWidth=t,this.colWidth=i}},{key:"_setContainerSize",value:function(){this.element.style.height=this._getContainerSize()+"px"}},{key:"_getContainerSize",value:function(){return M(this.positions)}},{key:"_getStaggerAmount",value:function(t){return Math.min(t*this.options.staggerAmount,this.options.staggerAmountMax)}},{key:"_dispatch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.isDestroyed||(e.shuffle=this,this.emit(t,e))}},{key:"_resetCols",value:function(){var t=this.cols;for(this.positions=[];t;)t-=1,this.positions.push(0)}},{key:"_layout",value:function(t){var e=this,i=this._getNextPositions(t),n=0;t.forEach((function(t,s){function o(){t.applyCss(E.Css.VISIBLE.after)}if(v.equals(t.point,i[s])&&!t.isHidden)return t.applyCss(E.Css.VISIBLE.before),void o();t.point=i[s],t.scale=E.Scale.VISIBLE,t.isHidden=!1;var r=e.getStylesForTransition(t,E.Css.VISIBLE.before);r.transitionDelay=e._getStaggerAmount(n)+"ms",e._queue.push({item:t,styles:r,callback:o}),n+=1}))}},{key:"_getNextPositions",value:function(t){var e=this;if(this.options.isCentered){var i=t.map((function(t,i){var n=o.getSize(t.element,!0),s=e._getItemPosition(n);return new y(s.x,s.y,n.width,n.height,i)}));return this.getTransformedPositions(i,this.containerWidth)}return t.map((function(t){return e._getItemPosition(o.getSize(t.element,!0))}))}},{key:"_getItemPosition",value:function(t){return function(t){for(var e=t.itemSize,i=t.positions,n=t.gridSize,s=t.total,o=t.threshold,r=t.buffer,l=A(e.width,n,s,o),a=F(i,l,s),u=x(a,r),h=new v(n*u,a[u]),f=a[u]+e.height,c=0;c<l;c++)i[u+c]=f;return h}({itemSize:t,positions:this.positions,gridSize:this.colWidth,total:this.cols,threshold:this.options.columnThreshold,buffer:this.options.buffer})}},{key:"getTransformedPositions",value:function(t,e){return O(t,e)}},{key:"_shrink",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getConcealedItems(),i=0;e.forEach((function(e){function n(){e.applyCss(E.Css.HIDDEN.after)}if(e.isHidden)return e.applyCss(E.Css.HIDDEN.before),void n();e.scale=E.Scale.HIDDEN,e.isHidden=!0;var s=t.getStylesForTransition(e,E.Css.HIDDEN.before);s.transitionDelay=t._getStaggerAmount(i)+"ms",t._queue.push({item:e,styles:s,callback:n}),i+=1}))}},{key:"_handleResize",value:function(){this.isEnabled&&!this.isDestroyed&&this.update()}},{key:"getStylesForTransition",value:function(t,e){var i=Object.assign({},e);if(this.options.useTransforms){var n=this.options.isRTL?"-":"",s=this.options.roundTransforms?Math.round(t.point.x):t.point.x,o=this.options.roundTransforms?Math.round(t.point.y):t.point.y;i.transform="translate(".concat(n).concat(s,"px, ").concat(o,"px) scale(").concat(t.scale,")")}else this.options.isRTL?i.right=t.point.x+"px":i.left=t.point.x+"px",i.top=t.point.y+"px";return i}},{key:"_whenTransitionDone",value:function(t,e,i){var n=z(t,(function(t){e(),i(null,t)}));this._transitions.push(n)}},{key:"_getTransitionFunction",value:function(t){var e=this;return function(i){t.item.applyCss(t.styles),e._whenTransitionDone(t.item.element,t.callback,i)}}},{key:"_processQueue",value:function(){this.isTransitioning&&this._cancelMovement();var t=this.options.speed>0,e=this._queue.length>0;e&&t&&this.isInitialized?this._startTransitions(this._queue):e?(this._styleImmediately(this._queue),this._dispatch(o.EventType.LAYOUT)):this._dispatch(o.EventType.LAYOUT),this._queue.length=0}},{key:"_startTransitions",value:function(t){var e=this;this.isTransitioning=!0,function(t,e,i){i||("function"==typeof e?(i=e,e=null):i=p);var n=t&&t.length;if(!n)return i(null,[]);var s=!1,o=new Array(n);function r(t){return function(e,r){if(!s){if(e)return i(e,o),void(s=!0);o[t]=r,--n||i(null,o)}}}t.forEach(e?function(t,i){t.call(e,r(i))}:function(t,e){t(r(e))})}(t.map((function(t){return e._getTransitionFunction(t)})),this._movementFinished.bind(this))}},{key:"_cancelMovement",value:function(){this._transitions.forEach(D),this._transitions.length=0,this.isTransitioning=!1}},{key:"_styleImmediately",value:function(t){if(t.length){var e=t.map((function(t){return t.item.element}));o._skipTransitions(e,(function(){t.forEach((function(t){t.item.applyCss(t.styles),t.callback()}))}))}}},{key:"_movementFinished",value:function(){this._transitions.length=0,this.isTransitioning=!1,this._dispatch(o.EventType.LAYOUT)}},{key:"filter",value:function(t,e){this.isEnabled&&((!t||t&&0===t.length)&&(t=o.ALL_ITEMS),this._filter(t),this._shrink(),this._updateItemCount(),this.sort(e))}},{key:"sort",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lastSort;if(this.isEnabled){this._resetCols();var e=k(this._getFilteredItems(),t);this._layout(e),this._processQueue(),this._setContainerSize(),this.lastSort=t}}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isEnabled&&(t||this._setColumns(),this.sort())}},{key:"layout",value:function(){this.update(!0)}},{key:"add",value:function(t){var e=this,i=R(t).map((function(t){return new E(t,e.options.isRTL)}));this._initItems(i),this._resetCols();var n=k(this._mergeNewItems(i),this.lastSort),s=this._filter(this.lastFilter,n),o=function(t){return i.includes(t)},r=function(t){t.scale=E.Scale.HIDDEN,t.isHidden=!0,t.applyCss(E.Css.HIDDEN.before),t.applyCss(E.Css.HIDDEN.after)},l=this._getNextPositions(s.visible);s.visible.forEach((function(t,i){o(t)&&(t.point=l[i],r(t),t.applyCss(e.getStylesForTransition(t,{})))})),s.hidden.forEach((function(t){o(t)&&r(t)})),this.element.offsetWidth,this.setItemTransitions(i),this.items=this._mergeNewItems(i),this.filter(this.lastFilter)}},{key:"disable",value:function(){this.isEnabled=!1}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isEnabled=!0,t&&this.update()}},{key:"remove",value:function(t){var e=this;if(t.length){var i=R(t),n=i.map((function(t){return e.getItemByElement(t)})).filter((function(t){return!!t}));this._toggleFilterClasses({visible:[],hidden:n}),this._shrink(n),this.sort(),this.items=this.items.filter((function(t){return!n.includes(t)})),this._updateItemCount(),this.once(o.EventType.LAYOUT,(function(){e._disposeItems(n),i.forEach((function(t){t.parentNode.removeChild(t)})),e._dispatch(o.EventType.REMOVED,{collection:i})}))}}},{key:"getItemByElement",value:function(t){return this.items.find((function(e){return e.element===t}))}},{key:"resetItems",value:function(){var t=this;this._disposeItems(this.items),this.isInitialized=!1,this.items=this._getItems(),this._initItems(this.items),this.once(o.EventType.LAYOUT,(function(){t.setItemTransitions(t.items),t.isInitialized=!0})),this.filter(this.lastFilter)}},{key:"destroy",value:function(){this._cancelMovement(),window.removeEventListener("resize",this._onResize),this.element.classList.remove("shuffle"),this.element.removeAttribute("style"),this._disposeItems(this.items),this.items.length=0,this._transitions.length=0,this.options.sizer=null,this.element=null,this.isDestroyed=!0,this.isEnabled=!1}}],[{key:"getSize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=window.getComputedStyle(t,null),n=T(t,"width",i),s=T(t,"height",i);if(e){var o=T(t,"marginLeft",i),r=T(t,"marginRight",i),l=T(t,"marginTop",i),a=T(t,"marginBottom",i);n+=o+r,s+=l+a}return{width:n,height:s}}},{key:"_skipTransitions",value:function(t,e){var i=t.map((function(t){var e=t.style,i=e.transitionDuration,n=e.transitionDelay;return e.transitionDuration="0ms",e.transitionDelay="0ms",{duration:i,delay:n}}));e(),t[0].offsetWidth,t.forEach((function(t,e){t.style.transitionDuration=i[e].duration,t.style.transitionDelay=i[e].delay}))}}]),o}(a);return B.ShuffleItem=E,B.ALL_ITEMS="all",B.FILTER_ATTRIBUTE_KEY="groups",B.EventType={LAYOUT:"shuffle:layout",REMOVED:"shuffle:removed"},B.Classes=g,B.FilterMode={ANY:"any",ALL:"all"},B.options={group:B.ALL_ITEMS,speed:250,easing:"cubic-bezier(0.4, 0.0, 0.2, 1)",itemSelector:"*",sizer:null,gutterWidth:0,columnWidth:0,delimiter:null,buffer:0,columnThreshold:.01,initialSort:null,throttle:d,throttleTime:300,staggerAmount:15,staggerAmountMax:150,useTransforms:!0,filterMode:B.FilterMode.ANY,isCentered:!1,isRTL:!1,roundTransforms:!0},B.Point=v,B.Rect=y,B.__sorter=k,B.__getColumnSpan=A,B.__getAvailablePositions=F,B.__getShortColumn=x,B.__getCenteredPositions=O,B}))
;/*! This file is auto-generated */
/*!
 * imagesLoaded PACKAGED v5.0.0
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),
/*!
 * imagesLoaded v5.0.0
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}))
;!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AOS=t():e.AOS=t()}(this,function(){return function(e){function t(n){if(o[n])return o[n].exports;var i=o[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var o={};return t.m=e,t.c=o,t.p="dist/",t(0)}([function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},a=o(1),r=(n(a),o(5)),c=n(r),u=o(6),s=n(u),d=o(7),f=n(d),l=o(8),m=n(l),p=o(9),b=n(p),v=o(10),g=n(v),y=o(13),w=n(y),h=[],k=!1,x=document.all&&!window.atob,j={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded"},O=function(){var e=arguments.length<=0||void 0===arguments[0]?!1:arguments[0];return e&&(k=!0),k?(h=(0,g["default"])(h,j),(0,b["default"])(h,j.once),h):void 0},_=function(){h=(0,w["default"])(),O()},z=function(){h.forEach(function(e,t){e.node.removeAttribute("data-aos"),e.node.removeAttribute("data-aos-easing"),e.node.removeAttribute("data-aos-duration"),e.node.removeAttribute("data-aos-delay")})},A=function(e){return e===!0||"mobile"===e&&m["default"].mobile()||"phone"===e&&m["default"].phone()||"tablet"===e&&m["default"].tablet()||"function"==typeof e&&e()===!0},E=function(e){return j=i(j,e),h=(0,w["default"])(),A(j.disable)||x?z():(document.querySelector("body").setAttribute("data-aos-easing",j.easing),document.querySelector("body").setAttribute("data-aos-duration",j.duration),document.querySelector("body").setAttribute("data-aos-delay",j.delay),"DOMContentLoaded"===j.startEvent&&["complete","interactive"].indexOf(document.readyState)>-1?O(!0):"load"===j.startEvent?window.addEventListener(j.startEvent,function(){O(!0)}):document.addEventListener(j.startEvent,function(){O(!0)}),window.addEventListener("resize",(0,s["default"])(O,50,!0)),window.addEventListener("orientationchange",(0,s["default"])(O,50,!0)),window.addEventListener("scroll",(0,c["default"])(function(){(0,b["default"])(h,j.once)},99)),document.addEventListener("DOMNodeRemoved",function(e){var t=e.target;t&&1===t.nodeType&&t.hasAttribute&&t.hasAttribute("data-aos")&&(0,s["default"])(_,50,!0)}),(0,f["default"])("[data-aos]",_),h)};e.exports={init:E,refresh:O,refreshHard:_}},function(e,t){},,,,function(e,t,o){"use strict";function n(e,t,o){var n=!0,a=!0;if("function"!=typeof e)throw new TypeError(c);return i(o)&&(n="leading"in o?!!o.leading:n,a="trailing"in o?!!o.trailing:a),r(e,t,{leading:n,maxWait:t,trailing:a})}function i(e){var t="undefined"==typeof e?"undefined":a(e);return!!e&&("object"==t||"function"==t)}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},r=o(6),c="Expected a function";e.exports=n},function(e,t){"use strict";function o(e,t,o){function n(t){var o=b,n=v;return b=v=void 0,O=t,y=e.apply(n,o)}function a(e){return O=e,w=setTimeout(d,t),_?n(e):y}function r(e){var o=e-h,n=e-O,i=t-o;return z?x(i,g-n):i}function u(e){var o=e-h,n=e-O;return!h||o>=t||0>o||z&&n>=g}function d(){var e=j();return u(e)?f(e):void(w=setTimeout(d,r(e)))}function f(e){return clearTimeout(w),w=void 0,A&&b?n(e):(b=v=void 0,y)}function l(){void 0!==w&&clearTimeout(w),h=O=0,b=v=w=void 0}function m(){return void 0===w?y:f(j())}function p(){var e=j(),o=u(e);if(b=arguments,v=this,h=e,o){if(void 0===w)return a(h);if(z)return clearTimeout(w),w=setTimeout(d,t),n(h)}return void 0===w&&(w=setTimeout(d,t)),y}var b,v,g,y,w,h=0,O=0,_=!1,z=!1,A=!0;if("function"!=typeof e)throw new TypeError(s);return t=c(t)||0,i(o)&&(_=!!o.leading,z="maxWait"in o,g=z?k(c(o.maxWait)||0,t):g,A="trailing"in o?!!o.trailing:A),p.cancel=l,p.flush=m,p}function n(e){var t=i(e)?h.call(e):"";return t==f||t==l}function i(e){var t="undefined"==typeof e?"undefined":u(e);return!!e&&("object"==t||"function"==t)}function a(e){return!!e&&"object"==("undefined"==typeof e?"undefined":u(e))}function r(e){return"symbol"==("undefined"==typeof e?"undefined":u(e))||a(e)&&h.call(e)==m}function c(e){if("number"==typeof e)return e;if(r(e))return d;if(i(e)){var t=n(e.valueOf)?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(p,"");var o=v.test(e);return o||g.test(e)?y(e.slice(2),o?2:8):b.test(e)?d:+e}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},s="Expected a function",d=NaN,f="[object Function]",l="[object GeneratorFunction]",m="[object Symbol]",p=/^\s+|\s+$/g,b=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,g=/^0o[0-7]+$/i,y=parseInt,w=Object.prototype,h=w.toString,k=Math.max,x=Math.min,j=Date.now;e.exports=o},function(e,t){"use strict";function o(e,t){r.push({selector:e,fn:t}),!c&&a&&(c=new a(n),c.observe(i.documentElement,{childList:!0,subtree:!0,removedNodes:!0})),n()}function n(){for(var e,t,o=0,n=r.length;n>o;o++){e=r[o],t=i.querySelectorAll(e.selector);for(var a,c=0,u=t.length;u>c;c++)a=t[c],a.ready||(a.ready=!0,e.fn.call(a,a))}}Object.defineProperty(t,"__esModule",{value:!0});var i=window.document,a=window.MutationObserver||window.WebKitMutationObserver,r=[],c=void 0;t["default"]=o},function(e,t){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),i=function(){function e(){o(this,e)}return n(e,[{key:"phone",value:function(){var e=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e}},{key:"mobile",value:function(){var e=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),e}();t["default"]=new i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t,o){var n=e.node.getAttribute("data-aos-once");t>e.position?e.node.classList.add("aos-animate"):"undefined"!=typeof n&&("false"===n||!o&&"true"!==n)&&e.node.classList.remove("aos-animate")},n=function(e,t){var n=window.pageYOffset,i=window.innerHeight;e.forEach(function(e,a){o(e,i+n,t)})};t["default"]=n},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=o(11),a=n(i),r=function(e,t){return e.forEach(function(e,o){e.node.classList.add("aos-init"),e.position=(0,a["default"])(e.node,t.offset)}),e};t["default"]=r},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=o(12),a=n(i),r=function(e,t){var o=0,n=0,i=window.innerHeight,r={offset:e.getAttribute("data-aos-offset"),anchor:e.getAttribute("data-aos-anchor"),anchorPlacement:e.getAttribute("data-aos-anchor-placement")};switch(r.offset&&!isNaN(r.offset)&&(n=parseInt(r.offset)),r.anchor&&document.querySelectorAll(r.anchor)&&(e=document.querySelectorAll(r.anchor)[0]),o=(0,a["default"])(e).top,r.anchorPlacement){case"top-bottom":break;case"center-bottom":o+=e.offsetHeight/2;break;case"bottom-bottom":o+=e.offsetHeight;break;case"top-center":o+=i/2;break;case"bottom-center":o+=i/2+e.offsetHeight;break;case"center-center":o+=i/2+e.offsetHeight/2;break;case"top-top":o+=i;break;case"bottom-top":o+=e.offsetHeight+i;break;case"center-top":o+=e.offsetHeight/2+i}return r.anchorPlacement||r.offset||isNaN(t)||(n=t),o+n};t["default"]=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){for(var t=0,o=0;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t+=e.offsetLeft-("BODY"!=e.tagName?e.scrollLeft:0),o+=e.offsetTop-("BODY"!=e.tagName?e.scrollTop:0),e=e.offsetParent;return{top:o,left:t}};t["default"]=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){e=e||document.querySelectorAll("[data-aos]");var t=[];return[].forEach.call(e,function(e,o){t.push({node:e})}),t};t["default"]=o}])})
;var madara={"ajaxurl":"https:\/\/4novel.com\/wp-admin\/admin-ajax.php","query_vars":{"page":0,"pagename":"novels","error":"","m":"","p":0,"post_parent":"","subpost":"","subpost_id":"","attachment":"","attachment_id":0,"name":"novels","page_id":0,"second":"","minute":"","hour":"","day":0,"monthnum":0,"year":0,"w":0,"category_name":"","tag":"","cat":"","tag_id":"","author":"","author_name":"","feed":"","tb":"","paged":0,"meta_key":"","meta_value":"","preview":"","s":"","sentence":"","title":"","fields":"","menu_order":"","embed":"","category__in":[],"category__not_in":[],"category__and":[],"post__in":[],"post__not_in":[],"post_name__in":[],"tag__in":[],"tag__not_in":[],"tag__and":[],"tag_slug__in":[],"tag_slug__and":[],"post_parent__in":[],"post_parent__not_in":[],"author__in":[],"author__not_in":[],"search_columns":[],"ignore_sticky_posts":!1,"suppress_filters":!1,"cache_results":!0,"update_post_term_cache":!0,"update_menu_item_cache":!1,"lazy_load_term_meta":!0,"update_post_meta_cache":!0,"post_type":"","posts_per_page":12,"nopaging":!1,"comments_per_page":"50","no_found_rows":!1,"order":"DESC"},"current_url":"https:\/\/4novel.com\/novels"}
;(function($){"use strict";jQuery(window).on('load',function(e){jQuery("#pageloader").fadeOut(500);if(jQuery('body').hasClass('adult-content')){var cookie_adult=window.wpmanga.getCookie('wpmanga-adault');if(cookie_adult!=1){jQuery('#adult_modal').modal({backdrop:'static',keyboard:!1})}else{jQuery('body').removeClass('censored')}}
if(typeof lightbox!=='undefined'){lightbox.option({'resizeDuration':200,'fitImagesInViewport':!0})}
if(!$('body').hasClass('reading-manga')){var $schema_cookie=window.wpmanga.getCookie('wpmanga-body-contrast');if($schema_cookie!=''){if($schema_cookie=='light'){$('body').addClass('text-ui-light');$('body').removeClass('text-ui-dark')}else{$('body').removeClass('text-ui-light');$('body').addClass('text-ui-dark')}}}});jQuery("body").removeClass("preload");jQuery(document).ready(function(){jQuery('ul.c-user_menu > li').each(function(i,e){jQuery(this).clone().appendTo('.mobile-menu ul.navbar-nav')});$('#darklight_toggle input').on('change',function(){$('body').toggleClass('text-ui-dark').toggleClass('text-ui-light');window.wpmanga.setCookie('wpmanga-body-contrast',$('body').hasClass('text-ui-light')?'light':'dark',30)});if(jQuery('body').hasClass('manga-reading-paged-style')){$(document).on("click",".page-prev-link",function(){var prev_page_button=$('.main-col-inner .c-blog-post .wp-manga-nav .nav-links a.prev_page');if(typeof prev_page_button!=='undefined'&&prev_page_button.length>0&&prev_page_button.is(":visible")){$(prev_page_button[0]).trigger('click')}});$(document).on("click",".page-next-link",function(){var next_page_button=$('.main-col-inner .c-blog-post .wp-manga-nav .nav-links a.next_page');if(typeof next_page_button!=='undefined'&&next_page_button.length>0&&next_page_button.is(":visible")){$(next_page_button[0]).trigger('click')}});jQuery(window).on('mousemove',function(e){var prev_page_button=$('.main-col-inner .c-blog-post .wp-manga-nav .nav-links a.prev_page');var next_page_button=$('.main-col-inner .c-blog-post .wp-manga-nav .nav-links a.next_page');var halfScreen=$(this).width()/2;var originURL=jQuery('.reading-content-wrap').attr('data-site-url');var cursorImage=e.pageX<halfScreen?madara.cursorPrev:madara.cursorNext;if(e.pageX<halfScreen){if(typeof prev_page_button!=='undefined'&&prev_page_button.length>0&&prev_page_button.is(":visible")){$('body.reading-manga .reading-content .page-prev-link').css({"cursor":"url("+cursorImage+"), auto"})}else{$('body.reading-manga .reading-content .page-prev-link').css({"cursor":"initial !important;"})}}else{if(typeof next_page_button!=='undefined'&&next_page_button.length>0&&next_page_button.is(":visible")){$('body.reading-manga .reading-content .page-next-link').css({"cursor":"url("+cursorImage+"), auto"})}else{$('body.reading-manga .reading-content .page-next-link').css({"cursor":"initial"})}}})}
$('.section_adult a').on('click',function(e){e.preventDefault();if(!$(this).hasClass('refreshing')){$(this).addClass('refreshing');if($('.section_adult').hasClass('on')){$('.section_adult').removeClass('on').addClass('off');window.wpmanga.removeCookie('wpmanga-adult')}else{$('.section_adult').removeClass('off').addClass('on');window.wpmanga.setCookie('wpmanga-adult',1,7)}
location.reload();$(this).removeClass('refreshing')}
return!1});var siteUrl=jQuery('#adult_modal').attr('data-site-url');$('.btn-not-adult').on('click',function(e){if(siteUrl!==''){window.location=siteUrl}});if(jQuery('body').hasClass('censored')){jQuery('.btn-adult-confirm').on('click',function(e){window.wpmanga.setCookie('wpmanga-adault',1,7);jQuery('body').removeClass('censored')})}
$('li.menu-item-has-children a[href^="#"]').on('touchend click',function(e){var $this=$(this);if($this.parents('.c-sub-header-nav').length){e.preventDefault();$this.parent().toggleClass('active')}else{e.preventDefault()}});jQuery(".off-canvas ul > li.menu-item-has-children").addClass("hiden-sub-canvas");jQuery(".off-canvas ul >li.menu-item-has-children").append('<i class="fa fa-caret-right" aria-hidden="true"></i>');var menu_open=$('.menu_icon__open');var menu_close=$('.menu_icon__close');var menu_slide=$('.off-canvas');var menu_sign_in=$('.mobile-menu .btn-active-modal');menu_open.on('click',function(){menu_open.addClass('active');menu_slide.addClass('active');$('body').addClass('open_canvas')});menu_close.on('click',function(e){e.preventDefault();menu_open.removeClass('active');menu_slide.removeClass('active');$('body').removeClass('open_canvas')});menu_sign_in.on('click',function(e){e.preventDefault();menu_open.removeClass('active');menu_slide.removeClass('active');$('body').removeClass('open_canvas')});$(".off-canvas ul >li.menu-item-has-children > i").on('click',function(){var $this=$(this).parent("li");$this.toggleClass("active").children("ul").slideToggle();return!1});$(document).on(" touchend click",function(e){if(!$(e.target).hasClass('menu_icon__open')&&!$(e.target).closest('.off-canvas').hasClass('active')){menu_slide.removeClass('active');menu_open.removeClass("active");$('body').removeClass('open_canvas')}});var stickyNavigation=$('.c-sub-header-nav').length>0?$('.c-sub-header-nav').offset().top:0;var cloneHeader=$("<div>",{class:"clone-header"})
$(cloneHeader).insertBefore(".c-sub-header-nav");var navigationHeight=$('.c-sub-header-nav').outerHeight(!0);var madara_need_add_sticky=function(){var scrollTop=$(window).scrollTop();if(scrollTop-stickyNavigation>750&&$("body").hasClass("sticky-enabled")){$(cloneHeader).css('height',navigationHeight);$('.c-sub-header-nav').addClass('sticky');$('body').addClass('sticky__active');$('.c-sub-header-nav').fadeIn(300,'linear')}else if(scrollTop-stickyNavigation<=200&&$("body").hasClass("sticky-enabled")){$(cloneHeader).css('height',0);$('.c-sub-header-nav').removeClass('sticky');$('body').removeClass('sticky__active')}}
var stickyNav=function(){if(typeof stickyNav.x=='undefined'){stickyNav.x=window.pageXOffset;stickyNav.y=window.pageYOffset};var diffX=stickyNav.x-window.pageXOffset;var diffY=stickyNav.y-window.pageYOffset;if(diffX<0){}else if(diffX>0){}else if(diffY<0){if($('body').hasClass('sticky-style-2')){$('.c-sub-header-nav').removeClass('sticky');$('body').removeClass('sticky__active');$('.clone-header').css('height',0)}else{madara_need_add_sticky()}}else if(diffY>0){madara_need_add_sticky()}else{}
stickyNav.x=window.pageXOffset;stickyNav.y=window.pageYOffset};if($('body').hasClass('sticky-enabled')){$(window).on('scroll',function(){if($(window).width()>=768||$('body').hasClass('sticky-for-mobile')){stickyNav()}})}
if($(window).width()>=768){$('body').delegate('.page-item-detail .item-thumb.hover-details','mousemove',(function(e){var postID=$(this).attr('data-post-id');var currentPostID;var hoverPostID;currentPostID='manga-item-'+postID;hoverPostID='manga-hover-'+postID;var check_bar=$('body').hasClass('admin-bar');var parentOffset=$(this).offset();var relativeXPosition=(e.pageX);var relativeYPosition=(e.pageY);var _width_infor=$("#hover-infor").width();var infor_left=(relativeXPosition-15)-_width_infor;var infor_right=relativeXPosition+15;var infor_top=check_bar?(relativeYPosition-32):(relativeYPosition);var body_outerW=($(window).outerWidth()/2);$("#hover-infor").addClass('active');$("#hover-infor").show();$(".icon-load-info").css({"position":"absolute","top":infor_top-20,"left":relativeXPosition-20,"display":"inline-block","z-index":"99999","width":"40px","height":"40px",});$("#hover-infor").css({"position":"absolute","top":infor_top,"display":"inline-block","z-index":"99999",});if(relativeXPosition>=body_outerW){$("#hover-infor").css({"left":infor_left,})}else{$("#hover-infor").css({"left":infor_right,})}})).mouseout(function(){$("#hover-infor").removeClass('active');$("#hover-infor").hide()})}else{$('.off-menu ul.navbar-nav > .dropdown > a[href]').click(function(){var dropdown=$(this).next('.dropdown-menu');if(this.href&&this.href!='#'&&this.href!='javascript:void(0)'){location.href=this.href}})}
jQuery('.go-to-top').on('click',function(){jQuery('html, body').animate({scrollTop:0},500)});jQuery(window).on('scroll',function(){if(jQuery(window).scrollTop()>=(window.innerHeight*0.5)){if(!jQuery('.go-to-top').hasClass('active')){jQuery('.go-to-top').addClass('active')}}else{jQuery('.go-to-top').removeClass('active')}
if(jQuery('.wall-ads-control').length){if(window.wallAdsScrollTimeout){clearTimeout(window.wallAdsScrollTimeout)}
window.wallAdsScrollTimeout=setTimeout(function(){var normal_top=jQuery('.wall-ads-control').data('scrolltop')?jQuery('.wall-ads-control').data('scrolltop'):210;var ignore_top=jQuery('.wall-ads-control').data('maxtop')?jQuery('.wall-ads-control').data('maxtop'):510;if(jQuery(window).scrollTop()<normal_top){jQuery('.wall-ads-control').animate({top:ignore_top+'px'})}else{jQuery('.wall-ads-control').animate({top:normal_top+'px'})}},100)}});$('.main-menu-search .open-search-main-menu').on('click',function(){var $this=$(this);if($this.hasClass('search-open')){$this.parents('.c-header__top').find('.search-main-menu').removeClass('active');setTimeout(function(){$this.parents('.c-header__top').find('.search-main-menu').find('input[type="text"]').blur()},200);$this.removeClass('search-open');if($('body').hasClass('mobile')){var $adv_search_link=$('.link-adv-search',$('#blog-post-search'));if($adv_search_link.length>0){$adv_search_link.remove()}}}else{$this.parents('.c-header__top').find('.search-main-menu').addClass('active');setTimeout(function(){$this.parents('.c-header__top').find('.search-main-menu').find('input[type="text"]').focus()},200);$this.addClass('search-open');if($('body').hasClass('mobile')){var $adv_search_link=$('.link-adv-search',$this.closest('.widget-manga-search'));if($adv_search_link.length>0){$('#blog-post-search').append($adv_search_link.clone())}}}});$(".genres_wrap .btn-genres").click(function(){var $this=$(this);var $this_parent;$this.toggleClass("active");$this_parent=$this.parents(".genres_wrap");$this_parent.find(".genres__collapse").slideToggle(300);$this_parent.find(".c-blog__heading.style-3").toggleClass("active")});$(".listing-chapters_wrap ul.main > li.has-child").on('click',function(e){var $this=$(this);$(e.target).toggleClass("active").children("ul").slideToggle(300)});$(".listing-chapters_wrap ul.main > li a.has-child").on('click',function(e){var $this=$(this);$(e.target).next("ul").slideToggle(300);$(e.target).parent().toggleClass("active")});$("#checkall").click(function(){$('table.list-bookmark input:checkbox').not(this).prop('checked',this.checked)});$(".manga-slider .slider__container").each(function(){var $this=$(this);var style=$(this).parents(".manga-slider").attr('data-style');var autoplay=$(this).parents(".manga-slider").attr('data-autoplay');autoplay=autoplay=="1"?!0:!1;var manga_slidesToShow=parseInt($(this).parents(".manga-slider").attr('data-count'));var check_style=$this.parents(".style-3").length;var check_rtl=(jQuery("body").css('direction')==="rtl");var manga_style_1={dots:!0,infinite:!0,speed:500,centerMode:(((manga_slidesToShow%2!==0)&&(!check_style))?!0:!1),slidesToShow:manga_slidesToShow,slidesToScroll:1,arrows:!1,rtl:check_rtl,autoplay:autoplay,responsive:[{breakpoint:992,settings:{slidesToShow:(manga_slidesToShow==1)?1:2,slidesToScroll:1,infinite:!0,centerMode:!1,dots:!0}},{breakpoint:660,settings:{slidesToShow:1,slidesToScroll:1,infinite:!0,variableWidth:!1,dots:!0}},{breakpoint:480,settings:{slidesToShow:1,variableWidth:!1,}}]}
var manga_style_2={dots:!0,infinite:!0,speed:500,slidesToShow:manga_slidesToShow,slidesToScroll:1,arrows:!1,rtl:check_rtl,autoplay:autoplay,responsive:[{breakpoint:992,settings:{slidesToShow:(manga_slidesToShow==1)?1:2,slidesToScroll:1,infinite:!0,dots:!0}},{breakpoint:768,settings:{slidesToShow:1,slidesToScroll:1,infinite:!0,dots:!0}}]}
var manga_style_3={dots:!0,infinite:!0,speed:500,slidesToShow:manga_slidesToShow,slidesToScroll:1,arrows:!1,rtl:check_rtl,autoplay:autoplay,responsive:[{breakpoint:992,settings:{slidesToShow:(manga_slidesToShow==1)?1:2,slidesToScroll:1,infinite:!0,dots:!0}},{breakpoint:768,settings:{slidesToShow:1,slidesToScroll:1,infinite:!0,dots:!0}}]}
switch(style){case 'style-1':$this.slick(manga_style_1);break;case 'style-2':$this.slick(manga_style_2);break;case 'style-3':case 'style-4':$this.slick(manga_style_3);break}});$(".popular-slider .slider__container").each(function(){var manga_slidesToShow=parseInt($(this).parents(".popular-slider").attr('data-count'));var check_rtl=(jQuery("body").css('direction')==="rtl");var autoplay=$(this).parents(".popular-slider").attr('data-autoplay');autoplay=autoplay=="1"?!0:!1;var popular_style_2={dots:!1,infinite:!0,speed:500,slidesToShow:manga_slidesToShow,arrows:!0,rtl:check_rtl,autoplay:autoplay,slidesToScroll:1,responsive:[{breakpoint:1700,settings:{slidesToShow:(manga_slidesToShow==1)?1:4,slidesToScroll:1,}},{breakpoint:1400,settings:{slidesToShow:(manga_slidesToShow==1)?1:3,slidesToScroll:1,}},{breakpoint:992,settings:{slidesToShow:(manga_slidesToShow==1)?1:2,slidesToScroll:1,}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1,}},]}
var popular_style_1={dots:!1,infinite:!0,speed:500,slidesToShow:manga_slidesToShow,arrows:!0,rtl:check_rtl,autoplay:autoplay,slidesToScroll:1,responsive:[{breakpoint:1700,settings:{slidesToShow:manga_slidesToShow,slidesToScroll:1,}},{breakpoint:1200,settings:{slidesToShow:manga_slidesToShow>3?3:manga_slidesToShow,slidesToScroll:1,}},{breakpoint:992,settings:{slidesToShow:manga_slidesToShow>3?3:manga_slidesToShow,slidesToScroll:1,}},{breakpoint:600,settings:{slidesToShow:manga_slidesToShow>3?3:manga_slidesToShow,slidesToScroll:1,}},]}
var popular_style_3=popular_style_1;var $this=$(this);var style=$(this).parents(".popular-slider").attr('data-style');switch(style){case 'style-1':$this.slick(popular_style_1);break;case 'style-2':$this.slick(popular_style_2);break;case 'style-3':$this.slick(popular_style_3);break}});if($('body').has('.summary__content.show-more').length){var text=$('.summary__content.show-more'),btn=$('.content-readmore'),h=text[0].scrollHeight;if(h>120){btn.addClass('less');btn.css('display','inline-block')}else{btn.css('display','none');$('.description-summary').addClass('hide_show-more')}
btn.click(function(e){e.stopPropagation();if(btn.hasClass('less')){btn.removeClass('less');btn.addClass('more');if(typeof single_manga_show_more!=='undefined'){btn.text(single_manga_show_more.show_less)}else{btn.text('Show less  ')}
text.addClass('active');text.animate({'height':h})}else{btn.addClass('less');btn.removeClass('more');text.removeClass('active');if(typeof single_manga_show_more!=='undefined'){btn.text(single_manga_show_more.show_more)}else{btn.text('Show more  ')}
text.animate({'height':'120px'})}})}
$(document).on('wp_manga_after_load_chapters_list',function(){if($('body').has('.listing-chapters_wrap.show-more .version-chap').length){var text_chap=$('.listing-chapters_wrap.show-more .version-chap');var btn_chap=$('.listing-chapters_wrap.show-more .chapter-readmore');var height_parent=text_chap.height();var check_show_btn=function(){if(height_parent>=550){btn_chap.addClass('less-chap');btn_chap.fadeIn(300);$('.listing-chapters_wrap.show-more').addClass('show');text_chap.addClass('active')}else{btn_chap.fadeOut(300);$('.listing-chapters_wrap.show-more').removeClass('show');text_chap.removeClass('active')}}
$(".listing-chapters_wrap.show-more ul.main > li.has-child").on('click',function(e){var $this=$(this);setTimeout(function(){height_parent=$this.parents('.version-chap').height();check_show_btn()},300)});check_show_btn();btn_chap.click(function(e){e.stopPropagation();if(btn_chap.hasClass('less-chap')){btn_chap.removeClass('less-chap');btn_chap.fadeOut(300);text_chap.addClass('loading');$('.listing-chapters_wrap.show-more').removeClass('show');setTimeout(function(){btn_chap.remove();text_chap.animate({'max-height':'100%'});text_chap.removeClass('loading');text_chap.addClass('loaded')},1000)}})}
$('.btn-reverse-order').on('click',function(e){var main_lists=$('.main.version-chap');main_lists.each(function(idx){var listItems=$(this).children('li');$(this).append(listItems.get().reverse())});var sub_lists=$('.sub-chap.list-chap .sub-chap-list');sub_lists.each(function(idx){var listItems=$(this).children('li');$(this).append(listItems.get().reverse())});return!1})});$(document).on('click','.c-sub-header-nav .mobile-icon',function(e){var $this=$(this);if($this.parent().hasClass('active')){$this.parent().removeClass('active')}else{$this.parent().addClass('active')}});var mobile_pagination_btn_attach_click=function(){var pagination_btn=$(".mobile-nav-btn");var select_pagination=$(".select-pagination");pagination_btn.unbind('click');pagination_btn.on('click',function(e){e.preventDefault();if(select_pagination.parent().hasClass('active')){select_pagination.parent().removeClass('active')}else{select_pagination.parent().addClass('active')}})};mobile_pagination_btn_attach_click();$(document).on('wp_manga_on_chapter_navlinks_click',function(){mobile_pagination_btn_attach_click()});$('#btn_view_full_image').on('click',function(e){$('.container').css({'width':'auto','max-width':'initial'});$(this).hide();e.preventDefault();e.stopPropagation()});$('#btn-read-first').on('click',function(e){var the_link;the_link=$('.listing-chapters_wrap .wp-manga-chapter:eq(0) > a');if(the_link.attr('href')!='#'){location.href=the_link.attr('href')}
the_link.trigger('click');return!1});$('#btn-read-last').on('click',function(e){var count=$('.listing-chapters_wrap .wp-manga-chapter').length-1;var the_link;the_link=$('.listing-chapters_wrap .wp-manga-chapter:eq('+count+') > a');if(the_link.attr('href')!='#'){location.href=the_link.attr('href')}
the_link.trigger('click');return!1})});function shortString(){var shorts=document.querySelectorAll('.short');if(shorts){Array.prototype.forEach.call(shorts,function(ele){var str=ele.innerText,indt='...';if(ele.hasAttribute('data-limit')){if(str.length>ele.dataset.limit){var result=str.substring(0,ele.dataset.limit-indt.length).trim()+indt;ele.innerText=result;str=null;result=null}}else{throw Error('Cannot find attribute \'data-limit\'')}})}}})(jQuery)
;(function(){"use strict";var _current_page;var _ajax_loading;var item_template;var data;var content_div;if(typeof __madara_query_vars!=='undefined'){_current_page=(typeof __madara_query_vars.paged!=='undefined'?parseInt(__madara_query_vars.paged):0)}else{_current_page=-1}
if(_current_page==0)_current_page=1;_ajax_loading=!1;jQuery(document).ready(function(){if(jQuery('#navigation-ajax').length>0){jQuery(document).on('click','#navigation-ajax',function(e){e.preventDefault();if(_current_page>-1&&!_ajax_loading){item_template=jQuery(this).attr('data-template');data={action:'madara_load_more',page:_current_page,template:item_template,vars:__madara_query_vars};content_div=jQuery(this).attr('data-target');_ajax_loading=!0;jQuery('#navigation-ajax').addClass('show-loading');jQuery.ajax({type:'POST',url:madara.ajaxurl,cache:!1,data:data,success:function(data,textStatus,XMLHttpRequest){if(data!=''){jQuery(content_div).append(data);_current_page=_current_page+1;if(jQuery('.no-posts',jQuery(content_div)).length>0){jQuery('.navigation-ajax').hide();jQuery('.invi.no-posts').remove()}
jQuery(document).trigger('wp_manga_after_paginated')}else{_current_page=-1;jQuery('.navigation-ajax').hide();jQuery('.invi.no-posts').remove()}
jQuery('#navigation-ajax').removeClass("show-loading");_ajax_loading=!1},error:function(MLHttpRequest,textStatus,errorThrown){alert(errorThrown);_ajax_loading=!1}})}})}})})(jQuery)
;var wpMangaLogin={"admin_ajax":"https:\/\/4novel.com\/wp-admin\/admin-ajax.php","home_url":"https:\/\/4novel.com","nonce":"65a734756b","messages":{"please_enter_username":"Please enter username","please_enter_password":"Please enter password","invalid_username_or_password":"Invalid username or password","server_error":"Server Error!","username_or_email_cannot_be_empty":"Username or Email cannot be empty","please_fill_all_fields":"Please fill in all password fields.","password_cannot_less_than_12":"Password cannot have less than 12 characters","password_doesnot_match":"Password does not match. Please try again.","username_cannot_empty":"Username cannot be empty","email_cannot_empty":"Email cannot be empty","password_cannot_empty":"Password cannot be empty"}}
;function wpMangaSubmitSwitch(){jQuery('.g-recaptcha-response').each(function(){var submitBtn=jQuery(this).parents('form').find('input[type="submit"]');if(jQuery(this).val()!==''){submitBtn.prop('disabled',!1)}else{submitBtn.prop('disabled',!0)}})}
jQuery(document).ready(function($){var loadingScreen='<div class="modal-loading-screen"><div class="fa-5x"><i class="fas fa-spinner fa-spin"></i></div></div>';$('.modal form').each(function(){if($(this).find('.g-recaptcha').length!==0){var submitBtn=$(this).find('input[type="submit"]');if(typeof submitBtn!=='undefined'){submitBtn.prop('disabled',!0)}}});$(document).on('click','form#registerform input[name="wp-submit"]',function(e){e.preventDefault();var user_login=$("#registerform input[name='user_sign-up']").val();var user_pass=$("#registerform input[name='pass_sign-up']").val();var user_email=$("#registerform input[name='email_sign-up']").val();var gRecaptcha=$('#registerform .g-recaptcha-response').val();var modalContent=$(this).parents('.modal-content');if(user_login==''){$('p.message.register').text(wpMangaLogin.messages.username_cannot_empty);return!1}
if(user_email==''){$('p.message.register').text(wpMangaLogin.messages.email_cannot_empty);return!1}
if(user_pass==''){$('p.message.register').text(wpMangaLogin.messages.password_cannot_empty);return!1}
jQuery.ajax({url:wpMangaLogin.admin_ajax,type:'POST',data:{action:'wp_manga_signup',user_login:user_login,user_pass:user_pass,user_email:user_email,'g-recaptcha-response':gRecaptcha,nonce:wpMangaLogin.nonce},beforeSend:function(){modalContent.append(loadingScreen)},success:function(response){if(response.success){$(document).trigger('madara_signup_successful');$('form#registerform').remove();$('p.message.register').html(response.data)}else{$('p.message.register').html(response.data);if($('#loginform .g-recaptcha-response').length>0){grecaptcha.reset()}}},complete:function(){var loading=modalContent.find('.modal-loading-screen');if(typeof loading!=='undefined'){loading.remove()}},});return!1});$(document).on('click','form#loginform input[name="wp-submit"]',function(e){e.preventDefault();if($('body').hasClass('logged-in')){return}
var user_login=$("#loginform input[name='log']").val();var user_pass=$("#loginform input[name='pwd']").val();var rememberme=$("#loginform input[name='rememberme']").val();var isBookmarking=$('input[name="bookmarking"]').val();var loginItems=$('.c-modal_item');var gRecaptcha=$('#loginform .g-recaptcha-response').val();var modalContent=$(this).parents('.modal-content');if(user_login==''){$('p.message.login').text(wpMangaLogin.messages.please_enter_username);return!1}
if(user_pass==''){$('p.message.login').text(wpMangaLogin.messages.please_enter_password);return!1}
jQuery.ajax({url:wpMangaLogin.admin_ajax,type:'POST',data:{action:'wp_manga_signin',login:user_login,pass:user_pass,rememberme:rememberme,"g-recaptcha-response":gRecaptcha,nonce:wpMangaLogin.nonce},beforeSend:function(){modalContent.append(loadingScreen)},success:function(response){if(response.success==!0){$('.modal#form-login').modal('hide');$(document).trigger('manga-login-success');$('body').addClass('logged-in');if(typeof madara_ajax_maybe_buy_content!=='undefined'){madara_ajax_maybe_buy_content.token=response.data.token}
if(loginItems.length!=0){var loginSection=loginItems.html()}
jQuery.ajax({type:'POST',url:wpMangaLogin.admin_ajax,data:{action:'wp-manga-get-user-section'},beforeSend:function(){loginItems.html('<i class="fas fa-spinner fa-spin"></i>')},success:function(response){if(response.success){loginItems.empty();loginItems.append(response.data)}else if(typeof loginSection!=='undefined'){loginItems.html(loginSection)}},});if(isBookmarking==1){$('.wp-manga-action-button').trigger('click')}}else if(typeof response.data!=='undefined'){$('p.message.login').html(response.data);if($('#loginform .g-recaptcha-response').length>0){grecaptcha.reset()}}else{$('p.message.login').text(wpMangaLogin.messages.invalid_username_or_password);if($('#loginform .g-recaptcha-response').length>0){grecaptcha.reset()}}},complete:function(xhr,response){var loading=modalContent.find('.modal-loading-screen');if(typeof loading!=='undefined'){loading.remove()}
if(response=='error'){alert(wpMangaLogin.messages.server_error)}},});return!1});$(document).on('click','form#resetform input[name="wp-submit"]',function(e){e.preventDefault();var user=$('input[name="user_reset"]').val();if(user==''){$('p.message.reset').text(wpMangaLogin.messages.username_or_email_cannot_be_empty);return!1}
var modalContent=$(this).parents('.modal-content');var gRecaptcha=$('#resetform .g-recaptcha-response').val();jQuery.ajax({url:wpMangaLogin.admin_ajax,type:'POST',data:{action:'wp_manga_reset',user:user,nonce:wpMangaLogin.nonce,"g-recaptcha-response":gRecaptcha},beforeSend:function(){modalContent.append(loadingScreen)},success:function(response){if(response.success){$('form#resetform').fadeOut();$('p.message.reset').text(response.data);setInterval(function(){$('form#resetform').fadeIn();$('p.message.reset').text('')},10000)}else{$('p.message.reset').html(response.data);if($('#resetform .g-recaptcha-response').length>0){grecaptcha.reset()}}},complete:function(){var loading=modalContent.find('.modal-loading-screen');if(typeof loading!=='undefined'){loading.remove()}},})});$('#resetpasswordform').on('submit',function(e){e.preventDefault();var self=$(this);var pass_1=self.find('input[name="pass_1"]').val(),pass_2=self.find('input[name="pass_2"]').val(),user=self.find('input[name="user"]').val(),key=self.find('input[name="key"]').val(),message=$('#form-reset-password .message.reset-password');var loadingScreen='<div class="modal-loading-screen"><div class="fa-5x"><i class="fas fa-spinner fa-spin"></i></div></div>';var modalContent=self.parents('.modal-content');if(pass_1==''||pass_2==''){message.text(wpMangaLogin.messages.please_fill_all_fields);return!1}
if(pass_1.length<12){message.text(wpMangaLogin.messages.password_cannot_less_than_12);return!1}
if(pass_1!==pass_2){message.text(wpMangaLogin.messages.password_doesnot_match);return!1}
$.ajax({url:wpMangaLogin.admin_ajax,method:'POST',data:{action:'wp_manga_reset_password',user:user,new_password:window.btoa(pass_1),key:key,nonce:wpMangaLogin.nonce},beforeSend:function(){modalContent.append(loadingScreen)},success:function(response){if(response.success){message.text(response.data.message);self.find('input').remove();setInterval(function(){self.remove()},5000)}},complete:function(){modalContent.find('.modal-loading-screen').remove()}})});$(document).on('click','.to-login',function(e){e.preventDefault();$('.modal').modal('hide');setTimeout(function(){$('#form-login').modal('show')},500)});$(document).on('click','.to-reset',function(e){e.preventDefault();$('.modal').modal('hide');setTimeout(function(){$('#form-reset').modal('show')},500)});$(document).on('click','.backtoblog',function(e){$('.modal').modal('hide')})})
;(function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)})(function(i){"use strict";var e=window.Slick||{};e=function(){function e(e,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(e),appendDots:i(e),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(e),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(e).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,"undefined"!=typeof document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=t++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}var t=0;return e}(),e.prototype.activateADA=function(){var i=this;i.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):o===!0?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&i.options.adaptiveHeight===!0&&i.options.vertical===!1){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),s.options.rtl===!0&&s.options.vertical===!1&&(e=-e),s.transformsEnabled===!1?s.options.vertical===!1?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):s.cssTransitions===!1?(s.options.rtl===!0&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),s.options.vertical===!1?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),s.options.vertical===!1?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this,o=t.getNavTarget();null!==o&&"object"==typeof o&&o.each(function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};e.options.fade===!1?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,e.options.fade===!1?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(i.options.infinite===!1&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1===0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;e.options.arrows===!0&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),e.options.infinite!==!0&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,t,o=this;if(o.options.dots===!0&&o.slideCount>o.options.slidesToShow){for(o.$slider.addClass("slick-dotted"),t=i("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),e.options.centerMode!==!0&&e.options.swipeToSlide!==!0||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.options.draggable===!0&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.options.rows>0){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(r.originalSettings.mobileFirst===!1?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||l===!1||r.$slider.trigger("breakpoint",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is("a")&&e.preventDefault(),l.is("li")||(l=l.closest("li")),n=r.slideCount%r.options.slidesToScroll!==0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,t);break;case"next":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case"index":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(i){var e,t,o=this;if(e=o.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var s in e){if(i<e[s]){i=t;break}t=e[s]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),e.options.accessibility===!0&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),e.options.accessibility===!0&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),e.options.accessibility===!0&&e.$list.off("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>0&&(i=e.$slides.children().children(),i.removeAttr("style"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){var e=this;e.shouldClick===!1&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){i(this).attr("style",i(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",e.options.fade===!1?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;t.cssTransitions===!1?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;e.cssTransitions===!1?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick","*",function(t){var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&o.is(":focus")&&(e.focussed=!0,e.autoPlay())},0)}).on("blur.slick","*",function(t){i(this);e.options.pauseOnFocus&&(e.focussed=!1,e.autoPlay())})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){var i=this;return i.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(i.options.infinite===!0)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(i.options.centerMode===!0)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),n.options.infinite===!0?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,n.options.vertical===!0&&n.options.centerMode===!0&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!==0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),n.options.centerMode===!0&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:n.options.centerMode===!0&&n.options.infinite===!0?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:n.options.centerMode===!0&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=n.options.vertical===!1?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,n.options.variableWidth===!0&&(o=n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow),e=n.options.rtl===!0?o[0]?(n.$slideTrack.width()-o[0].offsetLeft-o.width())*-1:0:o[0]?o[0].offsetLeft*-1:0,n.options.centerMode===!0&&(o=n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=n.options.rtl===!0?o[0]?(n.$slideTrack.width()-o[0].offsetLeft-o.width())*-1:0:o[0]?o[0].offsetLeft*-1:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){var e=this;return e.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(e.options.infinite===!1?i=e.slideCount:(t=e.options.slidesToScroll*-1,o=e.options.slidesToScroll*-1,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o,s,n=this;return s=n.options.centerMode===!0?Math.floor(n.$list.width()/2):0,o=n.swipeLeft*-1+s,n.options.swipeToSlide===!0?(n.$slideTrack.find(".slick-slide").each(function(e,s){var r,l,d;if(r=i(s).outerWidth(),l=s.offsetLeft,n.options.centerMode!==!0&&(l+=r/2),d=l+r,o<d)return t=s,!1}),e=Math.abs(i(t).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){var t=this;t.changeSlide({data:{message:"index",index:parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),t.options.accessibility===!0&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){var s=o.indexOf(t);if(i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),s!==-1){var n="slick-slide-control"+e.instanceUid+s;i("#"+n).length&&i(this).attr({"aria-describedby":n})}}),e.$dots.attr("role","tablist").find("li").each(function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.options.focusOnChange?e.$slides.eq(s).attr({tabindex:"0"}):e.$slides.eq(s).removeAttr("tabindex");e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),i.options.accessibility===!0&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),e.options.accessibility===!0&&e.$dots.on("keydown.slick",e.keyHandler)),e.options.dots===!0&&e.options.pauseOnDotsHover===!0&&e.slideCount>e.options.slidesToShow&&i("li",e.$dots).on("mouseenter.slick",i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),e.options.accessibility===!0&&e.$list.on("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),i.options.dots===!0&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&e.options.accessibility===!0?e.changeSlide({data:{message:e.options.rtl===!0?"next":"previous"}}):39===i.keyCode&&e.options.accessibility===!0&&e.changeSlide({data:{message:e.options.rtl===!0?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){i("img[data-lazy]",e).each(function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),s=i(this).attr("data-sizes")||r.$slider.attr("data-sizes"),n=document.createElement("img");n.onload=function(){e.animate({opacity:0},100,function(){o&&(e.attr("srcset",o),s&&e.attr("sizes",s)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),r.$slider.trigger("lazyLoaded",[r,e,t])})},n.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,e,t])},n.src=t})}var t,o,s,n,r=this;if(r.options.centerMode===!0?r.options.infinite===!0?(s=r.currentSlide+(r.options.slidesToShow/2+1),n=s+r.options.slidesToShow+2):(s=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),n=2+(r.options.slidesToShow/2+1)+r.currentSlide):(s=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,n=Math.ceil(s+r.options.slidesToShow),r.options.fade===!0&&(s>0&&s--,n<=r.slideCount&&n++)),t=r.$slider.find(".slick-slide").slice(s,n),"anticipated"===r.options.lazyLoad)for(var l=s-1,d=n,a=r.$slider.find(".slick-slide"),c=0;c<r.options.slidesToScroll;c++)l<0&&(l=r.slideCount-1),t=t.add(a.eq(l)),t=t.add(a.eq(d)),l--,d++;e(t),r.slideCount<=r.options.slidesToShow?(o=r.$slider.find(".slick-slide"),e(o)):r.currentSlide>=r.slideCount-r.options.slidesToShow?(o=r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow),e(o)):0===r.currentSlide&&(o=r.$slider.find(".slick-cloned").slice(r.options.slidesToShow*-1),e(o))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){var i=this;i.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;if(!t.unslicked&&(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),t.options.accessibility===!0&&(t.initADA(),t.options.focusOnChange))){var o=i(t.$slides.get(t.currentSlide));o.attr("tabindex",0).focus()}},e.prototype.prev=e.prototype.slickPrev=function(){var i=this;i.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),r=document.createElement("img"),r.onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),l.options.adaptiveHeight===!0&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||"window";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),e.options.focusOnSelect===!0&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;return"boolean"==typeof i?(e=i,i=e===!0?0:o.slideCount-1):i=e===!0?--i:i,!(o.slideCount<1||i<0||i>o.slideCount-1)&&(o.unload(),t===!0?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,void o.reinit())},e.prototype.setCSS=function(i){var e,t,o=this,s={};o.options.rtl===!0&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,o.transformsEnabled===!1?o.$slideTrack.css(s):(s={},o.cssTransitions===!1?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;i.options.vertical===!1?i.options.centerMode===!0&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),i.options.centerMode===!0&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),i.options.vertical===!1&&i.options.variableWidth===!1?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):i.options.variableWidth===!0?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();i.options.variableWidth===!1&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,t.options.rtl===!0?i(s).css({position:"relative",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&i.options.adaptiveHeight===!0&&i.options.vertical===!1){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":"undefined"!=typeof arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,function(i,e){r.options[i]=e});else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),i.options.fade===!1?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=i.options.vertical===!0?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||i.options.useCSS===!0&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&i.animType!==!1&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&i.animType!==!1},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),n.options.centerMode===!0){var r=n.options.slidesToShow%2===0?1:0;e=Math.floor(n.options.slidesToShow/2),n.options.infinite===!0&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=n.options.infinite===!0?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(s.options.fade===!0&&(s.options.centerMode=!1),s.options.infinite===!0&&s.options.fade===!1&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=s.options.centerMode===!0?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));return s||(s=0),t.slideCount<=t.options.slidesToShow?void t.slideHandler(s,!1,!0):void t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(a.animating===!0&&a.options.waitForAnimate===!0||a.options.fade===!0&&a.currentSlide===i))return e===!1&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,a.options.infinite===!1&&a.options.centerMode===!1&&(i<0||i>a.getDotCount()*a.options.slidesToScroll)?void(a.options.fade===!1&&(o=a.currentSlide,t!==!0&&a.slideCount>a.options.slidesToShow?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o))):a.options.infinite===!1&&a.options.centerMode===!0&&(i<0||i>a.slideCount-a.options.slidesToScroll)?void(a.options.fade===!1&&(o=a.currentSlide,t!==!0&&a.slideCount>a.options.slidesToShow?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o))):(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!==0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!==0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=a.getNavTarget(),l=l.slick("getSlick"),l.slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide)),a.updateDots(),a.updateArrows(),a.options.fade===!0?(t!==!0?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight()):void(t!==!0&&a.slideCount>a.options.slidesToShow?a.animateSlide(d,function(){a.postSlide(s)}):a.postSlide(s)))},e.prototype.startLoad=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),i.options.dots===!0&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),o=Math.round(180*t/Math.PI),o<0&&(o=360-Math.abs(o)),o<=45&&o>=0?s.options.rtl===!1?"left":"right":o<=360&&o>=315?s.options.rtl===!1?"left":"right":o>=135&&o<=225?s.options.rtl===!1?"right":"left":s.options.verticalSwiping===!0?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(o.touchObject.edgeHit===!0&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(e.options.swipe===!1||"ontouchend"in document&&e.options.swipe===!1||e.options.draggable===!1&&i.type.indexOf("mouse")!==-1))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,e.options.verticalSwiping===!0&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(l.options.verticalSwiping===!0&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(l.options.rtl===!1?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),l.options.verticalSwiping===!0&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,l.options.infinite===!1&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),l.options.vertical===!1?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,l.options.verticalSwiping===!0&&(l.swipeLeft=e+o*s),l.options.fade!==!0&&l.options.touchMove!==!1&&(l.animating===!0?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;return t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow?(t.touchObject={},!1):(void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,void(t.dragging=!0))},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i,e=this;i=Math.floor(e.options.slidesToShow/2),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&e.options.centerMode===!1?(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-1&&e.options.centerMode===!0&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||"undefined"==typeof s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),"undefined"!=typeof t)return t;return o}})
;/*! jQuery UI - v1.13.3 - 2024-04-26
* https://jqueryui.com
* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use strict";var t,e,i,n,W,C,o,s,r,l,a,h,u;function E(t,e,i){return[parseFloat(t[0])*(a.test(t[0])?e/100:1),parseFloat(t[1])*(a.test(t[1])?i/100:1)]}function L(t,e){return parseInt(x.css(t,e),10)||0}function N(t){return null!=t&&t===t.window}x.ui=x.ui||{},x.ui.version="1.13.3",
/*!
 * jQuery UI :data 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.extend(x.expr.pseudos,{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}):function(t,e,i){return!!x.data(t,i[3])}}),
/*!
 * jQuery UI Disable Selection 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}),
/*!
 * jQuery UI Focusable 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.ui.focusable=function(t,e){var i,n,o,s=t.nodeName.toLowerCase();return"area"===s?(o=(i=t.parentNode).name,!(!t.href||!o||"map"!==i.nodeName.toLowerCase())&&0<(i=x("img[usemap='#"+o+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(n=!t.disabled)&&(o=x(t).closest("fieldset")[0])&&(n=!o.disabled):n="a"===s&&t.href||e,n&&x(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"visible"===e}(x(t)))},x.extend(x.expr.pseudos,{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}}),x.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):x(this[0].form)},
/*!
 * jQuery UI Form Reset Mixin 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),
/*!
 * jQuery UI Support for jQuery core 1.8.x and newer 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 *
 */
x.expr.pseudos||(x.expr.pseudos=x.expr[":"]),x.uniqueSort||(x.uniqueSort=x.unique),x.escapeSelector||(e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,i=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},x.escapeSelector=function(t){return(t+"").replace(e,i)}),x.fn.even&&x.fn.odd||x.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}),
/*!
 * jQuery UI Keycode 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},
/*!
 * jQuery UI Labels 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+x.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},x.ui.plugin={add:function(t,e,i){var n,o=x.ui[t].prototype;for(n in i)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o<s.length;o++)t.options[s[o][0]]&&s[o][1].apply(t.element,i)}},
/*!
 * jQuery UI Position 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 *
 * https://api.jqueryui.com/position/
 */
W=Math.max,C=Math.abs,o=/left|center|right/,s=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,a=/%$/,h=x.fn.position,x.position={scrollbarWidth:function(){var t,e,i;return void 0!==n?n:(i=(e=x("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>")).children()[0],x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?x.position.scrollbarWidth():0,height:e?x.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=x(t||window),i=N(e[0]),n=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:n,offset:!i&&!n?x(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},x.fn.position=function(f){var c,d,p,g,m,v,y,w,b,_,t,e;return f&&f.of?(v="string"==typeof(f=x.extend({},f)).of?x(document).find(f.of):x(f.of),y=x.position.getWithinInfo(f.within),w=x.position.getScrollInfo(y),b=(f.collision||"flip").split(" "),_={},e=9===(e=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:N(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()},v[0].preventDefault&&(f.at="left top"),d=e.width,p=e.height,m=x.extend({},g=e.offset),x.each(["my","at"],function(){var t,e,i=(f[this]||"").split(" ");(i=1===i.length?o.test(i[0])?i.concat(["center"]):s.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=o.test(i[0])?i[0]:"center",i[1]=s.test(i[1])?i[1]:"center",t=r.exec(i[0]),e=r.exec(i[1]),_[this]=[t?t[0]:0,e?e[0]:0],f[this]=[l.exec(i[0])[0],l.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===f.at[0]?m.left+=d:"center"===f.at[0]&&(m.left+=d/2),"bottom"===f.at[1]?m.top+=p:"center"===f.at[1]&&(m.top+=p/2),c=E(_.at,d,p),m.left+=c[0],m.top+=c[1],this.each(function(){var i,t,r=x(this),l=r.outerWidth(),a=r.outerHeight(),e=L(this,"marginLeft"),n=L(this,"marginTop"),o=l+e+L(this,"marginRight")+w.width,s=a+n+L(this,"marginBottom")+w.height,h=x.extend({},m),u=E(_.my,r.outerWidth(),r.outerHeight());"right"===f.my[0]?h.left-=l:"center"===f.my[0]&&(h.left-=l/2),"bottom"===f.my[1]?h.top-=a:"center"===f.my[1]&&(h.top-=a/2),h.left+=u[0],h.top+=u[1],i={marginLeft:e,marginTop:n},x.each(["left","top"],function(t,e){x.ui.position[b[t]]&&x.ui.position[b[t]][e](h,{targetWidth:d,targetHeight:p,elemWidth:l,elemHeight:a,collisionPosition:i,collisionWidth:o,collisionHeight:s,offset:[c[0]+u[0],c[1]+u[1]],my:f.my,at:f.at,within:y,elem:r})}),f.using&&(t=function(t){var e=g.left-h.left,i=e+d-l,n=g.top-h.top,o=n+p-a,s={target:{element:v,left:g.left,top:g.top,width:d,height:p},element:{element:r,left:h.left,top:h.top,width:l,height:a},horizontal:i<0?"left":0<e?"right":"center",vertical:o<0?"top":0<n?"bottom":"middle"};d<l&&C(e+i)<d&&(s.horizontal="center"),p<a&&C(n+o)<p&&(s.vertical="middle"),W(C(e),C(i))>W(C(n),C(o))?s.important="horizontal":s.important="vertical",f.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})):h.apply(this,arguments)},x.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,s=t.left-e.collisionPosition.marginLeft,r=o-s,l=s+e.collisionWidth-n-o;e.collisionWidth>n?0<r&&l<=0?(i=t.left+r+e.collisionWidth-n-o,t.left+=r-i):t.left=!(0<l&&r<=0)&&l<r?o+n-e.collisionWidth:o:0<r?t.left+=r:0<l?t.left-=l:t.left=W(t.left-s,t.left)},top:function(t,e){var i,n=e.within,n=n.isWindow?n.scrollTop:n.offset.top,o=e.within.height,s=t.top-e.collisionPosition.marginTop,r=n-s,l=s+e.collisionHeight-o-n;e.collisionHeight>o?0<r&&l<=0?(i=t.top+r+e.collisionHeight-o-n,t.top+=r-i):t.top=!(0<l&&r<=0)&&l<r?n+o-e.collisionHeight:n:0<r?t.top+=r:0<l?t.top-=l:t.top=W(t.top-s,t.top)}},flip:{left:function(t,e){var i=e.within,n=i.offset.left+i.scrollLeft,o=i.width,i=i.isWindow?i.scrollLeft:i.offset.left,s=t.left-e.collisionPosition.marginLeft,r=s-i,s=s+e.collisionWidth-o-i,l="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,a="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,h=-2*e.offset[0];r<0?((o=t.left+l+a+h+e.collisionWidth-o-n)<0||o<C(r))&&(t.left+=l+a+h):0<s&&(0<(n=t.left-e.collisionPosition.marginLeft+l+a+h-i)||C(n)<s)&&(t.left+=l+a+h)},top:function(t,e){var i=e.within,n=i.offset.top+i.scrollTop,o=i.height,i=i.isWindow?i.scrollTop:i.offset.top,s=t.top-e.collisionPosition.marginTop,r=s-i,s=s+e.collisionHeight-o-i,l="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,a="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,h=-2*e.offset[1];r<0?((o=t.top+l+a+h+e.collisionHeight-o-n)<0||o<C(r))&&(t.top+=l+a+h):0<s&&(0<(n=t.top-e.collisionPosition.marginTop+l+a+h-i)||C(n)<s)&&(t.top+=l+a+h)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}},x.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return i=(i=i||e.body).nodeName?i:e.body},x.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&x(t).trigger("blur")},
/*!
 * jQuery UI Scroll Parent 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=x(this);return(!i||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:x(this[0].ownerDocument||document)},
/*!
 * jQuery UI Tabbable 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.extend(x.expr.pseudos,{tabbable:function(t){var e=x.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&x.ui.focusable(t,i)}}),
/*!
 * jQuery UI Unique ID 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.extend({uniqueId:(u=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++u)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&x(this).removeAttr("id")})}});
/*!
 * jQuery UI Widget 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
var f,c=0,d=Array.prototype.hasOwnProperty,p=Array.prototype.slice;x.cleanData=(f=x.cleanData,function(t){for(var e,i,n=0;null!=(i=t[n]);n++)(e=x._data(i,"events"))&&e.remove&&x(i).triggerHandler("remove");f(t)}),x.widget=function(t,i,e){var n,o,s,r={},l=t.split(".")[0],a=l+"-"+(t=t.split(".")[1]);return e||(e=i,i=x.Widget),Array.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr.pseudos[a.toLowerCase()]=function(t){return!!x.data(t,a)},x[l]=x[l]||{},n=x[l][t],o=x[l][t]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},x.extend(o,n,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(s=new i).options=x.widget.extend({},s.options),x.each(e,function(e,n){function o(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}r[e]="function"!=typeof n?n:function(){var t,e=this._super,i=this._superApply;return this._super=o,this._superApply=s,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}}),o.prototype=x.widget.extend(s,{widgetEventPrefix:n&&s.widgetEventPrefix||t},r,{constructor:o,namespace:l,widgetName:t,widgetFullName:a}),n?(x.each(n._childConstructors,function(t,e){var i=e.prototype;x.widget(i.namespace+"."+i.widgetName,o,e._proto)}),delete n._childConstructors):i._childConstructors.push(o),x.widget.bridge(t,o),o},x.widget.extend=function(t){for(var e,i,n=p.call(arguments,1),o=0,s=n.length;o<s;o++)for(e in n[o])i=n[o][e],d.call(n[o],e)&&void 0!==i&&(x.isPlainObject(i)?t[e]=x.isPlainObject(t[e])?x.widget.extend({},t[e],i):x.widget.extend({},i):t[e]=i);return t},x.widget.bridge=function(s,e){var r=e.prototype.widgetFullName||s;x.fn[s]=function(i){var t="string"==typeof i,n=p.call(arguments,1),o=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=x.data(this,r);return"instance"===i?(o=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?x.error("no such method '"+i+"' for "+s+" widget instance"):(t=e[i].apply(e,n))!==e&&void 0!==t?(o=t&&t.jquery?o.pushStack(t.get()):t,!1):void 0:x.error("cannot call methods on "+s+" prior to initialization; attempted to call method '"+i+"'")}):o=void 0:(n.length&&(i=x.widget.extend.apply(null,[i].concat(n))),this.each(function(){var t=x.data(this,r);t?(t.option(i||{}),t._init&&t._init()):x.data(this,r,new e(i,this))})),o}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o<i.length-1;o++)n[i[o]]=n[i[o]]||{},n=n[i[o]];if(t=i.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=e}return this._setOptions(s),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,n;for(e in t)n=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&n&&n.length&&(i=x(n.get()),this._removeClass(n,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(o){var s=[],r=this;function t(t,e){for(var i,n=0;n<t.length;n++)i=r.classesElementLookup[t[n]]||x(),i=o.add?(function(){var i=[];o.element.each(function(t,e){x.map(r.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),r._on(x(i),{remove:"_untrackClassesElement"})}(),x(x.uniqueSort(i.get().concat(o.element.get())))):x(i.not(o.element).get()),r.classesElementLookup[t[n]]=i,s.push(t[n]),e&&o.classes[t[n]]&&s.push(o.classes[t[n]])}return(o=x.extend({element:this.element,classes:this.options.classes||{}},o)).keys&&t(o.keys.match(/\S+/g)||[],!0),o.extra&&t(o.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(i){var n=this;x.each(n.classesElementLookup,function(t,e){-1!==x.inArray(i.target,e)&&(n.classesElementLookup[t]=x(e.not(i.target).get()))}),this._off(x(i.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){var o="string"==typeof t||null===t,e={extra:o?e:i,keys:o?t:e,element:o?this.element:t,add:n="boolean"==typeof n?n:i};return e.element.toggleClass(this._classes(e),n),this},_on:function(o,s,t){var r,l=this;"boolean"!=typeof o&&(t=s,s=o,o=!1),t?(s=r=x(s),this.bindings=this.bindings.add(s)):(t=s,s=this.element,r=this.widget()),x.each(t,function(t,e){function i(){if(o||!0!==l.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof e?l[e]:e).apply(l,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||x.guid++);var t=t.match(/^([\w:-]*)\s*(.*)$/),n=t[1]+l.eventNamespace,t=t[2];t?r.on(n,t,i):s.on(n,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var n,o,s=this.options[t];if(i=i||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],o=e.originalEvent)for(n in o)n in e||(e[n]=o[n]);return this.element.trigger(e,i),!("function"==typeof s&&!1===s.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(s,r){x.Widget.prototype["_"+s]=function(e,t,i){var n,o=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||r:s;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),n=!x.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),n&&x.effects&&x.effects.effect[o]?e[s](t):o!==s&&e[o]?e[o](t.duration,t.easing,i):e.queue(function(t){x(this)[s](),i&&i.call(e[0]),t()})}})})
;/*!
 * jQuery UI Menu 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../keycode","../position","../safe-active-element","../unique-id","../version","../widget"],e):e(jQuery)}(function(a){"use strict";return a.widget("ui.menu",{version:"1.13.3",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault(),this._activateItem(e)},"click .ui-menu-item":function(e){var t=a(e.target),i=a(a.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&t.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),t.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active)&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this._menuItems().first();t||this.focus(e,i)},blur:function(e){this._delay(function(){a.contains(this.element[0],a.ui.safeActiveElement(this.document[0]))||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e,!0),this.mouseHandled=!1}})},_activateItem:function(e){var t,i;this.previousFilter||e.clientX===this.lastMousePosition.x&&e.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:e.clientX,y:e.clientY},t=a(e.target).closest(".ui-menu-item"),i=a(e.currentTarget),t[0]!==i[0])||i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,i))},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),e.children().each(function(){var e=a(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var t,i,s,n=!0;switch(e.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(e);break;case a.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case a.ui.keyCode.HOME:this._move("first","first",e);break;case a.ui.keyCode.END:this._move("last","last",e);break;case a.ui.keyCode.UP:this.previous(e);break;case a.ui.keyCode.DOWN:this.next(e);break;case a.ui.keyCode.LEFT:this.collapse(e);break;case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(e);break;case a.ui.keyCode.ESCAPE:this.collapse(e);break;default:t=this.previousFilter||"",s=n=!1,i=96<=e.keyCode&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),i===t?s=!0:i=t+i,t=this._filterMenuItems(i),(t=s&&-1!==t.index(this.active.next())?this.active.nextAll(".ui-menu-item"):t).length||(i=String.fromCharCode(e.keyCode),t=this._filterMenuItems(i)),t.length?(this.focus(e,t),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}n&&e.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var e,t,s=this,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),e=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=a(this),t=e.prev(),i=a("<span>").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+n),t.attr("aria-haspopup","true").prepend(i),e.attr("aria-labelledby",t.attr("id"))}),this._addClass(e,"ui-menu","ui-widget ui-widget-content ui-front"),(e=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var e=a(this);s._isDivider(e)&&s._addClass(e,"ui-menu-divider","ui-widget-content")}),t=(i=e.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(t,"ui-menu-item-wrapper"),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!a.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){var i;"icons"===e&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,t.submenu)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var i;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(e){var t,i,s;this._hasScroll()&&(t=parseFloat(a.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,t=e.offset().top-this.activeMenu.offset().top-t-i,i=this.activeMenu.scrollTop(),s=this.activeMenu.height(),e=e.outerHeight(),t<0?this.activeMenu.scrollTop(i+t):s<t+e&&this.activeMenu.scrollTop(i+t-s+e))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(e){var t=a.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(t)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay(function(){var e=i?this.element:a(t&&t.target).closest(this.element.find(".ui-menu"));e.length||(e=this.element),this._close(e),this.blur(t),this._removeClass(e.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=e},i?0:this.delay)},_close:function(e){(e=e||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!a(e.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this._menuItems(this.active.children(".ui-menu")).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(e){return(e||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(e,t,i){var s;(s=this.active?"first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").last():this.active[e+"All"](".ui-menu-item").first():s)&&s.length&&this.active||(s=this._menuItems(this.activeMenu)[t]()),this.focus(i,s)},nextPage:function(e){var t,i,s;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===a.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return(t=a(this)).offset().top-i-s<0}),this.focus(e,t)):this.focus(e,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(e)},previousPage:function(e){var t,i,s;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===a.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return 0<(t=a(this)).offset().top-i+s}),this.focus(e,t)):this.focus(e,this._menuItems(this.activeMenu).first())):this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||a(e.target).closest(".ui-menu-item");var t={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,t)},_filterMenuItems:function(e){var e=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),t=new RegExp("^"+e,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return t.test(String.prototype.trim.call(a(this).children(".ui-menu-item-wrapper").text()))})}})})
;/*! This file is auto-generated */
(()=>{"use strict";var e={d:(t,d)=>{for(var o in d)e.o(d,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:d[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};function d(e){"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e())}e.d(t,{default:()=>d}),(window.wp=window.wp||{}).domReady=t.default})()
;/*! This file is auto-generated */
(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{actions:()=>S,addAction:()=>m,addFilter:()=>p,applyFilters:()=>k,createHooks:()=>h,currentAction:()=>w,currentFilter:()=>I,defaultHooks:()=>f,didAction:()=>O,didFilter:()=>j,doAction:()=>b,doingAction:()=>x,doingFilter:()=>T,filters:()=>z,hasAction:()=>v,hasFilter:()=>y,removeAction:()=>A,removeAllActions:()=>F,removeAllFilters:()=>g,removeFilter:()=>_});const n=function(t){return"string"!=typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};const r=function(t){return"string"!=typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};const o=function(t,e){return function(o,i,s,c=10){const l=t[e];if(!r(o))return;if(!n(i))return;if("function"!=typeof s)return void console.error("The hook callback must be a function.");if("number"!=typeof c)return void console.error("If specified, the hook priority must be a number.");const u={callback:s,priority:c,namespace:i};if(l[o]){const t=l[o].handlers;let e;for(e=t.length;e>0&&!(c>=t[e-1].priority);e--);e===t.length?t[e]=u:t.splice(e,0,u),l.__current.forEach((t=>{t.name===o&&t.currentIndex>=e&&t.currentIndex++}))}else l[o]={handlers:[u],runs:0};"hookAdded"!==o&&t.doAction("hookAdded",o,i,s,c)}};const i=function(t,e,o=!1){return function(i,s){const c=t[e];if(!r(i))return;if(!o&&!n(s))return;if(!c[i])return 0;let l=0;if(o)l=c[i].handlers.length,c[i]={runs:c[i].runs,handlers:[]};else{const t=c[i].handlers;for(let e=t.length-1;e>=0;e--)t[e].namespace===s&&(t.splice(e,1),l++,c.__current.forEach((t=>{t.name===i&&t.currentIndex>=e&&t.currentIndex--})))}return"hookRemoved"!==i&&t.doAction("hookRemoved",i,s),l}};const s=function(t,e){return function(n,r){const o=t[e];return void 0!==r?n in o&&o[n].handlers.some((t=>t.namespace===r)):n in o}};const c=function(t,e,n=!1){return function(r,...o){const i=t[e];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;const s=i[r].handlers;if(!s||!s.length)return n?o[0]:void 0;const c={name:r,currentIndex:0};for(i.__current.push(c);c.currentIndex<s.length;){const t=s[c.currentIndex].callback.apply(null,o);n&&(o[0]=t),c.currentIndex++}return i.__current.pop(),n?o[0]:void 0}};const l=function(t,e){return function(){var n;const r=t[e];return null!==(n=r.__current[r.__current.length-1]?.name)&&void 0!==n?n:null}};const u=function(t,e){return function(n){const r=t[e];return void 0===n?void 0!==r.__current[0]:!!r.__current[0]&&n===r.__current[0].name}};const a=function(t,e){return function(n){const o=t[e];if(r(n))return o[n]&&o[n].runs?o[n].runs:0}};class d{constructor(){this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=o(this,"actions"),this.addFilter=o(this,"filters"),this.removeAction=i(this,"actions"),this.removeFilter=i(this,"filters"),this.hasAction=s(this,"actions"),this.hasFilter=s(this,"filters"),this.removeAllActions=i(this,"actions",!0),this.removeAllFilters=i(this,"filters",!0),this.doAction=c(this,"actions"),this.applyFilters=c(this,"filters",!0),this.currentAction=l(this,"actions"),this.currentFilter=l(this,"filters"),this.doingAction=u(this,"actions"),this.doingFilter=u(this,"filters"),this.didAction=a(this,"actions"),this.didFilter=a(this,"filters")}}const h=function(){return new d},f=h(),{addAction:m,addFilter:p,removeAction:A,removeFilter:_,hasAction:v,hasFilter:y,removeAllActions:F,removeAllFilters:g,doAction:b,applyFilters:k,currentAction:w,currentFilter:I,doingAction:x,doingFilter:T,didAction:O,didFilter:j,actions:S,filters:z}=f;(window.wp=window.wp||{}).hooks=e})()
;/*! This file is auto-generated */
(()=>{var t={2058:(t,e,r)=>{var n;!function(){"use strict";var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function a(t){return function(t,e){var r,n,o,s,l,u,p,c,f,d=1,h=t.length,g="";for(n=0;n<h;n++)if("string"==typeof t[n])g+=t[n];else if("object"==typeof t[n]){if((s=t[n]).keys)for(r=e[d],o=0;o<s.keys.length;o++){if(null==r)throw new Error(a('[sprintf] Cannot access property "%s" of undefined value "%s"',s.keys[o],s.keys[o-1]));r=r[s.keys[o]]}else r=s.param_no?e[s.param_no]:e[d++];if(i.not_type.test(s.type)&&i.not_primitive.test(s.type)&&r instanceof Function&&(r=r()),i.numeric_arg.test(s.type)&&"number"!=typeof r&&isNaN(r))throw new TypeError(a("[sprintf] expecting number but found %T",r));switch(i.number.test(s.type)&&(c=r>=0),s.type){case"b":r=parseInt(r,10).toString(2);break;case"c":r=String.fromCharCode(parseInt(r,10));break;case"d":case"i":r=parseInt(r,10);break;case"j":r=JSON.stringify(r,null,s.width?parseInt(s.width):0);break;case"e":r=s.precision?parseFloat(r).toExponential(s.precision):parseFloat(r).toExponential();break;case"f":r=s.precision?parseFloat(r).toFixed(s.precision):parseFloat(r);break;case"g":r=s.precision?String(Number(r.toPrecision(s.precision))):parseFloat(r);break;case"o":r=(parseInt(r,10)>>>0).toString(8);break;case"s":r=String(r),r=s.precision?r.substring(0,s.precision):r;break;case"t":r=String(!!r),r=s.precision?r.substring(0,s.precision):r;break;case"T":r=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),r=s.precision?r.substring(0,s.precision):r;break;case"u":r=parseInt(r,10)>>>0;break;case"v":r=r.valueOf(),r=s.precision?r.substring(0,s.precision):r;break;case"x":r=(parseInt(r,10)>>>0).toString(16);break;case"X":r=(parseInt(r,10)>>>0).toString(16).toUpperCase()}i.json.test(s.type)?g+=r:(!i.number.test(s.type)||c&&!s.sign?f="":(f=c?"+":"-",r=r.toString().replace(i.sign,"")),u=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",p=s.width-(f+r).length,l=s.width&&p>0?u.repeat(p):"",g+=s.align?f+r+l:"0"===u?f+l+r:l+f+r)}return g}(function(t){if(s[t])return s[t];var e,r=t,n=[],a=0;for(;r;){if(null!==(e=i.text.exec(r)))n.push(e[0]);else if(null!==(e=i.modulo.exec(r)))n.push("%");else{if(null===(e=i.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(e[2]){a|=1;var o=[],l=e[2],u=[];if(null===(u=i.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o.push(u[1]);""!==(l=l.substring(u[0].length));)if(null!==(u=i.key_access.exec(l)))o.push(u[1]);else{if(null===(u=i.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(u[1])}e[2]=o}else a|=2;if(3===a)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push({placeholder:e[0],param_no:e[1],keys:e[2],sign:e[3],pad_char:e[4],align:e[5],width:e[6],precision:e[7],type:e[8]})}r=r.substring(e[0].length)}return s[t]=n}(t),arguments)}function o(t,e){return a.apply(null,[t].concat(e||[]))}var s=Object.create(null);e.sprintf=a,e.vsprintf=o,"undefined"!=typeof window&&(window.sprintf=a,window.vsprintf=o,void 0===(n=function(){return{sprintf:a,vsprintf:o}}.call(e,r,e,t))||(t.exports=n))}()}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var a=e[n]={exports:{}};return t[n](a,a.exports,r),a.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{__:()=>F,_n:()=>j,_nx:()=>L,_x:()=>S,createI18n:()=>x,defaultI18n:()=>_,getLocaleData:()=>v,hasTranslation:()=>D,isRTL:()=>T,resetLocaleData:()=>w,setLocaleData:()=>m,sprintf:()=>a,subscribe:()=>k});var t=r(2058),e=r.n(t);const i=function(t,e){var r,n,i=0;function a(){var a,o,s=r,l=arguments.length;t:for(;s;){if(s.args.length===arguments.length){for(o=0;o<l;o++)if(s.args[o]!==arguments[o]){s=s.next;continue t}return s!==r&&(s===n&&(n=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=r,s.prev=null,r.prev=s,r=s),s.val}s=s.next}for(a=new Array(l),o=0;o<l;o++)a[o]=arguments[o];return s={args:a,val:t.apply(null,a)},r?(r.prev=s,s.next=r):n=s,i===e.maxSize?(n=n.prev).next=null:i++,r=s,s.val}return e=e||{},a.clear=function(){r=null,n=null,i=0},a}(console.error);function a(t,...r){try{return e().sprintf(t,...r)}catch(e){return e instanceof Error&&i("sprintf error: \n\n"+e.toString()),t}}var o,s,l,u;o={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},s=["(","?"],l={")":["("],":":["?","?:"]},u=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var p={"!":function(t){return!t},"*":function(t,e){return t*e},"/":function(t,e){return t/e},"%":function(t,e){return t%e},"+":function(t,e){return t+e},"-":function(t,e){return t-e},"<":function(t,e){return t<e},"<=":function(t,e){return t<=e},">":function(t,e){return t>e},">=":function(t,e){return t>=e},"==":function(t,e){return t===e},"!=":function(t,e){return t!==e},"&&":function(t,e){return t&&e},"||":function(t,e){return t||e},"?:":function(t,e,r){if(t)throw e;return r}};function c(t){var e=function(t){for(var e,r,n,i,a=[],p=[];e=t.match(u);){for(r=e[0],(n=t.substr(0,e.index).trim())&&a.push(n);i=p.pop();){if(l[r]){if(l[r][0]===i){r=l[r][1]||r;break}}else if(s.indexOf(i)>=0||o[i]<o[r]){p.push(i);break}a.push(i)}l[r]||p.push(r),t=t.substr(e.index+r.length)}return(t=t.trim())&&a.push(t),a.concat(p.reverse())}(t);return function(t){return function(t,e){var r,n,i,a,o,s,l=[];for(r=0;r<t.length;r++){if(o=t[r],a=p[o]){for(n=a.length,i=Array(n);n--;)i[n]=l.pop();try{s=a.apply(null,i)}catch(t){return t}}else s=e.hasOwnProperty(o)?e[o]:+o;l.push(s)}return l[0]}(e,t)}}var f={contextDelimiter:"",onMissingKey:null};function d(t,e){var r;for(r in this.data=t,this.pluralForms={},this.options={},f)this.options[r]=void 0!==e&&r in e?e[r]:f[r]}d.prototype.getPluralForm=function(t,e){var r,n,i,a=this.pluralForms[t];return a||("function"!=typeof(i=(r=this.data[t][""])["Plural-Forms"]||r["plural-forms"]||r.plural_forms)&&(n=function(t){var e,r,n;for(e=t.split(";"),r=0;r<e.length;r++)if(0===(n=e[r].trim()).indexOf("plural="))return n.substr(7)}(r["Plural-Forms"]||r["plural-forms"]||r.plural_forms),i=function(t){var e=c(t);return function(t){return+e({n:t})}}(n)),a=this.pluralForms[t]=i),a(e)},d.prototype.dcnpgettext=function(t,e,r,n,i){var a,o,s;return a=void 0===i?0:this.getPluralForm(t,i),o=r,e&&(o=e+this.options.contextDelimiter+r),(s=this.data[t][o])&&s[a]?s[a]:(this.options.onMissingKey&&this.options.onMissingKey(r,t),0===a?r:n)};const h={plural_forms:t=>1===t?0:1},g=/^i18n\.(n?gettext|has_translation)(_|$)/,x=(t,e,r)=>{const n=new d({}),i=new Set,a=()=>{i.forEach((t=>t()))},o=(t,e="default")=>{n.data[e]={...n.data[e],...t},n.data[e][""]={...h,...n.data[e]?.[""]},delete n.pluralForms[e]},s=(t,e)=>{o(t,e),a()},l=(t="default",e,r,i,a)=>(n.data[t]||o(void 0,t),n.dcnpgettext(t,e,r,i,a)),u=(t="default")=>t,p=(t,e,n)=>{let i=l(n,e,t);return r?(i=r.applyFilters("i18n.gettext_with_context",i,t,e,n),r.applyFilters("i18n.gettext_with_context_"+u(n),i,t,e,n)):i};if(t&&s(t,e),r){const t=t=>{g.test(t)&&a()};r.addAction("hookAdded","core/i18n",t),r.addAction("hookRemoved","core/i18n",t)}return{getLocaleData:(t="default")=>n.data[t],setLocaleData:s,addLocaleData:(t,e="default")=>{n.data[e]={...n.data[e],...t,"":{...h,...n.data[e]?.[""],...t?.[""]}},delete n.pluralForms[e],a()},resetLocaleData:(t,e)=>{n.data={},n.pluralForms={},s(t,e)},subscribe:t=>(i.add(t),()=>i.delete(t)),__:(t,e)=>{let n=l(e,void 0,t);return r?(n=r.applyFilters("i18n.gettext",n,t,e),r.applyFilters("i18n.gettext_"+u(e),n,t,e)):n},_x:p,_n:(t,e,n,i)=>{let a=l(i,void 0,t,e,n);return r?(a=r.applyFilters("i18n.ngettext",a,t,e,n,i),r.applyFilters("i18n.ngettext_"+u(i),a,t,e,n,i)):a},_nx:(t,e,n,i,a)=>{let o=l(a,i,t,e,n);return r?(o=r.applyFilters("i18n.ngettext_with_context",o,t,e,n,i,a),r.applyFilters("i18n.ngettext_with_context_"+u(a),o,t,e,n,i,a)):o},isRTL:()=>"rtl"===p("ltr","text direction"),hasTranslation:(t,e,i)=>{const a=e?e+""+t:t;let o=!!n.data?.[null!=i?i:"default"]?.[a];return r&&(o=r.applyFilters("i18n.has_translation",o,t,e,i),o=r.applyFilters("i18n.has_translation_"+u(i),o,t,e,i)),o}}},y=window.wp.hooks,b=x(void 0,void 0,y.defaultHooks),_=b,v=b.getLocaleData.bind(b),m=b.setLocaleData.bind(b),w=b.resetLocaleData.bind(b),k=b.subscribe.bind(b),F=b.__.bind(b),S=b._x.bind(b),j=b._n.bind(b),L=b._nx.bind(b),T=b.isRTL.bind(b),D=b.hasTranslation.bind(b)})(),(window.wp=window.wp||{}).i18n=n})()
;wp.i18n.setLocaleData({'text direction\u0004ltr':['ltr']})
;/*! This file is auto-generated */
(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{setup:()=>d,speak:()=>p});const n=window.wp.domReady;var o=e.n(n);const i=window.wp.i18n;function a(e="polite"){const t=document.createElement("div");t.id=`a11y-speak-${e}`,t.className="a11y-speak-region",t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true");const{body:n}=document;return n&&n.appendChild(t),t}let r="";function d(){const e=document.getElementById("a11y-speak-intro-text"),t=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===e&&function(){const e=document.createElement("p");e.id="a11y-speak-intro-text",e.className="a11y-speak-intro-text",e.textContent=(0,i.__)("Notifications"),e.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),e.setAttribute("hidden","hidden");const{body:t}=document;t&&t.appendChild(e)}(),null===t&&a("assertive"),null===n&&a("polite")}function p(e,t){!function(){const e=document.getElementsByClassName("a11y-speak-region"),t=document.getElementById("a11y-speak-intro-text");for(let t=0;t<e.length;t++)e[t].textContent="";t&&t.setAttribute("hidden","hidden")}(),e=function(e){return e=e.replace(/<[^<>]+>/g," "),r===e&&(e+=" "),r=e,e}(e);const n=document.getElementById("a11y-speak-intro-text"),o=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");o&&"assertive"===t?o.textContent=e:i&&(i.textContent=e),n&&n.removeAttribute("hidden")}o()(d),(window.wp=window.wp||{}).a11y=t})()
;/*!
 * jQuery UI Autocomplete 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./menu","../keycode","../position","../safe-active-element","../version","../widget"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.autocomplete",{version:"1.13.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,s,n,e=this.element[0].nodeName.toLowerCase(),t="textarea"===e,e="input"===e;this.isMultiLine=t||!e&&this._isContentEditable(this.element),this.valueMethod=this.element[t||e?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:i=!0,this._move("previousPage",e);break;case t.PAGE_DOWN:i=!0,this._move("nextPage",e);break;case t.UP:i=!0,this._keyEvent("previous",e);break;case t.DOWN:i=!0,this._keyEvent("next",e);break;case t.ENTER:this.menu.active&&(i=!0,e.preventDefault(),this.menu.select(e));break;case t.TAB:this.menu.active&&this.menu.select(e);break;case t.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(e),e.preventDefault());break;default:s=!0,this._searchTimeout(e)}}},keypress:function(e){if(i)i=!1,this.isMultiLine&&!this.menu.element.is(":visible")||e.preventDefault();else if(!s){var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e)}}},input:function(e){n?(n=!1,e.preventDefault()):this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=o("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(e,t){var i,s;this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent)&&/^mouse/.test(e.originalEvent.type)?(this.menu.blur(),this.document.one("mousemove",function(){o(e.target).trigger(e.originalEvent)})):(s=t.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:s})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value),(i=t.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(i))},100)))},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==o.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=o("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var t=this.menu.element[0];return e.target===this.element[0]||e.target===t||o.contains(t,e.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e=(e=(e=e&&(e.jquery||e.nodeType?o(e):this.document.find(e).eq(0)))&&e[0]?e:this.element.closest(".ui-front, dialog")).length?e:this.document[0].body},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(e,t){t(o.ui.autocomplete.filter(i,e.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(e,t){n.xhr&&n.xhr.abort(),n.xhr=o.ajax({url:s,data:e,dataType:"json",success:function(e){t(e)},error:function(){t([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),t=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;e&&(t||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e=e&&this._normalize(e),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:o.map(e,function(e){return"string"==typeof e?{label:e,value:e}:o.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e),this.isNewMenu=!0,this.menu.refresh(),t.show(),this._resizeMenu(),t.position(o.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,e){var s=this;o.each(e,function(e,t){s._renderItemData(i,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){return o("<li>").append(o("<div>").text(t.label)).appendTo(e)},_move:function(e,t){this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),this.menu.blur()):this.menu[e](t):this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){var t;return!!e.length&&("inherit"===(t=e.prop("contentEditable"))?this._isContentEditable(e.parent()):"true"===t)}}),o.extend(o.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var i=new RegExp(o.ui.autocomplete.escapeRegex(t),"i");return o.grep(e,function(e){return i.test(e.label||e.value||e)})}}),o.widget("ui.autocomplete",o.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(1<e?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(t))},100))}}),o.ui.autocomplete})
;var manga={"ajax_url":"https:\/\/4novel.com\/wp-admin\/admin-ajax.php","home_url":"https:\/\/4novel.com","base_url":"https:\/\/4novel.com\/novels\/","manga_paged_var":"novel-paged","enable_manga_view":"1"};var mangaReadingAjax={"isEnable":"1"}
;function updateHistory(p=0){var $=jQuery;if(typeof user_history_params=='undefined'){return}
if($('.wp-manga-chapter-img').length>0){var img=$('.wp-manga-chapter-img').prop('id');var img_id=img.replace('image-','')}else{var img_id=''}
$.ajax({url:user_history_params.ajax_url,type:'POST',data:{action:'manga-user-history',postID:user_history_params.postID,chapterSlug:user_history_params.chapter,paged:p?p:user_history_params.page,img_id:img_id,nonce:user_history_params.nonce}})}
function madara_update_views(){var $=jQuery;if($('body').hasClass('single-wp-manga')){if(typeof manga!=='undefined'){if(manga.enable_manga_view!="0"){$.ajax({url:manga.ajax_url,type:'POST',data:{action:'manga_views',manga:manga.manga_id,chapter:manga.chapter_slug},success:function(data){},complete:function(e){}})}}}}
window.wpmanga={};window.wpmanga.setCookie=function(cname,cvalue,exdays){var d=new Date();d.setTime(d.getTime()+(exdays*24*60*60*1000));var expires="expires="+d.toUTCString();document.cookie=cname+"="+cvalue+";"+expires+";path=/"}
window.wpmanga.getCookie=function(cname){var name=cname+"=";var decodedCookie=decodeURIComponent(document.cookie);var ca=decodedCookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' '){c=c.substring(1)}
if(c.indexOf(name)==0){return c.substring(name.length,c.length)}}
return""}
window.wpmanga.removeCookie=function(cname){document.cookie=cname+'=;  expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;'}
jQuery(document).ready(function($){function readingScrollToTop(){$('html, body').animate({scrollTop:$('.c-blog-post .reading-content').offset().top},500)}
if($('#manga-chapters-holder').length>0){$.ajax({url:manga.base_url+'ajax/chapters/',type:'POST',success:function(data){$('#manga-chapters-holder').html(data);$(document).trigger('wp_manga_after_load_chapters_list')},complete:function(e){}})}else{setTimeout(function(){$(document).trigger('wp_manga_after_load_chapters_list')},1000)}
function load_chapters_selectbox(){if($('.chapter-selection').length>0){var selector=$('.chapter-selection');var args={action:'manga_get_reading_nav',manga:$(selector[0]).data('manga'),chapter:$(selector[0]).data('chapter'),volume_id:$(selector[0]).data('vol'),style:$(selector[0]).data('style'),type:$(selector[0]).data('type'),};$.ajax({url:manga.ajax_url,type:'POST',data:args,success:function(data){$('.chapter-selection').each(function(){$(this).html(data)});$(document).trigger('wp_manga_after_load_reading_nav')},complete:function(e){}})}else{$(document).trigger('wp_manga_after_load_reading_nav')}}
function chapterNavigationAjax(navigation){if(typeof window.manga_navigating!=='undefined'&&window.manga_navigating){return}
if(typeof mangaReadingAjax=='undefined'){return!1}
var readContainer=$('.read-container'),loadingHTML='<i class="fas fa-spinner fa-spin"></i>',currentPageSelect=$('.wp-manga-nav select#single-pager > option[selected="selected"]'),prevBtn=$('.nav-links .nav-previous'),nextBtn=$('.nav-links .nav-next'),breadCrumb=$('.wp-manga-nav .entry-header_wrap').html(),pagination=$('.select-pagination');window.manga_navigating=!0;$.ajax({type:'GET',url:manga.ajax_url+'?'+navigation,beforeSend:function(){readContainer.html(loadingHTML);pagination.hide();$('.wp-manga-nav select').each(function(){$(this).prop('disabled',!0)})},success:function(response){if(response.success){readContainer.html(response.data.data.content);$('.wp-manga-nav').replaceWith(response.data.data.nav);$('.entry-header .wp-manga-nav').prepend('<div class="entry-header_wrap">'+breadCrumb+'</div>');pagination.show();wp_manga_on_chapter_navlinks_click();madara_update_views();load_chapters_selectbox();$('.wp-manga-nav select').each(function(){$(this).prop('disabled',!1)});if(typeof updateHistory!=='undefined'){updateHistory($('#single-pager').val())}}else{readContainer.html(response.data.message)}
readingScrollToTop();$(document).trigger('wp_manga_chapterNavigationAjax_done')},complete:function(xhr,textStatus){window.manga_navigating=!1}})}
function chapterPreloadedImagesNavigation(next=!0){var $curPage=$('#single-pager'),curPageVal=$curPage.val();if(next){curPageVal++}else{curPageVal--}
var resp=loadPreloadedImage(curPageVal);return resp}
function loadPreloadedImage(page){readingScrollToTop();page=parseInt(page);var curPageOption=$('#single-pager option[value="'+page+'"]');var $readingContent=$('.reading-content');if(curPageOption.length>0){$('.selectpicker_page select').each(function(){$('option',$(this)).removeAttr('selected');$('option[value="'+page+'"]',$(this)).prop('selected',!0);$('option[value="'+page+'"]',$(this)).attr('selected','selected');$(this).val(page)});var prevPage=page-1,nextPage=page+1,prevPageOption=$('#single-pager option[value="'+prevPage+'"]'),nextPageOption=$('#single-pager option[value="'+nextPage+'"]');var volSelect=$('.volume-select');var mangaHasVolume=volSelect.length>0?!0:!1;var curVol=mangaHasVolume?volSelect.val():0;var curVolChapSelect=$('.selectpicker_chapter[for="volume-id-'+curVol+'"] .single-chapter-select');if(typeof curVolChapSelect==='undefined'||typeof curVolChapSelect[0]==='undefined'){return}
selector=curVolChapSelect.first();var curChapIndex=selector.find(":selected").index()+1,curVolIndex=mangaHasVolume?volSelect[0].selectedIndex+1:null;var vol_order=mangaHasVolume?$(volSelect[0]).data('order'):0;if(mangaHasVolume){volSelect=$(volSelect[0])}
var nextBtn=$('.nav-next a'),prevBtn=$('.nav-previous a');var order=nextBtn.data('order');nextBtn.show();prevBtn.show();var prevURL='';var prevNavURL='';if(prevPageOption.length>0){prevURL=prevPageOption.data('redirect');prevNavURL=$('.nav-next a').data('navigation');if(typeof prevNavURL!=='undefined'){var replace=manga.manga_paged_var+'=(\d+)';var re=new RegExp(replace,"g");prevNavURL=prevNavURL.replace(re,prevPage)}}else{var prevChapIndex=(order?curChapIndex+1:curChapIndex-1);var prevVolIndex=mangaHasVolume?(vol_order?curVolIndex-1:curVolIndex+1):null;var prevVolChapList=mangaHasVolume?$('.selectpicker_chapter:nth-child('+prevVolIndex+') .single-chapter-select').first():null;if((prevChapIndex<=0&&!order)||(order&&prevChapIndex>selector.find('option').length)){if(prevVolIndex===null||(mangaHasVolume&&vol_order&&prevVolIndex<=0)||(mangaHasVolume&&!vol_order&&prevVolIndex>volSelect.find('option').length)){prevBtn.hide()}else{var prevChapSelect=prevVolChapList.find('option:nth-child('+(order?2:prevVolChapList.find('option').length)+')');prevURL=prevChapSelect.data('redirect');prevNavURL=prevChapSelect.data('navigation')}}else{var curVolChapSelect=$('.selectpicker_chapter[for="volume-id-'+curVol+'"] .single-chapter-select');if(typeof curVolChapSelect==='undefined'||typeof curVolChapSelect[0]==='undefined'){return}
selector=curVolChapSelect.first();var prevChapSelect=$(selector).find('option:nth-child('+prevChapIndex+')');prevURL=prevChapSelect.data('redirect');prevNavURL=prevChapSelect.data('navigation');if(typeof prevChapLastPage!=='undefined'){prevURL=prevURL.replace('/p/1','/p/'+prevChapLastPage);prevNavURL+='&'+manga.manga_paged_var+'='+prevChapLastPage}}}
prevBtn.data('navigation',prevNavURL);prevBtn.attr('href',prevURL);var nextURL='';var nextNavURL='';var lastPageOfLastChap=!1;if(nextPageOption.length>0){nextURL=nextPageOption.data('redirect');nextNavURL=$('.nav-next a').data('navigation');if(typeof nextNavURL!=='undefined'){var replace=manga.manga_paged_var+'=(\d+)';var re=new RegExp(replace,"g");nextNavURL=nextNavURL.replace(re,nextPage)}}else{var nextChapIndex=(order?curChapIndex-1:curChapIndex+1);var curVolChapSelect=$('.selectpicker_chapter[for="volume-id-'+curVol+'"] .single-chapter-select');if(typeof curVolChapSelect==='undefined'||typeof curVolChapSelect[0]==='undefined'){return}
selector=curVolChapSelect.first();if((curChapIndex===$(selector).find('option').length&&!order)||(curChapIndex==1&&order)){var nextVolIndex=mangaHasVolume?(vol_order?curVolIndex+1:curVolIndex-1):null;if(!mangaHasVolume||(curVolIndex===volSelect.find('option').length&&vol_order)||(curVolIndex===1&&!vol_order)){if(mangaNav.backInfoPage=='on'&&$('.btn-primary .back').length==0){nextBtn.text(mangaNav.text.backInfoPage).removeClass('next_page').addClass('back');nextURL=mangaNav.mangaUrl;lastPageOfLastChap=!0}else{nextBtn.hide()}}else{var nextVolChapList=$('.selectpicker_chapter:nth-child('+nextVolIndex+') .single-chapter-select').first();var nextChapSelect=nextVolChapList.find('option:nth-child('+(order?nextVolChapList.find('option').length:2)+')');nextURL=nextChapSelect.data('redirect');nextNavURL=nextChapSelect.data('navigation')}}else{var curVolChapSelect=$('.selectpicker_chapter[for="volume-id-'+curVol+'"] .single-chapter-select');if(typeof curVolChapSelect==='undefined'||typeof curVolChapSelect[0]==='undefined'){return}
selector=curVolChapSelect.first();var nextChapSelect=$(selector).find('option:nth-child('+nextChapIndex+')');nextURL=nextChapSelect.data('redirect');nextNavURL=nextChapSelect.data('navigation')}}
nextBtn.data('navigation',nextNavURL);nextBtn.attr('href',nextURL);if(!lastPageOfLastChap){nextBtn.text(mangaNav.text.next).addClass('next_page').removeClass('back')}
$readingContent.find('img').remove();var paged=chapter_images_per_page*(page-1)+1;var hasCursorLink=$('.reading-content .page-prev-link').length;var images_html='';for(var i=1;i<=chapter_images_per_page;i++){if(typeof chapter_preloaded_images[paged-1]!=='undefined'){images_html+='<img id="image-'+paged+'" data-image-paged="'+paged+'" src="'+chapter_preloaded_images[paged-1]+'" class="wp-manga-chapter-img">';paged++}else{break}}
if(hasCursorLink){$(images_html).insertAfter('.reading-content .page-prev-link')}else{$('.reading-content').append(images_html)}
if(typeof updateHistory!=='undefined'){updateHistory(paged)}
$(document).trigger('wp_manga_after_load_chapter_page',[page]);return!0}else{return!1}}
$(document).on('wp_manga_chapterNavigationAjax_done',function(){if(typeof updateHistory!=='undefined'){user_history_params.chapter=$('.single-chapter-select').val();updateHistory(1)}});$('.btn-text-reading-increase').on('click',function(e){var fontSize=$('.reading-content .text-left').css('font-size');var newFontValue=parseInt(fontSize.replace('px',''))+1;$('.reading-content .text-left').css('font-size',newFontValue+'px');$('.reading-content .text-left').css('line-height',(newFontValue*2.14285714)+'px');window.wpmanga.setCookie('wpmanga-reading-fontsize',newFontValue,30);e.preventDefault();e.stopPropagation();return!1});$('.btn-text-reading-decrease').on('click',function(e){var fontSize=$('.reading-content .text-left').css('font-size');var newFontValue=parseInt(fontSize.replace('px',''))-1;$('.reading-content .text-left').css('font-size',(newFontValue<5?5:newFontValue)+'px');$('.reading-content .text-left').css('line-height',(newFontValue<5?7.5:newFontValue*2.14285714)+'px');window.wpmanga.setCookie('wpmanga-reading-fontsize',newFontValue,30);e.preventDefault();e.stopPropagation();return!1});$('#text-chapter-toolbar a').on('click',function(e){$('.entry-header.footer').toggleClass('sticky');$('#text-chapter-toolbar').toggleClass('sticky');e.preventDefault();e.stopPropagation();return!1});function wp_manga_on_chapter_navlinks_click(){$('.wp-manga-nav .nav-links > div > a.btn').each(function(){$(this).unbind('click');$(this).on('click',function(e){if($(this).hasClass('back')){return!0}
var navigation=$(this).data('navigation'),url=$(this).attr('href');var use_preloaded_images=!1,redirect=!0;if(typeof chapter_preloaded_images!=='undefined'){use_preloaded_images=chapterPreloadedImagesNavigation($(this).hasClass('next_page')?!0:!1);if(use_preloaded_images){e.preventDefault();redirect=!1}}
if(!use_preloaded_images&&typeof navigation!=='undefined'&&navigation!==''&&typeof mangaReadingAjax!=='undefined'){e.preventDefault();$(document).trigger('wp_manga_on_chapter_navlinks_click');chapterNavigationAjax(navigation);redirect=!1}
if(typeof url!=='undefined'&&url!==''){history.pushState({},null,url)}
if(redirect){window.location=url;return!0}else{return!1}})})}
wp_manga_on_chapter_navlinks_click();function wp_manga_scroll_on_click(){if($('body').hasClass('click-to-scroll')){$('.manga-reading-list-style .chapter-type-manga .reading-content').on('click',function(e){if(e.target.nodeName!='INPUT'){$('html, body').animate({scrollTop:$(document).scrollTop()+500},200)}});$('.chapter-type-text .reading-content').on('click',function(e){if(e.target.nodeName!='INPUT'){$('html, body').animate({scrollTop:$(document).scrollTop()+500},1000)}})}}
wp_manga_scroll_on_click();if($('body').hasClass('keyboard-navigate')){$(document).keydown(function(e){var redirect='';if(document.activeElement&&document.activeElement.tagName=='INPUT'||document.activeElement.tagName=='TEXTAREA'||e.target.className.includes('ql-editor')){return}
if(e.keyCode==37&&$('.wp-manga-nav .nav-links .nav-previous > a').length>0){$('.wp-manga-nav .nav-links a.prev_page')[0].click()}else if(e.keyCode==39&&$('.wp-manga-nav .nav-links .nav-next > a').length>0){$('.wp-manga-nav .nav-links a.next_page')[0].click()}})}
$(document).ready(function(){$('textarea#comment').attr('required','required');$('#commentform').on('submit',function(){if(!$('#commentform')[0].checkValidity()){alert('Comment cannot be empty');return!1}
return!0});load_chapters_selectbox()});$(document).on('wp_manga_after_load_reading_nav',function(){$(document).on('change','.selectpicker.volume-select',function(){$('.chapters_selectbox_holder .c-selectpicker.selectpicker_chapter').each(function(){$(this).hide()});$('.chapters_selectbox_holder .c-selectpicker.selectpicker_chapter[for="volume-id-'+$(this).val()+'"]').show()});$(document).on('change','.wp-manga-nav .single-chapter-select, #single-pager, .wp-manga-nav .host-select, .wp-manga-nav .reading-style-select',function(e){e.preventDefault();var isPageSelect=$(this).attr('id')=='single-pager'?!0:!1;var isChapterSelect=$(this).hasClass('single-chapter-select')?!0:!1;if(isPageSelect||isChapterSelect){var navigation=$(this).find('option:selected').data('navigation');var url=$(this).find('option:selected').data('redirect');var use_preloaded_images=!1,redirect=!0;if(isPageSelect&&typeof chapter_preloaded_images!=='undefined'){$(this).blur();use_preloaded_images=loadPreloadedImage($(this).val());if(use_preloaded_images){redirect=!1}}
if(!use_preloaded_images&&typeof mangaReadingAjax!=='undefined'&&typeof navigation!=='undefined'&&navigation!==''){chapterNavigationAjax(navigation);redirect=!1}
if(!redirect){if(typeof url!=='undefined'&&url!==''){history.pushState({},null,url)}
return!1}}
var t=$(this);var redirect=t.find(':selected').attr('data-redirect');if(redirect!='#'){window.location=redirect}
$(document).trigger('wp_manga_chapter_redirect',[$(this),redirect,isPageSelect,isChapterSelect])})});var ajaxHandling=!1;var loginModal=!1;$(document).on('click','.wp-manga-action-button',function(e){e.preventDefault();if($(this).attr('data-action')=='bookmark'){if(typeof requireLogin2BookMark!=='undefined'){$('.modal#form-login').modal('show');$('input[name="bookmarking"]').val('1');return}
if($('.add-bookmark').length!=0){$('.add-bookmark').css('opacity','0.5')}else{var li=$('.action_list_icon a.wp-manga-action-button[data-action="bookmark"]').parent();li.css('opacity','0.5')}
if(!ajaxHandling){ajaxHandling=!0;var t=$(this);var postID=t.data('post');var volSelect=$('.volume-select');var mangaHasVolume=volSelect.length>0?!0:!1;var curVol=mangaHasVolume?volSelect.val():0;var curVolChapSelect=$('.selectpicker_chapter[for="volume-id-'+curVol+'"] .single-chapter-select');var chapter=$('#wp-manga-current-chap').length>0?$('#wp-manga-current-chap').val():'';var page=t.data('page');jQuery.ajax({url:manga.ajax_url,type:'POST',data:{action:'wp-manga-user-bookmark',postID:postID,chapter:chapter,page:page,},success:function(response){if(response.success){if($('.add-bookmark').length!=0){$('.add-bookmark').empty();$('.add-bookmark').append(response.data);$('.add-bookmark').css('opacity','1')}else{var li=$('.action_list_icon a.wp-manga-action-button[data-action="bookmark"]').parent();li.empty();li.append(response.data);li.css('opacity','1')}}else{if(!response.data){alert('Some errors occured. Please try again')}else{if(response.data.code=='login_error'){}else{alert(response.data.code)}}}},complete:function(xhr,textStatus){ajaxHandling=!1}})}}else{if($(this).attr('data-action')=='toggle-contrast'){$('body').toggleClass('text-ui-light');window.wpmanga.setCookie('wpmanga-reading-contrast',$('body').hasClass('text-ui-light')?'light':'dark',30);if(typeof DISQUS!=='undefined'){DISQUS.reset({reload:!0,config:disqus_config})}}}})
var ajaxBookmarkDelete=!1;$(document).on('click','.wp-manga-delete-bookmark',function(e){e.preventDefault();if(!ajaxBookmarkDelete){ajaxBookmarkDelete=!0;var t=$(this);var postID=t.data('post-id');var rowBookmark=$(this).closest("tr");if(rowBookmark.length!=0){rowBookmark.css('opacity','0.5');var isMangaSingle=0}
if($('.add-bookmark .action_icon .wp-manga-delete-bookmark').length!=0){var isMangaSingle=1;$('.add-bookmark').css('opacity','0.5')}else{var isMangaSingle=0;var li=$('.action_list_icon a.wp-manga-action-button[data-action="bookmark"]').parent();li.css('opacity','0.5')}
jQuery.ajax({url:manga.ajax_url,type:'POST',data:{action:'wp-manga-delete-bookmark',postID:postID,isMangaSingle:isMangaSingle},success:function(response){if(response.success){if(rowBookmark.length!=0){rowBookmark.fadeOut();rowBookmark.remove()}
if(typeof isMangaSingle!=='undefined'&&isMangaSingle==!0){$('.add-bookmark').empty();$('.add-bookmark').append(response.data);$('.add-bookmark').css('opacity','1')}else if(typeof isMangaSingle!=='undefined'&&isMangaSingle==!1){if(response.data.is_empty==!0){alert(response.data.msg)}else{var li=$('.action_list_icon a.wp-manga-delete-bookmark').parent();li.empty();li.append(response.data);li.css('opacity','1')}}}},complete:function(xhr,textStatus){ajaxBookmarkDelete=!1}})}})
var ajaxBookmarkDelete=!1;$(document).on('click','#delete-bookmark-manga',function(e){e.preventDefault();if(!ajaxBookmarkDelete){ajaxBookmarkDelete=!0;var bookmark=[];$('.bookmark-checkbox:checkbox:checked').each(function(i){bookmark[i]=$(this).val();$(this).closest('tr').addClass('remove');$(this).closest('tr').css('opacity','0.5')});jQuery.ajax({url:manga.ajax_url,type:'POST',data:{action:'wp-manga-delete-multi-bookmark',bookmark:bookmark,},success:function(response){if(response.success){$('tr.remove').remove()}},complete:function(xhr,textStatus){ajaxBookmarkDelete=!1}})}})
$(document).on('change','#wp-manga-bookmark-checkall',function(e){e.preventDefault();var t=$(this);var chechbox=$('.bookmark-checkbox');if(chechbox.length>0){if(t.is(':checked')){$.each(chechbox,function(i,e){$(e).prop('checked',!0)})}else{$.each(chechbox,function(i,e){$(e).prop('checked',!1)})}}})
$('form.manga-search-form.ajax input.manga-search-field').each(function(){var searchIcon=$(this).parent().children('.ion-ios-search-strong');var append=$(this).parent();$(this).autocomplete({appendTo:append,source:function(request,resp){$.ajax({url:manga.ajax_url,type:'POST',dataType:'json',data:{action:'wp-manga-search-manga',title:request.term,},success:function(data){resp($.map(data.data,function(item){if(!0==data.success){return{label:item.title,value:item.title,url:item.url,type:item.type}}else{return{label:item.message,value:item.message,type:item.type,click:!1}}}))}})},select:function(e,ui){if(ui.item.url){window.location.href=ui.item.url}else{if(ui.item.click){return!0}else{return!1}}},open:function(e,ui){var acData=$(this).data('uiAutocomplete');acData.menu.element.addClass('manga-autocomplete').find('li div').each(function(){var $self=$(this),keyword=$.trim(acData.term).split(' ').join('|');$self.html($self.text().replace(new RegExp("("+keyword+")","gi"),'<span class="manga-text-highlight">$1</span>'))})},change:function(e,ui){return!1;e.stopPropagation()}}).autocomplete("instance")._renderItem=function(ul,item){return $("<li class='search-item'>").append("<div class='manga-type-"+item.type+"'>"+item.label+"</div>").appendTo(ul)}});$('input[name="wp-manga-user-avatar"]').on('change',function(e){if(this.files.length){$('.file-name').html(this.files[0].name)}else{$('.file-name').html('')}});$(document).on('click','#wp-manga-upload-avatar',function(e){e.preventDefault();var thisBtn=$(this),chooseAvatar=$('.choose-avatar'),userAvatarSection=$('.c-user-avatar');var fd=new FormData();var userAvatar=$('input[name="wp-manga-user-avatar"]')[0].files[0];var userID=$('input[name="userID"]').val();var _wpnonce=$('input[name="_wpnonce"]').val();fd.append('action','wp-manga-upload-avatar');fd.append('userAvatar',userAvatar);fd.append('userID',userID);fd.append('_wpnonce',_wpnonce);jQuery.ajax({url:manga.ajax_url,type:'POST',enctype:'multipart/form-data',cache:!1,contentType:!1,processData:!1,data:fd,beforeSend:function(){thisBtn.attr('disabled','disabled');chooseAvatar.addClass('uploading')},success:function(response){if(response.success){userAvatarSection.empty();userAvatarSection.append(response.data)}else{alert(response.data.msg)}},complete:function(response,xhr){thisBtn.removeAttr('disabled');chooseAvatar.removeClass('uploading')}})});$(document).on('click','.remove-manga-history',function(e){e.preventDefault();var postID=$(this).data('manga');var item=$(this).closest('.col-md-4');item.css('opacity','0.5');$.ajax({url:manga.ajax_url,type:'POST',data:{'action':'manga-remove-history','postID':postID,},success:function(response){if(response.success){item.fadeOut();item.remove();if(response.data.is_empty==!0){$('.tab-pane#history').empty();$('.tab-pane#history').append(response.data.msg)}}else{item.css('opacity','1')}}})});var wpMangaAjaxPosts=!1;$(document).on('click','.wp-manga-ajax-button',function(e){e.preventDefault();if(wpMangaAjaxPosts==!1){wpMangaAjaxPosts=!0;var t=$(this),e=$(this).data('element'),template=$(this).data('template'),button=$(this).parent();t.addClass('loading');$.ajax({url:manga.ajax_url,type:'POST',data:{action:'wp_manga_archive_loadmore',manga_args:manga_args,template:template},success:function(response){t.removeClass('loading');$('.wp-manga-query-vars').remove();$(e).append(response);if(manga_args.paged>=manga_args.max_num_pages){button.remove()}}})}});$(".page-item-detail.video").each(function(){$('.item-thumb a',$(this)).on('click',function(e){var parent=$(this).closest('.page-item-detail');$latest_chapter=$('.list-chapter .chapter-item',parent)[0];if($latest_chapter){var chapter_url=$($('.chapter a',parent)[0]).attr('href');location.href=chapter_url;e.stopPropagation();return!1}})});madara_update_views()});if(typeof wpdiscuzAjaxObj!=='undefined'){wpdiscuzAjaxObj.wp_manga_chapter_comment=function(data,isNative,isShowTopLoading){data.append('chapterId',jQuery('input[name=chapter_id]').val());return data}}
;(function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)})(function(i){"use strict";var e=window.Slick||{};e=function(){function e(e,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(e),appendDots:i(e),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(e),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(e).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,"undefined"!=typeof document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=t++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}var t=0;return e}(),e.prototype.activateADA=function(){var i=this;i.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):o===!0?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&i.options.adaptiveHeight===!0&&i.options.vertical===!1){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),s.options.rtl===!0&&s.options.vertical===!1&&(e=-e),s.transformsEnabled===!1?s.options.vertical===!1?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):s.cssTransitions===!1?(s.options.rtl===!0&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),s.options.vertical===!1?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),s.options.vertical===!1?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this,o=t.getNavTarget();null!==o&&"object"==typeof o&&o.each(function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};e.options.fade===!1?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,e.options.fade===!1?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(i.options.infinite===!1&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1===0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;e.options.arrows===!0&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),e.options.infinite!==!0&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,t,o=this;if(o.options.dots===!0&&o.slideCount>o.options.slidesToShow){for(o.$slider.addClass("slick-dotted"),t=i("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),e.options.centerMode!==!0&&e.options.swipeToSlide!==!0||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.options.draggable===!0&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.options.rows>0){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(r.originalSettings.mobileFirst===!1?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||l===!1||r.$slider.trigger("breakpoint",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is("a")&&e.preventDefault(),l.is("li")||(l=l.closest("li")),n=r.slideCount%r.options.slidesToScroll!==0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,t);break;case"next":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case"index":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(i){var e,t,o=this;if(e=o.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var s in e){if(i<e[s]){i=t;break}t=e[s]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),e.options.accessibility===!0&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),e.options.accessibility===!0&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),e.options.accessibility===!0&&e.$list.off("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>0&&(i=e.$slides.children().children(),i.removeAttr("style"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){var e=this;e.shouldClick===!1&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){i(this).attr("style",i(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",e.options.fade===!1?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;t.cssTransitions===!1?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;e.cssTransitions===!1?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick","*",function(t){var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&o.is(":focus")&&(e.focussed=!0,e.autoPlay())},0)}).on("blur.slick","*",function(t){i(this);e.options.pauseOnFocus&&(e.focussed=!1,e.autoPlay())})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){var i=this;return i.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(i.options.infinite===!0)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(i.options.centerMode===!0)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),n.options.infinite===!0?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,n.options.vertical===!0&&n.options.centerMode===!0&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!==0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),n.options.centerMode===!0&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:n.options.centerMode===!0&&n.options.infinite===!0?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:n.options.centerMode===!0&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=n.options.vertical===!1?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,n.options.variableWidth===!0&&(o=n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow),e=n.options.rtl===!0?o[0]?(n.$slideTrack.width()-o[0].offsetLeft-o.width())*-1:0:o[0]?o[0].offsetLeft*-1:0,n.options.centerMode===!0&&(o=n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=n.options.rtl===!0?o[0]?(n.$slideTrack.width()-o[0].offsetLeft-o.width())*-1:0:o[0]?o[0].offsetLeft*-1:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){var e=this;return e.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(e.options.infinite===!1?i=e.slideCount:(t=e.options.slidesToScroll*-1,o=e.options.slidesToScroll*-1,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o,s,n=this;return s=n.options.centerMode===!0?Math.floor(n.$list.width()/2):0,o=n.swipeLeft*-1+s,n.options.swipeToSlide===!0?(n.$slideTrack.find(".slick-slide").each(function(e,s){var r,l,d;if(r=i(s).outerWidth(),l=s.offsetLeft,n.options.centerMode!==!0&&(l+=r/2),d=l+r,o<d)return t=s,!1}),e=Math.abs(i(t).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){var t=this;t.changeSlide({data:{message:"index",index:parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),t.options.accessibility===!0&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){var s=o.indexOf(t);if(i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),s!==-1){var n="slick-slide-control"+e.instanceUid+s;i("#"+n).length&&i(this).attr({"aria-describedby":n})}}),e.$dots.attr("role","tablist").find("li").each(function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.options.focusOnChange?e.$slides.eq(s).attr({tabindex:"0"}):e.$slides.eq(s).removeAttr("tabindex");e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),i.options.accessibility===!0&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),e.options.accessibility===!0&&e.$dots.on("keydown.slick",e.keyHandler)),e.options.dots===!0&&e.options.pauseOnDotsHover===!0&&e.slideCount>e.options.slidesToShow&&i("li",e.$dots).on("mouseenter.slick",i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),e.options.accessibility===!0&&e.$list.on("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),i.options.dots===!0&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&e.options.accessibility===!0?e.changeSlide({data:{message:e.options.rtl===!0?"next":"previous"}}):39===i.keyCode&&e.options.accessibility===!0&&e.changeSlide({data:{message:e.options.rtl===!0?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){i("img[data-lazy]",e).each(function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),s=i(this).attr("data-sizes")||r.$slider.attr("data-sizes"),n=document.createElement("img");n.onload=function(){e.animate({opacity:0},100,function(){o&&(e.attr("srcset",o),s&&e.attr("sizes",s)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),r.$slider.trigger("lazyLoaded",[r,e,t])})},n.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,e,t])},n.src=t})}var t,o,s,n,r=this;if(r.options.centerMode===!0?r.options.infinite===!0?(s=r.currentSlide+(r.options.slidesToShow/2+1),n=s+r.options.slidesToShow+2):(s=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),n=2+(r.options.slidesToShow/2+1)+r.currentSlide):(s=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,n=Math.ceil(s+r.options.slidesToShow),r.options.fade===!0&&(s>0&&s--,n<=r.slideCount&&n++)),t=r.$slider.find(".slick-slide").slice(s,n),"anticipated"===r.options.lazyLoad)for(var l=s-1,d=n,a=r.$slider.find(".slick-slide"),c=0;c<r.options.slidesToScroll;c++)l<0&&(l=r.slideCount-1),t=t.add(a.eq(l)),t=t.add(a.eq(d)),l--,d++;e(t),r.slideCount<=r.options.slidesToShow?(o=r.$slider.find(".slick-slide"),e(o)):r.currentSlide>=r.slideCount-r.options.slidesToShow?(o=r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow),e(o)):0===r.currentSlide&&(o=r.$slider.find(".slick-cloned").slice(r.options.slidesToShow*-1),e(o))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){var i=this;i.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;if(!t.unslicked&&(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),t.options.accessibility===!0&&(t.initADA(),t.options.focusOnChange))){var o=i(t.$slides.get(t.currentSlide));o.attr("tabindex",0).focus()}},e.prototype.prev=e.prototype.slickPrev=function(){var i=this;i.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),r=document.createElement("img"),r.onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),l.options.adaptiveHeight===!0&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||"window";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),e.options.focusOnSelect===!0&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;return"boolean"==typeof i?(e=i,i=e===!0?0:o.slideCount-1):i=e===!0?--i:i,!(o.slideCount<1||i<0||i>o.slideCount-1)&&(o.unload(),t===!0?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,void o.reinit())},e.prototype.setCSS=function(i){var e,t,o=this,s={};o.options.rtl===!0&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,o.transformsEnabled===!1?o.$slideTrack.css(s):(s={},o.cssTransitions===!1?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;i.options.vertical===!1?i.options.centerMode===!0&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),i.options.centerMode===!0&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),i.options.vertical===!1&&i.options.variableWidth===!1?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):i.options.variableWidth===!0?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();i.options.variableWidth===!1&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,t.options.rtl===!0?i(s).css({position:"relative",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&i.options.adaptiveHeight===!0&&i.options.vertical===!1){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":"undefined"!=typeof arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,function(i,e){r.options[i]=e});else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),i.options.fade===!1?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=i.options.vertical===!0?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||i.options.useCSS===!0&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&i.animType!==!1&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&i.animType!==!1},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),n.options.centerMode===!0){var r=n.options.slidesToShow%2===0?1:0;e=Math.floor(n.options.slidesToShow/2),n.options.infinite===!0&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=n.options.infinite===!0?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(s.options.fade===!0&&(s.options.centerMode=!1),s.options.infinite===!0&&s.options.fade===!1&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=s.options.centerMode===!0?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));return s||(s=0),t.slideCount<=t.options.slidesToShow?void t.slideHandler(s,!1,!0):void t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(a.animating===!0&&a.options.waitForAnimate===!0||a.options.fade===!0&&a.currentSlide===i))return e===!1&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,a.options.infinite===!1&&a.options.centerMode===!1&&(i<0||i>a.getDotCount()*a.options.slidesToScroll)?void(a.options.fade===!1&&(o=a.currentSlide,t!==!0&&a.slideCount>a.options.slidesToShow?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o))):a.options.infinite===!1&&a.options.centerMode===!0&&(i<0||i>a.slideCount-a.options.slidesToScroll)?void(a.options.fade===!1&&(o=a.currentSlide,t!==!0&&a.slideCount>a.options.slidesToShow?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o))):(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!==0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!==0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=a.getNavTarget(),l=l.slick("getSlick"),l.slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide)),a.updateDots(),a.updateArrows(),a.options.fade===!0?(t!==!0?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight()):void(t!==!0&&a.slideCount>a.options.slidesToShow?a.animateSlide(d,function(){a.postSlide(s)}):a.postSlide(s)))},e.prototype.startLoad=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),i.options.dots===!0&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),o=Math.round(180*t/Math.PI),o<0&&(o=360-Math.abs(o)),o<=45&&o>=0?s.options.rtl===!1?"left":"right":o<=360&&o>=315?s.options.rtl===!1?"left":"right":o>=135&&o<=225?s.options.rtl===!1?"right":"left":s.options.verticalSwiping===!0?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(o.touchObject.edgeHit===!0&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(e.options.swipe===!1||"ontouchend"in document&&e.options.swipe===!1||e.options.draggable===!1&&i.type.indexOf("mouse")!==-1))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,e.options.verticalSwiping===!0&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(l.options.verticalSwiping===!0&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(l.options.rtl===!1?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),l.options.verticalSwiping===!0&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,l.options.infinite===!1&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),l.options.vertical===!1?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,l.options.verticalSwiping===!0&&(l.swipeLeft=e+o*s),l.options.fade!==!0&&l.options.touchMove!==!1&&(l.animating===!0?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;return t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow?(t.touchObject={},!1):(void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,void(t.dragging=!0))},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i,e=this;i=Math.floor(e.options.slidesToShow/2),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&e.options.centerMode===!1?(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-1&&e.options.centerMode===!0&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||"undefined"==typeof s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),"undefined"!=typeof t)return t;return o}})
;(function($){'use strict';var check_rtl=(jQuery("body").css('direction')==="rtl");jQuery('.c-testimonials').each(function(){var $this=jQuery(this);$this.imagesLoaded(function(){var testimonialsId=$this.attr('data-id');var dataBullets=$this.attr('data-bullets');var dataAutoplay=$this.attr('data-autoplay');var dataArrows=$this.attr('data-arrows');var dataStyle=$this.attr('data-style');var bm_slidesToShow=$this.attr('data-item-per-row');var breakpoint_1024_slidesToShow=3;var breakpoint_768_slidesToShow=2;var breakpoint_480_slidesToShow=1;dataBullets=parseInt(dataBullets);dataAutoplay=parseInt(dataAutoplay);dataAutoplay=parseInt(dataAutoplay);bm_slidesToShow=parseInt(bm_slidesToShow);if(dataStyle!='1'){bm_slidesToShow=1;breakpoint_1024_slidesToShow=1;breakpoint_768_slidesToShow=1;breakpoint_480_slidesToShow=1}else{if(bm_slidesToShow==1){breakpoint_1024_slidesToShow=1;breakpoint_768_slidesToShow=1;breakpoint_480_slidesToShow=1}else if(bm_slidesToShow==2){breakpoint_1024_slidesToShow=2;breakpoint_768_slidesToShow=2;breakpoint_480_slidesToShow=1}else{breakpoint_1024_slidesToShow=1;breakpoint_768_slidesToShow=1;breakpoint_480_slidesToShow=1}}
var testimonialsInit='#'+testimonialsId+' '+'.block-group';jQuery(testimonialsInit).slick({lazyLoad:'ondemand',fade:bm_slidesToShow==1?!0:!1,cssEase:'ease-out',dots:dataBullets==1?!0:!1,autoplay:dataAutoplay==1?!0:!1,arrows:dataArrows==1?!0:!1,autoplaySpeed:5000,infinite:!0,speed:300,rtl:!0,slidesToShow:bm_slidesToShow,slidesToScroll:1,adaptiveHeight:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:parseInt(breakpoint_1024_slidesToShow),slidesToScroll:parseInt(breakpoint_1024_slidesToShow),infinite:!0,dots:!0,fade:!1,}},{breakpoint:768,settings:{slidesToShow:parseInt(breakpoint_768_slidesToShow),slidesToScroll:parseInt(breakpoint_768_slidesToShow),fade:!1,}},{breakpoint:480,settings:{slidesToShow:parseInt(breakpoint_480_slidesToShow),slidesToScroll:parseInt(breakpoint_480_slidesToShow),fade:!1,}}]})})});var ct_progress_items=[];jQuery(document).ready(function(){if(typeof ProgressBar!=='undefined'){jQuery('.c-progress-item').each(function(){var $this=jQuery(this);var progressItemID=$this.attr('data-id');var ProgressType=$this.attr('data-type');var ProgressPercent=$this.attr('data-percent');var valueText=$this.attr('data-value-text');var textColor=$this.attr('data-text-color');var bgColor=$this.attr('data-bg-color');var fontFamily=$this.attr('data-font-family');var fontSize=$this.attr('data-font-size');var bm_trailColor=$this.attr('data-trail-color');var bm_trailWidth=$this.attr('data-trail-width');var bm_strokeWidth=$this.attr('data-stroke-width');var bm_duration=$this.attr('data-duration');bm_trailWidth=parseInt(bm_trailWidth);bm_strokeWidth=parseInt(bm_strokeWidth);if(bm_trailColor==''){if(ProgressType==='bar'){bm_trailColor='#eee'}else{bm_trailColor='#32211c'}}
if(fontSize==''){if(ProgressType==='bar'){fontSize="14px"}else{fontSize="36px"}}
if(!bm_trailWidth||bm_trailWidth==''){if(ProgressType==='bar'){bm_trailWidth=0.1}else{bm_trailWidth=8}}
if(!bm_strokeWidth||bm_strokeWidth==''){if(ProgressType==='bar'){bm_strokeWidth=2}else{bm_strokeWidth=8}}
if(bm_duration==''){if(ProgressType==='bar'){bm_duration=1400}else{bm_duration=2000}}
var progressInit;progressItemID=document.getElementById(progressItemID);var doProgress=$(progressItemID);if(progressItemID){if(ProgressType==='bar'){progressInit=new ProgressBar.Line(progressItemID,{color:bgColor,strokeWidth:bm_strokeWidth,trailWidth:bm_trailWidth,trailColor:bm_trailColor,easing:'easeInOut',duration:bm_duration,svgStyle:{width:'100%',height:'100%'},text:{style:{color:textColor,position:'absolute',right:'0',top:'30px',padding:0,margin:0,transform:null},autoStyleContainer:!1},from:{color:bgColor,width:bm_strokeWidth,},to:{color:bgColor,width:bm_strokeWidth,},step:function(state,bar){bar.setText(Math.round(bar.value()*100))}});progressInit.path.style.strokeLinecap='round'}else if(ProgressType==='circle'){progressInit=new ProgressBar.Circle(progressItemID,{color:textColor,strokeWidth:bm_strokeWidth,trailWidth:bm_trailWidth,trailColor:bm_trailColor,easing:'easeInOut',duration:bm_duration,text:{autoStyleContainer:!1},from:{color:bgColor,width:bm_strokeWidth,},to:{color:bgColor,width:bm_strokeWidth,},step:function(state,circle){circle.path.setAttribute('stroke',state.color);circle.path.setAttribute('stroke-width',state.width);if(valueText===''){var value=Math.round(circle.value()*100);if(value===0){circle.setText('')}else{circle.setText(value)}}else{circle.setText(valueText)}}})}
if(ProgressType==='bar'||ProgressType==='circle'){if(fontFamily!=''){progressInit.text.style.fontFamily=fontFamily}
progressInit.text.style.fontSize=fontSize}
ct_progress_items.push(['#'+$this.attr('data-id'),progressInit,ProgressPercent,!1])}})}
$(document).bind('scroll',function(){var scrollOffset=$(document).scrollTop();for(var k in ct_progress_items){var item_id=ct_progress_items[k][0];var item_progressbar=ct_progress_items[k][1];var item_percent=ct_progress_items[k][2];var item_progress_runned=ct_progress_items[k][3];if(!item_progress_runned){var containerOffset=$(item_id).offset().top-window.innerHeight;if(scrollOffset>containerOffset){item_progressbar.animate(item_percent);item_progress_runned=!0;ct_progress_items[k][3]=!0}}}});jQuery('.c-icon-box').each(function(){var $this=jQuery(this);var itemDataCount=parseInt($this.attr('data-count'));var itemColumn=$this.find("li.c-column");if(itemColumn!=="undefined"){itemColumn.unwrap();itemColumn.unwrap();for(var i=0;i<itemColumn.length;i++){if(i%itemDataCount===0){itemColumn.slice(i,i+itemDataCount).wrapAll('<li class="block-group"><ul></ul></li>')}}}});function isDate(strDate){var scratch=new Date(strDate);if(scratch.toString()=='NaN'||scratch.toString()=='Invalid Date'){return!1}else{return!0}};var c_countdown=function(){$('.c-countdown__inner').each(function(index,element){var $this=$(this);var $years_text=$this.attr('data-years-text');var $months_text=$this.attr('data-months-text');var $week_text=$this.attr('data-week-text');var $weeks_text=$week_text+'s';var $days_text=$this.attr('data-days-text');var $hours_text=$this.attr('data-hours-text');var $minutes_text=$this.attr('data-minutes-text');var $seconds_text=$this.attr('data-seconds-text');var $timer=$this.attr('data-countdown');var $format=$this.attr('data-format');if($format=='full'){$format='yodHMS'}else{$format='dHMS'}
if(!isDate($timer)){alert('You have entered an incorrect time value');return!1};$this.countdown({until:new Date($timer),labels:[$years_text,$months_text,$weeks_text,$days_text,$hours_text,$minutes_text,$seconds_text],labels1:[$years_text,$months_text,$week_text,$days_text,$hours_text,$minutes_text,$seconds_text],format:$format,padZeroes:!0,})})};c_countdown();if(jQuery().swipebox){jQuery('.c-video-lightbox-item').swipebox()}
if(jQuery().swipebox){jQuery('.c-gallery-item').swipebox({loopAtEnd:!1,hideBarsDelay:5000,})}
if(jQuery().swipebox){jQuery('.c-portfolio-lightbox').swipebox({loopAtEnd:!1,hideBarsDelay:5000,})}
jQuery('.c-counter__value').each(function(){var $this=jQuery(this);var counterID=$this.attr('data-id');var counterEndValue=$this.attr('data-value');var counterStartValue=0;var counterDuration=$this.attr('data-time');var counterSeparator=$this.attr('data-separator');var counterSuffix=$this.attr('data-suffix');counterDuration=counterDuration/1000;var options={useEasing:!1,useGrouping:!0,separator:counterSeparator,decimal:'',suffix:counterSuffix};var c_counter=new CountUp(counterID,counterStartValue,counterEndValue,0,counterDuration,options);$(document).bind('scroll',function(){var scrollOffset=$(document).scrollTop();var containerOffset=$('#'+counterID).offset().top-window.innerHeight;if(scrollOffset>containerOffset){c_counter.start()}})});if($(window).width()<=480){jQuery('.grid9').slick({lazyLoad:'ondemand',fade:!1,cssEase:'ease-out',dots:!1,autoplay:!1,arrows:!0,autoplaySpeed:5000,infinite:!0,speed:300,slidesToShow:2,slidesToScroll:2,adaptiveHeight:!1})}else{jQuery('.grid9').addClass('block')}})})(jQuery)
;